:root {
    --bg-base: #0a1a12;
    --bg-card: #112218;
    --bg-sidebar: #0d2118;
    --bg-header: #112218;
    --bg-input: #0a1a12;

    --color-primary: #AAFFC7;
    --color-primary-light: rgba(170, 255, 199, 0.2);
    --color-primary-dark: #66cc8a;
    --color-secondary: #88ddb0;
    --color-accent: #d4ffe6;
    --color-accent-dark: #b0ffd4;

    --border-color: #1a3d28;
    --border-glow: rgba(170, 255, 199, 0.3);

    --text-dark: #e8fff0;
    --text-light: #ffffff;
    --text-muted: #7ab894;

    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

    --shadow-3d-out: 4px 4px 12px #050d08, -4px -4px 12px #172e1e;
    --shadow-3d-in: inset 3px 3px 6px #050d08, inset -3px -3px 6px #172e1e;
    --shadow-3d-btn: 0 4px 0 #1a5a30;
    --shadow-glow: 0 0 20px rgba(170, 255, 199, 0.35);
    --shadow-gold-glow: 0 0 20px rgba(212, 255, 230, 0.3);
}

.hide { display: none !important; }

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { max-width: 100vw; overflow-x: hidden; width: 100%; }

body {
    background-color: var(--bg-base);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.5;
    min-height: 100vh;
}

/* ===== APP LAYOUT ===== */
.app-layout { display: flex; min-height: 100vh; width: 100vw; max-width: 100vw; overflow-x: hidden; }

/* ===== SIDEBAR ===== */
.app-sidebar {
    width: 250px;
    background-color: var(--bg-sidebar);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 100;
    border-right: 1.5px solid var(--border-color);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
}

.sidebar-logo-container {
    height: 70px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1.5px solid var(--border-color);
}

.sidebar-logo-container i { font-size: 24px; color: var(--color-accent); filter: drop-shadow(0 0 8px rgba(228, 214, 169, 0.4)); }
.logo-text { font-family: var(--font-heading); font-size: 22px; font-weight: 800; color: var(--color-accent); letter-spacing: -0.5px; }

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 16px 12px;
    gap: 4px;
    overflow-y: auto;
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 16px;
    border-radius: var(--border-radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 12.5px;
    transition: var(--transition-fast);
    border: 1.5px solid transparent;
}

.nav-item i { font-size: 15px; width: 20px; text-align: center; }
.nav-item:hover { background-color: var(--color-primary-light); color: var(--text-dark); }

.nav-item.active {
    background: linear-gradient(135deg, rgba(98, 43, 20, 0.2), rgba(98, 43, 20, 0.05));
    color: var(--color-accent);
    border-color: var(--border-color);
    box-shadow: var(--shadow-3d-out);
}

.nav-item.active i { color: var(--color-accent); }
.sidebar-divider { height: 1.5px; background-color: var(--border-color); margin: 12px 4px; }

/* ===== MAIN CONTENT ===== */
.app-main-wrapper { flex-grow: 1; display: flex; flex-direction: column; height: 100vh; overflow: hidden; }

.app-header {
    height: 70px;
    background-color: var(--bg-header);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 30px;
    flex-shrink: 0;
    border-bottom: 1.5px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-logo-mobile { display: none; font-family: var(--font-heading); font-size: 20px; font-weight: 800; color: var(--color-accent); }
.header-right { display: flex; align-items: center; gap: 14px; }

.lang-selector-btn {
    background-color: var(--bg-card);
    border: 1.5px solid var(--border-color);
    color: var(--text-dark);
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-3d-out);
    transition: var(--transition-fast);
}

.lang-selector-btn:hover { border-color: var(--color-primary); transform: translateY(-1px); }

.auth-buttons { display: flex; align-items: center; gap: 10px; }

.btn-header-signup {
    background-color: var(--bg-card);
    border: 1.5px solid var(--border-color);
    color: var(--text-dark);
    font-weight: 700;
    padding: 8px 18px;
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-3d-out);
    transition: var(--transition-fast);
    font-size: 12px;
}

.btn-header-signup:hover { border-color: var(--color-primary); transform: translateY(-1px); }

.btn-header-login {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border: none;
    color: #ffffff;
    font-weight: 700;
    padding: 10px 22px;
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-3d-btn);
    transition: var(--transition-fast);
    font-size: 12px;
}

