/*
 * Rescripted — Style Guide UI
 * Built from rescripted.com brand identity
 *
 * Aesthetic: Refined editorial — clean geometry, purposeful color,
 *            frosted glass, beveled buttons, subtle depth.
 *
 * Fonts: Bogart (serif display), Libre Franklin (body), Work Sans (labels)
 */

@font-face {
  font-family: 'Bogart';
  src: local('Bogart');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* ── Surface ── */
  --bg:         #F7F5FB;
  --bg-warm:    #F0ECF5;
  --bg-card:    #FFFFFF;
  --ink:        #212529;
  --ink-soft:   #4A4660;
  --ink-dim:    #7B7794;
  --border:     #d3d2e6;

  /* ── Brand ── */
  --purple:      #46417F;
  --purple-dark: #2E2A5C;
  --purple-deep: #1D1A42;
  --lavender:    #F9F1FD;
  --lavender-mid:#EDE3F5;
  --green-soft:  #F2F9F5;
  --green:       #4CAF82;

  /* ── Extended ── */
  --rose:       #C85A7C;
  --rose-soft:  #FDF0F4;
  --sage:       #4CAF82;
  --sage-soft:  #E8F6EF;
  --sky:        #5A9AC8;
  --sky-soft:   #EDF5FC;
  --amber:      #D4943C;
  --amber-soft: #FDF5E8;
  --coral:      #D96B5A;
  --coral-soft: #FDE9E5;

  /* ── Semantic ── */
  --earn:    #D4943C;
  --success: #4CAF82;
  --danger:  #D96B5A;

  /* ── Shadows ── */
  --shadow-xs:    0 1px 2px rgba(70,65,127,0.04);
  --shadow-sm:    0 2px 6px rgba(70,65,127,0.06);
  --shadow-md:    0 4px 12px rgba(70,65,127,0.08);
  --shadow-lg:    0 8px 24px rgba(70,65,127,0.10);
  --shadow-pop:   0 8px 24px -4px rgba(70,65,127,0.18);
  --shadow-glow:  0 0 20px rgba(70,65,127,0.12);
  --shadow-bevel: inset 0 1px 0 rgba(255,255,255,0.35), 0 2px 4px rgba(70,65,127,0.15);

  /* ── Radii ── */
  --r-xs:   2px;
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-pill: 999px;

  /* ── Type ── */
  --font-display: 'Bogart', 'Georgia', 'Times New Roman', serif;
  --font-body:    'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-accent:  'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* ── Easing ── */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-default: cubic-bezier(0.25, 0.1, 0.25, 1.0);
}


/* ══════════════════════════════════════
   RESET & BASE
   ══════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
  min-height: 100dvh;
  overflow-x: hidden;
  line-height: 1.6;
  letter-spacing: 0.015em;
  transition: background 0.4s ease, color 0.4s ease;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: var(--font-body); color: inherit; }
::selection { background: var(--lavender); color: var(--purple); }
:focus-visible { outline: 2.5px solid var(--purple); outline-offset: 3px; border-radius: 4px; }


/* ══════════════════════════════════════
   BACKGROUND — SUBTLE GRADIENT + NOISE
   ══════════════════════════════════════ */

.bg-canvas {
  position: fixed; inset: 0; z-index: 0;
  background-color: var(--bg);
  transition: background-color 0.4s ease;
}
.bg-canvas::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 15% 0%, rgba(70,65,127,0.04), transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 30%, rgba(200,90,124,0.03), transparent 65%),
    radial-gradient(ellipse 55% 45% at 50% 100%, rgba(76,175,130,0.03), transparent 60%);
}
.bg-canvas::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.5;
  mix-blend-mode: overlay;
}


/* ══════════════════════════════════════
   APP SHELL
   ══════════════════════════════════════ */

.shell {
  position: relative; z-index: 1;
  max-width: 480px; margin: 0 auto;
  padding: calc(62px + env(safe-area-inset-top, 0px)) 16px calc(80px + env(safe-area-inset-bottom, 0px));
  min-height: 100dvh;
}

/* ── Status bar ── */
.status-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: calc(58px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 16px 0;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(247,245,251,0.8);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid rgba(211,210,230,0.5);
}

.sb-brand { display: flex; align-items: center; gap: 10px; }
.sb-logo {
  width: 32px; height: 32px; border-radius: var(--r-sm);
  background: linear-gradient(135deg, hsl(292,38%,41%), hsl(243,29%,32%));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-display); font-size: 16px;
  font-weight: 200;
  box-shadow: var(--shadow-pop);
}
.sb-name {
  font-family: var(--font-display); font-weight: 200; font-size: 17px;
  letter-spacing: -0.01em;
}
.sb-name em {
  font-style: normal;
  color: var(--purple);
}

.sb-actions { display: flex; align-items: center; gap: 4px; }
.sb-btn {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--ink-dim);
  transition: background 0.15s, color 0.15s, transform 0.2s var(--ease-spring);
  position: relative;
}
.sb-btn:hover { background: var(--lavender); color: var(--purple); transform: scale(1.05); }
.sb-badge {
  position: absolute; top: 6px; right: 6px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--rose); border: 2px solid var(--bg);
}
.sb-avatar {
  width: 34px; height: 34px; border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--lavender), var(--rose-soft));
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 14px; font-weight: 200;
  color: var(--purple);
  transition: transform 0.15s var(--ease-spring);
}
.sb-avatar:hover { transform: scale(1.08); }


