/* ============================================
   LOTTERY GAMING PORTAL - Premium Theme
   Colors: Green (button), Navy (header), Gold (secondary), Cream (bg), Grey (sub)
   ============================================ */

:root {
    /* Button background — green with dark/light gradient shades */
    --btn-primary: #10872B;
    --btn-primary-hover: #0d6b22;
    --btn-primary-light: #14a838;
    --primary-orange: #10872B;
    --primary-orange-hover: #0d6b22;
    --primary-orange-light: #14a838;
    /* Header text — navy with gradient shades */
    --header-text: #1C3C77;
    --header-text-light: #2a4d92;
    --header-text-dark: #152a5c;
    --dark-blue: #1C3C77;
    --dark-blue-light: #2a4d92;
    --dark-blue-bg: #152a5c;
    /* Alternate highlighter / secondary — gold */
    --secondary: #D89810;
    --secondary-light: #e5a820;
    --secondary-dark: #b87d0a;
    /* Page background — cream with gradient shades */
    --page-bg: #F8F8F6;
    --page-bg-dark: #eeece8;
    --page-bg-light: #fafaf8;
    --light-sky: #e8eae6;
    --light-grey: #f0f0ee;
    /* Sub-header */
    --sub-header: #919191;
    --sub-header-dark: #7a7a7a;
    --text-muted: #919191;
    --text-dark: #1C3C77;
    /* Neutrals */
    --white: #FFFFFF;
    --grey-border: #E0E0E0;
    /* Shadows — green/header tint */
    --shadow-soft: 0 4px 15px rgba(28, 60, 119, 0.08);
    --shadow-card: 0 8px 25px rgba(28, 60, 119, 0.12);
    --shadow-hover: 0 12px 35px rgba(16, 135, 43, 0.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, var(--page-bg-light) 0%, var(--page-bg) 50%, var(--page-bg-dark) 100%);
    color: var(--text-dark);
    min-height: 100vh;
    line-height: 1.6; 
}


/* ================================
   Row
================================ */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

/* ================================
   Column Base
================================ */
[class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
    position: relative;
    width: 100%;
}

/* ================================
   Default Columns
================================ */
.col-1 {
    width: 8.33%;
}

.col-2 {
    width: 16.66%;
}

.col-3 {
    width: 25%;
}

.col-4 {
    width: 33.33%;
}

.col-5 {
    width: 41.66%;
}

.col-6 {
    width: 50%;
}

.col-7 {
    width: 58.33%;
}

.col-8 {
    width: 66.66%;
}

.col-9 {
    width: 75%;
}

.col-10 {
    width: 83.33%;
}

.col-11 {
    width: 91.66%;
}

.col-12 {
    width: 100%;
}

/* ================================
   Offset
================================ */
.offset-1 {
    margin-left: 8.33%;
}

.offset-2 {
    margin-left: 16.66%;
}

.offset-3 {
    margin-left: 25%;
}

.offset-4 {
    margin-left: 33.33%;
}

.offset-5 {
    margin-left: 41.66%;
}

.offset-6 {
    margin-left: 50%;
}

/* ================================
   Small Devices (≥576px)
================================ */
@media (min-width:576px) {

    .col-sm-1 {
        width: 8.33%;
    }

    .col-sm-2 {
        width: 16.66%;
    }

    .col-sm-3 {
        width: 25%;
    }

    .col-sm-4 {
        width: 33.33%;
    }

    .col-sm-5 {
        width: 41.66%;
    }

    .col-sm-6 {
        width: 50%;
    }

    .col-sm-7 {
        width: 58.33%;
    }

    .col-sm-8 {
        width: 66.66%;
    }

    .col-sm-9 {
        width: 75%;
    }

    .col-sm-10 {
        width: 83.33%;
    }

    .col-sm-11 {
        width: 91.66%;
    }

    .col-sm-12 {
        width: 100%;
    }
}

/* ================================
   Medium Devices (≥768px)
================================ */
@media (min-width:768px) {

    .col-md-1 {
        width: 8.33%;
    }

    .col-md-2 {
        width: 16.66%;
    }

    .col-md-3 {
        width: 25%;
    }

    .col-md-4 {
        width: 33.33%;
    }

    .col-md-5 {
        width: 41.66%;
    }

    .col-md-6 {
        width: 50%;
    }

    .col-md-7 {
        width: 58.33%;
    }

    .col-md-8 {
        width: 66.66%;
    }

    .col-md-9 {
        width: 75%;
    }

    .col-md-10 {
        width: 83.33%;
    }

    .col-md-11 {
        width: 91.66%;
    }

    .col-md-12 {
        width: 100%;
    }
}

