/* ============================================================
   LoaD Scripts — dark gaming theme (Inter + JetBrains Mono)
   ============================================================ */

:root {
    --accent:       #e03131;   /* red-600 */
    --accent-h:     #fa5252;   /* red-500 — hover */
    --accent-dim:   rgba(224, 49, 49, 0.10);
    --accent-glow:  rgba(224, 49, 49, 0.25);
    --bg:           #060608;
    --card:         #0d0d10;
    --card-hover:   #161619;
    --border:       #1e1e24;
    --border-h:     rgba(224, 49, 49, 0.40);
    --text:         #e8e8f0;
    --text-muted:   #8888a0;
    --text-dim:     #55556a;
}

/* ── Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    background: var(--bg);
    background-image: radial-gradient(ellipse 80% 50% at 50% -5%, rgba(224,49,49,.06) 0%, transparent 65%);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }
a { color: inherit; }
code, .font-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* ── Navbar ────────────────────────────────────────────────── */
#mainNav {
    background: rgba(6, 6, 8, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    min-height: 64px;
    transition: background .3s, box-shadow .3s;
}
#mainNav.nav-scrolled {
    background: rgba(6, 6, 8, 0.95);
    box-shadow: 0 4px 24px rgba(0,0,0,.3);
}

#mainNav .navbar-brand {
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    color: #fff;
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
}
#mainNav .navbar-brand .brand-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent-h), #c92a2a);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    color: #fff;
    box-shadow: 0 2px 10px rgba(224,49,49,.25);
    flex-shrink: 0;
}

#mainNav .navbar-brand .brand-accent { color: var(--accent-h); }

#mainNav .nav-link {
    color: var(--text-dim);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: color .2s, background .2s, border-color .2s;
    padding: .4rem .85rem;
    border-radius: 8px;
    border: 1px solid transparent;
    position: relative;
}

#mainNav .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.08);
}

#mainNav .nav-link.active {
    color: #fff;
    background: rgba(224,49,49,.08);
    border-color: rgba(224,49,49,.2);
}
#mainNav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent-h);
}

.nav-right-link {
    font-size: .82rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color .18s, background .18s, border-color .18s;
    text-decoration: none;
    padding: .3rem .75rem;
    border-radius: 6px;
    border: 1px solid transparent;
}

.nav-right-link:hover {
    color: #fff;
    background: rgba(255,255,255,.06);
    border-color: var(--border);
}

.nav-right-link.active {
    color: #fff;
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.12);
}

/* ── User dropdown ──────────────────────────────────────── */
.user-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    font-weight: 600;
    color: #fff;
    background: rgba(139,92,246,.08);
    border: 1px solid rgba(139,92,246,.2);
    border-radius: 10px;
    padding: .4rem .9rem;
    transition: all .2s;
    cursor: pointer;
}
.user-dropdown-btn:hover,
.user-dropdown-btn.show {
    background: rgba(139,92,246,.15);
    border-color: rgba(139,92,246,.35);
    color: #fff;
    box-shadow: 0 4px 16px rgba(139,92,246,.1);
}
.user-dropdown-btn::after {
    font-size: .55rem;
    vertical-align: .12em;
    opacity: .4;
}
.user-dropdown-btn i {
    font-size: 1rem;
    color: #a78bfa;
}
.user-dropdown-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-dropdown-menu {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: .4rem;
    min-width: 210px;
    box-shadow: 0 16px 48px rgba(0,0,0,.5), 0 0 0 1px rgba(139,92,246,.05);
    margin-top: .4rem !important;
    animation: navDropIn .15s ease-out;
}
@keyframes navDropIn {
    from { opacity: 0; transform: translateY(-6px) scale(.97); }
    to   { opacity: 1; transform: none; }
}
.user-dd-item {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .82rem;
    font-weight: 500;
    color: var(--text-muted) !important;
    border-radius: 8px;
    padding: .5rem .75rem;
    transition: all .15s;
}
.user-dd-item:hover,
.user-dd-item:focus {
    background: rgba(255,255,255,.06) !important;
    color: #fff !important;
    transform: translateX(2px);
}
.user-dd-item.active {
    background: rgba(139,92,246,.1) !important;
    color: #fff !important;
}
.user-dd-item i {
    font-size: .9rem;
    width: 18px;
    text-align: center;
    color: #a78bfa;
}
.user-dd-logout {
    color: var(--accent) !important;
}
.user-dd-logout i {
    color: var(--accent) !important;
}
.user-dd-logout:hover {
    background: rgba(239,68,68,.08) !important;
    color: #fca5a5 !important;
    transform: translateX(2px);
}

