/* ZYCKAR — Amethyst Glass. Shared tokens + shell styles. Mini apps read the --z-* variables. */
:root {
  /* Base: midnight violet */
  --z-bg: #0E0A24;
  --z-bg-deep: #08061A;
  --z-surface: #1B1540;
  --z-surface-2: #282058;
  --z-ink: #F7F4FF;
  --z-muted: #B8AFDC;
  --z-line: rgba(214, 198, 255, 0.14);

  /* Accent: solid lilac for text, rings and small fills */
  --z-accent: #B99AFF;
  --z-accent-strong: #D4BFFF;
  --z-accent-ink: #160C33;

  /* The logo's liquid spectrum */
  --z-cyan: #3FD8F5;
  --z-violet: #7C5CFF;
  --z-magenta: #E44FD0;
  --z-amber: #FDB86B;
  --z-gold: #FFC95C;
  --z-grad: linear-gradient(120deg, #3FD8F5 0%, #7C5CFF 36%, #E44FD0 70%, #FDB86B 100%);
  --z-grad-btn: linear-gradient(135deg, #5468FF 0%, #8A4DFF 48%, #CF3597 100%);
  --z-gloss: linear-gradient(180deg, rgba(255, 255, 255, .26) 0%, rgba(255, 255, 255, .06) 48%, rgba(255, 255, 255, 0) 52%);
  --z-glass: linear-gradient(180deg, rgba(255, 255, 255, .085) 0%, rgba(255, 255, 255, .035) 100%);
  --z-glow: 0 10px 28px -6px rgba(138, 77, 255, .55), 0 2px 10px -2px rgba(207, 53, 151, .35);
  --z-shadow: 0 18px 40px -18px rgba(3, 1, 16, .85);

  /* Pearl: light surfaces (sheets, highlight cards) */
  --z-porcelain: #F5F1FF;
  --z-porcelain-ink: #1D1242;
  --z-porcelain-muted: #5E5486;

  --z-danger: #FF9DB8;
  --z-success: #7FE3C4;
  --z-radius: 16px;
  --z-radius-lg: 24px;
  --z-font: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --z-display: Sora, Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  --z-ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--z-bg-deep); }
body.zyckar-shell {
  position: relative; margin: 0; min-height: 100vh; background: transparent; color: var(--z-ink);
  font-family: var(--z-font); font-size: 16px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
/* Aurora: fixed liquid light behind everything (a pseudo-element, since iOS ignores background-attachment: fixed) */
body.zyckar-shell::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70vmax 45vmax at -10% -12%, rgba(63, 216, 245, .17), transparent 62%),
    radial-gradient(60vmax 50vmax at 115% 18%, rgba(228, 79, 208, .19), transparent 60%),
    radial-gradient(70vmax 50vmax at 40% 115%, rgba(124, 92, 255, .26), transparent 62%),
    radial-gradient(30vmax 22vmax at 92% 92%, rgba(253, 184, 107, .10), transparent 70%),
    linear-gradient(180deg, #120C2E 0%, #0B0820 55%, #0A0620 100%);
}
.zyckar-shell a { color: var(--z-accent); }
:where(.zyckar-shell) :where(button, input, select, textarea) { font: inherit; color: inherit; }
.zyckar-shell :focus-visible { outline: 2px solid var(--z-accent); outline-offset: 2px; }
.z-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.z-noscript { padding: 24px; text-align: center; }
.z-grad-text { background: var(--z-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Loader: CSS only, delayed so fast loads never flash ---------- */
.z-loader {
  position: fixed; inset: 0; z-index: 50; display: grid; place-content: center; justify-items: center; gap: 20px;
  background: radial-gradient(50vmax 40vmax at 50% 45%, rgba(124, 92, 255, .28), transparent 70%), var(--z-bg-deep);
  animation: z-fade .25s .15s both;
}
.z-loader img, .z-loader svg { width: 76px; height: 76px; border-radius: 20px; filter: drop-shadow(0 12px 28px rgba(138, 77, 255, .55)); animation: z-breathe 1.6s ease-in-out infinite; }
.z-loader-bar { position: relative; width: 84px; height: 3px; border-radius: 2px; overflow: hidden; background: rgba(185, 154, 255, .18); }
.z-loader-bar::after { content: ""; position: absolute; inset: 0; width: 45%; border-radius: 2px; background: var(--z-grad); animation: z-sweep 1.1s var(--z-ease) infinite; }
@keyframes z-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes z-sweep { from { transform: translateX(-100%); } to { transform: translateX(230%); } }
@keyframes z-breathe { 50% { transform: scale(.94); opacity: .85; } }

/* ---------- Layout ---------- */
.z-screen { max-width: 760px; margin: 0 auto; padding: calc(20px + env(safe-area-inset-top)) 20px calc(124px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 22px; }
.z-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.z-brand { display: flex; align-items: center; gap: 11px; font-family: var(--z-display); font-weight: 700; font-size: 16px; letter-spacing: .2em; }
.z-brand img, .z-brand svg { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 6px 18px -4px rgba(138, 77, 255, .6); }
.z-title { margin: 0; font-family: var(--z-display); font-weight: 600; font-size: 32px; line-height: 1.12; letter-spacing: -.02em; }
.z-lead { margin: 6px 0 0; color: var(--z-muted); font-size: 15px; }
.z-h2 { margin: 0; font-family: var(--z-display); font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.z-section { display: flex; flex-direction: column; gap: 14px; }
.z-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }

/* ---------- Controls ---------- */
.z-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px;
  border: 0; border-radius: var(--z-radius); background: var(--z-gloss), var(--z-grad-btn); color: #FFFFFF;
  font-weight: 700; font-size: 16px; letter-spacing: .005em; text-decoration: none; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 0 rgba(20, 6, 60, .25), var(--z-glow);
  text-shadow: 0 1px 1px rgba(30, 8, 70, .35);
  transition: transform .15s var(--z-ease), filter .15s, box-shadow .15s;
}
.zyckar-shell a.z-btn { color: #FFFFFF; }
.z-btn:hover { filter: brightness(1.08) saturate(1.05); }
.z-btn:active { transform: scale(.98); }
.z-btn:disabled { opacity: .5; cursor: default; transform: none; filter: saturate(.6); }
.z-btn.is-quiet {
  background: var(--z-glass); color: var(--z-ink); border: 1px solid var(--z-line); text-shadow: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.zyckar-shell a.z-btn.is-quiet { color: var(--z-ink); }
.z-btn.is-danger { background: transparent; color: var(--z-danger); border: 1px solid rgba(255, 157, 184, .45); box-shadow: none; text-shadow: none; }
.z-btn.is-block { width: 100%; }
.z-link { background: none; border: 0; padding: 10px 4px; min-height: 44px; color: var(--z-accent); font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; }
.z-icon-btn {
  width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--z-line); background: var(--z-glass); color: var(--z-ink);
  display: grid; place-items: center; cursor: pointer; padding: 0; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.z-icon-btn img { width: 100%; height: 100%; object-fit: cover; }

.z-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--z-muted); }
.z-field input, .z-input {
  width: 100%; min-height: 50px; padding: 0 16px; border-radius: var(--z-radius); border: 1px solid var(--z-line);
  background: rgba(6, 4, 22, .55); color: var(--z-ink); font-size: 16px; font-weight: 500;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .3);
}
.z-field input:focus, .z-input:focus { outline: none; border-color: var(--z-accent); box-shadow: 0 0 0 3px rgba(185, 154, 255, .25), 0 0 22px -6px rgba(124, 92, 255, .7); }
.z-field small { font-weight: 500; color: var(--z-muted); }
.z-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--z-muted); line-height: 1.4; }
.z-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--z-violet); flex: none; }

