/* ============================================================
   Tech Interview Prep v8 — Axis-leaning full app
   Plum + Gold premium banking aesthetic
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

:root {
  --bg: #faf6ee;
  --bg-2: #f1ebde;
  --bg-3: #e8dfcc;
  --ink: #1a0f1a;
  --ink-2: #4a3744;
  --ink-3: #6b5a68;
  --muted: #8a7d8a;
  --hair: rgba(26,15,26,0.1);
  --hair-2: rgba(26,15,26,0.06);
  --plum: #5B1A47;
  --plum-deep: #340d29;
  --plum-mid: #7a2c63;
  --plum-soft: #f3e6ee;
  --plum-tint: #faf2f6;
  --gold: #D4A24C;
  --gold-deep: #a07b30;
  --gold-light: #e8c478;
  --gold-soft: #f7eed7;
  --green: #2A6B47;
  --green-soft: #dcebe2;
  --red: #B33A3A;
  --red-soft: #f5dcdc;
  --blue: #2F4A7A;
  --blue-soft: #dde6f3;
  --status: #1a0f1a;
  --card: #ffffff;
  --card-elev: 0 12px 32px -14px rgba(91,26,71,0.18);
  --card-elev-sm: 0 4px 14px -6px rgba(26,15,26,0.12);
}

body {
  font-family: "Plus Jakarta Sans", -apple-system, system-ui, sans-serif;
  background:
    radial-gradient(1200px 700px at 20% 0%, rgba(91,26,71,0.06), transparent 60%),
    radial-gradient(1000px 700px at 80% 100%, rgba(212,162,76,0.08), transparent 60%),
    #f3f1ec;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

/* canvas */
.canvas { padding: 48px 36px 80px; max-width: 2700px; margin: 0 auto; }
.canvas-head { padding-bottom: 28px; border-bottom: 1px solid rgba(20,19,26,0.1); margin-bottom: 32px; }
.canvas-eyebrow { font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.55; font-weight: 700; }
.canvas-title { font-family: "Fraunces", serif; font-size: 38px; font-weight: 500; letter-spacing: -0.024em; margin: 8px 0 0; line-height: 1.05; color: var(--ink); }
.canvas-title em { font-style: italic; font-weight: 400; color: var(--plum); }
.canvas-sub { margin-top: 12px; opacity: 0.7; font-size: 14px; max-width: 78ch; line-height: 1.65; }

/* sections */
.section-head {
  margin: 32px 0 18px; padding: 18px 22px;
  background: linear-gradient(120deg, var(--plum) 0%, var(--plum-deep) 100%);
  color: #fff; border-radius: 18px;
  display: flex; align-items: baseline; gap: 12px;
}
.section-head .badge {
  font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  opacity: 0.85; padding: 4px 10px; border-radius: 999px;
  background: rgba(212,162,76,0.25); color: var(--gold-light);
}
.section-head h2 { font-family: "Fraunces", serif; font-weight: 500; font-size: 22px; margin: 0; letter-spacing: -0.018em; }
.section-head h2 em { font-style: italic; font-weight: 400; color: var(--gold-light); }
.section-head .ref { margin-left: auto; font-size: 11px; opacity: 0.8; font-weight: 500; }

.frames {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 40px 28px;
  justify-items: center;
  max-width: 1700px;
  margin: 0 auto;
}
.frame-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.frame-cap {
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0.55; font-weight: 700; text-align: center; line-height: 1.6;
}
.frame-cap b { color: var(--ink); opacity: 1; }

/* device */
.device {
  width: 360px; height: 780px; border-radius: 50px;
  background: #000; padding: 8px;
  box-shadow:
    0 0 0 0.5px #4a3f3a,
    0 0 0 9px #14131a,
    0 0 0 9.5px #2a2630,
    0 50px 100px -30px rgba(20,19,26,0.45),
    0 25px 50px -20px rgba(91,26,71,0.18);
  flex-shrink: 0;
}
.screen {
  width: 100%; height: 100%; border-radius: 42px;
  overflow: hidden; position: relative;
  background: var(--bg); color: var(--ink);
  font-family: "Plus Jakarta Sans", sans-serif;
}
.island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 116px; height: 32px; background: #000; border-radius: 18px; z-index: 100; }
.home-ind { position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%); width: 124px; height: 5px; border-radius: 999px; background: var(--ink); opacity: 0.25; z-index: 100; }
.home-ind.light { background: #fff; opacity: 0.6; }

.status-bar {
  height: 50px; padding: 16px 28px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13.5px; font-weight: 700; letter-spacing: -0.005em;
  position: relative; z-index: 5;
  color: var(--status);
}
.status-bar.light { color: #fff; }
.sigb { display: flex; gap: 2px; align-items: flex-end; height: 10px; }
.sigb i { width: 3px; background: currentColor; border-radius: 1px; }
.sigb i:nth-child(1) { height: 4px; } .sigb i:nth-child(2) { height: 6px; }
.sigb i:nth-child(3) { height: 8px; } .sigb i:nth-child(4) { height: 10px; }
.bat { width: 24px; height: 11px; border: 1px solid currentColor; border-radius: 3px; padding: 1px; opacity: 0.85; position: relative; }
.bat::after { content: ""; position: absolute; right: -3px; top: 3px; width: 2px; height: 4px; background: currentColor; border-radius: 1px; }
.bat i { display: block; height: 100%; width: 78%; background: currentColor; border-radius: 1px; }
.stat-icons { display: flex; align-items: center; gap: 6px; }

.body-region { position: absolute; top: 50px; left: 0; right: 0; bottom: 70px; overflow: hidden; }
.body-region.no-tab { bottom: 0; }
.scroll { position: absolute; inset: 0; overflow-y: auto; scrollbar-width: none; }
.scroll::-webkit-scrollbar { display: none; }

/* tabbar */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 70px; padding: 8px 14px 22px;
  background: var(--bg);
  border-top: 1px solid var(--hair);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  z-index: 30;
}
.tab {
  border: 0; background: transparent; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--muted); font: inherit;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 4px 0; border-radius: 10px;
}
.tab.active { color: var(--plum); }

/* axis hero (reused on Home) */
.ax-hero {
  background: linear-gradient(160deg, var(--plum) 0%, var(--plum-deep) 100%);
  color: #fff;
  padding: 14px 18px 70px;
  position: relative;
  overflow: hidden;
}
.ax-hero::before {
  content: ""; position: absolute; left: -40px; top: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,162,76,0.18) 0%, transparent 65%);
}
.ax-hero::after {
  content: "";
  position: absolute; right: -10px; bottom: 30px;
  width: 220px; height: 100px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 100' fill='none' stroke='%23D4A24C' stroke-width='0.5' opacity='0.35'><path d='M0 80 Q 55 20, 110 50 T 220 30'/><path d='M0 60 Q 55 10, 110 40 T 220 20'/></svg>") no-repeat;
}
.ax-top { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.ax-top .av {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--plum-deep); display: grid; place-items: center;
  font-family: "Fraunces", serif; font-weight: 700; font-style: italic; font-size: 17px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}
.ax-top .greet { flex: 1; }
.ax-top .greet .h { font-size: 11px; font-weight: 600; opacity: 0.7; letter-spacing: 0.04em; }
.ax-top .greet .nm { font-family: "Fraunces", serif; font-weight: 500; font-size: 16px; letter-spacing: -0.014em; }
.ax-top .greet .nm em { font-style: italic; }
.ax-top .ic-r { display: flex; gap: 8px; }
.ax-top .ic-r .b { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.1); display: grid; place-items: center; color: #fff; position: relative; }
.ax-top .ic-r .b .dot { position: absolute; top: 2px; right: 2px; width: 7px; height: 7px; background: var(--gold); border-radius: 50%; border: 1.5px solid var(--plum-deep); }

.ax-stat-card {
  margin-top: 22px; position: relative; z-index: 1;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), transparent),
    rgba(255,255,255,0.04);
  border: 1px solid rgba(212,162,76,0.35);
  border-radius: 18px;
  padding: 18px;
}
.ax-stat-card .label {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold);
}
.ax-stat-card .label::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}
.ax-stat-card h2 { font-family: "Fraunces", serif; font-weight: 500; font-size: 26px; letter-spacing: -0.022em; margin: 6px 0 0; line-height: 1.1; }
.ax-stat-card h2 em { font-style: italic; }
.ax-stat-card .nums { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.ax-stat-card .ni .n { font-family: "Fraunces", serif; font-size: 22px; font-weight: 500; letter-spacing: -0.022em; line-height: 1; }
.ax-stat-card .ni .n small { font-size: 11px; opacity: 0.7; margin-left: 2px; font-family: "Plus Jakarta Sans", sans-serif; font-weight: 600; }
.ax-stat-card .ni .l { font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-top: 5px; }

/* qa tray */
.qa-tray {
  margin: -50px 14px 0; position: relative; z-index: 5;
  background: #fff; border-radius: 18px;
  padding: 18px 14px;
  box-shadow: 0 18px 36px -16px rgba(26,15,26,0.18), 0 0 0 1px rgba(212,162,76,0.18);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 6px;
}
.qa { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.qa .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--plum-soft); color: var(--plum); display: grid; place-items: center; border: 1px solid rgba(91,26,71,0.12); }
.qa.gold .ic { background: var(--gold-soft); color: var(--gold-deep); border-color: rgba(212,162,76,0.25); }
.qa .lb { font-size: 9.5px; font-weight: 700; color: var(--ink); text-align: center; line-height: 1.25; letter-spacing: -0.005em; }

.premium-banner {
  margin: 14px; padding: 14px 16px;
  background: linear-gradient(115deg, var(--ink) 0%, var(--plum-deep) 100%);
  border-radius: 16px; color: #fff;
  display: flex; align-items: center; gap: 12px;
  position: relative; overflow: hidden;
  border: 1px solid rgba(212,162,76,0.35);
}
.premium-banner::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 80px; background: radial-gradient(circle at right, rgba(212,162,76,0.25), transparent 60%); }
.premium-banner .crown {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--plum-deep); display: grid; place-items: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
  flex: 0 0 auto; position: relative; z-index: 1;
}
.premium-banner .t { flex: 1; position: relative; z-index: 1; }
.premium-banner .t h4 { font-family: "Fraunces", serif; font-size: 15px; font-weight: 500; margin: 0; letter-spacing: -0.014em; }
.premium-banner .t h4 em { font-style: italic; color: var(--gold); }
.premium-banner .t p { margin: 2px 0 0; font-size: 11px; opacity: 0.7; }
.premium-banner .arr { position: relative; z-index: 1; color: var(--gold); }

/* section heading inside screens */
.b-sec { padding: 10px 18px 8px; display: flex; align-items: baseline; justify-content: space-between; }
.b-sec h4 { font-family: "Fraunces", serif; font-size: 17px; font-weight: 500; letter-spacing: -0.018em; margin: 0; color: var(--ink); }
.b-sec h4 em { font-style: italic; color: var(--plum); }
.b-sec .more { font-size: 11px; font-weight: 700; color: var(--plum); }

.b-row {
  display: grid; grid-template-columns: 44px 1fr auto;
  gap: 14px; align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--hair);
}
.b-row .ic {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--plum-soft); color: var(--plum);
  display: grid; place-items: center;
  font-family: "Fraunces", serif; font-style: italic; font-weight: 600; font-size: 18px;
}
.b-row .ic.gold { background: var(--gold-soft); color: var(--gold-deep); }
.b-row .ic.green { background: var(--green-soft); color: var(--green); }
.b-row .ic.blue { background: var(--blue-soft); color: var(--blue); }
.b-row .ic.red { background: var(--red-soft); color: var(--red); }
.b-row .nm { font-family: "Fraunces", serif; font-size: 15px; font-weight: 500; color: var(--ink); letter-spacing: -0.014em; }
.b-row .sub { font-size: 11px; color: var(--muted); margin-top: 2px; font-weight: 500; }
.b-row .sub b { color: var(--plum); font-weight: 700; }
.b-row .arr {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--plum-soft); color: var(--plum);
  display: grid; place-items: center;
}

/* generic page header (non-hero pages) */
.page-head {
  padding: 8px 16px 14px;
  display: flex; align-items: center; gap: 12px;
}
.page-head .bk {
  background: var(--bg-2); border: 0; color: var(--ink);
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
}
.page-head .ttl {
  flex: 1;
}
.page-head .ttl .eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.page-head .ttl h1 { font-family: "Fraunces", serif; font-size: 22px; font-weight: 500; letter-spacing: -0.022em; margin: 2px 0 0; line-height: 1.1; color: var(--ink); }
.page-head .ttl h1 em { font-style: italic; color: var(--plum); }
.page-head .tools { display: flex; gap: 6px; }
.page-head .tools button { background: var(--bg-2); border: 0; color: var(--ink); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }

/* search field */
.search-field {
  margin: 4px 16px 12px; padding: 11px 14px;
  background: #fff; border-radius: 12px;
  border: 1px solid var(--hair);
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--muted);
}
.search-field svg { color: var(--plum); }
.search-field .placeholder { flex: 1; font-weight: 500; }
.search-field .mic { color: var(--gold-deep); }

/* chips */
.chip-row {
  padding: 0 16px 10px;
  display: flex; gap: 8px; overflow-x: auto;
  scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; padding: 8px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--hair);
  font-size: 11.5px; font-weight: 700; color: var(--ink-2);
  letter-spacing: -0.005em;
  cursor: pointer;
}
.chip.active { background: var(--plum); color: #fff; border-color: var(--plum); }
.chip.gold { background: var(--gold-soft); color: var(--gold-deep); border-color: rgba(212,162,76,0.3); }

/* button styles (re-used) */
.btn {
  height: 50px; border-radius: 14px;
  font-family: "Plus Jakarta Sans"; font-size: 13px; font-weight: 700;
  border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  letter-spacing: -0.005em;
  width: 100%;
}
.btn.secondary { background: #fff; color: var(--ink); border: 1px solid var(--hair); }
.btn.primary {
  background: linear-gradient(135deg, var(--plum) 0%, var(--plum-deep) 100%); color: #fff;
  box-shadow: 0 10px 22px -8px rgba(91,26,71,0.5);
  border: 1px solid rgba(212,162,76,0.35);
}
.btn.primary span { color: var(--gold); }
.btn.gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%); color: var(--plum-deep);
  box-shadow: 0 10px 22px -8px rgba(212,162,76,0.5);
}

