/* ============================================================
   GameVault – Main Stylesheet
   Design: Dark cinematic editorial | Electric crimson accent
   Fonts: Bebas Neue (display) + Outfit (body)
   ============================================================ */

:root {
    --bg:           #080810;
    --bg-2:         #10101e;
    --bg-card:      #13132a;
    --bg-card-hover:#1c1c38;
    --border:       rgba(255,255,255,0.07);
    --accent:       #e63946;
    --accent-2:     #ff6b6b;
    --accent-glow:  rgba(230,57,70,0.35);
    --text:         #e8e8f0;
    --text-muted:   #7a7a9a;
    --text-dim:     #4a4a6a;
    --white:        #ffffff;
    --rating-high:  #2cb67d;
    --rating-mid:   #f9a826;
    --rating-low:   #e63946;
    --nav-h:        70px;
    --radius:       10px;
    --radius-lg:    18px;
    --shadow:       0 8px 32px rgba(0,0,0,0.5);
    --shadow-card:  0 4px 20px rgba(0,0,0,0.4);
    --transition:   all 0.25s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.display { font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.04em; }

h1,h2,h3,h4,h5,h6 { line-height: 1.2; }

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 0.06em;
    color: var(--white);
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    display: block;
    height: 3px;
    width: 60px;
    background: var(--accent);
    margin-top: 8px;
    border-radius: 2px;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
}
.section-header a {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: var(--transition);
}
.section-header a:hover { color: var(--accent-2); }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 3rem);
}

.site-main { padding-top: var(--nav-h); }

.section { padding: 4rem 0; }
.section--tight { padding: 2rem 0; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--nav-h);
    background: rgba(8, 8, 16, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.site-header.scrolled {
    background: rgba(8, 8, 16, 0.98);
    box-shadow: 0 4px 24px rgba(0,0,0,0.6);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 3rem);
    height: 100%;
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.logo-icon {
    font-size: 1.6rem;
    color: var(--accent);
    line-height: 1;
}
.logo-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.7rem;
    letter-spacing: 0.08em;
    color: var(--white);
}
.logo:hover .logo-icon { filter: drop-shadow(0 0 8px var(--accent)); }

/* Nav */
.main-nav { flex: 1; }
.nav-list { display: flex; align-items: center; gap: 0.25rem; }

.nav-item { position: relative; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius);
    transition: var(--transition);
    white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
    color: var(--white);
    background: rgba(255,255,255,0.06);
}
.nav-link.active { color: var(--accent); }

.chevron { font-size: 0.7rem; transition: transform 0.2s; }
.has-dropdown:hover .chevron { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    box-shadow: var(--shadow);
    z-index: 100;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
}
.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: var(--transition);
}
.dropdown-item:hover {
    color: var(--white);
    background: rgba(255,255,255,0.07);
}
.di-icon { font-size: 1rem; }

/* Header right */
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* Header search */
.header-search {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 50px;
    overflow: hidden;
    transition: var(--transition);
}
.header-search:focus-within {
    border-color: var(--accent);
    background: rgba(230,57,70,0.07);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.hs-input {
    background: none;
    border: none;
    outline: none;
    padding: 0.45rem 1rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    color: var(--text);
    width: 180px;
}
.hs-input::placeholder { color: var(--text-dim); }
.hs-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 0.45rem 0.8rem;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}
.hs-btn:hover { color: var(--accent); }

/* Mobile toggle */
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.4rem 0.7rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg);
}
.hero__bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(230,57,70,0.12) 0%, transparent 60%),
                radial-gradient(ellipse at 20% 80%, rgba(99,102,241,0.08) 0%, transparent 50%);
}
.hero__grid-lines {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--border) 1px, transparent 1px),
                      linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.5;
}
.hero__content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 4rem clamp(1.5rem,4vw,3rem);
    animation: fadeUp 0.8s ease both;
}
.hero__eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.hero__eyebrow::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 2px;
    background: var(--accent);
}
.hero__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3.5rem, 9vw, 7rem);
    letter-spacing: 0.03em;
    color: var(--white);
    line-height: 0.95;
    margin-bottom: 1.5rem;
}
.hero__title span { color: var(--accent); }
.hero__desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}
.btn--primary {
    background: var(--accent);
    color: var(--white);
}
.btn--primary:hover {
    background: var(--accent-2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}
.btn--outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn--outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}
.btn--sm { padding: 0.5rem 1.2rem; font-size: 0.8rem; }

/* Floating game covers in hero */
.hero__covers {
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 50%;
    pointer-events: none;
    display: none;
}
@media (min-width: 900px) { .hero__covers { display: block; } }

/* ============================================================
   PLATFORM PILLS
   ============================================================ */
.platform-strip {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 2rem 0;
    scrollbar-width: none;
}
.platform-strip::-webkit-scrollbar { display: none; }

