@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;300;400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

/* =========================================
   GLOBAL RESET & UTILITIES
   ========================================= */
* {
    font-family: 'Montserrat', sans-serif; 
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    /* overflow-x: hidden; DELETED */
    background-color: rgb(253, 253, 253);
    color: #216fe4;
}
.swal2-container {
    z-index: 99999 !important;
}

/* Ensure the backdrop also covers your high-z-index modals */
.swal2-backdrop-show {
    z-index: 99998 !important;
}
input[type="number"]::-webkit-inner-spin-button, 
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none; margin: 0;
}
input[type=number] { -moz-appearance: textfield; }

.detailshide { display: none !important; opacity: 0; visibility: hidden; }
.detailshow { opacity: 1; visibility: visible; display: flex; }
.yellow-text { color: #f1c40f; }
.white-text { color: white; }

/* =========================================
   FANCY STARTUP LOADER & LOADING MODALS
   ========================================= */
.fancy-loader-overlay {
    position: fixed; inset: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, #1a2a6c, #0d122b, #000000);
    z-index: 9999; display: flex; justify-content: center; align-items: center; flex-direction: column;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.neon-spinner {
    width: 70px; height: 70px; border-radius: 50%;
    border: 4px solid transparent; border-top: 4px solid #00ffff; border-right: 4px solid #f1c40f;
    animation: spinNeon 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4), inset 0 0 10px rgba(241, 196, 15, 0.4);
}

.loader-text p {
    color: #00ffff; font-family: monospace; font-size: 1.2em; letter-spacing: 4px;
    animation: pulseText 1.5s ease-in-out infinite;
}

@keyframes spinNeon { to { transform: rotate(360deg); } }
@keyframes pulseText { 50% { opacity: 1; text-shadow: 0 0 15px #00ffff; } 0%, 100% { opacity: 0.4; text-shadow: none; } }
.fade-out { opacity: 0; visibility: hidden; }

#betloadingmodal, #loadingmodal {
    position: fixed; inset: 0; display: none; justify-content: center; align-items: center;
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px); z-index: 9999;
}
.lotto-spinner {
    width: 70px; height: 70px; border-radius: 50%;
    border: 8px solid #f1f1f1; border-top: 8px solid #f1c40f; border-right: 8px solid #0d122b;
    animation: spinNeon 1.2s infinite; margin-bottom: 20px;
}

/* =========================================
   LAYOUT (Header, Dashboard, Overall)
   ========================================= */
.overall { 
    width: 100%; 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
    overflow-x: clip; /* Modern way to hide horizontal overflow WITHOUT breaking sticky headers */
}
/* =========================================
   FANCY FLOATING MENU BUTTON
   ========================================= */

.floating-button-div {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 8000; /* Extremely high to stay above sticky headers and modals */
    display: flex;
    justify-content: center;
    align-items: center;
}

#menu {
    width: 50px;
    height: 50px;
    background: rgba(13, 18, 43, 0.85); /* Deep Space Blue, slightly transparent */
    backdrop-filter: blur(5px); /* Frosted glass effect */
    color: #00ffff; /* Neon Cyan icon */
    font-size: 1.5em; /* Adjust based on whether you use FontAwesome or text */
    border: 2px solid #00ffff;
    border-radius: 50%; /* Perfect circle */
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Premium 3D floating effect */
    box-shadow: 
        0 4px 0 #008080, /* 3D Cyan bottom edge */
        0 8px 15px rgba(0, 0, 0, 0.6), /* Drop shadow */
        inset 0 0 10px rgba(0, 255, 255, 0.2); /* Inner glow */
        
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    outline: none;
}

/* Optional: Smooth spin or scale for the icon inside */
#menu i {
    transition: transform 0.3s ease;
}