/* ── Tab bar ── */
.tab-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  padding: 6px 8px max(env(safe-area-inset-bottom, 6px), 6px);
  background: rgba(247,245,251,0.8);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
}
.tab-bar-inner {
  max-width: 420px; margin: 0 auto;
  display: flex; align-items: stretch;
  background: var(--bg-card);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  height: 56px; padding: 4px;
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px;
  font-family: var(--font-accent); font-size: 10px; font-weight: 600;
  color: var(--ink-dim); transition: color 0.15s;
  border-radius: var(--r-md); position: relative;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.tab .ph, .tab .ph-fill { font-size: 22px; transition: transform 0.2s var(--ease-spring); }
.tab:hover { color: var(--ink-soft); }
.tab.active {
  color: var(--purple);
  background: var(--lavender);
}
.tab.active .ph, .tab.active .ph-fill { transform: scale(1.1) translateY(-1px); }
.tab-earn-dot {
  position: absolute; top: 6px; right: calc(50% - 16px);
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber);
  border: 2px solid var(--bg-card);
  animation: pulse-dot 2.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,148,60,0.4); }
  50% { box-shadow: 0 0 0 5px transparent; }
}


/* ══════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════ */

.section { margin-bottom: 28px; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 10px; margin-bottom: 12px;
}
.section-kicker {
  font-family: var(--font-accent); font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--purple); margin-bottom: 1px;
}
.section-title {
  font-family: var(--font-display); font-weight: 200;
  font-size: 26px; line-height: 1.1; letter-spacing: -0.01em;
}
.section-more {
  font-family: var(--font-accent); font-size: 11px; font-weight: 600;
  color: var(--purple); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 3px;
  text-transform: uppercase; letter-spacing: 0.04em;
  transition: gap 0.15s;
}
.section-more:hover { gap: 6px; }

.section-tinted {
  background: var(--bg-warm);
  margin: 0 -16px; padding: 24px 16px;
  border-radius: 0;
}


/* ══════════════════════════════════════
   STICKERS
   ══════════════════════════════════════ */

.sticker {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-accent); font-size: 11px; font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  text-transform: uppercase; letter-spacing: 0.03em;
  transition: transform 0.2s var(--ease-spring);
}
.sticker:hover { transform: scale(1.06) rotate(-2deg); }

.sticker-purple { background: var(--lavender); color: var(--purple); }
.sticker-rose   { background: var(--rose-soft); color: var(--rose); }
.sticker-sage   { background: var(--sage-soft); color: var(--sage); }
.sticker-sky    { background: var(--sky-soft);  color: var(--sky); }
.sticker-amber  { background: var(--amber-soft); color: var(--amber); }
.sticker-coral  { background: var(--coral-soft); color: var(--coral); }
.sticker-fill   { background: var(--purple); color: #fff; }
.sticker-fill-rose { background: var(--rose); color: #fff; }


/* ══════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: var(--font-body); font-weight: 500; font-size: 15px;
  letter-spacing: 0.015em;
  padding: 12px 40px; border-radius: var(--r-pill);
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s, filter 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn .ph, .btn .ph-bold, .btn .ph-fill { font-size: 17px; }

.btn-purple {
  background: var(--lavender); color: var(--purple);
  border: 1px solid var(--lavender-mid);
  box-shadow: var(--shadow-bevel);
}
.btn-purple:hover {
  box-shadow: var(--shadow-bevel), var(--shadow-sm);
}

.btn-purple-filled {
  background: var(--purple); color: #fff;
  box-shadow: var(--shadow-bevel), 0 4px 12px rgba(70,65,127,0.25);
}

.btn-rose {
  background: var(--rose); color: #fff;
  box-shadow: 0 4px 12px rgba(200,90,124,0.25);
}
.btn-amber {
  background: var(--amber); color: #fff;
  box-shadow: 0 4px 12px rgba(212,148,60,0.25);
}
.btn-soft {
  background: var(--lavender); color: var(--purple);
}
.btn-soft:hover { background: var(--lavender-mid); }
.btn-outline {
  background: var(--bg-card); color: var(--ink-soft);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--purple); color: var(--purple); }
.btn-ghost { background: transparent; color: var(--ink-dim); }
.btn-ghost:hover { color: var(--purple); }

.btn-sm { padding: 8px 24px; font-size: 13px; }
.btn-lg { padding: 14px 48px; font-size: 16px; }
.btn-block { width: 100%; }


/* ══════════════════════════════════════
   CLARA AI — SEARCH BAR
   ══════════════════════════════════════ */

.clara-bar {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  padding: 8px 10px 8px 14px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-sm), var(--shadow-glow);
  margin-bottom: 22px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.clara-bar:focus-within {
  border-color: var(--purple);
  box-shadow: var(--shadow-md), 0 0 24px rgba(70,65,127,0.1);
}
.clara-label {
  font-family: var(--font-accent); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--purple); flex-shrink: 0;
}
.clara-icon {
  width: 32px; height: 32px; flex: none;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, hsl(292,38%,41%), hsl(243,29%,32%));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px;
  box-shadow: 0 2px 8px rgba(70,65,127,0.25);
}
.clara-bar input {
  flex: 1; border: none; background: transparent;
  font-family: var(--font-body); font-size: 14px; color: var(--ink);
  outline: none; letter-spacing: 0.015em;
}
.clara-bar input::placeholder { color: var(--ink-dim); }
.clara-send {
  width: 34px; height: 34px; flex: none; border-radius: var(--r-sm);
  background: var(--purple); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  transition: transform 0.15s var(--ease-spring), background 0.15s;
}
.clara-send:hover { transform: scale(1.1); background: var(--purple-dark); }


/* ══════════════════════════════════════
   CATEGORY PILLS
   ══════════════════════════════════════ */