.platform-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    flex-shrink: 0;
}
.platform-pill:hover {
    border-color: var(--accent);
    color: var(--white);
    background: rgba(230,57,70,0.1);
    transform: translateY(-2px);
}
.platform-pill .icon { font-size: 1.1rem; }

/* ============================================================
   GAME CARDS
   ============================================================ */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}
.games-grid--large {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.game-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}
.game-card:hover {
    transform: translateY(-6px);
    border-color: rgba(230,57,70,0.4);
    box-shadow: 0 16px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(230,57,70,0.2);
    background: var(--bg-card-hover);
}
.game-card__img-wrap {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--bg-2);
}
.game-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.game-card:hover .game-card__img { transform: scale(1.05); }

.game-card__rating {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
}
.rating--high { background: var(--rating-high); color: #fff; }
.rating--mid  { background: var(--rating-mid); color: #111; }
.rating--low  { background: var(--rating-low); color: #fff; }

.game-card__info {
    padding: 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.game-card__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.game-card__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
}

/* game-card is now a <div>; game-card__link covers the image + info */
.game-card__link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}
.game-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem 0.6rem;
    border-top: 1px solid var(--border);
}
.game-card__price {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent);
}
.game-card__price--free { color: #2cb67d; }
.game-card__actions form { margin: 0; }
.btn--xs { padding: 0.3rem 0.7rem; font-size: 0.75rem; }

.tag {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 2px 8px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    color: var(--text-muted);
}
.year {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-left: auto;
}

/* ============================================================
   FEATURED ROW (large horizontal cards)
   ============================================================ */
.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1.5rem;
}
@media (max-width: 900px) {
    .featured-grid { grid-template-columns: 1fr 1fr; }
    .featured-grid .game-card:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) { .featured-grid { grid-template-columns: 1fr; } }

.game-card--hero {
    flex-direction: row;
    min-height: 280px;
}
.game-card--hero .game-card__img-wrap {
    width: 200px;
    flex-shrink: 0;
    aspect-ratio: unset;
    min-height: 280px;
}
.game-card--hero .game-card__info { padding: 1.5rem; justify-content: center; }
.game-card--hero .game-card__title { font-size: 1.3rem; }

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.search-hero {
    background: var(--bg-2);
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
}
.search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    max-width: 680px;
    margin: 1.5rem 0 0;
    transition: var(--transition);
}
.search-bar:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}
.search-bar input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    padding: 1rem 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: var(--text);
}
.search-bar input::placeholder { color: var(--text-dim); }
.search-bar button {
    background: var(--accent);
    border: none;
    color: #fff;
    padding: 0 1.5rem;
    height: 54px;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.search-bar button:hover { background: var(--accent-2); }

.filter-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}
.filter-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.filter-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.chip {
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border);
    color: var(--text-muted);
    background: var(--bg-card);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}
.chip:hover, .chip.active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(230,57,70,0.1);
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb-bar {
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 0.65rem 0;
}
.breadcrumb {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.breadcrumb li + li::before {
    content: '/';
    margin-right: 0.25rem;
    color: var(--text-dim);
}
.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li[aria-current="page"] {
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 40ch;
}

/* ============================================================
   GAME DETAIL PAGE
   ============================================================ */
.game-detail-hero {
    position: relative;
    background: var(--bg-2);
    padding: 3rem 0;
    overflow: hidden;
}
.gd-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(30px) brightness(0.2) saturate(0.8);
    transform: scale(1.1);
}
.gd-inner {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}
.gd-cover {
    flex-shrink: 0;
    width: 220px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.1);
}
.gd-cover img { width: 100%; display: block; }

