/* ============================================================================
   OBSIDIAN — design system
   Continuity with the in-game menu: obsidian black, violet→fuchsia accent ramp.
   ========================================================================== */
:root {
	--void: #08080b;
	--bg: #0a0a0f;
	--bg-2: #0e0e15;
	--surface: #14141d;
	--surface-2: #1a1a25;
	--surface-3: #22222f;
	--stroke: rgba(255, 255, 255, 0.08);
	--stroke-soft: rgba(255, 255, 255, 0.045);
	--stroke-hard: rgba(255, 255, 255, 0.14);

	--text: #ecedf5;
	--text-2: #c2c3d4;
	--text-dim: #8688a0;
	--text-faint: #575a72;

	--accent-a: #7c5cff;
	--accent-b: #d946ef;
	--accent-c: #22d3ee;
	--danger: #f43f5e;
	--success: #34d399;
	--warn: #fbbf24;

	--grad: linear-gradient(120deg, var(--accent-a), var(--accent-b));
	--grad-soft: linear-gradient(120deg, rgba(124, 92, 255, 0.16), rgba(217, 70, 239, 0.16));
	--glow-a: 0 0 40px rgba(124, 92, 255, 0.45);
	--glow-b: 0 0 60px rgba(217, 70, 239, 0.3);

	--r-sm: 10px;
	--r-md: 14px;
	--r-lg: 20px;
	--r-xl: 28px;

	--shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
	--shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.8);

	--nav-h: 72px;
	--maxw: 1200px;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

	font-family: 'Segoe UI', system-ui, -apple-system, 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; }