/* ================================
   Large Devices (≥992px)
================================ */
@media (min-width:992px) {

    .col-lg-1 {
        width: 8.33%;
    }

    .col-lg-2 {
        width: 16.66%;
    }

    .col-lg-3 {
        width: 25%;
    }

    .col-lg-4 {
        width: 33.33%;
    }

    .col-lg-5 {
        width: 41.66%;
    }

    .col-lg-6 {
        width: 50%;
    }

    .col-lg-7 {
        width: 58.33%;
    }

    .col-lg-8 {
        width: 66.66%;
    }

    .col-lg-9 {
        width: 75%;
    }

    .col-lg-10 {
        width: 83.33%;
    }

    .col-lg-11 {
        width: 91.66%;
    }

    .col-lg-12 {
        width: 100%;
    }
}

/* ================================
   Extra Large (≥1200px)
================================ */
@media (min-width:1200px) {

    .col-xl-1 {
        width: 8.33%;
    }

    .col-xl-2 {
        width: 16.66%;
    }

    .col-xl-3 {
        width: 25%;
    }

    .col-xl-4 {
        width: 33.33%;
    }

    .col-xl-5 {
        width: 41.66%;
    }

    .col-xl-6 {
        width: 50%;
    }

    .col-xl-7 {
        width: 58.33%;
    }

    .col-xl-8 {
        width: 66.66%;
    }

    .col-xl-9 {
        width: 75%;
    }

    .col-xl-10 {
        width: 83.33%;
    }

    .col-xl-11 {
        width: 91.66%;
    }

    .col-xl-12 {
        width: 100%;
    }
}

/* ================================
   XXL Screens (≥1400px)
================================ */
@media (min-width:1400px) {

    .col-xxl-1 {
        width: 8.33%;
    }

    .col-xxl-2 {
        width: 16.66%;
    }

    .col-xxl-3 {
        width: 25%;
    }

    .col-xxl-4 {
        width: 33.33%;
    }

    .col-xxl-5 {
        width: 41.66%;
    }

    .col-xxl-6 {
        width: 50%;
    }

    .col-xxl-7 {
        width: 58.33%;
    }

    .col-xxl-8 {
        width: 66.66%;
    }

    .col-xxl-9 {
        width: 75%;
    }

    .col-xxl-10 {
        width: 83.33%;
    }

    .col-xxl-11 {
        width: 91.66%;
    }

    .col-xxl-12 {
        width: 100%;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

/* ========== HEADER ========== */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow-soft);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark-blue);
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--header-text) 0%, var(--header-text-dark) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    font-family: "Segoe UI Emoji", "Segoe UI Symbol", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

    .header-nav a {
        padding: 0.5rem 1rem;
        border-radius: var(--radius-sm);
        font-weight: 500;
        color: var(--text-dark);
    }

        .header-nav a:hover {
            background: var(--light-sky);
            color: var(--header-text);
        }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--btn-primary-light) 0%, var(--btn-primary) 50%, var(--btn-primary-hover) 100%);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(16, 135, 43, 0.35);
}

    .btn-primary:hover {
        background: linear-gradient(135deg, var(--btn-primary) 0%, var(--btn-primary-hover) 100%);
        transform: translateY(-2px);
        box-shadow: var(--shadow-hover);
    }

    .btn-primary:active {
        transform: translateY(0);
    }

.btn-secondary {
    background: linear-gradient(135deg, var(--header-text) 0%, var(--header-text-dark) 100%);
    color: var(--white);
}

    .btn-secondary:hover {
        background: linear-gradient(135deg, var(--header-text-light) 0%, var(--header-text) 100%);
        transform: translateY(-2px);
    }

.btn-danger {
    background: #FFCDD2;
    color: #C62828;
}

    .btn-danger:hover {
        background: #EF9A9A;
    }