.btn-header-login:hover { transform: translateY(2px); box-shadow: 0 2px 0 #3b1a8b; }
.btn-header-login:active { transform: translateY(4px); box-shadow: none; }

/* ===== USER WIDGET ===== */
.user-profile-widget {
    display: flex;
    align-items: center;
    gap: 14px;
    background-color: var(--bg-card);
    border: 1.5px solid var(--border-color);
    padding: 6px 14px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-3d-out);
}

.player-balances { display: flex; flex-direction: column; text-align: right; }
.balance-title { font-size: 9px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.balance-value { font-size: 14px; font-weight: 800; color: var(--color-accent); }

.btn-action-deposit {
    background: linear-gradient(135deg, var(--color-success), #059669);
    color: #ffffff;
    font-weight: 700;
    padding: 8px 14px;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    box-shadow: 0 4px 0 #047857;
    transition: var(--transition-fast);
    font-size: 12px;
}

.btn-action-deposit:hover { transform: translateY(2px); box-shadow: 0 2px 0 #047857; }

.btn-action-withdraw {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    color: #ffffff;
    font-weight: 700;
    padding: 8px 14px;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    box-shadow: 0 4px 0 #b45309;
    transition: var(--transition-fast);
    font-size: 12px;
}

.btn-action-withdraw:hover { transform: translateY(2px); box-shadow: 0 2px 0 #b45309; }

.btn-logout-icon { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 18px; transition: var(--transition-fast); }
.btn-logout-icon:hover { color: var(--color-danger); }

/* ===== VIEW CONTAINER ===== */
.app-view-container { flex-grow: 1; overflow-y: auto; background-color: var(--bg-base); }
.portal-view { display: none; }
.portal-view.active { display: block; }

/* ===== HERO BANNER ===== */
.hero-slider-section { padding: 24px; }

.banner-slide {
    height: 300px;
    background: linear-gradient(135deg, #2D1508, #4A2512, #2D1508);
    border-radius: var(--border-radius-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 60px;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    border: 1.5px solid var(--border-color);
    box-shadow: var(--shadow-glow), var(--shadow-3d-out);
}

.banner-content { display: flex; flex-direction: column; gap: 12px; z-index: 10; }

.badge-series {
    background-color: rgba(228, 214, 169, 0.15);
    border: 1.5px solid var(--color-accent);
    color: var(--color-accent);
    align-self: flex-start;
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 11px;
}

.banner-headline {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
    text-shadow: 0 0 30px rgba(228, 214, 169, 0.4);
}

.banner-sub { font-size: 15px; font-weight: 700; color: var(--text-muted); letter-spacing: 1px; }

.btn-banner-details {
    align-self: flex-start;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    color: #000;
    border: none;
    font-weight: 800;
    padding: 12px 28px;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 4px 0 #92400e;
    transition: var(--transition-fast);
    font-size: 13px;
}

.btn-banner-details:hover { transform: translateY(2px); box-shadow: 0 2px 0 #92400e; }

.banner-graphics { display: flex; flex-direction: column; align-items: flex-end; gap: 20px; }
.chest-box i { font-size: 100px; color: var(--color-accent); filter: drop-shadow(0 0 20px rgba(228, 214, 169, 0.4)); }

.badge-tag {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border: 1.5px solid var(--color-secondary);
    color: var(--color-accent);
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 11px;
}

/* ===== NEWS TICKER ===== */
.news-ticker-container {
    height: 44px;
    background-color: var(--bg-card);
    display: flex;
    align-items: center;
    border-bottom: 1.5px solid var(--border-color);
}

.ticker-bell {
    width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    border-right: 1.5px solid var(--border-color);
    color: var(--color-accent);
}

.ticker-content { flex-grow: 1; overflow: hidden; position: relative; }

.ticker-text {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: marquee 25s linear infinite;
    font-weight: 700;
    color: var(--text-muted);
}

@keyframes marquee { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-100%, 0, 0); } }

/* ===== PROVIDERS STRIP ===== */
.providers-strip-container {
    padding: 12px 24px;
    background: rgba(38, 22, 16, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1.5px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 16px;
    overflow-x: auto;
}

/* ===== CATEGORY TABS ===== */
.category-tabs-bar {
    background-color: var(--bg-card);
    padding: 0 10px;
    display: flex;
    overflow-x: auto;
    gap: 4px;
    border-bottom: 2px solid var(--color-primary);
}

.cat-tab-btn {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 14px 18px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.cat-tab-btn i { font-size: 17px; }
.cat-tab-btn:hover { color: var(--color-accent); background-color: var(--color-primary-light); }

.cat-tab-btn.active {
    color: var(--color-accent);
    background-color: var(--color-primary-light);
    border-bottom: 2px solid var(--color-accent);
}

/* ===== GAME GRID ===== */
.games-section-container { padding: 24px; }

.section-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
    border-left: 4px solid var(--color-accent);
    padding-left: 12px;
}

.games-layout-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }

.game-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1.5px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 220px;
    box-shadow: var(--shadow-3d-out);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    cursor: pointer;
}

.game-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); }

.game-card-banner {
    flex-grow: 1;
    background: linear-gradient(135deg, rgba(98, 43, 20, 0.1), rgba(228, 214, 169, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1.5px solid var(--border-color);
}

.game-icon-fallback { font-size: 40px; color: var(--color-primary); opacity: 0.4; }

.game-card-api-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: var(--bg-card);
    border: 1.5px solid var(--border-color);
    color: var(--color-accent);
    font-weight: 800;
    font-size: 9px;
    padding: 2px 8px;
    border-radius: 6px;
}

.game-card-details {
    padding: 12px;
    background-color: var(--bg-card);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.game-card-category { font-size: 9px; text-transform: uppercase; color: var(--color-accent); font-weight: 800; }
.game-card-details h4 { color: var(--text-dark); font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-card-provider { font-size: 10px; color: var(--text-muted); }

/* ===== MODALS ===== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: rgba(15, 10, 30, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.active { display: flex; animation: modalFadeIn var(--transition-fast); }
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-content {
    width: 440px;
    background-color: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), var(--shadow-glow);
    animation: modalSlideUp var(--transition-normal);
}

@keyframes modalSlideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-dark);
    border-bottom: 1.5px solid var(--border-color);
    padding-bottom: 12px;
}

.modal-header h3 { font-family: var(--font-heading); font-size: 16px; font-weight: 800; }

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover { color: var(--color-danger); }

/* ===== FORMS ===== */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }

.form-group input, .form-group select {
    background-color: var(--bg-input);
    border: 1.5px solid var(--border-color);
    color: var(--text-dark);
    padding: 11px 14px;
    border-radius: var(--border-radius-sm);
    outline: none;
    font-family: var(--font-body);
    box-shadow: var(--shadow-3d-in);
}

.form-group input:focus, .form-group select:focus { border-color: var(--color-primary); box-shadow: 0 0 0 2px var(--border-glow); }

/* ===== AUTH BOX ===== */
.auth-box-card {
    width: 420px;
    background-color: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), var(--shadow-glow);
    border: 1.5px solid var(--border-color);
    animation: modalSlideUp var(--transition-normal);
}

.auth-box-header {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    height: 54px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
    font-weight: 800;
    font-size: 16px;
    font-family: var(--font-heading);
}

.auth-box-close { background: none; border: none; color: #ffffff; font-size: 20px; cursor: pointer; transition: var(--transition-fast); }
.auth-box-close:hover { opacity: 0.8; }

.auth-box-body { padding: 28px; color: var(--text-dark); }

.auth-logo-brand-center {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
}

.auth-brand-purple { color: var(--color-primary); }
.auth-brand-gold { color: var(--color-accent); }

.brand-auth-form { display: flex; flex-direction: column; gap: 16px; }

.brand-form-group { display: flex; flex-direction: column; gap: 6px; }
.brand-form-group label { font-size: 12px; font-weight: 700; color: var(--text-dark); }

.brand-form-group input {
    background-color: var(--bg-input);
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-dark);
    padding: 11px 14px;
    font-size: 13px;
    outline: none;
    font-family: var(--font-body);
    box-shadow: var(--shadow-3d-in);
    transition: var(--transition-fast);
}

.brand-form-group input::placeholder { color: var(--text-muted); }
.brand-form-group input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 2px var(--border-glow); }

.password-input-wrapper { position: relative; width: 100%; }
.password-input-wrapper input { width: 100%; padding-right: 42px; }

.btn-toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 15px;
}

.forgot-password-row { text-align: right; }
.forgot-password-row a { color: var(--color-primary); font-size: 12px; text-decoration: none; font-weight: 700; }
.forgot-password-row a:hover { text-decoration: underline; }

.btn-auth-submit {
    background-color: var(--color-secondary);
    color: var(--text-muted);
    border: none;
    border-radius: 6px;
    padding: 13px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-body);
    transition: var(--transition-fast);
}

