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

:root {
    --bg: #000000;
    --bg2: #0a0a0a;
    --bg3: #171717;
    --purple: #eab308;
    --purple-light: #facc15;
    --purple-dark: #ca8a04;
    --purple-glow: rgba(234, 179, 8, 0.4);
    --cyan: #06b6d4;
    --text: #ffffff;
    --text-muted: #9ca3af;
    --border: rgba(234, 179, 8, 0.45);
    --card: #0a0a0a;
    --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(234, 179, 8, 0.10) 0%, transparent 70%),
        radial-gradient(ellipse 40% 30% at 80% 80%, rgba(250, 204, 21, 0.06) 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 20px;
    height: 62px;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

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

/* Brand on the left (Rome RCE style: moon icon + UNITY RCE) */
.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 2px;
    color: #fff;
    text-transform: uppercase;
}
.nav-brand .moon {
    color: var(--purple-light);
    filter: drop-shadow(0 0 8px rgba(250,204,21,0.6));
    transform: rotate(-15deg);
}
.nav-brand span { color: var(--purple-light); text-shadow: 0 0 10px rgba(250,204,21,0.55); }

/* Old nav-links + admin button now live inside the hamburger drawer.
   Keep them hidden on the public site so the header stays clean. */
.nav-links { display: none !important; }
.nav-left .btn-admin,
.nav-left .btn-discord { display: none !important; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 56px; /* space for fixed hamburger toggle on the right */
}

.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: #000; }
.btn-primary:hover { background: var(--purple-light); box-shadow: 0 0 20px var(--purple-glow); }
.btn-outline { background: var(--purple); color: #000; border: 1.5px solid var(--purple); }
.btn-outline:hover { background: var(--purple-light); border-color: var(--purple-light); color: #000; box-shadow: 0 0 20px var(--purple-glow); }
.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: 5px 18px;
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(3rem, 9vw, 5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -1px;
    margin-bottom: 0;
    text-align: center;
}

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

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

.hero-sub {
    max-width: 420px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 auto 36px;
    text-align: center;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: min(380px, 88vw);
    margin: 0 auto 56px;
    align-items: center;
}
.hero-buttons .btn-hero {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border-radius: 10px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 0.95rem;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.18s ease;
    border: 2px solid transparent;
    cursor: pointer;
}
.hero-buttons .btn-hero svg { width: 18px; height: 18px; }
/* JOIN DISCORD — yellow filled with glow */
.btn-hero-discord {
    background: linear-gradient(180deg, #facc15 0%, #eab308 100%);
    color: #0a0a0a;
    box-shadow: 0 0 24px rgba(234,179,8,0.55), 0 0 56px rgba(234,179,8,0.25);
}
.btn-hero-discord:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 32px rgba(234,179,8,0.75), 0 0 72px rgba(234,179,8,0.35);
}
/* VIEW RULES — outline yellow */
.btn-hero-rules {
    background: transparent;
    color: var(--purple-light);
    border-color: rgba(234,179,8,0.55);
    box-shadow: 0 0 18px rgba(234,179,8,0.18) inset, 0 0 18px rgba(234,179,8,0.18);
}
.btn-hero-rules:hover {
    background: rgba(234,179,8,0.10);
    border-color: var(--purple-light);
    color: #fde68a;
}
/* VISIT STORE — pink/purple filled with glow */
.btn-hero-store {
    background: linear-gradient(180deg, #a855f7 0%, #7e22ce 100%);
    color: #fff;
    box-shadow: 0 0 26px rgba(168,85,247,0.55), 0 0 60px rgba(168,85,247,0.30);
}
.btn-hero-store:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 34px rgba(168,85,247,0.75), 0 0 76px rgba(168,85,247,0.40);
}

/* Soft yellow radial glow behind the hero (Rome RCE style ambient lighting) */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 50% 45%, rgba(234,179,8,0.18), transparent 70%),
        radial-gradient(ellipse 40% 30% at 50% 50%, rgba(250,204,21,0.12), transparent 75%);
    pointer-events: none;
    z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.hero-stats {
    display: flex;
    gap: 48px;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 14px 0;
}
.hero-stats::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(234, 179, 8, 0.22), transparent 65%);
    filter: blur(14px);
    pointer-events: none;
    z-index: -1;
}

.stat { text-align: center; }
.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(180deg, #fde68a 0%, #facc15 50%, #eab308 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 0 10px rgba(234, 179, 8, 0.55));
}
.stat-label {
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Live server status card (Population + Queue, fed by RCON serverinfo) */
.server-status-card {
    margin: 36px auto 0;
    width: min(420px, 90vw);
    background: rgba(15, 15, 20, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 18px 22px;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.server-status-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 8px 0;
}
.server-status-text { align-items: flex-start; min-width: 110px; }
.server-status-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.server-status-icon--pop { background: rgba(46, 204, 113, 0.18); color: #2ecc71; }
.server-status-icon--queue { background: rgba(243, 156, 18, 0.18); color: #f39c12; }
.server-status-icon--pop.is-offline { background: rgba(231, 76, 60, 0.18); color: #e74c3c; }
.server-status-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.85); }
}
.server-status-text { display: flex; flex-direction: column; }
.server-status-label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.server-status-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}
.server-status-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    margin: 4px 0;
}

.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(234, 179, 8,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;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.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: var(--bg2);
    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; }
}
