:root {
    --primary: #e50914;
    --primary-hover: #f40612;
    --dark: #141414;
    --dark-grey: #181818;
    --light-grey: #2f2f2f;
    --text: #fff;
    --text-muted: #b3b3b3;
    --gold: #ffd700;
    --green: #46d369;
}

body {
    background-color: var(--dark);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding-top: 70px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Grids */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Header */
header {
    background: #000000;
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    z-index: 1000;
    border-bottom: 1px solid #222;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

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

.brand-logo {
    height: 32px;
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Auth Buttons in Header */
.header-icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transition: 0.2s;
    font-size: 1.2rem;
}

.header-icon-btn:hover {
    background: var(--primary);
}

/* Hero */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(to bottom, #000, var(--dark));
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Updated Top List Table Style */
.top-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.list-item {
    background: var(--dark-grey);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #333;
    transition: transform 0.2s;
}

.list-item:hover {
    transform: translateY(-2px);
    border-color: #444;
}

.rank-badge {
    background: #333;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 15px;
}

.item-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    padding: 5px;
}

.item-info {
    flex: 1;
    margin: 0 20px;
}

.item-info h3 {
    margin: 0 0 5px;
    font-size: 1.2rem;
}

.item-rating {
    color: var(--gold);
    font-size: 0.9rem;
}

.item-bonus {
    background: rgba(229, 9, 20, 0.1);
    color: var(--primary);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    display: inline-block;
    margin-top: 5px;
}

.item-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 140px;
}

/* Premium Button Styles */
.btn-play,
.btn-green {
    background: linear-gradient(135deg, #46d369 0%, #2ea04b 100%);
    color: white;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 50px;
    /* Pill shape */
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(70, 211, 105, 0.4);
    display: block;
    width: 100%;
    margin-bottom: 10px;
}

.btn-play:hover,
.btn-green:hover {
    background: linear-gradient(135deg, #4ce072 0%, #35b656 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(70, 211, 105, 0.6);
    color: white;
}

.btn-review,
.link-review {
    color: var(--text-muted);
    text-decoration: none;
    text-align: center;
    font-size: 0.9rem;
    display: block;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.05);
}

.btn-review:hover,
.link-review:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

/* Footer */
footer {
    background: #000;
    padding: 40px 0;
    margin-top: 80px;
    text-align: center;
    color: #666;
}

footer a {
    color: #888;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--primary);
}

.footer-logo img {
    max-width: 120px;
    height: auto;
    margin-bottom: 10px;
}

/* Header Text */
.brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold);
    margin-left: 10px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: 20px;
}

.btn-login-plain {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 12px;
}

.btn-signup {
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.2s;
}

.btn-signup:hover {
    background: var(--primary-hover);
}

.btn-google {
    background: #fff;
    color: #333;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Mobile Responsive */
/* Affiliate Card Design (White Card, Dark Header) */
.affiliate-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    height: 100%;
    border: 1px solid #ddd;
}

.affiliate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.aff-card-header {
    background: #141414;
    /* Dark Header */
    padding: 20px;
    text-align: center;
    position: relative;
    border-bottom: 2px solid var(--primary);
    /* Red accent line */
}

.aff-card-logo {
    width: 100px;
    height: 60px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    padding: 5px;
}

.aff-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    color: #333;
    /* Dark text for white background */
}

.aff-card-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 5px;
    color: #000;
}

.aff-bonus {
    color: #46d369;
    /* Green text */
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
    min-height: 40px;
    /* alignment */
}

/* Features List */
.aff-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    font-size: 0.9rem;
    color: #555;
    text-align: left;
}

.aff-features li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.aff-features li::before {
    content: '✔';
    color: #46d369;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Payments Row */
.aff-payments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    margin-bottom: 20px;
}

.pay-label {
    font-size: 0.75rem;
    background: #f0f0f0;
    border: 1px solid #eee;
    padding: 2px 6px;
    border-radius: 4px;
    color: #666;
    display: flex;
    align-items: center;
}

.aff-actions {
    margin-top: auto;
}

.btn-green {
    background: #28a745;
    /* Green Button */
    color: white;
    /* White Text */
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    border-radius: 6px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s;
    border: none;
}

.btn-green:hover {
    background: #218838;
    /* Darker green */
}

.link-review {
    display: block;
    text-align: center;
    margin-top: 10px;
    color: #888;
    text-decoration: underline;
    font-size: 0.9rem;
}

.link-review:hover {
    color: #555;
}