.btn-auth-submit.active-filled, .btn-auth-submit:hover {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    box-shadow: var(--shadow-3d-btn);
    color: #ffffff;
}

.auth-toggle-footer-text { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 10px; }
.txt-link-gold { color: var(--color-accent); font-weight: 700; text-decoration: none; }
.txt-link-gold:hover { text-decoration: underline; }

.phone-input-wrapper {
    display: flex;
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    background-color: var(--bg-input);
    box-shadow: var(--shadow-3d-in);
}

.phone-input-wrapper:focus-within { border-color: var(--color-primary); }

.phone-prefix-flag {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-card);
    padding: 0 14px;
    border-right: 1.5px solid var(--border-color);
    color: var(--text-dark);
    font-weight: 700;
    font-size: 12px;
}

.phone-input-wrapper input { flex-grow: 1; border: none !important; border-radius: 0 !important; padding: 11px 14px; outline: none; font-size: 13px; color: var(--text-dark); box-shadow: none !important; }

.password-checklist-rules { display: flex; flex-direction: column; gap: 5px; }
.check-rule-item { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.check-rule-item i { color: var(--color-secondary); font-size: 13px; }
.check-rule-item.valid { color: var(--color-success); }
.check-rule-item.valid i { color: var(--color-success); }

.disclaimer-consent-text { font-size: 11px; color: var(--text-muted); text-align: center; line-height: 1.4; margin-top: 10px; }

.currency-custom-select {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--bg-input);
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    padding: 11px 14px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-dark);
    position: relative;
    box-shadow: var(--shadow-3d-out);
}

