﻿/* ==========================================
   ESTILO GLOBAL
   ========================================== */

:root {
    --color-primary: #0f0f0f;
    /* Deeper black */
    --color-secondary: #1e1e1e;
    --color-accent: #6ed946;
    --color-accent-dark: #58b935;
    --color-text: #ffffff;
    --color-text-secondary: #a0a0a0;
    --color-border: #333333;
    --color-red: #ff4757;
    --color-blue: #2e86de;
    --color-success: #6ed946;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 15px rgba(var(--color-accent-rgb), 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    /* Allow growth */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--color-primary);
    color: var(--color-text);
    overflow-x: hidden;
    overflow-y: auto;
    /* Force scroll */
}

/* ==========================================
   TOP BAR COM COUNTDOWN
   ========================================== */

.top-banner {
    background: linear-gradient(90deg, #ff4444 0%, #ff6644 100%);
    color: white;
    padding: 5px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
}

.top-banner-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-banner-left .emoji {
    font-size: 18px;
}

.top-banner-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-banner .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
}

/* ==========================================
   HEADER PRINCIPAL
   ========================================== */

.main-header {
    background-color: var(--color-secondary);
    padding: 12px 20px;
    border-bottom: 2px solid var(--color-accent);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 20px;
    color: var(--color-accent);
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background-color: var(--color-accent);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: var(--color-primary);
    font-size: 18px;
}

.header-nav {
    display: flex;
    gap: 30px;
    flex: 1;
}

.header-nav a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    padding: 5px 10px;
}

.header-nav a:hover {
    color: var(--color-accent);
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* User Header Controls - Fix for Layout */
.user-header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-deposit-header {
    background-color: var(--color-accent);
    color: var(--color-primary);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(var(--color-accent-rgb), 0.2);
}

.btn-deposit-header:hover {
    background-color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--color-accent-rgb), 0.3);
}

.header-balance {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.header-balance span:first-child {
    font-size: 10px;
    color: var(--color-text-secondary);
    font-weight: 700;
    text-transform: uppercase;
}

.header-balance .balance-value {
    font-size: 15px;
    color: var(--color-accent);
    font-weight: 700;
}

.header-profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    cursor: pointer;
    line-height: 1.2;
    text-align: right;
}

.profile-label {
    font-size: 10px;
    color: var(--color-text-secondary);
}

.profile-name {
    font-size: 14px;
    color: #fff;
    font-weight: 600;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-profile-icon {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    margin-left: 5px;
    transition: transform 0.2s;
}

.btn-profile-icon:hover {
    transform: scale(1.1);
}

.admin-link {
    font-size: 12px;
    color: var(--color-red);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    margin-left: 5px;
}

.btn-play-now {
    background-color: var(--color-accent);
    color: var(--color-primary);
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-size: 15px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(var(--color-accent-rgb), 0.3);
    white-space: nowrap;
}

.btn-play-now:hover {
    background-color: var(--color-accent-dark);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(var(--color-accent-rgb), 0.5);
}

.btn-entrar {
    background-color: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.btn-entrar:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.btn-registro {
    background-color: var(--color-accent);
    color: var(--color-primary);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(var(--color-accent-rgb), 0.2);
}

.btn-registro:hover {
    background-color: var(--color-accent-dark);
    box-shadow: 0 4px 12px rgba(var(--color-accent-rgb), 0.3);
    transform: translateY(-2px);
}

/* ==========================================
   CONTAINER PRINCIPAL COM SIDEBAR
   ========================================== */

.main-wrapper {
    display: flex;
    min-height: calc(100vh - 150px);
    max-width: 1400px;
    margin: 0 auto;
    gap: 30px;
}

/* ==========================================
   SIDEBAR ESQUERDA
   ========================================== */

.sidebar {
    width: 250px;
    background-color: var(--color-secondary);
    border-right: 2px solid var(--color-border);
    padding: 20px 0;
    position: sticky;
    top: 60px;
    /* Adjusted to match header height */
    height: calc(100vh - 60px);
    overflow-y: auto;
}

.main-content {
    flex: 1;
    width: 100%;
}

.sidebar-title {
    padding: 15px 20px;
    font-weight: 700;
    font-size: 13px;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin: 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: rgba(var(--color-accent-rgb), 0.12);
    color: var(--color-accent);
    border-left-color: var(--color-accent);
}

.sidebar-menu-icon {
    width: 18px;
    height: 18px;
}

.sidebar-footer {
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid var(--color-border);
    font-size: 12px;
    color: var(--color-text-secondary);
    text-align: center;
}

.sidebar-app-install {
    margin: 16px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(76, 209, 55, 0.15), rgba(76, 209, 55, 0.05));
    border: 1px solid rgba(76, 209, 55, 0.3);
    border-radius: 16px;
    text-align: left;
}

.sidebar-app-install .app-install-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.sidebar-app-install .app-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #4cd137, #2ecc71);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.sidebar-app-install .app-info {
    display: flex;
    flex-direction: column;
}