.btn-wallet {
    background: linear-gradient(135deg, var(--header-text) 0%, var(--header-text-dark) 100%);
    color: var(--white) !important;
    padding: 0.6rem 1.25rem;
}

    .btn-wallet:hover {
        background: linear-gradient(135deg, var(--header-text-light) 0%, var(--header-text) 100%);
        color: var(--text-dark) !important;
    }

/* ========== CONTAINER ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem;
}

/* ========== CARDS ========== */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

    .card:hover {
        box-shadow: 0 12px 35px rgba(28, 60, 119, 0.15);
    }

.card-header {
    background: linear-gradient(135deg, var(--header-text) 0%, var(--header-text-dark) 100%);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .card-header.light {
        background: var(--light-grey);
        color: var(--text-dark);
    }

/* ========== JACKPOT CARD ========== */
.jackpot-card {
    background: var(--light-grey);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    text-align: center;
    padding: 2rem;
    margin: 2rem 0;
}

.jackpot-badge {
    background: linear-gradient(135deg, var(--header-text) 0%, var(--header-text-dark) 100%);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.jackpot-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.jackpot-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.jackpot-timer {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

    .jackpot-timer span {
        color: var(--secondary);
    }

@keyframes pulse-cta {
    0%, 100% {
        box-shadow: 0 4px 14px rgba(16, 135, 43, 0.35);
    }

    50% {
        box-shadow: 0 4px 24px rgba(16, 135, 43, 0.5);
    }
}

.jackpot-card .btn-primary {
    animation: pulse-cta 2s ease-in-out infinite;
}

/* ========== QUICK LINKS ========== */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.quick-link-card {
    background: var(--light-grey);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 2px solid transparent;
}

    .quick-link-card:hover {
        border-color: var(--secondary);
        transform: translateY(-4px);
        box-shadow: var(--shadow-hover);
    }

    .quick-link-card h3 {
        color: var(--dark-blue);
        font-size: 1.1rem;
    }

/* ========== WINNERS CAROUSEL ========== */
.winners-section {
    margin: 3rem 0;
}

    .winners-section h2 {
        color: var(--dark-blue);
        margin-bottom: 1.5rem;
        font-size: 1.5rem;
    }

.winners-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.winner-card {
    flex: 0 0 280px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-soft);
    scroll-snap-align: start;
    transition: var(--transition);
}

    .winner-card:hover {
        box-shadow: var(--shadow-card);
        transform: scale(1.02);
    }

    .winner-card .ticket-no {
        font-weight: 700;
        color: var(--secondary);
        font-size: 1.1rem;
    }

    .winner-card .user-name {
        color: var(--text-dark);
        font-weight: 600;
    }

    .winner-card .prize {
        color: var(--dark-blue);
        font-size: 0.95rem;
    }

/* ========== FORMS ========== */
.form-group {
    margin-bottom: 1.25rem;
}

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
        color: var(--text-dark);
    }

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--grey-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: var(--light-grey);
    transition: var(--transition);
}

    .form-control:focus {
        outline: none;
        border-color: var(--btn-primary);
        background: var(--white);
    }

/* ========== BADGES ========== */
.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-secondary {
    background: var(--light-grey);
    color: var(--text-muted);
}

.badge-pending {
    background: #fff3cd;
    color: #856404;
}

