/* Zolti premium glass kit.
   The photo behind does half the work: glass only reads as glass when there is something to blur. */
:root {
  --z-rim: #ffc690;            /* the peach light line on every edge */
  --z-rim-hot: #fff1d8;        /* where light pools in the corners */
  --z-glow: 255, 140, 60;      /* warm orange glow, as r,g,b */
  --z-fill-top: rgba(92, 60, 94, .30);
  --z-fill-bot: rgba(54, 30, 64, .42);
  --z-text: #ffffff;
  --z-dim: rgba(255, 255, 255, .86);
  --z-purple-1: #a564ff;
  --z-purple-2: #6c34ee;
  --z-purple-rim: rgba(226, 196, 255, .95);
  --z-gold-1: #ffe3a1;
  --z-gold-2: #f2a93b;
  --z-font: "Inter", "SF Pro Display", -apple-system, system-ui, sans-serif;
}

/* ---------- The light rim, drawn as a ring so its brightness can change around the edge ---------- */
.z-rim { position: relative; isolation: isolate; }
.z-rim::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
  padding: var(--rim-w, 1.25px);
  background:
    radial-gradient(70px 70px at 0 0, var(--z-rim-hot), transparent 70%),
    radial-gradient(70px 70px at 100% 0, var(--z-rim-hot), transparent 70%),
    radial-gradient(70px 70px at 0 100%, var(--z-rim-hot), transparent 70%),
    radial-gradient(70px 70px at 100% 100%, var(--z-rim-hot), transparent 70%),
    linear-gradient(180deg, #ffd3a3, var(--z-rim) 45%, #ffb06e);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* ---------- Glass surfaces ---------- */
.z-card {
  border-radius: 20px;
  background: linear-gradient(180deg, var(--z-fill-top), var(--z-fill-bot));
  -webkit-backdrop-filter: blur(7px) saturate(1.1) brightness(.92); backdrop-filter: blur(7px) saturate(1.1) brightness(.92);
  box-shadow:
    0 0 4px rgba(var(--z-glow), .5),
    0 0 12px rgba(var(--z-glow), .18),
    inset 0 0 14px rgba(var(--z-glow), .26),
    inset 0 1px 0 rgba(255, 240, 220, .22);
}
.z-card.soft { --z-fill-top: rgba(60, 32, 76, .40); --z-fill-bot: rgba(40, 20, 56, .48); }

/* The phone-sized sheet: thicker, hotter rim and a big glow, like the frame in the mock-ups. */
.z-sheet {
  --rim-w: 2.4px;
  border-radius: 44px;
  /* No backdrop-filter here on purpose: it would stop the cards inside from seeing the photo. */
  background: linear-gradient(180deg, rgba(36, 16, 62, .42), rgba(26, 10, 44, .55));
  box-shadow:
    0 0 4px 1px rgba(255, 190, 120, .95),
    0 0 14px 3px rgba(var(--z-glow), .65),
    0 0 40px 6px rgba(255, 100, 40, .28),
    inset 0 0 10px 1px rgba(var(--z-glow), .65),
    inset 0 0 40px 6px rgba(255, 110, 50, .22);
}

/* ---------- Buttons ---------- */
.z-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: 500 15px/1 var(--z-font); color: #fff; text-decoration: none;
}
.z-btn.purple {
  background: linear-gradient(180deg, var(--z-purple-1), var(--z-purple-2));
  box-shadow:
    0 0 0 1px var(--z-purple-rim),
    0 0 12px rgba(150, 80, 255, .95),
    0 0 26px rgba(130, 60, 255, .45),
    inset 0 1px 0 rgba(255, 255, 255, .45),
    inset 0 -6px 12px rgba(60, 10, 160, .35);
}
.z-btn.outline {
  background: rgba(40, 18, 60, .35);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1.2px rgba(200, 160, 255, .95), 0 0 12px rgba(160, 90, 255, .7), inset 0 0 10px rgba(160, 90, 255, .3);
}

/* ---------- Segmented tabs ---------- */
.z-seg { display: flex; align-items: center; border-radius: 999px; padding: 3px; }
.z-seg button {
  flex: 1; min-height: 40px; border: 0; background: none; color: #fff; border-radius: 999px;
  font: 500 15.5px/1 var(--z-font); cursor: pointer; position: relative;
}
.z-seg button.on {
  background: linear-gradient(180deg, var(--z-purple-1), var(--z-purple-2));
  box-shadow: 0 0 0 1px var(--z-purple-rim), 0 0 12px rgba(150, 80, 255, .95), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.z-seg .div { width: 1px; height: 22px; background: rgba(255, 255, 255, .45); }

/* ---------- Icons ---------- */
.z-gold { filter: drop-shadow(0 0 4px rgba(255, 170, 60, .7)); }
.z-ico { width: 26px; height: 26px; display: block; }
.z-line { stroke: #fff; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Bottom navigation ---------- */
.z-nav { display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; border-radius: 34px; padding: 7px; }
.z-nav a { display: grid; justify-items: center; gap: 4px; padding: 8px 0; border-radius: 18px; color: #fff; text-decoration: none; font: 400 12.5px/1 var(--z-font); }
.z-nav a.on {
  background: linear-gradient(180deg, rgba(150, 90, 255, .85), rgba(100, 50, 230, .85));
  box-shadow: 0 0 0 1px var(--z-purple-rim), 0 0 14px rgba(150, 80, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .35);
}

/* ---------- Small glass button with a badge ---------- */
.z-icon-btn { width: 44px; height: 40px; border-radius: 14px; display: grid; place-items: center; position: relative; }
.z-badge {
  position: absolute; top: -9px; right: -6px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 999px;
  background: #e8173d; color: #fff; font: 700 12px/21px var(--z-font); text-align: center; z-index: 4;
}

@media (prefers-reduced-transparency: reduce) {
  .z-card, .z-sheet { -webkit-backdrop-filter: none; backdrop-filter: none; --z-fill-top: rgba(50, 24, 54, .92); --z-fill-bot: rgba(34, 16, 40, .95); }
}