.gd-info { flex: 1; min-width: 0; }
.gd-platforms {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.gd-platform-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
    color: var(--text-muted);
    letter-spacing: 0.05em;
}
.gd-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: 0.04em;
    color: var(--white);
    line-height: 0.95;
    margin-bottom: 1.5rem;
}
.gd-rating-block {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.gd-score {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 0.05em;
    line-height: 1;
}
.gd-score.rating--high { color: var(--rating-high); }
.gd-score.rating--mid  { color: var(--rating-mid); }
.gd-score.rating--low  { color: var(--rating-low); }

.stars { display: flex; gap: 2px; }
.star { color: var(--text-dim); font-size: 1.1rem; }
.star.filled { color: #f9a826; }

.gd-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.gd-meta-item label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.25rem;
}
.gd-meta-item span {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
}

.gd-summary { color: var(--text-muted); line-height: 1.8; max-width: 700px; }

/* Pricing widget */
.gd-price-widget {
    display: inline-flex;
    flex-direction: column;
    gap: 0.5rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    min-width: 220px;
}
.gd-price-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.gd-price-source-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-dim);
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.15rem 0.5rem;
}
.gd-price-discount-badge {
    font-size: 0.78rem;
    font-weight: 700;
    color: #2cb67d;
    background: rgba(44,182,125,0.12);
    border: 1px solid rgba(44,182,125,0.25);
    border-radius: 4px;
    padding: 0.15rem 0.5rem;
}
.gd-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}
.gd-price-original {
    font-size: 0.95rem;
    color: var(--text-dim);
    text-decoration: line-through;
}
.gd-price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}
.gd-price--free { color: #2cb67d; }
.gd-price-historical {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Screenshots */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.screenshot {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--bg-2);
    cursor: pointer;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.screenshot:hover { border-color: var(--accent); transform: scale(1.02); }
.screenshot img { width: 100%; height: 100%; object-fit: cover; }

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: var(--radius); }
.lightbox-close {
    position: absolute;
    top: 1rem; right: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 50%;
    width: 44px; height: 44px;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.lightbox-close:hover { background: var(--accent); border-color: var(--accent); }

/* ============================================================
   PLATFORM PAGE
   ============================================================ */
.platform-hero {
    background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
    padding: 3rem 0;
}
.platform-hero__inner { display: flex; align-items: center; gap: 2rem; }
.platform-logo {
    width: 80px; height: 80px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 2.5rem;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 3rem 0;
}
.page-btn {
    min-width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-card);
    transition: var(--transition);
    text-decoration: none;
    padding: 0 0.75rem;
}
.page-btn:hover, .page-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ============================================================
   EMPTY STATE / LOADING
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-muted);
}
.empty-state .icon { font-size: 4rem; margin-bottom: 1rem; opacity: 0.5; }
.empty-state h3 { font-size: 1.5rem; color: var(--text); margin-bottom: 0.5rem; }

.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}
.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem clamp(1rem,4vw,3rem) 3rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; } }