/* Hover State - Transforms to Gold and floats higher */
#menu:hover {
    transform: translateY(-2px);
    background: #0d122b;
    color: #f1c40f; /* Swap to Gold */
    border-color: #f1c40f;
    box-shadow: 
        0 6px 0 #b8860b, /* Gold 3D edge */
        0 12px 20px rgba(0, 0, 0, 0.7), 
        0 0 15px rgba(241, 196, 15, 0.5), /* Outer gold glow */
        inset 0 0 10px rgba(241, 196, 15, 0.3);
}

#menu:hover i {
    transform: scale(1.1);
}

/* Active State - Satisfying mechanical press */
#menu:active {
    transform: translateY(4px); /* Moves down to cover the 3D edge */
    box-shadow: 
        0 0px 0 #008080, /* Removes the 3D edge */
        0 4px 8px rgba(0, 0, 0, 0.6), 
        inset 0 0 5px rgba(0, 255, 255, 0.2);
}
#imgheader { width: 100%; height: 25vh; object-fit: cover; }
.server-time-display {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    flex: 1; /* Helps distribute spacing evenly */
    justify-content: center;
}

.time-icon {
    color: #00ffff; /* Neon Cyan */
    font-size: 1.2em;
}

#headerfooter {
    color: #00ffff;
    font-family: 'Special Gothic Expanded One', monospace, sans-serif;
    font-size: 0.85em;
    font-weight: bold;
    letter-spacing: 1px;
    background: transparent; /* Remove old blue background */
    border: none;
    padding: 0;
}



.infodiv {
    /* 1. Make it sticky */

    position: -webkit-sticky; /* For older Safari */
    position: sticky;
    top: 0px; 
    z-index: 1000;
    
   
   height: min-content;
    
  

    /* 2. Your existing theme styles */
    background: #0d122b; /* Deep Space Blue - Must be solid so text doesn't bleed through */
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
   
    
    /* 3. Add a nice shadow to separate it from the content scrolling underneath */
    border-bottom: 3px solid #f1c40f; 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6); 
    
    /* Ensure it takes full width */
    width: 100%;
    box-sizing: border-box;
}
.user-brand { display: flex; align-items: center; gap: 10px; flex: 1; }
.brand-icon { color: #f1c40f; font-size: 1.4em; }
.user-meta { display: flex; flex-direction: column; }
.user-label { font-size: 0.6em; color: #888; }
.user-data { font-size: 0.85em; font-weight: 700; color: white; }

.wallet-stats { display: flex; gap: 20px; flex: 2; justify-content: center; text-align: center; }
.stat-box { display: flex; flex-direction: column; }
.stat-label { font-size: 0.55em; font-weight: 900; color: #aaa; }
.stat-value { font-size: 1.1em; font-weight: 900; }

.header-actions { display: flex; gap: 12px; flex: 1; justify-content: flex-end; align-items: center; }
/* =========================================
   FANCY ADD CREDITS BUTTON & WRAPPER
   ========================================= */

/* The dark pill background holding the text and button */
.add-credits-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 5px 5px 15px; /* Less padding on the right to hug the round button */
    border-radius: 30px;
    border: 1px solid rgba(241, 196, 15, 0.2);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

/* The "ADD CREDITS" text */
.add-label {
    color: #f1c40f;
    font-family: 'Special Gothic Expanded One', 'Montserrat', sans-serif;
    font-size: 0.8em;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-shadow: 0 0 8px rgba(241, 196, 15, 0.4);
}

/* The 3D Golden Coin Button */
#creditsbtn {
    background: linear-gradient(135deg, #ffd700 0%, #f39c12 50%, #b8860b 100%);
    color: #0d122b; /* Deep blue icon */
    border: 2px solid #fffbea;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    cursor: pointer;
    
    /* Heavy 3D Coin Shadow */
    box-shadow: 
        0 4px 0 #a04000, /* 3D bottom edge */
        0 8px 10px rgba(0, 0, 0, 0.6), /* Drop shadow */
        inset 0 4px 5px rgba(255, 255, 255, 0.8), /* Inner top highlight */
        0 0 15px rgba(241, 196, 15, 0.6); /* Golden glow */
        
    /* Bouncy transition for hovering */
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pulseGoldCoin 2s infinite alternate;
}

/* Make the plus icon inside slightly 3D as well */
#creditsbtn i {
    filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.6));
}