.cat-scroll {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 0 0 6px;
}
.cat-scroll::-webkit-scrollbar { display: none; }

.cat-pill {
  flex: none; display: flex; align-items: center; gap: 6px;
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--r-pill); padding: 8px 14px 8px 11px;
  font-family: var(--font-accent); font-weight: 600; font-size: 12px;
  color: var(--ink-soft); white-space: nowrap;
  letter-spacing: 0.02em;
  transition: all 0.15s var(--ease-spring);
  box-shadow: var(--shadow-xs);
}
.cat-pill .emoji { font-size: 15px; }
.cat-pill:hover { transform: translateY(-2px) scale(1.03); box-shadow: var(--shadow-sm); border-color: var(--purple); }
.cat-pill.active {
  background: var(--purple); color: #fff; border-color: var(--purple);
  box-shadow: var(--shadow-pop);
}


/* ══════════════════════════════════════
   STREAK
   ══════════════════════════════════════ */

.streak-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--r-pill); padding: 10px 16px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-xs);
}
.streak-bar .streak-text { flex: 1; font-size: 13px; color: var(--ink-soft); }
.streak-bar .streak-text strong { color: var(--ink); }
.streak-fire { font-size: 28px; flex: none; }
.streak-dots { display: flex; gap: 5px; flex: none; }
.streak-dot {
  width: 11px; height: 11px; border-radius: 50%;
  border: 2px solid rgba(212,148,60,0.3);
  transition: all 0.2s var(--ease-spring);
}
.streak-dot.filled { background: var(--amber); border-color: var(--amber); }
.streak-dot.today {
  background: var(--rose); border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(200,90,124,0.2);
  animation: pulse-dot 2s ease-in-out infinite;
}


/* ══════════════════════════════════════
   HERO ARTICLE
   ══════════════════════════════════════ */

.hero-article {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-xs); overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.hero-article:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.ha-img {
  height: 200px; position: relative;
  background: linear-gradient(135deg, var(--lavender), var(--green-soft));
  display: flex; align-items: center; justify-content: center;
}
.ha-img-emoji { font-size: 72px; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1)); }
.ha-sticker { position: absolute; top: 14px; left: 14px; }
.ha-body { padding: 20px; }
.ha-column {
  font-family: var(--font-accent); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--purple); margin-bottom: 6px;
}
.ha-title {
  font-family: var(--font-display); font-weight: 200;
  font-size: 24px; line-height: 1.15; letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.ha-title em { color: var(--rose); font-style: normal; }
.ha-desc {
  font-size: 14px; color: var(--ink-dim); line-height: 1.6;
  margin-bottom: 14px;
}
.ha-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; color: var(--ink-dim); font-weight: 500;
}


/* ══════════════════════════════════════
   SURVEY CARD
   ══════════════════════════════════════ */

.survey-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-xs); padding: 20px;
  position: relative; overflow: visible;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.survey-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.sc-title {
  font-family: var(--font-display); font-weight: 200;
  font-size: 19px; line-height: 1.2; margin-bottom: 8px;
}
.sc-title em { color: var(--rose); font-style: normal; }
.sc-desc { font-size: 13px; color: var(--ink-dim); margin-bottom: 14px; }
.sc-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--border);
}
.sc-meta {
  display: flex; gap: 10px;
  font-size: 11px; color: var(--ink-dim); font-weight: 500;
}


/* ══════════════════════════════════════
   ACTIVE SURVEY
   ══════════════════════════════════════ */

.survey-active {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-xs); overflow: hidden;
  box-shadow: var(--shadow-md);
}
.sa-progress { height: 4px; background: var(--lavender); }
.sa-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--rose));
  transition: width 0.5s var(--ease-out);
}
.sa-body { padding: 24px 20px; }
.sa-step-label {
  font-family: var(--font-accent); font-size: 11px; font-weight: 700;
  color: var(--ink-dim); margin-bottom: 14px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.sa-step-label .current { color: var(--purple); font-weight: 700; }
.sa-question {
  font-family: var(--font-display); font-size: 22px; font-weight: 200;
  line-height: 1.25; margin-bottom: 22px;
}
.sa-options { display: flex; flex-direction: column; gap: 8px; }
.sa-option {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border: 1.5px solid var(--border);
  border-radius: var(--r-sm); cursor: pointer;
  transition: all 0.15s var(--ease-spring);
}
.sa-option:hover { border-color: var(--purple); background: var(--lavender); transform: scale(1.01); }
.sa-option.selected {
  border-color: var(--purple); background: var(--lavender);
  box-shadow: 0 0 0 3px rgba(70,65,127,0.08);
}
.sa-radio {
  width: 22px; height: 22px; flex: none; border-radius: 50%;
  border: 2px solid var(--border); transition: all 0.15s;
}
.sa-option.selected .sa-radio { border-color: var(--purple); border-width: 7px; }
.sa-option-text { font-size: 14px; font-weight: 500; }

.sa-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-top: 1px solid var(--border);
}
.sa-back {
  font-family: var(--font-accent); font-size: 12px; font-weight: 600;
  color: var(--ink-dim); display: flex; align-items: center; gap: 4px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.sa-back:hover { color: var(--purple); }
.sa-next {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--purple); color: #fff;
  padding: 10px 24px; border-radius: var(--r-pill);
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  letter-spacing: 0.015em;
  box-shadow: var(--shadow-bevel), 0 4px 12px rgba(70,65,127,0.25);
  transition: transform 0.2s var(--ease-spring);
}
.sa-next:hover { transform: translateY(-1px); }

