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

:root {
    --bg: #08060e;
    --base: #0e0a1a;
    --surface: #16102a;
    --highlight: #221838;
    --border: #32244c;
    --subtext: #8c82aa;
    --text: #dcd7f0;
    --text-bright: #fff;
    --accent: #9650ff;
    --accent-glow: rgba(150, 80, 255, 0.3);
    --magenta: #c83cff;
    --nebula: #7832dc;
    --cosmic-blue: #5064f0;
    --green: #3cdc8c;
    --red: #ff3c64;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Particles */
.particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}
.particles canvas {
    width: 100%;
    height: 100%;
}

/* Nav */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    background: rgba(8, 6, 14, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-brand {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    color: var(--subtext);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-bright); }

.nav-btn {
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: border-color 0.2s, color 0.2s;
}
.nav-btn:hover { border-color: var(--accent); color: var(--accent) !important; }

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
}

.hero-glow {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(150, 80, 255, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content { position: relative; z-index: 2; }

.hero-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 40px rgba(150, 80, 255, 0.4));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    color: var(--text-bright);
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.hero-sub {
    font-size: 20px;
    color: var(--subtext);
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 20px;
}

.hero-note {
    font-size: 13px;
    color: var(--subtext);
    opacity: 0.7;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--accent);
    color: var(--text-bright);
}
.btn-primary:hover {
    background: var(--magenta);
    box-shadow: 0 0 24px var(--accent-glow);
}

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

/* Features */
.features {
    position: relative;
    z-index: 1;
    padding: 100px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.features h2, .pricing h2, .info-section h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 12px;
}

.section-sub {
    text-align: center;
    color: var(--subtext);
    font-size: 15px;
    margin-bottom: 48px;
}

.hero-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 32px;
}

.badge-hero {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(150, 80, 255, 0.12);
    color: var(--accent);
    border: 1px solid rgba(150, 80, 255, 0.25);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--highlight);
    border-radius: 12px;
    padding: 28px;
    transition: border-color 0.3s, transform 0.3s;
}
.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 28px;
    color: var(--accent);
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 18px;
    color: var(--text-bright);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--subtext);
    line-height: 1.5;
}

/* License Check */
.license-check {
    position: relative;
    z-index: 1;
    padding: 80px 40px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.license-check h2 {
    font-size: 28px;
    color: var(--text-bright);
    margin-bottom: 24px;
}

#license-form {
    display: flex;
    gap: 12px;
    justify-content: center;
}

#license-form input {
    flex: 1;
    max-width: 340px;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--highlight);
    border-radius: 8px;
    color: var(--text);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}
#license-form input:focus { border-color: var(--accent); }
#license-form input::placeholder { color: var(--subtext); opacity: 0.6; }

#license-result {
    margin-top: 16px;
    font-size: 14px;
    min-height: 20px;
}
.result-valid { color: var(--green); }
.result-invalid { color: var(--red); }

/* Pricing */
.pricing, .info-section {
    position: relative;
    z-index: 1;
    padding: 80px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

.pricing-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--highlight);
    border-radius: 14px;
    padding: 32px 24px;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s;
}
.pricing-card:hover { border-color: var(--accent); transform: translateY(-4px); }

.pricing-popular {
    border-color: var(--accent);
    box-shadow: 0 0 40px rgba(150, 80, 255, 0.12);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--text-bright);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-duration {
    font-size: 14px;
    color: var(--subtext);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-price {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 24px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 28px;
    text-align: left;
}

.pricing-features li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--text);
    border-bottom: 1px solid var(--highlight);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before {
    content: "\2713  ";
    color: var(--accent);
    font-weight: 700;
}

/* Info */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.info-card {
    background: var(--surface);
    border: 1px solid var(--highlight);
    border-radius: 12px;
    padding: 28px;
}

.info-card h3 {
    font-size: 17px;
    color: var(--text-bright);
    margin-bottom: 8px;
}

.info-card p {
    font-size: 14px;
    color: var(--subtext);
    line-height: 1.5;
}

/* Install */
.install-section {
    position: relative;
    z-index: 1;
    padding: 60px 40px;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.install-box {
    background: var(--surface);
    border: 1px solid var(--highlight);
    border-radius: 10px;
    padding: 20px;
    margin-top: 24px;
    position: relative;
}

.install-box code {
    font-family: monospace;
    font-size: 14px;
    color: var(--accent);
    user-select: all;
}

.install-box .copy-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--highlight);
    border: 1px solid var(--border);
    color: var(--subtext);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: color 0.2s, border-color 0.2s;
}
.install-box .copy-btn:hover { color: var(--accent); border-color: var(--accent); }

/* Footer */
footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px;
    border-top: 1px solid var(--highlight);
    color: var(--subtext);
    font-size: 13px;
}

/* Admin */
.admin-wrap {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 100px auto 40px;
    padding: 0 24px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.admin-header h1 { font-size: 24px; color: var(--text-bright); }

.admin-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--highlight);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}
.stat-card .stat-num {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
}
.stat-card .stat-label {
    font-size: 13px;
    color: var(--subtext);
    margin-top: 4px;
}

.admin-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--highlight);
}

th, td {
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    border-bottom: 1px solid var(--highlight);
}

th {
    background: var(--highlight);
    color: var(--text-bright);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td { color: var(--text); }

tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(150, 80, 255, 0.05); }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}
.badge-active { background: rgba(60, 220, 140, 0.15); color: var(--green); }
.badge-suspended { background: rgba(255, 60, 100, 0.15); color: var(--red); }
.badge-expired { background: rgba(140, 130, 170, 0.15); color: var(--subtext); }

.btn-sm {
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 6px;
}
.btn-danger {
    background: rgba(255, 60, 100, 0.15);
    color: var(--red);
    border: 1px solid rgba(255, 60, 100, 0.3);
}
.btn-danger:hover { background: rgba(255, 60, 100, 0.25); }

/* Login */
.login-wrap {
    position: relative;
    z-index: 1;
    max-width: 380px;
    margin: 200px auto;
    padding: 36px;
    background: var(--surface);
    border: 1px solid var(--highlight);
    border-radius: 12px;
    text-align: center;
}

.login-wrap h1 {
    font-size: 22px;
    color: var(--text-bright);
    margin-bottom: 24px;
}

.login-wrap input {
    width: 100%;
    padding: 12px 16px;
    background: var(--base);
    border: 1px solid var(--highlight);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    outline: none;
    margin-bottom: 12px;
}
.login-wrap input:focus { border-color: var(--accent); }

.login-wrap .btn { width: 100%; }

.error-msg {
    color: var(--red);
    font-size: 13px;
    margin-bottom: 12px;
}

.footer-content {
    display: flex;
    justify-content: center;
    gap: 24px;
    align-items: center;
}
.footer-content a { color: var(--subtext); text-decoration: none; transition: color 0.2s; }
.footer-content a:hover { color: var(--accent); }

@media (max-width: 768px) {
    .hero h1 { font-size: 36px; }
    .hero-logo { width: 80px; height: 80px; }
    .feature-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
    .admin-stats { flex-direction: column; }
    nav { padding: 12px 20px; }
    .nav-links { gap: 16px; }
    .hero-badges { flex-wrap: wrap; }
}
