:root {
    --gold: #d4af37;
    --gold-light: #f0d78c;
    --gold-dark: #8b6914;
    --green: #3dcc6e;
    --green-dark: #1a8f47;
    --green-glow: rgba(61, 204, 110, 0.45);
    --ice: #7ec8e8;
    --ice-dim: rgba(126, 200, 232, 0.15);
    --dark: #05080d;
    --panel: rgba(8, 14, 22, 0.88);
    --panel-border: rgba(126, 200, 232, 0.18);
    --border: rgba(255, 255, 255, 0.08);
    --text: #eef2f7;
    --muted: #94a3b8;
    --success: #3dcc6e;
    --error: #ef4444;
    --font-display: 'Cinzel', Georgia, serif;
    --font-body: 'Manrope', 'Segoe UI', sans-serif;
    --header-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text);
    min-height: 100vh;
    background: var(--dark);
    line-height: 1.6;
}

a { color: inherit; }

/* ===== Inner pages background ===== */
.wow-bg {
    position: fixed; inset: 0; z-index: -1;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(126,200,232,0.12), transparent),
        linear-gradient(180deg, #0a1219 0%, #05080d 100%);
}

/* ===== Header ===== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    height: var(--header-h);
    background: rgba(5, 8, 13, 0.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.site-header--hero {
    background: linear-gradient(180deg, rgba(5,8,13,0.85) 0%, rgba(5,8,13,0.35) 70%, transparent 100%);
    border-bottom: none;
}

.header-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-mark {
    font-size: 1.4rem;
    filter: drop-shadow(0 0 8px var(--gold));
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--gold-light);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.35);
}

.nav-main {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    justify-content: center;
}

.nav-main a {
    text-decoration: none;
    color: rgba(255,255,255,0.75);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.5rem 0.85rem;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.nav-main a:hover,
.nav-main a.active {
    color: #fff;
    background: rgba(255,255,255,0.06);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.online-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: rgba(0,0,0,0.35);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.online-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--muted);
}

.online-dot.is-on {
    background: var(--green);
    box-shadow: 0 0 10px var(--green-glow);
}

.online-dot.is-off { background: #64748b; }

.online-count {
    color: var(--green);
    font-weight: 700;
}

.btn-header-play {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.1rem;
    background: linear-gradient(180deg, #45e080 0%, var(--green-dark) 100%);
    color: #041208;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 6px;
    box-shadow: 0 4px 20px var(--green-glow);
    transition: transform 0.15s, filter 0.15s;
}

.btn-header-play:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.btn-header-login {
    padding: 0.5rem 0.9rem;
    border: 1px solid rgba(212,175,55,0.45);
    color: var(--gold-light);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 6px;
    transition: background 0.2s;
}

.btn-header-login:hover {
    background: rgba(212,175,55,0.1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: #fff;
}

/* ===== Main ===== */
.main-content { padding: calc(var(--header-h) + 2rem) 1rem 4rem; }

.main-content--home {
    padding: 0;
    max-width: none;
}

/* ===== Hero (Sirus-inspired layout, Klinok style) ===== */
.home-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-h) + 2rem) 1.5rem 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 30%;
    transform: scale(1.03);
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5,8,13,0.92) 0%, rgba(5,8,13,0.55) 45%, rgba(5,8,13,0.75) 100%),
        linear-gradient(0deg, rgba(5,8,13,0.95) 0%, transparent 35%, transparent 65%, rgba(5,8,13,0.85) 100%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.25), transparent),
        radial-gradient(1px 1px at 60% 70%, rgba(126,200,232,0.3), transparent),
        radial-gradient(2px 2px at 80% 20%, rgba(212,175,55,0.2), transparent);
    opacity: 0.6;
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: center;
}

.hero-eyebrow {
    color: var(--ice);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 1.25rem;
    text-shadow: 0 4px 30px rgba(0,0,0,0.6);
}

