/* ============================================================
   COKEJOGO — Casino Premium Design System
   Black + Neon Green + Metallic Gold | Mobile-first
   ============================================================ */

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

:root {
    /* Dark base */
    --bg-dark: #050505;
    --bg-elevated: #080808;
    --bg-card: #101010;
    --bg-input: #151515;
    --bg-hover: #1A1A1A;
    --bg-sidebar: #080808;

    /* Neon green (primary) */
    --primary: #39FF14;
    --primary-hover: #2ee00d;
    --primary-soft: rgba(57, 255, 20, 0.1);
    --primary-soft-2: rgba(57, 255, 20, 0.18);
    --primary-gradient: linear-gradient(135deg, #39FF14 0%, #16A34A 100%);
    --primary-glow: 0 0 20px rgba(57, 255, 20, 0.22);

    /* Secondary green */
    --accent-green: #16A34A;

    /* Premium gold */
    --gold: #F5B942;
    --gold-bright: #FFD700;
    --gold-gradient: linear-gradient(135deg, #FFD700 0%, #F5B942 55%, #B8860B 100%);

    /* Danger / errors (semântico: mantido vermelho) */
    --accent: #FF3B5C;
    --accent-orange: #F5B942;

    /* Text */
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.55);
    --text-faint: rgba(255, 255, 255, 0.35);

    /* Borders / glass */
    --border-color: rgba(255, 255, 255, 0.06);
    --glass-border: 1px solid rgba(255, 255, 255, 0.07);

    /* Shadows */
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.45);
    --shadow-neon: 0 8px 30px rgba(57, 255, 20, 0.18);

    /* Radius */
    --radius: 16px;
    --radius-sm: 12px;
    --radius-xs: 8px;

    /* Layout */
    --header-height: 68px;
    --nav-height: 64px;
    --sidebar-w: 240px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(57, 255, 20, 0.06), transparent),
        radial-gradient(ellipse 60% 40% at 90% 110%, rgba(245, 185, 66, 0.04), transparent);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    font-size: 15px;
    line-height: 1.5;
}

/* Scrollbar */
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: var(--bg-dark); }
*::-webkit-scrollbar-thumb { background: rgba(57, 255, 20, 0.35); border-radius: 10px; }
*::-webkit-scrollbar-thumb:hover { background: var(--primary); }

::selection { background: rgba(57, 255, 20, 0.3); color: #fff; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ============================================================
   LAYOUT GERAL
   ============================================================ */
.app-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: var(--header-height) 1fr;
    grid-template-areas:
        "header"
        "main";
    min-height: 100vh;
    width: 100%;
    overflow-x: clip;
}

/* Itens do grid nunca podem estourar o track por causa de conteúdo largo
   (carousels, banners com flex-basis em %, tabelas, etc.) */
.app-container > * {
    min-width: 0;
}

/* Sidebar desktop */
.sidebar {
    display: none;
}

/* Main content */
.main-content {
    grid-area: main;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 14px 110px 14px;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
    grid-area: header;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 8, 8, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 14px;
    height: var(--header-height);
    overflow-x: clip;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 22px;
    cursor: pointer;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.site-logo-img {
    height: 38px;
    max-width: 160px;
    object-fit: contain;
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
    white-space: nowrap;
}

.logo-text span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* Balance card no header */
.balance-card {
    display: none;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: 30px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.balance-card #user-balance {
    color: var(--accent-green);
    font-weight: 700;
}

.vipcoins-card {
    display: none;
}

#header-vipcoins {
    color: var(--gold);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Botões do header */
.btn-deposit {
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    color: #051400;
    font-weight: 800;
    font-size: 13.5px;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 4px 16px rgba(57, 255, 20, 0.25);
}

.btn-deposit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(57, 255, 20, 0.35);
    filter: brightness(1.06);
}

.btn-deposit:active { transform: translateY(0); }
.btn-deposit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-login-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    font-size: 13.5px;
    padding: 10px 16px;
    transition: border-color 0.2s, background 0.2s;
}

.btn-login-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
}

/* Dropdown do perfil */
.profile-dropdown-wrapper { position: relative; }

.user-profile-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: 30px;
    padding: 5px 12px 5px 5px;
    color: #fff;
    font-size: 13.5px;
    transition: border-color 0.2s;
}

.user-profile-trigger:hover { border-color: rgba(57, 255, 20, 0.45); }

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(57, 255, 20, 0.6);
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 300px;
    background: rgba(16, 16, 16, 0.97);
    backdrop-filter: blur(16px);
    border: var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 120;
}

.profile-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 14px;
    border-bottom: var(--border-color);
}

.profile-dropdown-header img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
}

.profile-dropdown-balance {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-input);
    border: var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin: 12px 4px;
    font-size: 13px;
    color: var(--text-muted);
}

.profile-dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-main);
    transition: background 0.15s;
}

.profile-dropdown-item i:first-child {
    width: 18px;
    text-align: center;
    color: var(--text-muted);
}

.profile-dropdown-item:hover { background: var(--bg-hover); }

.notif-badge {
    background: var(--accent);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    border-radius: 20px;
    padding: 2px 7px;
    min-width: 18px;
    text-align: center;
    margin-left: auto;
}

/* ============================================================
   BOTÕES
   ============================================================ */
.btn-play-game {
    background: var(--primary-gradient);
    border: none;
    color: #051400;
    font-weight: 800;
    font-size: 13px;
    padding: 9px 22px;
    border-radius: 10px;
    letter-spacing: 0.4px;
    box-shadow: 0 4px 18px rgba(57, 255, 20, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-play-game:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 26px rgba(57, 255, 20, 0.5);
}

.btn-game-play {
    background: var(--primary-gradient);
    border: none;
    color: #051400;
    font-weight: 800;
    font-size: 15px;
    padding: 13px 30px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-neon);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-game-play:hover { transform: translateY(-2px) scale(1.02); }

.carousel-nav-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-input);
    border: var(--glass-border);
    color: var(--text-main);
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.carousel-nav-btn:hover {
    background: var(--primary-soft);
    border-color: rgba(57, 255, 20, 0.4);
    color: var(--primary);
}

/* ============================================================
   NAVEGAÇÃO INFERIOR MOBILE
   ============================================================ */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    display: flex;
    align-items: stretch;
    background: rgba(8, 8, 8, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.55);
}

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

.mobile-nav-item i {
    font-size: 19px;
    transition: transform 0.2s;
}

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

.mobile-nav-item.active::before {
    content: "";
    position: absolute;
    top: 0;
    width: 34px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: var(--primary-gradient);
    box-shadow: var(--primary-glow);
}