.sidebar-app-install .app-name {
    font-weight: 700;
    font-size: 14px;
    color: #fff;
}

.sidebar-app-install .app-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

.btn-app-install {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #4cd137 0%, #2ecc71 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(76, 209, 55, 0.3);
}

.btn-app-install:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 209, 55, 0.4);
    filter: brightness(1.1);
}

/* ==========================================
   CONTEÃšDO PRINCIPAL
   ========================================== */

.hero-banner {
    background: linear-gradient(to right, rgba(26, 26, 26, 0.9) 0%, transparent 50%), linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 8px;
    padding: 40px 50px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    overflow: hidden;
    min-height: 280px;
}

.hero-banner::before {
    content: '';
    position: absolute;
    right: -100px;
    top: -50px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.1) 0%, transparent 70%);
    opacity: 0.5;
}

.hero-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 12px;
    line-height: 1.2;
    color: #ffffff;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

.hero-person {
    flex: 0 0 300px;
    position: relative;
    z-index: 2;
}

.hero-person img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ==========================================
   ÃCONES DE TUTORIAIS
   ========================================== */

/* ==========================================
   ÃCONES DE TUTORIAIS
   ========================================== */

.tutorial-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    padding: 0;
}

.tutorial-icon-item {
    display: flex;
    flex-direction: row;
    /* Horizontal layout */
    align-items: center;
    justify-content: flex-start;
    /* Align start */
    gap: 15px;
    padding: 15px 20px;
    background-color: var(--color-primary);
    /* Darker background */
    border: 1px solid var(--color-border);
    border-radius: 12px;
    /* Rounded corners for the card */
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.tutorial-icon-item:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-accent);
    transform: translateY(-3px);
}

.tutorial-icon-item img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    /* Circular image */
    object-fit: contain;
    /* OR cover if the image is full square designed for circle masking */
    /* If the user images are already pre-circled or just transparent icons on green bg, this is fine. 
       If they are full squares, border-radius 50% makes them round. */
}

.tutorial-icon-item p {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0;
}

/* ==========================================
   SEÃ‡ÃƒO DE JOGOS
   ========================================== */

.games-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 10px;
    display: inline-block;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 20px;
}

.game-card {
    background-color: var(--color-secondary);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(var(--color-accent-rgb), 0.25);
    border-color: var(--color-accent);
}

.game-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.game-card-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.game-card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}

.game-card-paid {
    font-size: 11px;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.game-card-paid-amount {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent);
}

.btn-apostar {
    background-color: var(--color-accent);
    color: var(--color-primary);
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    align-self: flex-start;
    box-shadow: 0 2px 8px rgba(var(--color-accent-rgb), 0.2);
}

.btn-apostar:hover {
    background-color: var(--color-accent-dark);
    box-shadow: 0 4px 12px rgba(var(--color-accent-rgb), 0.3);
    transform: translateY(-2px);
}

/* ==========================================
   SEÃ‡ÃƒO TOP GANHOS
   ========================================== */

.top-winners-section {
    margin-bottom: 30px;
}

.winners-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.winner-card {
    background-color: var(--color-secondary);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    gap: 15px;
    align-items: center;
    border-left: 4px solid var(--color-accent);
    transition: var(--transition);
}

.winner-card:hover {
    background-color: rgba(var(--color-accent-rgb), 0.1);
}

.winner-info {
    flex: 1;
}

.winner-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

.winner-game {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.winner-prize {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-accent);
}

.winner-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* ==========================================
   SEÃ‡ÃƒO DE VÃDEOS
   ========================================== */

