/* ==========================================================================
   StreamSite - Main Stylesheet
   Dark casino theme with gold/purple accents
   ========================================================================== */

/* ---------- CSS Variables ---------- */
:root {
    --color-bg:          #0a0a0f;
    --color-bg-card:     #12121a;
    --color-bg-elevated: #1a1a26;
    --color-bg-hover:    #22222f;
    --color-surface:     #16161f;
    --color-border:      #2a2a3a;
    --color-border-light:#353548;

    --color-text:        #e8e8f0;
    --color-text-muted:  #9898aa;
    --color-text-dim:    #6a6a7a;

    --color-primary:     #a855f7;
    --color-primary-hover:#9333ea;
    --color-primary-glow: rgba(168, 85, 247, 0.3);

    --color-gold:        #f5c542;
    --color-gold-dim:    #c4973a;
    --color-silver:      #c0c0c0;
    --color-bronze:      #cd7f32;

    --color-success:     #22c55e;
    --color-danger:      #ef4444;

    --gradient-primary:  linear-gradient(135deg, #a855f7, #6366f1);
    --gradient-gold:     linear-gradient(135deg, #f5c542, #f59e0b);
    --gradient-hero:     linear-gradient(180deg, #0f0f1a 0%, #0a0a0f 100%);

    --shadow-sm:   0 1px 2px rgba(0,0,0,0.3);
    --shadow-md:   0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg:   0 8px 30px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 30px var(--color-primary-glow);

    --radius-sm:  8px;
    --radius-md:  12px;
    --radius-lg:  16px;
    --radius-xl:  24px;

    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;

    --container-max: 1200px;
    --header-height: 72px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100vh;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover { color: var(--color-primary-hover); }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

/* ---------- Accessibility ---------- */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal;
}

.screen-reader-text:focus {
    background: var(--color-bg-card);
    clip: auto;
    clip-path: none;
    color: var(--color-text);
    display: block;
    font-size: 1rem;
    height: auto;
    left: 8px;
    padding: 16px 24px;
    top: 8px;
    width: auto;
    z-index: 10000;
    border-radius: var(--radius-sm);
}

/* Focus states for keyboard navigation */
.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    transition: background 0.3s;
}

.site-header.is-scrolled {
    background: rgba(10, 10, 15, 0.95);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.site-logo {
    height: 42px;
    width: 42px;
    border-radius: 50%;
    object-fit: contain;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
    border: 2px solid rgba(168, 85, 247, 0.4);
}

.site-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links li a {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links li a:hover,
.nav-links li.current-menu-item a {
    color: var(--color-text);
    background: var(--color-bg-elevated);
}

/* Mobile menu toggle — hamburger to X animation */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
    padding: calc(var(--header-height) + 60px) 0 36px;
    background: var(--gradient-hero);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-primary-glow) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.5s ease;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 16px;
    color: var(--color-text);
    animation: fadeInUp 0.5s ease;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    max-width: 38rem;
    margin: 0 auto;
    line-height: 1.55;
    animation: fadeInUp 0.5s ease 0.1s both;
}

.hero-discord-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
    padding: 12px 22px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.35);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
    animation: fadeInUp 0.5s ease 0.18s both;
}

.hero-discord-btn:hover {
    color: #fff;
    filter: brightness(1.08);
    box-shadow: 0 6px 28px rgba(88, 101, 242, 0.45);
    transform: translateY(-1px);
}

.hero-discord-btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

.hero-discord-btn__icon {
    flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border-light);
}

