/* =============================================================
   CSGOSKINS — shared design system
   Blue theme, pixel-perfect reproduction of the reference.
   ============================================================= */

:root {
    /* Backgrounds */
    --bg:              #4a6fa5;   /* page background (muted blue) */
    --bg-2:            #3f5f8f;
    --panel:          #2f4d78;   /* panels / rows */
    --panel-2:        #274064;
    --card:           #2c4a74;   /* case card */
    --card-top:       #35578a;
    --header-bg:      #1f3a5f;
    --header-top:     #16294a;
    --footer-bg:      #16294a;

    /* Accents */
    --accent:         #3d8bfd;   /* primary blue button */
    --accent-hover:   #2f7bea;
    --accent-2:       #1fb6ff;   /* cyan (logo dot) */
    --green:          #37c871;
    --gold:           #ffb43b;
    --red:            #e8543f;

    /* Text */
    --text:           #eaf1fb;
    --text-dim:       #a9c0e0;
    --text-mute:      #7f9bc4;
    --line:           rgba(255,255,255,.08);

    /* Metrics */
    --container:      1240px;
    --radius:         8px;
    --radius-lg:      12px;
    --gap:            14px;
    --shadow:         0 6px 18px rgba(0,0,0,.28);
    --shadow-sm:      0 2px 6px rgba(0,0,0,.2);

    --font: "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
}

.hidden { display: none !important; }

/* =============================================================
   HEADER
   ============================================================= */