.mobile-nav-item.active i { transform: translateY(-1px); }

.mobile-nav-item .nav-deposit-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #051400;
    font-size: 18px;
    margin-top: -22px;
    border: 4px solid var(--bg-dark);
    box-shadow: 0 6px 20px rgba(57, 255, 20, 0.35);
}

/* Depósito destacado (FAB centralizado no meio da barra) */
.mobile-nav-deposit {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    padding: 0;
    text-decoration: none;
}

.deposit-btn-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #051400;
    font-size: 21px;
    margin-bottom: 38px;
    border: 4px solid var(--bg-dark);
    box-shadow: 0 8px 24px rgba(57, 255, 20, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.mobile-nav-deposit:hover .deposit-btn-circle {
    transform: scale(1.06);
    box-shadow: 0 10px 28px rgba(57, 255, 20, 0.55);
}

.mobile-nav-deposit:active .deposit-btn-circle { transform: scale(0.94); }

/* Item central da barra (atrás do FAB, apenas quando logado): empurra o conteúdo para baixo */
.mobile-bottom-nav.has-deposit .mobile-nav-item-center {
    justify-content: flex-end;
    padding-top: 32px;
    padding-bottom: 2px;
}

.mobile-bottom-nav.has-deposit .mobile-nav-item-center i {
    font-size: 12px;
    margin-bottom: 2px;
}

.mobile-bottom-nav.has-deposit .mobile-nav-item-center.active::before { display: none; }

/* ============================================================
   BANNER PRINCIPAL (CAROUSEL)
   ============================================================ */
.banner-carousel {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
}

.banner-track {
    display: flex;
    width: 100%;
    min-width: 0;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.banner-slide {
    flex: 0 0 100%;
    min-width: 0;
    position: relative;
    min-height: 170px;
    display: flex;
    align-items: center;
    padding: 22px 20px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.banner-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(5, 5, 5, 0.95) 20%, rgba(5, 5, 5, 0.55) 60%, rgba(5, 5, 5, 0.15) 100%);
}

.banner-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 90% at 85% 20%, rgba(57, 255, 20, 0.12), transparent);
    pointer-events: none;
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 70%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-soft);
    border: 1px solid rgba(57, 255, 20, 0.35);
    color: var(--primary);
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 10px;
    border-radius: 30px;
}

.banner-badge.gold {
    background: rgba(245, 185, 66, 0.12);
    border-color: rgba(245, 185, 66, 0.4);
    color: var(--gold);
}

.banner-title {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.4px;
    color: #fff;
}

.banner-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.banner-cta {
    margin-top: 4px;
    background: var(--primary-gradient);
    border: none;
    color: #051400;
    font-weight: 800;
    font-size: 12.5px;
    padding: 9px 20px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: var(--shadow-neon);
    transition: transform 0.2s, box-shadow 0.2s;
}

.banner-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(57, 255, 20, 0.4); }

.banner-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
}

.banner-dot {
    width: 7px;
    height: 7px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    padding: 0;
    transition: all 0.3s;
}

.banner-dot.active {
    width: 22px;
    background: var(--primary);
    box-shadow: var(--primary-glow);
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(5, 5, 5, 0.55);
    border: var(--glass-border);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    transition: background 0.2s;
}

.banner-arrow:hover { background: rgba(57, 255, 20, 0.2); color: var(--primary); }
.banner-arrow.prev { left: 12px; }
.banner-arrow.next { right: 12px; }

/* ============================================================
   CATEGORIAS
   ============================================================ */
.category-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 12px;
    margin-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.category-bar::-webkit-scrollbar { display: none; }

.category-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: 30px;
    padding: 9px 16px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.category-chip i { font-size: 13px; }

.category-chip:hover {
    color: #fff;
    background: var(--bg-hover);
    transform: translateY(-1px);
}

.category-chip.active {
    background: var(--primary-soft);
    border-color: rgba(57, 255, 20, 0.5);
    color: var(--primary);
    box-shadow: var(--primary-glow);
}

/* ============================================================
   SEÇÕES / TÍTULOS
   ============================================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 26px 0 14px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 16.5px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: #fff;
    position: relative;
}

.section-title i { color: var(--primary); font-size: 15px; }

.section-title::after {
    content: "";
    width: 26px;
    height: 3px;
    border-radius: 4px;
    background: var(--primary-gradient);
    position: absolute;
    bottom: -7px;
    left: 0;
}

.section-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    transition: gap 0.2s;
}

.section-link:hover { gap: 8px; }

/* Winners feed */
.winners-feed {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.winner-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    animation: fadeInUp 0.4s ease-out;
}

.winner-info { flex: 1; min-width: 0; }

.winner-info h5 {
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
}

.winner-info p {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.winner-amount {
    font-size: 13px;
    font-weight: 800;
    color: var(--accent-green);
    white-space: nowrap;
}

/* ============================================================
   CARROSSÉIS DE JOGOS
   ============================================================ */
.games-carousel-section { margin-bottom: 10px; }

.games-carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 26px 0 14px;
}

.games-carousel-header .section-title { margin: 0; }

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

.games-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 2px 14px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.games-carousel::-webkit-scrollbar { display: none; }

.games-carousel > * {
    scroll-snap-align: start;
    flex-shrink: 0;
    min-width: 0;
}

/* ============================================================
   CARD DE JOGO
   ============================================================ */
.game-card {
    width: 150px;
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
}

.game-banner {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--bg-elevated);
}

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

.game-card:hover {
    transform: translateY(-5px);
    border-color: rgba(57, 255, 20, 0.35);
    box-shadow: var(--shadow-neon);
    z-index: 2;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 5, 5, 0.55);
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.hot-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    background: linear-gradient(135deg, #FF3B5C, #E11D48);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.game-fav-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: var(--glass-border);
    background: rgba(8, 8, 8, 0.7);
    backdrop-filter: blur(6px);
    color: var(--text-muted);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.game-fav-btn:hover { color: var(--accent); transform: scale(1.1); }

.game-fav-btn.active {
    color: var(--accent);
    background: rgba(255, 59, 92, 0.15);
    border-color: rgba(255, 59, 92, 0.4);
}

.game-info { padding: 10px 11px 12px; }

.game-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-stats {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 3px;
}

.game-provider {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-payout {
    font-size: 11px;
    color: var(--accent-green);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ============================================================
   MAIS JOGADOS (RANKING)
   ============================================================ */
.top-games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.top-game-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.top-game-card:hover {
    transform: translateY(-4px);
    border-color: rgba(57, 255, 20, 0.4);
    box-shadow: var(--shadow-neon);
    z-index: 2;
}

.top-game-banner {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-elevated);
}

.top-game-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 5, 5, 0.7), transparent 55%);
    pointer-events: none;
}

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