/* --- PREMIUM SIDEBAR & MOBILE MENU (FIXED) --- */

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9998;
    /* VERY HIGH Z-INDEX */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Sidebar Container */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    background: #0d0d0d;
    background: linear-gradient(135deg, #141414 0%, #0a0a0a 100%);
    z-index: 9999;
    /* HIGHEST Z-INDEX */
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.8);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    transform: translateX(0);
}

/* Sidebar Header */
.sidebar-header {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.sidebar-header .brand-text {
    font-size: 1.4rem;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(229, 9, 20, 0.3);
}

/* Close Button */
.close-btn {
    background: transparent;
    border: none;
    color: #888;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    line-height: 1;
}

.close-btn:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

/* Sidebar Content */
.sidebar-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* Groups */
.sidebar-group {
    margin-bottom: 30px;
}

.sidebar-group label {
    display: block;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-bottom: 12px;
    letter-spacing: 1.5px;
    font-weight: 800;
    opacity: 0.9;
    padding-left: 10px;
    border-left: 2px solid var(--primary);
}

/* Navigation Links */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #ccc;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 10px;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    margin-bottom: 6px;
    font-weight: 500;
    border: 1px solid transparent;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sidebar-link .icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Menu Toggle Button (Header) */
.menu-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

/* Responsive Fixes */
/* Responsive Fixes */
@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    body {
        padding-top: 60px;
        /* Smaller header */
    }

    /* Header */
    header {
        height: 60px;
        padding: 0 10px;
    }

    .header-container {
        padding: 0 15px;
        width: 100%;
        box-sizing: border-box;
        justify-content: space-between;
    }

    .header-left {
        flex: 1;
        overflow: hidden;
    }

    .header-right {
        gap: 8px;
        flex-shrink: 0;
    }

    .brand-text {
        font-size: 1.0rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Cookie Banner Mobile Fix */
    #cookie-consent {
        width: 90% !important;
        left: 5% !important;
        bottom: 20px !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
    }

    #cookie-consent .cookie-buttons {
        width: 100%;
        display: flex;
        gap: 10px;
        justify-content: flex-end;
    }

    .btn-login-plain {
        padding: 6px 8px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .header-right .btn-signup span,
    .header-right .btn-login-plain span {
        display: inline-block;
        /* RESTORE text but make it small */
    }

    .desktop-nav {
        display: none !important;
    }

    /* Hero */
    .hero {
        padding: 40px 15px;
        overflow: hidden;
        /* Prevent hero overflow */
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    /* Grids - Force 1 column on mobile */
    .platforms-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }

    .top-list .list-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .list-item {
        margin: 0;
        /* Remove potential negative margins */
    }

    .rank-badge {
        margin: 0 auto;
    }

    .item-info {
        margin: 0;
    }

    .item-actions {
        width: 100%;
        min-width: unset;
    }

    /* Footer */
    footer {
        padding: 30px 15px;
    }

    /* Notifications */
    #notification-bar {
        font-size: 0.75rem;
        padding: 8px;
    }
}

/* --- SIDEBAR V2 (Redesign) --- */
.sidebar-v2 {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    background: #000;
    z-index: 10000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    border-right: 1px solid #222;
    display: flex;
    flex-direction: column;
}

.sidebar-v2.active {
    transform: translateX(0);
}

.sidebar-v2-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-v2-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-v2-header {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid #222;
}

.close-btn-v2 {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

.sidebar-v2-content {
    padding: 20px;
    overflow-y: auto;
}

.nav-group {
    margin-bottom: 30px;
}

.nav-group label {
    display: block;
    color: #666;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 10px;
    padding-left: 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ccc;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 8px;
    transition: background 0.2s;
    font-size: 1rem;
}

.nav-link:hover {
    background: #1a1a1a;
    color: #fff;
}

.nav-link span {
    font-size: 1.2rem;
}

/* --- SIDEBAR V2 (Redesign) --- */
.sidebar-v2 {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    background: #000;
    z-index: 10000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    border-right: 1px solid #222;
    display: flex;
    flex-direction: column;
}

.sidebar-v2.active {
    transform: translateX(0);
}

.sidebar-v2-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-v2-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-v2-header {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid #222;
}

.close-btn-v2 {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

.sidebar-v2-content {
    padding: 20px;
    overflow-y: auto;
}

.nav-group {
    margin-bottom: 30px;
}

.nav-group label {
    display: block;
    color: #666;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 10px;
    padding-left: 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ccc;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 8px;
    transition: background 0.2s;
    font-size: 1rem;
}

.nav-link:hover {
    background: #1a1a1a;
    color: #fff;
}

.nav-link .nav-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
    /* Ensure it behaves like a block for sizing */
}

.nav-link span {
    font-size: 1.2rem;
}
