*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0b0710;
  --bg-2: #120b1a;
  --surface: #17101f;
  --surface-2: #1f1530;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);
  --text: #f4f0fa;
  --muted: #9a8fb0;
  --muted-2: #6f6685;
  --pink: #ec4899;
  --pink-hot: #ff3d9a;
  --purple: #a855f7;
  --accent: #ff2e93;
  --accent-2: #a855f7;
  --green: #22c55e;
  --green-hover: #16a34a;
  --red: #ef4444;
  --red-hover: #dc2626;
  --gold: #fbbf24;
  --grad: linear-gradient(135deg, #ff2e93 0%, #a855f7 100%);
  --grad-soft: linear-gradient(135deg, rgba(255,46,147,.18), rgba(168,85,247,.18));
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px rgba(0,0,0,.45);
  --sidebar-w: 248px;
}

html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(168,85,247,.10), transparent),
              radial-gradient(900px 500px at -10% 110%, rgba(255,46,147,.08), transparent),
              var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- AGE GATE ---------- */
.age-gate {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: radial-gradient(800px 500px at 50% 0%, rgba(168,85,247,.18), transparent), rgba(5,3,8,.96);
  backdrop-filter: blur(10px);
}
.age-card {
  width: 100%; max-width: 480px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border-strong);
  border-radius: 22px; padding: 36px 32px 28px; text-align: center;
  box-shadow: var(--shadow), 0 0 60px rgba(255,46,147,.12);
  animation: pop .35s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.age-logo img { width: 88px; height: 88px; border-radius: 22px; object-fit: cover; box-shadow: 0 10px 30px rgba(255,46,147,.3); }
.age-wordmark { font-weight: 800; font-size: 1.35rem; letter-spacing: -.3px; margin-top: 12px; }
.age-badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 16px 0 6px; padding: 6px 16px; border-radius: 999px;
  font-weight: 800; font-size: 1.05rem; letter-spacing: .5px;
  color: #fff; background: var(--grad); box-shadow: 0 8px 20px rgba(255,46,147,.35);
}
.age-badge svg { width: 18px; height: 18px; }
.age-card h1 { font-size: 1.9rem; font-weight: 800; margin-bottom: 12px; }
.age-lead { color: var(--text); font-size: 1rem; margin-bottom: 12px; }
.age-sub { color: var(--muted); font-size: .9rem; margin-bottom: 24px; }
.age-actions { display: flex; flex-direction: column; gap: 12px; }
.age-enter, .age-leave {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 15px; border: none; border-radius: 12px;
  font-size: 1.02rem; font-weight: 700; cursor: pointer; transition: transform .12s, filter .2s, box-shadow .2s;
}
.age-enter svg, .age-leave svg { width: 20px; height: 20px; }
.age-enter { background: var(--green); color: #062b12; box-shadow: 0 10px 26px rgba(34,197,94,.32); }
.age-enter:hover { filter: brightness(1.06); transform: translateY(-1px); }
.age-leave { background: rgba(239,68,68,.12); color: #ff8a8a; border: 1px solid rgba(239,68,68,.4); }
.age-leave:hover { background: var(--red); color: #fff; }
.age-legal { margin-top: 20px; font-size: .78rem; color: var(--muted-2); }
.age-link { color: var(--pink); text-decoration: underline; }

/* ---------- APP LAYOUT ---------- */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w); flex-shrink: 0; position: sticky; top: 0; height: 100vh;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 18px 14px;
  overflow-y: auto; z-index: 40;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 6px 8px 18px; }
.brand-logo { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; box-shadow: 0 6px 16px rgba(255,46,147,.3); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 1.04rem; letter-spacing: -.2px; display: inline-flex; align-items: baseline; gap: 4px; }
.wm-light { color: var(--text); }
.wm-accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.wm-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--pink); align-self: center; margin-left: 1px; box-shadow: 0 0 8px var(--pink); animation: wm-beat 1.2s ease-in-out infinite; }
@keyframes wm-beat { 0%,100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.8); opacity: .5; } }
.brand-tag { font-size: .68rem; color: var(--muted-2); margin-top: 2px; }