.hero-title span {
    color: var(--gold-light);
    text-shadow: 0 0 30px rgba(212,175,55,0.35);
}

.hero-lead {
    color: rgba(255,255,255,0.78);
    font-size: 1.05rem;
    max-width: 540px;
    margin-bottom: 2rem;
    line-height: 1.75;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.btn-cta-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.25rem;
    background: linear-gradient(180deg, #f0d060 0%, #c8941a 50%, #8b6914 100%);
    color: #1a1005;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(255,230,150,0.5);
    box-shadow: 0 8px 32px rgba(212,175,55,0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-cta-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(212,175,55,0.45);
}

.btn-cta-outline {
    display: inline-flex;
    align-items: center;
    padding: 1rem 1.75rem;
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 8px;
    backdrop-filter: blur(4px);
    transition: background 0.2s, border-color 0.2s;
}

.btn-cta-outline:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.4);
}

.hero-note {
    font-size: 0.85rem;
    color: var(--muted);
}

/* Realm widget (right panel like Sirus) */
.hero-panel { position: relative; }

.realm-card {
    position: relative;
    padding: 1.75rem 1.5rem;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    overflow: hidden;
}

.realm-card-glow {
    position: absolute;
    top: -40px; right: -40px;
    width: 120px; height: 120px;
    background: radial-gradient(circle, var(--ice-dim), transparent 70%);
    pointer-events: none;
}

.realm-card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 12px var(--ice));
}

.realm-card-patch {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
}

.realm-card-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--gold-light);
    margin: 0.35rem 0;
}

.realm-card-addr {
    font-size: 0.8rem;
    color: var(--ice);
    font-family: monospace;
    margin-bottom: 1rem;
}