.flag-bd {
    width: 20px; height: 20px; border-radius: 50%;
    background-color: #006a4e; position: relative;
    display: inline-block; overflow: hidden;
}

.flag-bd::after {
    content: ''; position: absolute;
    width: 10px; height: 10px;
    background-color: #f42a41; border-radius: 50%;
    left: 50%; top: 50%; transform: translate(-50%, -50%);
}

.select-caret { position: absolute; right: 16px; color: var(--text-muted); }

/* ===== STATIC PAGES ===== */
.static-page-card {
    max-width: 800px;
    margin: 30px auto;
    padding: 32px;
    background-color: var(--bg-card);
    color: var(--text-dark);
    border-radius: var(--border-radius-lg);
    border: 1.5px solid var(--border-color);
    box-shadow: var(--shadow-3d-out);
}

.static-page-card h2 { font-family: var(--font-heading); margin-bottom: 16px; color: var(--color-accent); font-size: 20px; }
.static-page-card p { color: var(--text-muted); font-size: 13px; line-height: 1.7; }

.winners-mock-list { display: flex; flex-direction: column; gap: 10px; list-style: none; margin-top: 16px; }

.winners-mock-list li {
    padding: 14px;
    background: var(--color-primary-light);
    border-radius: var(--border-radius-sm);
    border: 1.5px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    font-weight: 700;
}

.winners-mock-list li strong { color: var(--color-accent); }

/* ===== TABLES ===== */
.table-wrapper-3d { overflow-x: auto; width: 100%; }

.custom-table-3d { width: 100%; border-collapse: collapse; text-align: left; }

.custom-table-3d th {
    padding: 12px;
    font-weight: 800;
    color: var(--text-muted);
    border-bottom: 1.5px solid var(--border-color);
    font-size: 10px;
    text-transform: uppercase;
}

.custom-table-3d td {
    padding: 12px;
    font-size: 12px;
    color: var(--text-dark);
    background-color: var(--bg-card);
    border-bottom: 1px solid rgba(45, 31, 94, 0.5);
}

.custom-table-3d tr:last-child td { border-bottom: none; }

