:root {
    --bg-dark: #11141D;
    --bg-lighter: #1A1D29;
    --primary-green: #1BD45E;
    --primary-green-hover: #16b34f;
    --text-white: #FFFFFF;
    --text-gray: #8A91A1;
    --card-green: #0a4d2e;
    --card-blue: #0b3d68;
    --border-color: #262B3A;
    --modal-bg: #1F2331;
    --input-bg: #151822;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Exo 2', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-green);
    color: #000;
}

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

.btn-text {
    background: transparent;
    color: var(--text-gray);
}

.btn-text:hover {
    color: var(--text-white);
}

.btn-icon {
    background: var(--bg-lighter);
    color: var(--text-gray);
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 8px;
}

.btn-icon:hover {
    color: var(--text-white);
    background: var(--border-color);
}

.btn-block {
    width: 100%;
}

.app-container {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: var(--bg-dark);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.sidebar-header {
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid var(--border-color);
}

.toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 1.2rem;
    cursor: pointer;
    margin-right: 15px;
}

.logo h2 {
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 800;
}

.logo span {
    color: var(--primary-green);
}

.sidebar-content {
    flex: 1;
    padding: 20px 10px;
}

.menu-title {
    color: var(--text-gray);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 10px;
    display: flex;
    justify-content: space-between;
}

.sidebar-menu ul li a {
    display: flex;
    align-items: center;
    padding: 10px;
    color: var(--text-gray);
    border-radius: 8px;
    transition: all 0.2s;
}

.sidebar-menu ul li a i {
    width: 24px;
    font-size: 1.1rem;
    margin-right: 10px;
}