/* ── Right actions: vertical stacking on collapsed navbar ─── */
@media (max-width: 991.98px) {
    .nav-right-actions {
        width: 100%;
        padding-top: .5rem;
        margin-top: .5rem;
        border-top: 1px solid var(--border);
    }
    .user-dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        border: 1px solid var(--border);
        background: var(--card);
        box-shadow: none;
        padding: .35rem;
        border-radius: 10px;
        margin-top: .35rem;
    }
    .user-dropdown-btn {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ── Ticker / Marquee ─────────────────────────────────────── */
.ticker-strip {
    background: #0a0a0c;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}
.ticker-strip::before,
.ticker-strip::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 48px;
    z-index: 2;
    pointer-events: none;
}
.ticker-strip::before { left: 0;  background: linear-gradient(to right, #0a0a0c, transparent); }
.ticker-strip::after  { right: 0; background: linear-gradient(to left,  #0a0a0c, transparent); }

.ticker-track {
    display: inline-flex;
    animation: ticker-scroll 30s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 2rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fcd34d;
}
.ticker-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-h);
    flex-shrink: 0;
}

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn-purple {
    background: var(--accent);
    color: #fff;
    border: none;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 0 20px -5px rgba(224,49,49,.4);
    transition: background .18s, box-shadow .18s, transform .18s cubic-bezier(.22,1,.36,1);
    position: relative;
    overflow: hidden;
}

.btn-purple:hover, .btn-purple:focus {
    background: var(--accent-h);
    color: #fff;
    box-shadow: 0 0 28px -4px rgba(224,49,49,.55);
    transform: scale(1.045);
}

.btn-pulse {
    animation: btn-pulse-glow 2s ease-in-out infinite;
}
.btn-pulse:hover {
    animation: none;
}
@keyframes btn-pulse-glow {
    0%, 100% { box-shadow: 0 0 12px -2px rgba(224,49,49,.4); }
    50%      { box-shadow: 0 0 28px 2px rgba(224,49,49,.7), 0 0 60px 4px rgba(224,49,49,.2); }
}

.btn-outline-purple {
    background: transparent;
    color: #fff;
    border: 1px solid var(--border);
    font-weight: 600;
    border-radius: 8px;
    transition: background .18s, transform .18s cubic-bezier(.22,1,.36,1);
    position: relative;
    overflow: hidden;
}

.btn-outline-purple:hover {
    background: var(--card-hover);
    color: #fff;
    border-color: var(--border);
    transform: scale(1.045);
}

.btn-ghost-purple {
    background: rgba(224,49,49,.15);
    color: var(--accent-h);
    border: 1px solid rgba(224,49,49,.3);
    font-weight: 600;
    border-radius: 8px;
    transition: all .15s;
}

.btn-ghost-purple:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ── Typography helpers ────────────────────────────────────── */
.text-purple { color: var(--accent-h) !important; }
.fw-black    { font-weight: 900 !important; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero-section {
    padding: 6rem 1rem 5rem;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border: 1px solid rgba(224,49,49,.3);
    background: rgba(224,49,49,.1);
    color: #fca5a5;
    border-radius: 999px;
    padding: .35em .95em;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .05em;
    margin-bottom: 2rem;
}

.hero-badge-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-h);
    flex-shrink: 0;
}

.hero-headline {
    font-size: clamp(2.6rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 1.5rem;
}

.hero-headline .accent-word {
    background: linear-gradient(135deg, #ff6b6b, #e03131);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.65;
    margin: 0 auto 2.5rem;
}

/* ── Stats bar ─────────────────────────────────────────────── */
.stats-bar {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: #080809;
    padding: 4rem 0;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-h);
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat-label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-top: .35rem;
}

/* ── Game cards (homepage) ─────────────────────────────────── */
.game-card {
    display: block;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    background: var(--card);
    transition: border-color .2s, box-shadow .2s;
}

.game-card:hover {
    border-color: rgba(224,49,49,.5);
    box-shadow: 0 0 30px -5px rgba(224,49,49,.3);
    color: var(--text);
}

.game-card-bg {
    height: 192px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #080808 0%, #130808 45%, #0c0c0e 100%);
}

.game-card-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 60% at 75% 40%, rgba(224,49,49,.2) 0%, transparent 65%),
        radial-gradient(ellipse 40% 40% at 20% 70%, rgba(120,20,20,.3) 0%, transparent 60%);
}

.game-card-bg .game-label {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #fff;
    z-index: 1;
}

.game-card-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
    background: rgba(6,6,8,.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .82rem;
}

/* ── Game header (scripts page) ────────────────────────────── */
.game-header {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.game-thumb {
    width: 96px;
    height: 96px;
    border-radius: 12px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #150808 0%, #0d0d12 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--accent-h);
    border: 1px solid var(--border);
}

/* ── Script cards ──────────────────────────────────────────── */
.script-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.script-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s, transform .22s cubic-bezier(.22,1,.36,1);
}

.script-card:hover {
    border-color: rgba(224,49,49,.4);
    box-shadow: 0 4px 24px rgba(0,0,0,.2), 0 0 16px -6px rgba(224,49,49,.2);
    transform: translateY(-2px);
}

.script-card:has(.accordion-button:not(.collapsed)) {
    border-color: var(--accent-h);
    box-shadow: 0 0 30px -10px rgba(224,49,49,.15);
}

.script-card .accordion-button {
    background: transparent;
    color: var(--text);
    padding: 1.25rem 1.5rem;
    box-shadow: none;
    gap: .75rem;
    border-radius: 0;
}

.script-card .accordion-button:not(.collapsed) {
    background: transparent;
    color: var(--text);
    box-shadow: none;
}

.script-card .accordion-button::after { display: none; }

.sc-version-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .22rem .65rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255,255,255,.04);
    font-family: 'JetBrains Mono', monospace;
    font-size: .75rem;
    color: var(--text-dim);
    transition: border-color .2s, background .2s;
}