.btn-outline:hover {
    color: var(--color-text);
    border-color: var(--color-primary);
    background: rgba(168, 85, 247, 0.08);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn-block {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* ---------- Casino Grid ---------- */
.casinos-section {
    padding: 28px 0 100px;
}

.casino-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.casino-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.casino-card:hover {
    border-color: var(--color-border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.casino-card-header {
    padding: 24px 24px 0;
}

.casino-card-header-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: 12px;
    row-gap: 10px;
    /* Row height follows logo; code box aligns to bottom of logo area */
    min-height: 81px;
}

.casino-card-header-row .casino-logo-wrap {
    min-width: 0;
    justify-self: start;
    align-self: end;
}

/* Logo wrapper with ribbon support */
.casino-logo-wrap {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.casino-logo {
    width: 189px;
    height: 81px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: var(--radius-sm);
    border: 2px solid rgba(168, 85, 247, 0.5);
}

.casino-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.casino-logo-text {
    background: var(--color-bg-elevated);
    justify-content: center;
    padding: 8px 16px;
}

.casino-logo-text span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-text);
}

/* Diagonal ribbon badges (HOT / NEW) */
.ribbon {
    position: absolute;
    top: 6px;
    left: -38px;
    width: 117px;
    text-align: center;
    padding: 3px 0;
    font-size: 0.715rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-indent: 2px;
    text-transform: uppercase;
    transform: rotate(-45deg);
    z-index: 2;
    pointer-events: none;
    line-height: 1.3;
}

.ribbon--hot {
    background: var(--color-danger);
    color: #fff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
}

.ribbon--new {
    background: var(--color-gold);
    color: #0a0a0f;
    box-shadow: 0 2px 8px rgba(245, 197, 66, 0.5);
}

.ribbon--vip {
    left: auto;
    right: -38px;
    top: 6px;
    transform: rotate(45deg);
    background: #38bdf8;
    color: #0a0a0f;
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.5);
}

.ribbon--lg {
    top: 18px;
    left: -36px;
    width: 169px;
    font-size: 0.91rem;
    padding: 5px 0;
}

.ribbon--vip.ribbon--lg {
    left: auto;
    right: -38px;
    top: 18px;
    transform: rotate(45deg);
}

/* Review page logo wrap */
.review-logo-wrap {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

/* VIP toggle beside main bonus line (row always visible; leads swap) */
.casino-bonus-toggle-row,
.casino-bonus-first-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.casino-bonus-lead-stack {
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
}

/*
 * Two <p> in the stack: only the first matches .casino-bonus p:first-child.
 * The VIP line is the second <p>, so it was only getting .casino-bonus p (muted).
 * Scope leads under .casino-bonus-real so both match welcome headline styling.
 */
.casino-bonus-real .casino-bonus-lead-stack > .casino-bonus-lead {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-text);
}

.bonus-vip-toggle {
    box-sizing: border-box;
    flex: 0 0 auto;
    /* Same footprint for "VIP Offer" and "Regular" */
    width: 6.75rem;
    min-width: 6.75rem;
    max-width: 6.75rem;
    padding: 4px 6px;
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1.25;
    text-transform: none;
    letter-spacing: 0.03em;
    text-align: center;
    border: none;
    border-radius: var(--radius-sm);
    /* Gold ~30% brighter than previous muted toggle */
    background: linear-gradient(135deg, #d6ab30, #be8619);
    color: #0a0a0f;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.28);
    cursor: pointer;
    box-shadow: 0 2px 16px rgba(200, 155, 45, 0.42);
    transition: filter 0.2s, box-shadow 0.2s, transform 0.15s;
}

.bonus-vip-toggle:hover {
    filter: brightness(1.065);
    box-shadow: 0 3px 18px rgba(200, 155, 45, 0.52);
}

.bonus-vip-toggle:active {
    transform: scale(0.98);
}

.bonus-vip-toggle:focus-visible {
    outline: 2px solid rgba(10, 10, 15, 0.65);
    outline-offset: 2px;
}

/* Same look in both states (VIP Offer / Regular) */
.bonus-vip-toggle.is-on {
    background: linear-gradient(135deg, #d6ab30, #be8619);
    color: #0a0a0f;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.28);
    box-shadow: 0 2px 16px rgba(200, 155, 45, 0.42);
}

.casino-bonus-normal-view > p,
.casino-bonus-vip-view > p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* VIP-only card (no standard bonus): first line matches welcome headline */
.casino-bonus-vip-view.casino-bonus-vip-only > p:first-child {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.5;
}

/* Card Body */
.casino-card-body {
    padding: 20px 24px;
    flex: 1;
}

.casino-bonus {
    border-top: 2px solid #87cefa;
    padding-top: 12px;
}

.casino-bonus p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.casino-bonus p:first-child {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
}

.casino-code {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 6px 12px;
    background: rgba(245, 197, 66, 0.1);
    border: 1px dashed var(--color-gold-dim);
    border-radius: var(--radius-sm);
}

.code-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-dim);
    text-transform: uppercase;
}

.code-value {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--color-gold);
    font-family: monospace;
    letter-spacing: 1px;
}