.footer-tagline { color: var(--text-dim); font-size: 0.875rem; margin-top: 1rem; max-width: 220px; }

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
@media (max-width: 600px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

.footer-heading {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.1em;
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a {
    font-size: 0.85rem;
    color: var(--text-dim);
    transition: var(--transition);
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.5rem clamp(1rem,4vw,3rem);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-dim);
    max-width: 1400px;
    margin: 0 auto;
}
.footer-bottom a { color: var(--accent); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   AUTH FORMS
   ============================================================ */
.auth-page {
    min-height: calc(100vh - var(--nav-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    background: radial-gradient(ellipse at 50% 0%, rgba(230,57,70,0.07) 0%, transparent 60%);
}

.auth-card {
    width: 100%;
    max-width: 520px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.auth-card__header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo-icon {
    font-size: 2.2rem;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.auth-card__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    letter-spacing: 0.06em;
    color: var(--white);
    margin-bottom: 0.35rem;
}

.auth-card__subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-alert {
    background: rgba(230,57,70,0.1);
    border: 1px solid rgba(230,57,70,0.3);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    color: var(--accent-2);
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.45rem;
    letter-spacing: 0.01em;
}

.form-group .required {
    color: var(--accent);
    margin-left: 2px;
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
    -webkit-appearance: none;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(230,57,70,0.15);
}

.form-input.is-invalid {
    border-color: var(--accent);
}

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

/* Password show/hide wrapper */
.password-wrap {
    position: relative;
}

.password-wrap .form-input {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.password-toggle:hover { opacity: 1; }

.field-error {
    display: block;
    color: var(--accent-2);
    font-size: 0.8rem;
    margin-top: 0.35rem;
}

.password-hint {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-top: 0.4rem;
    line-height: 1.5;
}

.auth-submit {
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
    margin-top: 0.25rem;
    justify-content: center;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--accent);
    font-weight: 600;
}

.auth-footer a:hover { color: var(--accent-2); }

@media (max-width: 480px) {
    .form-row { grid-template-columns: 1fr; }
    .auth-card { padding: 1.75rem 1.25rem; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .main-nav { display: none; }
    .nav-toggle { display: flex; }
    .header-search .hs-input { width: 140px; }
}

@media (max-width: 520px) {
    .header-search { display: none; }
    .header-inner { gap: 0.75rem; }
}

@media (max-width: 600px) {
    .games-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .gd-inner { flex-direction: column; }
    .gd-cover { width: 150px; }
}

/* Mobile nav */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    top: var(--nav-h);
    background: rgba(8,8,16,0.98);
    backdrop-filter: blur(16px);
    z-index: 999;
    padding: 2rem;
    overflow-y: auto;
    flex-direction: column;
    gap: 0.5rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
    padding: 0.8rem 1rem;
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.mobile-nav a:hover { color: var(--white); background: rgba(255,255,255,0.04); }
.mobile-nav .m-section-title {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.1em;
    color: var(--accent);
    font-size: 0.8rem;
    padding: 1rem 1rem 0.25rem;
}

/* Flash banner */
.flash-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem clamp(1rem, 4vw, 3rem);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    z-index: 50;
}
.flash-banner--success {
    background: rgba(44, 182, 125, 0.12);
    border-bottom: 1px solid rgba(44, 182, 125, 0.3);
    color: #2cb67d;
}
.flash-banner--error {
    background: rgba(220, 53, 69, 0.12);
    border-bottom: 1px solid rgba(220, 53, 69, 0.3);
    color: #f87171;
}
.flash-banner__icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: #2cb67d;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}
.flash-banner__close {
    margin-left: auto;
    background: none;
    border: none;
    color: currentColor;
    opacity: 0.6;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
    flex-shrink: 0;
    transition: opacity 0.2s;
}
.flash-banner__close:hover { opacity: 1; }

/* Header contact button — hide on small screens where nav collapses */
.header-contact-btn { display: inline-flex; }
@media (max-width: 640px) {
    .header-contact-btn { display: none; }
}

/* Header auth buttons */
.header-auth-btns {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-username {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

@media (max-width: 640px) {
    .header-auth-btns { display: none; }
    .header-user { display: none; }
}

/* Back to top */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 900;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px var(--accent-glow);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
#back-to-top:hover {
    background: var(--accent-2);
    transform: translateY(-3px);
}

/* ============================================================
   USER MENU DROPDOWN
   ============================================================ */
.user-menu {
    position: relative;
}

.user-menu__trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 0.35rem 0.75rem 0.35rem 0.35rem;
    cursor: pointer;
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    transition: var(--transition);
}
.user-menu__trigger:hover {
    border-color: var(--accent);
    background: rgba(230,57,70,0.06);
}

.user-menu__avatar {
    width: 26px;
    height: 26px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.user-menu__name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu__chevron {
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: transform 0.2s;
}
.user-menu.open .user-menu__chevron { transform: rotate(180deg); }

.user-menu__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 1100;
    overflow: hidden;
    animation: fadeDown 0.15s ease;
}
.user-menu.open .user-menu__dropdown { display: block; }

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.user-menu__item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}
.user-menu__item:hover {
    background: rgba(255,255,255,0.04);
    color: var(--white);
}
.user-menu__item--danger:hover {
    background: rgba(230,57,70,0.08);
    color: var(--accent-2);
}

.user-menu__divider {
    height: 1px;
    background: var(--border);
    margin: 0.25rem 0;
}

@media (max-width: 640px) {
    .user-menu { display: none; }
}

/* ============================================================
   ACCOUNT / PROFILE / SECURITY PAGES
   ============================================================ */
.account-page {
    min-height: calc(100vh - var(--nav-h));
    padding: 3rem clamp(1rem, 4vw, 3rem);
    max-width: 1100px;
    margin: 0 auto;
}

.account-container {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 768px) {
    .account-container { grid-template-columns: 1fr; }
}

/* Sidebar */
.account-sidebar {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    position: sticky;
    top: calc(var(--nav-h) + 1.5rem);
}

.account-avatar {
    width: 64px;
    height: 64px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    box-shadow: 0 0 0 4px rgba(230,57,70,0.2);
}

.account-sidebar__name {
    font-weight: 600;
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.account-sidebar__username {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.account-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: left;
}

.account-nav__link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
}
.account-nav__link:hover {
    background: rgba(255,255,255,0.04);
    color: var(--white);
}
.account-nav__link.active {
    background: rgba(230,57,70,0.12);
    color: var(--accent-2);
    font-weight: 600;
}

/* Cards */
.account-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.account-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.account-card--danger {
    border-color: rgba(230,57,70,0.3);
}

.account-card__header {
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.account-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.3rem;
}

.account-card__title--danger { color: var(--accent-2); }

.account-card__subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Danger zone */
.btn--danger {
    background: rgba(230,57,70,0.12);
    color: var(--accent-2);
    border: 1px solid rgba(230,57,70,0.3);
}
.btn--danger:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.password-confirm-notice {
    background: rgba(249,168,38,0.08);
    border: 1px solid rgba(249,168,38,0.25);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    color: var(--rating-mid);
    font-size: 0.88rem;
}

.delete-confirm-notice {
    background: rgba(230,57,70,0.08);
    border: 1px solid rgba(230,57,70,0.25);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    color: var(--accent-2);
    font-size: 0.88rem;
    margin-top: 1.25rem;
}

/* Login history table */
.login-history-table-wrap {
    overflow-x: auto;
}

.login-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.login-history-table th {
    text-align: left;
    padding: 0.65rem 1rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
}

.login-history-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: var(--text-muted);
    vertical-align: middle;
}

.login-history-table tr:last-child td { border-bottom: none; }
.login-history-table tr:hover td { background: rgba(255,255,255,0.02); }

.attempt-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
}
.attempt-badge--success {
    background: rgba(44,182,125,0.12);
    color: var(--rating-high);
    border: 1px solid rgba(44,182,125,0.25);
}
.attempt-badge--failed {
    background: rgba(230,57,70,0.1);
    color: var(--accent-2);
    border: 1px solid rgba(230,57,70,0.25);
}

.attempt-ip { font-family: monospace; font-size: 0.82rem; }
.login-history-empty {
    color: var(--text-dim);
    font-size: 0.9rem;
    padding: 1rem 0;
}

.history-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    gap: 1rem;
    flex-wrap: wrap;
}
.history-pagination__info {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.history-pagination__btns {
    display: flex;
    gap: 0.5rem;
}
.history-pagination__btn--disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* Error banner */
.error-banner {
    background: rgba(230,57,70,0.1);
    border: 1px solid rgba(230,57,70,0.3);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    color: var(--accent-2);
    margin: 1rem 0;
    font-size: 0.9rem;
}

/* ============================================================
   ADMIN PAGES
   ============================================================ */
.admin-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem clamp(1rem, 4vw, 3rem);
}

.admin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.admin-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    letter-spacing: 0.06em;
    color: var(--white);
    margin-bottom: 0.2rem;
}