.top-game-card:hover .top-game-img { transform: scale(1.07); }

.top-game-rank {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 20px;
    background: rgba(8, 8, 8, 0.75);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.top-game-rank.rank-1 {
    background: var(--gold-gradient);
    color: #1a1200;
    border: none;
    box-shadow: 0 0 16px rgba(245, 185, 66, 0.45);
}

.top-game-rank.rank-2 {
    background: linear-gradient(135deg, #C0C0C0, #8A93A3);
    color: #111;
    border: none;
    box-shadow: 0 0 12px rgba(192, 192, 192, 0.3);
}

.top-game-rank.rank-3 {
    background: linear-gradient(135deg, #E8A05A, #A0522D);
    color: #fff;
    border: none;
    box-shadow: 0 0 12px rgba(205, 127, 50, 0.35);
}

.top-game-plays {
    position: absolute;
    right: 8px;
    top: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: rgba(8, 8, 8, 0.65);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 9px;
    border-radius: 20px;
}

.top-game-plays i { color: #ff6b3d; font-size: 10px; }

.top-game-play-hint {
    position: absolute;
    left: 50%;
    top: 58%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--primary-gradient);
    color: #051400;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.6px;
    padding: 8px 20px;
    border-radius: 10px;
    box-shadow: 0 6px 22px rgba(57, 255, 20, 0.4);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: none;
}

.top-game-card:hover .top-game-play-hint {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Em telas touch (sem hover), o botão JOGAR fica sempre visível */
@media (hover: none) and (pointer: coarse) {
    .top-game-play-hint {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.top-game-details {
    padding: 11px 12px 13px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.top-game-details h4 {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-game-provider {
    font-size: 10.5px;
    color: var(--text-faint);
}

.top-game-val {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-green);
    margin-top: 3px;
}

.top-game-val i { font-size: 10px; opacity: 0.9; }

/* ============================================================
   JACKPOTS
   ============================================================ */
.jackpot-section {
    margin: 28px 0 8px;
}

.jackpot-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.jackpot-card {
    position: relative;
    border-radius: var(--radius);
    padding: 18px;
    background:
        radial-gradient(ellipse 80% 120% at 90% -20%, rgba(255, 215, 0, 0.16), transparent),
        linear-gradient(135deg, #151515, #0a0a0a);
    border: 1px solid rgba(245, 185, 66, 0.25);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.jackpot-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 120%, rgba(255, 215, 0, 0.1), transparent);
    pointer-events: none;
}

.jackpot-info { position: relative; z-index: 1; }

.jackpot-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
}

.jackpot-value {
    font-size: 22px;
    font-weight: 900;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-top: 2px;
    letter-spacing: -0.5px;
    font-variant-numeric: tabular-nums;
}

.jackpot-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--gold);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

/* ============================================================
   CASSINO AO VIVO
   ============================================================ */
.live-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.live-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-card);
    border: var(--glass-border);
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: flex-end;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.live-card:hover {
    transform: translateY(-4px);
    border-color: rgba(57, 255, 20, 0.4);
    box-shadow: var(--shadow-neon);
}

.live-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s;
}

.live-card:hover .live-card-bg { transform: scale(1.06); }

.live-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 5, 5, 0.92) 0%, rgba(5, 5, 5, 0.25) 60%, transparent 100%);
}

.live-card-body {
    position: relative;
    z-index: 2;
    padding: 14px;
    width: 100%;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 59, 92, 0.18);
    border: 1px solid rgba(255, 59, 92, 0.45);
    color: #FF6B81;
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 3px 8px;
    border-radius: 20px;
    margin-bottom: 7px;
}

.live-badge .pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FF3B5C;
    animation: pulseDot 1.4s infinite;
}

.live-card-name {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
}

.live-card-sub {
    font-size: 10.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ============================================================
   PROMOÇÕES (cards)
   ============================================================ */
.promo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.promo-card {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    display: flex;
    flex-direction: column;
}

.promo-card:hover {
    transform: translateY(-4px);
    border-color: rgba(57, 255, 20, 0.3);
    box-shadow: var(--shadow-neon);
}

.promo-card.gold {
    border-color: rgba(245, 185, 66, 0.3);
    background:
        radial-gradient(ellipse 90% 70% at 100% 0%, rgba(245, 185, 66, 0.08), transparent),
        var(--bg-card);
}

.promo-card.gold:hover { border-color: rgba(245, 185, 66, 0.55); box-shadow: 0 8px 30px rgba(245, 185, 66, 0.15); }

.promo-banner {
    position: relative;
    height: 130px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 14px;
}

.promo-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 5, 5, 0.85), transparent 70%);
}

.promo-tag {
    position: relative;
    z-index: 2;
    background: var(--primary-gradient);
    color: #051400;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 10px;
    border-radius: 20px;
}

.promo-tag.gold-tag { background: var(--gold-gradient); color: #1a1200; }

.promo-body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.promo-title {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.2px;
}

.promo-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    flex: 1;
}

.promo-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    color: var(--text-faint);
}

.promo-meta .promo-validity i { margin-right: 4px; }

.promo-btn {
    margin-top: 4px;
    width: 100%;
    background: var(--primary-soft);
    border: 1px solid rgba(57, 255, 20, 0.35);
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.2s;
}

.promo-btn:hover { background: var(--primary); color: #051400; box-shadow: var(--shadow-neon); }

.promo-btn.gold-btn {
    background: rgba(245, 185, 66, 0.12);
    border-color: rgba(245, 185, 66, 0.4);
    color: var(--gold);
}

.promo-btn.gold-btn:hover { background: var(--gold-gradient); color: #1a1200; }

/* ============================================================
   MISSÕES
   ============================================================ */
.mission-card {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: var(--radius);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.mission-card:hover { border-color: rgba(57, 255, 20, 0.3); }

.mission-card.completed {
    border-color: rgba(57, 255, 20, 0.4);
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.06), var(--bg-card));
}

.mission-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.mission-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--primary-soft);
    border: 1px solid rgba(57, 255, 20, 0.25);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.mission-info { flex: 1; min-width: 0; }

.mission-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
}

.mission-desc {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 2px;
    line-height: 1.4;
}