/* ========== KYC UPLOAD ========== */
.kyc-upload-box {
    border: 2px dashed var(--grey-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    background: var(--light-grey);
    transition: var(--transition);
}

    .kyc-upload-box:hover {
        border-color: var(--secondary);
        background: rgba(216, 152, 16, 0.08);
    }

.kyc-upload-placeholder {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
}

.kyc-upload-file {
    color: var(--dark-blue);
    font-weight: 600;
    margin: 0;
}

/* ========== USDT DEPOSIT / WITHDRAW ========== */
.usdt-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.usdt-network-select {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.usdt-network-option {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border: 2px solid var(--grey-border);
    border-radius: var(--radius-md);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

    .usdt-network-option input {
        margin-right: 0.5rem;
    }

    .usdt-network-option.active,
    .usdt-network-option:hover {
        border-color: var(--btn-primary);
        background: rgba(16, 135, 43, 0.06);
    }

.usdt-network-label {
    font-weight: 600;
    color: var(--dark-blue);
}

.usdt-network-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.usdt-address-box {
    margin-bottom: 1rem;
}

.usdt-address-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.usdt-address {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 1rem;
    background: var(--light-grey);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    word-break: break-all;
    border: 1px solid var(--grey-border);
}

.btn-copy {
    flex-shrink: 0;
}

.usdt-warning {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 480px) {
    .usdt-network-select {
        grid-template-columns: 1fr;
    }
}

/* ========== TABS ========== */
.tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--light-grey);
}

.tab-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: linear-gradient(135deg, var(--header-text) 0%, var(--header-text-dark) 100%);
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

    .tab-btn.active {
        background: linear-gradient(135deg, var(--btn-primary-light) 0%, var(--btn-primary) 100%);
    }

    .tab-btn:not(.active):hover {
        background: linear-gradient(135deg, var(--header-text-light) 0%, var(--header-text) 100%);
    }

.tab-content {
    display: none;
}

    .tab-content.active {
        display: block;
    }

/* ========== AUTH CARD ========== */
.auth-card {
    max-width: 460px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--light-grey);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    position: relative;
}

    .auth-card .btn {
        width: 100%;
        padding: 0.85rem;
        margin-top: 0.5rem;
    }

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

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

/* Auth-specific layout + helpers */
body.auth-page {
    background: linear-gradient(135deg, var(--page-bg-light) 0%, var(--page-bg) 40%, var(--page-bg-dark) 100%), url('../images/logo.svg') no-repeat right bottom fixed;
    background-size: cover, auto 260px;
}

.password-wrapper {
    position: relative;
}

    .password-wrapper .form-control {
        padding-right: 3rem;
    }

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--sub-header);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.15rem 0.25rem;
}

    .password-toggle:hover {
        color: var(--header-text);
    }

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0.25rem 0 0.75rem;
    font-size: 0.9rem;
}

    .auth-row .checkbox-label {
        margin: 0;
    }

.auth-link-small {
    font-size: 0.85rem;
    color: var(--btn-primary);
    font-weight: 600;
}

    .auth-link-small:hover {
        text-decoration: underline;
    }

.captcha-box {
    margin: 0.75rem 0 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background: var(--white);
    border: 1px solid var(--grey-border);
    box-shadow: 0 2px 10px rgba(28, 60, 119, 0.05);
}

    .captcha-box .checkbox-label {
        margin: 0;
    }

.phone-input-row {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

.dial-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.9rem;
    border-radius: var(--radius-md);
    background: var(--white);
    border: 2px solid var(--grey-border);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--header-text);
    white-space: nowrap;
}

.phone-input-row .form-control {
    flex: 1;
}

/* ========== TICKET PURCHASE ========== */
.ticket-module {
    background: var(--light-grey);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

.ticket-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

    .quantity-selector button {
        width: 44px;
        height: 44px;
        border: none;
        background: linear-gradient(135deg, var(--header-text) 0%, var(--header-text-dark) 100%);
        color: var(--white);
        border-radius: var(--radius-md);
        font-size: 1.5rem;
        cursor: pointer;
        transition: var(--transition);
    }

        .quantity-selector button:hover {
            background: linear-gradient(135deg, var(--header-text-light) 0%, var(--header-text) 100%);
        }

    .quantity-selector span {
        min-width: 40px;
        text-align: center;
        font-weight: 700;
        font-size: 1.25rem;
    }

.total-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin: 1rem 0;
}