.sidebar-menu ul li a:hover {
    background-color: var(--bg-lighter);
    color: var(--text-white);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.topbar {
    height: 70px;
    background-color: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.topbar-left {
    display: flex;
    align-items: center;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 1.2rem;
    cursor: pointer;
    margin-right: 15px;
}

.topbar-links a {
    color: var(--text-gray);
    margin-right: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.topbar-links a.active, .topbar-links a:hover {
    color: var(--text-white);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-balance {
    display: flex;
    align-items: center;
    background-color: var(--bg-lighter);
    padding: 5px 5px 5px 15px;
    border-radius: 8px;
    gap: 15px;
}

.user-balance .currency {
    color: var(--text-gray);
}

.user-balance .amount {
    font-weight: 700;
}

.btn-deposit {
    padding: 8px 15px;
}

/* Content Wrapper */
.content-wrapper {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background-color: var(--bg-dark);
}

/* Hero Section */
.hero-section {
    background-color: var(--bg-lighter);
    border-radius: 12px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

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

.hero-content p {
    color: var(--text-gray);
    margin-bottom: 30px;
}

.hero-steps {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.hero-steps .step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.hero-steps .step .arrow {
    font-size: 0.7rem;
    margin-left: 5px;
}

.hero-btn {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.hero-image {
    width: 300px;
    height: 250px;
    background: url('https://upload.wikimedia.org/wikipedia/commons/thumb/d/d3/Roulette_wheel.jpg/300px-Roulette_wheel.jpg') center/cover;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    /* In a real app we'd use the precise vector art */
}

/* Grid Cards */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.card-item {
    border-radius: 12px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.card-green {
    background: linear-gradient(135deg, #0f3f26 0%, #1a8f4c 100%);
}

.card-blue {
    background: linear-gradient(135deg, #0b2848 0%, #155799 100%);
}

.card-dark-blue {
    background: linear-gradient(135deg, #101524 0%, #1c2642 100%);
}

.card-dark-green {
    background: linear-gradient(135deg, #0b2413 0%, #134221 100%);
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card-content p {
    color: rgba(255,255,255,0.8);
    max-width: 60%;
}

.card-bg-image {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    mix-blend-mode: overlay; /* or luminosity, to blend with the hex gradient */
    z-index: 0;
}

.btn-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    margin-top: 20px;
    cursor: pointer;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal {
    background: var(--modal-bg);
    width: 400px;
    border-radius: 12px;
    padding: 30px;
    position: relative;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-large {
    width: 800px;
    display: flex;
    padding: 0;
    overflow: hidden;
}

.modal-left {
    flex: 1;
    background: linear-gradient(135deg, #0f2b3c, #164627);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.floating-cash {
    flex: 1;
    background: url('https://img.freepik.com/free-vector/floating-money-coins-background_23-2148003635.jpg') center/cover;
    opacity: 0.5;
}

.responsible-gaming {
    color: white;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-right {
    flex: 1;
    padding: 40px 30px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px; right: 15px;
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 1.2rem;
    cursor: pointer;
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    font-size: 1.8rem;
    font-style: italic;
    margin-bottom: 10px;
}
.modal-header h2 span { color: var(--primary-green); }

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 500;
}

.form-group {
    margin-bottom: 15px;
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary-green);
}

.password-group .show-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    cursor: pointer;
}

.phone-group {
    display: flex;
    gap: 10px;
}

.country-code {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    padding: 0 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-options {
    text-align: right;
    margin-bottom: 15px;
}

.form-options a {
    color: var(--text-gray);
    font-size: 0.85rem;
}

.cloudflare-captcha {
    background: var(--bg-lighter);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cf-success {
    color: var(--primary-green);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cf-logo {
    text-align: right;
    font-size: 0.7rem;
    color: var(--text-gray);
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border-color);
}

.divider::after {
    content: '';
    position: absolute;
    right: 0; top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    color: var(--text-gray);
    font-size: 0.8rem;
}

.modal-footer {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.modal-footer a {
    color: var(--primary-green);
    font-weight: 600;
}

.checkbox-group {
    margin-bottom: 15px;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.checkbox-group label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
}

.checkbox-group a {
    color: var(--primary-green);
}

/* Mobile Bottom Nav */
.mobile-bottom-nav {
    display: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-cards {
        display: flex;
        flex-wrap: nowrap;
        width: 100%;
        overflow-x: auto;
        gap: 15px;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px; /* space for scrollbar */
    }
    .grid-cards::-webkit-scrollbar {
        display: none;
    }
    .grid-cards .mobile-dup {
        display: none;
    }
    .card-item {
        padding: 15px;
        min-height: 120px;
        min-width: 260px;
        flex-shrink: 0;
    }
    .card-content h3 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }
    .card-content p {
        font-size: 0.75rem;
        max-width: 100%;
        line-height: 1.2;
    }
    .btn-circle {
        margin-top: 10px;
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .content-wrapper {
        padding: 15px 5px;
    }

    .sidebar {
        position: fixed;
        left: -250px;
        z-index: 10000;
        height: 100vh;
    }
    .sidebar.active {
        left: 0;
    }
    .mobile-toggle {
        display: block;
    }
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: var(--bg-lighter);
        border-top: 1px solid var(--border-color);
        z-index: 9998;
        justify-content: space-around;
        align-items: center;
        height: 65px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
    }
    
    .mobile-bottom-nav .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--text-gray);
        font-size: 0.65rem;
        font-weight: 600;
        flex: 1;
        gap: 5px;
        text-decoration: none;
        transition: color 0.3s;
    }

    .mobile-bottom-nav .nav-item i {
        font-size: 1.2rem;
    }

    .mobile-bottom-nav .nav-item.center-item {
        position: relative;
        color: var(--primary-green);
    }

    .mobile-bottom-nav .center-circle {
        background-color: var(--bg-lighter);
        width: 55px;
        height: 55px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        border: 2px solid var(--primary-green);
        position: absolute;
        top: -30px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    }
    
    .mobile-bottom-nav .center-item span {
        margin-top: 28px;
    }

    #cookieBanner {
        bottom: 65px !important;
    }
    
    .content-wrapper {
        padding-bottom: 80px !important;
    }
    .mobile-logo {
        display: block !important;
        margin-left: 10px;
    }
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 25px 15px;
    }
    .hero-steps {
        justify-content: center;
    }
    .hero-image {
        display: none;
    }
    .topbar-links {
        display: none;
    }
    .modal-large {
        width: 95%;
        flex-direction: column;
        height: 90vh;
        overflow-y: auto;
    }
    .modal-left {
        display: none;
    }
    .user-balance {
        gap: 3px;
        padding: 2px 4px;
    }
    .user-balance .currency {
        display: none;
    }
    .user-balance .amount {
        font-size: 12px;
    }
    .bonus-indicator {
        font-size: 10px !important;
        padding: 1px 4px !important;
    }
    .btn-deposit, .btn-withdraw {
        font-size: 10px !important;
        padding: 4px 6px !important;
        margin-left: 2px !important;
    }
    .btn-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
        padding: 0 !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Responsive Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.table-responsive .players-table {
    min-width: 500px;
}