.realm-card-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.status-pill {
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-pill--on {
    background: rgba(61,204,110,0.15);
    color: var(--green);
    border: 1px solid rgba(61,204,110,0.35);
}

.status-pill--off {
    background: rgba(148,163,184,0.12);
    color: var(--muted);
    border: 1px solid rgba(148,163,184,0.25);
}

.status-players { font-size: 0.85rem; color: var(--muted); }

.realm-card-stats {
    list-style: none;
    margin-bottom: 1.25rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.realm-card-stats li {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.realm-card-stats strong { color: #fff; }

.btn-realm-join {
    display: block;
    text-align: center;
    padding: 0.85rem;
    background: linear-gradient(180deg, #45e080, var(--green-dark));
    color: #041208;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 8px;
    transition: filter 0.15s;
}

.btn-realm-join:hover { filter: brightness(1.08); }

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.5);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* ===== Sections ===== */
.home-section {
    padding: 5rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.home-section--dark {
    max-width: none;
    background: linear-gradient(180deg, #080d14 0%, #0a1219 100%);
    border-top: 1px solid var(--border);
}

.section-head {
    text-align: center;
    margin-bottom: 3rem;
}

.section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    color: var(--gold-light);
    margin-bottom: 0.5rem;
}

.section-head p { color: var(--muted); font-size: 1.05rem; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    padding: 1.75rem;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
    border-color: rgba(212,175,55,0.3);
    transform: translateY(-3px);
}

.feature-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--gold-light);
    margin-bottom: 0.65rem;
}

.feature-card p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.feature-card code {
    background: rgba(0,0,0,0.35);
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    font-size: 0.85em;
    color: var(--ice);
}

.link-gold {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.link-gold:hover { color: var(--gold-light); }

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto 2.5rem;
}

.step { text-align: center; }

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #1a1005;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.step h4 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.step p { color: var(--muted); font-size: 0.9rem; }

.home-bottom-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== Footer ===== */
.site-footer {
    border-top: 1px solid var(--border);
    background: #040608;
    padding: 2rem 1.5rem;
}

.footer-wrap {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    font-family: var(--font-display);
    letter-spacing: 0.15em;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover { color: #fff; }

.footer-copy { font-size: 0.8rem; color: #64748b; }

/* ===== Shared components (inner pages) ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

.wow-panel {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 1.75rem 2rem;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.wow-panel h1, .wow-panel h2 {
    font-family: var(--font-display);
    color: var(--gold-light);
    margin-bottom: 1rem;
}

.wow-panel p { line-height: 1.7; margin-bottom: 0.8rem; color: var(--muted); }

.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background: linear-gradient(180deg, #2a4035, #1a2820);
    border: 1px solid rgba(61,204,110,0.35);
    color: #e8f5ec;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-body);
    transition: filter 0.15s;
}

.btn-primary {
    background: linear-gradient(180deg, #f0d060, #8b6914);
    color: #1a1005;
    border-color: rgba(255,230,150,0.4);
}

.btn:hover { filter: brightness(1.1); }

.form-group { margin-bottom: 1rem; }

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    background: rgba(0,0,0,0.35);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    font-family: var(--font-body);
}

.form-group input:focus {
    outline: none;
    border-color: rgba(212,175,55,0.5);
}

.alert {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.page-inner .main-content > .alert { margin-bottom: 1.5rem; }

.alert-success { background: rgba(61,204,110,0.12); border: 1px solid var(--success); color: #86efac; }
.alert-error { background: rgba(239,68,68,0.12); border: 1px solid var(--error); color: #fca5a5; }
.alert-info { background: rgba(126,200,232,0.12); border: 1px solid var(--ice); color: #bae6fd; }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.card {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    padding: 1.25rem;
    border-radius: 12px;
}

.card h3 {
    font-family: var(--font-display);
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.addon-list { list-style: none; }
.addon-list li { padding: 0.85rem 0; border-bottom: 1px solid var(--border); }
.addon-list li:last-child { border: none; }
.addon-list strong { color: var(--gold-light); }

.tag {
    display: inline-block;
    background: rgba(61,204,110,0.12);
    color: var(--green);
    padding: 0.15rem 0.5rem;
    font-size: 0.72rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    font-weight: 600;
}

.hero { text-align: center; padding: 3rem 1rem; }
.hero h1 { font-family: var(--font-display); font-size: 2.5rem; color: var(--gold-light); }
.hero .subtitle { font-size: 1.1rem; color: var(--gold); margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.stats { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; margin: 2rem 0; }
.stat .num { font-size: 2rem; color: var(--gold); font-weight: bold; font-family: var(--font-display); }
.stat .lbl { color: var(--muted); font-size: 0.85rem; }

table.admin-table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.9rem; }
table.admin-table th, table.admin-table td { border: 1px solid var(--border); padding: 0.55rem 0.75rem; text-align: left; }
table.admin-table th { background: rgba(0,0,0,0.35); color: var(--gold); }

.admin-nav { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.admin-nav a {
    padding: 0.45rem 0.85rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    color: var(--muted);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
}
.admin-nav a.active, .admin-nav a:hover { color: var(--gold-light); border-color: rgba(212,175,55,0.4); }

/* Mobile */
@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-panel { max-width: 360px; margin: 0 auto; }

    .nav-main, .header-actions .online-badge, .header-actions .btn-header-login {
        display: none;
    }

    .nav-toggle { display: flex; margin-left: auto; }

    body.nav-open .nav-main {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0;
        background: rgba(5,8,13,0.98);
        padding: 1rem;
        border-bottom: 1px solid var(--border);
    }

    body.nav-open .header-actions {
        position: fixed;
        top: calc(var(--header-h) + 280px);
        left: 1rem; right: 1rem;
        flex-wrap: wrap;
    }

    body.nav-open .header-actions .online-badge,
    body.nav-open .header-actions .btn-header-login {
        display: flex;
    }
}

@media (max-width: 600px) {
    .hero-cta { flex-direction: column; }
    .btn-cta-gold, .btn-cta-outline { width: 100%; text-align: center; }
    .btn-header-play { display: none; }
}
