/* ==========================================================================
   FREE-LITECOIN MODERN RESPONSIVE DESIGN SYSTEM
   Optimized for Mobile, Tablet, and High-Resolution Desktop
   ========================================================================== */

/* Google Font and Base System */
:root {
    --bg-page: #0b1322;
    --bg-card: #ffffff;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --accent-neon: #a3e635;
    --accent-cyan: #38bdf8;
    --success: #10b981;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-card: #e2e8f0;
    --nav-height: 64px;
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: radial-gradient(circle at 50% 0%, #1e3a5f 0%, #0b1322 100%) no-repeat fixed;
    background-color: #0b1322;
    min-height: 100vh;
    color: var(--text-main);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ==========================================================================
   FIXED TOP NAVBAR
   ========================================================================== */
.navbar {
    background: #090e17 !important;
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
    padding: 0.4rem 1rem !important;
    min-height: var(--nav-height);
    z-index: 1030;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.15rem;
    color: #ffffff !important;
    letter-spacing: -0.3px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin-right: 12px;
}

.navbar-brand img {
    width: 32px;
    height: 32px;
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    padding: 2px;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: rotate(15deg) scale(1.05);
}

/* Desktop Navigation Links */
.navbar-nav {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.navbar-dark .navbar-nav .nav-link {
    color: #94a3b8 !important;
    font-weight: 600;
    font-size: 13px;
    padding: 6px 9px !important;
    border-radius: 6px;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.08);
}

.navbar-dark .navbar-nav .active>.nav-link,
.navbar-dark .navbar-nav .nav-link.active {
    color: #ffffff !important;
    background-color: rgba(37, 99, 235, 0.25);
    border: 1px solid rgba(37, 99, 235, 0.4);
    font-weight: 700;
}

/* Dropdown Menu for "More" */
.nav-item.dropdown .dropdown-menu {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    padding: 8px;
    min-width: 170px;
    margin-top: 8px;
}

.nav-item.dropdown .dropdown-item {
    color: #94a3b8;
    font-weight: 600;
    font-size: 13.5px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item.dropdown .dropdown-item:hover {
    color: #ffffff;
    background-color: rgba(37, 99, 235, 0.2);
}

.nav-item.dropdown .dropdown-item.active {
    color: #38bdf8;
    background-color: rgba(56, 189, 248, 0.15);
}

/* LTC Balance Capsule */
.nav-balance-capsule {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(163, 230, 53, 0.45);
    border-radius: 50px;
    padding: 5px 14px;
    color: var(--accent-neon) !important;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-weight: 700;
    font-size: 13.5px;
    box-shadow: 0 0 14px rgba(163, 230, 53, 0.15);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.25s ease;
}

.nav-balance-capsule:hover {
    background: rgba(30, 41, 59, 1);
    border-color: var(--accent-neon);
    box-shadow: 0 0 18px rgba(163, 230, 53, 0.3);
    transform: translateY(-1px);
}

.nav-balance-capsule .ltc-badge {
    background: var(--accent-cyan);
    color: #090e17;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 11px;
}

/* Legacy #money element styling */
#money {
    font-weight: 700;
    color: var(--accent-neon) !important;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -0.2px;
}

/* Logout Button */
.btn-logout {
    color: #f87171 !important;
    border: 1px solid rgba(248, 113, 113, 0.3) !important;
    border-radius: 6px;
    padding: 6px 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background-color: rgba(248, 113, 113, 0.15) !important;
    color: #ffffff !important;
    border-color: #f87171 !important;
}

/* ==========================================================================
   MOBILE & TABLET NAVBAR OVERRIDES
   ========================================================================== */
.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--accent-cyan);
}

@media (max-width: 1199.98px) {
    .navbar-collapse {
        background: #090e17;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 15px 10px 25px 10px;
        margin-top: 10px;
        border-radius: 0 0 16px 16px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
        max-height: 80vh;
        overflow-y: auto;
    }

    .navbar-collapse .navbar-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .navbar-collapse .nav-link {
        font-size: 15px !important;
        padding: 11px 16px !important;
        margin-bottom: 3px;
        border-radius: 8px;
    }

    .nav-section-title {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #64748b;
        font-weight: 700;
        padding: 12px 16px 4px 16px;
    }

    .mobile-user-card {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 12px 16px;
        margin-bottom: 12px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-logout-wrap {
        padding-top: 10px;
        margin-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* ==========================================================================
   MAIN LAYOUT & STAGE CONTAINER
   ========================================================================== */
#mainform {
    padding-top: calc(var(--nav-height) + 20px) !important;
    padding-bottom: 40px !important;
    background: transparent !important;
    min-height: calc(100vh - 80px);
}

.row.content {
    height: auto !important;
    min-height: auto !important;
    display: flex;
    justify-content: center;
    margin: 0 !important;
}

/* Completely remove the outdated empty sidebars */
.sidenav {
    display: none !important;
}

/* Modern Centered Card Container */
.col-sm-8,
.faucet-main-card {
    background: var(--bg-card) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28) !important;
    max-width: 960px !important;
    width: 100% !important;
    flex: 0 0 100% !important;
    margin: 0 auto !important;
    padding: 35px 30px !important;
    float: none !important;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

@media (max-width: 767.98px) {
    #mainform {
        padding-top: calc(var(--nav-height) + 12px) !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        padding-bottom: 25px !important;
    }

    .col-sm-8,
    .faucet-main-card {
        padding: 22px 14px !important;
        border-radius: 16px !important;
        max-width: 100% !important;
    }
}

/* ==========================================================================
   PROMOTIONAL & INTEREST BANNER
   ========================================================================== */
.card.bg-primary,
.promo-interest-banner {
    background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%) !important;
    border: none !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.25) !important;
    color: #ffffff !important;
    margin-bottom: 25px;
    padding: 16px 20px;
    text-align: left;
}