.sa-complete { text-align: center; padding: 40px 24px; }
.sa-complete-icon {
  width: 72px; height: 72px; margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--sage-soft); border: 2px solid rgba(76,175,130,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: var(--sage);
  animation: pop-in 0.5s var(--ease-spring);
}
@keyframes pop-in { from { transform: scale(0.3) rotate(-10deg); opacity: 0; } }
.sa-complete h3 {
  font-family: var(--font-display); font-size: 24px; font-weight: 200;
  margin-bottom: 6px;
}
.sa-complete p { font-size: 14px; color: var(--ink-dim); margin-bottom: 20px; max-width: 28ch; margin-left: auto; margin-right: auto; }
.sa-reward {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--amber-soft); border: 1px solid rgba(212,148,60,0.25);
  border-radius: var(--r-pill); padding: 10px 20px;
  font-family: var(--font-display); font-weight: 200;
  font-size: 20px; color: var(--amber);
  animation: pop-in 0.6s var(--ease-spring) 0.15s both;
}
.sa-reward .ph, .sa-reward .ph-fill { font-size: 22px; }


/* ══════════════════════════════════════
   RESULT BARS
   ══════════════════════════════════════ */

.result-bars { display: flex; flex-direction: column; gap: 12px; }
.result-bar { display: flex; flex-direction: column; gap: 4px; }
.rb-label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 500; }
.rb-pct { font-weight: 700; color: var(--purple); font-size: 12px; font-variant-numeric: tabular-nums; }
.rb-track { height: 10px; background: var(--lavender); border-radius: var(--r-pill); overflow: hidden; }
.rb-fill { height: 100%; border-radius: var(--r-pill); background: var(--purple); transition: width 0.8s var(--ease-out); }
.rb-fill.alt-1 { background: var(--rose); }
.rb-fill.alt-2 { background: var(--sky); }
.rb-fill.alt-3 { background: var(--amber); }
.rb-fill.alt-4 { background: var(--sage); }


/* ══════════════════════════════════════
   COLUMNS
   ══════════════════════════════════════ */

.columns-scroll {
  display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none;
  padding-bottom: 6px;
}
.columns-scroll::-webkit-scrollbar { display: none; }

.column-banner {
  flex: none; width: 240px;
  padding: 20px 18px; border-radius: var(--r-xs);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.column-banner:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.col-name {
  font-family: var(--font-display); font-weight: 200;
  font-size: 22px; line-height: 1; margin-bottom: 5px;
}
.col-name.purple, .col-name.plum { color: var(--purple); }
.col-name.rose { color: var(--rose); }
.col-name.sage, .col-name.mint { color: var(--sage); }
.col-tagline {
  font-size: 12px; color: var(--ink-dim); font-style: italic;
  margin-bottom: 3px; line-height: 1.4;
}
.col-author {
  font-family: var(--font-accent); font-size: 10px; font-weight: 600;
  color: var(--ink-dim); letter-spacing: 0.04em; text-transform: uppercase;
}
.col-latest { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.col-latest-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: 14px; line-height: 1.3; margin-bottom: 3px;
}
.col-latest-date { font-size: 10px; font-weight: 500; color: var(--ink-dim); }


/* ══════════════════════════════════════
   VIDEO
   ══════════════════════════════════════ */

.video-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-xs); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.video-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.vc-player {
  position: relative; aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(70,65,127,0.15), #1a1a2e);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.vc-player-bg { display: none; }
.vc-play-btn {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--purple);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s var(--ease-spring);
}
.vc-player:hover .vc-play-btn { transform: scale(1.12); }
.vc-duration {
  position: absolute; bottom: 10px; right: 10px;
  font-size: 11px; font-weight: 600;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(6px);
  color: #fff; padding: 3px 8px; border-radius: var(--r-sm);
}
.vc-body { padding: 16px 18px; }
.vc-series {
  font-family: var(--font-accent); font-size: 11px; font-weight: 700;
  color: var(--sky); margin-bottom: 4px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.vc-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: 16px; line-height: 1.3; margin-bottom: 8px;
}
.vc-meta {
  font-size: 11px; color: var(--ink-dim); font-weight: 500;
  display: flex; gap: 12px;
}

/* Reels */
.video-scroll {
  display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none;
  padding-bottom: 6px;
}
.video-scroll::-webkit-scrollbar { display: none; }
.video-card-reel {
  flex: none; width: 135px;
  border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s var(--ease-spring);
}
.video-card-reel:hover { transform: translateY(-3px) scale(1.02); }
.vcr-player {
  aspect-ratio: 9/16; position: relative;
  background: linear-gradient(180deg, rgba(70,65,127,0.2), #1a1a2e);
  display: flex; align-items: center; justify-content: center;
}
.vcr-play {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.85);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--purple);
}
.vcr-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px 10px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  font-size: 11px; color: #fff; line-height: 1.35;
}


/* ══════════════════════════════════════
   PODCAST
   ══════════════════════════════════════ */

.podcast-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-xs); padding: 16px;
  display: flex; gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s var(--ease-out);
}
.podcast-card:hover { transform: translateY(-2px); }