/* ===== FLOATING WIDGETS ===== */
.floating-widgets-box { position: fixed; right: 20px; bottom: 40px; display: flex; flex-direction: column; gap: 14px; z-index: 999; }

.wheel-trigger-widget {
    width: 56px; height: 56px;
    background: radial-gradient(circle, var(--color-accent), #C4B78E);
    border: 3px solid rgba(228, 214, 169, 0.3);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-gold-glow);
    animation: rotateWheel 12s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

@keyframes rotateWheel { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.wheel-mock-inner { font-size: 22px; color: #000; }

.calendar-trigger-widget {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border: 3px solid rgba(98, 43, 20, 0.3);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    transition: var(--transition-fast);
}

.calendar-trigger-widget:hover, .wheel-trigger-widget:hover { transform: scale(1.1) translateY(-4px); }

/* ===== TOAST ===== */
.toast-notification {
    position: fixed;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--bg-card), #2E1A10);
    border: 1.5px solid var(--color-primary);
    border-radius: 30px;
    padding: 12px 28px;
    color: var(--text-dark);
    font-weight: 700;
    box-shadow: var(--shadow-glow);
    z-index: 10000;
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 12px;
}

.toast-notification.show { bottom: 30px; }

/* ===== LIVE CHAT ===== */
.live-chat-support-widget { position: fixed; bottom: 180px; right: 20px; z-index: 9999; display: flex; flex-direction: column; align-items: flex-end; }

.live-chat-bubble-btn {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #ffffff;
    border: 3px solid rgba(98, 43, 20, 0.3);
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    position: relative;
    transition: var(--transition-fast);
}

.live-chat-bubble-btn:hover { transform: scale(1.08); }

.online-indicator-ping {
    position: absolute;
    top: 2px; right: 2px;
    width: 14px; height: 14px;
    background-color: var(--color-success);
    border: 2.5px solid var(--bg-base);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-success);
}

.live-chat-window {
    width: 320px;
    height: 400px;
    background-color: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-3d-out);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    bottom: 70px;
    right: 0;
    z-index: 10000;
    animation: chatSlideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

@keyframes chatSlideUp { from { opacity: 0; transform: translateY(30px) scale(0.9); } to { opacity: 1; transform: translateY(0) scale(1); } }

.live-chat-header {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1.5px solid var(--border-color);
    color: #ffffff;
}

.chat-agent-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.chat-close-btn { background: none; border: none; color: #ffffff; font-size: 16px; cursor: pointer; }

.live-chat-body {
    flex-grow: 1;
    padding: 14px;
    overflow-y: auto;
    background-color: var(--bg-base);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.live-chat-footer {
    padding: 10px 14px;
    border-top: 1.5px solid var(--border-color);
    display: flex;
    gap: 8px;
    background-color: var(--bg-card);
}

.live-chat-footer input {
    flex-grow: 1;
    border: 1.5px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 14px;
    outline: none;
    font-size: 12px;
    background: var(--bg-input);
    color: var(--text-dark);
}

.live-chat-footer button {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #ffffff;
    border: none;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.mobile-menu-open { overflow: hidden; }
.header-left-mobile { display: none; align-items: center; gap: 10px; }
.mobile-menu-btn { display: none; background: none; border: none; color: var(--color-accent); font-size: 22px; cursor: pointer; padding: 4px; }
.mobile-sidebar-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 9998; opacity: 0; transition: opacity 0.3s; }
.mobile-sidebar-overlay.open { display: block; opacity: 1; }
.mobile-sidebar { position: fixed; top: 0; left: 0; width: 280px; height: 100%; background: var(--bg-sidebar); z-index: 9999; transform: translateX(-100%); transition: transform 0.3s ease; overflow-y: auto; box-shadow: 4px 0 20px rgba(0,0,0,0.4); }
.mobile-sidebar.open { transform: translateX(0); }
.mobile-sidebar-header { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1.5px solid var(--border-color); background: var(--bg-header); }
.mobile-sidebar-header .fa-crown { color: var(--color-accent); font-size: 20px; }
.mobile-sidebar-header .logo-text { font-family: var(--font-heading); font-size: 16px; font-weight: 800; color: var(--color-accent); flex: 1; }
.mobile-menu-close { background: none; border: none; color: var(--text-muted); font-size: 18px; cursor: pointer; padding: 4px 8px; }
.mobile-sidebar-nav { padding: 8px 0; }
.mobile-sidebar-nav .nav-item { display: flex; align-items: center; gap: 12px; padding: 14px 20px; color: var(--text-muted); text-decoration: none; font-size: 13px; font-weight: 600; transition: var(--transition-fast); border-left: 3px solid transparent; }
.mobile-sidebar-nav .nav-item i { width: 18px; text-align: center; font-size: 15px; }
.mobile-sidebar-nav .nav-item:hover { background: var(--bg-card); color: var(--text-dark); }
.mobile-sidebar-nav .nav-item.active { color: var(--color-accent); background: var(--bg-card); border-left-color: var(--color-accent); }
.mobile-sidebar-nav .sidebar-divider { height: 1px; background: var(--border-color); margin: 8px 20px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .app-layout { flex-direction: column; }
    .app-sidebar { display: none; }
    .header-left-mobile { display: flex; }
    .mobile-menu-btn { display: flex; }
    .header-logo-mobile { display: block; }
    .header-right { flex: 1; }
    .sidebar-divider { display: none; }
    .app-main-wrapper { height: auto; overflow: visible; }
    .app-header { padding: 0 16px; height: 60px; justify-content: space-between; }
    .header-logo-mobile { display: block; }
    .hero-slider-section { padding: 12px; }
    .banner-slide { height: 200px; padding: 20px 30px; }
    .banner-headline { font-size: 32px; }
    .banner-sub { font-size: 12px; }
    .chest-box { display: none; }
    .games-section-container { padding: 16px; }
    .games-layout-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
    .game-card { height: 180px; }
}

@media (max-width: 768px) {
    .modal-overlay .modal-content, .modal-overlay .auth-box-card { width: 95vw !important; max-width: 95vw !important; padding: 16px !important; border-radius: 12px !important; }
    .app-header { padding: 0 12px !important; height: auto !important; min-height: 60px !important; flex-direction: column !important; align-items: stretch !important; gap: 8px !important; padding-top: 8px !important; padding-bottom: 8px !important; }
    .header-right { width: 100%; justify-content: space-between !important; }
    .user-profile-widget { flex-grow: 1; gap: 6px !important; padding: 4px 8px !important; justify-content: space-between; }
    .balance-value { font-size: 11px !important; }
    .btn-action-deposit, .btn-action-withdraw { padding: 6px 10px !important; font-size: 11px !important; }
    .static-page-card { margin: 16px 8px !important; padding: 16px !important; border-radius: 12px !important; }
    .contact-links-grid { grid-template-columns: 1fr !important; }
    .news-ticker-container { font-size: 11px !important; }
    .games-layout-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important; gap: 10px !important; }
    .game-card { height: 175px !important; }
    .game-card-banner { height: 105px !important; }
    .live-chat-window { width: 90vw !important; max-width: 320px !important; }
}

@media (max-width: 480px) {
    .app-header { min-height: 56px !important; }
    .header-logo-mobile { font-size: 18px !important; }
    .btn-action-deposit, .btn-action-withdraw { padding: 5px 8px !important; font-size: 10px !important; }
    .banner-slide { height: 140px !important; padding: 12px 16px !important; }
    .banner-headline { font-size: 22px !important; }
    .banner-sub { font-size: 10px !important; }
    .btn-banner-details { padding: 6px 14px !important; font-size: 10px !important; }
    .category-tabs-bar { padding: 6px 4px !important; gap: 2px !important; }
    .cat-tab-btn { padding: 6px 8px !important; font-size: 9px !important; }
    .games-layout-grid { grid-template-columns: 1fr 1fr !important; }
    .custom-table-3d th, .custom-table-3d td { padding: 8px 6px !important; font-size: 10px !important; }
}

@media (max-width: 380px) {
    .btn-action-deposit, .btn-action-withdraw { padding: 4px 6px !important; font-size: 9.5px !important; }
    .header-logo-mobile { font-size: 16px !important; }
    .games-layout-grid { grid-template-columns: 1fr 1fr !important; gap: 6px !important; }
    .game-card { height: 150px !important; }
    .game-card-banner { height: 85px !important; }
    .banner-slide { height: 120px !important; padding: 8px 12px !important; }
    .banner-headline { font-size: 18px !important; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background-color: var(--border-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background-color: var(--color-primary); }

img { max-width: 100%; height: auto; }
input, select, textarea { max-width: 100% !important; box-sizing: border-box !important; }

/* ═══════════════════════════════════════════════════
   PREMIUM UPGRADES
   ═══════════════════════════════════════════════════ */

/* ─── GAME SEARCH BAR ─── */
.game-search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: 30px;
    padding: 10px 20px;
    margin: 12px 24px 0;
    box-shadow: var(--shadow-3d-in);
    transition: var(--transition-fast);
}
.game-search-bar:focus-within { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(170,255,199,.15); }
.game-search-bar i { color: var(--text-muted); font-size: 14px; }
.game-search-bar input {
    flex: 1; border: none; background: transparent; outline: none;
    color: var(--text-dark); font-size: 13px; font-family: var(--font-body);
}
.game-search-bar input::placeholder { color: var(--text-muted); }

/* ─── PROVIDERS STRIP ─── */
.providers-strip {
    display: flex; gap: 10px; padding: 14px 24px;
    overflow-x: auto; background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}
.provider-chip {
    display: flex; align-items: center; gap: 6px;
    background: rgba(170,255,199,.08); border: 1px solid var(--border-color);
    border-radius: 20px; padding: 6px 14px; font-size: 11px; font-weight: 700;
    color: var(--text-muted); white-space: nowrap; flex-shrink: 0;
    transition: var(--transition-fast); cursor: default;
}
.provider-chip i { color: var(--color-accent); font-size: 10px; }
.provider-chip:hover { border-color: var(--color-primary); color: var(--text-dark); background: rgba(170,255,199,.15); }

/* ─── GAME DEMO BADGE ─── */
.game-demo-badge {
    position: absolute; bottom: 8px; left: 8px;
    background: linear-gradient(135deg, var(--color-success), #059669);
    color: #fff; font-weight: 800; font-size: 9px;
    padding: 3px 8px; border-radius: 6px;
    display: flex; align-items: center; gap: 4px;
}
.game-api-badge {
    position: absolute; bottom: 8px; right: 8px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff; font-weight: 800; font-size: 9px;
    padding: 3px 8px; border-radius: 6px;
    display: flex; align-items: center; gap: 4px;
}

/* ─── PROMO CARDS ─── */
.promo-cards-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px;
}
.promo-card {
    background: var(--bg-base); border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-md); padding: 22px; text-align: center;
    transition: var(--transition-fast); position: relative; overflow: hidden;
}
.promo-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}
.promo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); border-color: var(--color-primary); }
.promo-icon { font-size: 32px; color: var(--color-accent); margin-bottom: 12px; }
.promo-card h3 { font-family: var(--font-heading); font-size: 15px; font-weight: 800; color: var(--text-dark); margin-bottom: 8px; }
.promo-card p { font-size: 12px; color: var(--text-muted); line-height: 1.5; margin-bottom: 10px; }
.promo-badge {
    display: inline-block; background: rgba(16,185,129,.12); color: var(--color-success);
    font-weight: 800; font-size: 9px; padding: 3px 10px; border-radius: 20px;
    border: 1px solid var(--color-success);
}