.admin-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Stats grid */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
}

.stat-card--warning {
    border-color: rgba(249,168,38,0.4);
    background: rgba(249,168,38,0.06);
}

.stat-card__value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.8rem;
    color: var(--white);
    letter-spacing: 0.04em;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-card--warning .stat-card__value { color: var(--rating-mid); }

.stat-card__label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

/* Sections */
.admin-section {
    margin-bottom: 2rem;
}

.admin-section__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

/* Action cards */
.admin-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-action-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    flex-wrap: wrap;
}

.admin-action-card--danger { border-color: rgba(230,57,70,0.25); }

.admin-action-card__icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    width: 44px;
    text-align: center;
}

.admin-action-card__body { flex: 1; min-width: 180px; }
.admin-action-card__body h3 { font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 0.2rem; }
.admin-action-card__body p  { font-size: 0.85rem; color: var(--text-muted); }

/* Admin table */
.admin-table-wrap { overflow-x: auto; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.admin-table th {
    text-align: left;
    padding: 0.65rem 1rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.admin-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.admin-td-muted { color: var(--text-muted); }

/* User cell */
.admin-user-cell { display: flex; align-items: center; gap: 0.75rem; }
.admin-user-avatar {
    width: 32px; height: 32px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 700; flex-shrink: 0;
}
.admin-user-name { font-weight: 600; color: var(--white); font-size: 0.9rem; }
.admin-user-username { font-size: 0.78rem; color: var(--text-muted); }

/* Row actions */
.admin-row-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }

/* Badges */
.admin-badge {
    display: inline-flex; align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    font-size: 0.75rem; font-weight: 600;
}
.admin-badge--ok {
    background: rgba(44,182,125,0.12);
    color: var(--rating-high);
    border: 1px solid rgba(44,182,125,0.25);
}
.admin-badge--warning {
    background: rgba(249,168,38,0.1);
    color: var(--rating-mid);
    border: 1px solid rgba(249,168,38,0.25);
}
.admin-badge--search {
    background: rgba(99,179,237,0.12);
    color: #63b3ed;
    border: 1px solid rgba(99,179,237,0.25);
}
.admin-badge--login {
    background: rgba(44,182,125,0.12);
    color: var(--rating-high);
    border: 1px solid rgba(44,182,125,0.25);
}
.admin-badge--filter {
    background: rgba(183,148,244,0.12);
    color: #b794f4;
    border: 1px solid rgba(183,148,244,0.25);
}
.admin-badge--quote {
    background: rgba(249,168,38,0.12);
    color: var(--rating-mid);
    border: 1px solid rgba(249,168,38,0.28);
}

.admin-badge--security {
    background: rgba(230,57,70,0.12);
    color: var(--accent);
    border: 1px solid rgba(230,57,70,0.35);
    font-weight: 700;
}

/* Extra small button */
.btn--xs { padding: 0.35rem 0.8rem; font-size: 0.78rem; }

/* Search bar */
.admin-search-form {
    display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.admin-search-input { max-width: 360px; }

/* Detail grid */
.admin-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.admin-info-list { display: flex; flex-direction: column; gap: 0; }

.admin-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.9rem;
    flex-wrap: wrap;
}
.admin-info-row:last-child { border-bottom: none; }
.admin-info-row span { color: var(--text-muted); flex-shrink: 0; }
.admin-info-row strong { color: var(--white); text-align: right; }

/* Admin item in user dropdown */
.user-menu__item--admin {
    color: var(--accent) !important;
    font-weight: 600;
}
.user-menu__item--admin:hover {
    background: rgba(230,57,70,0.08) !important;
    color: var(--accent-2) !important;
}

/* Admin search form background */
.admin-section > .account-card { background: var(--bg-2); }

/* ============================================================
   SETTINGS PAGE
   ============================================================ */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}
