/* public/css/providers.css */
/* Prevent ANY horizontal scroll on the page */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

.providers-page {
    overflow-x: hidden;
    max-width: 100%;
}

.providers-page {
    background: #0d0d0d;
    min-height: 100vh;
    color: #fff;
    padding-bottom: 90px; /* clearance for fixed bottom-nav */
    border-top: 1px solid #ffffff36;
}

/* Header */
.providers-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #1a1a1a;
}
.providers-title {
    font-size: 18px;
    font-weight: 700; 
    margin: 0;
    flex: 1;
    text-align: center;
}
.providers-back,
.providers-search {
    color: #999;
    font-size: 18px;
    width: 24px;
}

/* Sort bar */
.providers-sort {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    color: #888;
    font-size: 14px;
    border-bottom: 1px solid #222;
    cursor: pointer;
}
.providers-sort__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    list-style: none;
    margin: 4px 0 0;
    padding: 4px 0;
    z-index: 20;
}
.providers-sort__menu.open {
    display: block;
}
.providers-sort__menu li {
    padding: 10px 16px;
    color: #ccc;
    font-size: 13px;
}
.providers-sort__menu li:hover {
    background: #262626;
    color: #fff;
}

/* Grid */
.providers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 16px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
.provider-card {
    background: #4d4d4d;
    border-radius: 10px;
    aspect-ratio: 1.7 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    transition: transform 0.15s ease, background 0.15s ease;
    min-width: 0;        /* ← critical: prevents flex/grid children from overflowing */
    overflow: hidden;
    box-sizing: border-box;
}

.provider-card:hover,
.provider-card:active {
    background: #5c5c5c;
    transform: translateY(-1px);
}

.provider-card.active {
    outline: 2px solid #ffce12;
}

.provider-card__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block; 
}

/* Bottom nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    background: #111;
    padding: 8px 0;
    border-top: 1px solid #222;
    z-index: 30;
}
.bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    color: #999;
}
.bottom-nav__item i {
    font-size: 20px;
    margin-bottom: 2px;
}
.bottom-nav__item.active {
    color: #ffce12;
}

/* ============================================
   Provider games page (games-by-provider)
   ============================================ */

.provider-games-page {
    background: #0d0d0d;
    min-height: 100vh;
    color: #fff;
    padding-bottom: 90px;
}

.provider-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px;
}

/* Provider select, styled to sit on the dark theme without losing the native <select> */
.provider-select-wrap {
    position: relative;
}
.provider-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: #1a1a1a;
    color: #ccc;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 12px 36px 12px 14px;
    font-size: 14px;
}
.provider-select__chevron {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
    font-size: 12px;
}

/* Search input */
.provider-search-wrap {
    position: relative;
}
.provider-search {
    width: 100%;
    background: #1a1a1a;
    color: #fff;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 12px 14px 12px 36px;
    font-size: 14px;
}
.provider-search::placeholder {
    color: #777;
}
.provider-search__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    font-size: 13px;
}

/* Game grid + cards */
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 4px 16px 16px;
}

.game-card {
    position: relative;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    background: #262626;
    aspect-ratio: 3 / 4;
}
.game-card__img-wrap {
    width: 100%;
    height: 100%;
}
.game-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.game-card__overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 6px 10px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 60%);
}
.game-card__name {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    line-height: 1.2;
}
.game-card__btn {
    font-size: 11px;
    font-weight: 700;
    color: #0d0d0d;
    background: #ffce12;
    border-radius: 6px;
    padding: 3px 14px;
}

.site-footer {
    background-color: #1a1a2e;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 28px 16px;
    text-align: center;
    font-family: inherit;
}

.site-footer__top {
    margin-bottom: 24px;
}

.site-footer__copyright,
.site-footer__rights {
    margin: 4px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.site-footer__middle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.site-footer__badge--age {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #e8a020;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e8a020;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.site-footer__responsible {
    border: 2px solid #e8a020;
    border-radius: 8px;
    padding: 12px 20px;
    color: #e8a020;
    font-weight: 700;
    font-size: 13px;
    text-align: center;
    line-height: 1.4;
    text-transform: uppercase;
}

.site-footer__divider {
    width: 1px;
    height: 52px;
    background-color: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.site-footer__socials {
    display: flex;
    gap: 10px;
}

.site-footer__social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #e8a020;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.site-footer__social-link:hover {
    background-color: #f0b535;
}

.site-footer__social-link img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

.site-footer__bottom strong {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}


.jackpot-wrapper {
    background: radial-gradient(ellipse at top, #111118 0%, #0a0a0f 100%);
    padding: 28px 0 32px;   /* remove horizontal padding, let list handle it */
    text-align: center;
    font-family: 'Arial Black', Arial, sans-serif;
    width: 100%;
    box-sizing: border-box;
}
/* ── Header ── */
.jackpot-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 28px;
    gap: 4px;
}

.jackpot-title {
    font-size: 42px;
    font-weight: 900;
    color: #fff;
    text-shadow:
        0 0 10px #00ffaa,
        0 0 30px #00ffaa,
        2px 2px 0 #004d30;
    letter-spacing: 4px;
}

.jackpot-number {
    display: inline-block;
   
    border: 3px solid #00ffaa;
    border-radius: 40px;
    padding: 6px 32px;
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    box-shadow:
        0 0 16px #00ffaa,
        inset 0 0 12px rgba(0, 255, 170, 0.15);
    text-shadow: 0 0 10px #00ffaa;
}

/* ── Cards ── */
.jackpot-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 100%;        /* was 480px */
    width: 100%;
    margin: 0 auto;
    padding: 0 12px;
    box-sizing: border-box;
}