.accordion-button:not(.collapsed) .sc-version-pill {
    border-color: rgba(224,49,49,.35);
    background: rgba(224,49,49,.07);
    color: var(--accent-h);
}

.sc-chevron {
    font-size: .68rem;
    transition: transform .25s cubic-bezier(.22,1,.36,1);
}

.accordion-button:not(.collapsed) .sc-chevron {
    transform: rotate(180deg);
}

.script-card .accordion-collapse {
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.script-card .accordion-body { padding: 1.5rem 2rem; }

/* Price badges */
.price-brl { color: #6ee89e; font-weight: 700; }
.price-usd { color: #93c5fd; font-weight: 700; }

/* ── Badges ────────────────────────────────────────────────── */
.badge-platform {
    display: inline-flex;
    align-items: center;
    background: rgba(100,116,139,.15);
    color: #e2e8f0;
    border: 1px solid rgba(100,116,139,.35);
    font-weight: 700;
    font-size: .7rem;
    padding: .3em .7em;
    border-radius: 999px;
}

.badge-category,
.badge-pve     { background: rgba(16,185,129,.12); color: #6ee89e; border: 1px solid rgba(16,185,129,.25); font-weight:700; font-size:.7rem; padding:.3em .7em; border-radius:999px; }
.badge-pvp     { background: rgba(239,68,68,.12);  color: #fca5a5; border: 1px solid rgba(239,68,68,.25);  font-weight:700; font-size:.7rem; padding:.3em .7em; border-radius:999px; }
.badge-social  { background: rgba(148,163,184,.12);color: #cbd5e1; border: 1px solid rgba(148,163,184,.25);font-weight:700; font-size:.7rem; padding:.3em .7em; border-radius:999px; }
.badge-system  { background: rgba(34,197,94,.12);  color: #86efac; border: 1px solid rgba(34,197,94,.25);  font-weight:700; font-size:.7rem; padding:.3em .7em; border-radius:999px; }
.badge-addons  { background: rgba(20,184,166,.12); color: #5eead4; border: 1px solid rgba(20,184,166,.25); font-weight:700; font-size:.7rem; padding:.3em .7em; border-radius:999px; }
.badge-visuals { background: rgba(59,130,246,.12); color: #93c5fd; border: 1px solid rgba(59,130,246,.25); font-weight:700; font-size:.7rem; padding:.3em .7em; border-radius:999px; }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
    background: var(--card);
    border-color: var(--border);
    border-radius: 16px;
}

/* ── Forms ─────────────────────────────────────────────────── */
.form-control, .form-select {
    background: var(--bg);
    border-color: var(--border);
    color: var(--text);
    border-radius: 8px;
    padding: .75rem 1rem;
}

.form-control:focus, .form-select:focus {
    background: var(--bg);
    border-color: var(--accent-h);
    color: var(--text);
    box-shadow: 0 0 0 .15rem rgba(224,49,49,.2);
}

.form-control::placeholder { color: var(--text-dim); }

.form-control:disabled, .form-control[readonly] {
    background: rgba(20,20,24,.15);
    opacity: .6;
}

.form-text { color: var(--text-dim); font-size: .78rem; }
.form-label { font-weight: 700; font-size: .875rem; color: #fff; }

/* ── Auth glow card ────────────────────────────────────────── */
.auth-glow-card {
    position: relative;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    max-width: 448px;
    width: 100%;
}

.auth-glow-card::before {
    content: '';
    position: absolute;
    top: -96px; right: -96px;
    width: 192px; height: 192px;
    background: rgba(224,49,49,.2);
    border-radius: 50%;
    filter: blur(48px);
    pointer-events: none;
}

.auth-glow-card::after {
    content: '';
    position: absolute;
    bottom: -96px; left: -96px;
    width: 192px; height: 192px;
    background: rgba(224,49,49,.2);
    border-radius: 50%;
    filter: blur(48px);
    pointer-events: none;
}

.auth-inner {
    position: relative;
    z-index: 1;
    padding: 2.5rem;
}

.auth-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--accent-h);
    margin: 0 auto 1rem;
}

/* ── Stat cards (dashboard) ────────────────────────────────── */
.stat-card-d {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.stat-card-label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}

/* ── Shared Dashboard Components ──────────────────────────── */

/* Page headers (Downloads, Packages, Guides, Settings) */
.dl-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.dl-header-left {
    display: flex;
    align-items: center;
    gap: .85rem;
}
.dl-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Action buttons (shared across dashboard pages) */
.db-action-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: .4rem .75rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: transparent;
    text-decoration: none;
    transition: all .2s;
}
.db-action-btn:hover {
    color: #fff;
    border-color: rgba(139,92,246,.3);
    background: rgba(139,92,246,.06);
}

/* Empty state (shared) */
.db-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
    margin-bottom: 2rem;
    text-align: center;
}
.db-empty i {
    font-size: 3rem;
    color: var(--text-dim);
    margin-bottom: .75rem;
}
.db-empty p {
    color: var(--text-muted);
    font-weight: 600;
    margin: 0;
}
.db-empty span {
    color: var(--text-dim);
    font-size: .85rem;
}

/* Stat link */
.db-stat-link {
    font-size: .75rem;
    font-weight: 600;
    color: var(--accent-h);
    text-decoration: none;
    margin-top: .25rem;
    display: inline-block;
    transition: color .15s;
}
.db-stat-link:hover { color: #fff; }

/* Download/Generate button (shared) */
.dl-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 1rem;
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-h), #c92a2a);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all .2s;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(224,49,49,.2);
}
.dl-btn:hover {
    color: #fff;
    filter: brightness(1.1);
    box-shadow: 0 4px 18px rgba(224,49,49,.3);
    transform: translateY(-1px);
}

/* ── Tables ────────────────────────────────────────────────── */
.table {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: rgba(20, 20, 24, 0.5);
    color: var(--text);
}

.table thead th {
    color: var(--text-dim);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    border-bottom-color: var(--border);
    background: var(--bg);
    padding: 1rem 1.5rem;
}

.table td {
    border-color: var(--border);
    padding: 1rem 1.5rem;
    vertical-align: middle;
}

/* ── Alerts ────────────────────────────────────────────────── */
.alert-success {
    background: rgba(16,185,129,.08);
    border-color: rgba(16,185,129,.2);
    color: #6ee89e;
    border-radius: 8px;
}

.alert-danger {
    background: rgba(239,68,68,.08);
    border-color: rgba(239,68,68,.2);
    color: #fca5a5;
    border-radius: 8px;
}

/* ── Cooldown badge ────────────────────────────────────────── */
.badge-cooldown {
    background: rgba(234,179,8,.12);
    color: #fde047;
    border: 1px solid rgba(234,179,8,.25);
    font-size: .7rem;
    font-weight: 600;
    padding: .2em .55em;
    border-radius: 999px;
    white-space: nowrap;
}

/* ── Contact cards ─────────────────────────────────────────── */
.contact-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: border-color .2s;
    height: 100%;
    position: relative;
}

.contact-card-discord:hover  { border-color: rgba(88,101,242,.4); }
.contact-card-whatsapp:hover { border-color: rgba(37,211,102,.3); }
.contact-card-email:hover    { border-color: rgba(224,49,49,.35); }
.contact-card-hours:hover    { border-color: rgba(234,179,8,.35); }

.contact-card-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    position: relative;
}
.contact-card-link:hover { color: inherit; }

.contact-card-arrow {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: .85rem;
    color: var(--text-dim);
    transition: color .2s, transform .2s;
}
.contact-card-link:hover .contact-card-arrow {
    color: var(--accent-h);
    transform: translate(2px, -2px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: .25rem;
}

.contact-value {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: .5rem;
}

.contact-desc {
    font-size: .85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ── Footer ────────────────────────────────────────────────── */
footer {
    border-top: 1px solid var(--border) !important;
    background: var(--bg);
}

/* ── Misc ──────────────────────────────────────────────────── */
.divider { border-color: var(--border) !important; }

.section-label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-dim);
}

/* ============================================================
   Motion & Animations
   ============================================================ */

@keyframes fade-up {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: none; }
}

/* Hero entrance */
.hero-badge    { animation: fade-up .55s .05s both; }
.hero-headline { animation: fade-up .65s .18s both; }
.hero-sub      { animation: fade-up .65s .30s both; }
.hero-cta      { animation: fade-up .65s .42s both; }

/* Scroll-triggered */
[data-anim] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease;
}
[data-anim].anim-in { opacity: 1; transform: none; }
[data-anim][data-delay="1"] { transition-delay: .12s; }
[data-anim][data-delay="2"] { transition-delay: .22s; }
[data-anim][data-delay="3"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
    [data-anim], .hero-badge, .hero-headline, .hero-sub, .hero-cta {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ── Card hover lift ────────────────────────────────────────── */
.game-card {
    transition: border-color .22s, box-shadow .22s, transform .22s;
}
.game-card:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 16px 48px rgba(0,0,0,.35), 0 0 30px -5px rgba(224,49,49,.3);
}

.contact-card {
    transition: border-color .25s, transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s;
}
.contact-card-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 42px rgba(0,0,0,.3), 0 0 24px -6px rgba(224,49,49,.2);
}
.contact-card-hours { transition: border-color .22s !important; }
.contact-card-hours:hover { transform: none !important; box-shadow: none !important; }