.mission-reward {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(245, 185, 66, 0.1);
    border: 1px solid rgba(245, 185, 66, 0.25);
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Progress bar */
.progress-track {
    height: 8px;
    border-radius: 20px;
    background: var(--bg-input);
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    border-radius: 20px;
    background: var(--primary-gradient);
    box-shadow: var(--primary-glow);
    transition: width 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.progress-fill.gold-fill { background: var(--gold-gradient); box-shadow: 0 0 14px rgba(245, 185, 66, 0.4); }

.mission-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
}

.mission-percent { font-weight: 800; color: var(--primary); }
.mission-percent.gold { color: var(--gold); }

.mission-btn {
    width: 100%;
    background: var(--primary-soft);
    border: 1px solid rgba(57, 255, 20, 0.35);
    color: var(--primary);
    font-weight: 700;
    font-size: 12.5px;
    padding: 9px;
    border-radius: 10px;
    transition: all 0.2s;
}

.mission-btn:hover { background: var(--primary); color: #051400; }

.mission-btn.done {
    background: rgba(22, 163, 74, 0.12);
    border-color: rgba(22, 163, 74, 0.4);
    color: var(--accent-green);
    cursor: default;
}

/* ============================================================
   CATÁLOGO DE JOGOS (/cassino)
   ============================================================ */
.catalog-stats {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.catalog-stat {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: 12px;
    padding: 7px 12px;
    font-size: 10.5px;
    color: var(--text-faint);
    text-align: center;
    line-height: 1.3;
}

.catalog-stat span {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--primary);
}

.catalog-stat.gold span { color: var(--gold); }

.catalog-toolbar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.catalog-search {
    position: relative;
    display: flex;
    align-items: center;
}

.catalog-search > i {
    position: absolute;
    left: 14px;
    color: var(--text-faint);
    font-size: 13px;
    pointer-events: none;
}

.catalog-search input {
    width: 100%;
    background: var(--bg-input);
    border: var(--glass-border);
    border-radius: 14px;
    padding: 12px 40px 12px 40px;
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.catalog-search input:focus {
    border-color: rgba(57, 255, 20, 0.4);
    box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.08);
}

.catalog-search input::placeholder { color: var(--text-faint); }

.catalog-search-clear {
    position: absolute;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.catalog-search-clear:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

.catalog-controls {
    display: flex;
    gap: 10px;
}

.catalog-select {
    flex: 1;
    min-width: 0;
    background-color: var(--bg-input);
    border: var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 12.5px;
    font-weight: 600;
    padding: 10px 12px;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.catalog-select option { background: var(--bg-elevated); color: var(--text-main); }

.catalog-categories {
    margin-bottom: 8px;
}

.catalog-provider-chips {
    margin-bottom: 12px;
    padding-bottom: 2px;
}

.catalog-results {
    font-size: 11.5px;
    color: var(--text-faint);
    margin-bottom: 12px;
    min-height: 16px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.catalog-grid .game-card {
    width: 100%;
    max-width: none;
}

.catalog-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    color: var(--text-faint);
}

.catalog-empty i { font-size: 38px; margin-bottom: 12px; opacity: 0.5; }

.catalog-empty p { font-size: 13.5px; }

@media (min-width: 640px) {
    .catalog-toolbar {
        flex-direction: row;
        align-items: center;
    }
    .catalog-search { flex: 1; }
    .catalog-controls { flex-shrink: 0; }
    .catalog-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}

@media (min-width: 1024px) {
    .catalog-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   PÁGINAS INTERNAS (Perfil, Carteira, Promoções, Missões, Afiliados)
   ============================================================ */
.page-container {
    max-width: 720px;
    margin: 0 auto;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 18px;
}

.page-title {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.page-title i { color: var(--primary); margin-right: 8px; }

.page-sub {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 3px;
}

.page-back {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--bg-card);
    border: var(--glass-border);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.page-back:hover { border-color: rgba(57, 255, 20, 0.4); color: var(--primary); }

/* Hero de saldo (carteira/perfil) */
.balance-hero {
    position: relative;
    border-radius: 20px;
    padding: 22px 20px;
    margin-bottom: 18px;
    background:
        radial-gradient(ellipse 90% 140% at 100% 0%, rgba(57, 255, 20, 0.14), transparent),
        linear-gradient(135deg, #141414, #0a0a0a);
    border: 1px solid rgba(57, 255, 20, 0.22);
    overflow: hidden;
}

.balance-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 120%, rgba(57, 255, 20, 0.08), transparent 60%);
    pointer-events: none;
}

.balance-hero-label {
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 7px;
}

.balance-hero-value {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--primary);
    text-shadow: 0 0 30px rgba(57, 255, 20, 0.35);
    margin: 6px 0 14px;
    font-variant-numeric: tabular-nums;
}

.balance-hero-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.balance-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: var(--glass-border);
    border-radius: 30px;
    padding: 6px 12px;
    font-size: 11.5px;
    color: var(--text-muted);
}

.balance-hero-pill strong { color: var(--gold); font-weight: 700; }

/* Ações da carteira */
.wallet-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 10px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 13px;
    transition: all 0.2s;
}

.action-btn i { font-size: 20px; }

.action-btn.deposit {
    background: var(--primary-soft);
    border: 1px solid rgba(57, 255, 20, 0.4);
    color: var(--primary);
}

.action-btn.deposit:hover { background: var(--primary); color: #051400; box-shadow: var(--shadow-neon); }

.action-btn.withdraw {
    background: rgba(255, 59, 92, 0.08);
    border: 1px solid rgba(255, 59, 92, 0.3);
    color: #FF6B81;
}

.action-btn.withdraw:hover { background: var(--accent); color: #fff; }

/* Cards de métricas */
.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.metric-card {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: var(--radius);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color 0.2s, transform 0.2s;
}

.metric-card:hover { border-color: rgba(57, 255, 20, 0.3); transform: translateY(-2px); }

.metric-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--primary-soft);
    border: 1px solid rgba(57, 255, 20, 0.25);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.metric-icon.gold { background: rgba(245, 185, 66, 0.1); border-color: rgba(245, 185, 66, 0.3); color: var(--gold); }
.metric-icon.red { background: rgba(255, 59, 92, 0.1); border-color: rgba(255, 59, 92, 0.3); color: #FF6B81; }
.metric-icon.blue { background: rgba(96, 165, 250, 0.1); border-color: rgba(96, 165, 250, 0.3); color: #60A5FA; }

.metric-value {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.4px;
    font-variant-numeric: tabular-nums;
}

.metric-value.gold { color: var(--gold); }
.metric-value.green { color: var(--accent-green); }
.metric-value.red { color: #FF6B81; }

.metric-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.metric-sub {
    font-size: 10.5px;
    color: var(--text-faint);
}

/* Card genérico de seção */
.section-card {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 14px;
}

.section-card-title {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-card-title i { color: var(--primary); }

/* Menu do perfil */
.profile-menu { display: flex; flex-direction: column; gap: 6px; }

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 13px;
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 13px 15px;
    transition: all 0.2s;
    color: var(--text-main);
    font-size: 13.5px;
    font-weight: 600;
}

.profile-menu-item:hover {
    border-color: rgba(57, 255, 20, 0.4);
    background: var(--bg-hover);
    transform: translateX(3px);
}

.profile-menu-item .pm-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.profile-menu-item .pm-icon.gold { background: rgba(245, 185, 66, 0.1); color: var(--gold); }
.profile-menu-item .pm-icon.red { background: rgba(255, 59, 92, 0.1); color: #FF6B81; }
.profile-menu-item .pm-icon.blue { background: rgba(96, 165, 250, 0.1); color: #60A5FA; }

.profile-menu-item .pm-chevron {
    margin-left: auto;
    color: var(--text-faint);
    font-size: 12px;
}

.profile-menu-item.danger { color: #FF6B81; }

/* Card de perfil (avatar) */
.profile-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 16px;
}

.profile-hero-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid var(--primary);
    box-shadow: var(--primary-glow);
    flex-shrink: 0;
}

.profile-hero-name {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.profile-hero-email {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
    word-break: break-all;
}

.profile-hero-vip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 7px;
    background: rgba(245, 185, 66, 0.1);
    border: 1px solid rgba(245, 185, 66, 0.3);
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

/* Tabelas / histórico */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: var(--glass-border);
    background: var(--bg-card);
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
    min-width: 420px;
}

.history-table thead th {
    text-align: left;
    padding: 12px 14px;
    color: var(--text-faint);
    font-weight: 600;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    white-space: nowrap;
}

.history-table tbody td {
    padding: 12px 14px;
    border-bottom: var(--border-color);
    vertical-align: middle;
}

.history-table tbody tr:last-child td { border-bottom: none; }

.history-table tbody tr { transition: background 0.15s; }
.history-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }

.tx-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    text-transform: capitalize;
}

.tx-type.deposit { color: var(--accent-green); }
.tx-type.withdrawal { color: #FF6B81; }

.tx-amount { font-weight: 700; font-variant-numeric: tabular-nums; }
.tx-amount.pos { color: var(--accent-green); }
.tx-amount.neg { color: #FF6B81; }

.tx-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: capitalize;
}

.tx-status.approved, .tx-status.completed, .tx-status.active, .tx-status.credited { background: rgba(22, 163, 74, 0.12); color: var(--accent-green); }
.tx-status.pending { background: rgba(245, 185, 66, 0.12); color: var(--gold); }
.tx-status.rejected, .tx-status.cancelled, .tx-status.blocked, .tx-status.expired { background: rgba(255, 59, 92, 0.12); color: #FF6B81; }

.tx-date { color: var(--text-muted); white-space: nowrap; }

/* Afiliados */
.affiliate-hero {
    text-align: center;
    padding: 24px 18px;
    border-radius: var(--radius);
    background:
        radial-gradient(ellipse 80% 100% at 50% 0%, rgba(57, 255, 20, 0.08), transparent),
        var(--bg-card);
    border: var(--glass-border);
    margin-bottom: 16px;
}

.affiliate-hero i.big {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
}

.affiliate-hero h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.affiliate-hero p { font-size: 12.5px; color: var(--text-muted); max-width: 380px; margin: 0 auto; }

.affiliate-link-box {
    display: flex;
    gap: 8px;
    background: var(--bg-input);
    border: var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 6px;
    margin-top: 14px;
}

.affiliate-link-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    padding: 8px 10px;
    outline: none;
    min-width: 0;
}

.copy-btn {
    background: var(--primary-gradient);
    border: none;
    color: #051400;
    font-weight: 800;
    font-size: 12px;
    padding: 8px 16px;
    border-radius: 8px;
    white-space: nowrap;
    transition: transform 0.2s;
}

.copy-btn:hover { transform: scale(1.04); }

/* Ranking de afiliados */
.rank-list { display: flex; flex-direction: column; gap: 8px; }

.rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 11px 13px;
}

.rank-item .rank-pos {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.rank-item .rank-pos.top-1 { background: var(--gold-gradient); color: #1a1200; }
.rank-item .rank-pos.top-2 { background: linear-gradient(135deg, #C0C0C0, #9CA3AF); color: #111; }
.rank-item .rank-pos.top-3 { background: linear-gradient(135deg, #CD7F32, #A0522D); color: #fff; }

.rank-item .rank-user { flex: 1; font-size: 13px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-item .rank-val { font-size: 13px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }

/* Chips de bônus/cupom */
.coupon-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 185, 66, 0.08);
    border: 1px dashed rgba(245, 185, 66, 0.4);
    color: var(--gold);
    font-weight: 800;
    font-size: 12.5px;
    padding: 8px 14px;
    border-radius: 10px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
}

.coupon-chip:hover { background: rgba(245, 185, 66, 0.15); transform: translateY(-2px); }

/* Skeleton loading */
.skeleton {
    position: relative;
    overflow: hidden;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
}

.skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
    animation: shimmer 1.5s infinite;
}

.skeleton-card { height: 210px; width: 150px; flex-shrink: 0; }
.skeleton-line { height: 12px; border-radius: 6px; }
.skeleton-line.short { width: 60%; }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 34px 18px;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    font-size: 13px;
}

.empty-state i { font-size: 30px; color: var(--text-faint); display: block; margin-bottom: 10px; }

/* ============================================================
   PÁGINA DO JOGO (Game View)
   ============================================================ */
.game-page-container { padding-top: 6px; }

.game-header-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.game-back-btn {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.game-back-btn:hover { border-color: rgba(57, 255, 20, 0.4); color: var(--primary); }

.game-breadcrumbs {
    font-size: 12px;
    color: var(--text-muted);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

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

.game-play-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-card);
    border: var(--glass-border);
}

.game-blurred-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(8px) brightness(0.35);
    transform: scale(1.1);
}

.game-landing-card {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 26px 18px;
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.4), rgba(5, 5, 5, 0.85));
}

.game-card-banner {
    width: 190px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.game-card-details h2 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.4px;
}

/* Botão favoritar em formato pill (página do jogo) */
.game-fav-lg {
    position: static;
    width: auto;
    height: auto;
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 12.5px;
    font-weight: 700;
    gap: 7px;
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.game-fav-lg.active {
    background: rgba(255, 59, 92, 0.15);
    border-color: rgba(255, 59, 92, 0.5);
    color: var(--accent);
}

.game-card-details p { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }

.game-share-icons {
    display: flex;
    gap: 8px;
    margin: 14px 0;
}

.game-share-icons button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: var(--glass-border);
    color: var(--text-muted);
    font-size: 13px;
    transition: all 0.2s;
}

.game-share-icons button:hover { color: var(--primary); border-color: rgba(57, 255, 20, 0.4); background: var(--primary-soft); }

.game-card-stats-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    max-width: 340px;
    margin-bottom: 16px;
}

.game-card-stats-row {
    background: rgba(255, 255, 255, 0.04);
    border: var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 11px;
    color: var(--text-muted);
}

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

.game-footer-info {
    margin: 12px 2px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.game-stats-title {
    font-size: 15px;
    font-weight: 800;
    margin: 22px 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-stats-title i { color: var(--primary); }

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

.game-stat-card {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 13px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.game-stat-label {
    font-size: 10.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.game-stat-value {
    font-size: 16px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

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

.game-wins-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.game-win-card {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 13px;
}

.game-win-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.game-win-user {
    font-size: 12.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.game-win-badge {
    background: var(--gold-gradient);
    color: #1a1200;
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 20px;
}

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

.game-win-row span:last-child { color: #fff; font-weight: 700; }
.game-win-row.payout span:last-child { color: var(--accent-green); }
.game-win-row.multiplier span:last-child { color: var(--gold); }

.game-iframe-container {
    position: relative;
    z-index: 2;
    width: 100%;
    height: calc(100vh - var(--header-height) - 24px);
    min-height: 480px;
    background: #000;
}

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

.mobile-floating-back-btn {
    position: fixed;
    top: calc(var(--header-height) + 12px);
    left: 12px;
    z-index: 60;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(8, 8, 8, 0.8);
    backdrop-filter: blur(8px);
    border: var(--glass-border);
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.providers-section { margin-top: 24px; }

.providers-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.providers-grid::-webkit-scrollbar { display: none; }

.provider-card {
    flex-shrink: 0;
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    cursor: pointer;
    transition: all 0.2s;
}

.provider-card:hover { border-color: rgba(57, 255, 20, 0.4); transform: translateY(-2px); }
.provider-card span:first-child { font-size: 12px; font-weight: 800; color: #fff; }
.provider-card span:last-child { font-size: 10.5px; color: var(--text-muted); }

/* Jogos nativos (Mines, Slots, Crash, Roleta) */
.game-viewport {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 14px;
}

.game-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.game-screen {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: var(--radius);
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.mines-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 420px;
}

.mines-cell {
    aspect-ratio: 1;
    background: var(--bg-input);
    border: var(--glass-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.2s;
}

.mines-cell:hover { border-color: rgba(57, 255, 20, 0.4); transform: scale(1.04); }
.mines-cell.revealed { cursor: default; transform: none; }
.mines-cell.revealed.bomb { background: rgba(255, 59, 92, 0.18); border-color: rgba(255, 59, 92, 0.5); color: #FF6B81; }
.mines-cell.revealed.star { background: rgba(57, 255, 20, 0.12); border-color: rgba(57, 255, 20, 0.45); color: var(--primary); }

/* ============================================================
   MODAIS
   ============================================================ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
}

.modal-backdrop.show { opacity: 1; visibility: visible; }

.custom-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -46%) scale(0.97);
    width: calc(100% - 28px);
    max-width: 440px;
    max-height: 86vh;
    overflow-y: auto;
    background: rgba(16, 16, 16, 0.98);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 24px 22px;
    z-index: 901;
    opacity: 0;
    visibility: hidden;
    transition: all 0.28s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.modal-title {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 9px;
}

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

.btn-close-drawer {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-input);
    border: var(--glass-border);
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    float: right;
    margin-left: 8px;
}

.btn-close-drawer:hover { color: #fff; border-color: rgba(255, 255, 255, 0.25); transform: rotate(90deg); }

/* Formulários */
.form-group { margin-bottom: 14px; }

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    background-color: var(--bg-input);
    border: var(--glass-border);
    border-radius: 12px;
    padding: 12px 14px;
    color: var(--text-main);
    font-size: 13.5px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    border-color: rgba(57, 255, 20, 0.45);
    box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.08);
}

.form-control::placeholder { color: var(--text-faint); }

select.form-control { appearance: none; }

.password-input-wrapper { position: relative; }

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-faint);
    cursor: pointer;
}

.phone-prefix-select {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: var(--bg-input);
    border: var(--glass-border);
    border-radius: 12px;
    padding: 12px 14px;
    color: #fff;
    flex-shrink: 0;
}

.checkbox-group input { accent-color: var(--primary); }

.auth-error-alert {
    background: rgba(255, 59, 92, 0.1);
    border: 1px solid rgba(255, 59, 92, 0.3);
    color: #FF6B81;
    padding: 12px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 15px;
    display: none;
}

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

.auth-disclaimer {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
}

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

.auth-logo { display: flex; align-items: center; justify-content: center; }

.logo-text-modal {
    font-size: 19px;
    font-weight: 800;
    color: #fff;
}

.logo-text-modal span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ============================================================
   DRAWER (perfil mobile)
   ============================================================ */
.drawer {
    position: fixed;
    top: 0;
    right: -85%;
    width: 85%;
    max-width: 360px;
    height: 100%;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(16px);
    z-index: 950;
    padding: 20px 18px 30px;
    overflow-y: auto;
    transition: right 0.32s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-left: var(--glass-border);
    box-shadow: var(--shadow);
}

.drawer.open { right: 0; }

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

.drawer-title { font-size: 16px; font-weight: 800; }

/* ============================================================
   TOAST (voltar ao último jogo)
   ============================================================ */
.last-game-toast {
    position: fixed;
    bottom: calc(var(--nav-height) + 14px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(16, 16, 16, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(57, 255, 20, 0.3);
    border-radius: 14px;
    padding: 10px 14px;
    box-shadow: var(--shadow-neon);
    cursor: pointer;
    width: calc(100% - 28px);
    max-width: 380px;
    animation: fadeInUp 0.3s ease-out;
}

.last-game-toast-info { flex: 1; min-width: 0; }

/* Badges mini (gerados pelo JS — histórico de saques) */
.badge-mini {
    display: inline-block;
    font-weight: 700;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
}
.badge-mini.green { background: rgba(22, 163, 74, 0.12); color: var(--accent-green); }
.badge-mini.orange { background: rgba(245, 185, 66, 0.12); color: var(--gold); }
.badge-mini.red { background: rgba(255, 59, 92, 0.12); color: #FF6B81; }
.badge-mini.gray { background: rgba(255, 255, 255, 0.06); color: var(--text-muted); }

/* ============================================================
   PÁGINA DE LOGIN (legada)
   ============================================================ */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(57, 255, 20, 0.08), transparent),
        var(--bg-dark);
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: 22px;
    padding: 30px 26px;
    box-shadow: var(--shadow);
}

.auth-logo-img {
    max-height: 64px;
    max-width: 220px;
    margin: 0 auto 14px;
    object-fit: contain;
}

/* ============================================================
   ANIMAÇÕES
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.94); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

@keyframes bounceIn {
    0% { transform: scale(0.6); opacity: 0; }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes neonPulse {
    0%, 100% { box-shadow: 0 0 14px rgba(57, 255, 20, 0.18); }
    50% { box-shadow: 0 0 26px rgba(57, 255, 20, 0.35); }
}

.fade-in-up { animation: fadeInUp 0.4s ease-out; }
.fade-in { animation: fadeIn 0.3s ease-out; }

/* ============================================================
   TRANSIÇÕES DE PÁGINA
   ============================================================ */
@keyframes pageEnter {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

@keyframes pageLeave {
    from { opacity: 1; }
    to { opacity: 0; }
}

.page-container,
.page-enter {
    animation: pageEnter 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

/* Saída: classe aplicada pelo JS antes de navegar */
body.page-leaving { animation: pageLeave 0.16s ease-out both; }
body.page-leaving .app-container { pointer-events: none; }

/* Entrada em cascata para grids/carousels estáticos */
.stagger > * {
    opacity: 0;
    animation: fadeInUp 0.45s ease-out both;
}
.stagger > *:nth-child(1) { animation-delay: 0.02s; }
.stagger > *:nth-child(2) { animation-delay: 0.07s; }
.stagger > *:nth-child(3) { animation-delay: 0.12s; }
.stagger > *:nth-child(4) { animation-delay: 0.17s; }
.stagger > *:nth-child(5) { animation-delay: 0.22s; }
.stagger > *:nth-child(6) { animation-delay: 0.27s; }
.stagger > *:nth-child(n+7) { animation-delay: 0.32s; }

/* ============================================================
   MICROINTERAÇÕES — CARDS
   ============================================================ */
/* Brilho diagonal (shine sweep) no hover do card de jogo */
.game-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 55%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.14), transparent);
    transform: skewX(-18deg);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.game-card:hover::after {
    opacity: 1;
    animation: shineSweep 0.9s ease;
}

@keyframes shineSweep {
    0% { left: -75%; }
    60% { left: 130%; }
    100% { left: 130%; }
}

/* Press feedback nos cards */
.game-card:active { transform: translateY(-2px) scale(0.97); }
.promo-card:active { transform: translateY(-1px) scale(0.985); }
.mission-card:active { transform: scale(0.985); }

/* Coração com pop ao favoritar */
@keyframes heartPop {
    0% { transform: scale(1); }
    40% { transform: scale(1.45); }
    70% { transform: scale(0.85); }
    100% { transform: scale(1); }
}

.game-fav-btn.pop i { animation: heartPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); color: var(--accent); }

/* Categoria: feedback de press + glow no ativo */
.category-chip:active { transform: scale(0.95); }

/* ============================================================
   MICROINTERAÇÕES — BOTÕES
   ============================================================ */
/* Press feedback global nos botões principais */
.btn-deposit:active, .btn-play-game:active, .btn-game-play:active,
.promo-btn:active, .btn-login-outline:active, .btn-submit:active,
.btn-primary:active, .btn-secondary:active, .btn-outline:active {
    transform: translateY(0) scale(0.96);
}

/* Ripple (ondulação ao clicar) */
.btn-deposit, .btn-play-game, .btn-game-play, .promo-btn,
.btn-login-outline, .btn-submit, .btn-primary, .btn-secondary, .btn-outline {
    position: relative;
    overflow: hidden;
}

/* Botões que são <a> precisam de display flex p/ o ripple ancorar */
.promo-btn, .btn-login-outline, .btn-primary, .btn-secondary, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transform: scale(0);
    animation: rippleAnim 0.55s ease-out forwards;
    pointer-events: none;
    z-index: 1;
}

@keyframes rippleAnim {
    to { transform: scale(3); opacity: 0; }
}

/* Pulso suave no botão depositar */
.btn-deposit:not(:active):not(:disabled) {
    animation: depositPulse 3.2s ease-in-out infinite;
}

@keyframes depositPulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(57, 255, 20, 0.25); }
    50% { box-shadow: 0 4px 22px rgba(57, 255, 20, 0.42); }
}

/* Respeita usuários com preferência por menos movimento */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001s !important;
    }
}

/* ============================================================
   TELA CHEIA DE JOGO NO MOBILE (game-fullscreen-mobile)
   ============================================================ */
@media (max-width: 991px) {
    body.game-fullscreen-mobile {
        overflow: hidden;
        position: fixed;
        inset: 0;
        width: 100%;
    }

    body.game-fullscreen-mobile .app-container {
        display: block;
        height: 100vh;
        height: 100dvh;
        min-height: 100vh;
        min-height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        overflow-y: auto;
        overflow-x: hidden;
    }

    /* Esconde tudo que não pertence ao jogo */
    body.game-fullscreen-mobile .header,
    body.game-fullscreen-mobile .sidebar,
    body.game-fullscreen-mobile .mobile-bottom-nav,
    body.game-fullscreen-mobile .mobile-nav-overlay {
        display: none !important;
    }

    body.game-fullscreen-mobile .main-content {
        max-width: none;
        padding: 0;
        height: 100vh;
        height: 100dvh;
        min-height: 100vh;
        min-height: 100dvh;
    }

    body.game-fullscreen-mobile .page-container {
        max-width: none;
        margin: 0;
        padding: 0;
    }

    /* Jogos originais: o palco ocupa a tela */
    body.game-fullscreen-mobile .og-page {
        padding: 0;
        min-height: 100vh;
        min-height: 100dvh;
    }

    body.game-fullscreen-mobile .game-header-bar {
        position: fixed;
        top: calc(env(safe-area-inset-top, 0px) + 10px);
        left: 12px;
        right: 12px;
        z-index: 120;
        margin: 0;
        background: rgba(8, 8, 8, 0.72);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        padding: 6px 10px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    }

    body.game-fullscreen-mobile .game-breadcrumbs {
        display: none;
    }

    body.game-fullscreen-mobile .game-play-wrapper {
        border-radius: 0;
        border: none;
        min-height: 100vh;
        min-height: 100dvh;
        padding-top: env(safe-area-inset-top, 0px);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    body.game-fullscreen-mobile .og-layout {
        padding: 0 !important;
        gap: 0;
    }

    body.game-fullscreen-mobile .og-stage {
        border-radius: 0;
        min-height: calc(100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
        min-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    }

    body.game-fullscreen-mobile .og-stage-topbar {
        padding-top: calc(env(safe-area-inset-top, 0px) + 52px);
    }

    /* Rodapé/estatísticas ficam abaixo (rolagem dentro do jogo) */
    body.game-fullscreen-mobile .game-stats-title,
    body.game-fullscreen-mobile .game-stats-grid,
    body.game-fullscreen-mobile .games-carousel-section,
    body.game-fullscreen-mobile .game-footer-info {
        padding-left: 14px;
        padding-right: 14px;
    }

    /* Jogos de provedor na home (game-view) */
    body.game-fullscreen-mobile .game-iframe-container {
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        padding-top: env(safe-area-inset-top, 0px);
        padding-bottom: env(safe-area-inset-bottom, 0px);
        box-sizing: border-box;
    }

    body.game-fullscreen-mobile .game-iframe-container iframe {
        height: 100%;
    }

    body.game-fullscreen-mobile .game-landing-card {
        min-height: 100vh;
        min-height: 100dvh;
        padding-top: calc(env(safe-area-inset-top, 0px) + 70px);
        padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
        box-sizing: border-box;
        justify-content: flex-start;
    }

    body.game-fullscreen-mobile .mobile-floating-back-btn {
        top: calc(env(safe-area-inset-top, 0px) + 12px);
        z-index: 120;
    }
}

/* ============================================================
   RESPONSIVO
   ============================================================ */

/* ≥ 480px */
@media (min-width: 480px) {
    .main-content { padding: 0 18px 110px; }
    .top-games-grid { grid-template-columns: repeat(2, 1fr); }
    .game-card { width: 165px; }
    .banner-slide { min-height: 190px; }
    .banner-title { font-size: 22px; }
    .banner-desc { font-size: 12.5px; }
    .jackpot-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ≥ 640px — tablets */
@media (min-width: 640px) {
    .top-games-grid { grid-template-columns: repeat(3, 1fr); }
    .balance-card { display: inline-flex; }
    .promo-grid { grid-template-columns: repeat(2, 1fr); }
    .game-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .game-wins-grid { grid-template-columns: repeat(2, 1fr); }
    .banner-arrow { display: flex; }
    .live-grid { grid-template-columns: repeat(3, 1fr); }
    .metric-grid { grid-template-columns: repeat(3, 1fr); }
    .mobile-bottom-nav { max-width: 480px; left: 50%; transform: translateX(-50%); border-radius: 20px 20px 0 0; border-left: 1px solid rgba(255,255,255,0.07); border-right: 1px solid rgba(255,255,255,0.07); }
}

/* ≥ 992px — desktop */
@media (min-width: 992px) {
    .app-container {
        grid-template-columns: minmax(0, var(--sidebar-w)) minmax(0, 1fr);
        grid-template-areas:
            "sidebar header"
            "sidebar main";
    }

    .app-container.expanded {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "header"
            "main";
    }

    .app-container.expanded .sidebar { display: none; }

    .sidebar {
        display: flex;
        flex-direction: column;
        grid-area: sidebar;
        background: var(--bg-sidebar);
        border-right: var(--glass-border);
        position: sticky;
        top: 0;
        height: 100vh;
        overflow-y: auto;
        z-index: 80;
        padding: 18px 12px;
        scrollbar-width: thin;
    }

    .sidebar-scroll-area {
        display: flex;
        flex-direction: column;
        gap: 8px;
        flex: 1;
    }

    .sidebar-section-label {
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1.4px;
        color: var(--text-faint);
        margin: 18px 10px 8px;
    }

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

    .sidebar-link {
        display: flex;
        align-items: center;
        gap: 11px;
        padding: 10px 12px;
        border-radius: 10px;
        font-size: 13px;
        font-weight: 600;
        color: var(--text-muted);
        transition: all 0.18s;
    }

    .sidebar-link i {
        width: 18px;
        text-align: center;
        font-size: 14px;
    }

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

    .sidebar-link.active {
        background: var(--primary-soft);
        color: var(--primary);
        font-weight: 700;
        box-shadow: inset 0 0 0 1px rgba(57, 255, 20, 0.25);
    }

    .sidebar-badge {
        margin-left: auto;
        font-size: 9px;
        font-weight: 800;
        padding: 2px 7px;
        border-radius: 20px;
        background: var(--primary);
        color: #051400;
    }

    .sidebar-badge-new { background: var(--primary-gradient); animation: neonPulse 2s infinite; }
    .sidebar-badge-bonus { background: var(--gold-gradient); color: #1a1200; }

    .sidebar-official-profiles {
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 0 4px;
    }

    .official-profile-card {
        display: flex;
        align-items: center;
        gap: 9px;
        font-size: 12px;
        font-weight: 600;
        padding: 6px 8px;
        border-radius: 8px;
        transition: background 0.15s;
        cursor: pointer;
    }

    .official-profile-card:hover { background: var(--bg-hover); }

    .official-profile-card img {
        width: 28px;
        height: 28px;
        border-radius: 50%;
    }

    .sidebar-ver-mais-btn {
        margin: 10px auto 0;
        background: none;
        border: none;
        color: var(--primary);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 1px;
        cursor: pointer;
    }

    .mobile-bottom-nav { display: none; }

    .main-content { padding: 22px 28px 60px; }

    .header { padding: 0 26px; }
    .menu-toggle { display: block; }
    /* Logo já aparece no sidebar desktop — não duplicar ao lado do hamburger */
    .header-left .logo-container { display: none; }

    .banner-slide { min-height: 260px; padding: 34px 44px; }
    .banner-title { font-size: 28px; }
    .banner-desc { font-size: 14px; max-width: 460px; }

    .game-card { width: 185px; }
    .game-card-banner { width: 230px; }

    .game-iframe-container { height: calc(100vh - var(--header-height) - 40px); }

    .jackpot-grid { grid-template-columns: repeat(3, 1fr); }
    .live-grid { grid-template-columns: repeat(4, 1fr); }
    .top-games-grid { grid-template-columns: repeat(4, 1fr); }
    .promo-grid { grid-template-columns: repeat(3, 1fr); }
    .game-stats-grid { grid-template-columns: repeat(4, 1fr); }
    .game-wins-grid { grid-template-columns: repeat(3, 1fr); }

    .page-container { max-width: 960px; }
    .metric-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ≥ 1280px */
@media (min-width: 1280px) {
    .top-games-grid { grid-template-columns: repeat(4, 1fr); }
    .game-card { width: 200px; }
}