/* Bonus code beside logo in card header */
.casino-code--header {
    display: flex;
    margin: 0;
    max-width: 100%;
    padding: 6px 10px;
    gap: 6px;
    align-items: center;
    justify-self: end;
    align-self: end;
    height: fit-content;
}

/* Same font size + line box so label and value line up (mono vs sans throws off mixed sizes) */
.casino-code--header .code-label,
.casino-code--header .code-value {
    font-size: 0.75rem;
    line-height: 1.2;
    font-family: var(--font-body);
}

.casino-code--header .code-value {
    font-weight: 800;
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 400px) {
    .casino-card-header-row {
        grid-template-columns: 1fr;
        min-height: 0;
        justify-items: stretch;
        align-items: stretch;
    }

    .casino-card-header-row .casino-logo-wrap {
        justify-self: center;
    }

    .casino-card-header-row .casino-code--header {
        justify-self: center;
        justify-content: center;
    }
}

/* Card Footer */
.casino-card-footer {
    padding: 0 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.casino-card-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.casino-card-actions .btn-primary {
    flex: 1;
    justify-content: center;
}

.casino-disclaimer {
    font-size: 0.7rem;
    color: var(--color-text-dim);
    text-align: center;
}

/* ---------- Leaderboard Page ---------- */
.hero-leaderboard::before {
    background: radial-gradient(circle, rgba(245, 197, 66, 0.15) 0%, transparent 70%);
}

/* Promo Card */
.leaderboard-casino-promo {
    padding: 0 0 40px;
    margin-top: -20px;
    position: relative;
    z-index: 2;
}

.promo-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: var(--shadow-lg);
}

.promo-info {
    display: flex;
    align-items: center;
    gap: 24px;
}

.promo-logo {
    width: 189px;
    height: 81px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: var(--radius-sm);
    border: 2px solid rgba(168, 85, 247, 0.5);
    flex-shrink: 0;
}

.promo-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.promo-logo-text {
    background: var(--color-bg-elevated);
    justify-content: center;
    padding: 8px 16px;
}

.promo-logo-text span {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-text);
}

.promo-details .casino-bonus {
    border-top: none;
    padding-top: 0;
}

.promo-details .casino-bonus p:first-child {
    font-size: 1.05rem;
}

/* Leaderboard Meta */
.leaderboard-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 32px;
    padding: 20px 24px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-dim);
}

.meta-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
}

.meta-live {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.live-dot {
    width: 10px;
    height: 10px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

/* Leaderboard Table */
.leaderboard-section {
    padding: 0 0 100px;
}

.leaderboard-table-wrapper {
    border-radius: var(--radius-lg);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
}

.leaderboard-table {
    width: 100%;
    min-width: 420px;
    border-collapse: collapse;
    background: var(--color-bg-card);
}

.leaderboard-table thead {
    background: var(--color-bg-elevated);
}

.leaderboard-table th {
    padding: 16px 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-dim);
    text-align: left;
}

.leaderboard-table td {
    padding: 16px 20px;
    border-top: 1px solid var(--color-border);
    font-size: 0.95rem;
}

.leaderboard-table .col-rank { width: 70px; text-align: center; }
.leaderboard-table th.col-rank { text-align: center; }
.leaderboard-table .col-prize { text-align: right; }
.leaderboard-table th.col-prize { text-align: right; }
.leaderboard-table .col-wager { text-align: right; }
.leaderboard-table th.col-wager { text-align: right; }

/* Rank Badges */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.9rem;
    background: var(--color-bg-elevated);
    color: var(--color-text-muted);
    border: 2px solid var(--color-border);
}