.promo-interest-banner .banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.promo-interest-banner h4,
.promo-interest-banner .banner-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.promo-interest-banner p,
.promo-interest-banner .banner-desc {
    margin: 0;
    font-size: 0.92rem;
    opacity: 0.95;
}

.promo-interest-banner .btn-banner {
    background: #ffffff;
    color: #0369a1 !important;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 50px;
    padding: 8px 18px;
    white-space: nowrap;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.promo-interest-banner .btn-banner:hover {
    background: #f0f9ff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   MODERN PAYOUT TABLE
   ========================================================================== */
.table-payout-wrap {
    margin: 25px auto 20px auto;
    max-width: 650px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-card);
}

.table-payout-wrap .table {
    margin-bottom: 0;
    border: none;
}

.table thead.thead-dark th {
    background: #0f172a !important;
    color: #f8fafc !important;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 13px 16px;
    border: none;
}

.table tbody td {
    padding: 11px 16px;
    vertical-align: middle;
    font-size: 14.5px;
    border-top: 1px solid #f1f5f9;
}

.table tbody tr:hover td {
    background-color: #f8fafc;
}

.table td.payout-val {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-weight: 700;
    color: #0f172a;
}

/* Jackpot Row Highlight */
.table tr.jackpot-row td {
    background: linear-gradient(90deg, #fef3c7 0%, #fffbeb 100%) !important;
    font-weight: 800;
    color: #92400e;
    border-top: 2px solid #f59e0b;
    border-bottom: 2px solid #f59e0b;
}

.badge-jackpot {
    background: #f59e0b;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 50px;
    margin-left: 6px;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   DIGITAL COUNTDOWN TIMER
   ========================================================================== */
#timerandnotification {
    margin: 25px auto;
}

.timercountdown,
#clock {
    background: #090e17 !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.15) !important;
    border-radius: 16px !important;
    padding: 16px 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 20px !important;
    width: auto !important;
    height: auto !important;
    min-width: 260px;
    margin: 0 auto 12px auto;
}

.countdown_section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 8px !important;
    float: none !important;
}

.countdown_amount,
#cislo1,
#cislo2,
#date1,
#date2,
#date3,
#date4 {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 38px !important;
    font-weight: 800 !important;
    color: var(--accent-cyan) !important;
    line-height: 1 !important;
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.5) !important;
}

.countdown_label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    font-weight: 700;
    margin-top: 6px;
}

.timer-separator {
    font-family: 'JetBrains Mono', monospace;
    font-size: 32px;
    color: rgba(56, 189, 248, 0.5);
    font-weight: 800;
    margin-top: -12px;
}

/* Sound Notification Toggle */
.sound-toggle-wrap {
    margin: 12px auto;
    font-size: 14px;
    color: var(--text-muted);
}

.sound-toggle-wrap a {
    color: var(--primary);
    font-weight: 600;
}

/* ==========================================================================
   CAPTCHA & ROLL BUTTON
   ========================================================================== */
.owncaptcharoll,
#formroll {
    background: #f8fafc;
    border: 1px solid var(--border-card);
    border-radius: 14px;
    padding: 20px;
    margin: 20px auto;
    max-width: 320px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.owncaptcharoll img,
#captchaimg {
    width: 200px;
    height: 50px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.refresh-captcha-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    font-weight: 600;
    font-size: 12.5px;
    margin: 8px 0 12px 0;
    text-decoration: none !important;
}

.refresh-captcha-btn:hover {
    color: var(--primary-hover);
}

#captchainput {
    width: 100%;
    max-width: 240px;
    height: 44px;
    border-radius: 8px;
    border: 2px solid #cbd5e1;
    font-size: 18px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    text-align: center;
    letter-spacing: 2px;
    padding: 6px 12px;
    transition: all 0.2s ease;
}

#captchainput:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

/* Big Vibrant Roll Button */
.btn-roll-faucet,
#roll {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 42px !important;
    border-radius: 50px !important;
    border: none !important;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4) !important;
    transition: all 0.25s ease !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin: 10px auto 25px auto;
}

.btn-roll-faucet:hover,
#roll:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.55) !important;
}

.btn-roll-faucet:active,
#roll:active {
    transform: translateY(0);
}

/* Lucky Number Roll Result */
#numberroll {
    font-family: 'JetBrains Mono', monospace;
    font-size: 52px;
    font-weight: 800;
    letter-spacing: 2px;
    margin: 15px auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#info {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 1.15rem;
    font-weight: 700;
    max-width: 450px;
    margin: 15px auto;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.15);
}

/* ==========================================================================
   GAMES & CARDS MOBILE RESPONSIVENESS
   ========================================================================== */
.dicebox,
.game-card-box {
    margin: 0 auto;
    padding: 20px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid var(--border-card);
}

@media (max-width: 767.98px) {
    .dicebox {
        padding: 15px 10px;
    }

    .panel {
        transform: scale(0.8) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 480px) {
    .panel {
        transform: scale(0.68) !important;
        margin-bottom: 10px !important;
    }

    .timercountdown,
    #clock {
        min-width: 220px !important;
        padding: 12px 18px !important;
        gap: 12px !important;
    }

    .countdown_amount,
    #cislo1,
    #cislo2 {
        font-size: 28px !important;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background: #090e17 !important;
    color: #64748b !important;
    padding: 25px 15px !important;
    font-size: 13.5px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 10;
}

footer p {
    margin: 0;
    font-weight: 500;
}