.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-group-label { font-size: .68rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted-2); padding: 14px 12px 6px; font-weight: 700; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  color: var(--muted); font-size: .92rem; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, color .15s;
}
.nav-item svg { width: 19px; height: 19px; flex-shrink: 0; }
.nav-item:hover { background: var(--surface); color: var(--text); }
.nav-item.active { background: var(--grad-soft); color: #fff; border-color: rgba(255,46,147,.3); }
.nav-item.active svg { color: var(--pink); }
.nav-badge { margin-left: auto; font-size: .65rem; background: var(--accent); color: #fff; padding: 2px 7px; border-radius: 999px; font-weight: 800; }

.sidebar-footer { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--border); }
.upgrade-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px; border-radius: 10px; border: none; cursor: pointer;
  background: var(--grad); color: #fff; font-weight: 800; font-size: .9rem;
  box-shadow: 0 10px 24px rgba(255,46,147,.3);
}
.upgrade-btn svg { width: 17px; height: 17px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 4px 6px; }
.footer-links a { font-size: .76rem; color: var(--muted-2); cursor: pointer; }
.footer-links a:hover { color: var(--pink); }

.sidebar-overlay { display: none; }

/* ---------- TOPBAR ---------- */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 16px; padding: 14px 24px;
  background: rgba(11,7,16,.8); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.search-wrap { position: relative; flex: 1; max-width: 520px; }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted-2); }
#search-input {
  width: 100%; padding: 11px 14px 11px 42px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: .92rem; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
#search-input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,46,147,.18); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: .88rem; cursor: pointer; border: 1px solid var(--border-strong); background: transparent; color: var(--text); transition: background .15s, transform .12s, filter .2s; }
.btn svg { width: 17px; height: 17px; }
.btn:hover { background: var(--surface); }
.btn-primary { background: var(--grad); border: none; color: #fff; box-shadow: 0 8px 20px rgba(255,46,147,.28); }
.btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 5px 14px 5px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); cursor: pointer; }
.user-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 800; color: #fff; font-size: .82rem; }
.user-name { font-size: .86rem; font-weight: 700; }

/* ---------- VIEW / SECTIONS ---------- */
.view { padding: 26px 24px 60px; max-width: 1280px; width: 100%; margin: 0 auto; }
.section { margin-bottom: 40px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-title { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 800; }
.section-emoji { font-size: 1.3rem; }
.view-all { font-size: .82rem; color: var(--pink); font-weight: 700; cursor: pointer; }
.view-all:hover { text-decoration: underline; }

.cards-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }

.game-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: transform .15s, border-color .2s, box-shadow .2s; scroll-snap-align: start; }
.game-card:hover { transform: translateY(-3px); border-color: rgba(255,46,147,.4); box-shadow: 0 16px 30px rgba(0,0,0,.4); }
.thumb { position: relative; aspect-ratio: 16/10; display: grid; place-items: center; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-fallback { width: 100%; height: 100%; display: grid; place-items: center; }
.thumb-play { width: 52px; height: 52px; border-radius: 50%; background: rgba(0,0,0,.45); display: grid; place-items: center; backdrop-filter: blur(2px); border: 1px solid rgba(255,255,255,.25); }
.thumb-play svg { width: 22px; height: 22px; color: #fff; margin-left: 3px; }
.thumb-type { position: absolute; top: 10px; left: 10px; display: flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; font-size: .68rem; font-weight: 800; color: #fff; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); }
.thumb-type svg { width: 12px; height: 12px; }
.thumb-dur { position: absolute; bottom: 10px; right: 10px; padding: 3px 8px; border-radius: 6px; font-size: .7rem; font-weight: 700; background: rgba(0,0,0,.65); color: #fff; }
.thumb-badge { position: absolute; top: 10px; right: 10px; padding: 3px 9px; border-radius: 999px; font-size: .66rem; font-weight: 800; }
.badge-new { background: var(--green); color: #062b12; }
.badge-rating { background: rgba(0,0,0,.6); color: var(--gold); display: flex; align-items: center; gap: 3px; }
.badge-rating svg { width: 11px; height: 11px; }
.card-body { padding: 12px 14px 14px; }
.card-title { font-weight: 700; font-size: .96rem; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { display: flex; align-items: center; gap: 8px; font-size: .76rem; color: var(--muted); }
.creator { display: flex; align-items: center; gap: 6px; }
.creator-avatar { width: 18px; height: 18px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: .6rem; font-weight: 800; color: var(--pink); }
.card-meta .dot { opacity: .5; }

/* HUB */
.hub { background: linear-gradient(135deg, rgba(255,46,147,.10), rgba(168,85,247,.10)); border: 1px solid rgba(255,46,147,.22); border-radius: 20px; padding: 22px; margin-bottom: 40px; }
.hub-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.hub-logo { display: flex; align-items: center; gap: 10px; }
.hub-logo .badge-hub { font-weight: 900; font-size: 1.4rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hub-sub { font-size: .82rem; color: var(--muted); letter-spacing: .5px; }
.hub-stats { display: flex; gap: 18px; margin-left: auto; }
.hub-stat { text-align: center; }
.hub-stat b { display: block; font-size: 1.3rem; font-weight: 800; color: #fff; }
.hub-stat span { font-size: .72rem; color: var(--muted); }
.hub-lobbies { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 10px; margin-bottom: 16px; }
.lobby { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.lobby-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--surface-2); display: grid; place-items: center; font-size: 1.05rem; }
.lobby-info { flex: 1; min-width: 0; }
.lobby-name { font-weight: 700; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lobby-players { font-size: .72rem; color: var(--muted); }
.lobby-join { font-size: .72rem; font-weight: 800; color: var(--pink); cursor: pointer; }
.hub-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* generic page (terms/privacy/changelog/help) */
.page { max-width: 820px; }
.page h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.page .page-sub { color: var(--muted); margin-bottom: 28px; }
.page h2 { font-size: 1.15rem; margin: 26px 0 10px; }
.page p, .page li { color: var(--muted); font-size: .94rem; margin-bottom: 10px; }
.page ul { padding-left: 20px; }
.page a { color: var(--pink); text-decoration: underline; }

.changelog-entry { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 18px; }
.changelog-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.changelog-tag { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #fff; background: var(--grad); padding: 4px 10px; border-radius: 999px; }
.changelog-date { color: var(--muted); font-size: .85rem; font-weight: 600; }
.changelog-section { margin-bottom: 16px; }
.changelog-section h3 { font-size: 1rem; margin-bottom: 8px; color: var(--text); }
.changelog-section ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.changelog-section li { color: var(--muted); font-size: .9rem; padding-left: 4px; }
.changelog-footer { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--border); font-size: .86rem; color: var(--pink); font-weight: 600; }

.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-emoji { font-size: 2.4rem; margin-bottom: 12px; }

/* ---------- AUTH MODAL ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5,3,8,.8); backdrop-filter: blur(6px); }
.modal-card { position: relative; width: 100%; max-width: 420px; background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--border-strong); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); animation: pop .3s cubic-bezier(.2,.9,.3,1.2); }
.modal-close { position: absolute; top: 14px; right: 14px; background: transparent; border: none; color: var(--muted); cursor: pointer; }
.modal-close svg { width: 20px; height: 20px; }
.auth-tabs { display: flex; gap: 6px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 4px; margin-bottom: 22px; }
.auth-tab { flex: 1; padding: 9px; border: none; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 700; font-size: .9rem; cursor: pointer; transition: background .15s, color .15s; }
.auth-tab.active { background: var(--grad); color: #fff; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.field label { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.field input { width: 100%; padding: 12px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); color: var(--text); font-size: .92rem; outline: none; transition: border-color .2s, box-shadow .2s; }
.field input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,46,147,.16); }
.auth-error { color: #ff8a8a; font-size: .82rem; min-height: 1em; }
.auth-submit { padding: 13px; border: none; border-radius: 11px; background: var(--grad); color: #fff; font-weight: 800; font-size: .96rem; cursor: pointer; box-shadow: 0 10px 24px rgba(255,46,147,.28); transition: filter .2s, transform .12s; }
.auth-submit:hover { filter: brightness(1.06); transform: translateY(-1px); }
.auth-alt { text-align: center; font-size: .84rem; color: var(--muted); margin-top: 4px; }
.auth-alt a { color: var(--pink); font-weight: 700; cursor: pointer; }
.auth-check { display: flex; align-items: flex-start; gap: 8px; font-size: .78rem; color: var(--muted); }
.auth-check input { width: auto; margin-top: 3px; }

/* ---------- SESSION PLAYER (kept from before, themed) ---------- */
.game-view { position: fixed; inset: 0; z-index: 300; background: #000; }
.session-player { display: flex; flex-direction: column; min-height: 100vh; background: #000; }
.session-media { flex: 1; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.session-image { width: 100%; height: 100%; object-fit: contain; background: #000; }
.session-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); text-align: center; padding: 40px; }
.session-placeholder p { font-size: 1.25rem; color: rgba(255,255,255,.4); }
.session-placeholder span { font-size: .85rem; }
.session-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; background: linear-gradient(to bottom, rgba(0,0,0,.55) 0%, transparent 22%, transparent 62%, rgba(0,0,0,.75) 100%); }
.session-overlay-top, .session-start-bar { pointer-events: auto; }
.session-overlay-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
.session-overlay-top span { font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.session-overlay-center { text-align: center; padding: 0 24px; }
.session-instruction { font-size: 1.5rem; font-weight: 700; text-shadow: 0 2px 8px rgba(0,0,0,.9); }
.session-phase { font-size: .9rem; color: var(--pink); margin-top: 8px; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.session-countdown { font-size: 5rem; font-weight: 800; color: var(--pink); text-shadow: 0 2px 12px rgba(0,0,0,.9); line-height: 1; }
.session-overlay-bottom { padding: 0 0 8px; }
.beat-track { position: relative; height: 8px; background: rgba(255,255,255,.1); margin: 0 20px 12px; border-radius: 4px; }
.beat-fill { position: absolute; left: 0; top: 0; height: 100%; width: 0%; background: rgba(255,46,147,.35); border-radius: 4px; transition: width .1s linear; }
.beat-pulse { position: absolute; left: 0; top: -4px; width: 4px; height: 16px; background: var(--pink); border-radius: 2px; box-shadow: 0 0 12px rgba(255,46,147,.6); transition: transform .06s ease-out, opacity .06s; }
.beat-pulse.pulse { transform: scaleY(1.4) scaleX(2); opacity: .9; }
.beat-pulse.pulse-accent { transform: scaleY(2) scaleX(3); background: #fff; box-shadow: 0 0 20px rgba(255,46,147,.6); }
.session-stats { display: flex; justify-content: center; gap: 24px; font-size: .85rem; color: rgba(255,255,255,.7); padding-bottom: 12px; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.session-start-bar { position: absolute; bottom: 80px; left: 50%; transform: translateX(-50%); z-index: 10; }
.primary-btn { padding: 14px 32px; font-size: 1rem; background: var(--grad); color: #fff; border: none; border-radius: 11px; font-weight: 800; cursor: pointer; box-shadow: 0 10px 24px rgba(255,46,147,.3); }
.secondary-btn, .back-btn { padding: 8px 16px; border-radius: 9px; font-size: .875rem; cursor: pointer; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.15); color: #fff; }

/* ---------- PRICING ---------- */
.pricing { max-width: 1100px; margin: 0 auto; }
.pricing-hero { text-align: center; margin-bottom: 36px; }
.pricing-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--pink); background: var(--grad-soft); border: 1px solid rgba(255,46,147,.3); padding: 6px 14px; border-radius: 999px; }
.pricing-eyebrow svg { width: 16px; height: 16px; color: var(--gold); }
.pricing-hero h1 { font-size: 2.4rem; font-weight: 800; margin: 14px 0 8px; }
.pricing-hero p { color: var(--muted); max-width: 520px; margin: 0 auto; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 28px 24px; transition: transform .15s, border-color .2s, box-shadow .2s; }
.plan:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--plan-accent) 50%, transparent); box-shadow: 0 18px 40px rgba(0,0,0,.4); }
.plan-popular { border-color: rgba(255,46,147,.55); background: linear-gradient(180deg, rgba(255,46,147,.08), var(--surface)); box-shadow: 0 0 0 1px rgba(255,46,147,.25), 0 18px 50px rgba(255,46,147,.12); }
.plan-ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; box-shadow: 0 8px 18px rgba(255,46,147,.4); white-space: nowrap; }
.plan-name { font-size: 1.05rem; font-weight: 800; color: var(--plan-accent); letter-spacing: .5px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin: 10px 0 2px; }
.plan-amount { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.plan-per { color: var(--muted); font-size: .9rem; font-weight: 600; }
.plan-tagline { color: var(--muted); font-size: .88rem; margin-bottom: 18px; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 11px; flex: 1; margin-bottom: 22px; }
.plan-features li { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--text); }
.plan-check { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--plan-accent) 22%, transparent); }
.plan-check svg { width: 13px; height: 13px; color: var(--plan-accent); }
.plan-btn { padding: 13px; border-radius: 12px; border: 1px solid var(--border-strong); background: transparent; color: var(--text); font-weight: 800; font-size: .95rem; cursor: pointer; transition: background .15s, transform .12s, filter .2s; }
.plan-btn:hover { background: var(--surface-2); transform: translateY(-1px); }
.plan-btn-primary { background: var(--grad); border: none; color: #fff; box-shadow: 0 10px 24px rgba(255,46,147,.3); }
.plan-btn-primary:hover { filter: brightness(1.07); }

.pricing-note { display: flex; align-items: center; gap: 12px; justify-content: center; max-width: 640px; margin: 28px auto 0; padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; color: var(--muted); font-size: .86rem; }
.pricing-note svg { width: 20px; height: 20px; color: var(--pink); flex-shrink: 0; }

.faq { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; background: transparent; border: none; color: var(--text); font-weight: 700; font-size: .95rem; text-align: left; cursor: pointer; }
.faq-caret { color: var(--pink); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq-item.open .faq-caret { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; color: var(--muted); font-size: .9rem; padding: 0 18px; transition: max-height .25s ease, padding .25s ease; }
.faq-item.open .faq-a { max-height: 200px; padding: 0 18px 16px; }
.pricing-help { text-align: center; margin-top: 30px; color: var(--muted); }
.pricing-help p { margin-bottom: 12px; }

@media (max-width: 820px) { .plans { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } .plan-popular { order: -1; } }

/* ---------- MOBILE ---------- */
.mobile-menu-btn { display: none; position: fixed; top: 12px; left: 12px; z-index: 50; width: 42px; height: 42px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--text); cursor: pointer; }
.mobile-menu-btn svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 35; opacity: 0; pointer-events: none; transition: opacity .25s; }
  .sidebar-overlay.show { opacity: 1; pointer-events: auto; }
  .mobile-menu-btn { display: grid; place-items: center; }
  .topbar { padding-left: 64px; }
  .session-instruction { font-size: 1.15rem; }
  .session-countdown { font-size: 3.5rem; }
}
@media (max-width: 520px) {
  .view { padding: 18px 14px 50px; }
  .topbar-actions .btn span { display: none; }
  .hub-stats { width: 100%; justify-content: flex-start; margin-left: 0; }
}