/* recommendation */
.rec-block {
  max-width: 980px; margin: 80px auto 40px; padding: 24px;
  background: linear-gradient(120deg, var(--plum-tint) 0%, transparent 70%);
  border-radius: 22px;
  border: 1px solid var(--hair);
}
.rec-block .lk { font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.55; font-weight: 700; margin-bottom: 12px; }
.rec-block h2 { font-family: 'Fraunces', serif; font-size: 26px; font-weight: 500; letter-spacing: -0.02em; margin: 0 0 14px; color: var(--ink); }
.rec-block h2 em { font-style: italic; color: var(--plum); }
.rec-block p { opacity: 0.78; font-size: 14.5px; line-height: 1.7; max-width: 70ch; margin: 0; color: var(--ink-2); }


/* ============================================================
   v9 component additions — screen-specific classes
   Sourced from Tech Interview Prep v9.html inline styles.
   ============================================================ */

/* ----- Splash ----- */
.splash {
  width: 100%; height: 100%;
  background: linear-gradient(170deg, var(--plum) 0%, var(--plum-deep) 70%, #1a0815 100%);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; padding: 0 32px;
}
.splash::before { content: ""; position: absolute; left: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(212,162,76,0.25) 0%, transparent 65%); }
.splash::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(212,162,76,0.15) 0%, transparent 65%); }
.splash-logo {
  position: relative; z-index: 1;
  width: 92px; height: 92px; border-radius: 26px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  display: grid; place-items: center;
  color: var(--plum-deep);
  font-family: "Fraunces", serif; font-style: italic; font-weight: 600; font-size: 48px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.4), 0 18px 36px -10px rgba(212,162,76,0.4);
  margin-bottom: 28px;
}
.splash h1 { position: relative; z-index: 1; font-family: "Fraunces", serif; font-weight: 500; font-size: 30px; margin: 0; letter-spacing: -0.024em; text-align: center; }
.splash h1 em { font-style: italic; color: var(--gold); }
.splash p { position: relative; z-index: 1; margin: 12px 0 0; font-size: 13px; opacity: 0.7; letter-spacing: 0.04em; text-align: center; max-width: 28ch; line-height: 1.55; }
.splash-loader { position: absolute; bottom: 80px; left: 50%; transform: translateX(-50%); width: 120px; height: 3px; border-radius: 999px; background: rgba(255,255,255,0.15); overflow: hidden; }
.splash-loader i { display: block; height: 100%; width: 60%; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: inherit; }
.splash-foot { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(212,162,76,0.6); font-weight: 700; }