/* ─── PREMIUM ANIMATIONS ─── */

/* Shimmer effect on banner */
.banner-slide::after {
    content: ''; position: absolute; top: 0; left: -150%; width: 150%; height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(212,255,230,.06) 50%, transparent 100%);
    animation: shimmerSlide 4s ease-in-out infinite;
}
@keyframes shimmerSlide {
    0% { left: -150%; }
    100% { left: 150%; }
}

/* Pulsing glow on active nav */
.nav-item.active { animation: navPulse 3s ease-in-out infinite; }
@keyframes navPulse {
    0%, 100% { box-shadow: var(--shadow-3d-out); }
    50% { box-shadow: var(--shadow-3d-out), 0 0 12px rgba(170,255,199,.2); }
}

/* Game card premium hover */
.game-card:hover .game-card-banner { background: linear-gradient(135deg, rgba(170,255,199,.2), rgba(212,255,230,.1)); }
.game-card:hover .game-icon-fallback { opacity: .7; transform: scale(1.1); filter: drop-shadow(0 0 10px rgba(170,255,199,.5)); }
.game-icon-fallback { transition: all var(--transition-fast); }

/* Floating widgets hover glow */
.wheel-trigger-widget:hover { box-shadow: 0 0 30px rgba(212,255,230,.5); }
.calendar-trigger-widget:hover { box-shadow: 0 0 30px rgba(170,255,199,.5); }

/* Crash multiplier pulse animation */
.crash-anim {
    animation: crashPulse .5s ease-in-out infinite alternate;
}
@keyframes crashPulse {
    0% { text-shadow: 0 0 20px rgba(212,255,230,.4); }
    100% { text-shadow: 0 0 40px rgba(212,255,230,.8), 0 0 60px rgba(212,255,230,.3); }
}

/* Slot reel spin */
.reel-spin { animation: reelBlur .08s linear infinite; }
@keyframes reelBlur {
    0% { filter: blur(2px); transform: translateY(-2px); }
    50% { filter: blur(0); transform: translateY(0); }
    100% { filter: blur(2px); transform: translateY(2px); }
}

/* Gold shimmer text for banner headline */
.banner-headline {
    background: linear-gradient(135deg, #d4ffe6 0%, #e8fff0 25%, #d4ffe6 50%, #b0ffd4 75%, #d4ffe6 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShimmer 3s linear infinite;
}
@keyframes goldShimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Toast slide up */
.toast-notification.show { animation: toastBounce .4s cubic-bezier(.175,.885,.32,1.275); }
@keyframes toastBounce {
    0% { transform: translateX(-50%) translateY(60px); opacity: 0; }
    60% { transform: translateX(-50%) translateY(-5px); opacity: 1; }
    100% { transform: translateX(-50%) translateY(0); }
}

/* Premium button press */
.btn-action-deposit:active, .btn-action-withdraw:active { transform: translateY(4px); }

/* Modal glassmorphism */
.modal-overlay { backdrop-filter: blur(12px) saturate(1.2); }

/* Category tab gold underline animation */
.cat-tab-btn { position: relative; }
.cat-tab-btn.active::after {
    content: ''; position: absolute; bottom: 0; left: 20%; right: 20%;
    height: 3px; background: var(--color-accent); border-radius: 3px;
    animation: tabUnderline .3s ease-out;
}
@keyframes tabUnderline {
    from { left: 50%; right: 50%; }
    to { left: 20%; right: 20%; }
}

/* Game card skeleton shimmer on load */
.game-card { animation: cardFadeIn .5s ease-out; }
@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* VIP badge shimmer */
.badge-series {
    background: linear-gradient(135deg, rgba(251,191,36,.15), rgba(251,191,36,.3), rgba(251,191,36,.15));
    background-size: 200% auto;
    animation: goldShimmer 3s linear infinite;
}

/* Online indicator ping animation */
.online-indicator-ping { animation: pingPulse 2s cubic-bezier(0,0,.2,1) infinite; }
@keyframes pingPulse {
    0% { box-shadow: 0 0 10px var(--color-success), 0 0 0 0 rgba(16,185,129,.4); }
    75% { box-shadow: 0 0 10px var(--color-success), 0 0 0 8px rgba(16,185,129,0); }
    100% { box-shadow: 0 0 10px var(--color-success), 0 0 0 0 rgba(16,185,129,0); }
}

/* Iframe game modal */
#modal-game-iframe .modal-content { animation: modalZoomIn .3s cubic-bezier(.175,.885,.32,1.275); }
@keyframes modalZoomIn {
    from { transform: scale(.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ─── RESPONSIVE ADDITIONS ─── */
@media (max-width: 1024px) {
    .game-search-bar { margin: 8px 12px 0; }
    .providers-strip { padding: 10px 12px; }
    .promo-cards-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .promo-cards-grid { grid-template-columns: 1fr !important; }
    .game-search-bar { margin: 8px 8px 0 !important; }
    #modal-game-iframe .modal-content { width: 98vw !important; height: 70vh !important; }
}
@media (max-width: 480px) {
    .promo-cards-grid { grid-template-columns: 1fr !important; }
    .providers-strip { gap: 6px !important; }
    .provider-chip { padding: 4px 10px !important; font-size: 10px !important; }
}
