:root {
    --primary: #00ffff; /* Valor padrão, será sobrescrito via PHP */
}

/* =========================================
   CORE RESET & BOX MODEL
========================================= */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Outfit', sans-serif;
    background: #080a10;
    /* Darker, cleaner background */
    color: #e2e8f0;
    overflow-x: hidden;
}

/* =========================================
   CASINO LOBBY - NAVIGATION
========================================= */
.casino-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    background: rgba(8, 10, 16, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: 80px;
    display: flex;
    align-items: center;
    overflow: visible;
    /* Permite dropdown aparecer fora da barra */
}

.nav-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo img {
    height: 42px;
    width: auto;
    transform: scale(1.6);
    transform-origin: left center;
    /* Cresce a imagem sem empurrar a direita */
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.65);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Auth Buttons Group */
.auth-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-auth {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    text-transform: uppercase;
    white-space: nowrap;
}

.btn-auth.signup {
    background: var(--primary);
    color: #080a10;
    border: none;
    font-weight: 700;
}

.btn-auth:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.btn-auth.signup:hover {
    background: #33ffff;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.15);
}

/* User & Balance Group */
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding-right: 15px;
}

#nav-username {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-logout {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.btn-logout:hover {
    opacity: 1;
}

/* Profile Dropdown */
.profile-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 10px;
    transition: background 0.2s ease;
    color: #e2e8f0;
}

.profile-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

#profile-pic {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 255, 0.4);
    object-fit: cover;
}

.profile-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-arrow {
    color: #64748b;
    transition: transform 0.25s ease;
}

.profile-btn.open .profile-arrow {
    transform: rotate(180deg);
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: #0f121d;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    min-width: 220px;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.6);
    animation: dropIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10000;
    overflow: hidden;
}

@keyframes dropIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

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

.dropdown-header {
    padding: 16px 18px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.d-name {
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
}

.d-status {
    font-size: 0.75rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.profile-dropdown hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin: 4px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.dropdown-item svg {
    flex-shrink: 0;
}

.logout-item {
    color: #f87171;
}

.logout-item:hover {
    background: rgba(248, 113, 113, 0.07);
    color: #ff6b6b;
}

.balance-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 6px 6px 6px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.balance-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.balance-box .label {
    font-size: 0.65rem;
    color: #94a3b8;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.balance-box .currency {
    font-weight: 700;
    color: var(--primary);
}

#nav-balance {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    font-family: monospace;
}

.btn-deposit-nav {
    background: var(--primary);
    color: #080a10;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-deposit-nav:hover {
    background: #33ffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.2);
}

.btn-deposit-nav svg {
    stroke-width: 3px;
}

/* MOBILE BREAKPOINTS — sempre em linha única */
@media (max-width: 900px) {
    .nav-container {
        padding: 0 15px;
    }

    .logo img {
        height: 35px;
        transform: scale(1.4);
        transform-origin: left center;
    }

    .btn-auth {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
}

@media (max-width: 650px) {
    .casino-navbar {
        height: 64px;
        overflow: visible;
    }

    .nav-container {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0;
        padding: 0 12px;
        overflow: visible;
    }

    .logo {
        flex-shrink: 0;
    }

    .logo img {
        height: 28px;
        transform: scale(1.4);
        transform-origin: left center;
    }

    .nav-right {
        flex: 1;
        justify-content: flex-end;
        gap: 8px;
        overflow: visible;
    }

    .user-profile {
        border: none;
        padding-right: 0;
        overflow: visible;
    }

    .balance-box {
        padding: 4px 4px 4px 10px;
        gap: 8px;
    }

    #nav-balance {
        font-size: 0.9rem;
    }

    .balance-box .currency {
        font-size: 0.8rem;
    }

    .btn-deposit-nav {
        display: none;
    }

    .auth-buttons {
        gap: 6px;
    }

    .btn-auth {
        padding: 7px 10px;
        font-size: 0.75rem;
    }

    #profile-pic {
        width: 30px;
        height: 30px;
    }

    .profile-dropdown {
        right: 0;
        left: auto;
        min-width: 200px;
        z-index: 99999;
    }

    /* NO MODAL - FULL PAGE VIEW FOR DEPOSIT ON MOBILE */
    #deposit-modal {
        background: #080a10 !important;
        backdrop-filter: none !important;
        padding: 0 !important;
        bottom: 60px !important;
        height: calc(100% - 60px) !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
    }

    .deposit-modal-content {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        border-radius: 0 !important;
        border: none !important;
        background: #080a10 !important;
        box-shadow: none !important;
        padding: 85px 20px 40px !important;
        /* Top padding for the header/back button */
        margin: 0 !important;
        position: relative;
        overflow-y: auto;
        animation: none !important;
        /* Instant transition for 'Page' feel */
    }

    #deposit-modal .modal-close {
        top: 25px;
        left: 20px;
        right: auto;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

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