/* Hover State - Lifts up and glows brighter */
#creditsbtn:hover {
    transform: translateY(-3px) scale(1.05);
    background: linear-gradient(135deg, #ffeb3b 0%, #f1c40f 50%, #e67e22 100%);
    box-shadow: 
        0 7px 0 #a04000, 
        0 12px 15px rgba(0, 0, 0, 0.7), 
        inset 0 4px 5px rgba(255, 255, 255, 0.9), 
        0 0 25px rgba(241, 196, 15, 1);
}

/* Active State - Physically presses down */
#creditsbtn:active {
    transform: translateY(4px) scale(0.95);
    box-shadow: 
        0 0px 0 #a04000, /* Removes the 3D edge */
        0 3px 5px rgba(0, 0, 0, 0.6), 
        inset 0 4px 5px rgba(255, 255, 255, 0.4);
    animation: none; /* Stops pulsing while clicked */
}

/* Idle Breathing Glow Animation */
@keyframes pulseGoldCoin {
    0% { filter: brightness(1); }
    100% { 
        filter: brightness(1.2); 
        box-shadow: 
            0 4px 0 #a04000, 
            0 8px 10px rgba(0,0,0,0.6), 
            inset 0 4px 5px rgba(255,255,255,0.8), 
            0 0 25px rgba(241,196,15,0.9); 
    }
}
/* =========================================
   PREMIUM SIDENAV
   ========================================= */