.pc-art {
  width: 64px; height: 64px; flex: none; border-radius: var(--r-sm);
  background: linear-gradient(135deg, hsl(292,38%,41%), hsl(243,29%,32%));
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; box-shadow: var(--shadow-pop);
}
.pc-body { flex: 1; min-width: 0; }
.pc-show { font-family: var(--font-accent); font-size: 11px; font-weight: 700; color: var(--purple); margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.04em; }
.pc-title { font-family: var(--font-display); font-weight: 400; font-size: 15px; line-height: 1.3; margin-bottom: 6px; }
.pc-meta { font-size: 10px; font-weight: 500; color: var(--ink-dim); margin-bottom: 10px; }
.pc-controls { display: flex; align-items: center; gap: 8px; }
.pc-play {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  background: var(--purple); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; transition: transform 0.15s var(--ease-spring);
}
.pc-play:hover { transform: scale(1.12); }
.pc-waveform { flex: 1; height: 24px; display: flex; align-items: flex-end; gap: 2px; }
.pc-wave-bar { flex: 1; border-radius: var(--r-pill); background: var(--lavender); }
.pc-wave-bar.played { background: var(--purple); }
.pc-time { font-size: 10px; font-weight: 500; color: var(--ink-dim); flex: none; }


/* ══════════════════════════════════════
   NEWS
   ══════════════════════════════════════ */

.news-list { display: flex; flex-direction: column; }
.news-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
  transition: opacity 0.12s;
}
.news-item:last-child { border-bottom: none; }
.ni-body { flex: 1; }
.ni-source { font-family: var(--font-accent); font-size: 10px; font-weight: 600; color: var(--ink-dim); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 3px; }
.ni-title { font-family: var(--font-display); font-weight: 400; font-size: 15px; line-height: 1.35; margin-bottom: 3px; }
.ni-date { font-size: 10px; font-weight: 500; color: var(--ink-dim); }
.ni-arrow { flex: none; font-size: 15px; color: var(--border); margin-top: 4px; transition: color 0.12s; }
.news-item:hover .ni-arrow { color: var(--purple); }


/* ══════════════════════════════════════
   EVENTS
   ══════════════════════════════════════ */

.event-list { display: flex; flex-direction: column; gap: 10px; }
.event-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-xs); display: flex; overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform 0.15s var(--ease-out), box-shadow 0.15s;
}
.event-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.ev-date-block {
  width: 62px; flex: none;
  background: linear-gradient(135deg, var(--coral-soft), var(--amber-soft));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 10px 6px;
}
.ev-month { font-family: var(--font-accent); font-size: 11px; font-weight: 700; color: var(--coral); text-transform: uppercase; letter-spacing: 0.04em; }
.ev-day { font-family: var(--font-display); font-size: 28px; font-weight: 200; color: var(--ink); line-height: 1; }
.ev-body { flex: 1; padding: 12px 16px; }
.ev-type { font-family: var(--font-accent); font-size: 10px; font-weight: 700; color: var(--coral); margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.04em; }
.ev-title { font-family: var(--font-display); font-weight: 400; font-size: 15px; line-height: 1.25; margin-bottom: 4px; }
.ev-meta { font-size: 10px; font-weight: 500; color: var(--ink-dim); display: flex; gap: 10px; }


/* ══════════════════════════════════════
   TRENDING QUESTIONS
   ══════════════════════════════════════ */

.trending {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-xs); padding: 18px;
  box-shadow: var(--shadow-sm);
}
.trending-title {
  font-family: var(--font-accent); font-size: 11px; font-weight: 700;
  color: var(--rose); margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.trending-list { display: flex; flex-direction: column; }
.trending-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid rgba(211,210,230,0.4);
  font-size: 14px; color: var(--ink-soft); cursor: pointer;
  transition: color 0.12s;
}
.trending-item:last-child { border-bottom: none; }
.trending-item:hover { color: var(--purple); }
.trending-num {
  font-family: var(--font-display); font-weight: 200;
  font-size: 18px; color: var(--rose);
  width: 22px; text-align: center; flex: none;
}
.trending-arrow { margin-left: auto; font-size: 15px; color: var(--border); flex: none; }
.trending-item:hover .trending-arrow { color: var(--rose); }


/* ══════════════════════════════════════
   HEALTH TRACKER
   ══════════════════════════════════════ */

.health-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.health-widget {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-xs); padding: 16px;
  transition: transform 0.15s var(--ease-spring);
}
.health-widget:hover { transform: translateY(-2px) scale(1.01); }

.hw-icon {
  width: 34px; height: 34px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; margin-bottom: 10px;
}
.hw-icon.cycle    { background: var(--rose-soft); color: var(--rose); }
.hw-icon.mood     { background: var(--lavender); color: var(--purple); }
.hw-icon.sleep    { background: var(--sky-soft);  color: var(--sky); }
.hw-icon.activity { background: var(--sage-soft); color: var(--sage); }

.hw-label { font-family: var(--font-accent); font-size: 11px; font-weight: 700; color: var(--ink-dim); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.hw-value { font-family: var(--font-display); font-weight: 200; font-size: 24px; color: var(--ink); line-height: 1; margin-bottom: 3px; }
.hw-sub { font-size: 11px; color: var(--ink-dim); }
.hw-spark { display: flex; align-items: flex-end; gap: 3px; height: 22px; margin-top: 8px; }
.hw-spark-bar { flex: 1; border-radius: var(--r-pill); min-height: 3px; background: var(--lavender); }
.hw-spark-bar.active { background: var(--purple); }
.hw-spark-bar.rose   { background: var(--rose); }
.hw-spark-bar.sky    { background: var(--sky); }
.hw-spark-bar.sage, .hw-spark-bar.mint { background: var(--sage); }
.hw-spark-bar.amber, .hw-spark-bar.gold { background: var(--amber); }

/* Cycle ring */
.cycle-tracker {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-xs); padding: 20px;
  box-shadow: var(--shadow-sm);
}
.ct-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.ct-title { font-family: var(--font-display); font-weight: 200; font-size: 18px; }
.ct-phase {
  font-family: var(--font-accent); font-size: 11px; font-weight: 700;
  background: var(--amber-soft); color: var(--amber);
  padding: 4px 12px; border-radius: var(--r-pill);
  text-transform: uppercase; letter-spacing: 0.03em;
}
.ct-ring {
  width: 120px; height: 120px; margin: 0 auto 14px;
  border-radius: 50%; position: relative;
  background: conic-gradient(var(--rose) 0deg 90deg, var(--purple) 90deg 180deg, var(--sky) 180deg 270deg, var(--amber) 270deg 360deg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-pop);
}
.ct-ring-inner {
  width: 90px; height: 90px; border-radius: 50%;
  background: var(--bg-card);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ct-day { font-family: var(--font-display); font-weight: 200; font-size: 32px; line-height: 1; }
.ct-day-label { font-size: 10px; font-weight: 500; color: var(--ink-dim); }
.ct-legend {
  display: flex; justify-content: center; gap: 14px;
  font-size: 10px; font-weight: 500; color: var(--ink-dim);
}
.ct-legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 3px; }