/* =========================================
   AUTH MODALS (CLEAN UI)
========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 5, 8, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.modal-content {
    background: #0f121d;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 35px;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    /* Adicionado Scroll */
    position: relative;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    animation: modalAppear 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scrollbar Personalizado para Modais */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.97) translateY(10px);
    }

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #fff;
}

.modal-title {
    color: #fff;
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.modal-title span {
    color: var(--primary);
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.modal-content input {
    -webkit-appearance: none;
    appearance: none;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 16px;
    border-radius: 10px;
    color: #e2e8f0;
    font-size: 1rem;
    outline: none;
    width: 100%;
    transition: all 0.2s ease;
}

.modal-content input:focus {
    border-color: var(--primary);
    background: rgba(0, 255, 255, 0.02);
}

/* Security Specifics */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

.password-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 45px !important;
}

.eye-toggle {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 45px;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.eye-toggle:hover {
    color: #fff;
}

.strength-meter {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin-top: -6px;
    overflow: hidden;
}

#strength-bar {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background 0.3s ease;
}

#strength-bar.weak {
    width: 33%;
    background: #ef4444;
}

#strength-bar.medium {
    width: 66%;
    background: #f59e0b;
}

#strength-bar.strong {
    width: 100%;
    background: #10b981;
}

.modal-btn {
    background: var(--primary);
    color: #080a10;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    margin-top: 5px;
}

.modal-btn:hover {
    background: #33ffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.15);
}

.modal-switch {
    text-align: center;
    color: #94a3b8;
    margin-top: 25px;
    font-size: 0.9rem;
}

.modal-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-left: 6px;
    transition: color 0.2s;
}

.modal-switch a:hover {
    color: #fff;
}

@media (max-width: 450px) {
    .modal-content {
        padding: 30px 20px;
    }

    .modal-title {
        font-size: 1.4rem;
        margin-bottom: 25px;
    }
}

/* =========================================
   DEPOSIT MODAL SPECIFICS
 ========================================= */
.deposit-modal-content {
    max-width: 440px;
    background: #0f121d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8);
}

.deposit-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.preset-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.preset-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    padding: 12px 0;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.preset-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transform: translateY(-2px);
}

.preset-btn.active {
    background: var(--primary);
    color: #080a10 !important;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.02);
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.input-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.deposit-input {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    color: #fff !important;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    font-family: monospace;
    outline: none;
    width: 100%;
}

.deposit-input::placeholder {
    color: rgba(255, 255, 255, 0.1);
}

#deposit-cpf {
    font-size: 1.1rem !important;
    letter-spacing: 1px;
}

.input-hint {
    color: #475569;
    font-size: 0.65rem;
    font-weight: 500;
}