.site-header {
    background: linear-gradient(180deg, var(--header-top), var(--header-bg));
    border-bottom: 1px solid rgba(0,0,0,.25);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    height: 60px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 2px;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: .5px;
    white-space: nowrap;
}
.logo .logo-img { height: 26px; width: auto; }
.logo .logo-text { color: #fff; }
.logo .logo-dot { color: var(--accent-2); }

/* Primary nav */
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}
.main-nav a {
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .4px;
    color: var(--text-dim);
    border-radius: 6px;
    transition: color .15s, background .15s;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.main-nav a.active { color: #fff; }
.main-nav a.active::after {
    content: "";
    display: block;
    height: 2px;
    background: var(--accent-2);
    border-radius: 2px;
    margin-top: 6px;
}

/* Search */
.header-search {
    flex: 0 1 260px;
    position: relative;
}
.header-search input {
    width: 100%;
    height: 36px;
    background: rgba(0,0,0,.25);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 6px;
    padding: 0 12px 0 34px;
    color: var(--text);
    font-size: 13px;
    outline: none;
    transition: border .15s;
}
.header-search input:focus { border-color: var(--accent); }
.header-search input::placeholder { color: var(--text-mute); }
.header-search .search-ico {
    position: absolute;
    left: 11px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-mute);
    width: 15px; height: 15px;
}

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-switch {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,.25);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
}
.lang-switch a {
    padding: 6px 9px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-mute);
    transition: background .15s, color .15s;
}
.lang-switch a.active { background: var(--accent); color: #fff; }
.lang-switch a:hover:not(.active) { color: #fff; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    padding: 0 18px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .3px;
    transition: transform .12s, background .15s, box-shadow .15s;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(61,139,253,.35); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: rgba(255,255,255,.08); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-green { background: var(--green); color: #063; }
.btn-green:hover { filter: brightness(1.06); }

.burger { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 6px; }
.burger:hover { background: rgba(255,255,255,.08); }
.burger span { display: block; width: 20px; height: 2px; background: #fff; position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: #fff; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }

/* =============================================================
   HERO BANNER (Road Trip)
   ============================================================= */
.hero {
    margin-top: 18px;
}
.hero-banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 230px;
    box-shadow: var(--shadow);
    background: #cbb79a;
    display: flex;
    align-items: center;
}
.hero-banner img.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 40px;
}
.hero-title {
    font-size: 54px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 1px;
    text-shadow: 3px 3px 0 rgba(120,70,30,.6), 0 6px 18px rgba(0,0,0,.35);
    line-height: .95;
    font-style: italic;
}
.hero-sub { color: #fff; margin: 8px 0 16px; font-weight: 600; text-shadow: 0 2px 6px rgba(0,0,0,.4); }
.hero .btn-primary { height: 44px; padding: 0 26px; font-size: 14px; }

/* Row of event cases just under hero */
.event-row {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--gap);
}

/* =============================================================
   HALF BANNERS (Sandstorm / Summer)
   ============================================================= */
.half-banners {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
}
.half-banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 120px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    transition: transform .15s;
}
.half-banner:hover { transform: translateY(-2px); }
.half-banner img.hb-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.half-banner .hb-text {
    position: relative;
    z-index: 2;
    height: 82px;
    margin-left: 22px;
    width: auto;
}

/* =============================================================
   SUMMER SALE FILTER BANNER
   ============================================================= */
.sale-bar {
    margin-top: 16px;
    background: linear-gradient(90deg, #2fa8e0, #6fd0f0);
    border-radius: var(--radius-lg);
    height: 74px;
    display: flex;
    align-items: center;
    padding: 0 26px;
    color: #063a52;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: relative;
}
.sale-bar .sale-title { font-size: 26px; font-weight: 900; font-style: italic; letter-spacing: 1px; color: #fff; text-shadow: 1px 2px 0 rgba(0,80,120,.4); }
.sale-bar .sale-sub { margin-left: 16px; font-weight: 600; color: #063a52; opacity: .9; }
.sale-bar .btn { margin-left: auto; }

/* Toolbar / filters */
.filters {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    background: var(--panel-2);
    border-radius: var(--radius);
    padding: 12px;
}
.filters select, .filters .filter-search {
    height: 38px;
    background: rgba(0,0,0,.25);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 6px;
    color: var(--text);
    padding: 0 12px;
    font-size: 13px;
    outline: none;
}
.filters .filter-search { flex: 1; min-width: 180px; }
.filters select:focus, .filters .filter-search:focus { border-color: var(--accent); }

/* =============================================================
   SECTION TITLES
   ============================================================= */
.section {
    margin-top: 30px;
}
.section-head {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    position: relative;
}
.section-head h2 {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
    text-transform: uppercase;
    text-align: center;
}
.section-head::before, .section-head::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,.12);
    margin: 0 18px;
}

/* =============================================================
   CASE GRID + CARDS
   ============================================================= */
.case-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--gap);
}
.case-card {
    background: linear-gradient(180deg, var(--card-top), var(--card));
    border-radius: var(--radius);
    padding: 14px 10px 12px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255,255,255,.05);
    box-shadow: var(--shadow-sm);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s;
    cursor: pointer;
    overflow: hidden;
}
.case-card:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 10px 24px rgba(0,0,0,.4);
    border-color: rgba(61,139,253,.5);
}
.case-card::before {
    content: "";
    position: absolute;
    left: 50%; top: 20%;
    width: 120px; height: 120px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(61,139,253,.25), transparent 70%);
    opacity: 0;
    transition: opacity .16s;
    pointer-events: none;
}
.case-card:hover::before { opacity: 1; }
.case-thumb {
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}
.case-thumb img {
    max-height: 96px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 10px rgba(0,0,0,.4));
    transition: transform .16s;
}
.case-card:hover .case-thumb img { transform: scale(1.06); }
.case-name {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative; z-index: 1;
}
.case-price {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0,0,0,.28);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    position: relative; z-index: 1;
    transition: background .16s;
}
.case-card:hover .case-price { background: var(--accent); }
.case-price.free { color: var(--green); }
.case-card:hover .case-price.free { color: #fff; background: var(--green); }

/* Tags */
.case-tag {
    position: absolute;
    top: 8px; left: 8px;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .5px;
    padding: 3px 7px;
    border-radius: 4px;
    color: #fff;
    z-index: 2;
    text-transform: uppercase;
}
.case-tag.hot   { background: var(--red); }
.case-tag.new   { background: var(--accent); }
.case-tag.sale  { background: var(--gold); color: #4a2c00; }
.case-tag.free  { background: var(--green); color: #063; }
.case-tag.event { background: #8a5cf6; }

/* =============================================================
   LIMITED OFFER SECTION (Route 66)
   ============================================================= */
.offer {
    margin-top: 36px;
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1.4fr 1fr;
}
.offer-media { position: relative; min-height: 300px; }
.offer-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.offer-body { padding: 34px 34px; display: flex; flex-direction: column; justify-content: center; }
.offer-badge {
    display: inline-block;
    align-self: flex-start;
    background: var(--gold);
    color: #4a2c00;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 4px;
    margin-bottom: 14px;
}
.offer-body h3 { font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 12px; line-height: 1.2; }
.offer-body p { color: var(--text-dim); font-size: 14px; margin-bottom: 18px; max-width: 420px; }
.offer-features { display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
.offer-features li { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 14px; }
.offer-features li::before { content: "✓"; color: var(--green); font-weight: 900; }
.offer-body .btn-primary { align-self: flex-start; height: 46px; padding: 0 30px; font-size: 14px; }

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer {
    margin-top: 48px;
    background: var(--footer-bg);
    padding: 40px 0 26px;
    border-top: 1px solid rgba(255,255,255,.06);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 30px;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { color: var(--text-mute); font-size: 13px; max-width: 320px; }
.footer-socials { display: flex; gap: 10px; margin-top: 16px; }
.footer-socials a {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.06);
    border-radius: 8px;
    color: var(--text-dim);
    transition: background .15s, color .15s;
}
.footer-socials a:hover { background: var(--accent); color: #fff; }
.footer-socials svg { width: 16px; height: 16px; }
.footer-col h4 { font-size: 12px; letter-spacing: 1px; color: #fff; margin-bottom: 14px; text-transform: uppercase; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { color: var(--text-mute); font-size: 13px; transition: color .15s; }
.footer-col ul li a:hover { color: #fff; }
.payment-methods { display: flex; gap: 8px; margin-top: 10px; }
.payment-methods span {
    background: rgba(255,255,255,.9);
    color: #16294a;
    font-size: 10px; font-weight: 800;
    padding: 4px 8px; border-radius: 4px;
}
.footer-bottom {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--text-mute);
    font-size: 12px;
}

/* =============================================================
   LOGIN MODAL (ggdrop)
   ============================================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6,14,28,.72);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s;
    padding: 20px;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
    background: #0f1e33;
    border-radius: 14px;
    width: 100%;
    max-width: 660px;
    padding: 48px 40px 44px;
    position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,.6);
    transform: translateY(14px) scale(.98);
    transition: transform .22s;
    text-align: center;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-close {
    position: absolute;
    top: 16px; right: 18px;
    width: 30px; height: 30px;
    color: #8aa0c0;
    font-size: 22px;
    line-height: 1;
    border-radius: 6px;
    transition: color .15s, background .15s;
}
.modal-close:hover { color: #fff; background: rgba(255,255,255,.08); }
.modal-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 42px;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 34px;
}
.modal-logo .c-white { color: #fff; }
.modal-logo .c-dot { color: var(--accent-2); }
.modal-checks { text-align: left; max-width: 400px; margin: 0 auto 28px; display: flex; flex-direction: column; gap: 16px; }
.modal-check { display: flex; align-items: flex-start; gap: 12px; color: #cdd9ec; font-size: 15px; }
.modal-check input {
    width: 22px; height: 22px;
    accent-color: var(--accent);
    flex: 0 0 auto;
    margin-top: 1px;
    cursor: pointer;
}
.modal-check a { color: var(--accent); }
.modal-check a:hover { text-decoration: underline; }
.modal-login-btn {
    width: 100%;
    max-width: 400px;
    height: 56px;
    background: var(--accent);
    color: #fff;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background .15s, transform .12s;
}
.modal-login-btn:hover { background: var(--accent-hover); }
.modal-login-btn:active { transform: translateY(1px); }
.modal-login-btn svg { width: 20px; height: 20px; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1080px) {
    .case-grid { grid-template-columns: repeat(5, 1fr); }
    .main-nav a { padding: 8px 9px; }
}
@media (max-width: 900px) {
    .case-grid { grid-template-columns: repeat(4, 1fr); }
    .event-row { grid-template-columns: repeat(3, 1fr); }
    .offer { grid-template-columns: 1fr; }
    .offer-media { min-height: 200px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .header-search { display: none; }
    .main-nav { display: none; }
    .burger { display: flex; }
    .main-nav.open {
        display: flex;
        position: absolute;
        top: 60px; left: 0; right: 0;
        flex-direction: column;
        background: var(--header-bg);
        padding: 10px;
        gap: 2px;
        border-bottom: 1px solid rgba(0,0,0,.3);
    }
    .main-nav.open a { width: 100%; }
}
@media (max-width: 640px) {
    .case-grid { grid-template-columns: repeat(3, 1fr); }
    .half-banners { grid-template-columns: 1fr; }
    .hero-banner { height: 170px; }
    .hero-title { font-size: 36px; }
    .hero-content { padding: 0 20px; }
    .footer-grid { grid-template-columns: 1fr; }
    .sale-bar { flex-wrap: wrap; height: auto; padding: 14px; gap: 8px; }
    .sale-bar .btn { margin-left: 0; }
    .modal { padding: 36px 22px 30px; }
    .modal-logo { font-size: 30px; }
}
@media (max-width: 440px) {
    .case-grid { grid-template-columns: repeat(2, 1fr); }
    .event-row { grid-template-columns: repeat(2, 1fr); }
}

/* Disabled login button (grey until both checkboxes checked) */
.modal-login-btn.is-disabled,
.modal-login-btn:disabled {
    background: #33445f;
    color: #7f93b3;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}
.modal-login-btn.is-disabled:hover,
.modal-login-btn:disabled:hover { background: #33445f; }

/* =============================================================
   SHARED: stats bar + reference footer nav
   ============================================================= */
.stats-bar {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.stat-tile {
    background: var(--panel-2);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: var(--radius);
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.stat-tile .stat-ico {
    width: 26px; height: 26px; flex: 0 0 auto;
    color: var(--text-mute);
}
.stat-tile .stat-num { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: .5px; }
.stat-tile .stat-label { font-size: 12px; color: var(--text-mute); }

.footer-lang {
    margin-top: 16px;
    position: relative;
    max-width: 240px;
}
.footer-lang select {
    width: 100%;
    height: 44px;
    background: var(--panel-2);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    color: var(--text);
    padding: 0 14px;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    appearance: none;
}
.footer-lang::after {
    content: "▾"; position: absolute; right: 14px; top: 50%;
    transform: translateY(-50%); color: var(--text-mute); pointer-events: none;
}

/* =============================================================
   UPGRADER
   ============================================================= */
.up-stage {
    margin-top: 26px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
}
.up-panel {
    background: rgba(20,36,60,.55);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 16px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    position: relative;
}
.up-panel .cross {
    width: 120px; height: 90px;
    opacity: .12;
    margin-bottom: 14px;
    color: #fff;
}
.up-panel h3 { font-size: 17px; font-weight: 800; color: #fff; }
.up-panel p { font-size: 13px; color: var(--text-mute); margin-top: 4px; }
.up-panel .panel-val {
    position: absolute; bottom: -34px; left: 0; right: 0;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 800; color: #fff; font-size: 15px;
}
.up-panel .panel-val .badge {
    background: var(--accent); color: #fff; font-size: 12px;
    padding: 2px 8px; border-radius: 6px;
}
.up-wheel {
    width: 260px; height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 45%, #1c3358, #12233d 70%);
    border: 3px solid rgba(61,139,253,.25);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    position: relative;
    box-shadow: inset 0 0 40px rgba(0,0,0,.5), 0 0 40px rgba(61,139,253,.15);
}
.up-wheel::before {
    content: ""; position: absolute; inset: 18px; border-radius: 50%;
    border: 2px dashed rgba(255,255,255,.08);
}
.up-wheel .pct { font-size: 44px; font-weight: 900; color: #fff; }
.up-wheel .pct-label { font-size: 13px; color: var(--text-mute); margin-top: 2px; }
.up-wheel .pointer {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    width: 0; height: 0; border-left: 10px solid transparent;
    border-right: 10px solid transparent; border-top: 14px solid var(--accent-2);
}
.up-mult {
    margin-top: 54px;
    display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.up-mult button {
    width: 54px; height: 44px;
    border-radius: 10px;
    background: rgba(20,36,60,.7);
    border: 1px solid rgba(255,255,255,.08);
    color: var(--text-dim);
    font-weight: 800; font-size: 14px;
    transition: all .15s;
}
.up-mult button.active,
.up-mult button:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.up-action { margin-top: 22px; text-align: center; }
.up-action .btn-primary { height: 46px; padding: 0 40px; }

.dual-grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.inv-panel {
    background: var(--panel-2);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 14px;
    padding: 22px;
    min-height: 480px;
    display: flex; flex-direction: column;
}
.inv-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.inv-head h3 { font-size: 18px; font-weight: 800; color: #fff; }
.inv-head .sort-btn {
    background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px; padding: 8px 14px; font-size: 13px; color: var(--text-dim);
    display: inline-flex; gap: 8px; align-items: center;
}
.inv-search { position: relative; margin-bottom: 16px; }
.inv-search input {
    width: 100%; height: 44px; background: rgba(0,0,0,.25);
    border: 1px solid rgba(255,255,255,.08); border-radius: 8px;
    padding: 0 40px 0 14px; color: var(--text); font-size: 14px; outline: none;
}
.inv-search input:focus { border-color: var(--accent); }
.inv-search .s-ico { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-mute); }
.inv-empty {
    flex: 1; display: flex; align-items: center; justify-content: center;
    color: var(--text-mute); font-size: 14px; text-align: center;
}
.inv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pager { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--text-mute); font-size: 13px; }
.pager button { width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,.05); color: var(--text-dim); }
.pager button:hover { background: var(--accent); color: #fff; }

/* skin item card (upgrader / exchanger) */
.skin-card {
    background: linear-gradient(180deg, #223a5c, #1a2e49);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: transform .15s, border-color .15s;
    overflow: hidden;
}
.skin-card:hover { transform: translateY(-3px); border-color: rgba(61,139,253,.5); }
.skin-card .wear {
    position: absolute; top: 8px; left: 8px; font-size: 9px; font-weight: 800;
    color: var(--text-mute); letter-spacing: .5px;
}
.skin-card .rar-line { position: absolute; bottom: 42px; left: 10px; right: 10px; height: 2px; border-radius: 2px; }
.skin-card .skin-thumb { height: 70px; display: flex; align-items: center; justify-content: center; margin: 8px 0; }
.skin-card .skin-thumb img { max-height: 70px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.4)); }
.skin-card .skin-name { font-size: 12px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skin-card .skin-sub { font-size: 11px; color: var(--text-mute); margin-bottom: 6px; }
.skin-card .skin-price { font-size: 13px; font-weight: 800; color: #fff; background: rgba(0,0,0,.3); border-radius: 6px; padding: 5px 0; }
.rar-blue   { background:#4b69ff; } .rar-purple { background:#8847ff; }
.rar-pink   { background:#d32ee6; } .rar-red    { background:#eb4b4b; }
.rar-gold   { background:#e4ae39; } .rar-white  { background:#b0c3d9; }

/* =============================================================
   BATTLES
   ============================================================= */
.bt-tabs { margin-top: 26px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bt-tab {
    display: inline-flex; align-items: center; gap: 8px;
    height: 44px; padding: 0 18px; border-radius: 10px;
    background: var(--panel-2); border: 1px solid rgba(255,255,255,.06);
    color: var(--text-dim); font-weight: 700; font-size: 14px; transition: all .15s;
}
.bt-tab.active, .bt-tab:hover { background: rgba(61,139,253,.15); color: #fff; }
.bt-tabs .btn-new { margin-left: auto; }
.bt-filters {
    margin-top: 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
    background: var(--panel-2); border-radius: 12px; padding: 12px;
}
.bt-chip {
    display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px;
    border-radius: 8px; background: rgba(0,0,0,.22); color: var(--text-dim);
    font-size: 13px; font-weight: 700; border: 1px solid rgba(255,255,255,.06);
}
.bt-chip.active, .bt-chip:hover { color: #fff; background: rgba(61,139,253,.18); }
.bt-filters .spacer { flex: 1; }
.bt-filters input, .bt-filters select {
    height: 36px; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.06);
    border-radius: 8px; color: var(--text); padding: 0 12px; font-size: 13px; outline: none;
}
.bt-filters input { width: 110px; }

.bt-list { margin-top: 16px; display: flex; flex-direction: column; }
.bt-row {
    display: grid;
    grid-template-columns: 56px 1fr auto auto auto auto;
    align-items: center; gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,.05);
    transition: background .15s;
}
.bt-row:hover { background: rgba(255,255,255,.02); }
.bt-rounds {
    width: 46px; height: 46px; border-radius: 12px;
    background: rgba(61,139,253,.1); border: 1px solid rgba(61,139,253,.3);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: #fff; font-size: 16px;
}
.bt-cases { display: flex; gap: 6px; align-items: center; }
.bt-cases .bt-case { position: relative; width: 46px; height: 46px; }
.bt-cases .bt-case img { width: 46px; height: 46px; object-fit: contain; }
.bt-cases .bt-case .qty {
    position: absolute; bottom: -4px; right: -4px; font-size: 10px; font-weight: 800;
    background: #12233d; border: 1px solid rgba(255,255,255,.1); border-radius: 6px; padding: 1px 4px; color: var(--text-dim);
}
.bt-price { font-weight: 800; color: var(--green); background: rgba(55,200,113,.12); border-radius: 8px; padding: 8px 14px; font-size: 14px; }
.bt-players { display: flex; align-items: center; gap: 4px; }
.bt-players .ava { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg,#3d5f8f,#25406a); border: 2px solid #12233d; }
.bt-players .add { width: 30px; height: 30px; border-radius: 50%; background: rgba(61,139,253,.15); color: var(--accent-2); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.bt-mode svg, .bt-mode .m-ico { width: 22px; height: 22px; color: var(--text-mute); }
.bt-join { display: flex; align-items: center; gap: 8px; }
.bt-join .btn { height: 38px; }
.bt-eye { width: 38px; height: 38px; border-radius: 8px; background: rgba(255,255,255,.05); display: flex; align-items: center; justify-content: center; color: var(--text-dim); }
.bt-eye:hover { background: var(--accent); color: #fff; }

/* =============================================================
   EXCHANGER
   ============================================================= */
.ex-stage {
    margin-top: 26px;
    display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center;
}
.ex-mid { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ex-mid .ex-label { font-size: 13px; color: var(--text-mute); text-align: center; }
.ex-mid .ex-total { font-size: 34px; font-weight: 900; color: var(--accent-2); }
.ex-layout {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 240px 1fr;
    gap: 20px;
    align-items: start;
}
.ex-filters {
    background: var(--panel-2);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 14px;
    padding: 18px;
    position: sticky; top: 76px;
}
.ex-filters .fgroup { border-bottom: 1px solid rgba(255,255,255,.06); padding: 14px 0; }
.ex-filters .fgroup:first-child { padding-top: 0; }
.ex-filters .fgroup:last-child { border-bottom: none; padding-bottom: 0; }
.ex-filters .fg-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.ex-range { display: flex; gap: 8px; }
.ex-range input { flex: 1; height: 40px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.08); border-radius: 8px; color: var(--text); padding: 0 12px; font-size: 13px; outline: none; }
.ex-check { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; color: var(--text-dim); cursor: pointer; }
.ex-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.ex-check .rar-dot { width: 4px; height: 14px; border-radius: 2px; }
.ex-check:hover { color: #fff; }

@media (max-width: 1024px) {
    .ex-layout { grid-template-columns: 1fr; }
    .ex-filters { position: static; order: 3; }
}

/* =============================================================
   SKINS PAGE EXTRAS
   ============================================================= */
.skins-hero {
    margin-top: 18px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    min-height: 190px;
    display: flex; align-items: center;
    background: linear-gradient(120deg, #1d3358, #294a78 60%, #2f6fb8);
    padding: 0 40px;
    box-shadow: var(--shadow);
}
.skins-hero::after {
    content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 45%;
    background: url('assets/img/background3.webp') center/cover no-repeat;
    opacity: .35; mask-image: linear-gradient(90deg, transparent, #000 60%);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.skins-hero .sh-content { position: relative; z-index: 2; }
.skins-hero h1 { font-size: 34px; font-weight: 900; color: #fff; letter-spacing: 1px; text-shadow: 0 4px 16px rgba(0,0,0,.4); }
.skins-hero p { color: var(--text-dim); margin: 8px 0 16px; font-size: 15px; }
.skins-stats {
    margin-top: 16px; display: grid; grid-template-columns: repeat(3,1fr); gap: 14px;
}
.skins-stat { background: var(--panel-2); border: 1px solid rgba(255,255,255,.05); border-radius: var(--radius); padding: 16px 20px; }
.skins-stat .n { font-size: 22px; font-weight: 900; color: #fff; }
.skins-stat .l { font-size: 12px; color: var(--text-mute); }

@media (max-width: 900px) {
    .up-stage, .ex-stage { grid-template-columns: 1fr; }
    .up-wheel { margin: 0 auto; }
    .dual-grid { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: 1fr 1fr; }
    .bt-row { grid-template-columns: 44px 1fr auto; grid-row-gap: 10px; }
    .bt-players, .bt-mode { display: none; }
    .skins-stats { grid-template-columns: 1fr; }
    .inv-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 560px) {
    .stats-bar { grid-template-columns: 1fr; }
    .inv-grid { grid-template-columns: repeat(2,1fr); }
    .up-wheel { width: 200px; height: 200px; }
    .up-wheel .pct { font-size: 34px; }
    .skins-hero { min-height: 150px; padding: 0 20px; }
    .skins-hero h1 { font-size: 24px; }
}

/* =============================================================
   RESPONSIVE — refined mobile pass (overrides earlier rules)
   ============================================================= */

/* Give the header room; let the burger toggle the nav on tablet/mobile */
@media (max-width: 1024px) {
    .header-inner { gap: 12px; }
    .main-nav a { padding: 8px 8px; font-size: 12px; }
    .header-search { flex-basis: 180px; }
}

@media (max-width: 960px) {
    .header-inner { height: 58px; }
    .header-search { display: none; }
    .main-nav { display: none; }
    .burger { display: flex; }

    /* Right-aligned action cluster: lang switch, login, burger (in that order) */
    .header-actions {
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 8px;
        order: 3;
    }
    .header-actions .lang-switch { order: 1; }
    .header-actions .btn-primary { order: 2; }
    .header-actions .burger { order: 3; }

    /* Burger opens the nav as a full-width dropdown under the header */
    .main-nav.open {
        display: flex;
        position: absolute;
        top: 58px; left: 0; right: 0;
        flex-direction: column;
        background: var(--header-bg);
        padding: 8px;
        gap: 2px;
        border-bottom: 1px solid rgba(0,0,0,.3);
        box-shadow: 0 10px 24px rgba(0,0,0,.4);
        z-index: 120;
    }
    .main-nav.open a { width: 100%; padding: 12px 14px; font-size: 14px; }
    .main-nav.open a.active::after { display: none; }

    /* shrink the on-bar controls so everything fits on the right */
    .btn { height: 36px; padding: 0 12px; font-size: 12px; }
    .lang-switch a { padding: 6px 7px; }
}

/* Phones: DEPOSIT is secondary — hide it, keep LOGIN + lang + burger */
@media (max-width: 560px) {
    .site-header .header-actions .btn-green { display: none; }
    .header-inner { gap: 8px; }
    .logo { font-size: 17px; }
    .logo .logo-img { height: 22px; }
    .container { padding: 0 12px; }

    .hero { margin-top: 12px; }
    .hero-banner { height: 150px; border-radius: 10px; }
    .hero-title { font-size: 30px; }
    .hero-sub { font-size: 13px; margin: 4px 0 10px; }

    .section { margin-top: 22px; }
    .section-head h2 { font-size: 13px; letter-spacing: 1px; }
    .section-head::before, .section-head::after { margin: 0 10px; }

    .filters { flex-direction: column; align-items: stretch; }
    .filters select, .filters .filter-search { width: 100%; }

    .offer-body { padding: 24px 20px; }
    .offer-body h3 { font-size: 21px; }

    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Very small phones */
@media (max-width: 420px) {
    .case-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .event-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .hero-title { font-size: 25px; }
    .case-name { font-size: 11.5px; }
    .modal { padding: 30px 18px 26px; }
    .modal-logo { font-size: 26px; }
    .modal-login-btn { height: 50px; font-size: 15px; }
}

/* Battles rows collapse gracefully on small screens */
@media (max-width: 700px) {
    .bt-tabs .bt-tab span { display: none; }
    .bt-tabs .btn-new span { display: inline; }
    .bt-filters { gap: 8px; }
    .bt-filters input { width: 84px; }
    .bt-row {
        grid-template-columns: 42px 1fr auto;
        gap: 10px;
    }
    .bt-players, .bt-mode { display: none; }
    .bt-join .bt-eye { display: none; }
}

/* Upgrader / Exchanger stage stacks; wheel centered */
@media (max-width: 860px) {
    .up-stage, .ex-stage { grid-template-columns: 1fr; gap: 40px; }
    .up-wheel { margin: 10px auto 0; }
    .up-panel .panel-val { position: static; margin-top: 14px; }
    .dual-grid { grid-template-columns: 1fr; }
    .ex-layout { grid-template-columns: 1fr; }
    .ex-filters { position: static; }
    .skins-hero { min-height: 150px; padding: 0 20px; }
    .skins-hero h1 { font-size: 24px; }
    .inv-grid { grid-template-columns: repeat(3,1fr) !important; }
}
@media (max-width: 520px) {
    .inv-grid { grid-template-columns: repeat(2,1fr) !important; }
    .stats-bar { grid-template-columns: 1fr; }
    .skins-stats { grid-template-columns: 1fr; }
    .up-mult button { width: 48px; height: 40px; font-size: 13px; }
}

/* =============================================================
   SEO CONTENT — long-form text sections
   ============================================================= */
.seo-content {
    margin-top: 40px;
    padding: 34px 0 10px;
    border-top: 1px solid rgba(255,255,255,.06);
}
.seo-content .seo-inner {
    max-width: 900px;
    margin: 0 auto;
}
.seo-content h1 {
    font-size: 30px;
    font-weight: 900;
    color: #fff;
    letter-spacing: .3px;
    line-height: 1.2;
    margin-bottom: 22px;
    text-align: center;
}
.seo-content h2 {
    font-size: 19px;
    font-weight: 800;
    color: #fff;
    margin: 28px 0 10px;
    position: relative;
    padding-left: 14px;
}
.seo-content h2::before {
    content: "";
    position: absolute;
    left: 0; top: 4px; bottom: 4px;
    width: 4px; border-radius: 2px;
    background: var(--accent-2);
}
.seo-content p {
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--text-dim);
    margin-bottom: 6px;
}
@media (max-width: 560px) {
    .seo-content { margin-top: 28px; padding-top: 24px; }
    .seo-content h1 { font-size: 23px; }
    .seo-content h2 { font-size: 17px; }
    .seo-content p { font-size: 14px; line-height: 1.7; }
}
