/* ═══════════════════════════════════════════════
   Chronix — Modern Theme
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
	--page-bg: #050510;
	--card-bg: rgba(8, 6, 24, 0.82);
	--card-bg-solid: #080618;
	--border: rgba(255, 255, 255, 0.04);
	--border-light: rgba(255, 255, 255, 0.1);
	--text-heading: #eeeaff;
	--text-body: #8b86c4;
	--text-muted: #5d57a0;
	--text-faint: #3d3878;
	--logo-text: #eeeaff;
	--surface-hover: rgba(255, 255, 255, 0.02);
	--shadow-card: 0 8px 40px rgba(0, 0, 0, 0.5);
	--footer-divider: rgba(124, 92, 252, 0.12);
	--ghost-1: rgba(124, 92, 252, 0.06);
	--ghost-2: rgba(124, 92, 252, 0.02);
	--accent: #875cff;
	--accent-hover: #a37aff;
	--accent-dark: #5a3ed4;
	--accent-glow: rgba(135, 92, 255, 0.3);
	--accent-border: rgba(124, 92, 252, 0.15);
	--accent-dim: rgba(124, 92, 252, 0.06);
	--bg2: rgba(0, 0, 0, 0.2);
	--text2: var(--text-muted);
	--text3: var(--text-faint);
	--text: var(--text-heading);
	--green: #22c55e;
	--green-dim: rgba(34, 197, 94, 0.08);
	--red: #f06a7a;
	--red-dim: rgba(240, 106, 122, 0.1);
	--yellow: #f0c06a;
	--font: 'Inter', system-ui, -apple-system, sans-serif;
	--mono: 'SF Mono', 'JetBrains Mono', monospace;
	--radius: 20px;
	--radius-sm: 12px;
	--transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
	font-family: var(--font);
	background: var(--page-bg);
	color: var(--text-body);
	min-height: 100vh;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

::selection { background: rgba(124, 92, 252, 0.2); color: #fff; }

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-hover); }

/* ─── Nav ─── */
.nav {
	position: fixed; top: 0; left: 0; right: 0; z-index: 100;
	background: color-mix(in srgb, var(--page-bg) 78%, transparent);
	backdrop-filter: blur(24px) saturate(1.5);
	-webkit-backdrop-filter: blur(24px) saturate(1.5);
	padding: 12px 32px; height: 64px;
	display: flex; align-items: center; justify-content: space-between;
	border-bottom: 1px solid rgba(124, 92, 252, 0.06);
}

.nav-logo {
	font-size: 18px; font-weight: 500; letter-spacing: -0.2px;
	display: flex; align-items: center; gap: 10px;
	color: var(--logo-text); user-select: none;
	text-decoration: none;
}
.nav-logo svg { width: 32px; height: 32px; transition: filter 0.3s; }
.nav-logo:hover svg { filter: drop-shadow(0 0 10px rgba(135, 92, 255, 0.7)); }
.nav-logo .logo-accent { font-weight: 800; }
.nav-logo .badge {
	font-size: 9px; font-weight: 700;
	background: rgba(124, 92, 252, 0.1);
	color: var(--accent); border: 1px solid rgba(124, 92, 252, 0.2);
	padding: 2px 7px; border-radius: 5px; letter-spacing: 0.3px;
	display: inline-flex; align-items: center; gap: 3px;
	vertical-align: middle; line-height: 1;
}
.nav-logo .badge i { font-size: 10px; }

/* ─── Custom Select ─── */
select {
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239895b4' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 12px;
	padding-right: 36px;
	cursor: pointer;
}
select option { background: #0c0c16; color: var(--text-body); padding: 8px 12px; }
select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.08); }

.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links a, .nav-links .nav-btn {
	padding: 6px 14px; border-radius: var(--radius-sm); font-size: 13px;
	font-weight: 500; font-family: var(--font);
	background: transparent; border: none; color: var(--text-body);
	cursor: pointer; transition: all var(--transition); text-decoration: none;
}
.nav-links a:hover, .nav-links .nav-btn:hover { color: var(--text-heading); background: var(--surface-hover); }