@media (max-width: 860px) {
    .settings-grid { grid-template-columns: 1fr; }
}
.settings-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}
.settings-card--wide {
    max-width: 100%;
}
.settings-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}
.settings-hint {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
    line-height: 1.5;
}
.settings-input-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.4rem;
}
.settings-unit {
    color: var(--text-muted);
    font-size: 0.85rem;
    white-space: nowrap;
}
.settings-input--sm {
    width: 90px !important;
}
.form-group + .form-group {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}
.settings-condition-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.settings-condition-row .settings-input-row {
    flex-shrink: 0;
}
.settings-platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem 1.5rem;
}
.settings-platform-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}


/* ============================================================
   Confirm Modal
   ============================================================ */
.c-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.c-modal[hidden] { display: none; }
.c-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
}
.c-modal__box {
    position: relative;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 2rem 1.5rem;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
    animation: c-modal-in 0.18s ease;
}
@keyframes c-modal-in {
    from { opacity: 0; transform: scale(0.96) translateY(-8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.c-modal__message {
    font-size: 1rem;
    line-height: 1.65;
    margin: 0 0 1.75rem;
    color: var(--text);
}
.c-modal__actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* ============================================================
   GAME DETAIL — ACTION BUTTONS (Wishlist / Get Cash)
   ============================================================ */
.gd-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.gd-wishlist-btn {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}
.gd-wishlist-btn:hover {
    border-color: var(--accent-2);
    color: var(--accent-2);
}
.gd-wishlist-btn--active {
    border-color: var(--accent-2);
    color: var(--accent-2);
    background: rgba(255,107,107,0.08);
}

.gd-cash-btn {
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}
.gd-cash-btn:hover {
    background: #c62b36;
    border-color: #c62b36;
}
.gd-cash-btn--active {
    background: transparent;
    border-color: var(--accent);
    color: var(--accent);
}

/* ============================================================
   WISHLIST PAGE
   ============================================================ */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.wishlist-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    transition: var(--transition);
}
.wishlist-card:hover {
    border-color: rgba(255,255,255,0.14);
}

.wishlist-card__cover-link { flex-shrink: 0; }
.wishlist-card__cover {
    width: 56px;
    height: 76px;
    object-fit: cover;
    border-radius: 6px;
}
.wishlist-card__cover--placeholder {
    width: 56px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-2);
    border-radius: 6px;
    font-size: 1.6rem;
}

.wishlist-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.wishlist-card__title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wishlist-card__title:hover { color: var(--accent-2); }
.wishlist-card__date {
    font-size: 0.78rem;
    color: var(--text-dim);
}

.wishlist-card__remove { flex-shrink: 0; }
.wishlist-card__remove-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    transition: var(--transition);
}
.wishlist-card__remove-btn:hover {
    color: var(--accent);
    background: rgba(230,57,70,0.1);
}

/* ============================================================
   CASH BASKET PAGE
   ============================================================ */
.cb-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}
@media (max-width: 768px) {
    .cb-layout { grid-template-columns: 1fr; }
    .cb-summary { order: -1; }
}

.cb-items {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.cb-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
}

.cb-item__cover-link { flex-shrink: 0; }
.cb-item__cover {
    width: 56px;
    height: 76px;
    object-fit: cover;
    border-radius: 6px;
}
.cb-item__cover--placeholder {
    width: 56px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-2);
    border-radius: 6px;
    font-size: 1.6rem;
}

.cb-item__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.cb-item__title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cb-item__title:hover { color: var(--accent-2); }
.cb-item__platform {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.1rem;
}
.cb-item__price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent-2);
}
.cb-item__price--unavailable {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-dim);
}

.cb-item__remove { flex-shrink: 0; }

.cb-summary__card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    position: sticky;
    top: calc(var(--nav-h) + 1.5rem);
}
.cb-summary__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}
.cb-summary__total {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--accent-2);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}
.cb-summary__note {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.5;
}

/* ============================================================
   ADMIN — USER WISHLIST GRID
   ============================================================ */
.admin-wishlist-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    padding-top: 0.5rem;
}

.admin-wishlist-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 90px;
    text-align: center;
    transition: var(--transition);
}
.admin-wishlist-item:hover .admin-wishlist-item__title {
    color: var(--accent);
}
.admin-wishlist-item__cover {
    width: 70px;
    height: 94px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
}
.admin-wishlist-item__cover--placeholder {
    width: 70px;
    height: 94px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-2);
    border-radius: 6px;
    border: 1px solid var(--border);
    font-size: 1.8rem;
}
.admin-wishlist-item__title {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   GET CASH — PLATFORM DROPDOWN PORTAL
   position:fixed so it escapes overflow:hidden on .game-card
   ============================================================ */
.cash-dropdown-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1200;
    animation: cd-fade-in 0.15s ease;
}
.cash-dropdown-backdrop[hidden] { display: none; }