.videos-section {
    margin-bottom: 30px;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.video-card {
    background-color: var(--color-secondary);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    aspect-ratio: 16 / 9;
    position: relative;
    border: 1px solid var(--color-border);
}

.video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
    box-shadow: 0 10px 30px rgba(var(--color-accent-rgb), 0.2);
}

.video-card:hover img {
    transform: scale(1.05);
}

.video-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.video-card:hover .video-card-overlay {
    opacity: 1;
}

.video-play-btn {
    width: 50px;
    height: 50px;
    background-color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.video-card-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text);
    text-align: center;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

/* ==========================================
   MODAIS (LOGIN E REGISTRO)
   ========================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    padding: 40px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    position: relative;
    animation: slideUp 0.3s ease;
    border: 2px solid var(--color-accent);
    box-shadow: 0 10px 40px rgba(var(--color-accent-rgb), 0.2);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: var(--color-text);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--color-accent);
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-input {
    background-color: var(--color-primary);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 14px;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: var(--color-primary);
}

.form-input::placeholder {
    color: var(--color-text-secondary);
}

.modal-form-submit {
    background-color: var(--color-accent);
    color: var(--color-primary);
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    margin-top: 10px;
}

.modal-form-submit:hover {
    background-color: var(--color-accent-dark);
}

.modal-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: var(--color-text-secondary);
}

.modal-footer a {
    color: var(--color-accent);
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
}

.modal-footer a:hover {
    text-decoration: underline;
}

/* ==========================================
   FOOTER
   ========================================== */

.main-footer {
    background-color: var(--color-secondary);
    border-top: 2px solid var(--color-accent);
    padding: 40px 20px 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 12px;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--color-accent);
}

.footer-section p {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.footer-app-logo {
    width: 50px;
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    font-size: 12px;
    color: var(--color-text-secondary);
}

/* ==========================================
   BOTTOM NAV (MOBILE)
   ========================================== */

.bottom-nav {
    display: none;
    /* exibida via media query em responsive.css */
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 64px;
    background-color: var(--color-secondary);
    border-top: 1px solid var(--color-border);
    z-index: 999;
    align-items: center;
    padding: 6px 8px;
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--color-text-secondary);
    gap: 4px;
    font-size: 11px;
}

.bottom-nav .nav-item .nav-icon {
    font-size: 18px;
}

.bottom-nav .nav-item:active,
.bottom-nav .nav-item:hover {
    color: var(--color-accent);
}

.bottom-nav .nav-fab {
    position: absolute;
    left: 0%;
    transform: translateX(-50%);
    bottom: 18px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #111;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(var(--color-accent-rgb), 0.35);
    border: 2px solid #262626;
}

.bottom-nav .fab-icon {
    font-size: 22px;
}

.bottom-nav .fab-label {
    font-size: 11px;
    color: #111;
    margin-top: 2px;
}

/* ==========================================
   PÃGINA DE RESULTADOS
   ========================================== */

.result-card {
    background-color: var(--color-secondary);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 5px solid var(--color-accent);
    border: 1px solid var(--color-border);
    border-left: 5px solid var(--color-accent);
    transition: var(--transition);
}

.result-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 5px 15px rgba(var(--color-accent-rgb), 0.1);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-border);
}

.result-game-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
}

.result-time {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-secondary);
    font-size: 12px;
}

.result-time img {
    width: 16px;
    height: 16px;
}

.result-positions {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.positions-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 15px;
    padding: 10px 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-secondary);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 10px;
}

.position-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 13px;
}

.position-row:last-child {
    border-bottom: none;
}

.pos-number {
    font-weight: 600;
    color: var(--color-text);
}

.pos-numbers {
    font-weight: 700;
    color: var(--color-accent);
    font-size: 14px;
}

.pos-group {
    color: var(--color-text-secondary);
}

.pos-animal {
    color: var(--color-text);
}

/* ==========================================
   SEÃ‡ÃƒO DE PÃGINAS
   ========================================== */

.page-section {
    background-color: var(--color-secondary);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--color-border);
}

.page-section h1 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--color-text);
    text-transform: uppercase;
}

.page-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-accent);
    margin-top: 20px;
    text-transform: uppercase;
}

.page-section p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 15px;
}

.page-section ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 15px;
}

