/* =====================================================
   Astrix Hostings — Gold & Black rebrand (theme.css)
   Loaded AFTER each page's inline styles so it wins.
   ===================================================== */
:root {
    --bg-color: #050505;
    --text-primary: #F6EBCB;
    --text-secondary: #A99C7C;
    --surface-glass: rgba(10, 8, 4, 0.78);
    --surface-card: #0F0C06;
    --border-color: rgba(214, 168, 46, 0.18);
    --border-hover: rgba(245, 200, 80, 0.55);
    --accent-black: #F7DE8E;            /* headings / prices (light gold) */
    --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.55);
    --shadow-glass: 0 35px 80px rgba(0, 0, 0, 0.75), 0 0 60px rgba(214, 168, 46, 0.18);

    --gold-1: #FFE9A3;
    --gold-2: #F5C542;
    --gold-3: #D4A017;
    --gold-4: #8A5E0B;
    --gold-grad: linear-gradient(135deg, #FFE9A3 0%, #F5C542 38%, #D4A017 68%, #9A6A0E 100%);
    --gold-glow: rgba(245, 197, 66, 0.35);
}

html { scroll-behavior: smooth; background: #050505; }

/* ---------- Black body with gold corner blends ---------- */
body {
    background-color: #050505 !important;
    color: var(--text-primary);
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background:
        radial-gradient(900px 600px at 0% 0%,    rgba(245, 197, 66, 0.20), transparent 62%),
        radial-gradient(900px 600px at 100% 0%,  rgba(212, 160, 23, 0.16), transparent 62%),
        radial-gradient(900px 650px at 0% 100%,  rgba(212, 160, 23, 0.14), transparent 62%),
        radial-gradient(1000px 650px at 100% 100%, rgba(245, 197, 66, 0.20), transparent 62%),
        #050505;
}
::selection { background: rgba(245, 197, 66, 0.35); color: #fff; }

.ambient-overlay { background: rgba(5, 5, 5, 0.86) !important; }
body.has-hovered-card .ambient-overlay { background: rgba(0, 0, 0, 0.55) !important; }

/* ---------- Announcement bar ---------- */
.announcement-bar {
    background: linear-gradient(90deg, #0a0804, #1b1405 50%, #0a0804) !important;
    color: var(--gold-1) !important;
    border-bottom: 1px solid var(--border-color) !important;
}
.announcement-bar strong { color: var(--gold-2); }
.announcement-bar span { color: #BFB08A !important; }

/* ---------- Header ---------- */
header {
    background: rgba(6, 5, 3, 0.82) !important;
    border-bottom: 1px solid var(--border-color) !important;
}
.logo { gap: 10px; color: var(--gold-1) !important; }
.logo img { width: 34px; height: 34px; display: block; flex: none; }
.logo span {
    background: var(--gold-grad);
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
    font-weight: 700;
}
.nav-links a { color: #B8AA86 !important; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--gold-1) !important; }
.nav-links a.active::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
    border-radius: 2px; background: var(--gold-grad);
}
.control-pill { background: #0F0C06 !important; border-color: var(--border-color) !important; }
.control-btn { color: #A99C7C !important; }
.control-btn.active { background: var(--gold-grad) !important; color: #1a1203 !important; font-weight: 700; }

/* ---------- Buttons ---------- */
.btn-dashboard, .btn-deploy, .btn-order-now, .btn-order-plan, .btn-primary, .btn-gold {
    background: var(--gold-grad) !important;
    color: #1a1203 !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: 0 6px 20px rgba(212, 160, 23, 0.25);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease !important;
}
.btn-dashboard:hover, .btn-deploy:hover, .btn-order-now:hover, .btn-order-plan:hover, .btn-primary:hover, .btn-gold:hover {
    opacity: 1 !important; filter: brightness(1.08);
    box-shadow: 0 10px 30px rgba(245, 197, 66, 0.4);
}
.btn-outline, .btn-ghost {
    background: transparent !important;
    color: var(--gold-1) !important;
    border: 1px solid var(--border-hover) !important;
    box-shadow: none !important;
}
.btn-outline:hover, .btn-ghost:hover { background: rgba(245, 197, 66, 0.1) !important; }

/* ---------- Typography ---------- */
.hero h1, .section-title, .purchase-card h1 { color: var(--gold-1) !important; }
.hero p, .section-subtitle { color: var(--text-secondary); }
.hero-badge {
    background: rgba(245, 197, 66, 0.08) !important;
    border-color: var(--border-color) !important;
    color: var(--gold-1) !important;
}

/* ---------- Cards ---------- */
.game-card, .plan-card, .feature-box, .purchase-card, .configurator-wrapper, .about-us-wrapper {
    background: linear-gradient(160deg, rgba(24, 18, 6, 0.92), rgba(10, 8, 4, 0.94)) !important;
    border: 1px solid var(--border-color) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}
.plan-card.featured { border: 1.5px solid var(--gold-2) !important; box-shadow: 0 0 40px rgba(245, 197, 66, 0.16); }
.game-card.is-hovered, .plan-card.is-hovered {
    background: rgba(10, 8, 4, 0.96) !important;
    border-color: var(--gold-2) !important;
}
body.has-hovered-card .game-card.is-hovered .btn-deploy,
.plan-card.is-hovered .btn-order-plan {
    background: var(--gold-grad) !important; color: #1a1203 !important;
}
body.has-hovered-card .game-card.is-hovered .price-tag { color: var(--gold-2) !important; }
.bubble-media-container { background: #120d04 !important; }
.badge-popular { background: var(--gold-grad) !important; color: #1a1203 !important; }
.plan-card.is-hovered .badge-popular { background: var(--gold-grad); color: #1a1203; }
.check-icon { background: rgba(245, 197, 66, 0.14) !important; color: var(--gold-2) !important; }
.plan-card.is-hovered .check-icon { background: rgba(245, 197, 66, 0.28) !important; color: var(--gold-1) !important; }
.game-card-footer { border-top-color: var(--border-color) !important; }
.price-tag, .plan-price, .summary-price-value { color: var(--gold-2) !important; }

/* ---------- Configurator ---------- */
.config-summary-card {
    background: #0B0904 !important;
    border: 1px solid var(--border-color) !important;
}
.config-label-row { color: var(--gold-1) !important; }
.summary-title { color: var(--gold-1) !important; }
input[type="range"] { background: #2a2210 !important; }
input[type="range"]::-webkit-slider-thumb { background: var(--gold-grad) !important; box-shadow: 0 0 12px var(--gold-glow) !important; }
input[type="range"]::-moz-range-thumb { background: var(--gold-2); border: none; width: 22px; height: 22px; border-radius: 50%; }

/* ---------- Flip cards (team) ---------- */
.flip-card-front { background: #0F0C06 !important; border-color: var(--border-color) !important; }
.flip-card-front h4 { color: var(--gold-1) !important; }
.flip-card-back { background: var(--gold-grad) !important; border-color: transparent !important; color: #1a1203 !important; }
.flip-card-back .discord-label { color: #4a3508 !important; }
.flip-card-back .discord-handle { color: #1a1203 !important; }

/* ---------- Purchase page ---------- */
.payment-badge {
    background: #0F0C06 !important;
    border-color: var(--border-color) !important;
    color: var(--gold-1) !important;
    box-shadow: none !important;
}

/* ---------- Footer ---------- */
footer {
    background: #070502 !important;
    border-top: 1px solid var(--border-color) !important;
    color: var(--text-secondary) !important;
}
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 16px; }
.footer-links a { color: var(--gold-2); text-decoration: none; font-size: 13px; font-weight: 500; transition: color .2s; }
.footer-links a:hover { color: var(--gold-1); text-decoration: underline; }

/* ---------- Globe section ---------- */
.globe-container::before {
    content: "";
    position: absolute; left: 50%; top: 50%;
    width: min(540px, 92%); aspect-ratio: 1; transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 197, 66, 0.30) 0%, rgba(212, 160, 23, 0.14) 45%, transparent 70%);
    pointer-events: none;
}
.globe-container canvas { position: relative; z-index: 1; }
.globe-pin {
    position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none;
    display: flex; flex-direction: column; align-items: center;
    transform: translate(-50%, -100%); will-change: transform; opacity: 0;
    transition: opacity .25s ease;
}
.globe-pin svg { width: 30px; height: 38px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .65)); }
.globe-pin .pin-label {
    margin-top: 2px; padding: 3px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
    color: #1a1203; background: var(--gold-grad);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .5);
    order: -1; margin: 0 0 3px;
}

/* ---------- Pinned event (gold) ---------- */
.ev-pin { background: linear-gradient(90deg, #080604, #1d1505 50%, #080604) !important; border-bottom-color: var(--border-color) !important; }
.ev-pin::before { background: linear-gradient(110deg, transparent 35%, rgba(245, 197, 66, .28) 50%, transparent 65%) !important; }
.ev-pin-text b { color: var(--gold-2) !important; }
.ev-pin-link:hover { background: var(--gold-2) !important; color: #1a1203 !important; }
.ev-card { background: linear-gradient(135deg, #F5C542, #8A5E0B, #FFE9A3, #F5C542) !important; background-size: 300% 300% !important; box-shadow: 0 30px 70px rgba(212, 160, 23, .22) !important; }
.ev-inner {
    background: radial-gradient(900px 300px at 85% -10%, rgba(245, 197, 66, .28), transparent 60%),
                radial-gradient(600px 300px at 0% 110%, rgba(212, 160, 23, .16), transparent 60%), #090704 !important;
}
.ev-title em { background: linear-gradient(90deg, #FFE9A3, #F5C542) !important; -webkit-background-clip: text; background-clip: text; }
.ev-btn.primary { background: var(--gold-grad) !important; color: #1a1203 !important; }
.ev-btn.primary:hover { box-shadow: 0 10px 30px rgba(245, 197, 66, .45) !important; }
.ev-ico { background: linear-gradient(135deg, #F5C542, #8A5E0B) !important; }
.ev-reward:hover { border-color: rgba(245, 197, 66, .6) !important; }
.ev-num { background: rgba(245, 197, 66, .16) !important; border-color: rgba(245, 197, 66, .5) !important; color: #FFE9A3 !important; }

/* ---------- Mobile navigation ---------- */
.nav-burger {
    display: none; width: 38px; height: 34px; border-radius: 10px; cursor: pointer;
    background: #0F0C06; border: 1px solid var(--border-color);
    align-items: center; justify-content: center; flex-direction: column; gap: 4px; padding: 0;
}
.nav-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--gold-2); transition: transform .25s, opacity .25s; }
header.nav-open .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
header.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
header.nav-open .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
    .nav-container { flex-wrap: wrap; height: auto !important; min-height: 52px; padding: 8px 16px !important; row-gap: 10px; }
    .logo { order: 1; flex: 1 1 auto; }
    .nav-burger { display: inline-flex; order: 2; }
    .nav-links { order: 3; flex: 0 0 100% !important; display: none !important; flex-direction: column; align-items: stretch !important; gap: 0 !important; padding-top: 4px; }
    .nav-links li a { display: flex !important; padding: 12px 4px; font-size: 15px !important; border-top: 1px solid var(--border-color); }
    .nav-links a.active::after { display: none; }
    .nav-controls { order: 4; flex: 0 0 100% !important; display: none !important; justify-content: flex-start !important; flex-wrap: wrap; padding-bottom: 8px; }
    header.nav-open .nav-links { display: flex !important; }
    header.nav-open .nav-controls { display: flex !important; }
    .hero h1 { font-size: 36px !important; }
    .section-title { font-size: 28px !important; }
    .globe-container { height: 400px !important; }
    .configurator-wrapper, .about-us-wrapper { padding: 28px 20px !important; }
}

/* ---------- Smoothness ---------- */
img { max-width: 100%; }
.animate-on-scroll { will-change: transform, opacity; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.btn-about-more{margin:-8px auto 28px;padding:12px 26px;}

/* Blend the GIF's black square into any background */
.logo img { mix-blend-mode: lighten; border-radius: 8px; }
.story-logo img {
    mix-blend-mode: lighten;
    -webkit-mask-image: radial-gradient(circle at center, #000 58%, transparent 72%);
    mask-image: radial-gradient(circle at center, #000 58%, transparent 72%);
}

/* ---------- Login button / user menu (auth-nav.js) ---------- */
.auth-slot { position: relative; display: flex; align-items: center; }
.btn-login {
    padding: 8px 18px; border-radius: 980px; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
    color: var(--gold-1) !important; border: 1px solid var(--border-hover); background: rgba(245,197,66,.06); transition: .2s;
}
.btn-login:hover { background: rgba(245,197,66,.16); }
.user-chip {
    display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 980px; cursor: pointer;
    border: 1px solid var(--border-hover); background: rgba(245,197,66,.06); color: var(--gold-1); font: 600 14px 'Inter', sans-serif;
}
.user-chip img, .user-chip .av { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.user-chip .av { display: grid; place-items: center; background: var(--gold-grad); color: #1a1203; font-size: 13px; font-weight: 700; }
.user-menu {
    position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; padding: 8px; z-index: 1000; border-radius: 14px;
    background: #0F0C06; border: 1px solid var(--border-hover); box-shadow: 0 20px 50px rgba(0,0,0,.7);
}
.user-menu[hidden] { display: none; }
.user-menu .who { padding: 8px 10px 10px; font-size: 12px; color: var(--text-secondary); border-bottom: 1px solid var(--border-color); margin-bottom: 6px; word-break: break-all; }
.user-menu a, .user-menu button {
    display: block; width: 100%; text-align: left; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent;
    color: var(--gold-1); font: 500 14px 'Inter', sans-serif; text-decoration: none; cursor: pointer;
}
.user-menu a:hover, .user-menu button:hover { background: rgba(245,197,66,.12); }
@media (max-width: 760px) { .user-chip .nm { display: none; } .user-chip { padding-right: 4px; } }
@media (max-width: 1360px) { .nav-controls .btn-login { padding: 7px 14px; font-size: 13px; } }
@media (max-width: 1500px) and (min-width: 901px) {
    .nav-links { gap: 18px !important; }
    .nav-controls { gap: 8px !important; }
    .nav-controls .btn-dashboard { padding-left: 14px !important; padding-right: 14px !important; }
}