.stat-card-d {
    transition: border-color .2s, transform .22s, box-shadow .22s;
}
.stat-card-d:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,.25);
}

/* ── Mouse spotlight ────────────────────────────────────────── */
.contact-card::before,
.game-card::before,
.sc-card::before,
.btn-purple::before,
.btn-outline-purple::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        180px circle at var(--mx, -600px) var(--my, -600px),
        rgba(255, 255, 255, 0.10),
        transparent 70%
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s;
    z-index: 0;
}
.contact-card::before,
.game-card::before,
.sc-card::before {
    background: radial-gradient(
        320px circle at var(--mx, -600px) var(--my, -600px),
        rgba(224, 49, 49, 0.10),
        transparent 65%
    );
}
.contact-card:hover::before,
.game-card:hover::before,
.sc-card:hover::before,
.btn-purple:hover::before,
.btn-outline-purple:hover::before { opacity: 1; }

/* ensure content sits above the spotlight layer */
.contact-card > *,
.game-card > *,
.sc-card > * { position: relative; z-index: 1; }

/* button content above spotlight */
.btn-purple > *,
.btn-outline-purple > * { position: relative; z-index: 1; }

/* ============================================================
   Scripts Carousel
   ============================================================ */

.scripts-carousel-wrap {
    position: relative;
    overflow: hidden;
    padding: 0 0 1rem;
}