.deposit-submit-btn {
    padding: 18px !important;
    font-size: 1rem !important;
    margin-top: 5px;
    background: var(--primary) !important;
    color: #080a10 !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* =========================================
   CAROUSEL (PREMIUM VIEW)
========================================= */
.casino-carousel {
    max-width: 1400px;
    width: 100%;
    padding: 0 20px;
    margin: 110px auto 35px;
    position: relative;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Clean container border */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.carousel-track {
    display: flex;
    will-change: transform;
}

.banner {
    flex: 0 0 33.333%;
    padding: 0 10px;
    box-sizing: border-box;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    filter: brightness(0.5);
    /* Escurece os não-focados levemente */
    transform: scale(0.92);
    z-index: 1;
}

.banner.center-banner {
    filter: brightness(1);
    transform: scale(1);
    z-index: 2;
}

.banner-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1168 / 784;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: box-shadow 0.6s ease;
}

.banner.center-banner .banner-img {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

/* Pontinhos de Navegação */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

@media (max-width: 1024px) {
    .banner {
        flex: 0 0 100%;
        padding: 0;
    }

    .carousel-container {
        border-radius: 12px;
    }

    .banner.center-banner {
        transform: scale(1);
    }
}

/* =========================================
   NEWS TICKER (CLEAN MARQUEE)
========================================= */
.news-ticker-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.ticker-box {
    background: #0f121d;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.ticker-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background: #0f121d;
    position: relative;
    height: 100%;
}

.icon-left {
    padding-right: 16px;
    box-shadow: 15px 0 15px -5px rgba(15, 18, 29, 1);
}

.icon-right {
    padding-left: 16px;
    box-shadow: -15px 0 15px -5px rgba(15, 18, 29, 1);
    cursor: pointer;
}

.ticker-icon svg {
    color: #94a3b8;
    stroke: currentColor;
    transition: color 0.2s ease;
}

.icon-right svg {
    stroke: var(--primary);
}

.ticker-badge {
    position: absolute;
    top: 6px;
    right: -6px;
    background: #ef4444;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ticker-text-wrapper {
    flex: 1;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.ticker-text {
    display: inline-block;
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 400;
    white-space: nowrap;
    animation: marquee 25s linear infinite;
    padding-left: 100%;
}

.ticker-text .highlight {
    color: var(--primary);
    font-weight: 600;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

@media (max-width: 1024px) {
    .news-ticker-container {
        margin: 0 auto 35px;
    }
}

/* =========================================
   GAMES GRID (MINIMALIST CARDS)
========================================= */
.casino-games-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.section-title {
    font-size: 1.4rem;
    color: #fff;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.game-card {
    background: #0f121d;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

.game-thumb {
    position: relative;
    height: 180px;
    width: 100%;
    overflow: hidden;
}

.game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: transform 0.4s ease;
}

.game-card:hover .game-thumb img {
    transform: scale(1.05);
}

.game-thumb .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 10, 16, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.game-card:hover .overlay {
    opacity: 1;
}

.game-thumb .overlay span {
    padding: 12px 24px;
    background: var(--primary);
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #080a10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.game-info {
    padding: 22px;
}

.game-info h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    color: #f8fafc;
    font-weight: 700;
}

.game-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.5;
}

/* =========================================
   FOOTER (CLEAN)
========================================= */
.casino-footer {
    background: #080a10;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.footer-text {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 5px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
}

/* =========================================
   FULLSCREEN GAME ENGINE (HUD CLEANUP)
========================================= */
#game-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: #080a10;
    overflow: hidden;
    touch-action: none;
    user-select: none;
}

#game-container::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/fundo.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
    mix-blend-mode: screen;
}

#game-canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    display: block;
    width: 100%;
    height: 100%;
}

/* Game HUD Overlays */
#ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#score-container {
    margin-top: 30px;
    background: rgba(15, 18, 29, 0.8);
    padding: 16px 48px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.score-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 2px;
}

#balance {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    font-family: monospace;
    letter-spacing: -1px;
}

#hint-text {
    margin-top: 110px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
    letter-spacing: 1px;
    background: rgba(15, 18, 29, 0.8);
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.neon-red {
    color: #ef4444;
    font-weight: 700;
}

#swipe-hint {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 2px;
    animation: blink 2s infinite;
}

#btn-back-lobby {
    position: absolute;
    top: 25px;
    left: 25px;
    z-index: 10000;
    background: rgba(15, 18, 29, 0.8);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#btn-back-lobby:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-1px);
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(8, 10, 16, 0.85);
    backdrop-filter: blur(12px);
    z-index: 100;
    color: white;
}

.menu-panel {
    background: #0f121d;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 45px 40px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    min-width: 330px;
    position: relative;
    overflow: hidden;
}

.sys-status {
    font-size: 0.75rem;
    color: #94a3b8;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

.cyber-title {
    font-size: 4rem;
    line-height: 0.9;
    margin-bottom: 10px;
    color: #fff;
    font-weight: 800;
    letter-spacing: -2px;
}

.cyber-title span {
    color: var(--primary);
}

.subtitle {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 3px;
    color: #64748b;
    margin-bottom: 40px;
}

.alert-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.gameover-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ef4444;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.stats-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 35px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-box p {
    font-size: 0.8rem;
    color: #94a3b8;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 500;
}

.stats-box h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin: 0;
    letter-spacing: -1px;
}