.rank-gold .rank-badge {
    background: linear-gradient(135deg, #f5c542, #f59e0b);
    color: #1a1a00;
    border-color: var(--color-gold);
    box-shadow: 0 0 15px rgba(245, 197, 66, 0.3);
}

.rank-silver .rank-badge {
    background: linear-gradient(135deg, #e0e0e0, #a8a8a8);
    color: #1a1a1a;
    border-color: var(--color-silver);
}

.rank-bronze .rank-badge {
    background: linear-gradient(135deg, #cd7f32, #a0622a);
    color: #1a1a1a;
    border-color: var(--color-bronze);
}

/* Row Styles */
.entry-filled {
    transition: background 0.2s;
}

.entry-filled:hover {
    background: var(--color-bg-hover);
}

.entry-empty {
    opacity: 0.45;
}

.player-email {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--color-text);
}

.empty-slot {
    color: var(--color-text-dim);
    font-style: italic;
}

.wager-amount {
    font-weight: 700;
    color: var(--color-text);
}

.no-wager {
    color: var(--color-text-dim);
}

.prize-amount {
    font-weight: 800;
    color: var(--color-gold);
    font-size: 1rem;
}

.rank-gold .prize-amount {
    font-size: 1.1rem;
}

/* Leaderboard Info */
.leaderboard-info {
    margin-top: 40px;
    padding: 28px 32px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.leaderboard-info h3 {
    font-size: 1.15rem;
    margin-bottom: 16px;
    color: var(--color-text);
}

.info-content {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* Leaderboard CTA */
.leaderboard-cta {
    text-align: center;
    margin-top: 48px;
}

.leaderboard-inactive {
    text-align: center;
    padding: 80px 0;
}

.leaderboard-inactive h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.leaderboard-inactive p {
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

/* ---------- Review Page ---------- */
.hero-review {
    padding-bottom: 40px;
    text-align: left;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.85rem;
}

.breadcrumb a {
    color: var(--color-text-muted);
}

.breadcrumb .separator {
    color: var(--color-text-dim);
}

.breadcrumb .current {
    color: var(--color-text);
}

.review-section {
    padding: 0 0 100px;
}

.review-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

.review-promo-card {
    margin-bottom: 32px;
}

.promo-card-inner {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    gap: 32px;
    align-items: center;
}

.review-logo {
    width: 180px;
    height: 80px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.review-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.review-bonus-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.review-content {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    line-height: 1.8;
    color: var(--color-text-muted);
}

.review-content h2,
.review-content h3,
.review-content h4 {
    color: var(--color-text);
    margin: 24px 0 12px;
}

.review-content h2:first-child,
.review-content h3:first-child {
    margin-top: 0;
}

.review-content p {
    margin-bottom: 16px;
}

.review-content ul, .review-content ol {
    margin: 0 0 16px 24px;
}

.review-content li {
    margin-bottom: 8px;
}

/* Sidebar */
.sidebar-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

.sidebar-card h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--color-text);
}

.quick-info-list {
    list-style: none;
    margin-bottom: 20px;
}

.quick-info-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
}

.quick-info-list li:last-child {
    border-bottom: none;
}

.qi-label {
    color: var(--color-text-dim);
}

.qi-value {
    color: var(--color-text);
    font-weight: 600;
}

.code-highlight {
    color: var(--color-gold) !important;
    font-family: monospace;
}

/* ---------- 404 Page ---------- */
.error-404-number {
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: 900;
    font-family: var(--font-heading);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    line-height: 1;
    margin-bottom: -10px;
    animation: fadeInUp 0.5s ease;
}

.error-404-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
    animation: fadeInUp 0.5s ease 0.2s both;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 48px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text);
    text-decoration: none;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--color-text-dim);
    margin-top: 4px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-text);
}

