:root {
  /* EXACT CRITIX brand tokens (src/index.css @theme) */
  --cream: #fff8f1; --cream2: #faf2e6; --card: #ffffff;
  --ink: #1a1a1a; --ink-soft: #4a4a4a; --ink-mute: #8a8a8a; --line: #ebe3d6;
  --coral: #ff5a1f; --coral-600: #e84210; --coral-50: #fff4ef;
  --teal: #149577; --teal-900: #0b3340;
  --shadow-card: 0 1px 2px rgba(15,76,92,.05), 0 6px 24px -8px rgba(15,76,92,.08);
  --shadow-hover: 0 4px 12px rgba(15,76,92,.08), 0 18px 40px -12px rgba(15,76,92,.18);
  --shadow-coral: 0 8px 28px -8px rgba(255,90,31,.45);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Sora', 'Inter', system-ui, sans-serif;
  --font-he: 'Heebo', 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { background: var(--cream); color: var(--ink); }
html[dir="rtl"] body, html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] .wordmark, html[dir="rtl"] .tabs button { font-family: var(--font-he); }
body { font-family: var(--font); max-width: 600px; margin: 0 auto; min-height: 100vh; padding-bottom: 86px; -webkit-font-smoothing: antialiased;
  background: radial-gradient(120% 60% at 50% 0%, #fff 0%, var(--cream) 46%); }
#app { padding: 0 16px; }
h1, h2, h3 { font-family: var(--font-display); }

/* header */
.top { display: flex; align-items: center; gap: 10px; padding: 18px 2px 14px; }
.logo { height: 30px; width: auto; }
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink); letter-spacing: .2px; }
.wordmark b { color: var(--coral); font-weight: 800; }
.install { margin-inline-start: auto; border: 0; background: var(--coral); color: #fff; font-weight: 800; font-size: 12px; padding: 8px 12px; border-radius: 999px; cursor: pointer; box-shadow: var(--shadow-coral); animation: pop .3s ease; }
.lang { display: flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.install + .lang { margin-inline-start: 8px; }
.lang:first-of-type { }
.top .lang { margin-inline-start: auto; }
.top .install + .lang { margin-inline-start: 0; }
.lang button { border: 0; background: transparent; color: var(--ink-mute); font-weight: 700; padding: 5px 12px; border-radius: 999px; cursor: pointer; font-size: 13px; }
.lang button.on { background: var(--coral); color: #fff; }

/* featured */
.featured { margin: 6px 0 4px; animation: rise .5s ease both; }
.featured-label { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--c, var(--coral)); margin-bottom: 9px; }
.featured-label .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--coral)); box-shadow: 0 0 0 0 var(--c, var(--coral)); animation: pulse 2s infinite; }
.featured-card { display: block; width: 100%; text-align: start; border: 0; padding: 0; background: var(--card); border-radius: 22px; overflow: hidden; cursor: pointer; box-shadow: var(--shadow-card); transition: box-shadow .25s, transform .25s; }
.featured-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.featured-card:active { transform: scale(.99); }
.featured-img { height: 190px; background-size: cover; background-position: center; position: relative; }
.day-chip { position: absolute; top: 12px; inset-inline-start: 12px; background: rgba(26,26,26,.74); color: #fff; font-weight: 800; font-size: 12px; padding: 5px 11px; border-radius: 999px; }
.featured-text { padding: 14px 16px 16px; }
.featured-text h2 { font-size: 22px; line-height: 1.24; margin: 7px 0 10px; color: var(--ink); }
.read { color: var(--c, var(--coral)); font-weight: 800; font-size: 14px; }

.section { font-size: 14px; color: var(--ink-soft); margin: 24px 2px 12px; font-weight: 800; font-family: var(--font-display); }

/* grid (previous tips) */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tip { display: block; text-align: start; border: 1px solid var(--line); padding: 0; background: var(--card); border-radius: 16px; overflow: hidden; cursor: pointer; box-shadow: var(--shadow-card); transition: box-shadow .2s, transform .2s; animation: rise .45s ease both; }
.tip:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.tip:active { transform: scale(.99); }
.tip-img { height: 104px; background-size: cover; background-position: center; position: relative; }
.tip-day { position: absolute; top: 8px; inset-inline-start: 8px; background: rgba(26,26,26,.6); color: #fff; font-weight: 800; font-size: 10px; padding: 3px 8px; border-radius: 999px; }
.tip-body { padding: 10px 12px 13px; border-top: 3px solid var(--c, var(--coral)); }
.cat { font-size: 11px; font-weight: 800; }
.tip-body h3 { font-size: 14px; line-height: 1.32; margin: 5px 0 0; color: var(--ink); }

/* reader */
.reader-overlay { position: fixed; inset: 0; background: rgba(20,20,24,.55); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fade .2s ease; }
.reader { background: var(--cream); width: 100%; max-width: 600px; max-height: 93vh; overflow-y: auto; border-radius: 26px 26px 0 0; position: relative; animation: up .28s cubic-bezier(.2,.8,.2,1); }
.reader-head { position: sticky; top: 0; z-index: 3; background: var(--cream); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.back-btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 800; font-family: var(--font-display); font-size: 14px; padding: 9px 16px; border-radius: 999px; cursor: pointer; box-shadow: var(--shadow-card); }
.back-btn:active { transform: scale(.97); }
html[dir="rtl"] .back-btn .arrow { display: inline-block; transform: scaleX(-1); }
.reader-img { height: 220px; background-size: cover; background-position: center; position: relative; }
.reader-content { padding: 18px 18px 34px; }
.reader-content h1 { font-size: 25px; line-height: 1.24; margin: 8px 0 12px; color: var(--ink); }
.reader-tools { display: flex; gap: 10px; margin: 0 0 16px; }
.tool { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 14px; font-weight: 800; font-size: 13px; cursor: pointer; transition: .15s; }
.tool i { font-style: normal; }
.tool:hover { border-color: var(--c, var(--coral)); }
.tool.on { background: var(--c, var(--coral)); color: #fff; border-color: transparent; }
.reader-body p { margin: 0 0 12px; line-height: 1.78; color: var(--ink-soft); }
.reader-body ul { margin: 0 0 12px; padding-inline-start: 20px; }
.reader-body li { margin: 0 0 8px; line-height: 1.66; color: var(--ink-soft); }
.reader-body li::marker { color: var(--c, var(--coral)); }
.signoff { margin-top: 18px; font-weight: 800; color: var(--c, var(--coral)); font-family: var(--font-display); }

/* perks */
.perks { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.perk { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow-card); animation: rise .4s ease both; }
.brand { font-weight: 800; font-size: 18px; font-family: var(--font-display); color: var(--ink); }
.offer { color: var(--ink-soft); margin: 6px 0 14px; }
.perk-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.code-btn { display: inline-flex; align-items: center; gap: 10px; border: 1.5px dashed var(--coral); background: var(--coral-50); color: var(--ink); border-radius: 10px; padding: 10px 14px; cursor: pointer; font-weight: 800; letter-spacing: .5px; }
.code-btn em { font-style: normal; font-size: 12px; color: var(--coral); }
.perk-link { margin-inline-start: auto; color: var(--teal); font-weight: 800; text-decoration: none; }
.empty { text-align: center; color: var(--ink-mute); padding: 64px 20px; }
.empty-icon { font-size: 46px; margin-bottom: 12px; }

/* waitlist */
.waitlist { background: linear-gradient(135deg, var(--cream2), #fff); border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin: 24px 0 6px; box-shadow: var(--shadow-card); }
.waitlist strong { font-size: 16px; font-family: var(--font-display); color: var(--ink); }
.waitlist p { color: var(--ink-soft); font-size: 13px; margin: 6px 0 12px; }
.wait-row { display: flex; gap: 8px; }
.wait-row input { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--line); color: var(--ink); border-radius: 10px; padding: 12px; font-size: 14px; }
.wait-row button { border: 0; background: var(--coral); color: #fff; font-weight: 800; border-radius: 10px; padding: 0 18px; cursor: pointer; box-shadow: var(--shadow-coral); }
.waitlist.done { text-align: center; color: var(--teal); font-weight: 800; }

/* bottom tabs */
.tabs { position: fixed; bottom: 0; left: 0; right: 0; max-width: 600px; margin: 0 auto; display: flex; background: var(--cream); border-top: 1px solid var(--line); box-shadow: 0 -3px 16px rgba(15,76,92,.10); padding-bottom: env(safe-area-inset-bottom); }
.tabs button { flex: 1; border: 0; background: transparent; color: var(--ink-mute); font-weight: 800; padding: 15px 0; font-size: 13px; cursor: pointer; font-family: var(--font-display); position: relative; }
.tabs button.on { color: var(--coral); }
.tabs button.on::after { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 26px; height: 3px; border-radius: 3px; background: var(--coral); }

/* stats bar */
.stats { display: flex; gap: 10px; margin: 8px 0 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow-card); }
.stat.streak { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 96px; }
.stat.streak b { font-size: 21px; font-family: var(--font-display); color: var(--coral); line-height: 1; }
.stat.streak span { font-size: 11px; color: var(--ink-mute); font-weight: 700; margin-top: 3px; }
.stat.prog { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.prog-top { display: flex; justify-content: space-between; align-items: baseline; }
.prog-top span { font-size: 12px; color: var(--ink-mute); font-weight: 700; }
.prog-top b { font-size: 15px; font-family: var(--font-display); color: var(--ink); }
.bar { height: 7px; background: var(--cream2); border-radius: 999px; margin-top: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--coral), #ff8a5c); border-radius: 999px; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.read-cta { color: var(--c, var(--coral)); font-weight: 800; font-size: 14px; }

/* card badges */
.badges { position: absolute; top: 8px; inset-inline-end: 8px; display: flex; gap: 4px; }
.badges.big { top: 12px; inset-inline-end: 12px; }
.b-read, .b-save { font-size: 11px; width: 21px; height: 21px; display: grid; place-items: center; border-radius: 999px; background: rgba(255,255,255,.94); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.b-read { color: var(--teal); font-weight: 900; }

/* tomorrow teaser */
.teaser { margin: 6px 0 2px; animation: rise .45s ease both; }
.teaser-card { display: flex; gap: 12px; background: var(--card); border: 1.5px dashed var(--c, var(--coral)); border-radius: 18px; overflow: hidden; padding: 10px; }
.teaser-img { width: 96px; min-width: 96px; border-radius: 12px; background-size: cover; background-position: center; filter: grayscale(.35) brightness(.78); position: relative; display: grid; place-items: center; }
.teaser-img .lock { font-size: 24px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
.teaser-text { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; }
.t-label { font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--c, var(--coral)); }
.teaser-text h3.blur { font-size: 15px; color: var(--ink); filter: blur(5px); user-select: none; margin: 2px 0; white-space: nowrap; overflow: hidden; }
.countdown { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.countdown b { font-family: var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.caught { text-align: center; background: var(--cream2); border: 1px solid var(--line); border-radius: 16px; padding: 16px; font-weight: 800; color: var(--teal); margin: 6px 0; }

/* reactions */
.reactions { margin: 18px 0 6px; padding: 14px 16px; background: var(--cream2); border-radius: 14px; }
.react-q { font-weight: 800; font-size: 14px; color: var(--ink); font-family: var(--font-display); }
.react-btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.react { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); border-radius: 999px; padding: 8px 13px; font-weight: 700; font-size: 13px; cursor: pointer; transition: .15s; }
.react i { font-style: normal; }
.react:hover { border-color: var(--c, var(--coral)); }
.react.on { background: var(--c, var(--coral)); color: #fff; border-color: transparent; transform: scale(1.04); }

/* confetti + toast */
.confetti-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 90; }
.toast { position: fixed; left: 50%; bottom: 94px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; font-weight: 800; padding: 12px 18px; border-radius: 999px; z-index: 95; opacity: 0; transition: .3s ease; box-shadow: 0 10px 30px rgba(0,0,0,.3); font-size: 14px; white-space: nowrap; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* animations */
@keyframes up { from { transform: translateY(46px); opacity: .5; } }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,90,31,.5); } 70% { box-shadow: 0 0 0 7px rgba(255,90,31,0); } 100% { box-shadow: 0 0 0 0 rgba(255,90,31,0); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }
