/* ======================
CSS VARIABLES & THEME
====================== */
:root {
    --primary-gold: #FFD700;
    --secondary-gold: #FFA500;
    --primary-warm: #FFD700;
    --accent-warm: #FF6B00;
    --dark-bg: #0a0a0a;
    --bg-dark: #0a0012;
    --bg-mid: #1a0829;
    --card-bg: #1a1a2e;
    --card-border: #16213e;
    --neon-green: #39ff14;
    --success-green: #00ff88;
    --neon-red: #ff073a;
    --neon-blue: #00d4ff;
    --primary-cool: #0066ff;
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --success: #27ae60;
    --danger: #e74c3c;
    --chip-red: #dc143c;
    --chip-black: #000000;
    --chip-blue: #0066cc;
    --chip-green: #228b22;
    --current-temp: 0;
}

/* ======================
    GLOBAL STYLES
    ====================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body.casino-body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Arial', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: -webkit-fill-available;
    position: relative;
    overflow-x: hidden;
}

/* ======================
    BACKGROUNDS & EFFECTS
    ====================== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(ellipse at top, #1a1a2e 0%, #0a0a0a 100%),
        repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(255, 215, 0, 0.03) 10px,
            rgba(255, 215, 0, 0.03) 20px);
}

.dynamic-bg {
    background: radial-gradient(ellipse at center,
            hsl(calc(260 + var(--current-temp)), 80%, 15%) 0%,
            var(--bg-dark) 100%);
    transition: background 2s ease;
}

/* ======================
    FLOATING ELEMENTS
    ====================== */
.floating-chip,
.floating-dice {
    position: absolute;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.floating-chip {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 5px dashed var(--primary-gold);
}

.chip-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.chip-2 {
    top: 70%;
    right: 10%;
    animation-delay: 5s;
}

.chip-3 {
    bottom: 10%;
    left: 20%;
    animation-delay: 10s;
}

.chip-4 {
    top: 40%;
    right: 30%;
    animation-delay: 15s;
}

.floating-dice {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 2px solid var(--primary-gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-dice::before {
    content: "⚅";
    font-size: 24px;
    color: var(--primary-gold);
}

.dice-1 {
    top: 20%;
    right: 15%;
    animation-delay: 3s;
}

.dice-2 {
    bottom: 30%;
    left: 10%;
    animation-delay: 8s;
}

.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom,
            transparent,
            rgba(255, 215, 0, 0.8),
            transparent);
    filter: blur(1px);
    opacity: 0;
    animation: particleFloat 3s linear infinite;
}

/* ======================
    ANIMATIONS
    ====================== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) rotate(90deg);
    }

    50% {
        transform: translateY(0) rotate(180deg);
    }

    75% {
        transform: translateY(20px) rotate(270deg);
    }
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(100vh) rotate(0deg);
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        opacity: 0;
        transform: translateY(-100px) rotate(360deg);
    }
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes flicker {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

@keyframes glow {

    0%,
    100% {
        opacity: 1;
        filter: brightness(1);
    }

    50% {
        opacity: 0.9;
        filter: brightness(1.2);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
    }

    50% {
        transform: translateX(-50%) scale(1.05);
    }
}

@keyframes breathe {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

@keyframes contrastPulse {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

@keyframes countdownPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

@keyframes revealPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes successBurst {
    0% {
        opacity: 0;
        background: radial-gradient(circle at center,
                transparent 0%,
                transparent 100%);
    }

    50% {
        opacity: 0.3;
        background: radial-gradient(circle at center,
                rgba(0, 255, 136, 0.4) 0%,
                transparent 60%);
    }

    100% {
        opacity: 0;
        background: radial-gradient(circle at center,
                transparent 0%,
                transparent 100%);
    }
}

@keyframes clickPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

/* ======================
    HEADER & NAVIGATION
    ====================== */
.casino-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
    border-bottom: 2px solid var(--primary-gold);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 80px; /* Fixed height for consistency */
}

.navbar {
    padding: 0.5rem 0;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Main content wrapper to account for fixed header */
.main-content {
    padding-top: 80px !important; /* Default header height */
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .main-content {
        padding-top: 70px !important; /* Mobile header height */
    }
}

@media (max-width: 480px) {
    .main-content {
        padding-top: 60px !important; /* Small mobile header height */
    }
}

.navbar-brand.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s;
}

.navbar-brand.logo:hover {
    transform: scale(1.05);
}

.navbar-brand.logo i {
    font-size: 2rem;
    color: var(--primary-gold);
    animation: rotate 4s linear infinite;
}

.brand-text {
    display: flex;
    align-items: center;
}

.brand-text img {
    height: 50px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    filter: drop-shadow(0 2px 15px rgba(255, 215, 0, 0.6)) drop-shadow(0 0 30px rgba(255, 165, 0, 0.4));
    transition: all 0.3s ease;
}

.navbar-brand.logo:hover .brand-text img {
    filter: drop-shadow(0 2px 20px rgba(255, 215, 0, 0.8))
            drop-shadow(0 0 40px rgba(255, 165, 0, 0.6))
            brightness(1.1);
    transform: scale(1.05);
}


@keyframes logoGlow {
    0%, 100% { 
        filter: drop-shadow(0 2px 15px rgba(255, 215, 0, 0.6))
                drop-shadow(0 0 30px rgba(255, 165, 0, 0.4))
                brightness(1);
    }
    50% { 
        filter: drop-shadow(0 2px 20px rgba(255, 215, 0, 0.8))
                drop-shadow(0 0 35px rgba(255, 165, 0, 0.5))
                brightness(1.05);
    }
}

.brand-text img {
    animation: logoGlow 3s ease-in-out infinite;
}


.brand-lucky {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    text-shadow: 0 2px 15px rgba(255, 215, 0, 0.6),
                 0 0 30px rgba(255, 165, 0, 0.4);
    animation: shimmer 3s ease-in-out infinite;
    position: relative;
}

@keyframes shimmer {

    0%,
    100% {
        filter: brightness(1) contrast(1.2);
    }

    50% {
        filter: brightness(1.2) contrast(1.3);
    }
}

.brand-casino {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #DC2626;
    letter-spacing: 2px;
    margin-top: -5px;
    text-shadow: 0 1px 3px rgba(220, 38, 38, 0.3);
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-gold) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

.register-btn {
    background: var(--success);
    color: white !important;
    border-radius: 25px;
    padding: 0.5rem 1.5rem !important;
    margin-left: 10px;
}

/* ======================
    CARDS & CONTAINERS
    ====================== */
.casino-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid var(--card-border);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 0 100px rgba(255, 215, 0, 0.05);
    max-width: 500px;
    width: 100%;
}

.login-card {
    animation: slideIn 0.5s ease-out;
}

.login-container,
.register-container {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.card-corner {
    position: absolute;
    font-size: 2rem;
    opacity: 0.2;
}

.top-left {
    top: 10px;
    left: 15px;
    color: var(--chip-black);
}

.top-right {
    top: 10px;
    right: 15px;
    color: var(--chip-red);
}

.bottom-left {
    bottom: 10px;
    left: 15px;
    color: var(--chip-green);
}

.bottom-right {
    bottom: 10px;
    right: 15px;
    color: var(--chip-red);
}

/* ======================
    TYPOGRAPHY
    ====================== */
.neon-sign {
    text-align: center;
    margin-bottom: 30px;
}

.neon-text {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.5rem;
    color: var(--primary-gold);
    text-shadow:
        0 0 10px var(--primary-gold),
        0 0 20px var(--primary-gold),
        0 0 30px var(--primary-gold);
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.casino-title {
    font-size: clamp(24px, 7vw, 56px);
    color: var(--primary-warm);
    text-shadow:
        0 0 20px currentColor,
        0 0 40px currentColor,
        0 0 60px var(--accent-warm);
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    letter-spacing: 2px;
    animation: glow 2s ease-in-out infinite;
    transition: color 1s ease;
    line-height: 1.2;
    z-index: 10;
}

.flicker {
    animation: flicker 2s infinite alternate;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-style: italic;
}

/* ======================
    FORMS & INPUTS
    ====================== */
.casino-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon,
.input-icon-right {
    position: absolute;
    color: var(--primary-gold);
    font-size: 1.2rem;
    z-index: 10;
}

.input-icon {
    left: 15px;
}

.input-icon-right {
    right: 15px;
    cursor: pointer;
    transition: color 0.3s;
}

.input-icon-right:hover {
    color: var(--secondary-gold);
}

.casino-input {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 10px;
    color: var(--text-primary) !important;
    padding: 12px 45px;
    font-size: 1rem;
    transition: all 0.3s;
    width: 100%;
}

.casino-input:focus {
    outline: none;
    border-color: var(--primary-gold);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    color: var(--text-primary) !important;
}

input[type="password"],
input[type="password"]:focus {
    color: var(--text-primary) !important;
    -webkit-text-fill-color: var(--text-primary) !important;
}

.casino-input::placeholder {
    color: var(--text-secondary);
}

.casino-input:-webkit-autofill,
.casino-input:-webkit-autofill:hover,
.casino-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-primary) !important;
    -webkit-box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.08) inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Fix for select dropdown options */
.casino-input option {
    background: var(--card-bg);
    /* Dark background for options */
    color: var(--text-primary);
    /* White text */
    padding: 10px;
}

/* Ensure selected option is visible in the select box */
.casino-input::-webkit-select {
    background: var(--card-bg);
}

/* For better cross-browser support */
select.casino-input {
    background: rgba(26, 26, 46, 0.95);
    /* Darker background for select */
    color: var(--text-primary) !important;
    cursor: pointer;
}

select.casino-input:focus {
    background: rgba(26, 26, 46, 0.98);
    /* Slightly different on focus */
    border-color: var(--primary-gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* Style the dropdown arrow */
select.casino-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FFD700' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 40px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Hover state for options */
select.casino-input option:hover {
    background: var(--primary-gold);
    color: var(--dark-bg);
}

/* Selected option style */
select.casino-input option:checked {
    background: linear-gradient(0deg, var(--card-border) 0%, var(--card-bg) 100%);
    color: var(--primary-gold);
    font-weight: bold;
}

/* Disabled option style */
select.casino-input option:disabled {
    color: var(--text-secondary);
    opacity: 0.5;
}


input[type="tel"],
input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 18px;
    background: rgba(26, 8, 41, 0.9);
    color: var(--primary-warm);
    border: 2px solid var(--primary-warm);
    border-radius: 12px;
    text-align: center;
    letter-spacing: 3px;
    transition: all 0.3s;
    font-weight: bold;
    -webkit-appearance: none;
    appearance: none;
}

input[type="tel"]:focus,
input[type="number"]:focus {
    outline: none;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
    transform: scale(1.02);
}

/* ======================
    BUTTONS
    ====================== */
.casino-btn-primary {
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    color: var(--dark-bg);
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    width: 100%;
    margin-top: 20px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.5);
    -webkit-appearance: none;
    appearance: none;
    user-select: none;
}

.casino-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

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

.casino-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.casino-btn-primary:hover::before {
    left: 100%;
}

.casino-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

button {
    width: 100%;
    padding: 14px 24px;
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(145deg, var(--primary-warm), var(--accent-warm));
    color: var(--bg-dark);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.5);
    position: relative;
    overflow: hidden;
    -webkit-appearance: none;
    appearance: none;
    user-select: none;
}

button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:active {
    transform: scale(0.98);
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

@media (hover:hover) {
    button:hover::before {
        width: 400px;
        height: 400px;
    }

    button:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 8px 30px rgba(255, 215, 0, 0.7);
    }
}

.btn-loader {
    display: inline-block;
    margin-left: 10px;
}

/* ======================
    TABS & CONTROLS
    ====================== */
.login-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 8px;
    font-size: 0.9rem;
}

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

.tab-btn.active {
    background: var(--primary-gold);
    color: var(--dark-bg);
    border-color: var(--primary-gold);
    font-weight: bold;
}

.tab-content {
    animation: fadeIn 0.3s ease-in;
}

/* ======================
    CHECKBOXES & CUSTOM INPUTS
    ====================== */
.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-gold);
    cursor: pointer;
}

.custom-checkbox label {
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

/* ======================
    SPECIAL DIGIT STATES
    ====================== */
.digit-x {
    color: var(--primary-gold) !important;
    font-size: 2.5rem !important;
    text-shadow:
        0 0 10px var(--primary-gold),
        0 0 20px var(--primary-gold) !important;
}

/* Remove the rotating icon from spinning state */
.digit-wrapper.spinning-state::after {
    display: none !important;
}

/* Ensure digits remain visible */
.digit-wrapper .digit {
    color: #fff !important;
    opacity: 1 !important;
}

/* Fix for black digit issue */
.digit-roller {
    background: transparent !important;
}

.digit-wrapper {
    background: #000 !important;
}

/* Additional fixes for visibility */
.digit-wrapper.spinning-state .digit {
    color: #fff !important;
    opacity: 1 !important;
}

/* ======================
   Z-INDEX HIERARCHY
   ====================== */
/* 
 * Header: 1000
 * Header toggle button: 1001
 * Modals: 2000
 * SweetAlert2: 3000
 */

/* Ensure SweetAlert2 appears above everything */
.swal2-container {
    z-index: 3000 !important;
}

/* Center SweetAlert2 modals properly */
.swal2-popup {
    position: fixed !important;
}

/* Override any modal positioning issues */
.modal,
.modal-backdrop {
    z-index: 2000;
}

.modal-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

/* ======================
   MOBILE RESPONSIVE
   ====================== */
@media (max-width: 768px) {
    .casino-header {
        height: 70px; /* Slightly smaller on mobile */
    }
    
    /* Fix navbar layout on mobile */
    .navbar {
        position: relative;
        padding: 5px 0;
        height: 100%;
    }
    
    .navbar .container {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: nowrap;
        height: 100%;
    }
    
    /* Center logo on mobile */
    .navbar-brand.logo {
        margin: 0;
        position: static;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .brand-text img {
        height: 60px;
        max-width: 180px;
        width: auto;
    }
    
    /* Floating menu button */
    .navbar-toggler {
        position: fixed;
        right: 20px;
        top: 10px; /* Adjusted to be within header */
        z-index: 1001; /* Just above header */
        padding: 0;
        width: 50px;
        height: 50px;
        background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
        border: none;
        border-radius: 50%;
        box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }
    
    .navbar-toggler:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 30px rgba(255, 215, 0, 0.6);
    }
    
    .navbar-toggler:active {
        transform: scale(0.95);
    }
    
    .navbar-toggler-icon {
        width: 24px;
        height: 24px;
        position: relative;
        transition: background 0.3s;
        background: none;
    }
    
    /* Hamburger lines */
    .navbar-toggler-icon::before,
    .navbar-toggler-icon::after,
    .navbar-toggler .middle-line {
        content: '';
        position: absolute;
        width: 24px;
        height: 2px;
        background: var(--dark-bg);
        left: 0;
        transition: all 0.3s ease;
    }
    
    .navbar-toggler-icon::before {
        top: 6px;
    }
    
    .navbar-toggler .middle-line {
        position: absolute;
        top: 11px;
        width: 24px;
        height: 2px;
        background: var(--dark-bg);
        transition: all 0.3s ease;
    }
    
    .navbar-toggler-icon::after {
        bottom: 6px;
    }
    
    /* Transform to X when menu is open */
    .navbar-toggler.menu-open {
        background: linear-gradient(135deg, #e74c3c, #c0392b);
    }
    
    .navbar-toggler.menu-open .navbar-toggler-icon::before,
    .navbar-toggler.menu-open .navbar-toggler-icon::after {
        background: #fff;
    }
    
    .navbar-toggler.menu-open .navbar-toggler-icon::before {
        transform: rotate(45deg);
        top: 11px;
    }
    
    .navbar-toggler.menu-open .middle-line {
        opacity: 0;
        transform: translateX(-10px);
    }
    
    .navbar-toggler.menu-open .navbar-toggler-icon::after {
        transform: rotate(-45deg);
        bottom: 11px;
    }
    
    .navbar-toggler:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.25), 0 4px 20px rgba(255, 215, 0, 0.4);
    }
    
    /* Menu alignment when expanded */
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, rgba(26, 26, 46, 0.98), rgba(22, 33, 62, 0.98));
        padding: 80px 20px 20px;
        border-left: 2px solid var(--primary-gold);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
        transition: right 0.3s ease;
        overflow-y: auto;
    }
    
    .navbar-collapse.show {
        right: 0;
    }
    
    .navbar-nav {
        margin: 0;
        padding: 0;
    }
    
    .navbar-nav .nav-item {
        text-align: left;
        margin: 10px 0;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 20px;
        border-radius: 8px;
        font-size: 1.1rem;
        transition: all 0.3s;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(255, 215, 0, 0.1);
        transform: translateX(5px);
    }
    
}

@media (max-width: 480px) {
    .casino-header {
        height: 60px; /* Even smaller on small phones */
    }
    
    .brand-text img {
        height: 40px;
        max-width: 140px;
    }
    
    .navbar-toggler {
        width: 40px;
        height: 40px;
        right: 10px;
        top: 10px;
    }
    
    .navbar-toggler-icon {
        width: 20px;
        height: 20px;
    }
    
    .navbar-toggler-icon::before,
    .navbar-toggler-icon::after,
    .navbar-toggler .middle-line {
        width: 20px;
    }
    
    .navbar-toggler-icon::before {
        top: 5px;
    }
    
    .navbar-toggler .middle-line {
        top: 9px;
        width: 20px;
    }
    
    .navbar-toggler-icon::after {
        bottom: 5px;
    }
    
    .navbar-toggler.menu-open .navbar-toggler-icon::before {
        top: 9px;
    }
    
    .navbar-toggler.menu-open .navbar-toggler-icon::after {
        bottom: 9px;
    }
    
    .navbar-toggler.menu-open .navbar-toggler-icon::before,
    .navbar-toggler.menu-open .navbar-toggler-icon::after {
        background: #fff;
    }
    
    .navbar-collapse {
        width: 250px;
    }
}