.footer-legal {
    text-align: right;
}

.footer-legal p {
    font-size: 0.8rem;
    color: var(--color-text-dim);
}

.age-notice {
    margin-top: 4px;
}

.age-notice a {
    color: var(--color-text-dim);
    text-decoration: underline;
}

/* ---------- Scroll-to-Top Button ---------- */
.scroll-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--gradient-gold);
    color: #0a0a0f;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 900;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s;
}

.scroll-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-to-top:hover {
    box-shadow: 0 0 20px rgba(245, 197, 66, 0.4);
    transform: translateY(-2px);
}

/* ---------- No Casinos ---------- */
.no-casinos {
    text-align: center;
    padding: 80px 0;
    color: var(--color-text-dim);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .review-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-card {
        position: static;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .site-logo {
        height: 36px;
        width: 36px;
    }

    .site-title {
        font-size: 1.25rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--color-border);
        padding: 16px 24px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s;
    }

    .main-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links {
        flex-direction: column;
        gap: 4px;
    }

    .nav-links li a {
        padding: 14px 16px;
        width: 100%;
        font-size: 1rem;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-discord-btn {
        margin-top: 18px;
        padding: 11px 18px;
        font-size: 0.9rem;
    }

    .casino-grid {
        grid-template-columns: 1fr;
    }

    .promo-card {
        flex-direction: column;
        text-align: center;
    }

    .promo-info {
        flex-direction: column;
    }

    .promo-card-inner {
        flex-direction: column;
        text-align: center;
    }

    .leaderboard-meta {
        flex-direction: column;
        gap: 16px;
    }

    .meta-live {
        margin-left: 0;
    }

    .leaderboard-table th,
    .leaderboard-table td {
        padding: 12px 10px;
        font-size: 0.85rem;
    }

    .rank-badge {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        text-align: center;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    .site-logo {
        height: 30px;
        width: 30px;
    }

    .site-title {
        font-size: 1.1rem;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .casino-card-header {
        flex-direction: column;
    }

    .leaderboard-table th,
    .leaderboard-table td {
        padding: 10px 6px;
        font-size: 0.78rem;
    }

    .leaderboard-table .col-rank { width: 36px; }
}

/* ---------- Animations ---------- */
.casino-card {
    animation: fadeInUp 0.5s ease both;
}

.casino-card:nth-child(1) { animation-delay: 0.05s; }
.casino-card:nth-child(2) { animation-delay: 0.1s; }
.casino-card:nth-child(3) { animation-delay: 0.15s; }
.casino-card:nth-child(4) { animation-delay: 0.2s; }
.casino-card:nth-child(5) { animation-delay: 0.25s; }
.casino-card:nth-child(6) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.leaderboard-table tbody tr {
    animation: fadeIn 0.4s ease both;
}

.leaderboard-table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.leaderboard-table tbody tr:nth-child(2) { animation-delay: 0.1s; }
.leaderboard-table tbody tr:nth-child(3) { animation-delay: 0.15s; }
.leaderboard-table tbody tr:nth-child(4) { animation-delay: 0.2s; }
.leaderboard-table tbody tr:nth-child(5) { animation-delay: 0.25s; }
.leaderboard-table tbody tr:nth-child(6) { animation-delay: 0.3s; }
.leaderboard-table tbody tr:nth-child(7) { animation-delay: 0.35s; }
.leaderboard-table tbody tr:nth-child(8) { animation-delay: 0.4s; }
.leaderboard-table tbody tr:nth-child(9) { animation-delay: 0.45s; }
.leaderboard-table tbody tr:nth-child(10) { animation-delay: 0.5s; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ---------- Casino Meta Tags ---------- */
.casino-meta-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
}

.casino-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.casino-meta-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-text-muted);
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.casino-meta-more:hover {
    color: var(--color-text);
    border-color: rgba(168, 85, 247, 0.55);
    background: rgba(168, 85, 247, 0.14);
}

.casino-meta-more:focus-visible {
    outline: 2px solid var(--color-purple);
    outline-offset: 2px;
}

/* Class-based collapse: wins over .casino-meta-info { display:flex } and flaky [hidden] with minifiers */
.casino-meta-info--extra.is-meta-extra-collapsed {
    display: none !important;
}

.casino-meta-info--extra:not(.is-meta-extra-collapsed) {
    animation: metaExtraIn 0.2s ease;
}

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

@media (max-width: 480px) {
    .casino-meta-more {
        align-self: stretch;
        justify-content: center;
    }
}

.meta-tag {
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 4px;
    background: rgba(168, 85, 247, 0.12);
    color: var(--color-purple);
    letter-spacing: 0.3px;
}

.meta-tag--crypto {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.meta-tag--live {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.meta-tag--sticky {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
}

/* ---------- Sidebar Extras ---------- */
.sidebar-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.sidebar-payments {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
}

.sidebar-payments h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px;
}

.payment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.payment-badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.68rem;
    font-weight: 500;
    border-radius: 4px;
    background: var(--color-bg-elevated);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
}

/* ---------- GEO Banner ---------- */
.geo-banner {
    display: none;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(56, 189, 248, 0.08));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    padding: 6px 16px;
}

.geo-banner--visible {
    display: block;
}

.geo-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    font-size: 0.85rem;
}