img, svg { display: block; }
::selection { background: rgba(124, 92, 255, 0.35); color: #fff; }

/* ── ambient background: fixed aurora field ─────────────────────────────── */
.aurora {
	position: fixed;
	inset: 0;
	z-index: -2;
	overflow: hidden;
	pointer-events: none;
	background: radial-gradient(1200px 600px at 50% -10%, rgba(124, 92, 255, 0.14), transparent 60%), var(--bg);
}
.aurora span {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.5;
	mix-blend-mode: screen;
	animation: drift 22s var(--ease-in-out) infinite;
}
.aurora span:nth-child(1) { width: 520px; height: 520px; left: -8%; top: 4%; background: #7c5cff; }
.aurora span:nth-child(2) { width: 460px; height: 460px; right: -6%; top: 22%; background: #d946ef; animation-delay: -7s; animation-duration: 27s; }
.aurora span:nth-child(3) { width: 420px; height: 420px; left: 34%; bottom: -12%; background: #22d3ee; opacity: 0.28; animation-delay: -14s; animation-duration: 31s; }
@keyframes drift {
	0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
	33% { transform: translate3d(60px, 40px, 0) scale(1.12); }
	66% { transform: translate3d(-40px, 20px, 0) scale(0.94); }
}
.grid-veil {
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image: linear-gradient(var(--stroke-soft) 1px, transparent 1px), linear-gradient(90deg, var(--stroke-soft) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 70%);
	opacity: 0.5;
}

/* ── layout ─────────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; position: relative; }
.eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
	color: var(--accent-a);
	padding: 7px 14px; border-radius: 999px;
	background: var(--grad-soft); border: 1px solid rgba(124, 92, 255, 0.25);
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-a); box-shadow: var(--glow-a); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
.h-xl { font-size: clamp(40px, 6.5vw, 82px); }
.h-lg { font-size: clamp(30px, 4vw, 50px); }
.h-md { font-size: clamp(22px, 2.6vw, 32px); }
.lead { color: var(--text-dim); font-size: clamp(16px, 1.4vw, 19px); max-width: 60ch; }
.text-grad {
	background: linear-gradient(120deg, #fff 0%, #c9bcff 40%, var(--accent-b) 100%);
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.center { text-align: center; }
.center .lead, .center .eyebrow { margin-left: auto; margin-right: auto; }

/* ── buttons ────────────────────────────────────────────────────────────── */
.btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	padding: 13px 24px; border-radius: var(--r-md); border: 1px solid var(--stroke-hard);
	font-size: 15px; font-weight: 600; color: var(--text); cursor: pointer;
	background: var(--surface-2); transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.3s, background 0.25s;
	overflow: hidden; isolation: isolate;
}
.btn:hover { transform: translateY(-2px); border-color: var(--stroke-hard); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad); border: none; color: #fff; box-shadow: 0 8px 30px -8px rgba(124, 92, 255, 0.6); }
.btn-primary::after {
	content: ''; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(120deg, var(--accent-b), var(--accent-a));
	opacity: 0; transition: opacity 0.3s var(--ease);
}
.btn-primary:hover::after { opacity: 1; }
.btn-primary:hover { box-shadow: 0 14px 40px -8px rgba(217, 70, 239, 0.7); }
.btn-ghost { background: rgba(255, 255, 255, 0.03); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-danger { background: rgba(244, 63, 94, 0.12); border-color: rgba(244, 63, 94, 0.4); color: #ffb3bf; }
.btn-danger:hover { background: rgba(244, 63, 94, 0.2); box-shadow: 0 10px 30px -10px rgba(244, 63, 94, 0.5); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, 0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* shimmer sweep on primary buttons */
.btn-primary::before {
	content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
	transform: skewX(-18deg); transition: left 0.6s var(--ease);
}
.btn-primary:hover::before { left: 140%; }

/* ── navbar ─────────────────────────────────────────────────────────────── */
.nav {
	position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 100;
	display: flex; align-items: center;
	transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
	border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(10, 10, 15, 0.72); backdrop-filter: blur(18px) saturate(140%); border-bottom-color: var(--stroke); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand .mark { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; box-shadow: var(--glow-a); position: relative; }
.brand .mark svg { width: 18px; height: 18px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { padding: 9px 14px; border-radius: 10px; font-size: 15px; color: var(--text-dim); transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; }

/* ── hero ───────────────────────────────────────────────────────────────── */
.hero { padding-top: calc(var(--nav-h) + 90px); padding-bottom: 40px; text-align: center; position: relative; }
.hero-logo { display: block; width: min(300px, 66%); height: auto; margin: 0 auto 4px; filter: drop-shadow(0 14px 50px rgba(124, 92, 255, 0.4)); animation: floaty 6s var(--ease-in-out) infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.hero .h-xl { margin: 22px 0 20px; }
.hero .lead { margin: 0 auto 34px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 20px; color: var(--text-faint); font-size: 13px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.hero-note span { display: inline-flex; gap: 7px; align-items: center; }
.hero-note svg { width: 15px; height: 15px; color: var(--success); }

/* app window mock under the hero */
.hero-mock {
	margin: 70px auto 0; max-width: 900px; border-radius: var(--r-xl);
	border: 1px solid var(--stroke-hard); background: linear-gradient(180deg, var(--surface), var(--bg-2));
	box-shadow: var(--shadow-lg), var(--glow-a); overflow: hidden;
	transform: perspective(1600px) rotateX(9deg); transform-origin: center top;
	position: relative;
}
.hero-mock::after { content: ''; position: absolute; inset: 0; background: radial-gradient(700px 200px at 50% 0%, rgba(124, 92, 255, 0.16), transparent 70%); pointer-events: none; }
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--stroke); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--surface-3); }
.mock-bar i:nth-child(1) { background: #ff5f57; } .mock-bar i:nth-child(2) { background: #febc2e; } .mock-bar i:nth-child(3) { background: #28c840; }
.mock-bar span { margin-left: 10px; font-size: 13px; color: var(--text-faint); }
.mock-body { display: grid; grid-template-columns: 190px 1fr; min-height: 320px; }
.mock-side { border-right: 1px solid var(--stroke); padding: 14px 10px; display: flex; flex-direction: column; gap: 3px; background: rgba(0, 0, 0, 0.2); }
.mock-side-label { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); padding: 2px 12px 8px; }
.mock-nav { display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: 10px; color: var(--text-dim); font-size: 13.5px; }
.mock-nav.on { background: var(--grad-soft); color: #fff; box-shadow: inset 3px 0 0 var(--accent-a); }
.mock-nav .dot { width: 15px; height: 15px; border-radius: 5px; background: currentColor; opacity: 0.5; }
.mock-main { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.mock-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.mock-tab { font-size: 12px; color: var(--text-dim); padding: 6px 13px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--stroke-soft); }
.mock-tab.on { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 16px -8px rgba(124, 92, 255, 0.7); }
.mock-section { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); font-weight: 700; padding-left: 11px; border-left: 3px solid var(--accent-a); }
.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; }
.mock-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--stroke-soft); }
.mock-row span { font-size: 13.5px; color: var(--text-2); }
.mock-toggle { width: 40px; height: 22px; border-radius: 999px; background: var(--surface-3); position: relative; transition: background 0.3s; flex-shrink: 0; margin-left: 12px; }
.mock-toggle.on { background: var(--grad); }
.mock-toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left 0.3s var(--ease); }
.mock-toggle.on::after { left: 21px; }

/* ── marquee ────────────────────────────────────────────────────────────── */
.marquee { border-block: 1px solid var(--stroke); padding: 22px 0; overflow: hidden; background: rgba(0, 0, 0, 0.2); }
.marquee-track { display: flex; gap: 60px; width: max-content; animation: scroll 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { color: var(--text-faint); font-size: 15px; font-weight: 600; letter-spacing: 0.04em; display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.marquee-track span::before { content: '◆'; color: var(--accent-a); font-size: 10px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ── cards / features ───────────────────────────────────────────────────── */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
	position: relative; background: linear-gradient(180deg, var(--surface), var(--bg-2));
	border: 1px solid var(--stroke); border-radius: var(--r-lg); padding: 30px;
	transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
	overflow: hidden;
}
.card::before {
	content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
	background: linear-gradient(140deg, rgba(124, 92, 255, 0.5), transparent 40%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor; mask-composite: exclude;
	opacity: 0; transition: opacity 0.35s;
}
.card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--shadow-lg); }
.card:hover::before { opacity: 1; }
.card .ic { width: 50px; height: 50px; border-radius: 13px; background: var(--grad-soft); border: 1px solid rgba(124, 92, 255, 0.3); display: grid; place-items: center; margin-bottom: 18px; color: var(--accent-a); }
.card .ic svg { width: 24px; height: 24px; }
.card h3 { font-size: 19px; margin-bottom: 9px; }
.card p { color: var(--text-dim); font-size: 15px; }

/* spotlight follow */
.card.spot { }
.card.spot::after {
	content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
	background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(124, 92, 255, 0.13), transparent 60%);
	opacity: 0; transition: opacity 0.3s;
}
.card.spot:hover::after { opacity: 1; }

/* ── stat band ──────────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 30px 16px; border-radius: var(--r-lg); border: 1px solid var(--stroke); background: rgba(255, 255, 255, 0.015); }
.stat .n { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -0.03em; }
.stat .l { color: var(--text-dim); font-size: 14px; margin-top: 4px; }

/* ── steps ──────────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 30px; border-radius: var(--r-lg); border: 1px solid var(--stroke); background: var(--surface); }
.step .num { counter-increment: step; font-size: 13px; font-weight: 700; color: var(--accent-a); letter-spacing: 0.1em; }
.step .num::before { content: '0' counter(step); }
.step h3 { font-size: 18px; margin: 12px 0 8px; }
.step p { color: var(--text-dim); font-size: 15px; }

/* ── pricing ────────────────────────────────────────────────────────────── */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
/* two-plan layout: 30 Days | Lifetime, big and centered */
.tiers.two { grid-template-columns: repeat(2, 1fr); gap: 26px; max-width: 840px; margin-inline: auto; }
.tiers.two .tier { padding: 40px 34px; }
.tiers.two .price .amt { font-size: 54px; }
.tier {
	position: relative; display: flex; flex-direction: column; padding: 34px 28px;
	border-radius: var(--r-xl); border: 1px solid var(--stroke); background: linear-gradient(180deg, var(--surface), var(--bg-2));
	transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.tier:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tier.featured { border-color: transparent; box-shadow: var(--glow-a), var(--shadow-lg); }
.tier.featured::before {
	content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
	background: var(--grad);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor; mask-composite: exclude;
}
.tier .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; padding: 6px 16px; border-radius: 999px; box-shadow: var(--glow-b); }
.tier .tname { font-size: 15px; font-weight: 700; color: var(--accent-a); letter-spacing: 0.06em; text-transform: uppercase; }
.tier .tagline { color: var(--text-faint); font-size: 14px; margin-top: 4px; }
.tier .price { display: flex; align-items: baseline; gap: 6px; margin: 22px 0 6px; }
.tier .price .amt { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; }
.tier .price .cad { color: var(--text-dim); font-size: 15px; }
.tier ul { list-style: none; margin: 24px 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.tier li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: var(--text-2); }
.tier li svg { width: 19px; height: 19px; color: var(--success); flex-shrink: 0; margin-top: 1px; }

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.qa { border: 1px solid var(--stroke); border-radius: var(--r-md); background: var(--surface); overflow: hidden; transition: border-color 0.3s; }
.qa:hover { border-color: var(--stroke-hard); }
.qa summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; font-size: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .pm { width: 22px; height: 22px; position: relative; flex-shrink: 0; transition: transform 0.3s var(--ease); }
.qa summary .pm::before, .qa summary .pm::after { content: ''; position: absolute; background: var(--accent-a); border-radius: 2px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.qa summary .pm::before { width: 14px; height: 2px; } .qa summary .pm::after { width: 2px; height: 14px; transition: transform 0.3s; }
.qa[open] summary .pm::after { transform: translate(-50%, -50%) scaleY(0); }
.qa .a { padding: 0 24px 22px; color: var(--text-dim); font-size: 15px; }

/* ── CTA band ───────────────────────────────────────────────────────────── */
.cta-band { position: relative; border-radius: var(--r-xl); padding: 60px 40px; text-align: center; overflow: hidden; border: 1px solid var(--stroke-hard); background: linear-gradient(120deg, rgba(124, 92, 255, 0.14), rgba(217, 70, 239, 0.12)); }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% 0%, rgba(124, 92, 255, 0.28), transparent 65%); }
.cta-band > * { position: relative; }

/* ── footer ─────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--stroke); padding: 60px 0 40px; margin-top: 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-col h4 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-dim); font-size: 15px; padding: 5px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--stroke); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-faint); font-size: 14px; }
.footer .disc { max-width: 46ch; color: var(--text-faint); font-size: 13px; margin-top: 14px; }

/* ── reveal-on-scroll ───────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d='1'] { transition-delay: 0.08s; }
.reveal[data-d='2'] { transition-delay: 0.16s; }
.reveal[data-d='3'] { transition-delay: 0.24s; }

/* ============================================================================
   AUTH (modal) + FORMS
   ========================================================================== */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-dim); margin-bottom: 7px; }