.sidenav {
    height: 100%; width: 0; position: fixed; z-index: 7000; top: 0; left: 0;
    background-color: #0d122b; overflow-x: hidden; transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column; box-shadow: 5px 0 15px rgba(0,0,0,0.5);
}
.nav-profile { padding: 40px 20px 20px; display: flex; align-items: center; gap: 15px; }
.profile-avatar {
    width: 50px; height: 50px; background: #f1c40f; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; font-size: 1.5em; color: #0d122b;
}
.profile-info { display: flex; flex-direction: column; }
.profile-name { color: white; font-weight: 900; font-size: 1.1em; }
.profile-status { color: #2ecc71; font-size: 0.65em; font-weight: bold; }
.nav-divider { border: 0; height: 1px; background: rgba(255,255,255,0.1); margin: 0 20px; }
.nav-links { padding: 20px 0; flex-grow: 1; }
.sidenav a {
    padding: 15px 25px; text-decoration: none; font-size: 0.9em; font-weight: bold;
    color: #ccc; display: flex; align-items: center; transition: 0.3s;
}
.nav-icon { width: 30px; font-size: 1.2em; color: #f1c40f; margin-right: 15px; }
.sidenav a:hover { color: #f1c40f; background: rgba(255,255,255,0.05); padding-left: 35px; }
.sidenav .closebtn { position: absolute; top: 10px; right: 20px; font-size: 36px; padding: 0; }
.logout-link { color: #ff4d4d !important; }

/* =========================================
   PREMIUM MODALS (Withdraw, History, Cashin)
   ========================================= */
.modal {
    display: none; position: fixed; z-index: 6000; inset: 0;
    background-color: rgba(0, 0, 0, 0.8); justify-content: center; align-items: center; overflow: auto;
}
.modal-content, #historymodal .container {
    background: linear-gradient(135deg, #1a2a6c, #0d122b); margin: auto; 
    border: 2px solid #4a69bd;  border-radius: 15px;
    box-shadow: 0 0 25px rgba(0, 191, 255, 0.4), inset 0 0 15px rgba(0,0,0,0.8);
    color: white; overflow-y: auto;
}
.modal .head {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;
    padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.2); position: sticky; top: 0;
}
.modal .head label, .modal .head span:first-child {
    font-size: 1.3em; font-family: 'Special Gothic Expanded One', sans-serif; color: #f1c40f;
}
.modal .close { color: #aaa; font-size: 28px; cursor: pointer; transition: 0.3s; }
.modal .close:hover { color: #ff4d4d; }

.fields { display: flex; flex-direction: column; margin-bottom: 15px; }
.fieldslbl { font-size: 0.8em; color: #ccc; font-weight: 600; margin-bottom: 5px; }
.fields input, .fields select, .fields textarea {
    padding: 10px; border: 1px solid #4a69bd; border-radius: 8px; background-color: #0d122b;
    color: white; outline: none; transition: 0.3s; width: 100%;
}
.fields input:focus, .fields select:focus { border-color: #00ffff; box-shadow: 0 0 8px rgba(0,255,255,0.5); }
.fieldsbtn button {
    padding: 12px 30px; background: linear-gradient(to right, #2ecc71, #27ae60); border: none;
    border-radius: 8px; color: white; font-weight: bold; cursor: pointer; width: 100%;
}
/* Button Container Positioning */
.action-buttons {
    display: flex;
    gap: 15px;
    padding: 20px;
    justify-content: center;
    background: #f8f9fa; /* Light grey subtle background */
    border-top: 1px solid #ddd;
}

/* Base Button Styling */
.action-buttons button {
    flex: 1; /* Makes buttons equal width */
    padding: 15px 25px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* RE-EDIT Button (Secondary) */
.btn-secondary {
    background-color: #e9ecef;
    color: #495057;
    box-shadow: 0 4px 0 #ced4da; /* 3D depth effect */
}

.btn-secondary:hover {
    background-color: #dee2e6;
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(2px);
    box-shadow: 0 0 0 transparent;
}

/* PAY NOW Button (Primary/Lotto Gold) */
.btn-primary {
    background: linear-gradient(135deg, #f1c40f, #f39c12); /* Golden Yellow */
    color: #000;
    box-shadow: 0 4px 0 #d35400; /* Darker orange depth */
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f39c12, #f1c40f);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(243, 156, 18, 0.4);
}

.btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 0 0 transparent;
}

/* Animation for the primary button to draw the eye */
@keyframes pulse-gold {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

#btnpay {
    animation: pulse-gold 2s infinite ease-in-out;
}
/* History Modal Tabs & Tables */
.history-tabs { display: flex; justify-content: center; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.2); }
.history-tab-button { background: transparent; border: none; padding: 10px; color: #ccc; flex-grow: 1; cursor: pointer; }
.active-history-tab { color: #f1c40f; border-bottom: 3px solid #f1c40f; }
#historymodal table { width: 100%; border-collapse: collapse; font-size: 0.85em; color: #fff; }
#historymodal th, #historymodal td { padding: 8px; border: 1px solid rgba(255,255,255,0.2); text-align: center; }
#historymodal th { background: #2c3e50; color: #f1c40f; }

/* =========================================
   MAIN GAME BUTTONS (Bomb, Slot, Keno)
   ========================================= */
.gamescontainer { display: flex; flex-direction: row; gap: 10px; justify-content: center; width: 100%; overflow: auto; padding: 10px; }
.bombgamediv { width: 33%; min-width: 150px; }
#bombbtn, #openKenoBtn, #openSlotBtn {
    height: 200px; width: 100%; border-radius: 8px; border: 2px solid black; background-color: #000;
    background-size: cover; background-position: center; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: transform 0.2s;
}
#bombbtn:hover, #openKenoBtn:hover, #openSlotBtn:hover { transform: scale(1.02); }
#bombbtn { background-image: url('img/bomb.jpeg'); }
#openKenoBtn { background-image: url('img/keno_icon.jpg'); }
#openSlotBtn { background-image: url('img/slot_M.png'); }

/* Game Wrappers (Used by JS to toggle displays) */
.game-wrapper {
    display: none; flex-direction: column; align-items: center; padding: 20px; margin-top: 20px;
    background: radial-gradient(circle at center, #1a2a6c, #0d122b, #000000); 
    border-radius: 20px; box-shadow: 0 0 30px rgba(0, 191, 255, 0.3); border: 2px solid #4a69bd;
}
.game-header-row { display: flex; justify-content: space-between; width: 100%; margin-bottom: 15px; }

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 700px) {
    #imgheader { height: auto; max-height: 15vh; }
    .gamescontainer { flex-direction: column; }
    .bombgamediv { width: 100%; }
    .infodiv { flex-direction: column; }


    .server-time-display {
        width: 100%;
        order: -1; /* Pushes the clock to the very top of the infodiv on mobile */
        margin-bottom: 5px;
    }
}

/* =========================================
   PREMIUM CONTACT US SECTION
   ========================================= */

.contactusdiv {
    width: 100%;
    padding: 20px;
    margin-top: 30px;
    background: linear-gradient(135deg, rgba(13, 18, 43, 0.95), rgba(26, 42, 108, 0.9));
    border-top: 3px solid #f1c40f;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

#contactlbl {
    font-family: 'Special Gothic Expanded One', sans-serif;
    font-size: 1.4em;
    font-weight: 900;
    color: #f1c40f;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    display: block;
    text-shadow: 0 0 10px rgba(241, 196, 15, 0.4);
}

.contactuscontainer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding-bottom: 20px;
}

/* Individual Social Cards */
.contact-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.contact-card img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
    transition: transform 0.3s ease;
}

.contact-card span {
    color: #ccc;
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Hover Effects per Platform */
.contact-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
}

.contact-card:hover img {
    transform: scale(1.2);
}

/* Facebook Glow */
.contact-card.fb:hover {
    border-color: #1877f2;
    box-shadow: 0 0 20px rgba(24, 119, 242, 0.4);
}
.contact-card.fb:hover span { color: #1877f2; }

/* Telegram Glow */
.contact-card.tg:hover {
    border-color: #0088cc;
    box-shadow: 0 0 20px rgba(0, 136, 204, 0.4);
}
.contact-card.tg:hover span { color: #0088cc; }

/* WhatsApp Glow */
.contact-card.wa:hover {
    border-color: #25d366;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
}
.contact-card.wa:hover span { color: #25d366; }

/* Desktop Adjustment */
@media (min-width: 768px) {


    
    .contact-card {
        width: 150px;
        height: 150px;
    }
    .contact-card img {
        width: 65px;
        height: 65px;
    }
}
@media (min-width: 400px) {

}
/* =========================================
   PREMIUM HISTORY DATE FILTER
   ========================================= */

.date-filter-section {
    background: rgba(13, 18, 43, 0.6);
    border: 1.5px solid rgba(241, 196, 15, 0.3);
    border-radius: 15px;
    padding: 15px;
    margin: 15px 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
}

.date-input-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.date-group {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-icon {
    color: #f1c40f; /* Gold Icon */
    font-size: 1.2em;
    text-shadow: 0 0 8px rgba(241, 196, 15, 0.4);
}

.input-stack {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.input-stack label {
    font-size: 0.6em;
    color: #888;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.input-stack input[type="date"] {
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9em;
    font-weight: 700;
    outline: none;
    width: 100%;
}

/* Forcing the calendar icon to be Cyan on supported browsers */
.input-stack input::-webkit-calendar-picker-indicator {
    filter: invert(80%) sepia(50%) saturate(1000%) hue-rotate(140deg);
    cursor: pointer;
}

.date-divider {
    color: #4a69bd;
    font-size: 1.2em;
}

/* The Glowing Filter Button */
.filter-action-btn {
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    border: none;
    border-radius: 10px;
    padding: 12px;
    color: #0d122b;
    font-weight: 900;
    font-size: 0.9em;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 0 #a04000, 0 8px 15px rgba(0,0,0,0.3);
    transition: all 0.2s;
}

.filter-action-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.filter-action-btn:active {
    transform: translateY(3px);
    box-shadow: 0 0px 0 #a04000;
}

/* Desktop Adjustment */
@media (min-width: 768px) {
    .date-filter-section {
        flex-direction: row;
        align-items: flex-end;
    }
    .filter-action-btn {
        width: 150px;
        height: 52px;
    }
}

/* =========================================
   HISTORY FINANCIAL SUMMARY STYLES
   ========================================= */
.history-financial-summary {
    margin-top: 15px;
    padding: 15px;
    background: rgba(13, 18, 43, 0.8);
    border: 1px solid rgba(241, 196, 15, 0.4);
    border-radius: 10px;
    display: flex;
    justify-content: flex-end;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.summary-label {
    font-size: 0.7em;
    color: #ccc;
    font-weight: 900;
    letter-spacing: 1px;
}

.summary-value {
    font-size: 1.5em;
    font-weight: 900;
    color: #f1c40f; /* Gold Total */
    text-shadow: 0 0 10px rgba(241, 196, 15, 0.4);
    font-family: 'Orbitron', monospace;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
}
.status-badge.pending { background: #f1c40f; color: #000; }
.status-badge.won { background: #2ecc71; color: #fff; }
.status-badge.lost { background: #e74c3c; color: #fff; }
.amt-cell { font-family: 'Orbitron', monospace; color: #f1c40f; }

/* Aligning the History Table specifically */
#bethisttbl {
    width: 100%;
    border-collapse: collapse;
    text-align: center; /* Center text for DRAW, COMB, etc. */
}

#bethisttbl th, #bethisttbl td {
    padding: 12px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    white-space: nowrap; /* Prevents date/time from wrapping */
}

/* Ensure the Amount column is highlighted gold as requested */
.amt-cell {
    color: #f1c40f !important;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
}

/* Status Badge styling to look like the buttons in your image */
.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.75em;
    font-weight: 900;
    text-transform: uppercase;
    background: #f1c40f; /* Yellow background for PENDING */
    color: #0d122b;
}

.status-badge.won { background: #2ecc71; color: #fff; }
.status-badge.lost { background: #e74c3c; color: #fff; }

/* 1. Force the container to stack items vertically with proper spacing */
.auth-step-container {
    display: flex;
    flex-direction: column !important; /* Forces elements to stack on top of each other */
    gap: 15px; /* Adds healthy breathing room between elements */
    width: 100%;
}

/* 2. Fix the Inputs (Padding & Colors) */
.input-with-icon input {
    width: 100%;
    /* Top: 15px, Right: 15px, Bottom: 15px, Left: 45px (room for icon) */
    padding: 15px 15px 15px 45px !important; 
    box-sizing: border-box !important; /* Stops padding from breaking the width */
    background-color: #0d122b; /* Deep Space Blue */
    border: 2px solid #294a8d;
    border-radius: 8px;
    color: #fff;
    font-size: 1.1em;
    height: auto !important; /* Prevents input stretching */
}

/* 3. Fix the Buttons (Kill the stretch and make them look like real buttons) */
.auth-btn {
    width: 100%;
    padding: 15px !important;
    height: auto !important; /* Kills the weird vertical stretching from your image */
    background: linear-gradient(135deg, #f1c40f, #f39c12); /* Golden gradient */
    color: #000;
    font-weight: 800;
    font-size: 1.1em;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 0 #d35400; /* 3D tactile edge */
    cursor: pointer;
    margin-top: 10px;
    align-self: center; /* Stops flexbox from trying to stretch it */
}

/* Button Hover/Active effects for a premium feel */
.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #d35400;
}
.auth-btn:active {
    transform: translateY(2px);
    box-shadow: none;
}

.auth-btn {
    align-self: center; /* Stops the vertical stretch */
    height: 50px;       /* Gives it a clean, fixed height */
}