.btn-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.cyber-btn {
    pointer-events: all;
    width: 100%;
    background: var(--primary);
    color: #080a10;
    border: none;
    padding: 18px 40px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cyber-btn:hover {
    background: #33ffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.25);
}

@keyframes blink {

    0%,
    100% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.8;
    }
}

@media (max-width: 600px) {
    #score-container {
        padding: 12px 30px;
    }

    #balance {
        font-size: 2.5rem;
    }

    .menu-panel {
        padding: 35px 25px;
        min-width: unset;
        width: 90%;
        max-width: 360px;
    }

    .cyber-title {
        font-size: 3.2rem;
    }

    .cyber-btn {
        padding: 15px 20px;
        font-size: 0.9rem;
    }

    #swipe-hint {
        font-size: 0.75rem;
        bottom: 40px;
    }
}

/* =========================================
   BOTTOM NAVIGATION BAR (MOBILE ONLY)
========================================= */
.bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    #casino-lobby {
        padding-bottom: 80px;
    }

    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: #0c0e17;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        z-index: 10005;
        align-items: stretch;
    }

    .bottom-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        color: #64748b;
        text-decoration: none;
        font-size: 0.6rem;
        font-weight: 600;
        letter-spacing: 0.3px;
        text-transform: uppercase;
        transition: color 0.2s ease;
        position: relative;
    }

    .bottom-nav-item svg {
        width: 20px;
        height: 20px;
        stroke: currentColor;
        flex-shrink: 0;
    }

    .bottom-nav-item span {
        line-height: 1;
    }

    /* Indicador ativo */
    .bottom-nav-item.active {
        color: var(--primary);
    }

    .bottom-nav-item.active:not(#bnav-deposit)::after {
        content: '';
        position: absolute;
        top: 0;
        left: 25%;
        right: 25%;
        height: 2px;
        background: var(--primary);
        border-radius: 0 0 3px 3px;
    }

    /* Botão Depósito — elevado acima da barra */
    #bnav-deposit {
        position: relative;
        justify-content: flex-end;
        padding-bottom: 8px;
        color: #94a3b8;
    }

    .deposit-circle {
        position: absolute;
        top: -18px;
        left: 50%;
        transform: translateX(-50%);
        width: 46px;
        height: 46px;
        background: var(--primary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 14px rgba(0, 255, 255, 0.4);
        border: 4px solid #0c0e17;
        transition: all 0.2s ease;
    }

    .deposit-circle svg {
        width: 22px;
        height: 22px;
        stroke: #080a10 !important;
        stroke-width: 2.5;
    }

    #bnav-deposit.active .deposit-circle {
        background: var(--primary);
        box-shadow: 0 4px 20px rgba(0, 255, 255, 0.4);
    }

    .bnav-label {
        margin-top: 2px;
        font-size: 0.6rem;
    }

    .bnav-badge {
        position: absolute;
        top: 6px;
        right: calc(50% - 22px);
        width: 8px;
        height: 8px;
        background: #ef4444;
        border-radius: 50%;
        border: 2px solid #0c0e17;
    }
}

/* PIX PAYMENT MODAL PREMIUM */
#pix-result-modal .modal-content {
    max-width: 400px;
    text-align: center;
    border: 1px solid rgba(0, 255, 255, 0.1);
}

.payment-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 255, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.pix-instructions {
    text-align: left;
    background: rgba(255, 255, 255, 0.02);
    padding: 15px;
    border-radius: 10px;
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 20px;
}

.pix-instructions p {
    margin: 4px 0;
}

#btn-copy-pix {
    background: var(--primary) !important;
    /* Cor Primária Neon */
    color: #080a10 !important;
    /* Texto Escuro contrastante */
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 15px !important;
    border-radius: 10px;
}

#btn-copy-pix:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.4);
    background: #33ffff !important;
}

#pix-qr-img {
    image-rendering: auto;
    border-radius: 8px;
}

/* WITHDRAW FORM PREMIUM */
.withdraw-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px;
    border-radius: 16px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.withdraw-field-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.withdraw-field-wrapper:focus-within {
    border-color: var(--primary);
    background: rgba(0, 255, 255, 0.02);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
}