.z-search {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; border-radius: 18px;
  background: var(--z-glass); border: 1px solid var(--z-line); color: var(--z-muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.z-search input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 16px; outline: none; color: var(--z-ink); }
.z-search input::placeholder { color: var(--z-muted); }
.z-search:focus-within { border-color: rgba(185, 154, 255, .6); box-shadow: 0 0 0 3px rgba(185, 154, 255, .16), 0 0 26px -8px rgba(124, 92, 255, .8); }
.z-chips { display: flex; gap: 8px; overflow-x: auto; margin: -4px -20px 0; padding: 4px 20px 6px; scrollbar-width: none; }
.z-chips::-webkit-scrollbar { display: none; }
.z-chip { flex: none; min-height: 36px; padding: 0 15px; border-radius: 18px; border: 1px solid var(--z-line); background: rgba(255, 255, 255, .04); color: var(--z-muted); font-size: 14px; font-weight: 600; cursor: pointer; }
.z-chip.is-on { background: var(--z-gloss), var(--z-grad-btn); border-color: transparent; color: #FFFFFF; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 6px 16px -6px rgba(138, 77, 255, .7); }

.z-segment { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 15px; background: rgba(6, 4, 22, .5); border: 1px solid var(--z-line); }
.z-segment button { min-height: 38px; border: 0; border-radius: 11px; background: transparent; color: var(--z-muted); font-size: 14px; font-weight: 600; cursor: pointer; }
.z-segment button[aria-pressed="true"] { background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .07)); color: var(--z-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 4px 12px -4px rgba(0, 0, 0, .5); }

/* ---------- Cards ---------- */
.z-card {
  position: relative; padding: 18px 20px; border-radius: var(--z-radius-lg); background: var(--z-glass); border: 1px solid var(--z-line);
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), var(--z-shadow);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
}
.z-card.is-porcelain {
  background: linear-gradient(140deg, #FFFFFF 0%, #F1EBFF 50%, #FCEAF7 100%); color: var(--z-porcelain-ink); border-color: rgba(255, 255, 255, .7);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 20px 44px -20px rgba(138, 77, 255, .65);
}
.z-card.is-porcelain .z-muted { color: var(--z-porcelain-muted); }
.z-card.is-brass { border: 1px solid transparent; background: linear-gradient(rgba(18, 12, 46, .92), rgba(18, 12, 46, .92)) padding-box, var(--z-grad) border-box; }
.z-muted { color: var(--z-muted); }
.z-meter { height: 8px; border-radius: 4px; background: rgba(29, 18, 66, .12); overflow: hidden; }
.z-meter > span { display: block; height: 100%; border-radius: 4px; background: var(--z-grad); transition: width .4s var(--z-ease); }
.z-banner {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--z-radius); font-size: 14px;
  background: linear-gradient(120deg, rgba(63, 216, 245, .10), rgba(124, 92, 255, .14), rgba(228, 79, 208, .12)); border: 1px solid rgba(185, 154, 255, .35);
}
.z-banner.is-error { background: rgba(255, 157, 184, .1); border-color: rgba(255, 157, 184, .45); }
.z-banner p { margin: 0; flex: 1; }
.z-alert { margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(127, 227, 196, .12); color: var(--z-ink); font-size: 14px; }
.z-alert.is-error { background: rgba(255, 157, 184, .14); }
.z-list { list-style: none; margin: 0; padding: 0; }
.z-row { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 8px 0; border-bottom: 1px solid var(--z-line); }
.z-row:last-child { border-bottom: 0; }
.z-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.z-row-title { font-size: 15px; font-weight: 600; }
.z-row-meta { font-size: 13px; color: var(--z-muted); }
.z-pill { display: inline-block; padding: 2px 9px; border-radius: 9px; background: rgba(255, 255, 255, .1); color: var(--z-muted); font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.z-pill.is-brass { background: var(--z-grad-btn); color: #FFFFFF; }

/* ---------- Launcher ---------- */
.z-greeting { margin: 0; font-family: var(--z-display); font-weight: 600; font-size: 30px; line-height: 1.15; letter-spacing: -.02em; }
.z-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 10px; }
@media (min-width: 560px) { .z-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.z-tile { position: relative; }
.z-tile-btn { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--z-ink); cursor: pointer; text-decoration: none; }
.z-tile-icon {
  position: relative; width: 64px; height: 64px; border-radius: 19px; display: grid; place-items: center; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 0 0 1px rgba(255, 255, 255, .14), 0 10px 22px -10px var(--z-tile-glow, rgba(124, 92, 255, .9));
  transition: transform .15s var(--z-ease);
}
/* Glassy highlight across the top half */
.z-tile-icon::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(170deg, rgba(255, 255, 255, .38) 0%, rgba(255, 255, 255, .08) 42%, rgba(255, 255, 255, 0) 46%); pointer-events: none; }
.z-tile-btn:active .z-tile-icon { transform: scale(.94); }
.z-tile-icon img { width: 100%; height: 100%; object-fit: cover; }
.z-tile-letter { font-family: var(--z-display); font-size: 26px; font-weight: 700; color: #FFFFFF; text-shadow: 0 2px 6px rgba(20, 6, 60, .45); }
.z-tile-name { font-size: 12px; font-weight: 600; line-height: 1.25; text-align: center; }
.z-tile.is-locked .z-tile-icon { opacity: .42; filter: saturate(.55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.z-tile.is-locked .z-tile-name { color: var(--z-muted); }
.z-tile-badge { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; background: #1B1442; border: 1px solid rgba(185, 154, 255, .45); color: var(--z-accent-strong); }
.z-tile-tag {
  position: absolute; top: 50px; left: 50%; transform: translateX(-50%); padding: 2px 7px; border-radius: 8px; white-space: nowrap;
  font-size: 10px; font-weight: 800; letter-spacing: .03em; color: #1A0B33; background: linear-gradient(120deg, #7FE9FF, #C9B0FF 55%, #FFC9EA);
  box-shadow: 0 4px 10px -3px rgba(124, 92, 255, .8);
}
.z-tile-tag.is-gold { background: linear-gradient(120deg, #FFE29A, #FFC95C 60%, #FDB86B); }
.z-tile-star { position: absolute; top: -8px; right: -6px; width: 30px; height: 30px; border: 0; border-radius: 15px; background: transparent; color: rgba(184, 175, 220, .6); cursor: pointer; display: grid; place-items: center; }
.z-tile-star[aria-pressed="true"] { color: var(--z-gold); filter: drop-shadow(0 0 6px rgba(255, 201, 92, .7)); }
.z-reorder li { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 4px 0 14px; border-radius: var(--z-radius); background: var(--z-glass); border: 1px solid var(--z-line); margin-bottom: 8px; }
.z-reorder span { flex: 1; font-weight: 600; }
.z-reorder button { width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--z-ink); cursor: pointer; }
.z-reorder button:disabled { opacity: .3; }
.z-empty { color: var(--z-muted); text-align: center; padding: 24px 0; }

/* Monthly app choice + plan summary on Home */
.z-hero { overflow: hidden; }
.z-hero::before {
  content: ""; position: absolute; width: 220px; height: 220px; right: -70px; top: -90px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(228, 79, 208, .35), rgba(124, 92, 255, .12) 55%, transparent 70%);
}
.z-hero-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.z-hero p { margin: 0; }
.z-hero-app { display: flex; align-items: center; gap: 12px; }
.z-hero-app .z-tile-icon { width: 46px; height: 46px; border-radius: 14px; flex: none; }
.z-hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.z-hero-actions .z-btn { min-height: 48px; padding: 0 12px; font-size: 15px; }
.z-sparkle { color: var(--z-gold); filter: drop-shadow(0 0 6px rgba(255, 201, 92, .8)); }

/* ---------- Tab bar ---------- */
.z-tabbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 20;
  max-width: 480px; margin: 0 auto; height: 68px; border-radius: 26px; border: 1px solid rgba(214, 198, 255, .18);
  background: linear-gradient(180deg, rgba(40, 30, 88, .72), rgba(16, 10, 42, .82));
  -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 18px 40px -12px rgba(3, 1, 16, .9);
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: center;
}
.z-tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 52px; justify-content: center; color: var(--z-muted); text-decoration: none; font-size: 11px; font-weight: 700; }
.z-tabbar a[aria-current="page"] { color: #FFFFFF; }
.z-tabbar a[aria-current="page"] svg { color: var(--z-accent-strong); filter: drop-shadow(0 0 8px rgba(185, 154, 255, .9)); }
.z-tabbar a[aria-current="page"]::after { content: ""; position: absolute; bottom: 1px; width: 18px; height: 3px; border-radius: 2px; background: var(--z-grad); }

/* ---------- Sheet (pearl) ---------- */
.z-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(8, 4, 26, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: z-fade .2s both; }
.z-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-width: 560px; margin: 0 auto; max-height: 88vh; overflow: auto;
  padding: 10px 20px calc(28px + env(safe-area-inset-bottom)); border-radius: 30px 30px 0 0;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--z-porcelain) 40%, #F2ECFF 100%); color: var(--z-porcelain-ink);
  box-shadow: 0 -20px 60px -20px rgba(124, 92, 255, .6);
  display: flex; flex-direction: column; gap: 16px;
  animation: z-rise .28s var(--z-ease) both;
}
.z-sheet::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 2px; border-radius: 1px; background: var(--z-grad); opacity: .9; }
.z-sheet-grip { align-self: center; width: 40px; height: 5px; border-radius: 3px; background: #D8CEF2; }
.z-sheet h2 { margin: 0; font-family: var(--z-display); font-weight: 600; font-size: 21px; letter-spacing: -.01em; }
.z-sheet p { margin: 0; color: var(--z-porcelain-muted); }
.z-sheet .z-field { color: var(--z-porcelain-muted); }
.z-sheet .z-field input { background: #FFFFFF; color: var(--z-porcelain-ink); border-color: #DCD3F2; box-shadow: none; }
.z-sheet .z-btn.is-quiet { background: transparent; color: var(--z-porcelain-ink); border-color: #CFC4EC; -webkit-backdrop-filter: none; backdrop-filter: none; }
.z-sheet .z-btn.is-danger { background: #B4234A; color: #FFFFFF; border: 0; }
.z-sheet .z-alert.is-error { background: #FBE0E8; color: #7A1435; }
.z-sheet-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.z-sheet-actions.is-stack { grid-template-columns: 1fr; }
.z-sheet-note { font-size: 13px; }
.z-sheet .z-sheet-warn { padding: 12px 14px; border-radius: 14px; background: #FFF1DD; color: #6B3A06; font-size: 14px; }
@keyframes z-rise { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- Toast ---------- */
.z-toast {
  position: fixed; left: 50%; top: calc(16px + env(safe-area-inset-top)); z-index: 60; transform: translateX(-50%); max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: 16px; border: 1px solid transparent; color: var(--z-ink); font-weight: 600; font-size: 14px;
  background: linear-gradient(rgba(22, 14, 54, .96), rgba(22, 14, 54, .96)) padding-box, var(--z-grad) border-box;
  box-shadow: 0 16px 36px -10px rgba(3, 1, 16, .9), 0 0 24px -8px rgba(124, 92, 255, .8);
  animation: z-drop .3s var(--z-ease) both;
}
@keyframes z-drop { from { transform: translate(-50%, -20px); opacity: 0; } to { transform: translateX(-50%); opacity: 1; } }

/* ---------- Plans ---------- */
.z-plan {
  display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; border: 1px solid var(--z-line); background: var(--z-glass); cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
}
.z-plan input { width: 22px; height: 22px; margin: 0; accent-color: var(--z-violet); flex: none; }
.z-plan.is-on { padding: 16px; border-color: transparent; background: linear-gradient(rgba(30, 20, 72, .95), rgba(30, 20, 72, .95)) padding-box, var(--z-grad) border-box; box-shadow: 0 12px 30px -14px rgba(138, 77, 255, .9); }
.z-plan-name { font-family: var(--z-display); font-size: 17px; font-weight: 700; }
.z-plan-price { font-size: 15px; font-weight: 800; white-space: nowrap; }
.z-plan.is-featured:not(.is-on) { border-color: rgba(138, 77, 255, .55); }
.z-plan-benefits { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; font-size: 13px; color: var(--z-ink-2, rgba(255,255,255,.78)); }
.z-plan-benefits li { display: flex; gap: 6px; align-items: flex-start; line-height: 1.35; }
.z-plan-benefits svg { flex: none; margin-top: 2px; color: var(--z-mint, #5EE6B5); }
.z-plan-trial { color: var(--z-mint, #5EE6B5); font-weight: 600; }

/* ---------- Account ---------- */
.z-profile { display: flex; align-items: center; gap: 16px; }
.z-avatar { position: relative; width: 78px; height: 78px; border-radius: 39px; overflow: hidden; border: 2px solid transparent; background: linear-gradient(var(--z-surface), var(--z-surface)) padding-box, var(--z-grad) border-box; flex: none; box-shadow: 0 10px 26px -10px rgba(138, 77, 255, .9); }
.z-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.z-avatar label { position: absolute; inset: 0; cursor: pointer; }
.z-avatar input { position: absolute; opacity: 0; width: 1px; height: 1px; }

/* ---------- Mini-app host ---------- */
.z-app { min-height: 100vh; }
.z-message { max-width: 520px; margin: 0 auto; padding: calc(64px + env(safe-area-inset-top)) 24px 40px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.z-message h1 { margin: 0; font-family: var(--z-display); font-weight: 600; font-size: 28px; letter-spacing: -.02em; }
.z-message p { margin: 0; color: var(--z-muted); }
.z-message-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Sign-in pages ---------- */
body.z-auth { display: grid; place-items: center; padding: 24px 16px; min-height: 100vh; }
.z-auth-card {
  width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 18px; padding: 28px 22px; border-radius: 28px;
  background: var(--z-glass); border: 1px solid var(--z-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 30px 60px -24px rgba(3, 1, 16, .9), 0 0 60px -30px rgba(124, 92, 255, .9);
  -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3);
}
.z-auth-card .z-brand { flex-direction: column; align-items: center; gap: 8px; }
.z-auth-card .z-brand img { width: 88px; height: 88px; border-radius: 24px; box-shadow: 0 16px 36px -10px rgba(138, 77, 255, .8); }
.z-auth-card .z-brand span { display: none; }
.z-auth-card h1 { margin: 4px 0 0; font-family: var(--z-display); font-weight: 600; font-size: 28px; line-height: 1.15; letter-spacing: -.02em; text-align: center; }
.z-auth-lead { margin: -8px 0 0; color: var(--z-muted); text-align: center; }
.z-auth-form { display: flex; flex-direction: column; gap: 16px; }
.z-auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.z-auth-row a, .z-auth-alt a { font-weight: 700; text-decoration: none; }
.z-auth-alt { margin: 0; text-align: center; color: var(--z-muted); font-size: 14px; }
.z-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .z-loader-bar::after { transform: none; width: 100%; opacity: .6; }
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .z-card, .z-search, .z-btn.is-quiet, .z-icon-btn, .z-auth-card { background: rgba(30, 22, 70, .92); }
  .z-tabbar { background: rgba(20, 14, 50, .97); }
}

/* ---------- Notifications and usage ---------- */
.z-top-actions { display: flex; gap: 10px; align-items: center; }
.z-bell { position: relative; overflow: visible; }
.z-dot { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: linear-gradient(135deg, #FF5FB8, #E44FD0); color: #FFFFFF; font: 800 11px/18px var(--z-font); text-align: center; box-shadow: 0 0 10px rgba(228, 79, 208, .8); }
.z-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.z-note { display: flex; gap: 12px; width: 100%; padding: 14px 0; border: 0; border-top: 1px solid rgba(29, 18, 66, .1); background: none; color: var(--z-porcelain-ink); text-align: left; font: inherit; cursor: pointer; }
.z-notes li:first-child .z-note { border-top: 0; }
.z-note-mark { flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 4px; background: transparent; }
.z-note.is-unread .z-note-mark { background: linear-gradient(135deg, #7C5CFF, #E44FD0); box-shadow: 0 0 8px rgba(228, 79, 208, .7); }
.z-note-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.z-note-text strong { font-weight: 700; }
.z-note-text span { color: var(--z-porcelain-muted); font-size: 14px; }
.z-note-text small { color: var(--z-porcelain-muted); font-size: 12px; }
.z-card:not(.is-porcelain) .z-meter { background: rgba(255, 255, 255, .1); }
.z-usage { display: flex; flex-direction: column; gap: 8px; }
.z-usage-head { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.z-usage-head span:last-child { color: var(--z-muted); }
.z-switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.z-switch input { appearance: none; -webkit-appearance: none; flex: none; width: 50px; height: 30px; border-radius: 15px; background: rgba(6, 4, 22, .6); border: 1px solid var(--z-line); position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.z-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 11px; background: var(--z-muted); transition: transform .2s var(--z-ease), background .2s; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.z-switch input:checked { background: var(--z-grad-btn); border-color: transparent; box-shadow: 0 0 16px -4px rgba(138, 77, 255, .9); }
.z-switch input:checked::after { transform: translateX(20px); background: #FFFFFF; }
.z-switch input:focus-visible { outline: 2px solid var(--z-accent); outline-offset: 2px; }

/* ===================== 0.6.0: account sections, PWA, push, referrals, coupons, announcements ===================== */
.z-btn.is-sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 13px; }
.z-btn.is-ink { background: var(--z-porcelain-ink); color: var(--z-porcelain); box-shadow: 0 8px 20px -10px rgba(29, 18, 66, .8); text-shadow: none; }
.zyckar-shell a.z-btn.is-sm { color: #FFFFFF; }
.z-icon-btn.is-sm { width: 34px; height: 34px; border-radius: 17px; flex: none; }
select.z-input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--z-muted) 50%), linear-gradient(135deg, var(--z-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.z-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.z-inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.z-banner.is-ok { background: linear-gradient(120deg, rgba(127, 227, 196, .10), rgba(124, 92, 255, .10)); border-color: rgba(127, 227, 196, .35); }
.z-pill.is-ok, .z-pill.is-paid { background: rgba(127, 227, 196, .18); color: #0F6B52; }
.z-pill.is-warn { background: #FFE3C2; color: #7A3E00; }
.z-pill.is-pending { background: rgba(253, 184, 107, .16); color: var(--z-amber); }
.z-pill.is-approved { background: rgba(185, 154, 255, .18); color: var(--z-accent-strong); }
.z-pill.is-void { background: rgba(255, 255, 255, .08); color: var(--z-muted); text-decoration: line-through; }
.z-card:not(.is-porcelain) .z-pill.is-paid { color: var(--z-success); }

/* Sub-screen header */
.z-subhead { display: flex; flex-direction: column; gap: 4px; }
.z-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; min-height: 40px; margin-left: -6px; padding-right: 8px; color: var(--z-accent); font-weight: 700; font-size: 15px; text-decoration: none; }

/* Account home */
.z-profile.is-link { flex-direction: row; align-items: center; text-decoration: none; color: inherit; }
.z-profile.is-link .z-avatar { width: 64px; height: 64px; }
.z-profile.is-link > svg { color: var(--z-muted); flex: none; }
.z-menu { display: flex; flex-direction: column; border-radius: var(--z-radius-lg); overflow: hidden; background: var(--z-glass); border: 1px solid var(--z-line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), var(--z-shadow); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.z-menu-row { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 10px 16px; color: var(--z-ink); text-decoration: none; border-bottom: 1px solid var(--z-line); transition: background .15s; }
.z-menu-row:last-child { border-bottom: 0; }
.z-menu-row:active, .z-menu-row:hover { background: rgba(255, 255, 255, .05); }
.z-menu-row > svg:last-child { color: var(--z-muted); flex: none; }
.z-menu-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #FFFFFF; background: linear-gradient(145deg, #7C5CFF, #C04BEA); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 6px 14px -6px rgba(124, 92, 255, .9); }
.z-menu-icon.is-profile { background: linear-gradient(145deg, #3FD8F5, #5468FF); }
.z-menu-icon.is-security { background: linear-gradient(145deg, #2BC4D9, #18A47E); }
.z-menu-icon.is-billing { background: linear-gradient(145deg, #FDB86B, #F2558F); }
.z-menu-icon.is-notifications { background: linear-gradient(145deg, #E44FD0, #FF7A9A); }
.z-menu-icon.is-referrals { background: linear-gradient(145deg, #FFC95C, #E07A1F); }
.z-menu-icon.is-privacy { background: linear-gradient(145deg, #5468FF, #9B4DFF); }
.z-menu-icon.is-app, .z-menu-icon.is-news { background: linear-gradient(145deg, #7C5CFF, #3FD8F5); }

/* Profile */
.z-photo-card { flex-direction: row; align-items: center; gap: 16px; }
.z-avatar.is-lg { width: 84px; height: 84px; border-radius: 42px; }
.z-strength { display: flex; align-items: center; gap: 10px; margin-top: -4px; }
.z-strength span { flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); position: relative; overflow: hidden; }
.z-strength span::after { content: ""; position: absolute; inset: 0; width: 33%; border-radius: 3px; background: var(--z-danger); transition: width .3s var(--z-ease), background .3s; }
.z-strength.is-2 span::after { width: 66%; background: var(--z-amber); }
.z-strength.is-3 span::after { width: 100%; background: var(--z-success); }
.z-strength small { font-size: 12px; font-weight: 700; color: var(--z-muted); min-width: 64px; text-align: right; }

/* Billing */
.z-plan-card { overflow: hidden; }
.z-plan-card::after { content: ""; position: absolute; right: -60px; top: -70px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(228, 79, 208, .22), rgba(124, 92, 255, .1) 55%, transparent 70%); pointer-events: none; }
.z-plan-kicker { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--z-porcelain-muted); }
.z-card:not(.is-porcelain) .z-plan-kicker { color: var(--z-accent); }
.z-code-cta { flex-direction: row; align-items: center; gap: 14px; text-decoration: none; color: var(--z-ink); }
.z-code-cta > svg { color: var(--z-muted); }

/* Coupons on Plans */
.z-coupon { display: flex; flex-direction: column; gap: 8px; }
.z-coupon > .z-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; }
.z-code-row { display: flex; gap: 8px; align-items: center; }
.z-code-row .z-input { flex: 1; min-height: 46px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.z-coupon-on { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--z-radius); border: 1px dashed rgba(127, 227, 196, .55); background: rgba(127, 227, 196, .08); color: var(--z-success); }
.z-coupon-on .z-row-title { color: var(--z-ink); }
.z-coupon-on.is-off { border-color: rgba(253, 184, 107, .6); background: rgba(253, 184, 107, .08); color: var(--z-amber); }

/* Notifications */
.z-push-state { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .08); font-weight: 700; font-size: 14px; color: var(--z-muted); }
.z-push-state.is-on { background: rgba(127, 227, 196, .14); color: var(--z-success); }
.z-card .z-switch { min-height: 44px; }
.z-row .z-tile-icon { width: 36px; height: 36px; border-radius: 11px; flex: none; }
.z-sheet-link { align-self: center; display: inline-flex; align-items: center; gap: 4px; color: #6B49E0; }

/* Referrals */
.z-ref-hero { overflow: hidden; align-items: flex-start; }
.z-ref-hero::before { content: ""; position: absolute; left: -80px; top: -100px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 201, 92, .22), rgba(228, 79, 208, .1) 55%, transparent 70%); pointer-events: none; }
.z-ref-badge { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; color: #FFFFFF; background: linear-gradient(145deg, #FFC95C, #E44FD0); box-shadow: 0 12px 26px -10px rgba(255, 160, 92, .9), inset 0 1px 0 rgba(255, 255, 255, .45); }
.z-ref-big { margin: 0; font-family: var(--z-display); font-weight: 700; font-size: 26px; line-height: 1.15; letter-spacing: -.02em; }
.z-steps { list-style: none; counter-reset: s; margin: 4px 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.z-steps li { counter-increment: s; position: relative; padding-left: 44px; display: flex; flex-direction: column; gap: 2px; min-height: 32px; }
.z-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 15px; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #FFFFFF; background: var(--z-grad-btn); box-shadow: 0 6px 14px -6px rgba(138, 77, 255, .9); }
.z-steps li span { color: var(--z-muted); font-size: 14px; }
.z-sheet .z-steps li span { color: var(--z-porcelain-muted); }
.z-ios-share { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: rgba(84, 104, 255, .18); color: #5468FF; vertical-align: -6px; }
.z-terms { margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(6, 4, 22, .45); font-size: 13px; color: var(--z-muted); white-space: pre-wrap; }
.z-copybox { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: var(--z-radius); background: rgba(6, 4, 22, .55); border: 1px solid var(--z-line); }
.z-copybox code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; color: var(--z-accent-strong); }
.z-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.z-stat { padding: 14px 12px; border-radius: 18px; background: var(--z-glass); border: 1px solid var(--z-line); display: flex; flex-direction: column; gap: 2px; text-align: center; }
.z-stat strong { font-family: var(--z-display); font-size: 19px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.z-stat small { color: var(--z-muted); font-size: 12px; font-weight: 600; }
.z-stat:nth-child(5) { background: linear-gradient(rgba(30, 20, 72, .95), rgba(30, 20, 72, .95)) padding-box, var(--z-grad) border-box; border-color: transparent; }
.z-payout { display: flex; flex-direction: column; gap: 12px; padding-top: 6px; border-top: 1px solid var(--z-line); }
.z-card.is-danger-zone { border-color: rgba(255, 157, 184, .35); }
.z-tips { margin: 0; padding-left: 20px; color: var(--z-muted); font-size: 14px; display: flex; flex-direction: column; gap: 6px; }

/* Home nudges (install, notifications) */
.z-nudge { flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid transparent; background: linear-gradient(rgba(24, 16, 60, .9), rgba(24, 16, 60, .9)) padding-box, var(--z-grad) border-box; }
.z-nudge > img { border-radius: 13px; flex: none; box-shadow: 0 8px 18px -8px rgba(138, 77, 255, .9); }
.z-nudge strong { font-size: 15px; }
.z-nudge-actions { display: flex; flex-direction: column; align-items: center; gap: 0; flex: none; }
.z-nudge-actions .z-link { min-height: 34px; padding: 6px 4px 0; font-size: 13px; color: var(--z-muted); }

/* Announcements */
.z-backdrop.is-ann { z-index: 50; background: rgba(8, 4, 26, .72); }
.z-ann {
  position: fixed; z-index: 51; left: 50%; top: 50%; width: min(420px, calc(100% - 32px)); max-height: calc(100% - 48px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); overflow: auto;
  transform: translate(-50%, -50%); border-radius: 28px; border: 1px solid transparent; outline: none;
  background: linear-gradient(180deg, rgba(34, 24, 80, .98), rgba(16, 10, 42, .98)) padding-box, var(--z-grad) border-box;
  box-shadow: 0 30px 80px -20px rgba(3, 1, 16, .95), 0 0 60px -20px rgba(138, 77, 255, .8);
  animation: z-pop .32s var(--z-ease) both;
}
@keyframes z-pop { from { transform: translate(-50%, -46%) scale(.94); opacity: 0; } to { transform: translate(-50%, -50%); opacity: 1; } }
.z-ann-x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 18px; border: 0; display: grid; place-items: center; color: #FFFFFF; background: rgba(8, 4, 26, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); cursor: pointer; }
.z-ann-media { display: block; width: 100%; max-height: 46vh; object-fit: cover; background: #08061A; border-radius: 27px 27px 0 0; }
.z-ann-media.is-embed { position: relative; height: 0; padding-bottom: 56.25%; max-height: none; }
.z-ann-media.is-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 27px 27px 0 0; }
.z-ann-body { padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.z-ann-body h2 { margin: 0; padding-right: 30px; font-family: var(--z-display); font-weight: 700; font-size: 23px; line-height: 1.2; letter-spacing: -.015em; }
.z-ann-media + .z-ann-body h2 { padding-right: 0; }
.z-ann-body p { margin: 0; color: var(--z-muted); white-space: pre-line; }
.z-ann-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.z-ann-banner { flex-direction: row; align-items: flex-start; gap: 12px; padding: 14px 12px 14px 16px; }
.z-ann-banner strong { font-size: 15px; }
.z-ann-banner .z-link { min-height: 30px; padding: 4px 0 0; }
.z-ann-thumb { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: none; }

/* Pull to refresh */
html.z-ptr-on, html.z-ptr-on body { overscroll-behavior-y: contain; }
.z-ptr {
  position: fixed; top: calc(env(safe-area-inset-top) + 4px); left: 50%; z-index: 70; width: 42px; height: 42px; border-radius: 21px; pointer-events: none;
  display: grid; place-items: center; color: var(--z-accent-strong); border: 1px solid transparent;
  background: linear-gradient(rgba(26, 18, 64, .96), rgba(26, 18, 64, .96)) padding-box, var(--z-grad) border-box;
  box-shadow: 0 10px 24px -8px rgba(3, 1, 16, .9), 0 0 18px -6px rgba(124, 92, 255, .9);
}
.z-ptr span { display: grid; place-items: center; transition: color .15s; }
.z-ptr.is-ready span, .z-ptr.is-busy span { color: #FFFFFF; }
.z-ptr.is-busy span { animation: z-spin .8s linear infinite; }
.z-ptr:not(.is-busy) { transition: none; }
@keyframes z-spin { to { transform: rotate(360deg); } }

/* Sign-up form extras */
.z-captcha { display: flex; justify-content: center; min-height: 78px; }
.z-captcha-note { margin: -4px 0 0; font-size: 11px; color: var(--z-muted); text-align: center; }
.z-captcha-note a { color: var(--z-accent); }
.grecaptcha-badge { visibility: visible; }

@media (max-width: 380px) {
  .z-two { grid-template-columns: 1fr; }
  .z-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .z-ann, .z-ptr.is-busy span { animation: none; }
}
.z-menu-row .z-row-title, .z-code-cta .z-row-title, .z-profile.is-link .z-row-main > span:first-child { color: var(--z-ink); }

/* ===================== 0.7.0: home slides, avatar menu, help & feedback ===================== */
.z-slides { position: relative; margin: -4px -4px 0; }
.z-slides-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 26px; -webkit-overflow-scrolling: touch; box-shadow: 0 22px 44px -22px rgba(3, 1, 16, .9), 0 0 0 1px rgba(214, 198, 255, .14); }
.z-slides-track::-webkit-scrollbar { display: none; }
.z-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; aspect-ratio: 2 / 1; min-height: 188px; max-height: 300px; overflow: hidden; display: flex; align-items: flex-end; color: #FFFFFF; isolation: isolate; }
.z-slide::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .22), transparent 55%), var(--z-gloss); opacity: .55; }
.z-slide.has-media.is-dark::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8, 4, 26, 0) 25%, rgba(8, 4, 26, .78) 100%); }
.z-slide.has-media::after { opacity: .25; }
.z-slide-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; border: 0; }
.z-slide-media.is-embed { width: 180%; height: 180%; left: -40%; top: -40%; pointer-events: none; }
.z-slide-body { position: relative; z-index: 2; padding: 18px 20px 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; max-width: 78%; }
.z-slide-kicker { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .92; }
.z-slide h2 { margin: 0; font-family: var(--z-display); font-weight: 700; font-size: 22px; line-height: 1.15; letter-spacing: -.015em; text-shadow: 0 2px 12px rgba(8, 4, 26, .35); }
.z-slide p { margin: 0; font-size: 14px; line-height: 1.4; opacity: .94; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 8px rgba(8, 4, 26, .35); }
.z-slide-btn { margin-top: 8px; display: inline-flex; align-items: center; gap: 4px; min-height: 38px; padding: 0 12px 0 16px; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .94); color: var(--z-porcelain-ink); font-weight: 800; font-size: 14px; cursor: pointer; box-shadow: 0 8px 20px -8px rgba(8, 4, 26, .7); }
.z-slide-btn:active { transform: scale(.97); }
.z-slide-art { position: absolute; z-index: 2; right: 18px; top: 50%; transform: translateY(-58%) rotate(-8deg); width: 82px; height: 82px; border-radius: 24px; display: grid; place-items: center; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .35); box-shadow: 0 18px 30px -12px rgba(8, 4, 26, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); overflow: hidden; }
.z-slide-art img { width: 100%; height: 100%; object-fit: cover; }
.z-slide-art span { font-family: var(--z-display); font-weight: 800; font-size: 40px; }
.z-slides-dots { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 3; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.z-slides-dots button { pointer-events: auto; position: relative; width: 7px; height: 7px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .45); cursor: pointer; overflow: hidden; transition: width .3s var(--z-ease); }
.z-slides-dots button::before { content: ""; position: absolute; inset: -10px -4px; }
.z-slides-dots button.is-on { width: 26px; background: rgba(255, 255, 255, .4); }
.z-slides-dots button.is-on:not(:has(i)) { background: #FFFFFF; }
.z-slides-dots i { position: absolute; inset: 0; border-radius: 4px; background: #FFFFFF; transform-origin: left; animation: z-dot linear both; }
@keyframes z-dot { from { transform: scaleX(0); } to { transform: none; } }
@media (min-width: 700px) { .z-slide h2 { font-size: 28px; } .z-slide p { font-size: 15px; } .z-slide-art { width: 110px; height: 110px; right: 32px; } }

/* Avatar menu */
.z-msheet { display: flex; flex-direction: column; gap: 2px; }
.z-msheet-row { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 6px 4px; border: 0; background: none; border-bottom: 1px solid #E6DEF7; color: var(--z-porcelain-ink); font: inherit; font-weight: 700; font-size: 16px; text-align: left; text-decoration: none; cursor: pointer; }
.z-msheet-row:last-child { border-bottom: 0; }
.zyckar-shell .z-msheet-row { color: var(--z-porcelain-ink); }
.zyckar-shell .z-msheet-row.is-out { color: #B4234A; }
.z-menu-icon.is-help, .z-menu-icon.is-chat { background: linear-gradient(145deg, #2BC4D9, #5468FF); }
.z-menu-icon.is-admin { background: linear-gradient(145deg, #1D1242, #5B2BD9); }
.z-menu-icon.is-out { background: linear-gradient(145deg, #FF7A9A, #B4234A); }
.z-menu-icon.is-idea { background: linear-gradient(145deg, #FFC95C, #E07A1F); }
.z-menu-icon.is-bug { background: linear-gradient(145deg, #FF7A9A, #E44FD0); }

/* Help & feedback */
.z-help-chat { flex-direction: row; align-items: center; gap: 14px; border: 1px solid transparent; background: linear-gradient(rgba(24, 16, 60, .9), rgba(24, 16, 60, .9)) padding-box, linear-gradient(120deg, #3FD8F5, #5468FF) border-box; }
.z-help-chat .z-menu-icon { width: 46px; height: 46px; border-radius: 15px; }
.z-help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.z-help-tile { align-items: flex-start; text-align: left; gap: 8px; font: inherit; color: var(--z-ink); cursor: pointer; min-height: 132px; }
.z-help-tile strong { font-size: 16px; }
.z-textarea { min-height: 130px; padding: 12px 16px; resize: vertical; line-height: 1.45; font-family: inherit; }
.z-shot-prev { position: relative; align-self: flex-start; }
.z-shot-prev img { display: block; max-width: 220px; max-height: 260px; border-radius: 12px; border: 1px solid var(--z-line); }
.z-shot-prev .z-icon-btn { position: absolute; top: 6px; right: 6px; background: rgba(8, 4, 26, .7); }
.z-pill.is-fb-planned, .z-pill.is-fb-progress, .z-pill.is-fb-reviewing { background: rgba(185, 154, 255, .18); color: var(--z-accent-strong); }
.z-pill.is-fb-done, .z-pill.is-fb-fixed { background: rgba(127, 227, 196, .16); color: var(--z-success); }
.z-pill.is-fb-declined, .z-pill.is-fb-closed { background: rgba(255, 255, 255, .08); color: var(--z-muted); }
@media (max-width: 360px) { .z-help-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .z-slides-dots i { animation: none; } }

/* 0.8.0: coming soon slides, payment history, cancel plan, contact us */
.z-slide-art.is-emoji span { font-size: 44px; font-weight: 400; line-height: 1; }
.z-slide-btn.is-on { background: rgba(255, 255, 255, .22); color: #FFFFFF; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.z-slide-btn svg:first-child { margin-left: -4px; }
.z-pay { align-items: flex-start; padding: 12px 0; }
.z-pay-amount { display: flex; flex-direction: column; align-items: flex-end; font-weight: 700; white-space: nowrap; padding-top: 1px; }
.z-pay-amount small { color: var(--z-muted); font-weight: 600; font-size: 12px; }
.z-pay-links { display: flex; gap: 14px; margin-top: 4px; }
.z-pay-links .z-link { font-size: 13px; padding: 0; min-height: 28px; }
.z-receipt-id { border: 0; padding: 0; background: none; color: inherit; font: 600 12px ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .02em; cursor: copy; text-decoration: underline dotted; text-underline-offset: 3px; }
.z-renew { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: rgba(224, 122, 31, .10); border: 1px solid rgba(224, 122, 31, .35); }
.z-renew p { margin: 0; font-size: 14px; line-height: 1.45; }
.z-card.is-porcelain .z-renew p { color: var(--z-porcelain-ink); }
.z-cancel-link { align-self: flex-start; font-size: 13px; opacity: .85; }
.z-card.is-porcelain .z-cancel-link { color: var(--z-porcelain-muted); }
.z-cancel-form { display: flex; flex-direction: column; gap: 16px; }
.z-reasons { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.z-reasons legend { padding: 0 0 8px; font-weight: 700; color: var(--z-porcelain-ink); font-size: 15px; }
.z-reason { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid #DCD3F2; background: #FFFFFF; color: var(--z-porcelain-ink); font-size: 15px; cursor: pointer; }
.z-reason.is-on { border-color: #7C5CFF; background: #F3EEFF; box-shadow: 0 0 0 1px #7C5CFF; }
.z-reason input { accent-color: #7C5CFF; width: 18px; height: 18px; margin: 0; }
.z-sheet .z-textarea { background: #FFFFFF; color: var(--z-porcelain-ink); border-color: #DCD3F2; box-shadow: none; }
.z-menu-icon.is-contact { background: linear-gradient(145deg, #3FD8F5, #5468FF); }
.z-help-grid > :first-child:nth-last-child(3), .z-help-grid > :only-child { grid-column: 1 / -1; }
.z-banner.is-info { background: rgba(63, 216, 245, .10); border-color: rgba(63, 216, 245, .4); }

/* 0.9.0: Profiles section */
.z-plain-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; color: var(--z-muted); line-height: 1.45; font-size: 15px; }
.z-plain-list li { display: flex; gap: 10px; align-items: flex-start; }
.z-plain-list svg { flex: none; margin-top: 2px; color: var(--z-accent); }
.z-row-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.z-row-actions .z-btn { flex: 1 1 auto; }
.z-row .z-row-actions { flex: none; }
.z-row .z-row-actions .z-btn { flex: none; }
.z-form { display: flex; flex-direction: column; gap: 14px; }
.z-menu-icon.is-profiles { background: linear-gradient(145deg, #5BD6A2, #2B8F86); }

/* ===================== 0.10.0: tours, in-app extras, streaks, buddies, languages, profile add-on ===================== */
.z-tour { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.z-tour-app .z-tile-icon { width: 56px; height: 56px; border-radius: 17px; }
.z-tour-emoji { font-size: 44px; line-height: 1; filter: drop-shadow(0 8px 14px rgba(124, 92, 255, .35)); }
.z-tour-title { margin: 0; font-family: var(--z-display); font-weight: 700; font-size: 22px; line-height: 1.2; color: var(--z-porcelain-ink); }
.z-tour-text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--z-porcelain-muted); max-width: 440px; }
.z-tour-dots { display: flex; gap: 6px; margin: 6px 0 2px; }
.z-tour-dots i { width: 7px; height: 7px; border-radius: 4px; background: #D8CEF2; transition: width .25s var(--z-ease); }
.z-tour-dots i.is-on { width: 22px; background: linear-gradient(90deg, #5468FF, #CF3597); }
.z-tour .z-sheet-actions { width: 100%; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.z-tour-apps { list-style: none; margin: 4px 0 0; padding: 0; width: 100%; text-align: left; display: flex; flex-direction: column; gap: 2px; max-height: 42vh; overflow: auto; }
.z-tour-apps li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 2px; border-bottom: 1px solid #ECE5FA; }
.z-tour-apps .z-tile-icon { width: 38px; height: 38px; border-radius: 12px; flex: none; }
.z-tour-apps strong { display: flex; align-items: center; gap: 5px; color: var(--z-porcelain-ink); font-size: 15px; }
.z-tour-apps strong svg { color: var(--z-porcelain-muted); }
.z-tour-apps small { display: block; color: var(--z-porcelain-muted); font-size: 13px; line-height: 1.4; }
.z-lang-pick { width: 100%; text-align: left; }
.z-sheet .z-lang-pick select, .z-lang-pick select { width: 100%; min-height: 46px; border-radius: 12px; border: 1px solid #DCD3F2; background: #FFFFFF; color: var(--z-porcelain-ink); font: inherit; padding: 0 12px; }

/* In-app extras: announcements, slides and the streak, at the top of a mini app's main screen */
.z-extras { display: flex; flex-direction: column; gap: 10px; margin: 0 0 14px; font-family: var(--z-font); color: var(--z-ink); text-align: left; }
.z-extras .z-ann-banner { margin: 0; }
.z-slides.is-compact { margin: 0; }
.z-slides.is-compact .z-slide { aspect-ratio: 2.4 / 1; min-height: 136px; max-height: 210px; }
.z-slides.is-compact .z-slides-track { border-radius: 20px; }
.z-slides.is-compact .z-slide-body { padding: 14px 16px 24px; gap: 3px; max-width: 74%; }
.z-slides.is-compact .z-slide h2 { font-size: 18px; }
.z-slides.is-compact .z-slide p { font-size: 13px; -webkit-line-clamp: 2; }
.z-slides.is-compact .z-slide-btn { min-height: 32px; font-size: 13px; margin-top: 4px; }
.z-slides.is-compact .z-slide-art { width: 64px; height: 64px; border-radius: 19px; right: 14px; }
.z-slides.is-compact .z-slide-art span { font-size: 30px; }
.z-streak-chip { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 8px 12px 8px 14px; border-radius: 18px; border: 1px solid rgba(255, 201, 92, .32); background: linear-gradient(120deg, rgba(255, 154, 107, .18), rgba(124, 92, 255, .16)); color: inherit; font: inherit; text-align: left; cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.z-streak-chip > span:first-child { font-size: 24px; line-height: 1; }
.z-streak-chip-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.z-streak-chip-main strong { font-size: 15px; font-weight: 800; }
.z-streak-chip-main small { font-size: 12px; opacity: .78; }
.z-streak-chip.is-done { border-color: rgba(127, 227, 196, .45); }
.z-streak-chip.is-risk { border-color: rgba(255, 157, 184, .6); }
.z-streak-chip-buddies { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 99px; background: rgba(255, 255, 255, .12); font-weight: 800; font-size: 13px; }
.z-streak-chip-buddies .z-dot { position: absolute; top: -6px; right: -6px; }
.z-streak-hero { display: flex; align-items: center; gap: 14px; }
.z-streak-flame { font-size: 46px; line-height: 1; }
.z-streak-hero strong { display: block; font-family: var(--z-display); font-size: 28px; color: var(--z-porcelain-ink); }
.z-streak-hero .z-muted { color: var(--z-porcelain-muted); font-size: 14px; }
.z-streak-week { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.z-streak-week li { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.z-streak-week small { font-size: 11px; font-weight: 700; color: var(--z-porcelain-muted); }
.z-streak-dot { width: 34px; height: 34px; border-radius: 17px; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: #EEE8FB; color: #A99CCF; }
.z-streak-week .is-done .z-streak-dot { background: linear-gradient(135deg, #FF9A6B, #F2558F); color: #FFFFFF; }
.z-streak-week .is-free .z-streak-dot { background: #DDF6EE; }
.z-streak-week .is-today .z-streak-dot { box-shadow: inset 0 0 0 2px #B99AFF; color: #7C5CFF; }
.z-streak-free { font-size: 14px; }
.z-sheet .z-h3, .z-h3 { margin: 6px 0 0; font-family: var(--z-display); font-size: 17px; font-weight: 600; color: var(--z-porcelain-ink); }
.z-buddy img { width: 40px; height: 40px; border-radius: 20px; object-fit: cover; flex: none; background: #E6DEF7; }
.z-sheet .z-buddy .z-row-title { color: var(--z-porcelain-ink); }
.z-sheet .z-buddy .z-row-meta { color: var(--z-porcelain-muted); }
.z-buddy-invite { display: flex; flex-direction: column; gap: 8px; }
.z-buddy-card .z-buddy + .z-buddy { border-top: 1px solid var(--z-line); padding-top: 10px; }
.z-buddy-card .z-row-actions, .z-buddy .z-row-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.z-sheet .z-link { color: #6B45E0; }

/* Launcher marks */
.z-tile-updated { position: absolute; top: -4px; left: calc(50% - 40px); display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px 1px 4px; border-radius: 8px; font-size: 9px; font-weight: 800; letter-spacing: .02em; color: #062A20; background: linear-gradient(120deg, #9FF5DA, #7FE3C4); box-shadow: 0 3px 8px -3px rgba(127, 227, 196, .8); }
.z-tile-updated i { width: 5px; height: 5px; border-radius: 3px; background: #0E7A5A; }
.z-tile-streak { position: absolute; top: 42px; left: calc(50% + 14px); padding: 1px 5px; border-radius: 8px; font-size: 10px; font-weight: 800; background: rgba(27, 20, 66, .92); border: 1px solid rgba(255, 201, 92, .5); color: #FFE29A; }
.z-tile-streak.is-done { border-color: rgba(127, 227, 196, .6); }

/* Languages */
.z-lang-list { list-style: none; margin: 0; padding: 0; }
.z-lang-row { width: 100%; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 12px; }
.z-lang-row.is-on { background: rgba(185, 154, 255, .14); }
.z-lang-row.is-on svg { color: var(--z-success); }
.z-auth-lang { margin-top: 18px; display: flex; justify-content: center; }
.z-auth-lang select { background: transparent; color: var(--z-muted); border: 1px solid var(--z-line); border-radius: 10px; padding: 6px 10px; font: inherit; font-size: 14px; }
.z-auth-lang option { color: #111; }

/* Extra profile add-on */
.z-stepper { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 6px 0; }
.z-stepper output { display: flex; flex-direction: column; align-items: center; min-width: 92px; }
.z-stepper output strong { font-family: var(--z-display); font-size: 30px; line-height: 1.1; }
.z-stepper output small { color: var(--z-muted); font-size: 12px; }

/* Right-to-left languages */
[dir="rtl"] .z-row, [dir="rtl"] .z-menu-row, [dir="rtl"] .z-streak-chip, [dir="rtl"] .z-tour-apps li { text-align: right; }
[dir="rtl"] .z-slide-body { align-items: flex-end; text-align: right; margin-left: auto; }
[dir="rtl"] .z-slide-art { right: auto; left: 18px; }
[dir="rtl"] svg[data-flip], [dir="rtl"] .z-back svg, [dir="rtl"] .z-menu-row > svg:last-child, [dir="rtl"] .z-streak-chip > svg:last-child { transform: scaleX(-1); }
.z-buddy-card .z-row { flex-wrap: wrap; align-items: center; }
.z-buddy-card .z-row-main { flex: 1 1 60%; min-width: 0; }
.z-buddy-card .z-row-actions { width: 100%; padding-left: 52px; }
.z-sheet .z-buddy { flex-wrap: wrap; }
.z-sheet .z-buddy .z-row-main { flex: 1 1 50%; min-width: 0; }