.geo-banner__text {
    color: var(--color-text-secondary);
}

.geo-banner__text strong {
    color: var(--color-text);
}

.geo-banner__hidden {
    opacity: 0.6;
}

.geo-banner__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.geo-banner__toggle {
    font-size: 0.75rem;
    padding: 5px 12px;
}

.geo-banner__close {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.geo-banner__close:hover {
    opacity: 1;
}

.casino-bonus-geo-blocked .casino-bonus-geo-msg {
    margin: 0;
    font-weight: 600;
    color: var(--color-text-muted);
    text-align: center;
    padding: 8px 4px;
}

.casino-bonus-geo-blocked {
    border-top: 1px solid rgba(56, 189, 248, 0.25);
    padding-top: 12px;
    margin-top: 4px;
}

.meta-tag--cashback {
    color: var(--color-gold, #f5c542);
}

.casino-card.geo-hidden {
    display: none;
}

@media (max-width: 480px) {
    .geo-banner {
        padding: 6px 12px;
    }

    .geo-banner__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 4px 0;
        font-size: 0.8rem;
    }
}

/* ---------- Header Social Icons ---------- */
.header-socials {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
    flex-shrink: 0;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: var(--color-text-secondary);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    transition: all 0.2s;
}

.social-icon:hover {
    color: #fff;
    border-color: transparent;
}

.social-icon--twitch:hover {
    background: #9146ff;
}

.social-icon--youtube:hover {
    background: #ff0000;
}

.social-icon--kick:hover {
    background: #53fc18;
    color: #000;
}

.social-icon--instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

/* ---------- YouTube Button ---------- */
.btn-youtube {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 12px 24px;
    background: #ff0000;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.btn-youtube:hover {
    background: #cc0000;
    transform: translateY(-1px);
    color: #fff;
}

/* ---------- Big Wins Page ---------- */
.big-wins-section {
    padding: 40px 0;
}

.big-wins-section--views {
    border-top: 1px solid var(--color-border);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--color-text);
}

.wins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.win-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.win-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.win-rank {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.win-rank span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.85rem;
    background: var(--color-bg-elevated);
    color: var(--color-text-secondary);
    border: 2px solid var(--color-border);
}