.scripts-carousel {
    display: flex;
    justify-content: safe center; /* centers only when content fits; falls back to start on overflow */
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1.5rem; /* keeps snap position aligned with visual padding on both ends */
    scroll-behavior: smooth;
    padding: .5rem 1.5rem 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.scripts-carousel::-webkit-scrollbar { display: none; }

/* ── Script carousel card ── */
.sc-card {
    flex: 0 0 240px;
    scroll-snap-align: start;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    transition: border-color .22s, box-shadow .22s, transform .25s cubic-bezier(.22,1,.36,1);
    position: relative;
}
.sc-card:hover {
    border-color: rgba(224,49,49,.5);
    box-shadow: 0 12px 40px rgba(0,0,0,.3), 0 0 24px -6px rgba(224,49,49,.25);
    transform: translateY(-5px) scale(1.02);
    color: var(--text);
}

.sc-card-top {
    height: 110px;
    background: linear-gradient(135deg, #080808 0%, #130808 50%, #0c0c0e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.sc-card-top::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 80% at 60% 40%, rgba(224,49,49,.18) 0%, transparent 70%);
}

/* Cover image variant */
.sc-card-top-img {
    height: auto;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.sc-card-top-img::after {
    background: linear-gradient(to bottom, rgba(0,0,0,.15) 0%, rgba(6,6,8,.55) 100%);
}

.sc-icon {
    font-size: 2rem;
    color: rgba(224,49,49,.5);
    z-index: 1;
}

.sc-badge {
    position: absolute;
    top: .75rem;
    right: .75rem;
    background: rgba(224,49,49,.15);
    border: 1px solid rgba(224,49,49,.3);
    color: #fca5a5;
    font-size: .68rem;
    font-weight: 700;
    padding: .2em .55em;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: .3em;
    z-index: 1;
}

.sc-card-body {
    padding: 1rem 1rem .5rem;
    flex: 1;
}

.sc-name {
    font-weight: 800;
    font-size: .95rem;
    color: #fff;
    letter-spacing: -.01em;
    line-height: 1.3;
}

.sc-price {
    font-size: .82rem;
}

/* ── Rental badge (shared: carousel + scripts grid + detail) ── */
.rental-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .72rem;
    font-weight: 600;
    color: #fbbf24;
    background: rgba(251,191,36,.08);
    border: 1px solid rgba(251,191,36,.2);
    border-radius: 6px;
    padding: .3rem .6rem;
}
.rental-badge i {
    font-size: .65rem;
}

.sc-card-footer {
    padding: .75rem 1rem;
    border-top: 1px solid var(--border);
    background: rgba(6,6,8,.4);
}

/* ── Carousel arrow buttons ── */
.carousel-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    font-size: .9rem;
}
.carousel-arrow:hover {
    background: var(--card-hover);
    border-color: var(--border-h);
    color: #fff;
}

/* ── Language switcher ─────────────────────────────────────── */
.lang-switch {
    background: rgba(255,255,255,.06);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    padding: .25rem .55rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
    line-height: 1;
}
.lang-switch:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
    border-color: rgba(255,255,255,.2);
}
.lang-switch.dropdown-toggle::after {
    margin-left: .35em;
    vertical-align: .12em;
    font-size: .6em;
}
.lang-opt {
    font-size: .82rem;
    color: var(--text-muted) !important;
    padding: .35rem .75rem;
}
.lang-opt:hover, .lang-opt:focus {
    background: rgba(255,255,255,.08) !important;
    color: #fff !important;
}
.lang-opt.active {
    background: rgba(224,49,49,.12) !important;
    color: var(--accent-h) !important;
}