.withdraw-field-wrapper .prefix {
    font-size: 1.2rem;
    font-weight: 800;
    color: #475569;
    margin-right: 12px;
}

.withdraw-field-wrapper input {
    background: transparent !important;
    border: none !important;
    padding: 10px 0 !important;
    font-size: 1.8rem !important;
    font-weight: 900 !important;
    color: #fff !important;
    font-family: 'Outfit', sans-serif;
    width: 100%;
    outline: none !important;
}

.withdraw-input-text {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 16px !important;
    border-radius: 12px !important;
    color: #fff !important;
    font-size: 1rem !important;
    width: 100%;
    outline: none;
    transition: all 0.3s ease;
}

.withdraw-input-text:focus {
    border-color: var(--primary) !important;
    background: rgba(0, 255, 255, 0.02) !important;
}

.input-hint {
    margin-top: 8px;
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 500;
}

/* MOBILE FIX FOR PORTAL MODALS */
@media (max-width: 650px) {

    #deposit-modal,
    #pix-result-modal,
    #profile-modal,
    #withdraw-modal,
    #wallet-modal,
    #history-modal {
        background: #080a10 !important;
        backdrop-filter: none !important;
        padding: 0 !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        height: 100vh !important;
        width: 100vw !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        z-index: 100000 !important;
        /* Total coverage including HUD/BottomNav */
    }

    #deposit-modal .modal-content,
    #pix-result-modal .modal-content,
    #profile-modal .modal-content,
    #withdraw-modal .modal-content,
    #wallet-modal .modal-content,
    #history-modal .modal-content {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        border-radius: 0 !important;
        border: none !important;
        background: #080a10 !important;
        box-shadow: none !important;
        padding: 60px 24px 80px !important;
        margin: 0 !important;
        position: relative;
        overflow-y: auto;
        animation: none !important;
    }

    /* Ajuste fino para os títulos em tela cheia */
    .modal-title {
        text-align: left;
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    .modal-close {
        top: 20px !important;
        right: 20px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 100001 !important;
    }

    /* Padding extra para o histórico em mobile */
    .history-table-wrapper {
        margin: 0 -24px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

/* TABS & MODAL NAVIGATION */
.tabs-nav {
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
    padding: 5px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #64748b;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: var(--primary);
    color: #080a10;
}

/* PREMIUM DATA TABLE */
.history-table-wrapper {
    background: rgba(15, 18, 29, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.premium-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.85rem;
}

.premium-table thead th {
    background: rgba(255, 255, 255, 0.02);
    padding: 14px 18px;
    color: #64748b;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.premium-table tbody td {
    padding: 14px 18px;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.premium-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* BADGES DE STATUS NO HISTÓRICO */
.status-pill {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
}

.status-pill.win {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-pill.lose {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.status-pill.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.status-pill.completed {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

/* STACKED INPUT GROUPS */
.input-group-stack {
    text-align: left;
}

.input-group-stack .input-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* JUMP PROGRESS HUD (SÉRGIO STYLE) */
#game-progress-hud {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    z-index: 100;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.p-chip {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.p-bet {
    background: #ddb100;
    /* Gold/Yellow from print */
    color: #000;
}

.p-win {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.progress-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
}

#progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ddb100, #ffea00);
    box-shadow: 0 0 10px rgba(221, 177, 0, 0.5);
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* CUSTOM MODAL SCROLLBAR */
.history-table-wrapper::-webkit-scrollbar {
    width: 5px;
}

.history-table-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.history-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

/* FLOATING PROFIT ANIMATION (JUMP CA$H STYLE) */
.floating-profit {
    position: absolute;
    color: #00ffcc;
    font-weight: 900;
    font-size: 1.6rem;
    pointer-events: none;
    z-index: 10000;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.5), 0 0 20px rgba(0, 0, 0, 0.8);
    font-family: 'Outfit', sans-serif;
    animation: floatUpFade 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes floatUpFade {
    0% {
        opacity: 0;
        transform: translate(-50%, 0) scale(0.5);
    }

    15% {
        opacity: 1;
        transform: translate(-50%, -20px) scale(1.1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -100px) scale(1);
    }
}

/* =========================================
   CUSTOM SCROLLBAR
========================================= */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #080a10;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}