@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #07090e;
    --bg-card: #0c111c;
    --bg-input: #121927;
    --bg-sidebar: #090c14;
    --primary: #01b7fc; /* Ciano Neon */
    --primary-hover: #00a5e3;
    --primary-gradient: linear-gradient(135deg, #01b7fc 0%, #0066ff 100%);
    --accent: #ff0055;
    --accent-green: #00e676;
    --accent-orange: #ff9100;
    --text-main: #f5f6f8;
    --text-muted: rgba(245, 246, 248, 0.6);
    --border-color: rgba(255, 255, 255, 0.05);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
    --glass-bg: rgba(12, 17, 28, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-dark);
}

/* Scrollbar Customization */
*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
*::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
*::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 10px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Layout Geral */
.app-container {
    display: grid;
    grid-template-columns: 80px 1fr;
    grid-template-rows: 70px 1fr;
    grid-template-areas: 
        "sidebar header"
        "sidebar main";
    min-height: 100vh;
    transition: grid-template-columns 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.app-container.expanded {
    grid-template-columns: 280px 1fr;
}

@media (max-width: 992px) {
    .app-container {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "header"
            "main";
    }
    .sidebar {
        display: none !important;
    }
}

/* Header */
.header {
    grid-area: header;
    background-color: var(--bg-sidebar);
    border-bottom: var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.menu-toggle:hover {
    color: var(--primary);
}

.search-box {
    position: relative;
    width: 320px;
}

.search-box input {
    width: 100%;
    background-color: var(--bg-input);
    border: var(--glass-border);
    border-radius: 30px;
    padding: 10px 20px 10px 45px;
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 178, 255, 0.2);
}

.search-box i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.balance-card {
    background-color: var(--bg-input);
    border: var(--glass-border);
    border-radius: 30px;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-main);
}

.balance-card span {
    color: var(--primary);
}

.btn-deposit {
    background: var(--primary-gradient);
    border: none;
    border-radius: 30px;
    color: #fff;
    padding: 10px 24px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 178, 255, 0.3);
}

.btn-deposit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 178, 255, 0.5);
}

.user-profile-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-main);
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
}

/* Sidebar */
.sidebar {
    grid-area: sidebar;
    background-color: var(--bg-sidebar);
    border-right: var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 15px 10px;
    z-index: 101;
    overflow-x: hidden;
    width: 80px;
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), padding 0.3s ease;
}

.app-container.expanded .sidebar {
    width: 280px;
    padding: 20px;
}

/* Oculta textos na sidebar colapsada por padrão (somente no Desktop) */
@media (min-width: 993px) {
    .app-container:not(.expanded) .sidebar .link-text,
    .app-container:not(.expanded) .sidebar .sidebar-badge,
    .app-container:not(.expanded) .sidebar .sidebar-section-label,
    .app-container:not(.expanded) .sidebar .sidebar-official-profiles,
    .app-container:not(.expanded) .sidebar .sidebar-ver-mais-btn {
        display: none !important;
    }
}

/* Exibe elementos de texto quando a sidebar é expandida */
.app-container.expanded .sidebar .link-text {
    display: inline !important;
}
.app-container.expanded .sidebar .sidebar-badge {
    display: inline-block !important;
}
.app-container.expanded .sidebar .sidebar-section-label {
    display: block !important;
}
.app-container.expanded .sidebar .sidebar-official-profiles {
    display: flex !important;
}
.app-container.expanded .sidebar .sidebar-ver-mais-btn {
    display: block !important;
}

/* Responsividade do cabeçalho do usuário em Mobile */
@media (max-width: 576px) {
    .user-profile-trigger span,
    .user-profile-trigger i {
        display: none !important;
    }
    .user-profile-trigger {
        padding: 0;
        margin-left: 5px;
    }
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
    text-decoration: none;
    justify-content: center;
}

.app-container.expanded .logo-container {
    justify-content: flex-start;
}

.logo-text {
    display: none;
    white-space: nowrap;
}

.logo-text span {
    color: var(--primary);
}

.app-container.expanded .logo-text {
    display: inline;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    justify-content: center;
}

.app-container.expanded .sidebar-link {
    justify-content: flex-start;
    padding: 12px 18px;
}