.win-rank-1 .win-rank span {
    background: #f5c542;
    color: #0a0a0f;
    border-color: #f5c542;
}

.win-rank-2 .win-rank span {
    background: #c0c0c0;
    color: #0a0a0f;
    border-color: #c0c0c0;
}

.win-rank-3 .win-rank span {
    background: #cd7f32;
    color: #0a0a0f;
    border-color: #cd7f32;
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.win-info {
    padding: 14px 16px;
}

.win-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--color-text);
    line-height: 1.3;
}

.win-details {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.win-game,
.win-amount,
.win-multi {
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 4px;
}

.win-game {
    background: var(--color-bg-elevated);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
}

.win-amount {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.win-multi {
    background: rgba(168, 85, 247, 0.12);
    color: var(--color-purple);
}

.big-wins-cta {
    padding: 40px 0 60px;
}

.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 32px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(239, 68, 68, 0.06));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 4px;
}

.cta-content p {
    color: var(--color-text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

.cta-card .btn svg {
    margin-right: 8px;
}

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

    .cta-card {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .header-socials {
        margin-left: 12px;
        gap: 6px;
    }

    .social-icon {
        width: 28px;
        height: 28px;
    }

    .social-icon svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .header-socials {
        margin-left: 8px;
    }
}

/* ---------- Community Wins ---------- */
.btn-cw-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--color-purple), #6d28d9);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-cw-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

/* Modal Overlay */
.cw-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cw-modal {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    animation: modalIn 0.25s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.cw-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s;
}

.cw-modal-close:hover {
    color: var(--color-text);
}

.cw-form-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 20px;
}

.cw-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.cw-notice--success {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.cw-notice--error {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.cw-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.cw-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.cw-field label .required {
    color: #ef4444;
}

.cw-field input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.cw-field input[type="text"]:focus {
    border-color: var(--color-purple);
    outline: none;
}

.cw-field-upload {
    margin-bottom: 20px;
}

.cw-dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    text-align: center;
    color: var(--color-text-secondary);
}

.cw-dropzone:hover,
.cw-dropzone--active {
    border-color: var(--color-purple);
    background: rgba(168, 85, 247, 0.04);
}

.cw-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.cw-dropzone-text {
    margin: 8px 0 4px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
}

.cw-dropzone-hint {
    margin: 0;
    font-size: 0.75rem;
    opacity: 0.6;
}

.cw-preview {
    position: relative;
    display: inline-block;
    margin-top: 12px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.cw-preview img {
    display: block;
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

.cw-preview-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.cw-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Community Wins Gallery */
.cw-gallery-section {
    padding: 40px 0 60px;
    border-top: 1px solid var(--color-border);
}

.cw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.cw-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cw-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cw-card-image {
    display: block;
    overflow: hidden;
}

.cw-card-image img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s;
}

.cw-card:hover .cw-card-image img {
    transform: scale(1.03);
}

.cw-card-info {
    padding: 12px 14px;
}

.cw-card-user {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: 4px;
}

.cw-card-details {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.cw-card-game,
.cw-card-win {
    display: inline-block;
    padding: 2px 7px;
    font-size: 0.68rem;
    font-weight: 600;
    border-radius: 4px;
}

.cw-card-game {
    background: var(--color-bg-elevated);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
}

.cw-card-win {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.cw-card-date {
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

.cw-pagination {
    margin-top: 32px;
    text-align: center;
}

.cw-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 2px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s;
}

.cw-pagination .page-numbers.current,
.cw-pagination .page-numbers:hover {
    background: var(--color-purple);
    color: #fff;
    border-color: var(--color-purple);
}

@media (max-width: 600px) {
    .cw-form-row {
        grid-template-columns: 1fr;
    }

    .cw-modal {
        padding: 20px;
        max-height: 85vh;
    }

    .cw-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-border-light);
}