.input {
	width: 100%; padding: 13px 15px; border-radius: var(--r-sm);
	background: var(--void); border: 1px solid var(--stroke-hard); color: var(--text); font-size: 15px;
	transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.input::placeholder { color: var(--text-faint); }
.input:focus { outline: none; border-color: var(--accent-a); box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.18); background: #0b0b12; }
.input.bad { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.15); }

.modal-backdrop {
	position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px;
	background: rgba(4, 4, 8, 0.72); backdrop-filter: blur(8px);
	opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal-backdrop.show { opacity: 1; pointer-events: auto; }
.modal {
	width: 100%; max-width: 430px; background: linear-gradient(180deg, var(--surface), var(--bg-2));
	border: 1px solid var(--stroke-hard); border-radius: var(--r-xl); padding: 34px;
	box-shadow: var(--shadow-lg); position: relative;
	transform: translateY(20px) scale(0.97); transition: transform 0.4s var(--ease);
}
.modal-backdrop.show .modal { transform: none; }
.modal .close { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--stroke); background: var(--surface-2); color: var(--text-dim); cursor: pointer; display: grid; place-items: center; transition: color 0.2s, background 0.2s; }
.modal .close:hover { color: var(--text); background: var(--surface-3); }
.modal h2 { font-size: 25px; margin-bottom: 6px; }
.modal .sub { color: var(--text-dim); font-size: 15px; margin-bottom: 24px; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--void); border-radius: 12px; margin-bottom: 24px; border: 1px solid var(--stroke); }
.tabs button { flex: 1; padding: 10px; border-radius: 9px; border: none; background: none; color: var(--text-dim); font-size: 14px; font-weight: 600; cursor: pointer; transition: color 0.2s, background 0.25s; }
.tabs button.on { background: var(--grad); color: #fff; box-shadow: 0 6px 20px -8px rgba(124, 92, 255, 0.7); }
.form-msg { font-size: 14px; padding: 11px 14px; border-radius: 10px; margin-bottom: 16px; display: none; }
.form-msg.err { display: block; background: rgba(244, 63, 94, 0.12); border: 1px solid rgba(244, 63, 94, 0.35); color: #ffb3bf; }
.form-msg.ok { display: block; background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.35); color: #9ff0d3; }
.hint { font-size: 12.5px; color: var(--text-faint); margin-top: 6px; }
.pw-meter { height: 5px; border-radius: 999px; background: var(--surface-3); margin-top: 9px; overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; border-radius: inherit; transition: width 0.3s, background 0.3s; }

/* ── toast ──────────────────────────────────────────────────────────────── */
.toasts { position: fixed; bottom: 24px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 12px; }
.toast {
	min-width: 280px; max-width: 380px; padding: 15px 18px; border-radius: var(--r-md);
	background: var(--surface-2); border: 1px solid var(--stroke-hard); box-shadow: var(--shadow-lg);
	display: flex; gap: 13px; align-items: flex-start;
	transform: translateX(120%); animation: toastIn 0.5s var(--ease) forwards;
}
.toast.out { animation: toastOut 0.4s var(--ease) forwards; }
.toast .ic { width: 22px; height: 22px; flex-shrink: 0; }
.toast.ok .ic { color: var(--success); } .toast.err .ic { color: var(--danger); } .toast.info .ic { color: var(--accent-c); }
.toast .t { font-weight: 600; font-size: 14.5px; } .toast .m { color: var(--text-dim); font-size: 13.5px; }
@keyframes toastIn { to { transform: none; } }
@keyframes toastOut { to { transform: translateX(120%); opacity: 0; } }

/* ============================================================================
   DASHBOARD
   ========================================================================== */
.dash-nav { position: sticky; top: 0; z-index: 90; background: rgba(10, 10, 15, 0.8); backdrop-filter: blur(18px); border-bottom: 1px solid var(--stroke); }
.dash-nav .wrap { display: flex; align-items: center; gap: 24px; height: var(--nav-h); }
.dash-tabs { display: flex; gap: 4px; margin-left: 20px; flex: 1; }
.dash-tab { position: relative; padding: 10px 16px; border-radius: 10px; color: var(--text-dim); font-size: 15px; font-weight: 500; cursor: pointer; background: none; border: none; transition: color 0.2s, background 0.2s; display: inline-flex; gap: 9px; align-items: center; }
.dash-tab svg { width: 17px; height: 17px; }
.dash-tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.dash-tab.on { color: #fff; background: var(--grad-soft); }
.dash-user { display: flex; align-items: center; gap: 12px; }
.avatar { width: 38px; height: 38px; border-radius: 11px; background: var(--grad); display: grid; place-items: center; font-weight: 700; color: #fff; box-shadow: var(--glow-a); }

.dash-main { padding: 40px 0 80px; min-height: 70vh; }
.view { display: none; animation: viewIn 0.5s var(--ease); }
.view.on { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.page-head { margin-bottom: 30px; }
.page-head h1 { font-size: 32px; }
.page-head p { color: var(--text-dim); margin-top: 6px; }

.panel { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--stroke); border-radius: var(--r-lg); padding: 26px; }
.panel + .panel { margin-top: 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.panel-head h3 { font-size: 18px; }
.panel-head .sub { color: var(--text-dim); font-size: 14px; }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 22px; }
.kpi { padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--stroke); background: var(--surface); position: relative; overflow: hidden; }
.kpi::after { content: ''; position: absolute; top: 0; right: 0; width: 120px; height: 120px; background: radial-gradient(circle at top right, rgba(124, 92, 255, 0.16), transparent 70%); }
.kpi .k-l { color: var(--text-dim); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
.kpi .k-v { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin-top: 8px; }
.kpi .k-s { font-size: 13px; margin-top: 4px; }

.badge-status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.badge-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.badge-status.active { background: rgba(52, 211, 153, 0.12); color: var(--success); }
.badge-status.expired { background: rgba(244, 63, 94, 0.12); color: var(--danger); }
.badge-status.none { background: rgba(134, 136, 160, 0.12); color: var(--text-dim); }

.data-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--stroke-soft); }
.data-row:last-child { border-bottom: none; }
.data-row .dl { color: var(--text-dim); font-size: 14px; }
.data-row .dv { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.mono { font-family: 'Cascadia Code', 'Consolas', ui-monospace, monospace; font-size: 13px; letter-spacing: 0.02em; }
.copy-btn { background: var(--surface-3); border: 1px solid var(--stroke); border-radius: 7px; padding: 4px 9px; font-size: 12px; color: var(--text-dim); cursor: pointer; transition: color 0.2s, background 0.2s; }
.copy-btn:hover { color: var(--text); background: var(--surface-2); }

/* product / store cards inside dashboard */
.store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.store-grid.two { grid-template-columns: repeat(2, 1fr); max-width: 700px; }
.prod {
	position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: var(--r-lg);
	border: 1px solid var(--stroke); background: linear-gradient(180deg, var(--surface), var(--bg-2));
	transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.prod:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.prod.featured { border-color: transparent; box-shadow: var(--glow-a); }
.prod.featured::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.prod .badge { align-self: flex-start; background: var(--grad); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.prod .pname { font-size: 20px; font-weight: 700; } .prod .ptag { color: var(--text-faint); font-size: 14px; margin-top: 3px; }
.prod .pprice { display: flex; align-items: baseline; gap: 5px; margin: 18px 0; }
.prod .pprice .amt { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; } .prod .pprice .cad { color: var(--text-dim); font-size: 14px; }
.prod ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; flex: 1; }
.prod li { display: flex; gap: 9px; font-size: 14px; color: var(--text-2); } .prod li svg { width: 17px; height: 17px; color: var(--success); flex-shrink: 0; }

.notice { padding: 14px 16px; border-radius: var(--r-sm); font-size: 14px; display: flex; gap: 11px; align-items: flex-start; }
.notice svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: 1px; }
.notice.warn { background: rgba(251, 191, 36, 0.1); border: 1px solid rgba(251, 191, 36, 0.3); color: #ffe4a3; }
.notice.warn svg { color: var(--warn); }
.notice.info { background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.25); color: #a5eef7; }
.notice.info svg { color: var(--accent-c); }

.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; color: transparent !important; }
@keyframes shimmer { to { background-position: -200% 0; } }

.dash-loading { min-height: 60vh; display: grid; place-items: center; }

/* ── responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
	.grid-3, .steps, .tiers, .tiers.two, .stats, .kpis, .store-grid, .store-grid.two { grid-template-columns: 1fr; }
	.grid-2, .mock-body, .mock-grid { grid-template-columns: 1fr; }
	.mock-side { display: none; }
	.nav-links { display: none; }
	.nav-toggle { display: block; }
	.dash-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	.dash-tabs::-webkit-scrollbar { display: none; }
	.dash-nav .wrap { gap: 12px; }
	.stats { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
	.reveal { opacity: 1; transform: none; }
}