.sidebar-link:hover, .sidebar-link.active {
    background-color: var(--bg-input);
    color: #fff;
}

.sidebar-link.active i {
    color: var(--primary);
}

.sidebar-link i {
    font-size: 18px;
    transition: color 0.2s ease;
}

.sidebar-promo-card {
    margin-top: auto;
    background: linear-gradient(135deg, rgba(0, 178, 255, 0.1) 0%, rgba(0, 102, 255, 0.05) 100%);
    border: 1px solid rgba(0, 178, 255, 0.2);
    border-radius: 16px;
    padding: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sidebar-promo-card h4 {
    font-size: 14px;
    margin-bottom: 5px;
    color: #fff;
}

.sidebar-promo-card p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* Main Content Area */
.main-content {
    grid-area: main;
    padding: 30px;
    overflow-y: auto;
}

/* Banner Carousel */
.promo-carousel {
    background: linear-gradient(90deg, rgba(13, 18, 29, 0.9) 0%, rgba(9, 12, 20, 0.9) 100%), url('../img/banner-bg.jpg');
    background-size: cover;
    background-position: center;
    border: var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.promo-text h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.promo-text p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 20px;
}

/* Feed Ganhadores */
.winners-feed {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 35px;
}

.winner-card {
    background-color: var(--bg-card);
    border: var(--glass-border);
    border-radius: 12px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
    flex-shrink: 0;
}

.winner-info h5 {
    font-size: 13px;
    color: #fff;
}

.winner-info p {
    font-size: 11px;
    color: var(--text-muted);
}

.winner-amount {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-green);
}

/* Grid de Jogos */
.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.game-card {
    background-color: var(--bg-card);
    border: var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 178, 255, 0.25);
}

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

.game-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hot-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    background: linear-gradient(135deg, #ff5722, #ff9800);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.45);
    display: flex;
    align-items: center;
    gap: 4px;
}

.game-card:hover .game-banner img {
    transform: scale(1.1);
}

.game-info {
    padding: 15px;
}

.game-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.game-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.game-provider {
    color: var(--text-muted);
}