.page-section ul li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: var(--color-text-secondary);
    font-size: 14px;
}

.page-section ul li::before {
    content: 'â–¸';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
}

/* ==========================================
   TABELAS
   ========================================== */

.odds-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.odds-table thead {
    background-color: var(--color-primary);
}

.odds-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: var(--color-accent);
    border-bottom: 2px solid var(--color-border);
}

.odds-table td {
    padding: 15px;
    border-bottom: 1px solid var(--color-border);
    font-size: 13px;
    color: var(--color-text-secondary);
}

.odds-table tr:hover {
    background-color: var(--color-primary);
}

/* ==========================================
   PAYMENT CARDS
   ========================================== */

.payment-methods {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.payment-card {
    background-color: var(--color-primary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.payment-card:hover {
    border-color: var(--color-accent);
    background-color: rgba(var(--color-accent-rgb), 0.05);
}

.payment-card img {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

.payment-card h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--color-text);
}

.payment-card p {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-bottom: 15px;
}

.btn-payment {
    background-color: var(--color-accent);
    color: var(--color-primary);
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 12px;
    transition: var(--transition);
    width: 100%;
}

.btn-payment:hover {
    background-color: var(--color-accent-dark);
}

/* ==========================================
   FILTROS
   ========================================== */

.results-filter {
    margin-bottom: 20px;
}

.results-filter select {
    background-color: var(--color-secondary);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.results-filter select:focus {
    outline: none;
    border-color: var(--color-accent);
}

.results-filter select option {
    background-color: var(--color-secondary);
    color: var(--color-text);
}

/* ==========================================
   ANIMAÃ‡Ã•ES
   ========================================== */

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

.bounce {
    animation: bounce 1s infinite;
}

/* ==========================================
   SCROLL
   ========================================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

/* ==========================================
   RESULTS SECTION (HOME)
   ========================================== */

.latest-results-section {
    margin-bottom: 40px;
}

.results-container-dark {
    background-color: #1e1e1e;
    border-radius: 8px;
    padding: 20px;
    color: #e0e0e0;
    font-family: 'Inter', sans-serif;
    border: 1px solid #333;
}

.results-dark-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.results-dark-title {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}

.icon-list {
    background-color: #333;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 14px;
}

.view-more-link {
    color: #ccc;
    text-decoration: none;
    font-size: 12px;
    transition: var(--transition);
}

.view-more-link:hover {
    color: var(--color-accent);
}

.results-tabs {
    display: flex;
    gap: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 15px;
    overflow-x: auto;
}

.tab-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    padding: 5px 10px;
    transition: var(--transition);
    white-space: nowrap;
}

.tab-btn.active {
    color: var(--color-accent);
    /* var(--color-accent) */
    border: 1px solid var(--color-accent);
    border-radius: 20px;
    background-color: rgba(var(--color-accent-rgb), 0.1);
}

.tab-btn:hover:not(.active) {
    color: #ccc;
}

.results-time-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 13px;
    color: #ccc;
    font-weight: 600;
}

.time-col {
    display: flex;
    align-items: center;
    gap: 5px;
}

.results-dark-table {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.table-header-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr;
    padding-bottom: 15px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    border-bottom: none;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr;
    padding: 12px 0;
    border-bottom: 1fr solid #333;
    align-items: center;
    font-size: 13px;
    color: #ddd;
}

.table-row:last-child {
    border-bottom: none;
}

.col-pos {
    text-align: left;
    color: #ddd;
}

.col-center {
    text-align: center;
    display: flex;
    justify-content: center;
}

.col-right {
    text-align: right;
    display: flex;
    justify-content: flex-end;
}

.number-box {
    background-color: #2a2a2a;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 2px;
}

.group-box {
    background-color: #2a2a2a;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    /* Formato de ticket visual */
    font-weight: 600;
    color: var(--color-accent);
    position: relative;
}

/* Efeito de ticket simples (opcional) */
.group-box::before,
.group-box::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: #1e1e1e;
    border-radius: 50%;
    left: -3px;
    top: 50%;
    transform: translateY(-50%);
}

.group-box::after {
    left: auto;
    right: -3px;
}

.animal-icon {
    font-size: 18px;
}