.wallet-balance-card {
    background: linear-gradient(135deg, var(--header-text) 0%, var(--header-text-dark) 100%);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

    .wallet-balance-card .balance {
        font-size: 1.25rem;
        font-weight: 700;
    }

/* ========== TABLES ========== */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

    .data-table th,
    .data-table td {
        padding: 1rem;
        text-align: left;
        border-bottom: 1px solid var(--grey-border);
    }

    .data-table th {
        background: linear-gradient(180deg, var(--page-bg-light) 0%, var(--light-sky) 100%);
        color: var(--header-text);
        font-weight: 600;
    }

    .data-table tr:hover {
        background: var(--light-grey);
    }

.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-success {
    background: #C8E6C9;
    color: #2E7D32;
}

.badge-pending {
    background: #FFF9C4;
    color: #F57F17;
}

.badge-danger {
    background: #FFCDD2;
    color: #C62828;
}

/* ========== FOOTER ========== */
.site-footer {
    background: linear-gradient(135deg, var(--header-text-dark) 0%, var(--header-text) 100%);
    color: var(--white);
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

/* ========== UTILITIES ========== */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

/* ========== MOBILE MENU (hamburger) ========== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--header-text);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .header-nav {
        display: none;
        width: 100%;
        flex-direction: column;
    }

        .header-nav.open {
            display: flex;
        }
}

/* ========== BUY TICKET PAGE (enhanced) ========== */
.buy-ticket-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 992px) {
    .buy-ticket-layout {
        grid-template-columns: 1fr;
    }
}

.lottery-option {
    background: var(--light-grey);
    border: 2px solid var(--grey-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

    .lottery-option:hover {
        border-color: var(--secondary);
        box-shadow: var(--shadow-soft);
    }

    .lottery-option.active {
        border-color: var(--btn-primary);
        background: rgba(16, 135, 43, 0.08);
        box-shadow: 0 0 0 1px var(--btn-primary);
    }

    .lottery-option .lottery-name {
        font-weight: 700;
        color: var(--header-text);
        font-size: 1.1rem;
    }

    .lottery-option .lottery-meta {
        font-size: 0.9rem;
        color: var(--sub-header);
        margin-top: 0.35rem;
    }

    .lottery-option .lottery-jackpot {
        color: var(--secondary);
        font-weight: 700;
        margin-top: 0.5rem;
    }

.quick-qty-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

    .quick-qty-btns button {
        padding: 0.4rem 0.9rem;
        border: 2px solid var(--grey-border);
        background: var(--white);
        border-radius: var(--radius-sm);
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition);
    }

        .quick-qty-btns button:hover, .quick-qty-btns button.active {
            border-color: var(--btn-primary);
            background: rgba(16, 135, 43, 0.1);
            color: var(--btn-primary);
        }

.order-summary-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 1.5rem;
    position: sticky;
    top: 100px;
}

    .order-summary-card h3 {
        color: var(--header-text);
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
        border-bottom: 2px solid var(--light-sky);
    }

.order-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

    .order-summary-row.total {
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--secondary);
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 2px solid var(--grey-border);
    }

.promo-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

    .promo-row input {
        flex: 1;
    }

.recent-tickets-list {
    list-style: none;
}

    .recent-tickets-list li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.6rem 0;
        border-bottom: 1px solid var(--grey-border);
        font-size: 0.9rem;
    }

        .recent-tickets-list li:last-child {
            border-bottom: none;
        }

    .recent-tickets-list .ticket-num {
        font-weight: 700;
        color: var(--secondary);
    }

.draw-countdown {
    background: linear-gradient(135deg, var(--header-text-dark) 0%, var(--header-text) 50%, var(--header-text-light) 100%);
    color: var(--white);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

    .draw-countdown span {
        color: var(--secondary-light);
        font-weight: 700;
    }

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
}

    .checkbox-label input {
        margin-top: 0.2rem;
    }

.lucky-pick-btn {
    padding: 0.5rem 1rem;
    border: 2px dashed var(--secondary);
    background: transparent;
    color: var(--secondary);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 1rem;
}

    .lucky-pick-btn:hover {
        background: rgba(216, 152, 16, 0.1);
    }

.selected-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0;
    min-height: 2rem;
}

    .selected-numbers span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 36px;
        height: 36px;
        background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
        color: var(--white);
        border-radius: 50%;
        font-weight: 700;
        font-size: 0.9rem;
    }

.insufficient-balance {
    background: #FFEBEE;
    color: #C62828;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

    .insufficient-balance.show {
        display: block;
    }


/* Scrollbar width */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

/* Scrollbar track (background) */
::-webkit-scrollbar-track {
    background: #13131A;
    border-radius: 10px;
}

/* Scrollbar handle */
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #5456C9, #3f41a8);
    border-radius: 10px;
    border: 2px solid #13131A;
    transition: all 0.3s ease;
}

    /* Hover effect */
    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, #6b6df0, #5456C9);
    }

    /* Active click */
    ::-webkit-scrollbar-thumb:active {
        background: #ffffff;
    }

/* Firefox support */
* {
    scrollbar-width: thin;
    scrollbar-color: #5456C9 #13131A;
}