.game-rtp {
    color: var(--accent-green);
    font-weight: 600;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 160px;
    background: rgba(7, 9, 14, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.btn-play-game {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 10px 24px;
    font-weight: 700;
    cursor: pointer;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.game-card:hover .btn-play-game {
    transform: scale(1);
}

/* Modais e Paineis Deslizantes */
.drawer {
    position: fixed;
    top: 0;
    right: -380px;
    width: 380px;
    height: 100vh;
    background-color: var(--bg-sidebar);
    border-left: var(--glass-border);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.drawer-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.btn-close-drawer {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 22px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.btn-close-drawer:hover {
    color: #fff;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 999;
    display: none;
}

.modal-backdrop.show {
    display: block;
}

/* Form Modais */
.custom-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 500px;
    background-color: var(--bg-card);
    border: var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    z-index: 1001;
    display: none;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.custom-modal.show {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.modal-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    background-color: var(--bg-input);
    border: var(--glass-border);
    border-radius: 12px;
    padding: 12px 16px;
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
}

/* Auth Screens */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-dark);
    padding: 20px;
}

.auth-card {
    background-color: var(--bg-card);
    border: var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow);
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo a {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
}

.auth-logo a span {
    color: var(--primary);
}

/* Jogos Detalhes */
.game-viewport {
    background-color: #0b0e15;
    border: var(--glass-border);
    border-radius: 20px;
    min-height: 500px;
    padding: 30px;
    display: flex;
    gap: 30px;
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .game-viewport {
        flex-direction: column;
    }
}

.game-controls {
    width: 300px;
    background-color: var(--bg-card);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (max-width: 768px) {
    .game-controls {
        width: 100%;
    }
}

.game-screen {
    flex: 1;
    background-color: #080a0e;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

/* Mines Game Specifics */
.mines-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    width: 350px;
    height: 350px;
}

.mines-cell {
    background: radial-gradient(circle, #192235 0%, #111724 100%);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: #fff;
}

.mines-cell:hover {
    transform: scale(1.05);
    background: radial-gradient(circle, #222e47 0%, #151d2d 100%);
    box-shadow: 0 0 10px rgba(0, 178, 255, 0.3);
}

.mines-cell.revealed.star {
    background: radial-gradient(circle, #00d2ff 0%, #0066ff 100%);
    color: #fff;
}

.mines-cell.revealed.bomb {
    background: radial-gradient(circle, #ff0055 0%, #990022 100%);
    color: #fff;
}

/* Admin Styling */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--bg-card);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background-color: rgba(0, 178, 255, 0.1);
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

.stat-info h3 {
    font-size: 24px;
    font-weight: 700;
}

.stat-info p {
    color: var(--text-muted);
    font-size: 13px;
}

/* Table Style */
.custom-table-container {
    background-color: var(--bg-card);
    border: var(--glass-border);
    border-radius: 16px;
    overflow-x: auto;
    margin-bottom: 30px;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.custom-table th, .custom-table td {
    padding: 16px 20px;
    border-bottom: var(--border-color);
}

.custom-table th {
    background-color: rgba(255,255,255,0.02);
    color: var(--text-muted);
    font-weight: 600;
}

.custom-table tr:hover {
    background-color: rgba(255,255,255,0.01);
}

.badge {
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
}

.badge-pending {
    background-color: rgba(255, 145, 0, 0.15);
    color: var(--accent-orange);
}

.badge-approved {
    background-color: rgba(0, 230, 118, 0.15);
    color: var(--accent-green);
}

.badge-rejected {
    background-color: rgba(255, 0, 85, 0.15);
    color: var(--accent);
}

/* ==========================================================================
   ELEMENTOS ALINHADOS AO CASSINO.BET.BR (SIDEBAR TABS, BOTTOM NAV, CAROUSELS)
   ========================================================================== */

/* Abas da Sidebar */
.sidebar-tabs {
    display: flex;
    background-color: var(--bg-input);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 20px;
    border: var(--glass-border);
}

.sidebar-tab {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.sidebar-tab.active {
    background-color: var(--bg-card);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.02);
}

.sidebar-tab i {
    font-size: 14px;
}

/* Carrosséis horizontais de jogos */
.games-carousel-section {
    margin-bottom: 35px;
}

.games-carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.games-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 5px;
    scrollbar-width: none; /* Firefox */
}

.games-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.games-carousel .game-card {
    min-width: 200px;
    max-width: 200px;
    flex-shrink: 0;
}

.games-carousel-nav {
    display: flex;
    gap: 8px;
}

.carousel-nav-btn {
    background: var(--bg-card);
    border: var(--glass-border);
    color: var(--text-main);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-nav-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 10px rgba(1, 183, 252, 0.4);
}

/* Barra de Navegação Inferior Mobile */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: rgba(9, 12, 20, 0.95);
    backdrop-filter: blur(10px);
    border-top: var(--glass-border);
    justify-content: space-around;
    align-items: center;
    z-index: 998;
    padding: 0 10px;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    gap: 4px;
    flex: 1;
    transition: all 0.2s ease;
}

.mobile-nav-item i {
    font-size: 20px;
}

.mobile-nav-item.active, .mobile-nav-item:hover {
    color: var(--primary);
}

/* Botão de Depósito Destacado */
.mobile-nav-item.deposit-highlight {
    position: relative;
    top: -15px;
    overflow: visible;
}

.deposit-btn-circle {
    width: 54px;
    height: 54px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(1, 183, 252, 0.4);
    transition: all 0.3s ease;
}

.mobile-nav-item.deposit-highlight:hover .deposit-btn-circle {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(1, 183, 252, 0.6);
}

@media (max-width: 992px) {
    .mobile-bottom-nav {
        display: flex;
    }
    .main-content {
        padding-bottom: 90px;
    }
    
    /* Adaptar gaveta lateral para mobile drawer completo */
    .sidebar {
        position: fixed;
        top: 0 !important;
        left: -280px;
        width: 280px;
        height: 100vh !important;
        transition: left 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        display: flex !important;
        box-shadow: 10px 0 40px rgba(0,0,0,0.7);
        z-index: 1002 !important;
        padding: 20px !important;
    }
    .sidebar.open {
        left: 0;
    }

    /* Forçar a exibição de textos e componentes internos na sidebar mobile */
    .sidebar .link-text {
        display: inline !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
    }
    .sidebar .tab-text {
        display: inline !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
    }
    .sidebar .logo-text {
        display: inline !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
    }
    .sidebar .sidebar-promo-card {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
        margin-top: 20px !important;
    }
    .sidebar .sidebar-section-label {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
        margin-top: 15px !important;
        margin-bottom: 5px !important;
    }
    .sidebar .sidebar-badge {
        display: inline-block !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
    }
    .sidebar .sidebar-official-profiles {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
    }
    .sidebar .sidebar-ver-mais-btn {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
    }

    .sidebar .logo-container {
        justify-content: flex-start !important;
        margin-bottom: 20px !important;
    }

    .sidebar .sidebar-link {
        justify-content: flex-start !important;
        padding: 12px 18px !important;
    }

    .sidebar .sidebar-tabs {
        display: flex !important;
        flex-direction: row !important;
        gap: 4px !important;
    }

    .sidebar .sidebar-tab {
        padding: 10px !important;
    }
}

/* Estilos adicionais para Sidebar Colapsada (Desktop Slim) */
.sidebar .link-text,
.sidebar .tab-text,
.sidebar .logo-text,
.sidebar .sidebar-promo-card {
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.app-container:not(.expanded) .sidebar .link-text,
.app-container:not(.expanded) .sidebar .tab-text,
.app-container:not(.expanded) .sidebar .logo-text,
.app-container:not(.expanded) .sidebar .sidebar-promo-card {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.app-container:not(.expanded) .sidebar {
    width: 80px;
}

.app-container:not(.expanded) .sidebar-tabs {
    flex-direction: column;
    gap: 4px;
}

.app-container:not(.expanded) .sidebar-tab {
    padding: 8px;
}

/* Seção Jogos Mais Jogados (Top 8) */
.top-games-section {
    margin-bottom: 35px;
}

.top-games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

@media (max-width: 1200px) {
    .top-games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .top-games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .top-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.top-game-card {
    background-color: var(--bg-card);
    border: var(--glass-border);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 12px;
    gap: 12px;
}

.top-game-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(1, 183, 252, 0.2);
}

.top-game-rank {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-muted);
    font-style: italic;
    width: 25px;
    text-align: center;
}

.top-game-rank.rank-1 { color: #ffd700; text-shadow: 0 0 10px rgba(255, 215, 0, 0.4); }
.top-game-rank.rank-2 { color: #c0c0c0; text-shadow: 0 0 10px rgba(192, 192, 192, 0.4); }
.top-game-rank.rank-3 { color: #cd7f32; text-shadow: 0 0 10px rgba(205, 127, 50, 0.4); }

.top-game-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.05);
}

.top-game-details {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.top-game-details h4 {
    font-size: 14px;
    color: #fff;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-game-val {
    font-size: 11px;
    color: var(--accent-green);
    font-weight: 600;
    white-space: nowrap;
}

.top-game-btn {
    display: none;
    margin-top: 4px;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    align-self: flex-start;
}

.top-game-card:hover .top-game-btn {
    display: block;
}

/* Modals de Login e Cadastro (Estilo cassino.bet.br) */
.btn-login-outline {
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 30px;
    color: var(--primary);
    padding: 8px 24px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login-outline:hover {
    background: rgba(1, 183, 252, 0.1);
    box-shadow: 0 0 12px rgba(1, 183, 252, 0.4);
}

.btn-signup-filled {
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.4);
}

.auth-modal {
    background-color: var(--bg-card);
    border: 1px solid rgba(1, 183, 252, 0.15);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(1, 183, 252, 0.05);
}

.btn-close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 1002;
}

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

.logo-text-modal {
    display: block;
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.auth-error-alert {
    background: rgba(255, 0, 85, 0.1);
    border: 1px solid var(--accent);
    border-radius: 12px;
    color: #ff3377;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-toggle:hover {
    color: #fff !important;
}

.phone-prefix-select {
    border-right: none;
    user-select: none;
}

.auth-link-highlight {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.auth-link-highlight:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.auth-disclaimer a:hover {
    text-decoration: underline;
}

/* --- Layout da Página do Jogo (Estilo Cassino.bet.br) --- */

.game-page-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    margin: 0 auto;
    padding-bottom: 50px;
}

.game-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.game-back-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.game-back-btn:hover {
    color: #fff;
}

.game-breadcrumbs {
    font-size: 12px;
    color: var(--text-muted);
}

.game-breadcrumbs span {
    color: var(--primary);
    font-weight: 500;
}

.game-play-wrapper {
    position: relative;
    width: 100%;
    min-height: 580px;
    background-color: #05070a;
    border-radius: 20px;
    border: var(--glass-border);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow);
}

.game-blurred-bg {
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background-size: cover;
    background-position: center;
    filter: blur(40px) brightness(0.25);
    z-index: 1;
    transform: scale(1.1);
}

.game-landing-card {
    position: relative;
    z-index: 2;
    background: rgba(12, 17, 28, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 30px;
    width: 90%;
    max-width: 580px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.4s ease-out;
}

.game-card-banner {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 20px;
    border: 2px solid var(--primary);
    box-shadow: 0 0 20px rgba(1, 183, 252, 0.3);
}

.game-card-details {
    text-align: center;
}

.game-card-details h2 {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.game-card-details p {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
}

.game-share-icons {
    display: flex;
    gap: 12px;
    margin: 5px 0;
}

.game-share-icons button {
    background: rgba(255, 255, 255, 0.05);
    border: var(--glass-border);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.game-share-icons button:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

.game-card-stats-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.game-card-stats-row {
    background: rgba(18, 25, 39, 0.6);
    border: var(--glass-border);
    border-radius: 14px;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.game-card-stats-row span:first-child {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-card-stats-row span:last-child {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent-green);
}

.btn-game-play {
    background: var(--primary-gradient);
    border: none;
    border-radius: 14px;
    color: #fff;
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(1, 183, 252, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-game-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(1, 183, 252, 0.6);
}

.game-iframe-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    height: 600px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    background: #000;
}

.game-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.game-footer-info {
    font-size: 14px;
    color: var(--text-muted);
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Seção de Estatísticas do Jogo --- */

.game-stats-title {
    font-size: 18px;
    font-weight: 700;
    margin: 25px 0 15px 0;
    color: #fff;
}

.game-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

@media (max-width: 992px) {
    .game-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .game-stats-grid {
        grid-template-columns: 1fr;
    }
}

.game-stat-card {
    background-color: var(--bg-card);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.game-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.game-stat-value {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.game-stat-value.green {
    color: var(--accent-green);
}

/* --- Seção de Grandes Vitórias --- */

.game-wins-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .game-wins-grid {
        grid-template-columns: 1fr;
    }
}

.game-win-card {
    background-color: var(--bg-card);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.game-win-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.game-win-user {
    font-weight: 700;
    font-size: 14px;
    color: #fff;
}

.game-win-badge {
    background: rgba(0, 230, 118, 0.15);
    color: var(--accent-green);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.game-win-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
}

.game-win-row span:last-child {
    font-weight: 700;
    color: #fff;
}

.game-win-row.payout span:last-child {
    color: var(--accent-green);
}

.game-win-row.multiplier span:last-child {
    color: var(--primary);
}

/* --- Logos dos Provedores no Rodapé --- */

.providers-section {
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
}

.providers-grid {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 15px;
}

.provider-card {
    background-color: var(--bg-card);
    border: var(--glass-border);
    border-radius: 12px;
    padding: 12px 24px;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.provider-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.provider-card span:first-child {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
}

.provider-card span:last-child {
    font-size: 11px;
    color: var(--text-muted);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   MELHORIAS RESPONSIVAS - MOBILE FIRST
   ============================================= */

/* Auth modal - responsividade em mobile */
.auth-modal {
    overflow-y: auto;
    max-height: 90vh;
}

@media (max-width: 576px) {
    .custom-modal {
        width: 95%;
        padding: 20px 16px;
        border-radius: 16px;
    }
    
    .auth-modal {
        max-height: 92vh;
        width: 96%;
        padding: 20px 14px;
    }
    
    .logo-text-modal {
        font-size: 20px;
    }
    
    .modal-title {
        font-size: 18px;
    }
    
    .game-card-banner {
        width: 100px;
        height: 100px;
    }
    
    .game-landing-card {
        padding: 20px;
        width: 95%;
    }
    
    .game-card-details h2 {
        font-size: 20px;
    }
    
    .game-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Header responsivo */
@media (max-width: 768px) {
    .header {
        padding: 0 15px;
    }
    
    .search-box {
        width: 180px;
    }
    
    .search-box input {
        font-size: 13px;
        padding: 8px 12px 8px 38px;
    }
    
    .header-right {
        gap: 10px;
    }
    
    .balance-card {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .btn-deposit {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .btn-login-outline {
        padding: 8px 14px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .search-box {
        display: none;
    }
    
    .balance-card {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .btn-deposit {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .btn-login-outline {
        padding: 7px 12px;
        font-size: 12px;
    }
}

/* Sidebar signup button */
.sidebar-link-signup {
    color: var(--primary) !important;
    border: 1px solid rgba(1, 183, 252, 0.3);
    margin-top: 4px;
}

.sidebar-link-signup:hover {
    background: rgba(1, 183, 252, 0.1) !important;
    border-color: var(--primary) !important;
}

/* Main content responsivo */
@media (max-width: 768px) {
    .main-content {
        padding: 15px;
    }
    
    .promo-carousel {
        padding: 25px 20px;
        margin-bottom: 20px;
    }
    
    .promo-text h2 {
        font-size: 22px;
    }
    
    .promo-text p {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .games-carousel .game-card {
        min-width: 150px;
        max-width: 150px;
    }
    
    .game-banner {
        height: 120px;
    }
}

/* Iframe do jogo responsivo */
@media (max-width: 992px) {
    .game-iframe-container {
        max-width: 100%;
        height: 500px;
    }
    
    .game-play-wrapper {
        min-height: 500px;
    }
}

@media (max-width: 576px) {
    .game-iframe-container {
        height: 400px;
    }
    
    .game-play-wrapper {
        min-height: 400px;
    }
    
    .game-breadcrumbs {
        display: none;
    }
}

/* Top games grid ultra responsivo */
@media (max-width: 360px) {
    .top-games-grid {
        grid-template-columns: 1fr;
    }
    
    .top-game-card {
        padding: 10px;
    }
}

/* Drawer responsivo */
@media (max-width: 576px) {
    .drawer {
        width: 100%;
        right: -100%;
    }
    
    .drawer.open {
        right: 0;
    }
}

/* Ocultar sidebar-promo em sidebar colapsada */
@media (min-width: 993px) {
    .app-container:not(.expanded) .sidebar-promo-card {
        display: none;
    }
}

/* Profile Dropdown Premium Style */
.profile-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 290px;
    background: rgba(12, 17, 28, 0.96);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    padding: 16px;
    display: none;
    flex-direction: column;
    z-index: 1000;
    animation: dropdownFadeIn 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: top right;
}

.profile-dropdown.show {
    display: flex;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.profile-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-dropdown-header div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-dropdown-balance {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 4px 8px 4px;
    font-size: 14px;
    font-weight: 500;
}

.profile-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 8px 0;
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

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

.profile-dropdown-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.profile-dropdown-item .notif-badge {
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
}

/* Full Screen Game Iframe on Mobile */
@media (max-width: 768px) {
    .game-iframe-container {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: 99999 !important;
        background: #000 !important;
        max-width: 100vw !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    .game-iframe-container iframe {
        width: 100% !important;
        height: 100% !important;
        border: none !important;
        border-radius: 0 !important;
    }

    .mobile-floating-back-btn {
        display: flex !important;
    }
}

/* Floating Back Button for Full Screen Iframe */
.mobile-floating-back-btn {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 100000;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(12, 17, 28, 0.85);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    justify-content: center;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    font-size: 18px;
    transition: all 0.2s ease;
}

.mobile-floating-back-btn:active {
    transform: scale(0.9);
    background: rgba(1, 183, 252, 0.8);
}

/* Responsividade para o card de VipCoins no cabeçalho */
@media (max-width: 480px) {
    .vipcoins-card {
        display: none !important;
    }
}





