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

:root {
    --bg: #07000f;
    --bg2: #0f0020;
    --bg3: #1a003a;
    --purple: #7c3aed;
    --purple-light: #a855f7;
    --purple-dark: #4c1d95;
    --purple-glow: rgba(124, 58, 237, 0.35);
    --cyan: #06b6d4;
    --text: #f1f0ff;
    --text-muted: #9ca3af;
    --border: rgba(124, 58, 237, 0.25);
    --card: rgba(20, 0, 45, 0.7);
    --radius: 10px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(124,58,237,0.18) 0%, transparent 70%),
        radial-gradient(ellipse 40% 30% at 80% 80%, rgba(168,85,247,0.07) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    height: 62px;
    background: rgba(7, 0, 15, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 6px; font-size: 0.78rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; border: none; cursor: pointer; text-decoration: none; transition: all 0.2s; }
.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { background: #4752c4; }
.btn-admin { background: #f59e0b; color: #000; }
.btn-admin:hover { background: #d97706; }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-light); box-shadow: 0 0 20px var(--purple-glow); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid rgba(255,255,255,0.2); }
.btn-outline:hover { border-color: var(--purple-light); color: var(--purple-light); }
.btn-success { background: #16a34a; color: #fff; }
.btn-success:hover { background: #15803d; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-lg { padding: 13px 28px; font-size: 0.85rem; border-radius: 8px; }
.btn-cart { background: transparent; color: var(--text-muted); border: none; cursor: pointer; font-size: 1.3rem; }
.btn-cart:hover { color: var(--text); }

/* ── HERO ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px 60px;
    z-index: 1;
}

.hero-pill {
    display: inline-block;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 16px;
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 0;
}

.hero h1 .line1 { color: var(--text); display: block; }
.hero h1 .line2 { color: var(--purple-light); display: block; }

.hero-tagline {
    font-size: 0.65rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 14px 0 16px;
}

.hero-sub {
    max-width: 420px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 36px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    align-items: center;
    justify-content: center;
}

.stat { text-align: center; }
.stat-value { font-family: 'Orbitron', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--text); }
.stat-label { font-size: 0.65rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin-top: 4px; }

.scroll-hint {
    position: absolute;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-hint .arrow { font-size: 1.2rem; animation: bounce 1.5s infinite; }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }

/* ── PAGE SECTIONS ── */
.page-section {
    position: relative;
    z-index: 1;
    padding: 100px 48px 80px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    font-size: 0.68rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--purple-light);
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -1px;
}

.section-title span { color: var(--purple-light); }

/* ── CARDS ── */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(8px);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(124,58,237,0.2); }

.card-img { width: 100%; height: 160px; object-fit: cover; background: var(--bg3); }
.card-img-placeholder { width: 100%; height: 160px; background: linear-gradient(135deg, var(--bg3), var(--bg2)); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.card-body { padding: 20px; }
.card-title { font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
.card-desc { color: var(--text-muted); font-size: 0.85rem; line-height: 1.5; margin-bottom: 14px; }
.card-price { font-family: 'Orbitron', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--purple-light); margin-bottom: 14px; }
.card-category { font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--purple-light); opacity: 0.7; margin-bottom: 6px; }

/* ── STAFF ── */
.staff-card { text-align: center; padding: 32px 20px; }
.staff-avatar { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; border: 3px solid var(--purple); margin: 0 auto 14px; display: block; background: var(--bg3); }
.staff-avatar-placeholder { width: 90px; height: 90px; border-radius: 50%; background: linear-gradient(135deg, var(--purple-dark), var(--purple)); display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 14px; border: 3px solid var(--purple); }
.staff-name { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.staff-role { color: var(--purple-light); font-size: 0.8rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.staff-discord { color: var(--text-muted); font-size: 0.78rem; }

/* ── RULES ── */
.rule-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 26px;
    margin-bottom: 14px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.rule-num { font-family: 'Orbitron', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--purple); min-width: 36px; }
.rule-title { font-weight: 700; margin-bottom: 4px; }
.rule-content { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }

.rules-category-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 36px 0 16px;
}

.rules-category-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--purple-light);
}

.rules-category-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ── MODAL ── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active { display: flex; }

.modal {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal h3 { font-family: 'Orbitron', sans-serif; margin-bottom: 20px; font-size: 1.1rem; }
.modal-close { float: right; background: none; border: none; color: var(--text-muted); font-size: 1.4rem; cursor: pointer; margin-top: -4px; }

/* ── FORMS ── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; letter-spacing: 0.5px; }
.form-control {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 14px;
    color: var(--text);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}
.form-control:focus { border-color: var(--purple); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 80px; }
select.form-control option { background: var(--bg2); }

/* ── TOAST ── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 12px 18px; font-size: 0.85rem; animation: slideIn 0.3s ease; max-width: 320px; }
.toast.success { border-color: #16a34a; }
.toast.error { border-color: #dc2626; }
@keyframes slideIn { from{transform:translateX(100%);opacity:0} to{transform:translateX(0);opacity:1} }

/* ── MISC ── */
.divider { height: 1px; background: var(--border); margin: 40px 0; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-purple { color: var(--purple-light); }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.gap-2 { gap: 8px; }
.flex { display: flex; }
.items-center { align-items: center; }

footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 32px;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--border);
}

footer .footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

footer .footer-logo span { color: var(--purple-light); }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state .icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state p { font-size: 0.9rem; }

.payment-buttons { display: flex; flex-direction: column; gap: 8px; }

.loading { text-align: center; padding: 40px; color: var(--text-muted); }

@media (max-width: 768px) {
    nav { padding: 0 20px; }
    .nav-links { display: none; }
    .page-section { padding: 80px 20px 60px; }
    .hero-stats { gap: 28px; }
}