.cash-dropdown {
    position: fixed;
    z-index: 1201;
    width: 270px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04);
    animation: cd-pop-in 0.18s ease;
    overflow: hidden;
}
.cash-dropdown[hidden] { display: none; }

@keyframes cd-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes cd-pop-in {
    from { opacity: 0; transform: scale(0.95) translateY(-4px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.cash-dropdown__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1rem 0.4rem;
    gap: 0.5rem;
}
.cash-dropdown__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cash-dropdown__close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.2rem 0.3rem;
    line-height: 1;
    border-radius: 4px;
    transition: color 0.15s;
}
.cash-dropdown__close:hover { color: var(--accent-2); }

.cash-dropdown__subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 0 1rem 0.6rem;
    margin: 0;
}

.cash-dropdown__body {
    max-height: 260px;
    overflow-y: auto;
    border-top: 1px solid var(--border);
}

.cash-dropdown__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.12s;
}
.cash-dropdown__item:last-child { border-bottom: none; }
.cash-dropdown__item:hover { background: var(--bg-card-hover); }
.cash-dropdown__item form { margin: 0; flex-shrink: 0; }

.cash-dropdown__item-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}
.cash-dropdown__item-name {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cash-dropdown__item-price {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-2);
}

.cash-dropdown__empty {
    padding: 1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: center;
    margin: 0;
}

/* ============================================================
   Status Badges
   ============================================================ */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.7rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}
.status-badge--pending {
    background: rgba(249,168,38,0.12);
    color: var(--rating-mid);
    border: 1px solid rgba(249,168,38,0.3);
}
.status-badge--contacted {
    background: rgba(99,179,237,0.12);
    color: #63b3ed;
    border: 1px solid rgba(99,179,237,0.28);
}
.status-badge--completed {
    background: rgba(44,182,125,0.12);
    color: var(--rating-high);
    border: 1px solid rgba(44,182,125,0.25);
}
.status-badge--cancelled {
    background: rgba(230,57,70,0.1);
    color: var(--accent);
    border: 1px solid rgba(230,57,70,0.25);
}

/* ============================================================
   Order Confirmation Page
   ============================================================ */