/* ══════════════════════════════════════
   EARNINGS HERO
   ══════════════════════════════════════ */

.earnings-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, hsl(292,38%,41%), hsl(243,29%,32%));
  border-radius: var(--r-xs); padding: 24px 20px;
  color: #fff;
  box-shadow: var(--shadow-pop);
}
.earnings-hero::before {
  content: ''; position: absolute; top: -40px; right: -30px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 70%);
  pointer-events: none;
}
.earnings-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.075'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.eh-label { font-family: var(--font-accent); font-size: 11px; font-weight: 700; opacity: 0.7; margin-bottom: 4px; position: relative; text-transform: uppercase; letter-spacing: 0.06em; }
.eh-amount { font-family: var(--font-display); font-size: 44px; font-weight: 200; line-height: 1; margin-bottom: 3px; position: relative; }
.eh-amount .cents { font-size: 0.5em; opacity: 0.65; }
.eh-sub { font-size: 11px; font-weight: 500; opacity: 0.5; margin-bottom: 18px; position: relative; }
.eh-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; position: relative; }
.eh-stat { background: rgba(255,255,255,0.1); border-radius: var(--r-sm); padding: 12px 10px; text-align: center; }
.eh-stat-val { font-family: var(--font-display); font-size: 20px; font-weight: 200; margin-bottom: 1px; }
.eh-stat-lbl { font-family: var(--font-accent); font-size: 9px; font-weight: 600; opacity: 0.5; text-transform: uppercase; letter-spacing: 0.04em; }
.eh-actions { display: flex; gap: 8px; position: relative; }


/* ══════════════════════════════════════
   WALLET
   ══════════════════════════════════════ */

.wallet-grid { display: flex; flex-direction: column; }
.wallet-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.wallet-row:last-child { border-bottom: none; }
.wr-icon {
  width: 38px; height: 38px; flex: none; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.wr-icon.credit  { background: var(--sage-soft); color: var(--sage); }
.wr-icon.payout  { background: var(--lavender); color: var(--purple); }
.wr-icon.bonus   { background: var(--amber-soft); color: var(--amber); }
.wr-icon.pending { background: var(--sky-soft);   color: var(--sky); }
.wr-body { flex: 1; }
.wr-title { font-size: 14px; font-weight: 600; }
.wr-sub { font-size: 11px; font-weight: 500; color: var(--ink-dim); }
.wr-amount { font-weight: 700; font-size: 14px; flex: none; font-variant-numeric: tabular-nums; }
.wr-amount.credit { color: var(--sage); }
.wr-amount.debit { color: var(--ink-dim); }


/* ══════════════════════════════════════
   CONTENT CARDS
   ══════════════════════════════════════ */

.content-scroll {
  display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none;
  padding-bottom: 6px;
}
.content-scroll::-webkit-scrollbar { display: none; }

.content-card {
  flex: none; width: 210px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-xs); overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform 0.15s var(--ease-spring);
}
.content-card:hover { transform: translateY(-2px) scale(1.01); }
.cc-img {
  height: 120px; position: relative;
  background: linear-gradient(135deg, var(--lavender), var(--green-soft));
  display: flex; align-items: center; justify-content: center;
}
.cc-img-emoji { font-size: 42px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.08)); }
.cc-img-tag {
  position: absolute; top: 8px; left: 8px;
  font-family: var(--font-accent); font-size: 10px; font-weight: 700;
  background: var(--purple); color: #fff;
  padding: 3px 10px; border-radius: var(--r-pill);
  text-transform: uppercase; letter-spacing: 0.03em;
}
.cc-body { padding: 14px; }
.cc-topic { font-family: var(--font-accent); font-size: 10px; font-weight: 700; color: var(--purple); margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.04em; }
.cc-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: 14px; line-height: 1.3; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cc-foot { font-size: 10px; font-weight: 500; color: var(--ink-dim); display: flex; gap: 8px; }


/* ══════════════════════════════════════
   ARTICLE LIST
   ══════════════════════════════════════ */

.article-list { display: flex; flex-direction: column; }
.article-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.article-row:last-child { border-bottom: none; }
.ar-thumb {
  width: 54px; height: 54px; flex: none; border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--lavender), var(--green-soft));
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.ar-body { flex: 1; }
.ar-topic { font-family: var(--font-accent); font-size: 10px; font-weight: 700; color: var(--purple); margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.04em; }
.ar-title { font-family: var(--font-display); font-weight: 400; font-size: 14px; line-height: 1.3; }
.ar-meta { font-size: 10px; font-weight: 500; color: var(--ink-dim); margin-top: 2px; }