.jackpot-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    border-radius: 16px;
    background: #12121a;
    width: 100%;
    box-sizing: border-box;
}

.jackpot-card__label {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 1px;
}

.jackpot-card__amount {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 1px;
}

/* Platinum — white/cyan glow */
.jackpot-card--platinum {
    border-color: #00ffcc;
    box-shadow: 0 0 16px rgba(0, 255, 204, 0.35);
}
.jackpot-card--platinum .jackpot-card__label,
.jackpot-card--platinum .jackpot-card__amount {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0, 255, 204, 0.6);
}

/* Gold — yellow glow */
.jackpot-card--gold {
    border-color: #f0c000;
    box-shadow: 0 0 16px rgba(240, 192, 0, 0.35);
}
.jackpot-card--gold .jackpot-card__label,
.jackpot-card--gold .jackpot-card__amount {
    color: #f0c000;
    text-shadow: 0 0 8px rgba(240, 192, 0, 0.6);
}

/* Silver — lime-green glow */
.jackpot-card--silver {
    border-color: #aaff00;
    box-shadow: 0 0 16px rgba(170, 255, 0, 0.3);
}
.jackpot-card--silver .jackpot-card__label,
.jackpot-card--silver .jackpot-card__amount {
    color: #aaff00;
    text-shadow: 0 0 8px rgba(170, 255, 0, 0.5);
}

/* Mobile menu overlay */
.mobile-menu-bg {
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(4px);
}

.header-mobile-menu {
    background: #0f0f17 !important;
    border-right: 1px solid rgba(232, 160, 32, 0.15) !important;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.6) !important;
}

/* Username */
.header-mobile-menu .block-user {
    padding: 20px 16px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 8px;
}

.header-mobile-menu .user-name {
    color: #e8a020 !important;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.3px;
}

/* Close button */
.menu-close a {
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 18px;
}
.menu-close a:hover {
    color: #e8a020 !important;
}

/* Menu items */
.header-mobile-menu .main-menu ul {
    list-style: none;
    padding: 0 12px;
    margin: 0;
}

.header-mobile-menu .main-menu ul li a {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    padding: 13px 16px !important;
    margin-bottom: 6px;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    transition: background 0.15s, border-color 0.15s, color 0.15s !important;
}

.header-mobile-menu .main-menu ul li a:hover {
    background: rgba(232, 160, 32, 0.08) !important;
    border-color: rgba(232, 160, 32, 0.2) !important;
    color: #e8a020 !important;
}

/* Logout */
.header-mobile-menu .main-menu ul li a.btn-vl {
    background: transparent !important;
    border: 1px solid #e8a020 !important;
    color: #e8a020 !important;
    text-align: center !important;
    justify-content: center !important;
    margin-top: 8px;
    font-weight: 700 !important;
}

.header-mobile-menu .main-menu ul li a.btn-vl:hover {
    background: rgba(232, 160, 32, 0.1) !important;
}

/* Login button for guests */
.header-mobile-menu .header-auth .btn-pr {
    display: block;
    margin: 16px 12px 0;
    padding: 13px 16px;
    background: linear-gradient(135deg, #e8a020, #f5c842) !important;
    color: #0a0a0f !important;
    border-radius: 12px !important;
    text-align: center;
    font-weight: 700 !important;
    text-decoration: none;
    border: none !important;
}

    .btn-info    { background: rgba(52,152,219,0.15) !important; color: #3498db !important; border: 1px solid rgba(52,152,219,0.3) !important; }
    .btn-warning { background: rgba(232,160,32,0.15) !important; color: #e8a020 !important; border: 1px solid rgba(232,160,32,0.3) !important; }
    .btn-primary { background: rgba(255,255,255,0.06) !important; color: #aaa !important; border: 1px solid rgba(255,255,255,0.1) !important; }
    .btn-danger  { background: rgba(231,76,60,0.15) !important; color: #e74c3c !important; border: 1px solid rgba(231,76,60,0.3) !important; }
    .btn-theme   { background: linear-gradient(135deg, #e8a020, #f5c842) !important; color: #0a0a0f !important; border: none !important; font-weight: 700; }

    .btn { border-radius: 8px !important; font-size: 12px !important; font-weight: 600 !important; }

    .table-bordered { border-color: #2a2a3a !important; }
    .table-bordered td, .table-bordered th { border-color: #2a2a3a !important; }

    .table-striped tbody tr:nth-of-type(odd)  { background-color: #12121a !important; }
    .table-striped tbody tr:nth-of-type(even) { background-color: #0f0f17 !important; }
    .table-striped > tbody > tr:nth-of-type(odd)  > td { background-color: #12121a !important; color: white !important; }
    .table-striped > tbody > tr:nth-of-type(even) > td { background-color: #0f0f17 !important; color: white !important; }

    .table-history th { color: #e8a020 !important; background: #1a1a26 !important; border-bottom: 2px solid #e8a020 !important; }
    .table-history td { color: #1a1a26 !important; }

    .alert-success { background: rgba(39,174,96,0.1) !important; border: 1px solid rgba(39,174,96,0.3) !important; color: #2ecc71 !important; border-radius: 10px; }

    .form-control { background: #1a1a26 !important; border: 1px solid #2a2a3a !important; color: #fff !important; border-radius: 10px !important; }
    .form-control::placeholder { color: #444 !important; }
    .form-control:focus { border-color: #e8a020 !important; box-shadow: 0 0 0 3px rgba(232,160,32,0.08) !important; }