.nav-links .btn-primary {
	background: linear-gradient(135deg, var(--accent), var(--accent-dark));
	color: #fff; font-weight: 600; padding: 7px 20px;
	border-radius: 999px; border: none; margin-left: 8px;
	font-size: 13px; position: relative; overflow: hidden;
	min-width: 80px; text-align: center;
	transition: all var(--transition);
}
.nav-links .btn-primary:hover {
	box-shadow: 0 4px 20px rgba(124, 92, 252, 0.35);
	transform: translateY(-1px); color: #fff;
}

.nav-user {
	display: flex; align-items: center; gap: 8px; margin-left: 8px;
	padding: 3px 8px 3px 3px; border-radius: var(--radius-sm);
	background: var(--card-bg-solid); border: 1px solid rgba(124, 92, 252, 0.08);
}
.nav-user .avatar {
	width: 26px; height: 26px; border-radius: 6px;
	background: linear-gradient(135deg, var(--accent), var(--accent-dark));
	display: flex; align-items: center;
	justify-content: center; font-size: 11px; font-weight: 700; color: #fff;
}
.nav-user .name { font-size: 12px; font-weight: 500; color: var(--text-heading); }

/* ─── Container ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px 48px; position: relative; z-index: 1; }

/* ─── Buttons ─── */
.btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 24px; border-radius: 999px; font-size: 14px;
	font-weight: 500; font-family: var(--font); border: none; cursor: pointer;
	transition: all var(--transition); text-decoration: none;
	position: relative; overflow: hidden;
}

.btn .shimmer {
	position: absolute; inset: 0;
	background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.08), transparent);
	transform: translateX(-100%);
	transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn:hover .shimmer { transform: translateX(100%); }

.btn-accent {
	background: linear-gradient(135deg, var(--accent), var(--accent-dark));
	color: #fff; border: none;
	box-shadow: 0 4px 20px rgba(124, 92, 252, 0.2);
	position: relative; overflow: hidden;
}
.btn-accent:hover {
	color: #fff; transform: translateY(-2px);
	box-shadow: 0 8px 32px rgba(124, 92, 252, 0.35);
}
.btn-accent:active { transform: translateY(0); }