/* ----- Onboarding ----- */
.onb { display: flex; flex-direction: column; height: 100%; padding: 0 22px; }
.onb-art { flex: 1; display: grid; place-items: center; background: var(--plum-tint); margin: 0 -22px; position: relative; overflow: hidden; }
.onb-art::before { content: ""; position: absolute; right: -50px; top: -50px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(212,162,76,0.3) 0%, transparent 65%); }
.onb-illust { width: 200px; height: 200px; border-radius: 26px; background: linear-gradient(160deg, var(--plum), var(--plum-deep)); display: grid; place-items: center; color: var(--gold); position: relative; z-index: 1; box-shadow: 0 24px 50px -16px rgba(91,26,71,0.4); border: 1px solid rgba(212,162,76,0.3); }
.onb-content { padding: 32px 4px 24px; }
.onb-content .step { font-size: 10.5px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 8px; }
.onb-content h1 { font-family: "Fraunces", serif; font-size: 26px; font-weight: 500; letter-spacing: -0.024em; margin: 0; line-height: 1.15; color: var(--ink); }
.onb-content h1 em { font-style: italic; color: var(--plum); }
.onb-content p { margin: 12px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); max-width: 32ch; }
.onb-dots { display: flex; gap: 6px; margin: 24px 0 16px; }
.onb-dots i { width: 24px; height: 4px; border-radius: 999px; background: var(--bg-3); }
.onb-dots i.on { background: var(--plum); width: 32px; }
.onb-foot { display: flex; gap: 10px; align-items: center; padding-bottom: 24px; }
.onb-foot .skip { background: none; border: 0; color: var(--muted); font: inherit; font-weight: 700; font-size: 13px; padding: 12px 0; cursor: pointer; }
.onb-foot .next { margin-left: auto; height: 50px; padding: 0 22px; border: 0; border-radius: 999px; background: linear-gradient(135deg, var(--plum), var(--plum-deep)); color: #fff; font: inherit; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 10px 22px -8px rgba(91,26,71,0.5); border: 1px solid rgba(212,162,76,0.35); cursor: pointer; }
.onb-foot .next span { color: var(--gold); }

/* topic-pick chips for onb-2 */
.pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.pick-cd { background: #fff; border: 1.5px solid var(--hair); border-radius: 14px; padding: 12px; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.pick-cd.on { border-color: var(--plum); background: var(--plum-soft); }
.pick-cd .ic { width: 32px; height: 32px; border-radius: 8px; background: var(--plum-soft); color: var(--plum); display: grid; place-items: center; font-family: "Fraunces", serif; font-style: italic; font-weight: 600; font-size: 14px; flex: 0 0 auto; }
.pick-cd.on .ic { background: var(--plum); color: var(--gold); }
.pick-cd .nm { font-size: 12px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.pick-cd .nm small { display: block; font-size: 9.5px; color: var(--muted); font-weight: 500; margin-top: 1px; }
.pick-cd .check { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--bg-3); flex: 0 0 auto; display: grid; place-items: center; }
.pick-cd.on .check { background: var(--plum); border-color: var(--plum); color: var(--gold); }

/* ----- Topics catalog (.topic-cd) ----- */
.topic-grid-page { padding: 2px 14px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.topic-cd {
  background: #fff; border: 1px solid var(--hair); border-radius: 14px;
  padding: 11px 11px 10px; position: relative;
  box-shadow: 0 1px 2px rgba(28,12,28,0.04);
  display: flex; flex-direction: column; min-height: 112px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.topic-cd::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,0) 60%, rgba(91,26,71,0.012) 100%); }
.topic-cd .top-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.topic-cd .ic {
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center; color: #fff;
  font-family: "Fraunces", serif; font-style: italic; font-weight: 600; font-size: 13px;
  flex: 0 0 auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 1px 3px rgba(28,12,28,0.10);
  letter-spacing: -0.02em;
}
.topic-cd .ic.plum { background: linear-gradient(135deg, #6b2253 0%, var(--plum-deep) 100%); }
.topic-cd .ic.gold { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: var(--plum-deep); }
.topic-cd .ic.green { background: linear-gradient(135deg, #2A6B47, #155633); }
.topic-cd .ic.blue { background: linear-gradient(135deg, #2F4A7A, #1c3258); }
.topic-cd .ic.red { background: linear-gradient(135deg, #B33A3A, #842525); }
.topic-cd .ic.indigo { background: linear-gradient(135deg, #4845B0, #2c2980); }
.topic-cd .ic.olive { background: linear-gradient(135deg, #6b7011, #404408); }
.topic-cd .ic.teal { background: linear-gradient(135deg, #0E7C7B, #064a49); }
.topic-cd .num-pill { font-family: "JetBrains Mono", monospace; font-size: 9px; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; display: inline-flex; align-items: center; gap: 3px; }
.topic-cd .num-pill::before { content: "≡"; font-size: 11px; color: var(--gold-deep); opacity: 0.75; }
.topic-cd .nm { font-family: "Fraunces", serif; font-size: 13.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.014em; line-height: 1.18; }
.topic-cd .tier-line { font-size: 8.5px; color: var(--muted); margin-top: 3px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.topic-cd .tier-line .dot { color: var(--gold-deep); margin: 0 4px; font-size: 7px; vertical-align: middle; }
.topic-cd .barwrap { margin-top: auto; padding-top: 9px; display: flex; align-items: center; gap: 7px; }
.topic-cd .bar { flex: 1; height: 2.5px; border-radius: 999px; background: rgba(91,26,71,0.07); overflow: hidden; }
.topic-cd .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--plum), #7d2d65); border-radius: inherit; }
.topic-cd .bar i.gold { background: linear-gradient(90deg, var(--gold), var(--gold-deep)); }
.topic-cd .pct { font-family: "JetBrains Mono", monospace; font-size: 9.5px; font-weight: 700; color: var(--plum); letter-spacing: -0.02em; }
.topic-cd.locked { background: linear-gradient(180deg, #fafafa, #f4f0f3); }
.topic-cd.locked .pct { color: var(--muted); }
.topic-cd .new { position: absolute; top: -5px; right: 9px; background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: var(--plum-deep); font-size: 8px; font-weight: 800; letter-spacing: 0.14em; padding: 2.5px 7px; border-radius: 999px; box-shadow: 0 3px 8px -2px rgba(212,162,76,0.55); }
.topic-cd .lock-pill { position: absolute; top: -5px; right: 9px; background: var(--plum-deep); color: var(--gold); font-size: 8px; font-weight: 800; letter-spacing: 0.14em; padding: 2.5px 7px; border-radius: 999px; display: inline-flex; align-items: center; gap: 3px; }

/* ----- Topic detail (.td-hero / .td-cta) ----- */
.td-hero { background: linear-gradient(160deg, var(--plum) 0%, var(--plum-deep) 100%); color: #fff; padding: 14px 18px 24px; position: relative; overflow: hidden; }
.td-hero::before { content: ""; position: absolute; right: -50px; top: -40px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(212,162,76,0.18) 0%, transparent 65%); }
.td-hero .tools-row { display: flex; align-items: center; gap: 8px; position: relative; z-index: 1; }
.td-hero .bk { background: rgba(255,255,255,0.12); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.td-hero .ic-r { margin-left: auto; display: flex; gap: 8px; }
.td-hero .ic-r .b { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.12); display: grid; place-items: center; color: #fff; }
.td-hero .meta-line { margin-top: 14px; position: relative; z-index: 1; font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.td-hero h1 { margin: 4px 0 0; font-family: "Fraunces", serif; font-size: 26px; font-weight: 500; letter-spacing: -0.022em; line-height: 1.1; position: relative; z-index: 1; }
.td-hero h1 em { font-style: italic; }
.td-hero .num-row { margin-top: 14px; display: flex; gap: 18px; position: relative; z-index: 1; }
.td-hero .ni .n { font-family: "Fraunces", serif; font-size: 18px; font-weight: 500; letter-spacing: -0.018em; line-height: 1; }
.td-hero .ni .n small { font-size: 10px; opacity: 0.7; margin-left: 1px; }
.td-hero .ni .l { font-size: 9px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-top: 4px; }
.td-hero .progrow { margin-top: 14px; position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; font-family: "JetBrains Mono", monospace; font-size: 10.5px; font-weight: 600; color: rgba(255,255,255,0.7); }
.td-hero .progrow .bar { flex: 1; height: 3px; border-radius: 999px; background: rgba(255,255,255,0.18); overflow: hidden; }
.td-hero .progrow .bar i { display: block; height: 100%; background: var(--gold); }

.td-cta { margin: -14px 14px 14px; position: relative; z-index: 5; background: #fff; border-radius: 16px; padding: 14px; display: flex; align-items: center; gap: 12px; box-shadow: var(--card-elev); border: 1px solid rgba(212,162,76,0.25); }
.td-cta .play { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--plum), var(--plum-deep)); color: var(--gold); display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(212,162,76,0.35); }
.td-cta .t { flex: 1; }
.td-cta .t h4 { font-family: "Fraunces", serif; font-size: 14px; font-weight: 500; letter-spacing: -0.014em; margin: 0; color: var(--ink); }
.td-cta .t h4 em { font-style: italic; color: var(--plum); }
.td-cta .t p { margin: 2px 0 0; font-size: 11px; color: var(--muted); }
.td-cta .arr { color: var(--plum); }

.card-list { padding: 0 14px 14px; }
.card-row { background: #fff; border: 1px solid var(--hair); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; }
.card-row.done .check { background: var(--green); border-color: var(--green); color: #fff; }
.card-row.partial .check { background: var(--gold); border-color: var(--gold); color: var(--plum-deep); }
.card-row .check { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--bg-3); display: grid; place-items: center; font-size: 11px; font-weight: 800; flex: 0 0 auto; }
.card-row .nm { font-family: "Fraunces", serif; font-size: 13.5px; font-weight: 500; color: var(--ink); letter-spacing: -0.012em; line-height: 1.3; }
.card-row .meta-line { font-size: 10px; color: var(--muted); margin-top: 2px; font-weight: 600; letter-spacing: 0.04em; }
.card-row .num { font-family: "JetBrains Mono", monospace; font-size: 11px; font-weight: 700; color: var(--muted); }

.section-title { padding: 12px 18px 6px; font-size: 10px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; align-items: baseline; }
.section-title .right { color: var(--plum); font-weight: 700; }

/* ----- Reader (.rb-top / .rb-card / .rb-tools / .rb-foot) ----- */
.rb-top { background: linear-gradient(160deg, var(--plum) 0%, var(--plum-deep) 100%); color: #fff; padding: 8px 16px 22px; position: relative; }
.rb-top .row1 { display: flex; align-items: center; gap: 12px; }
.rb-top .bk { background: rgba(255,255,255,0.1); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.rb-top .topic-line { font-size: 9.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.rb-top h3 { margin: 4px 0 0; font-family: "Fraunces", serif; font-size: 16px; font-weight: 500; letter-spacing: -0.014em; line-height: 1.2; }
.rb-top h3 em { font-style: italic; }
.rb-top .progrow { margin-top: 12px; display: flex; align-items: center; gap: 10px; font-family: "JetBrains Mono", monospace; font-size: 10.5px; font-weight: 600; color: rgba(255,255,255,0.7); }
.rb-top .progrow .bar { flex: 1; height: 3px; border-radius: 999px; background: rgba(255,255,255,0.18); overflow: hidden; }
.rb-top .progrow .bar i { display: block; height: 100%; background: var(--gold); }

.rb-card { margin: -12px 14px 14px; background: #fff; border: 1px solid rgba(212,162,76,0.25); border-radius: 18px; padding: 18px 18px 16px; box-shadow: var(--card-elev); }
.rb-card .qmark { display: inline-flex; align-items: center; gap: 8px; font-size: 9.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); padding: 4px 10px; border-radius: 999px; background: var(--gold-soft); border: 1px solid rgba(212,162,76,0.3); margin-bottom: 12px; }
.rb-card .qmark .num { color: var(--gold-deep); font-family: "JetBrains Mono", monospace; }
.rb-card h2 { font-family: "Fraunces", serif; font-size: 20px; font-weight: 500; line-height: 1.28; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
.rb-card h2 em { font-style: italic; color: var(--plum); }
.rb-card .ans { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hair); }
.rb-card .ans p { font-size: 14px; line-height: 1.65; color: var(--ink-2); margin: 0 0 10px; }
.rb-card .ans p mark { background: linear-gradient(180deg, transparent 56%, var(--gold-soft) 56%); color: inherit; font-weight: 600; padding: 0 2px; }
.rb-card .ans .codeblock { background: var(--plum-soft); color: var(--plum-deep); border-radius: 10px; padding: 10px 12px; font-family: "JetBrains Mono", monospace; font-size: 11.5px; line-height: 1.7; }
.rb-card .pull { border-left: 3px solid var(--gold); padding: 6px 14px; margin: 14px 0; font-family: "Fraunces", serif; font-style: italic; font-size: 14.5px; color: var(--ink); line-height: 1.4; }

.rb-foot { margin: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.rb-tools { margin: 0 14px 14px; padding: 12px 14px; background: #fff; border: 1px solid var(--hair); border-radius: 14px; display: flex; align-items: center; gap: 8px; }
.rb-tools button { background: var(--bg-2); border: 0; color: var(--ink); padding: 8px 12px; border-radius: 10px; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.rb-tools button.gold { background: var(--gold-soft); color: var(--gold-deep); }
.rb-tools .reads { margin-left: auto; font-family: "JetBrains Mono", monospace; font-size: 10.5px; font-weight: 700; color: var(--muted); }

/* ----- Bookmarks (.bm-card) ----- */
.bm-card { margin: 0 14px 10px; background: #fff; border: 1px solid var(--hair); border-radius: 14px; padding: 14px; position: relative; }
.bm-card .topic-line { font-size: 9.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--plum); }
.bm-card .topic-line .num { color: var(--muted); margin-left: 4px; font-family: "JetBrains Mono", monospace; }
.bm-card h4 { font-family: "Fraunces", serif; font-size: 15px; font-weight: 500; line-height: 1.3; letter-spacing: -0.014em; margin: 4px 0 8px; color: var(--ink); padding-right: 28px; }
.bm-card h4 em { font-style: italic; color: var(--plum); }
.bm-card .preview { font-size: 12.5px; line-height: 1.55; color: var(--ink-3); margin: 0 0 10px; }
.bm-card .footrow { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--muted); font-weight: 600; }
.bm-card .footrow .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
.bm-card .gold-mark { position: absolute; top: 12px; right: 14px; color: var(--gold-deep); }

/* ----- Stats ----- */
.stats-hero { margin: 14px; padding: 22px 18px 18px; background: linear-gradient(160deg, var(--plum) 0%, var(--plum-deep) 100%); color: #fff; border-radius: 22px; position: relative; overflow: hidden; border: 1px solid rgba(212,162,76,0.3); }
.stats-hero::before { content: ""; position: absolute; right: -30px; top: -30px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(212,162,76,0.22) 0%, transparent 65%); }
.stats-hero .lk { font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); position: relative; z-index: 1; }
.stats-hero h1 { font-family: "Fraunces", serif; font-size: 32px; font-weight: 500; letter-spacing: -0.024em; margin: 4px 0 12px; line-height: 1.05; position: relative; z-index: 1; }
.stats-hero h1 em { font-style: italic; color: var(--gold); }
.ring-row { display: flex; align-items: center; gap: 18px; position: relative; z-index: 1; }
.ring { width: 96px; height: 96px; border-radius: 50%; background: conic-gradient(var(--gold) 0% 65%, rgba(255,255,255,0.15) 65% 100%); position: relative; flex: 0 0 auto; display: grid; place-items: center; }
.ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--plum-deep); }
.ring .pct { position: relative; z-index: 1; font-family: "Fraunces", serif; font-style: italic; font-size: 22px; font-weight: 500; }
.ring-row .stack { flex: 1; }
.ring-row .stack .li { display: flex; justify-content: space-between; padding: 4px 0; font-size: 11.5px; }
.ring-row .stack .li b { font-family: "JetBrains Mono", monospace; color: var(--gold); font-weight: 700; }
.ring-row .stack .li span { opacity: 0.7; }

.heatmap-card { margin: 0 14px 14px; padding: 16px; background: #fff; border: 1px solid var(--hair); border-radius: 18px; box-shadow: var(--card-elev-sm); }
.heatmap-card .h-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.heatmap-card h4 { font-family: "Fraunces", serif; font-size: 15px; font-weight: 500; letter-spacing: -0.014em; margin: 0; color: var(--ink); }
.heatmap-card h4 em { font-style: italic; color: var(--plum); }
.heatmap-card .last { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.heatgrid { display: grid; grid-template-columns: repeat(15, 1fr); gap: 3px; }
.heatgrid i { aspect-ratio: 1 / 1; border-radius: 3px; background: var(--bg-2); }
.heatgrid i.l1 { background: var(--plum-soft); }
.heatgrid i.l2 { background: #d9b3c8; }
.heatgrid i.l3 { background: #b66f97; }
.heatgrid i.l4 { background: var(--plum); }
.heatgrid i.gold { background: var(--gold); }
.heat-legend { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 9px; color: var(--muted); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.heat-legend .dots { display: flex; gap: 3px; margin: 0 4px; }
.heat-legend .dots i { width: 9px; height: 9px; border-radius: 2px; }

.weekly-bars { margin: 0 14px 14px; padding: 16px; background: #fff; border: 1px solid var(--hair); border-radius: 18px; box-shadow: var(--card-elev-sm); }
.weekly-bars .h-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.weekly-bars h4 { font-family: "Fraunces", serif; font-size: 15px; font-weight: 500; letter-spacing: -0.014em; margin: 0; color: var(--ink); }
.weekly-bars h4 em { font-style: italic; color: var(--plum); }
.weekly-bars .total { font-family: "JetBrains Mono", monospace; font-size: 11px; font-weight: 700; color: var(--plum); }
.bars-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 110px; }
.bars-row .b { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: end; }
.bars-row .b i { width: 100%; max-width: 22px; background: linear-gradient(180deg, var(--plum), var(--plum-deep)); border-radius: 4px 4px 0 0; position: relative; }
.bars-row .b i::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gold); border-radius: 4px 4px 0 0; }
.bars-row .b.today i { background: linear-gradient(180deg, var(--gold), var(--gold-deep)); }
.bars-row .b.today i::after { display: none; }
.bars-row .lbl { font-size: 9.5px; font-weight: 700; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.bars-row .b.today .lbl { color: var(--gold-deep); }

.stat-trio { margin: 0 14px 14px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.stat-trio .ti { background: #fff; border: 1px solid var(--hair); border-radius: 14px; padding: 12px 10px; text-align: center; }
.stat-trio .ic { width: 32px; height: 32px; border-radius: 8px; background: var(--plum-soft); color: var(--plum); display: grid; place-items: center; margin: 0 auto 6px; }
.stat-trio .ic.gold { background: var(--gold-soft); color: var(--gold-deep); }
.stat-trio .ic.green { background: var(--green-soft); color: var(--green); }
.stat-trio .n { font-family: "Fraunces", serif; font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: -0.018em; line-height: 1; }
.stat-trio .l { font-size: 9.5px; color: var(--muted); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; }

/* ----- Search (.search-bar-big) ----- */
.search-bar-big { margin: 0 16px 14px; padding: 12px 16px; background: #fff; border: 1px solid var(--plum); border-radius: 14px; display: flex; align-items: center; gap: 10px; box-shadow: 0 0 0 4px var(--plum-soft); }
.search-bar-big svg { color: var(--plum); }
.search-bar-big input { border: 0; outline: 0; flex: 1; font: inherit; font-size: 14px; color: var(--ink); background: transparent; font-weight: 600; }
.search-bar-big input::placeholder { color: var(--muted); }
.search-bar-big .x { color: var(--muted); }

.search-section { padding: 0 16px 14px; }
.search-section .h-line { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.search-section h4 { font-family: "Fraunces", serif; font-size: 14px; font-weight: 500; letter-spacing: -0.014em; margin: 0; color: var(--ink); }
.search-section h4 em { font-style: italic; color: var(--plum); }
.search-section .clear { font-size: 11px; color: var(--muted); font-weight: 700; }

.recent-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--bg-2); font-size: 11.5px; color: var(--ink-2); font-weight: 600; margin: 0 6px 6px 0; }
.recent-pill svg { color: var(--muted); }

.suggest-row { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.suggest-row .ic { width: 32px; height: 32px; border-radius: 8px; background: var(--plum-soft); color: var(--plum); display: grid; place-items: center; }
.suggest-row .ic.gold { background: var(--gold-soft); color: var(--gold-deep); }
.suggest-row .nm { font-size: 13px; font-weight: 600; color: var(--ink); }
.suggest-row .nm small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 500; margin-top: 1px; }
.suggest-row .arr { color: var(--muted); }

/* ----- Daily card ----- */
.daily-page { background: linear-gradient(170deg, var(--plum) 0%, var(--plum-deep) 50%, #1a0815 100%); color: #fff; height: 100%; position: relative; overflow: hidden; padding: 50px 14px 14px; }
.daily-page::before { content: ""; position: absolute; left: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(212,162,76,0.2) 0%, transparent 65%); }
.daily-head { display: flex; align-items: center; padding: 0 4px 18px; position: relative; z-index: 1; }
.daily-head .x { background: rgba(255,255,255,0.12); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.daily-head .ttl { margin-left: 12px; }
.daily-head .ttl .ek { font-size: 9.5px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.daily-head .ttl h2 { font-family: "Fraunces", serif; font-size: 18px; font-weight: 500; letter-spacing: -0.018em; margin: 2px 0 0; line-height: 1.1; }
.daily-head .ttl h2 em { font-style: italic; }
.daily-head .share { margin-left: auto; background: rgba(212,162,76,0.2); border: 1px solid rgba(212,162,76,0.4); color: var(--gold); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }

.daily-card { position: relative; z-index: 1; background: linear-gradient(180deg, #fff 0%, #fdfaf2 100%); color: var(--ink); border-radius: 22px; padding: 22px 20px; border: 1.5px solid var(--gold); box-shadow: 0 30px 60px -20px rgba(91,26,71,0.5); }
.daily-card .topic-line { display: inline-flex; align-items: center; gap: 6px; background: var(--plum-soft); color: var(--plum-deep); padding: 4px 10px; border-radius: 999px; font-size: 9.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 14px; }
.daily-card h2 { font-family: "Fraunces", serif; font-size: 22px; font-weight: 500; line-height: 1.25; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
.daily-card h2 em { font-style: italic; color: var(--plum); }
.daily-card .ans { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hair); }
.daily-card .ans p { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); margin: 0 0 10px; }
.daily-card .ans p mark { background: linear-gradient(180deg, transparent 56%, var(--gold-soft) 56%); color: inherit; font-weight: 600; padding: 0 2px; }
.daily-card .pull { border-left: 3px solid var(--gold); padding: 4px 12px; margin: 10px 0 0; font-family: "Fraunces", serif; font-style: italic; font-size: 14px; line-height: 1.4; color: var(--ink); }

.daily-actions { margin-top: 18px; position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.daily-actions button { height: 50px; border-radius: 14px; font: inherit; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; cursor: pointer; }
.daily-actions .save { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(212,162,76,0.4); }
.daily-actions .deep { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: var(--plum-deep); }

.daily-foot { margin-top: 18px; text-align: center; font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(212,162,76,0.6); font-weight: 700; position: relative; z-index: 1; }

/* ----- MNC mode (.mnc-cd / .mnc-feat-card) ----- */
.mnc-grid { padding: 2px 14px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.mnc-cd { background: #fff; border: 1px solid var(--hair); border-radius: 14px; padding: 11px 11px 10px; position: relative; box-shadow: 0 1px 2px rgba(28,12,28,0.04); display: flex; flex-direction: column; min-height: 112px; }
.mnc-cd .top-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mnc-cd .logo { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-family: "Fraunces", serif; font-style: italic; font-weight: 700; font-size: 16px; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,0.22); }
.mnc-cd .logo.amazon { background: linear-gradient(135deg, #FF9900, #cc7a00); color: #1a0f1a; }
.mnc-cd .logo.google { background: linear-gradient(135deg, #ffffff, #f0f0f0); color: #4285F4; border: 1px solid rgba(0,0,0,0.06); box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 1px 3px rgba(0,0,0,0.08); }
.mnc-cd .logo.flipkart { background: linear-gradient(135deg, #2874F0, #1e54b0); color: #FFE600; }
.mnc-cd .logo.razorpay { background: linear-gradient(135deg, #0E1B43, #04081e); color: #fff; }
.mnc-cd .logo.swiggy { background: linear-gradient(135deg, #FC8019, #c45f0a); }
.mnc-cd .logo.zomato { background: linear-gradient(135deg, #E23744, #a72530); }
.mnc-cd .logo.tata { background: linear-gradient(135deg, var(--plum), var(--plum-deep)); color: var(--gold); }
.mnc-cd .logo.meta { background: linear-gradient(135deg, #0866FF, #0050cc); }
.mnc-cd .num-pill { font-family: "JetBrains Mono", monospace; font-size: 9px; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; display: inline-flex; align-items: center; gap: 3px; }
.mnc-cd .num-pill::before { content: "≡"; font-size: 11px; color: var(--gold-deep); opacity: 0.75; }
.mnc-cd .nm { font-family: "Fraunces", serif; font-size: 13.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.014em; line-height: 1.18; }
.mnc-cd .tier-line { font-size: 8.5px; color: var(--muted); margin-top: 3px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.mnc-cd .tier-line .dot { color: var(--gold-deep); margin: 0 4px; font-size: 7px; vertical-align: middle; }
.mnc-cd .barwrap { margin-top: auto; padding-top: 9px; display: flex; align-items: center; gap: 7px; }
.mnc-cd .bar { flex: 1; height: 2.5px; border-radius: 999px; background: rgba(91,26,71,0.07); overflow: hidden; }
.mnc-cd .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--plum), #7d2d65); border-radius: inherit; }
.mnc-cd .pct { font-family: "JetBrains Mono", monospace; font-size: 9.5px; font-weight: 700; color: var(--plum); letter-spacing: -0.02em; }
.mnc-cd.locked { background: linear-gradient(180deg, #fafafa, #f4f0f3); position: relative; }
.mnc-cd.locked .pct { color: var(--muted); }
.mnc-cd .lock-mark { position: absolute; top: 11px; right: 11px; color: var(--gold-deep); opacity: 0.75; }

.mnc-feat-card { margin: 0 14px 14px; background: linear-gradient(135deg, var(--plum) 0%, var(--plum-deep) 100%); color: #fff; border-radius: 18px; padding: 18px; border: 1px solid rgba(212,162,76,0.35); position: relative; overflow: hidden; }
.mnc-feat-card::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(212,162,76,0.22) 0%, transparent 65%); }
.mnc-feat-card .ek { font-size: 9.5px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); position: relative; z-index: 1; }
.mnc-feat-card h3 { font-family: "Fraunces", serif; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; margin: 4px 0 6px; line-height: 1.15; position: relative; z-index: 1; }
.mnc-feat-card h3 em { font-style: italic; color: var(--gold); }
.mnc-feat-card p { font-size: 12px; opacity: 0.78; margin: 0 0 12px; max-width: 32ch; position: relative; z-index: 1; }
.mnc-feat-card .row { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.mnc-feat-card .row .pill { background: var(--gold); color: var(--plum-deep); padding: 6px 12px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: -0.005em; }

/* ----- Profile (.profile-hero / .profile-card / .profile-stats / .achievements-strip / .profile-list) ----- */
.profile-hero { background: linear-gradient(160deg, var(--plum) 0%, var(--plum-deep) 100%); color: #fff; padding: 0 16px 60px; position: relative; overflow: hidden; }
.profile-hero::before { content: ""; position: absolute; left: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(212,162,76,0.22) 0%, transparent 65%); }
.profile-hero::after { content: ""; position: absolute; right: -40px; bottom: 20px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(212,162,76,0.12) 0%, transparent 65%); }
.profile-hero .top-row { display: flex; align-items: center; padding-top: 4px; padding-bottom: 14px; position: relative; z-index: 1; }
.profile-hero .top-row .bk { background: rgba(255,255,255,0.12); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.profile-hero .top-row h2 { flex: 1; text-align: center; font-family: "Fraunces", serif; font-size: 15px; font-weight: 500; letter-spacing: -0.014em; margin: 0; }
.profile-hero .top-row .gear { background: rgba(255,255,255,0.12); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }

.profile-card { position: relative; z-index: 1; display: grid; grid-template-columns: 60px 1fr; gap: 14px; align-items: center; padding: 4px 2px; }
.profile-av { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: var(--plum-deep); display: grid; place-items: center; font-family: "Fraunces", serif; font-style: italic; font-weight: 700; font-size: 26px; border: 2px solid rgba(212,162,76,0.5); box-shadow: 0 10px 22px -8px rgba(212,162,76,0.45), inset 0 1px 0 rgba(255,255,255,0.3); position: relative; }
.profile-av .verify { position: absolute; bottom: -2px; right: -2px; width: 20px; height: 20px; border-radius: 50%; background: var(--plum-deep); color: var(--gold); display: grid; place-items: center; border: 2px solid var(--plum-deep); }
.profile-card .id h1 { font-family: "Fraunces", serif; font-size: 19px; font-weight: 500; letter-spacing: -0.018em; margin: 0; line-height: 1.1; }
.profile-card .id h1 em { font-style: italic; }
.profile-card .id .role { font-size: 11px; opacity: 0.7; margin-top: 3px; font-weight: 600; }
.profile-card .id .role .dot { opacity: 0.5; margin: 0 5px; }

.tier-bar { margin-top: 12px; position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: linear-gradient(90deg, rgba(212,162,76,0.18), rgba(212,162,76,0.06)); border: 1px solid rgba(212,162,76,0.4); border-radius: 12px; }
.tier-bar .crown { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: var(--plum-deep); display: grid; place-items: center; flex: 0 0 auto; }
.tier-bar .lab { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.tier-bar .exp { margin-left: auto; font-size: 10px; opacity: 0.7; font-family: "JetBrains Mono", monospace; font-weight: 600; }
.tier-bar .arr { color: var(--gold); }

.profile-stats { margin: -45px 14px 14px; position: relative; z-index: 5; background: #fff; border-radius: 16px; padding: 14px; box-shadow: 0 18px 36px -16px rgba(26,15,26,0.18), 0 0 0 1px rgba(212,162,76,0.18); display: grid; grid-template-columns: 1fr 1px 1fr 1px 1fr; gap: 12px; align-items: center; }
.profile-stats .div { width: 1px; align-self: stretch; background: var(--hair); }
.profile-stats .ti { text-align: center; }
.profile-stats .ti .n { font-family: "Fraunces", serif; font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: -0.022em; line-height: 1; }
.profile-stats .ti .l { font-size: 9px; color: var(--muted); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 4px; }

.achievements-strip { margin: 0 14px 14px; display: flex; gap: 10px; overflow-x: auto; padding: 4px 0; scrollbar-width: none; }
.achievements-strip::-webkit-scrollbar { display: none; }
.ach { flex: 0 0 auto; width: 88px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.ach .medal { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: var(--plum-deep); display: grid; place-items: center; border: 1.5px solid rgba(212,162,76,0.5); box-shadow: 0 8px 18px -6px rgba(212,162,76,0.45); }
.ach.locked .medal { background: var(--bg-2); color: var(--muted); border-color: transparent; box-shadow: none; }
.ach .lb { font-size: 10px; font-weight: 700; color: var(--ink); letter-spacing: -0.005em; line-height: 1.2; }
.ach.locked .lb { color: var(--muted); }
.ach .lb small { display: block; color: var(--muted); font-size: 8.5px; font-weight: 600; margin-top: 1px; letter-spacing: 0.06em; text-transform: uppercase; }

.profile-list { margin: 0 14px 14px; background: #fff; border: 1px solid var(--hair); border-radius: 16px; overflow: hidden; }
.pl-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--hair); cursor: pointer; }
.pl-row:last-child { border-bottom: 0; }
.pl-row .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--plum-soft); color: var(--plum); display: grid; place-items: center; }
.pl-row .ic.gold { background: var(--gold-soft); color: var(--gold-deep); }
.pl-row .ic.green { background: var(--green-soft); color: var(--green); }
.pl-row .ic.red { background: var(--red-soft); color: var(--red); }
.pl-row .nm { font-size: 13px; font-weight: 700; color: var(--ink); }
.pl-row .nm small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 500; margin-top: 1px; }
.pl-row .arr { color: var(--muted); }
.pl-row .badge { background: var(--gold-soft); color: var(--gold-deep); font-size: 9px; font-weight: 800; padding: 3px 7px; border-radius: 999px; letter-spacing: 0.06em; text-transform: uppercase; }

/* ----- Settings (.set-grouped / .set-row / .set-group-label / .toggle) ----- */
.set-grouped { margin: 0 14px 14px; background: #fff; border: 1px solid var(--hair); border-radius: 16px; overflow: hidden; }
.set-row { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--hair); }
.set-row:last-child { border-bottom: 0; }
.set-row .ic { width: 30px; height: 30px; border-radius: 8px; background: var(--plum-soft); color: var(--plum); display: grid; place-items: center; }
.set-row .ic.gold { background: var(--gold-soft); color: var(--gold-deep); }
.set-row .ic.green { background: var(--green-soft); color: var(--green); }
.set-row .ic.red { background: var(--red-soft); color: var(--red); }
.set-row .ic.blue { background: var(--blue-soft); color: var(--blue); }
.set-row .nm { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.set-row .nm small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 500; margin-top: 1px; }
.set-row .val { font-size: 11px; font-weight: 700; color: var(--plum); }
.set-row .arr { color: var(--muted); }

.set-group-label { padding: 14px 18px 8px; font-size: 10px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

.toggle { width: 38px; height: 22px; border-radius: 999px; background: var(--bg-3); position: relative; flex: 0 0 auto; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.18); transition: 0.18s; }
.toggle.on { background: var(--plum); }
.toggle.on::after { left: 18px; background: var(--gold); }

/* ----- Sahyogi premium (.sahy-page / .sahy-feat / .plan-cd / .sahy-cta) ----- */
.sahy-page { background: linear-gradient(170deg, var(--plum) 0%, var(--plum-deep) 50%, #14060f 100%); color: #fff; height: 100%; position: relative; overflow: hidden; }
.sahy-page::before { content: ""; position: absolute; left: -80px; top: -50px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(212,162,76,0.28) 0%, transparent 65%); }
.sahy-page::after { content: ""; position: absolute; right: -80px; top: 200px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(212,162,76,0.16) 0%, transparent 65%); }
.sahy-scroll { position: absolute; inset: 0; overflow-y: auto; scrollbar-width: none; padding: 50px 14px 14px; }
.sahy-scroll::-webkit-scrollbar { display: none; }

.sahy-head { display: flex; align-items: center; padding: 0 4px 14px; position: relative; z-index: 1; }
.sahy-head .x { background: rgba(255,255,255,0.12); border: 0; color: #fff; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.sahy-head .restore { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--gold); background: none; border: 0; cursor: pointer; }

.sahy-hero { text-align: center; padding: 6px 0 18px; position: relative; z-index: 1; }
.sahy-crown-row { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 6px 14px; background: rgba(212,162,76,0.16); border: 1px solid rgba(212,162,76,0.4); border-radius: 999px; }
.sahy-crown-row .lab { font-size: 10px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.sahy-crown-row svg { color: var(--gold); }
.sahy-hero h1 { font-family: "Fraunces", serif; font-weight: 500; font-size: 28px; letter-spacing: -0.024em; margin: 0; line-height: 1.1; }
.sahy-hero h1 em { font-style: italic; color: var(--gold); }
.sahy-hero .lead { font-size: 12.5px; opacity: 0.75; margin: 8px 16px 0; line-height: 1.55; }

.sahy-flag { margin: 14px 0; position: relative; z-index: 1; background: linear-gradient(120deg, rgba(212,162,76,0.18) 0%, rgba(212,162,76,0.04) 100%); border: 1px solid rgba(212,162,76,0.35); border-radius: 12px; padding: 10px 14px; display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 600; }
.sahy-flag .num { font-family: "Fraunces", serif; font-style: italic; font-weight: 600; font-size: 15px; color: var(--gold); }
.sahy-flag .ar { margin-left: auto; color: var(--gold); }

.sahy-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sahy-feat { background: rgba(255,255,255,0.05); border: 1px solid rgba(212,162,76,0.25); border-radius: 14px; padding: 12px 12px 14px; display: flex; flex-direction: column; position: relative; }
.sahy-feat .ic { width: 32px; height: 32px; border-radius: 9px; background: rgba(212,162,76,0.18); color: var(--gold); display: grid; place-items: center; margin-bottom: 10px; border: 1px solid rgba(212,162,76,0.25); }
.sahy-feat .nm { font-size: 12.5px; font-weight: 700; color: #fff; line-height: 1.25; letter-spacing: -0.005em; }
.sahy-feat .nm small { display: block; font-size: 10px; opacity: 0.65; font-weight: 500; margin-top: 3px; line-height: 1.4; }
.sahy-feat .pop { position: absolute; top: 8px; right: 8px; font-size: 8px; font-weight: 800; letter-spacing: 0.1em; background: var(--gold); color: var(--plum-deep); padding: 2px 6px; border-radius: 999px; }
.sahy-feat.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; padding: 12px 14px; }
.sahy-feat.wide .ic { margin-bottom: 0; margin-right: 12px; }
.sahy-feat.wide .nm { flex: 1; }
.sahy-feat.wide .arr { color: var(--gold); margin-left: 8px; }

.sahy-plans { margin-top: 14px; position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.plan-cd { background: rgba(255,255,255,0.05); border: 1.5px solid rgba(212,162,76,0.3); border-radius: 14px; padding: 14px 12px; position: relative; cursor: pointer; }
.plan-cd.on { background: linear-gradient(180deg, rgba(212,162,76,0.22), rgba(212,162,76,0.06)); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212,162,76,0.15); }
.plan-cd .lab { font-size: 10px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.plan-cd .price { font-family: "Fraunces", serif; font-style: italic; font-size: 22px; font-weight: 600; color: #fff; margin-top: 4px; line-height: 1; }
.plan-cd .price small { font-size: 11px; font-style: normal; font-weight: 600; opacity: 0.75; margin-left: 2px; }
.plan-cd .desc { font-size: 10.5px; opacity: 0.7; margin-top: 5px; line-height: 1.4; }
.plan-cd .save { position: absolute; top: -8px; right: 10px; background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: var(--plum-deep); font-size: 8.5px; font-weight: 800; letter-spacing: 0.12em; padding: 3px 8px; border-radius: 999px; box-shadow: 0 4px 10px -2px rgba(212,162,76,0.5); }

.sahy-cta { margin-top: 14px; background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: var(--plum-deep); height: 52px; border-radius: 14px; font: inherit; font-weight: 800; font-size: 13.5px; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; position: relative; z-index: 1; letter-spacing: -0.005em; box-shadow: 0 16px 32px -10px rgba(212,162,76,0.5), inset 0 1px 0 rgba(255,255,255,0.3); }
.sahy-foot { text-align: center; font-size: 10px; opacity: 0.55; margin-top: 10px; letter-spacing: 0.04em; position: relative; z-index: 1; padding-bottom: 8px; }