.order-confirmation {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
}
.order-confirmation__icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(44,182,125,0.15);
    border: 2px solid rgba(44,182,125,0.35);
    color: var(--rating-high);
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}
.order-confirmation__heading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.4rem;
    letter-spacing: 0.06em;
    margin: 0 0 0.5rem;
    color: var(--text);
}
.order-confirmation__sub {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 460px;
    margin: 0 auto 1.75rem;
}
.order-confirmation__ref-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 1.5rem;
}
.order-confirmation__ref-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}
.order-confirmation__ref {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 0.1em;
    color: var(--accent-2);
}
.order-confirmation__ref-note {
    font-size: 0.78rem;
    color: var(--text-dim);
}
.order-confirmation__summary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    text-align: left;
}
.order-confirmation__total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}
.order-confirmation__total-row + .order-confirmation__total-row { margin-top: 0.4rem; }
.order-confirmation__total-row--sub { font-size: 0.82rem; color: var(--text-muted); }
.order-confirmation__total-value { font-size: 1.3rem; font-weight: 700; color: var(--accent-2); }
.order-confirmation__items {
    text-align: left;
    margin-bottom: 1.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.order-confirmation__item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.75rem 1.1rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
}
.order-confirmation__item:last-child { border-bottom: none; }
.order-confirmation__item-cover {
    width: 40px; height: 54px;
    object-fit: cover; border-radius: 5px; flex-shrink: 0;
}
.order-confirmation__item-cover--placeholder {
    width: 40px; height: 54px; border-radius: 5px;
    background: var(--bg-3); display: flex; align-items: center;
    justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.order-confirmation__item-info {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: 0.15rem;
}
.order-confirmation__item-title {
    font-weight: 600; font-size: 0.88rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.order-confirmation__item-platform { font-size: 0.75rem; color: var(--text-muted); }
.order-confirmation__item-price {
    font-size: 0.88rem; font-weight: 700;
    color: var(--accent-2); white-space: nowrap; flex-shrink: 0;
}
.order-confirmation__actions {
    display: flex; gap: 0.75rem;
    justify-content: center; flex-wrap: wrap;
}

/* ============================================================
   User Cash Orders List
   ============================================================ */
.co-list { display: flex; flex-direction: column; gap: 0.75rem; }

.co-card {
    display: flex; flex-direction: column; gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none; color: inherit;
    transition: border-color 0.15s, background 0.15s;
}
.co-card:hover { border-color: rgba(255,255,255,0.15); background: var(--bg-card-hover); }
.co-card__ref { display: flex; align-items: center; gap: 0.75rem; }
.co-card__ref-id {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.15rem; letter-spacing: 0.06em; color: var(--text);
}
.co-card__meta {
    display: flex; align-items: center; gap: 1.25rem;
    font-size: 0.82rem; color: var(--text-muted);
}
.co-card__total { font-weight: 700; color: var(--accent-2); }
.co-card__date { margin-left: auto; }

/* ============================================================
   Order Detail Items (user + admin)
   ============================================================ */
.co-detail-item {
    display: flex; align-items: center; gap: 1rem;
    padding: 0.8rem 0; border-bottom: 1px solid var(--border);
}
.co-detail-item:last-of-type { border-bottom: none; }
.co-detail-item__cover {
    width: 44px; height: 60px;
    object-fit: cover; border-radius: 5px; flex-shrink: 0;
}
.co-detail-item__cover--placeholder {
    width: 44px; height: 60px; border-radius: 5px;
    background: var(--bg-3); display: flex; align-items: center;
    justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.co-detail-item__body {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: 0.15rem;
}
.co-detail-item__title {
    font-weight: 600; font-size: 0.92rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.co-detail-item__platform { font-size: 0.77rem; color: var(--text-muted); }
.co-detail-item__price {
    font-size: 0.9rem; font-weight: 700;
    color: var(--accent-2); white-space: nowrap; flex-shrink: 0;
}

/* ============================================================
   Admin Orders Table
   ============================================================ */
.admin-table {
    width: 100%; border-collapse: collapse; font-size: 0.875rem;
}
.admin-table th {
    padding: 0.75rem 1.1rem; text-align: left;
    font-size: 0.72rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.07em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    background: var(--bg-3);
}
.admin-table td {
    padding: 0.8rem 1.1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover td { background: var(--bg-card-hover); }

/* ============================================================
   Cash-order basket minimum warning note
   ============================================================ */
.cb-summary__note--warn {
    color: var(--rating-mid);
}

/* ============================================================
   Checkout page layout
   ============================================================ */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}
@media (max-width: 760px) {
    .checkout-layout { grid-template-columns: 1fr; }
    .checkout-layout__summary { order: -1; }
}

.checkout-layout__summary .cb-summary__card {
    position: sticky;
    top: calc(var(--header-h, 64px) + 1rem);
}

/* Mini items in checkout sidebar */
.checkout-summary-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}
.checkout-summary-item:last-child { border-bottom: none; }

.checkout-summary-item__cover {
    width: 32px; height: 44px;
    object-fit: cover; border-radius: 4px; flex-shrink: 0;
}
.checkout-summary-item__cover--placeholder {
    width: 32px; height: 44px; border-radius: 4px;
    background: var(--bg-3); display: flex; align-items: center;
    justify-content: center; font-size: 0.9rem; flex-shrink: 0;
}
.checkout-summary-item__body {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: 0.1rem;
}
.checkout-summary-item__title {
    font-size: 0.8rem; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.checkout-summary-item__platform { font-size: 0.72rem; color: var(--text-muted); }
.checkout-summary-item__price {
    font-size: 0.8rem; font-weight: 700;
    color: var(--accent-2); white-space: nowrap; flex-shrink: 0;
}

/* ============================================================
   Checkout agreement checkboxes
   ============================================================ */
.checkout-agreements {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.checkout-agreement {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.checkout-agreement input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 0.15rem;
    width: 16px;
    height: 16px;
    accent-color: var(--accent-2);
    cursor: pointer;
}
.checkout-agreement:hover { color: var(--text); }
.checkout-agreement--error { color: var(--accent); }

/* ============================================================
   Header basket icon
   ============================================================ */
.header-basket {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
    flex-shrink: 0;
}
.header-basket:hover {
    color: var(--text);
    background: rgba(255,255,255,0.07);
}
.header-basket__icon {
    width: 20px;
    height: 20px;
    display: block;
}
.header-basket__badge {
    position: absolute;
    top: 1px;
    right: 1px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 99px;
    background: var(--accent-2);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    pointer-events: none;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    box-shadow: 0 -4px 24px rgba(0,0,0,.35);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__text {
    flex: 1;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}
.cookie-banner__link {
    color: var(--accent);
    text-decoration: underline;
}
.cookie-banner__btn {
    flex-shrink: 0;
}


/* ===== CASH BASKET — CONDITION ===== */
.cb-item__condition-wrap {
    margin: 0.5rem 0 0.3rem;
}
.cb-item__condition-wrap .form-input {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    padding: 0.4rem 0.65rem;
    max-width: 280px;
    width: 100%;
    background: var(--bg-2);
    border-color: rgba(255,255,255,0.18);
    cursor: pointer;
}
.cb-item__condition-wrap .form-input option {
    background: var(--bg-2);
    color: var(--text);
    font-size: 0.875rem;
}
.cb-item__price--pending {
    color: var(--text-dim);
    font-style: italic;
    font-size: 0.85rem;
}
.cb-item__adj-label {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}
.cb-item__adj-label--hidden {
    display: none;
}