/* ============================================================
   Shopping Cart
   ============================================================ */
.cart-icon-btn {
    background: rgba(255,255,255,.06);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: .95rem;
    padding: .3rem .5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
    line-height: 1;
}
.cart-icon-btn:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
    border-color: rgba(255,255,255,.2);
}
.cart-badge {
    position: absolute;
    top: -5px;
    right: -6px;
    background: var(--accent-h);
    color: #fff;
    font-size: .6rem;
    font-weight: 800;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.cart-item {
    transition: background .15s;
}
.cart-item:last-child {
    border-bottom: none !important;
}
.cart-remove-btn:hover {
    color: var(--accent-h) !important;
}
.cart-toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    color: #fff;
    padding: .6rem 1.2rem;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .3s, transform .3s;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.cart-toast .bi-cart-check { color: #25d366; }

/* WhatsApp tags */
.wpp-tag {
    font-size: .62rem;
    font-weight: 700;
    padding: .15em .5em;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .04em;
    line-height: 1.3;
}
.wpp-tag-owner {
    background: rgba(168,85,247,.15);
    color: #c084fc;
    border: 1px solid rgba(168,85,247,.3);
}
.wpp-tag-slow {
    background: rgba(251,191,36,.12);
    color: #fbbf24;
    border: 1px solid rgba(251,191,36,.25);
}
.wpp-tag-fast {
    background: rgba(34,197,94,.12);
    color: #4ade80;
    border: 1px solid rgba(34,197,94,.25);
}
.cart-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   Auth Modals
   ============================================================ */

.auth-mc {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    color: var(--text);
    box-shadow: 0 32px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(224,49,49,.08);
}
.auth-mc .modal-header {
    padding: 1.4rem 1.4rem .5rem;
}
.auth-mc .modal-body {
    padding: .75rem 1.4rem 1.5rem;
}
.modal-backdrop.show {
    opacity: 1;
    background: rgba(0,0,0,.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.auth-icon-wrap-sm {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: .6rem;
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent-h);
    flex-shrink: 0;
}
.auth-modal-error:empty { display: none; }
.auth-modal-error { margin-bottom: .75rem; }

/* nav link as button */
.nav-link-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: inherit;
    font: inherit;
}

/* collapse chevron (used in register modal + register page) */
.collapse-chevron { transition: transform .2s; }
[aria-expanded="true"] .collapse-chevron { transform: rotate(90deg); }

/* ── Markdown body (used in Scripts listing + Detail page) ── */
.md-body { color: #c8c8d8; font-size: .9rem; line-height: 1.7; }
.md-body p { margin: 0 0 .6rem; }
.md-body p:last-child { margin-bottom: 0; }
.md-body ul, .md-body ol { padding-left: 1.4em; margin: 0 0 .6rem; }
.md-body li { margin-bottom: .2rem; }
.md-body h1, .md-body h2, .md-body h3,
.md-body h4, .md-body h5, .md-body h6 { color: #fff; font-weight: 700; margin: .9rem 0 .4rem; line-height: 1.3; }
.md-body h1 { font-size: 1.15rem; }
.md-body h2 { font-size: 1.05rem; }
.md-body h3 { font-size: .95rem; }
.md-body code { font-family: 'JetBrains Mono', monospace; font-size: .82em; background: rgba(255,255,255,.07); border-radius: 4px; padding: .1em .35em; color: #f472b6; }
.md-body pre { background: rgba(255,255,255,.05); border: 1px solid var(--border); border-radius: 8px; padding: .75rem 1rem; overflow-x: auto; margin: 0 0 .75rem; }
.md-body pre code { background: none; padding: 0; color: #e0e0ec; font-size: .82rem; }
.md-body blockquote { border-left: 3px solid var(--accent); margin: 0 0 .6rem; padding: .3rem .75rem; color: var(--text-dim); font-style: italic; }
.md-body a { color: var(--accent-h); }
.md-body hr { border-color: var(--border); margin: .75rem 0; }
.md-body strong { color: #fff; }
.md-body table { width: 100%; border-collapse: collapse; margin: 0 0 .75rem; font-size: .85rem; }
.md-body th { color: #fff; font-weight: 700; text-align: left; padding: .45rem .6rem; border-bottom: 2px solid var(--border); }
.md-body td { padding: .4rem .6rem; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.md-body tr:last-child td { border-bottom: none; }
.md-body img { max-width: 100%; height: auto; border-radius: 8px; margin: .5rem 0; }
