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

:root {
    --bg-color: #0a0a0a;
    --card-bg: rgba(20, 20, 20, 0.7);
    --neon-green: #ff007f;
    --neon-glow: 0 0 15px rgba(255, 0, 127, 0.4);
    --text-primary: #ffffff;
    --neon-blue: #00ccff;
    --neon-blue-glow: 0 0 15px rgba(0, 204, 255, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.3s ease;
}

.neon-button {
    background: var(--neon-green);
    color: #000;
    border: none;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.neon-button:hover {
    box-shadow: var(--neon-glow);
    transform: translateY(-2px);
}

.neon-text {
    color: var(--neon-green);
    text-shadow: var(--neon-glow);
}

/* Barra de Progresso Santgreen */
.progress-container {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin: 15px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-green), #00ccff);
    box-shadow: var(--neon-glow);
    transition: width 0.5s ease-in-out;
}

/* Layout Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-grid .glass-card {
    min-height: 160px;
    padding: 20px;
}

.sidebar {
    width: 250px;
    height: 100vh;
    background: rgba(15, 15, 15, 0.95);
    border-right: 1px solid var(--glass-border);
    position: fixed;
    padding: 30px 20px;
}

.main-content {
    margin-left: 250px;
    padding: 40px;
}

.nav-link {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    transition: 0.3s;
}

.nav-link:hover, .nav-link.active {
    background: rgba(0, 255, 102, 0.1);
    color: var(--neon-green);
}

.nav-link i {
    margin-right: 10px;
}

/* Inputs e Botões */
.glass-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 15px;
    border-radius: 12px;
    color: #fff;
    margin-bottom: 15px;
    outline: none;
}

.glass-input:focus {
    border-color: var(--neon-green);
}

.full-width {
    width: 100%;
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-box {
    width: 90%;
    max-width: 400px;
    min-height: 450px;
    text-align: center;
}

.toggle-auth {
    margin-top: 20px;
    color: var(--text-secondary);
}

.toggle-auth a {
    color: var(--neon-green);
    text-decoration: none;
}

.tab-content {
    animation: fadeIn 0.5s ease;
}

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

.op-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--glass-border);
}

.profit-badge {
    background: rgba(0, 255, 102, 0.2);
    color: var(--neon-green);
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 0.8rem;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 18px;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 10;
}

.password-toggle:hover {
    color: var(--neon-green);
}

/* Modais Elegantes */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    width: 100%;
    max-width: 450px;
    animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Estilos de Apostas Profissionais */
.bet-card-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.bet-card {
    min-width: 280px;
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 15px;
}

.bet-card .league {
    font-size: 0.7rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.bet-card .teams {
    text-align: center;
    margin-bottom: 20px;
}

.bet-card .team-name {
    font-weight: 700;
    font-size: 0.9rem;
    margin: 5px 0;
}

.bet-row {
    background: rgba(15, 15, 15, 0.8);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: 0.2s;
}

.bet-row:hover {
    background: rgba(25, 25, 25, 0.9);
}

.bet-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bet-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    min-width: 60px;
}

.odd-buttons {
    display: flex;
    gap: 8px;
}

.odd-btn {
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 8px 15px;
    min-width: 75px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: 0.2s;
}

.odd-btn:hover {
    background: #252525;
    border-color: var(--neon-green);
}

.odd-btn .label {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.odd-btn .value {
    font-size: 0.85rem;
    color: var(--neon-green);
    font-weight: 700;
}

.section-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--neon-green);
    border-radius: 50%;
    margin-right: 5px;
    animation: pulse-green 1.5s infinite;
}

/* Estilos de Saque Profissional */
.step-badge {
    padding: 5px 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.step-badge.active {
    background: rgba(0, 255, 102, 0.1);
    color: var(--neon-green);
    border: 1px solid rgba(0, 255, 102, 0.2);
}

.stepper-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
    overflow: hidden;
}

.stepper-progress {
    height: 100%;
    background: var(--neon-green);
    box-shadow: var(--neon-glow);
}

.perc-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary);
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: 0.3s;
}

.perc-btn:hover {
    background: rgba(0, 255, 102, 0.1);
    color: var(--neon-green);
    border-color: var(--neon-green);
}

.origin-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 15px 20px;
    border-radius: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.origin-card:hover, .origin-card.active {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.2);
}

.origin-card.active {
    border-color: var(--neon-green);
}