/* ══════════════════════════════════════
   SEGMENTED
   ══════════════════════════════════════ */

.segmented {
  display: flex; background: var(--lavender);
  border-radius: var(--r-pill); padding: 3px; gap: 2px;
  margin-bottom: 14px;
}
.seg-btn {
  flex: 1; padding: 8px 12px; border-radius: var(--r-pill);
  font-family: var(--font-accent); font-size: 12px; font-weight: 600;
  color: var(--ink-dim); text-align: center;
  text-transform: uppercase; letter-spacing: 0.03em;
  transition: all 0.16s var(--ease-spring);
}
.seg-btn.active {
  background: var(--purple); color: #fff;
  box-shadow: 0 2px 8px rgba(70,65,127,0.25);
}


/* ══════════════════════════════════════
   FORMS
   ══════════════════════════════════════ */

.form-group { margin-bottom: 14px; }
.form-label {
  font-family: var(--font-accent); font-size: 12px; font-weight: 700;
  color: var(--ink-soft); margin-bottom: 6px; display: block;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.form-input {
  width: 100%; padding: 12px 14px;
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--r-xs); font-size: 14px; outline: none;
  letter-spacing: 0.015em;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.form-input:focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(70,65,127,0.08); }
.form-input::placeholder { color: var(--ink-dim); }
.form-input-icon { position: relative; }
.form-input-icon .ph { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 16px; color: var(--ink-dim); }
.form-input-icon .form-input { padding-left: 40px; }
textarea.form-input { min-height: 80px; resize: vertical; }
.form-hint { font-size: 11px; color: var(--ink-dim); margin-top: 4px; font-style: italic; }
.form-select {
  width: 100%; padding: 12px 14px;
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--r-xs); font-size: 14px; outline: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237B7794' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.form-select:focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(70,65,127,0.08); }

.toggle { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.toggle-label { font-size: 14px; font-weight: 500; }
.toggle-track {
  width: 46px; height: 28px; border-radius: 14px;
  background: var(--border); cursor: pointer;
  position: relative; transition: background 0.2s;
}
.toggle-track.on { background: var(--purple); }
.toggle-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  transition: transform 0.25s var(--ease-spring);
}
.toggle-track.on .toggle-thumb { transform: translateX(18px); }


/* ══════════════════════════════════════
   CALLOUT
   ══════════════════════════════════════ */

.callout {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-xs); padding: 20px;
  box-shadow: var(--shadow-sm);
}
.callout h4 { font-family: var(--font-display); font-weight: 200; font-size: 18px; margin-bottom: 8px; }
.callout p { font-size: 14px; color: var(--ink-dim); line-height: 1.6; }
.callout-rose { border-color: rgba(200,90,124,0.2); background: var(--rose-soft); }
.callout-sage { border-color: rgba(76,175,130,0.2); background: var(--sage-soft); }


/* ══════════════════════════════════════
   PROFILE
   ══════════════════════════════════════ */

.profile-header { text-align: center; padding: 8px 0 24px; }
.profile-avatar {
  width: 76px; height: 76px; border-radius: var(--r-md); margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--lavender), var(--green-soft));
  border: 3px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 30px; font-weight: 200;
  color: var(--purple);
  box-shadow: var(--shadow-pop);
}
.profile-name { font-family: var(--font-display); font-size: 22px; font-weight: 200; margin-bottom: 2px; }
.profile-email { font-size: 12px; font-weight: 500; color: var(--ink-dim); }

.settings-group { margin-bottom: 18px; }
.settings-group-title { font-family: var(--font-accent); font-size: 11px; font-weight: 700; color: var(--purple); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.06em; }
.settings-list { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-xs); overflow: hidden; }
.settings-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; transition: background 0.12s; }
.settings-row:not(:last-child) { border-bottom: 1px solid var(--border); }
.settings-row:hover { background: var(--lavender); }
.sr-icon {
  width: 32px; height: 32px; flex: none; border-radius: var(--r-sm);
  background: var(--lavender); color: var(--purple);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.sr-body { flex: 1; }
.sr-title { font-size: 14px; font-weight: 600; }
.sr-desc { font-size: 11px; color: var(--ink-dim); }
.sr-arrow { font-size: 14px; color: var(--border); }


/* ══════════════════════════════════════
   THEME PICKER
   ══════════════════════════════════════ */

.theme-toggle { position: relative; }
.theme-dot { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--purple); background: var(--lavender); }
.theme-picker {
  position: absolute; top: 48px; right: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px;
  box-shadow: var(--shadow-lg);
  display: none; grid-template-columns: repeat(3, 1fr); gap: 10px;
  width: 200px; z-index: 300;
}
.theme-picker.open { display: grid; animation: pop-drop 0.2s var(--ease-out); }
@keyframes pop-drop { from { opacity: 0; transform: translateY(-6px) scale(0.96); } }
.theme-picker .tp-title {
  grid-column: 1 / -1; font-family: var(--font-accent); font-size: 10px;
  font-weight: 700; color: var(--ink-dim); margin-bottom: 2px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.swatch { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.swatch-chip {
  width: 38px; height: 38px; border-radius: var(--r-sm); position: relative;
  border: 2px solid var(--border); overflow: hidden;
  transition: transform 0.15s var(--ease-spring), border-color 0.15s;
}
.swatch:hover .swatch-chip { transform: scale(1.1); }
.swatch.active .swatch-chip { border-color: var(--purple); border-width: 3px; }
.swatch.active .swatch-chip::after {
  content: '\2713'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px; text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.swatch-chip .accent-bar { position: absolute; bottom: 0; left: 0; right: 0; height: 11px; }
.swatch-name { font-family: var(--font-accent); font-size: 9px; font-weight: 600; color: var(--ink-dim); text-transform: uppercase; letter-spacing: 0.03em; }


/* ══════════════════════════════════════
   LOGIN
   ══════════════════════════════════════ */

.login-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-xs); padding: 32px 24px;
  box-shadow: var(--shadow-lg);
}
.login-brand { text-align: center; margin-bottom: 26px; }
.login-brand h2 {
  font-family: var(--font-display); font-size: 28px; font-weight: 200;
  margin-bottom: 4px;
}
.login-brand h2 em { color: var(--purple); font-style: normal; }
.login-brand p { font-size: 14px; color: var(--ink-dim); }
.login-divider {
  display: flex; align-items: center; gap: 12px; margin: 18px 0;
  font-family: var(--font-accent); font-size: 11px; font-weight: 600; color: var(--ink-dim);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.social-btn {
  width: 100%; padding: 12px; border: 1.5px solid var(--border);
  border-radius: var(--r-pill); font-family: var(--font-body); font-weight: 600; font-size: 14px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: all 0.15s var(--ease-spring); margin-bottom: 8px;
}
.social-btn:hover { border-color: var(--purple); background: var(--lavender); transform: translateY(-1px); }
.social-btn svg { width: 18px; height: 18px; }
.login-footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--ink-dim); }
.login-footer a { color: var(--purple); font-weight: 700; }
.login-footer a:hover { text-decoration: underline; }