@media (max-width: 480px) {

    .table-header-row,
    .table-row {
        grid-template-columns: 1.5fr 1.5fr 0.8fr 0.8fr;
        font-size: 11px;
    }

    .number-box {
        padding: 4px 6px;
        letter-spacing: 1px;
        font-size: 11px;
    }
}

/* ==========================================
   DEPOSIT MODAL REDESIGN - FIXED
   ========================================== */

.deposit-modal-content {
    background: #1a1a1a;
    width: 90%;
    max-width: 480px;
    padding: 20px;
    margin: 5% auto;
    border-radius: 12px;
    border: 1px solid #333;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.deposit-header-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-deposit-header {
    background: #2a2a2a;
    color: var(--color-accent);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: default;
}

.btn-deposit-header.secondary {
    background: #2a2a2a;
    color: #fff;
}

/* Banner Removed */

.deposit-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    color: #ccc;
    font-size: 14px;
}

.label-min {
    font-size: 12px;
    color: #888;
}

.deposit-input-wrapper {
    position: relative;
    background: #222;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-currency {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-right: 5px;
}

.deposit-input-large {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    width: 120px;
    text-align: center;
    outline: none;
}

.deposit-input-large::placeholder {
    color: #666;
}

.input-pix-logo {
    position: absolute;
    right: 15px;
}

.amount-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 25px;
}

.amount-btn-wrapper {
    position: relative;
}