.origin-icon {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.origin-card.active .origin-icon {
    color: var(--neon-green);
}

.pulse-green {
    animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 102, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 255, 102, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 102, 0); }
}

/* RESPONSIVIDADE (MOBILE) */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        bottom: 0;
        top: auto;
        padding: 10px;
        border-right: none;
        border-top: 1px solid var(--glass-border);
        z-index: 2000;
        display: flex;
        justify-content: space-around;
        align-items: center;
        backdrop-filter: blur(20px);
    }

    .sidebar-header, .sidebar p {
        display: none;
    }

    .sidebar nav {
        display: flex;
        width: 100%;
        justify-content: space-around;
        gap: 5px;
    }

    .nav-link {
        flex-direction: column;
        padding: 8px;
        margin-bottom: 0;
        font-size: 0.6rem;
        gap: 5px;
        flex: 1;
        text-align: center;
        border-radius: 8px;
    }

    .nav-link i {
        margin-right: 0;
        font-size: 1.2rem;
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
        padding-bottom: 100px; /* Espaço para o bottom nav */
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .neon-text {
        font-size: 1.5rem;
    }

    .glass-card {
        padding: 15px;
    }

    .bet-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .odd-buttons {
        width: 100%;
        justify-content: space-between;
    }

    .odd-btn {
        flex: 1;
    }

    .modal-content {
        max-width: 95%;
        padding: 15px !important;
    }

    #withdraw-display-amount {
        font-size: 2rem !important;
    }

    .perc-btn {
        padding: 6px 8px;
        font-size: 0.65rem;
    }
}

/* Casino Specific Styles */
.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 204, 255, 0.2);
    border-color: var(--neon-blue);
}

.badge.HOT {
    background: var(--neon-blue);
    color: #000;
}

.badge {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.badge.pulse-green {
    background: rgba(0, 255, 102, 0.1);
    color: var(--neon-green);
    border: 1px solid rgba(0, 255, 102, 0.3);
}

/* Novo Layout de Cabeçalho Superior para Desktop (min-width: 769px) */
@media (min-width: 769px) {
    .sidebar {
        width: 100% !important;
        height: 75px !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        border-right: none !important;
        border-bottom: 1px solid var(--glass-border) !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 50px !important;
        padding: 0 40px !important;
        z-index: 1000 !important;
        background: rgba(15, 15, 15, 0.95) !important;
    }
    
    .sidebar-header {
        margin-bottom: 0 !important;
    }

    .sidebar br {
        display: none !important;
    }
    
    .sidebar nav {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
    }
    
    .nav-link {
        margin-bottom: 0 !important;
        padding: 8px 12px !important;
        font-size: 0.85rem !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        margin-top: 75px !important;
        padding: 40px !important;
    }
}

/* Classes para o novo Layout da Aba Rede (Níveis de Indicação) */
.network-layout {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    align-items: flex-start;
}

.network-sidebar {
    width: 200px;
    padding: 15px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.network-content {
    flex: 1;
}

@media (max-width: 768px) {
    .network-layout {
        flex-direction: column;
        align-items: stretch;
    }
    .network-sidebar {
        width: 100% !important;
    }
}

/* Notificações (Sininho) */
.notification-bell-container {
    position: fixed;
    top: 18px;
    right: 40px;
    z-index: 1500;
}

.bell-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    position: relative;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.bell-btn:hover {
    color: var(--neon-green);
    transform: scale(1.1);
}

.bell-btn .badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ff4444;
    color: #fff;
    font-size: 0.65rem;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 1px solid #111;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.notification-dropdown {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 2000;
    border: 1px solid var(--glass-border);
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    background: rgba(15, 15, 15, 0.95);
    border-radius: 12px;
}

.notification-item {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.02);
    transition: 0.3s;
}

.notification-item.unread {
    border-color: rgba(0, 255, 102, 0.2);
    background: rgba(0, 255, 102, 0.03);
}

.notification-item h5 {
    margin: 0 0 5px 0;
    font-size: 0.8rem;
    color: #fff;
}

.notification-item.unread h5 {
    color: var(--neon-green);
}

.notification-item p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

.notification-item span {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.3);
    margin-top: 5px;
    display: block;
}

@media (max-width: 768px) {
    .notification-bell-container {
        top: 15px;
        right: 15px;
    }
}

/* Grid para os links no Dashboard */
.dashboard-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .dashboard-links-grid {
        grid-template-columns: 1fr !important;
    }
}



