/* Nexora — Global Styles v2.0 */
:root {
    --primary: #7c5cfc;
    --primary-dark: #6341e0;
    --secondary: #22d3ee;
    --accent: #a78bfa;
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a26;
    --text: #e8e8f0;
    --text-muted: #8888a0;
    --border: #1e1e2e;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --gradient: linear-gradient(135deg, #7c5cfc, #22d3ee);
    --radius: 12px;
    --shadow: 0 4px 24px rgba(124, 92, 252, 0.08);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

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

/* Navbar */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; color: var(--text); }
.logo-icon { color: var(--primary); font-size: 24px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text-muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn {
    display: inline-block; padding: 10px 24px; border-radius: 8px;
    font-weight: 600; font-size: 14px; text-align: center;
    transition: all 0.2s; cursor: pointer; border: none;
}
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-primary { background: var(--gradient); color: white; box-shadow: 0 2px 12px rgba(124, 92, 252, 0.3); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(124, 92, 252, 0.4); color: white; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-block { display: block; width: 100%; }
.btn-danger { background: var(--danger); color: white; }
.btn-success { background: var(--success); color: white; }

/* Hero */
.hero {
    padding: 160px 0 100px; text-align: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(124, 92, 252, 0.15) 0%, transparent 60%);
}
.hero-badge {
    display: inline-block; padding: 6px 16px; border-radius: 20px;
    background: rgba(124, 92, 252, 0.1); border: 1px solid rgba(124, 92, 252, 0.2);
    font-size: 13px; color: var(--accent); margin-bottom: 24px;
}
.hero h1 { font-size: 56px; font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.gradient { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 18px; color: var(--text-muted); max-width: 600px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 48px; justify-content: center; }
.stat { text-align: center; }
.stat-num { display: block; font-size: 28px; font-weight: 700; color: var(--text); }
.stat-label { font-size: 13px; color: var(--text-muted); }

/* Features */
.features { padding: 100px 0; text-align: center; }
.features h2, .pricing h2, .install h2 { font-size: 36px; font-weight: 700; margin-bottom: 8px; }
.section-sub { color: var(--text-muted); font-size: 16px; margin-bottom: 48px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px; text-align: left; transition: all 0.3s;
}
.feature-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { font-size: 32px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 14px; }

/* Pricing */
.pricing { padding: 100px 0; text-align: center; }
.pricing-toggle { display: flex; gap: 4px; justify-content: center; margin-bottom: 40px; background: var(--bg-card); border-radius: 8px; padding: 4px; width: fit-content; }
.toggle-btn { padding: 8px 20px; border: none; background: transparent; color: var(--text-muted); font-size: 14px; font-weight: 500; border-radius: 6px; cursor: pointer; transition: all 0.2s; }
.toggle-btn.active { background: var(--primary); color: white; }
.badge { background: var(--success); color: white; font-size: 11px; padding: 2px 6px; border-radius: 4px; margin-left: 4px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.price-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px; text-align: center; position: relative; transition: all 0.3s;
}
.price-card.featured { border-color: var(--primary); box-shadow: var(--shadow); }
.price-card:hover { transform: translateY(-4px); }
.price-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gradient); color: white; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 12px; }
.price-card h3 { font-size: 20px; margin-bottom: 16px; }
.price { margin-bottom: 24px; }
.currency { font-size: 20px; color: var(--text-muted); }
.amount { font-size: 48px; font-weight: 800; }
.period { font-size: 14px; color: var(--text-muted); }
.features-list { list-style: none; text-align: left; margin-bottom: 24px; }
.features-list li { padding: 8px 0; font-size: 14px; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.features-list li:last-child { border: none; }

/* Install Steps */
.install { padding: 100px 0; text-align: center; }
.steps { display: flex; align-items: center; justify-content: center; gap: 24px; margin-bottom: 40px; }
.step { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; width: 240px; }
.step-num { width: 48px; height: 48px; background: var(--gradient); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: white; margin: 0 auto 16px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 13px; }
.step-arrow { font-size: 24px; color: var(--primary); }
.install-code {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px; max-width: 700px; margin: 0 auto;
}
.install-code code { font-family: 'Fira Code', monospace; font-size: 14px; color: var(--secondary); word-break: break-all; }

/* Footer */
.footer { padding: 60px 0 0; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { font-size: 18px; font-weight: 700; }
.footer-brand p { font-size: 13px; color: var(--text-muted); margin-top: 8px; font-weight: 400; }
.footer-links h4 { font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.footer-links a { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; text-align: center; font-size: 13px; color: var(--text-muted); }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--text-muted); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px;
    background: var(--bg); color: var(--text); font-size: 14px; transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus { border-color: var(--primary); outline: none; }

/* Auth Pages */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 80px 24px; }
.auth-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 24px; margin-bottom: 8px; }
.auth-card .subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.auth-card .error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2); color: var(--danger); padding: 10px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; }
.auth-card .success { background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.2); color: var(--success); padding: 10px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; }
.auth-footer { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-muted); }

/* Dashboard */
.dashboard { display: flex; min-height: 100vh; }
.sidebar { width: 240px; background: var(--bg-card); border-right: 1px solid var(--border); padding: 24px 0; flex-shrink: 0; }
.sidebar-nav a { display: block; padding: 10px 24px; color: var(--text-muted); font-size: 14px; font-weight: 500; transition: all 0.2s; }
.sidebar-nav a:hover, .sidebar-nav a.active { color: var(--text); background: rgba(124, 92, 252, 0.08); border-right: 2px solid var(--primary); }
.main-content { flex: 1; padding: 32px; }
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.page-header h1 { font-size: 24px; font-weight: 700; }

/* Stats Cards */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.stat-card .label { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.stat-card .value { font-size: 28px; font-weight: 700; }

/* Tables */
.table-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; font-size: 14px; }
th { background: rgba(124, 92, 252, 0.05); color: var(--text-muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
td { border-top: 1px solid var(--border); }
tr:hover td { background: rgba(124, 92, 252, 0.03); }

/* Badges */
.badge-active { background: rgba(34, 197, 94, 0.15); color: var(--success); padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.badge-revoked { background: rgba(239, 68, 68, 0.15); color: var(--danger); padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.badge-expired { background: rgba(245, 158, 11, 0.15); color: var(--warning); padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 36px; }
    .features-grid, .pricing-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { flex-direction: column; }
    .step-arrow { transform: rotate(90deg); }
    .sidebar { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
}