.amount-btn {
    width: 100%;
    background: transparent;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    padding: 10px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.amount-btn:hover {
    background: rgba(var(--color-accent-rgb), 0.1);
}

.amount-btn-wrapper .amount-btn {
    border-color: #f1c40f;
    border-color: var(--color-accent);
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #a4ce38;
    color: #000;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    z-index: 2;
}

.btn-deposit-submit {
    width: 100%;
    background: #5d8a2a;
    background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: #1a2e05;
    font-weight: 800;
    font-size: 16px;
    padding: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    transition: transform 0.1s;
}

.btn-deposit-submit:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.deposit-footer-text {
    margin-top: 20px;
    font-size: 12px;
    color: #666;
    text-align: center;
    line-height: 1.4;
}

.deposit-footer-text a {
    color: var(--color-accent);
    text-decoration: none;
}

.deposit-input-large::-webkit-outer-spin-button,
.deposit-input-large::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ==========================================
   DEPOSIT RESULT SCREEN (QR CODE)
   ========================================== */

.pix-success-toast {
    background: #052c05;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    padding: 10px;
    border-radius: 6px;
    text-align: left;
    font-weight: 700;
    margin-bottom: 20px;
    position: absolute;
    top: -60px;
    /* Floating above? Or just at top */
    left: 0;
    width: 100%;
    /* Actually screenshot shows it floating outside or at top of modal */
    position: relative;
    top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timer-box {
    background: #2a2a2a;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
}

.timer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    color: #ff4444;
    font-weight: 700;
}

.timer-countdown {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.timer-text {
    font-size: 12px;
    color: #ccaaaa;
}

.timer-bar {
    height: 4px;
    background: #442222;
    border-radius: 2px;
    width: 100%;
}

.timer-bar-fill {
    height: 100%;
    background: #ff4444;
    width: 100%;
    /* Ideally animating */
}

.deposit-amount-display {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.qr-instruction {
    text-align: center;
    color: var(--color-accent);
    /* Green text */
    font-size: 14px;
    margin-bottom: 15px;
}

.qr-code-box {
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    width: 180px;
    height: 180px;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code-box img {
    width: 100%;
    height: 100%;
}

.copy-paste-label {
    color: var(--color-accent);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 5px;
    padding-left: 5px;
}

.pix-code-container {
    background: #333;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.pix-code-input {
    background: transparent;
    border: none;
    color: #888;
    width: 100%;
    font-family: monospace;
    outline: none;
    text-overflow: ellipsis;
}

.btn-copy-pix {
    width: 100%;
    background: var(--color-accent);
    /* Lighter green */
    color: #1a2e05;
    font-weight: 700;
    font-size: 16px;
    padding: 12px;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 20px;
}

.deposit-warning {
    background: rgba(255, 165, 0, 0.15);
    /* Orange dim */
    border: 1px solid #dba134;
    color: #dba134;
    padding: 10px;
    border-radius: 6px;
    font-size: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.deposit-actions {
    display: flex;
    gap: 10px;
}

.btn-back {
    background: #333;
    color: #fff;
    border: none;
    border-radius: 6px;
    width: 50px;
    font-size: 18px;
    cursor: pointer;
}

.btn-confirm-payment {
    flex-grow: 1;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* ==========================================
   GAME PLAY INTERFACE
   ========================================== */

.game-play-container {
    display: flex;
    gap: 20px;
    padding: 20px;
    height: calc(100vh - 80px);
    /* Adjust based on header */
    overflow: hidden;
    color: #fff;
}

/* Modality Sidebar (Left of Game) */
.game-modality-sidebar {
    width: 240px;
    background: #151515;
    border-right: 1px solid #333;
    padding: 20px;
    overflow-y: auto;
    flex-shrink: 0;
}

.modality-group-title {
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 15px;
    margin-top: 15px;
    font-weight: 700;
}

.modality-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modality-list li {
    background: transparent;
    border-bottom: 1px solid #222;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 4px;
    margin-bottom: 5px;
}

.modality-list li.active {
    background: transparent;
    border: 1px solid var(--color-accent);
    /* Green border for active */
    color: var(--color-accent);
}

.modality-list li:hover {
    background: #222;
}

.mod-row {
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
}

.icon-check {
    margin-right: 5px;
}

.mod-multiplier {
    font-size: 11px;
    color: var(--color-accent);
    /* Green accent */
    font-weight: 700;
}

/* Main Game Area (Center/Right) */
.game-area-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    max-width: 1000px;
    /* Center it */
}

/* Tabs */
.game-tabs {
    display: flex;
    gap: 2px;
    /* Screenshot style */
    margin-bottom: 0;
}

.game-tab {
    flex: 1;
    background: #1a1a1a;
    border: none;
    padding: 15px;
    color: #888;
    font-weight: 700;
    cursor: pointer;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    transition: all 0.2s;
}

.game-tab.active {
    background: #1e1e1e;
    /* Slightly Lighter */
    color: var(--color-accent);
    border-top: 2px solid var(--color-accent);
}

.game-content-box {
    background: #1e1e1e;
    padding: 30px;
    border-radius: 0 0 12px 12px;
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
}

/* Custom Scrollbar */
.game-content-box::-webkit-scrollbar {
    width: 8px;
}

.game-content-box::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.game-content-box::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.game-content-box::-webkit-scrollbar-thumb:hover {
    background: #444;
}

.palpites-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.active-modality-badge {
    background: rgba(var(--color-accent-rgb), 0.1);
    color: var(--color-accent);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.palpites-count {
    font-size: 12px;
    color: var(--color-accent);
}

.palpites-instruction {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
}

/* Digit Input Boxes */
.digit-input-display {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.digit-box {
    width: 60px;
    height: 70px;
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Keypad Grid */
.numeric-keypad {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 800px;
}

.keypad-row {
    display: flex;
    gap: 15px;
    width: 100%;
}

.key-btn {
    flex: 1;
    background: transparent;
    border: 1px solid var(--color-accent);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.1s;
}

.key-btn:hover {
    background: rgba(var(--color-accent-rgb), 0.1);
    transform: translateY(-2px);
}

.key-btn:active {
    transform: scale(0.98);
}

.key-btn.action-btn {
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-color: #666;
    color: #ccc;
}

.key-btn.action-btn-clear {
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-color: #666;
    color: #ccc;
}

.key-btn.action-btn:hover,
.key-btn.action-btn-clear:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #888;
}


.input-status-text {
    font-size: 12px;
    color: #666;
    margin-bottom: 20px;
}

.btn-select-palpite {
    width: 100%;
    max-width: 800px;
    padding: 15px;
    background: #444;
    /* Disabled state */
    color: #888;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: not-allowed;
    text-transform: uppercase;
}

.btn-select-palpite.ready {
    background: #5d8a2a;
    background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: #1a2e05;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(var(--color-accent-rgb), 0.3);
}

/* ==========================================
   CUSTOM MODAL (Bet Amount)
   ========================================== */
.custom-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.custom-modal-box {
    background: #1a1a1a;
    width: 90%;
    max-width: 400px;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    text-align: center;
}

.custom-modal-overlay.active .custom-modal-box {
    transform: translateY(0);
}

/* Responsive Modal Adjustments */
@media (max-width: 480px) {
    .custom-modal-box {
        width: 95%;
        padding: 20px;
    }

    /* Make profile buttons bigger on mobile */
    #profileModal .profile-menu-grid {
        gap: 10px;
    }

    #profileModal .profile-menu-item {
        padding: 20px 10px;
        /* Taller touch targets */
    }

    #profileModal .profile-menu-icon {
        font-size: 28px;
        /* Larger icons */
        margin-bottom: 5px;
    }

    #profileModal .profile-menu-item span {
        font-size: 14px;
        /* Larger text */
    }
}

.custom-modal-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.custom-modal-input {
    width: 100%;
    background: #222;
    border: 1px solid var(--color-accent);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 25px;
    outline: none;
}

.custom-modal-input:focus {
    box-shadow: 0 0 10px rgba(var(--color-accent-rgb), 0.2);
}

.custom-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-modal {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.2s;
}

.btn-modal:hover {
    opacity: 0.9;
}

.btn-modal-cancel {
    background: #333;
    color: #ccc;
}

.btn-modal-confirm {
    background: var(--color-accent);
    color: #000;
}

.custom-modal-message {
    color: #ccc;
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* ==========================================
   BETS HISTORY TABLE
   ========================================== */
.page-title {
    color: #fff;
    margin-bottom: 20px;
    font-size: 24px;
}

.bets-table-container {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #333;
    overflow-x: auto;
}

.bets-table {
    width: 100%;
    border-collapse: collapse;
    color: #ddd;
    font-size: 14px;
}

.bets-table th,
.bets-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #333;
}

.bets-table th {
    background: #252525;
    color: var(--color-accent);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
}

.bets-table tr:hover {
    background: #222;
}

.highlight-numbers {
    letter-spacing: 1px;
    font-family: monospace;
    font-size: 1.1em;
    color: #fff;
}

.bet-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.status-won {
    background: rgba(var(--color-accent-rgb), 0.2);
    color: var(--color-accent);
}

.status-lost {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.no-bets-msg {
    color: #888;
    text-align: center;
    padding: 30px;
    font-style: italic;
}

/* ==========================================
   RESULTS PAGE RESTYLING
   ========================================== */
.results-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.result-card {
    background: #1e1e1e;
    border-radius: 12px;
    border: 1px solid #333;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
    border-color: var(--color-accent);
}

.result-header {
    background: linear-gradient(135deg, #2c3e50, #000);
    padding: 15px;
    border-bottom: 2px solid var(--color-accent);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-game-name {
    color: #fff;
    font-weight: 800;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-time {
    font-size: 0.85em;
    color: #aaa;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 4px;
}

.result-positions {
    padding: 0;
}

.positions-header {
    background: #252525;
    color: #666;
    font-size: 0.75em;
    text-transform: uppercase;
    padding: 8px 15px;
    letter-spacing: 1px;
    border-bottom: 1px solid #333;
    display: grid;
    grid-template-columns: 0.5fr 1fr 0.5fr 1fr;
    text-align: center;
}

.position-row {
    display: grid;
    grid-template-columns: 0.5fr 1fr 0.5fr 1fr;
    padding: 12px 15px;
    border-bottom: 1px solid #2a2a2a;
    align-items: center;
    text-align: center;
    font-size: 0.9em;
    color: #ddd;
}

.position-row:last-child {
    border-bottom: none;
}

/* First Place Highlight */
.position-row:first-of-type {
    background: rgba(var(--color-accent-rgb), 0.05);
}

.position-row:first-of-type .pos-number {
    color: var(--color-accent);
    font-weight: bold;
}

.pos-number {
    color: #888;
    font-weight: 600;
}

.pos-numbers {
    color: #fff;
    font-weight: 700;
    font-family: monospace;
    font-size: 1.2em;
    letter-spacing: 2px;
}

.pos-group {
    color: #aaa;
}

.pos-animal {
    color: #ccc;
    font-weight: 500;
    text-transform: capitalize;
}

/* Filter style */
.results-filter {
    margin-bottom: 20px;
    text-align: right;
}

.results-filter select {
    background: #1a1a1a;
    color: #fff;
    border: 1px solid #333;
    padding: 10px 15px;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
}

.results-filter select:focus {
    border-color: var(--color-accent);
}

@media (max-width: 600px) {
    .positions-header {
        display: none;
        /* Hide header on mobile if cluttered */
    }

    .position-row {
        grid-template-columns: 1fr;
        /* Stack or keep simplified */
        grid-template-columns: 0.3fr 1fr 0.4fr 1fr;
        /* Keep proportion but tighter */
        padding: 10px;
        font-size: 0.85em;
    }

    .result-game-name {
        font-size: 1em;
    }
}

/* ==========================================
   ANIMAL GRID UI
   ========================================== */
.animal-grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 20px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.animal-item {
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 10px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.animal-item:hover {
    background: #333;
    transform: translateY(-2px);
}

.animal-item.selected {
    background: rgba(var(--color-accent-rgb), 0.2);
    border-color: var(--color-accent);
    box-shadow: 0 0 10px rgba(var(--color-accent-rgb), 0.3);
}

.animal-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.animal-number {
    font-size: 10px;
    color: #888;
    background: #111;
    padding: 2px 6px;
    border-radius: 10px;
    margin-bottom: 3px;
}

.animal-name {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    text-align: center;
}

.animal-display-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: normal;
}

/* ==========================================
   SUPER FÁCIL GRID UI
   ========================================== */
.super-facil-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.sf-number-item {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 50%;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.sf-number-item:hover {
    background: #333;
    transform: scale(1.1);
    border-color: #666;
}

.sf-number-item.selected {
    background: var(--color-accent);
    color: black;
    border-color: var(--color-accent);
    box-shadow: 0 0 15px rgba(var(--color-accent-rgb), 0.5);
    transform: scale(1.1);
}

/* ==========================================
   MODERN GAME CARDS
   ========================================== */
.game-card {
    background: #252525;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    border-color: #444;
}

.game-banner {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 20px;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Specific Gradients */
.banner-bicho {
    background: linear-gradient(135deg, #FF8008, #FFC837);
}

.banner-superfacil {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
}

.banner-super5 {
    background: linear-gradient(135deg, #ec008c, #fc6767);
}

.banner-super6 {
    background: linear-gradient(135deg, #8E2DE2, #4A00E0);
}

.banner-federal {
    background: linear-gradient(135deg, #1D976C, #93F9B9);
    color: #0f3d2c;
    text-shadow: none;
}

.banner-lotofacil {
    background: linear-gradient(135deg, #FF0099, #493240);
}

.banner-ptrio {
    background: linear-gradient(135deg, #56ab2f, #a8e063);
}

.banner-ptsp {
    background: linear-gradient(135deg, #DA22FF, #9733EE);
}

.game-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.game-card-title {
    margin: 0 0 10px 0;
    color: white;
    font-size: 1.25rem;
}

.game-card p {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.game-card-paid {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px !important;
}

.game-card-paid-amount {
    color: var(--color-accent);
    font-size: 1.1rem;
    font-weight: bold;
    display: block;
    margin-top: 5px;
}

.btn-apostar {
    margin-top: auto;
    background: var(--color-accent);
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 8px;
    padding: 12px;
    transition: all 0.2s;
}

.btn-apostar:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(110, 217, 70, 0.4);
}

/* POSITIONS TAB STYLES */
.position-options-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.position-card {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.position-card:hover {
    background: #2a2a2a;
}

.position-card.active {
    border-color: var(--color-accent);
    background: rgba(var(--color-accent-rgb), 0.05);
    box-shadow: 0 0 15px rgba(var(--color-accent-rgb), 0.1);
}

.position-radio {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.position-card.active .position-radio {
    border-color: var(--color-accent);
    background: var(--color-accent);
}

.radio-inner {
    width: 10px;
    height: 10px;
    background: #000;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s;
}

.position-card.active .radio-inner {
    opacity: 1;
    transform: scale(1);
}

.position-info {
    display: flex;
    flex-direction: column;
}

.position-title {
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 4px;
}

.position-desc {
    color: #888;
    font-size: 13px;
}

.btn-confirm-position {
    width: 100%;
    background: var(--color-accent);
    color: #000;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 30px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 5px 20px rgba(var(--color-accent-rgb), 0.3);
    transition: all 0.2s;
}

.btn-confirm-position:active {
    transform: scale(0.98);
}