.btn-outline {
	background: transparent; border: 1px solid var(--border-light);
	color: var(--text-heading);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-discord {
	background: linear-gradient(135deg, #5865F2, #4752C4);
	color: #fff; border: none;
	box-shadow: 0 4px 16px rgba(88, 101, 242, 0.15);
}
.btn-discord:hover {
	color: #fff; transform: translateY(-2px);
	box-shadow: 0 6px 24px rgba(88, 101, 242, 0.3);
}

.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-red { background: linear-gradient(135deg, var(--red), #d85a6a); color: #fff; box-shadow: 0 4px 16px rgba(240, 106, 122, 0.2); }
.btn-red:hover { box-shadow: 0 6px 24px rgba(240, 106, 122, 0.35); transform: translateY(-1px); }
.btn-green { background: linear-gradient(135deg, var(--green), #16a34a); color: #fff; box-shadow: 0 4px 16px rgba(34, 197, 94, 0.2); }
.btn-sep { color: var(--text-muted); font-size: 12px; padding: 0 4px; }

/* ─── Hero ─── */
.hero {
	padding: 140px 0 60px;
	position: relative;
	overflow: hidden;
	min-height: 90vh;
	display: flex; align-items: center;
}
.hero-glow {
	position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
	width: 800px; height: 800px;
	background: radial-gradient(circle, rgba(135, 92, 255, 0.08) 0%, rgba(88, 60, 220, 0.03) 40%, transparent 65%);
	pointer-events: none; z-index: 0;
}

.hero-content {
	position: relative; z-index: 1;
	width: 100%;
	display: grid; grid-template-columns: 1fr 1fr;
	gap: 60px; align-items: center;
}

.hero-left { max-width: 560px; }
.hero-right { display: flex; justify-content: center; align-items: center; }

.hero h1 {
	font-size: 56px; font-weight: 900; letter-spacing: -2px;
	line-height: 1.05; margin-bottom: 14px;
	color: var(--text-heading);
}
.hero h1 .grad {
	background: linear-gradient(180deg, var(--accent-hover) 0%, var(--accent) 45%, var(--accent-dark) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}
.hero p {
	color: var(--text-muted); font-size: 16px;
	max-width: 480px; line-height: 1.7; margin-bottom: 28px;
}
.hero .btns { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ─── Section ─── */
.section { padding: 60px 0; max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 40px; position: relative; }
.section-header .ghost {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	font-size: clamp(40px, 8vw, 80px); font-weight: 900;
	white-space: nowrap; pointer-events: none; user-select: none;
	background: linear-gradient(180deg, var(--ghost-1) 0%, var(--ghost-2) 100%);
	-webkit-background-clip: text; -webkit-text-fill-color: transparent;
	background-clip: text; line-height: 1;
}
.section-header h2 {
	position: relative; z-index: 1;
	font-size: 32px; font-weight: 800; letter-spacing: -0.5px;
	color: var(--text-heading); margin-bottom: 8px;
}
.section-header h2 .hl { color: var(--accent); }
.section-header p {
	position: relative; z-index: 1;
	color: var(--text-muted); font-size: 14px; max-width: 500px; margin: 0 auto;
}

/* ─── Feature Slide ─── */
.feature-slide {
	display: grid; grid-template-columns: 1fr 1fr;
	gap: 60px; align-items: center;
	padding: 48px 40px;
	background: var(--card-bg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	margin-bottom: 16px;
	transition: all var(--transition);
	position: relative; overflow: hidden;
}
.feature-slide::before {
	content: ''; position: absolute; top: 0; left: 0; right: 0;
	height: 1px;
	background: linear-gradient(to right, transparent, rgba(124, 92, 252, 0.15), transparent);
	pointer-events: none;
}
.feature-slide:hover {
	border-color: rgba(124, 92, 252, 0.12);
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}
.feature-slide.reverse { direction: rtl; }
.feature-slide.reverse > * { direction: ltr; }
.feature-slide-text h2 {
	font-size: 24px; font-weight: 700; margin-bottom: 10px;
	color: var(--text-heading); letter-spacing: -0.3px;
}
.feature-slide-text p {
	font-size: 14px; color: var(--text-muted);
	line-height: 1.7; margin-bottom: 20px; max-width: 420px;
}
.feature-slide-img {
	display: flex; align-items: center; justify-content: center;
}

/* ─── Features Grid ─── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card {
	background: var(--card-bg); border: 1px solid var(--border);
	border-radius: var(--radius); padding: 28px 24px; text-align: center;
	transition: all var(--transition); position: relative; overflow: hidden;
}
.feature-card::before {
	content: ''; position: absolute; top: 0; left: 25%; right: 25%;
	height: 1px;
	background: linear-gradient(to right, transparent, rgba(124, 92, 252, 0.12), transparent);
	pointer-events: none;
}
.feature-card:hover {
	border-color: rgba(124, 92, 252, 0.12);
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
	transform: translateY(-4px);
}
.feature-card .icon {
	width: 44px; height: 44px;
	display: flex; align-items: center; justify-content: center;
	font-size: 20px; margin: 0 auto 14px;
}
.feature-card .icon i { transition: text-shadow 0.3s; }
.feature-card:hover .icon i { text-shadow: 0 0 18px rgba(135, 92, 255, 0.7); }

.feature-slide-img i { transition: filter 0.3s; }
.feature-slide:hover .feature-slide-img i { filter: drop-shadow(0 0 16px rgba(135, 92, 255, 0.5)); }
.feature-card h3 { font-size: 14px; font-weight: 600; color: var(--text-heading); margin-bottom: 6px; }
.feature-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ─── Steps ─── */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step-card {
	background: var(--card-bg); border: 1px solid var(--border);
	border-radius: var(--radius); padding: 28px 22px; position: relative;
	transition: all var(--transition); overflow: hidden;
}
.step-card::before {
	content: ''; position: absolute; top: 0; left: 20%; right: 20%;
	height: 1px;
	background: linear-gradient(to right, transparent, rgba(124, 92, 252, 0.1), transparent);
	pointer-events: none;
}
.step-card:hover {
	border-color: rgba(124, 92, 252, 0.12);
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
	transform: translateY(-3px);
}
.step-card .ghost-num {
	position: absolute; right: 14px; top: 6px;
	font-size: 52px; font-weight: 900; line-height: 1; pointer-events: none;
	background: linear-gradient(180deg, rgba(124, 92, 252, 0.04) 0%, rgba(124, 92, 252, 0.01) 100%);
	-webkit-background-clip: text; -webkit-text-fill-color: transparent;
	background-clip: text;
}
.step-card .icon-box {
	width: 40px; height: 40px;
	display: flex; align-items: center; justify-content: center;
	font-size: 18px; margin-bottom: 12px; position: relative; z-index: 1;
}
.step-card .icon-box i { transition: text-shadow 0.3s; }
.step-card:hover .icon-box i { text-shadow: 0 0 18px rgba(135, 92, 255, 0.7); }
.step-card h4 { font-size: 14px; font-weight: 600; color: var(--text-heading); margin-bottom: 6px; position: relative; z-index: 1; }
.step-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; position: relative; z-index: 1; }
.step-connector { display: none; }
@media (min-width: 1024px) {
	.step-connector {
		display: block;
		position: absolute; top: 36px; right: -14px;
		width: 14px; height: 1px;
		background: linear-gradient(to right, rgba(124, 92, 252, 0.3), transparent);
	}
}

/* ─── FAQ ─── */
.faq { max-width: 700px; margin: 0 auto; }
.faq-item {
	background: var(--card-bg); border: 1px solid var(--border);
	border-radius: 12px; margin-bottom: 8px;
	overflow: hidden; transition: border-color var(--transition);
}
.faq-item:hover { border-color: rgba(124, 92, 252, 0.12); }
.faq-item summary {
	padding: 16px 20px; cursor: pointer; list-style: none;
	display: flex; align-items: center; justify-content: space-between;
	font-size: 14px; font-weight: 600; color: var(--text-heading);
	transition: background var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--surface-hover); }
.faq-item summary::after {
	content: '+';
	font-size: 20px; line-height: 1; color: var(--text-muted);
	transition: transform var(--transition);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] { border-color: rgba(124, 92, 252, 0.12); }
.faq-item .faq-body { padding: 0 20px 16px; border-top: 1px solid var(--border); }
.faq-item .faq-body p { padding-top: 12px; font-size: 13px; color: var(--text-body); line-height: 1.7; }

/* ─── CTA ─── */
.cta-section {
	position: relative; border-radius: var(--radius); overflow: hidden;
	padding: 64px 40px; text-align: center;
	border: 1px solid var(--border);
	background: var(--card-bg);
	max-width: 1200px; margin: 0 auto;
}
.cta-section .cta-bg {
	position: absolute; inset: 0; z-index: 0;
	background:
		radial-gradient(ellipse at 30% 50%, rgba(124, 92, 252, 0.05) 0%, transparent 60%),
		radial-gradient(ellipse at 70% 50%, rgba(124, 92, 252, 0.03) 0%, transparent 60%);
}
.cta-section > * { position: relative; z-index: 1; }
.cta-section h2 { font-size: 32px; font-weight: 800; color: var(--text-heading); margin-bottom: 10px; letter-spacing: -0.5px; }
.cta-section h2 .hl { color: var(--accent); }
.cta-section p { color: var(--text-muted); font-size: 14px; max-width: 480px; margin: 0 auto 24px; }
.cta-section .btns { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }

/* ─── Pricing ─── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 960px; margin: 0 auto; }
.price-card {
	background: var(--card-bg); border: 1px solid var(--border);
	border-radius: var(--radius); padding: 32px 24px;
	display: flex; flex-direction: column; transition: all var(--transition);
	position: relative; overflow: hidden;
}
.price-card::before {
	content: ''; position: absolute; top: 0; left: 20%; right: 20%;
	height: 1px;
	background: linear-gradient(to right, transparent, rgba(124, 92, 252, 0.12), transparent);
	pointer-events: none;
}
.price-card:hover { border-color: var(--accent-border); transform: translateY(-4px); box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4); }
.price-card.popular { border-color: var(--accent); box-shadow: 0 0 40px rgba(124, 92, 252, 0.06); }
.price-card.popular::before {
	content: 'POPULAR'; position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
	background: linear-gradient(135deg, var(--accent), var(--accent-dark));
	color: #fff; font-size: 10px; font-weight: 700; padding: 3px 20px;
	border-radius: 999px; letter-spacing: 0.6px;
}
.price-card .tier { font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-muted); margin-bottom: 4px; font-weight: 600; }
.price-card .price { font-size: 40px; font-weight: 800; color: var(--accent); letter-spacing: -1.5px; line-height: 1; margin-bottom: 2px; }
.price-card .price-sub { font-size: 12px; color: var(--text-muted); margin-bottom: 18px; }
.price-card .divider { height: 1px; background: var(--border); margin: 0 -24px 18px; }
.price-card .features { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; }
.price-card .features li { padding: 5px 0; font-size: 13px; color: var(--text-body); display: flex; align-items: center; gap: 8px; }
.price-card .features li .icon-y { color: var(--green); font-weight: 600; width: 18px; text-align: center; }
.price-card .features li .icon-n { color: var(--text-faint); width: 18px; text-align: center; }
.price-card .btn { width: 100%; justify-content: center; margin-top: auto; }

/* ─── Auth ─── */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; position: relative; z-index: 1; }
.auth-box {
	background: var(--card-bg-solid); border: 1px solid var(--border);
	border-radius: var(--radius); padding: 40px; width: 400px; max-width: 100%;
	box-shadow: 0 8px 48px rgba(0, 0, 0, 0.4);
}
.auth-box h1 { font-size: 22px; font-weight: 700; color: var(--text-heading); margin-bottom: 4px; }
.auth-box .sub { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.auth-box label { display: block; font-size: 12px; font-weight: 500; color: var(--text-muted); margin-bottom: 6px; }
.auth-box input {
	width: 100%; padding: 11px 14px; background: rgba(0, 0, 0, 0.3);
	border: 1px solid var(--border); border-radius: var(--radius-sm);
	color: var(--text-heading); font-size: 14px; font-family: var(--font);
	margin-bottom: 16px; outline: none; transition: all var(--transition);
}
.auth-box input:focus { border-color: rgba(124, 92, 252, 0.3); box-shadow: 0 0 0 4px rgba(124, 92, 252, 0.05); }
.auth-box .error {
	color: var(--red); font-size: 13px; margin-bottom: 16px; display: none;
	background: var(--red-dim); border: 1px solid rgba(240, 106, 122, 0.12);
	padding: 10px 14px; border-radius: var(--radius-sm);
}
.auth-box .footer-text { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 20px; }
.auth-box .footer-text a { color: var(--accent); }
.auth-box .btn { width: 100%; justify-content: center; }

/* ─── Dashboard ─── */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.dash-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; }
.dash-card h3 { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 4px; }
.dash-card .value { font-size: 28px; font-weight: 700; color: var(--text-heading); }
.dash-card .value.accent { color: var(--accent); }
.dash-card .value.green { color: var(--green); }
.dash-card .value.purple { color: var(--accent-hover); }
.dash-full { grid-column: 1 / -1; }

/* ─── Table ─── */
.wl-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.wl-table th { text-align: left; padding: 10px 14px; font-size: 11px; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.3px; border-bottom: 1px solid var(--border); font-weight: 600; }
.wl-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text-body); }
.wl-table tr:last-child td { border-bottom: none; }
.wl-table tr:hover td { background: var(--surface-hover); }
.wl-table input, .wl-table select { background: rgba(0, 0, 0, 0.2); border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; color: var(--text-heading); font-size: 12px; font-family: var(--font); outline: none; }
.wl-table input:focus { border-color: rgba(124, 92, 252, 0.25); box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.04); }

.tag { display: inline-block; padding: 2px 8px; border-radius: 5px; font-size: 11px; font-weight: 500; }
.tag-green { background: var(--green-dim); color: var(--green); }
.tag-red { background: var(--red-dim); color: var(--red); }
.tag-yellow { background: rgba(240, 192, 106, 0.08); color: var(--yellow); }

/* ─── Scripts ─── */
.script-box { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.script-box .head { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.script-box .head h2 { font-size: 14px; font-weight: 600; color: var(--text-heading); }
.script-box .head .badge { font-size: 10px; background: rgba(124, 92, 252, 0.08); color: var(--accent); padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.script-box pre { margin: 0; padding: 14px 18px; background: rgba(0, 0, 0, 0.3); font-family: var(--mono); font-size: 11px; line-height: 1.6; overflow-x: auto; color: var(--text-body); max-height: 360px; overflow-y: auto; white-space: pre-wrap; }
.script-box .foot { padding: 10px 18px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 6px; }

/* ─── Loader ─── */
.loader { display: none; text-align: center; padding: 24px; }
.loader.show { display: block; }
.loader .spinner { width: 24px; height: 24px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s cubic-bezier(0.4, 0, 0.2, 1) infinite; margin: 0 auto 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loader p { color: var(--text-muted); font-size: 13px; }

/* ─── Page header ─── */
.page-header { margin-bottom: 24px; }
.page-header h1 { font-size: 24px; font-weight: 700; color: var(--text-heading); }
.page-header p { color: var(--text-body); font-size: 14px; margin-top: 4px; }

/* ─── Section link ─── */
.section-link { text-align: center; margin-top: 28px; padding: 24px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); }
.section-link h3 { font-size: 15px; font-weight: 600; color: var(--text-heading); margin-bottom: 6px; }
.section-link p { color: var(--text-body); font-size: 14px; }

/* ─── Admin extras ─── */
.admin-section { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 14px; }
.admin-section h3 { font-size: 14px; font-weight: 600; color: var(--text-heading); margin-bottom: 12px; }
.key-code { font-family: var(--mono); font-weight: 600; letter-spacing: 1px; background: rgba(0, 0, 0, 0.2); padding: 8px 12px; border-radius: var(--radius-sm); display: inline-block; font-size: 13px; color: var(--accent); }

/* ─── Footer ─── */
.footer { border-top: 1px solid var(--border); padding: 48px 32px 28px; margin-top: 40px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 3fr 1fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .logo { font-size: 18px; font-weight: 800; color: var(--logo-text); margin-bottom: 10px; }
.footer-brand .logo .logo-accent { color: var(--accent); }
.footer-brand p { font-size: 13px; color: var(--text-muted); line-height: 1.6; max-width: 300px; }
.footer-status {
	display: inline-flex; align-items: center; gap: 6px;
	margin-top: 14px; padding: 5px 12px;
	border-radius: 999px; border: 1px solid rgba(34, 197, 94, 0.15);
	background: rgba(34, 197, 94, 0.04);
	font-size: 11px; font-weight: 600; color: var(--green);
}
.footer-status .dot {
	width: 7px; height: 7px; border-radius: 50%;
	background: var(--green); position: relative;
}
.footer-status .dot::before {
	content: ''; position: absolute; inset: -3px;
	border-radius: 50%; background: rgba(34, 197, 94, 0.3);
	animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }
.footer-social { display: flex; gap: 8px; margin-top: 10px; }
.footer-social a {
	width: 34px; height: 34px; border-radius: 8px;
	display: flex; align-items: center; justify-content: center;
	color: var(--text-muted); transition: all var(--transition);
	border: 1px solid transparent;
}
.footer-social a:hover { background: var(--surface-hover); border-color: var(--border); color: var(--text-heading); }
.footer-col h5 { font-size: 12px; font-weight: 700; color: var(--text-heading); margin-bottom: 12px; }
.footer-col a { display: block; font-size: 13px; color: var(--text-body); padding: 3px 0; }
.footer-col a:hover { color: var(--accent); }
.footer-divider { height: 1px; background: linear-gradient(to right, transparent, var(--footer-divider), transparent); margin: 32px auto; max-width: 1200px; }
.footer-bottom { text-align: center; font-size: 12px; color: var(--text-faint); padding-top: 8px; }

/* ─── Terms ─── */
.terms { max-width: 760px; margin: 0 auto; }
.terms h1 { font-size: 28px; font-weight: 800; color: var(--text-heading); margin-bottom: 4px; letter-spacing: -0.5px; }
.terms .subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 32px; }
.terms h2 { font-size: 17px; font-weight: 700; margin: 32px 0 10px; color: var(--accent); }
.terms p { color: var(--text-body); font-size: 14px; line-height: 1.7; margin-bottom: 6px; }
.terms ul { list-style: none; padding: 0; margin: 6px 0 6px 4px; }
.terms ul li { padding: 4px 0; font-size: 14px; color: var(--text-body); display: flex; align-items: center; gap: 8px; }
.terms .tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 14px 0 20px; }
.terms .tier-col { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; }
.terms .tier-col h3 { font-size: 14px; font-weight: 600; color: var(--text-heading); margin-bottom: 10px; text-align: center; }
.terms .tier-col ul { margin: 0; }
.terms .tier-col ul li { padding: 3px 0; font-size: 13px; }
.terms hr { border: none; border-top: 1px solid var(--border); margin: 28px 0; }
.terms .box { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 22px; margin: 10px 0; }
.terms .box h4 { font-size: 14px; color: var(--text-heading); margin-bottom: 6px; }
.terms .box p, .terms .box li { font-size: 13px; }
.terms .box ul { margin: 4px 0 0 18px; }
.terms .box ul li { list-style: disc; display: list-item; padding: 2px 0; }
.ck { color: var(--green); font-weight: 600; }
.cx { color: var(--text-faint); }
.cw { color: var(--yellow); }

/* ─── Bulk Selection ─── */
.bulk-bar { display:flex; align-items:center; gap:8px; padding:8px 12px; background:rgba(124,92,252,0.04); border:1px solid rgba(124,92,252,0.1); border-radius:6px; margin-bottom:10px; font-size:12px; flex-wrap:wrap; }
.bulk-bar .bulk-count { color:var(--text-heading); font-weight:500; }
.bulk-bar .bulk-label { color:var(--text-muted); font-size:11px; }
.check-row { display:flex; align-items:center; gap:8px; transition:background 0.15s; padding:4px 4px 4px 8px; border-radius:4px; }
.check-row:hover { background:var(--surface-hover); }
.check-row input[type="checkbox"] { width:16px; height:16px; accent-color:var(--accent); cursor:pointer; flex-shrink:0; }
input[type="checkbox"] { accent-color:var(--accent); cursor:pointer; }
.key-check, .user-check, .admin-check { width:16px !important; height:16px !important; }
table input[type="checkbox"] { width:16px; height:16px; }
.icon-y { color:var(--green); font-weight:600; }
.icon-n { color:var(--text-faint); }
.admin-row.check-row { padding:8px 12px; margin-bottom:6px; background:rgba(0,0,0,0.15); border:1px solid var(--border); border-radius:6px; }
.admin-row .info { flex:1; min-width:120px; }
.admin-row .info .name { font-size:13px; font-weight:500; }
.admin-row .info .sub { font-size:11px; color:var(--text-muted); }

/* ─── Custom Modal ─── */
.modal-overlay { position:fixed; inset:0; z-index:10000; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,0.65); backdrop-filter:blur(6px); opacity:0; pointer-events:none; transition:opacity 0.2s; }
.modal-overlay.open { opacity:1; pointer-events:all; }
.modal-box { background:var(--card-bg-solid); border:1px solid var(--border); border-radius:var(--radius); padding:24px 28px; max-width:400px; width:90%; transform:scale(0.92) translateY(12px); transition:transform 0.2s, opacity 0.2s; opacity:0; box-shadow:0 24px 80px rgba(0,0,0,0.6); overflow-x:hidden; }
.modal-box.open { transform:scale(1) translateY(0); opacity:1; }
.modal-box.modal-prompt { max-width:460px; }
.modal-icon { font-size:26px; color:var(--accent); margin-bottom:10px; text-align:center; }
.modal-msg { font-size:14px; color:var(--text-body); line-height:1.5; margin-bottom:16px; text-align:center; word-break:break-word; overflow-wrap:break-word; max-width:100%; }
.modal-input-wrap { margin-bottom:14px; }
.modal-input { width:100%; padding:10px 12px; background:rgba(0,0,0,0.2); border:1px solid var(--border); border-radius:6px; color:var(--text-heading); font-size:13px; outline:none; box-sizing:border-box; transition:border-color 0.15s; }
.modal-input:focus { border-color:var(--accent); }
.modal-btns { display:flex; gap:8px; justify-content:center; }
.modal-btn { flex:1; text-align:center; font-size:13px !important; padding:8px 0 !important; }
.modal-btn-cancel { background:rgba(0,0,0,0.15) !important; border:1px solid var(--border) !important; color:var(--text-muted) !important; }
.modal-btn-cancel:hover { border-color:var(--border-light) !important; color:var(--text-heading) !important; }

/* ─── Animations ─── */
@keyframes float {
	0%, 100% { transform: translateY(0px); }
	50% { transform: translateY(-10px); }
}
.float { animation: float 6s ease-in-out infinite; }
.float-delayed { animation: float 6s ease-in-out 2s infinite; }

/* ─── Mobile ─── */
@media (max-width: 768px) {
	.hero { min-height: auto; padding: 100px 0 40px; }
	.hero-content { grid-template-columns: 1fr; text-align: center; gap: 40px; }
	.hero h1 { font-size: 30px; }
	.hero p { margin: 0 auto 24px; }
	.hero .btns { justify-content: center; }
	.hero-right { display: none; }
	.hero-left { max-width: 100%; }
	.feature-slide { grid-template-columns: 1fr; padding: 28px 24px; gap: 24px; }
	.feature-slide.reverse { direction: ltr; }
	.features-grid { grid-template-columns: 1fr; }
	.steps-grid { grid-template-columns: 1fr 1fr; }
	.pricing-grid { grid-template-columns: 1fr; max-width: 360px; }
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
	.nav { padding: 12px 16px; height: 60px; }
	.nav-links a, .nav-links .nav-btn { padding: 6px 10px; font-size: 13px; }
	.section-header h2 { font-size: 24px; }
	.cta-section h2 { font-size: 24px; }
	.cta-section { padding: 40px 24px; }
	.terms h1 { font-size: 22px; }
	.terms .tier-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
	.steps-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.hero h1 { font-size: 26px; }
}