* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background: #09090b;
    color: #e4e4e7;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ─── Nav ─────────────────────────────────────────────────────────────────── */
nav {
    position: fixed; top: 0; width: 100%;
    padding: 20px 40px;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(9, 9, 11, 0.8);
    border-bottom: 1px solid #18181b;
}
nav .logo { font-size: 1.2rem; font-weight: 700; color: #dc2626; letter-spacing: -0.5px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
    color: #a1a1aa; text-decoration: none;
    font-size: 0.85rem; font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-btn {
    background: #dc2626 !important; color: #fff !important;
    padding: 6px 16px; border-radius: 6px;
}
.nav-btn:hover { background: #b91c1c !important; }

/* ─── Hero ────────────────────────────────────────────────────────────────── */
.hero {
    min-height: 100vh; display: flex; flex-direction: column;
    justify-content: center; align-items: center; text-align: center;
    padding: 120px 20px 80px; position: relative;
}
.hero::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero .badge {
    font-size: 0.75rem; font-weight: 500; color: #dc2626;
    background: rgba(220, 38, 38, 0.1); border: 1px solid rgba(220, 38, 38, 0.2);
    padding: 6px 14px; border-radius: 20px; margin-bottom: 30px;
    letter-spacing: 0.5px; text-transform: uppercase;
}
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; letter-spacing: -2px; line-height: 1.1; margin-bottom: 20px; }
.hero h1 span { color: #dc2626; }
.hero .sub { font-size: 1.1rem; color: #71717a; max-width: 500px; margin-bottom: 40px; font-weight: 300; }
.cta-group { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.cta {
    padding: 12px 28px; border-radius: 6px; font-size: 0.9rem;
    font-weight: 500; text-decoration: none; transition: all 0.2s;
    cursor: pointer; border: none; display: inline-block;
}
.cta-primary { background: #dc2626; color: #fff; }
.cta-primary:hover { background: #b91c1c; }
.cta-secondary { background: #18181b; color: #e4e4e7; border: 1px solid #27272a; }
.cta-secondary:hover { border-color: #3f3f46; background: #1f1f23; }
.cta.small { padding: 8px 16px; font-size: 0.8rem; }
.cta-danger { background: #7f1d1d; color: #fca5a5; }
.cta-danger:hover { background: #991b1b; }

/* ─── Stats ───────────────────────────────────────────────────────────────── */
.stats { display: flex; gap: 60px; justify-content: center; padding: 40px 20px; border-top: 1px solid #18181b; border-bottom: 1px solid #18181b; }
.stat { text-align: center; }
.stat .num { font-size: 2rem; font-weight: 700; color: #fff; }
.stat .label { font-size: 0.8rem; color: #52525b; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* ─── Pricing ─────────────────────────────────────────────────────────────── */
.pricing-section { max-width: 700px; margin: 0 auto; padding: 100px 20px; text-align: center; }
.pricing-section h2 { font-size: 2rem; font-weight: 600; letter-spacing: -1px; margin-bottom: 50px; }
.pricing-cards { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.p-card { background: #0f0f12; border: 1px solid #18181b; border-radius: 12px; padding: 36px; flex: 1; min-width: 240px; text-align: left; }
.p-card.highlight { border-color: #dc2626; }
.p-card .tier { font-size: 0.8rem; color: #71717a; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.p-card .amount { font-size: 2.5rem; font-weight: 700; color: #fff; }
.p-card .amount span { font-size: 0.9rem; font-weight: 400; color: #52525b; }
.p-card ul { list-style: none; margin: 24px 0; }
.p-card ul li { font-size: 0.85rem; color: #a1a1aa; padding: 6px 0; border-bottom: 1px solid #18181b; }
.p-card ul li:last-child { border: none; }
.p-card .cta, .p-card button { display: block; text-align: center; margin-top: 20px; width: 100%; }

/* ─── Connect ─────────────────────────────────────────────────────────────── */
.connect-section { max-width: 600px; margin: 0 auto; padding: 80px 20px; text-align: center; }
.connect-section h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 20px; }
.ip-box {
    display: inline-block; background: #18181b; border: 1px solid #27272a;
    padding: 16px 40px; border-radius: 8px;
    font-family: 'JetBrains Mono', monospace; font-size: 1.2rem;
    color: #dc2626; letter-spacing: 1px; margin: 16px 0;
}
.note { font-size: 0.8rem; color: #52525b; margin-top: 12px; }
footer { text-align: center; padding: 40px; font-size: 0.75rem; color: #3f3f46; border-top: 1px solid #18181b; }

/* ─── Modal ───────────────────────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); }
.modal-content {
    position: relative; background: #0f0f12; border: 1px solid #27272a;
    border-radius: 12px; padding: 40px; width: 100%; max-width: 400px; z-index: 1;
}
.modal-close {
    position: absolute; top: 12px; right: 16px;
    background: none; border: none; color: #71717a; font-size: 1.5rem; cursor: pointer;
}
.modal-close:hover { color: #fff; }
.hidden { display: none !important; }

/* ─── Auth Forms ──────────────────────────────────────────────────────────── */
.auth-form h2 { font-size: 1.3rem; font-weight: 600; margin-bottom: 8px; }
.auth-form .auth-sub { font-size: 0.85rem; color: #71717a; margin-bottom: 24px; }
.auth-form label { display: block; font-size: 0.8rem; color: #a1a1aa; margin-bottom: 6px; margin-top: 16px; }
.auth-form input {
    width: 100%; padding: 10px 14px; background: #18181b; border: 1px solid #27272a;
    border-radius: 6px; color: #e4e4e7; font-size: 0.9rem; outline: none; transition: border-color 0.2s;
}
.auth-form input:focus { border-color: #dc2626; }
.auth-form button { width: 100%; margin-top: 24px; }
.auth-form .switch { font-size: 0.8rem; color: #71717a; margin-top: 16px; text-align: center; }
.auth-form .switch a { color: #dc2626; text-decoration: none; cursor: pointer; }
.auth-form .switch a:hover { text-decoration: underline; }
.error-msg { color: #fca5a5; font-size: 0.8rem; margin-top: 8px; padding: 8px 12px; background: rgba(220,38,38,0.1); border-radius: 6px; }
.success-msg { color: #86efac; font-size: 0.8rem; margin-top: 8px; padding: 8px 12px; background: rgba(34,197,94,0.1); border-radius: 6px; }

/* ─── Dashboard ───────────────────────────────────────────────────────────── */
.dashboard-container { max-width: 800px; margin: 0 auto; padding: 100px 20px 60px; }
.dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; flex-wrap: wrap; gap: 16px; }
.dash-header h1 { font-size: 1.8rem; font-weight: 700; }
.dash-user-info { display: flex; align-items: center; gap: 12px; }
#dash-email { font-size: 0.85rem; color: #71717a; }
.plan-badge {
    font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
    padding: 4px 10px; border-radius: 12px;
}
.plan-badge.lifetime { background: rgba(220,38,38,0.15); color: #dc2626; }
.plan-badge.monthly { background: rgba(59,130,246,0.15); color: #60a5fa; }
.plan-badge.none, .plan-badge.expired { background: rgba(113,113,122,0.15); color: #71717a; }

.dash-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 20px; }
.dash-card {
    background: #0f0f12; border: 1px solid #18181b; border-radius: 12px; padding: 28px;
}
.dash-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 12px; }
.dash-subtitle { font-size: 0.85rem; color: #71717a; margin-bottom: 16px; }
.alt-add-form { display: flex; gap: 8px; margin-bottom: 12px; }
.alt-add-form input {
    flex: 1; padding: 10px 14px; background: #18181b; border: 1px solid #27272a;
    border-radius: 6px; color: #e4e4e7; font-size: 0.9rem; outline: none;
}
.alt-add-form input:focus { border-color: #dc2626; }
#alt-list { margin-top: 16px; }
.alt-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px; background: #18181b; border-radius: 8px; margin-bottom: 8px;
}
.alt-item .alt-name { font-size: 0.9rem; font-weight: 500; }
.alt-item .alt-date { font-size: 0.75rem; color: #52525b; }
.alt-item button { background: none; border: none; color: #71717a; cursor: pointer; font-size: 0.8rem; padding: 4px 8px; border-radius: 4px; }
.alt-item button:hover { color: #fca5a5; background: rgba(220,38,38,0.1); }

.connect-steps { padding-left: 20px; }
.connect-steps li { font-size: 0.85rem; color: #a1a1aa; padding: 4px 0; }
.connect-steps code { background: #18181b; padding: 2px 8px; border-radius: 4px; color: #dc2626; font-size: 0.8rem; }

#plan-status-content .plan-info { font-size: 0.9rem; color: #a1a1aa; }
#plan-status-content .plan-expires { font-size: 0.8rem; color: #52525b; margin-top: 8px; }
#plan-status-content .plan-active { color: #86efac; font-weight: 500; }

@media (max-width: 600px) {
    .stats { gap: 30px; }
    nav { padding: 15px 20px; }
    .nav-links { gap: 12px; }
    .dash-header { flex-direction: column; align-items: flex-start; }
}

/* ─── Modules ─────────────────────────────────────────────────────────────── */
.modules-section { max-width: 900px; margin: 0 auto; padding: 100px 20px; }
.modules-section h2 { font-size: 2rem; font-weight: 600; letter-spacing: -1px; margin-bottom: 50px; text-align: center; }
.module-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
    background: #18181b; border: 1px solid #18181b; border-radius: 12px; overflow: hidden;
}
.module-item { background: #09090b; padding: 28px; }
.module-item h3 { font-size: 0.9rem; font-weight: 600; color: #fff; margin-bottom: 6px; }
.module-item p { font-size: 0.8rem; color: #52525b; line-height: 1.5; }

@media (max-width: 600px) {
    .module-grid { grid-template-columns: 1fr; }
}