/* ══════════════════════════════════════
   DRAWER
   ══════════════════════════════════════ */

.drawer-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(33,37,41,0.4); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 501;
  background: var(--bg-card);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  max-height: 85dvh; overflow-y: auto;
  transform: translateY(100%); transition: transform 0.35s var(--ease-out);
  padding-bottom: env(safe-area-inset-bottom, 16px);
  box-shadow: var(--shadow-lg);
}
.drawer.open { transform: translateY(0); }
.drawer-handle { width: 36px; height: 4px; border-radius: 2px; background: var(--border); margin: 10px auto 6px; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 20px 14px; border-bottom: 1px solid var(--border);
}
.drawer-title { font-family: var(--font-display); font-size: 20px; font-weight: 200; }
.drawer-close {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--ink-dim); transition: all 0.15s;
}
.drawer-close:hover { background: var(--lavender); color: var(--purple); }
.drawer-body { padding: 20px; }


/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media (min-width: 640px) {
  .shell { max-width: 680px; padding-left: 28px; padding-right: 28px; }
  .status-bar { padding-left: 28px; padding-right: 28px; }
  .tab-bar { padding-left: 24px; padding-right: 24px; }
  .tab-bar-inner { max-width: 480px; }
  .cat-scroll { flex-wrap: wrap; overflow-x: visible; }
  .section-tinted { margin-left: -28px; margin-right: -28px; padding-left: 28px; padding-right: 28px; border-radius: var(--r-lg); }
  .hero-article { display: flex; }
  .ha-img { width: 260px; height: auto; min-height: 200px; flex: none; border-radius: var(--r-xs) 0 0 var(--r-xs); }
  .ha-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
  .column-banner { width: 280px; }
  .content-card { width: 240px; }
  .health-grid { grid-template-columns: repeat(4, 1fr); }
  .drawer { left: 50%; right: auto; width: 460px; margin-left: -230px; border-radius: var(--r-xl) var(--r-xl) 0 0; }
  .sa-body { padding: 28px; }
  .sa-footer { padding: 14px 28px; }
  .login-card { max-width: 400px; margin: 0 auto; }
}

@media (min-width: 960px) {
  .shell { max-width: 900px; padding-left: 40px; padding-right: 40px; }
  .status-bar { padding-left: 40px; padding-right: 40px; }
  .tab-bar {
    top: calc(58px + env(safe-area-inset-top, 0px)); bottom: 0;
    left: 0; right: auto; width: 72px; padding: 16px 0;
    background: rgba(247,245,251,0.92);
    border-bottom: none; border-right: 1px solid rgba(211,210,230,0.5);
  }
  .tab-bar-inner {
    flex-direction: column; max-width: none; height: 100%;
    border: none; background: transparent; box-shadow: none; border-radius: 0; padding: 8px 0; gap: 2px;
  }
  .tab { flex: none; width: 56px; height: 48px; border-radius: var(--r-md); gap: 1px; }
  .tab .ph, .tab .ph-fill { font-size: 20px; }
  .tab span { font-size: 9px; }
  body { padding-left: 72px; }
  .shell { padding-bottom: 40px; }
  .status-bar { left: 72px; }
  .section-tinted { margin-left: -40px; margin-right: -40px; padding-left: 40px; padding-right: 40px; }
  .ha-img { width: 320px; }
  .ha-title { font-size: 28px; }
  .event-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .news-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .article-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .columns-scroll { flex-wrap: wrap; overflow-x: visible; }
  .column-banner { width: calc(33.333% - 8px); min-width: 220px; }
  .content-scroll { flex-wrap: wrap; overflow-x: visible; }
  .content-card { width: calc(33.333% - 8px); min-width: 200px; }
  .video-scroll { flex-wrap: wrap; overflow-x: visible; }
  .video-card-reel { width: calc(25% - 8px); min-width: 130px; }
  .trending-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .drawer {
    top: 0; bottom: 0; left: auto; right: 0; width: 400px; margin-left: 0;
    max-height: none; border-radius: var(--r-xl) 0 0 var(--r-xl); transform: translateX(100%);
  }
  .drawer.open { transform: translateX(0); }
}
