/* ============================================
   COSA NOSTRA CASINO - Estilos Principales
   Paleta: Negro, Dorado, Rojo, Blanco
   ============================================ */

:root {
    --black: #1a1a1a;
    --black-light: #2a2a2a;
    --black-lighter: #3a3a3a;
    --gold: #d4af37;
    --gold-light: #f4cf57;
    --gold-dark: #b4941f;
    --red: #8b0000;
    --red-light: #c41e3a;
    --white: #ffffff;
    --white-dim: #cccccc;
    --green: #228b22;
    --green-felt: #0d5c0d;

    --font-title: 'Cinzel', serif;
    --font-body: 'Open Sans', sans-serif;

    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--white);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* Pantallas */
.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    background: var(--black);
}

.screen.active {
    display: flex;
}

/* ============================================
   PANTALLA DE CARGA
   ============================================ */
#loading-screen {
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--black) 0%, var(--black-light) 100%);
}

.loading-logo {
    width: 250px;
    max-width: 60%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: var(--black-lighter);
    border-radius: 2px;
    margin-top: 30px;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
    animation: loading 2s ease-in-out forwards;
}

@keyframes loading {
    0% { width: 0%; }
    100% { width: 100%; }
}

.loading-text {
    margin-top: 15px;
    color: var(--white-dim);
    font-size: 14px;
}

/* ============================================
   PANTALLA DE LOGIN
   ============================================ */
#login-screen {
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, var(--black) 0%, var(--black-light) 50%, var(--black) 100%);
}

.login-container {
    text-align: center;
    padding: 20px;
    width: 100%;
    max-width: 320px;
}

.login-logo {
    width: 220px;
    max-width: 80%;
    margin-bottom: 40px;
    filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.3));
}

.login-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border: none;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.btn-icon {
    font-size: 22px;
}

.btn-text {
    display: flex;
    flex-direction: column;
}

.btn-text strong {
    font-size: 14px;
}

.btn-text small {
    font-size: 11px;
    opacity: 0.8;
}

.btn-demo {
    background: linear-gradient(135deg, var(--black-light) 0%, var(--black-lighter) 100%);
    color: var(--white);
    border: 2px solid var(--black-lighter);
}

.btn-demo:hover, .btn-demo:active {
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--black);
    font-weight: 600;
}

.btn-gold:hover, .btn-gold:active {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    box-shadow: var(--shadow-gold);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-outline:hover, .btn-outline:active {
    background: var(--gold);
    color: var(--black);
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-full {
    width: 100%;
}

.btn-google {
    background: var(--white);
    color: var(--black);
    gap: 10px;
}

.btn-google img {
    width: 20px;
    height: 20px;
}

.divider {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--black-lighter);
}

.divider span {
    padding: 0 15px;
    color: var(--white-dim);
    font-size: 14px;
}

/* ============================================
   MODALES
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--black-light);
    border-radius: 16px;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--black-lighter);
}

.modal-large {
    max-width: 500px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--white-dim);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--gold);
}

.modal-content h2 {
    font-family: var(--font-title);
    color: var(--gold);
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--white-dim);
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--black-lighter);
    border-radius: 10px;
    background: var(--black);
    color: var(--white);
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--gold);
}

.form-group input::placeholder {
    color: var(--white-dim);
    opacity: 0.5;
}

/* ============================================
   HEADER
   ============================================ */
.header, .game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: linear-gradient(180deg, var(--black-light) 0%, var(--black) 100%);
    border-bottom: 1px solid var(--black-lighter);
}

.header-logo {
    height: 70px;
}

.header-balance {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.balance-display {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.balance-label {
    font-size: 10px;
    color: var(--gold);
    letter-spacing: 1px;
}

.balance-amount {
    font-family: var(--font-title);
    font-size: 24px;
    color: var(--gold);
    font-weight: 700;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

#user-name {
    font-size: 14px;
    color: var(--white-dim);
}

/* ============================================
   LOBBY
   ============================================ */
.lobby-main {
    flex: 1;
    padding: 30px 20px;
    overflow-y: auto;
}

.lobby-title {
    font-family: var(--font-title);
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
    color: var(--white);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.game-card {
    background: linear-gradient(135deg, var(--black-light) 0%, var(--black-lighter) 100%);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.game-card:hover, .game-card:active {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: var(--shadow-gold);
}

.game-image {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

/* Overlay oscuro para mejor contraste con el texto */
.game-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    pointer-events: none;
}

/* ===== RULETA - Mesa de ruleta con fichas ===== */
.game-ruleta {
    background-image: url('../img/ruleta.jpg');
    background-color: #0d5c0d;
    background-position: center;
}

/* ===== BLACKJACK - Imagen real ===== */
.game-blackjack {
    background-image: url('https://images.unsplash.com/photo-1541278107931-e006523892df?w=600&q=80');
    background-color: #0d5c0d;
}

/* ===== BACCARAT - Mesa elegante ===== */
.game-baccarat {
    background-image: url('https://images.unsplash.com/photo-1511193311914-0346f16efe90?w=600&q=80');
    background-color: #8b0000;
}

.game-info {
    padding: 20px;
}

.game-info h3 {
    font-family: var(--font-title);
    font-size: 22px;
    color: var(--gold);
    margin-bottom: 5px;
}

.game-info p {
    color: var(--white-dim);
    font-size: 14px;
    margin-bottom: 10px;
}

.game-bet {
    display: inline-block;
    background: var(--black);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--gold);
}

/* ============================================
   DEPÓSITOS
   ============================================ */
.deposit-info {
    color: var(--white-dim);
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}

.method-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.method-option {
    flex: 1;
    cursor: pointer;
}

.method-option input {
    display: none;
}

.method-card {
    display: block;
    padding: 15px;
    background: var(--black);
    border: 2px solid var(--black-lighter);
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
}

.method-option input:checked + .method-card {
    border-color: var(--gold);
    background: var(--black-light);
}

.method-card strong {
    display: block;
    color: var(--white);
    margin-bottom: 5px;
}

.method-card small {
    color: var(--white-dim);
    font-size: 12px;
}

.payment-details {
    background: var(--black);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.payment-method-details p {
    margin-bottom: 10px;
    font-size: 14px;
}

.payment-method-details strong {
    color: var(--gold);
}

/* ============================================
   GAME CONTAINER
   ============================================ */
.game-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ============================================
   GAME: RULETA - Estilos en ruleta.js
   ============================================ */

/* ============================================
   GAME: BLACKJACK
   ============================================ */
.blackjack-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--green-felt);
    position: relative;
}

.dealer-area, .player-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cards-container {
    display: flex;
    gap: 10px;
    min-height: 120px;
    align-items: center;
}

.card {
    width: 70px;
    height: 100px;
    background: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    box-shadow: var(--shadow);
    position: relative;
}

.card.red { color: var(--red-light); }
.card.black { color: var(--black); }

.card.hidden {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-light) 100%);
    color: transparent;
}

.card.hidden::after {
    content: '🂠';
    font-size: 40px;
    color: var(--gold);
}

.hand-value {
    background: var(--black);
    color: var(--gold);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
}

.area-label {
    font-size: 14px;
    color: var(--white);
    opacity: 0.8;
    margin-bottom: 10px;
}

.blackjack-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    background: linear-gradient(0deg, var(--black-light) 0%, transparent 100%);
}

.bet-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.game-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-hit {
    background: var(--green);
}

.btn-stand {
    background: var(--red-light);
}

.btn-double {
    background: var(--gold);
    color: var(--black);
}

.game-message {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.85);
    z-index: 1000;
}

.game-message h2 {
    font-family: var(--font-title);
    color: var(--gold);
    font-size: 32px;
    margin-bottom: 15px;
    text-align: center;
}

.game-message p {
    color: var(--white);
    margin-bottom: 25px;
    text-align: center;
    font-size: 18px;
}

.game-message .btn {
    min-width: 180px;
}

/* ============================================
   GAME: BACCARAT
   ============================================ */
.baccarat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--red) 0%, #5a0000 100%);
}

.baccarat-table {
    flex: 1;
    display: flex;
    padding: 20px;
    gap: 20px;
}

.baccarat-hand {
    flex: 1;
    background: rgba(0,0,0,0.3);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.baccarat-hand h3 {
    font-family: var(--font-title);
    color: var(--gold);
    margin-bottom: 15px;
}

.baccarat-betting {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: var(--black-light);
}

.bet-option {
    flex: 1;
    max-width: 150px;
    padding: 20px;
    background: var(--black);
    border: 3px solid var(--black-lighter);
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.bet-option:hover, .bet-option.selected {
    border-color: var(--gold);
    background: var(--black-light);
}

.bet-option h4 {
    color: var(--gold);
    margin-bottom: 5px;
}

.bet-option .payout {
    font-size: 12px;
    color: var(--white-dim);
}

.bet-option.player-bet { border-color: #1e90ff; }
.bet-option.banker-bet { border-color: var(--red-light); }
.bet-option.tie-bet { border-color: var(--green); }

.bet-option.selected.player-bet { background: rgba(30, 144, 255, 0.2); }
.bet-option.selected.banker-bet { background: rgba(196, 30, 58, 0.2); }
.bet-option.selected.tie-bet { background: rgba(34, 139, 34, 0.2); }

/* ============================================
   RESPONSIVE TABLET OPTIMIZATION
   ============================================ */
@media (min-width: 768px) and (max-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .game-card {
        min-height: 280px;
    }

    .btn {
        padding: 20px 30px;
    }

    .chip {
        width: 55px;
        height: 55px;
        font-size: 13px;
    }
}

@media (min-width: 1024px) {
    .lobby-main {
        padding: 40px;
    }

    .games-grid {
        gap: 30px;
    }

    .ruleta-container {
        padding: 20px;
    }
}

/* ============================================
   UTILITIES
   ============================================ */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-gold {
    color: var(--gold);
}

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--black-lighter);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* ============================================
   PANTALLA VERIFICACIÓN DE EMAIL
   ============================================ */
#verify-email-screen {
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, var(--black) 0%, var(--black-light) 50%, var(--black) 100%);
}

.verify-container {
    text-align: center;
    padding: 20px;
    width: 100%;
    max-width: 400px;
}

.verify-content {
    background: var(--black-light);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid var(--black-lighter);
}

.verify-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.verify-content h2 {
    font-family: var(--font-title);
    color: var(--gold);
    margin-bottom: 15px;
}

.verify-content p {
    color: var(--white-dim);
    margin-bottom: 10px;
}

.verify-email {
    color: var(--gold) !important;
    font-weight: 600;
    font-size: 16px;
}

.verify-instructions {
    font-size: 14px;
    margin-bottom: 25px !important;
}

.verify-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ============================================
   ENLACE OLVIDÉ CONTRASEÑA
   ============================================ */
.forgot-password-link {
    display: block;
    text-align: center;
    color: var(--gold);
    font-size: 14px;
    margin-top: 15px;
    text-decoration: none;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

.modal-description {
    color: var(--white-dim);
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
}

.success-message {
    text-align: center;
    padding: 20px;
}

.success-message p {
    color: var(--green);
    margin-bottom: 20px;
}

/* ============================================
   HEADER ACTIONS
   ============================================ */
.header-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.btn-icon-only {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
}

.btn-icon-only:hover {
    transform: scale(1.2);
}

.user-name-clickable {
    cursor: pointer;
}

.user-name-clickable:hover {
    color: var(--gold);
}

/* ============================================
   MODAL DE DEPOSITO
   ============================================ */
.casino-account-info {
    background: linear-gradient(135deg, var(--black-light) 0%, var(--black) 100%);
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.casino-account-info h4 {
    color: var(--gold);
    margin-bottom: 15px;
    font-size: 16px;
    text-align: center;
}

.casino-account-info .account-details p {
    margin-bottom: 10px;
    color: var(--white);
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.casino-account-info .account-details strong {
    color: var(--gold);
}

.casino-account-info .copyable {
    font-family: monospace;
    background: var(--black);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
}

/* ============================================
   MODAL DE RETIRO
   ============================================ */
.withdraw-info {
    color: var(--white-dim);
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}

.withdraw-warning {
    background: rgba(196, 30, 58, 0.2);
    border: 1px solid var(--red);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    margin-bottom: 20px;
}

.withdraw-warning p {
    margin-bottom: 15px;
    color: var(--white);
}

.withdraw-account-info {
    background: var(--black-light);
    border: 1px solid var(--gold);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.withdraw-account-info h4 {
    color: var(--gold);
    margin-bottom: 15px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.withdraw-account-info .account-details p {
    margin-bottom: 8px;
    color: var(--white);
    font-size: 14px;
}

.withdraw-account-info .account-details strong {
    color: var(--gold);
    min-width: 80px;
    display: inline-block;
}

.balance-hint {
    display: block;
    color: var(--gold);
    font-size: 12px;
    margin-top: 5px;
}

.withdraw-pending {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--black-lighter);
}

.withdraw-pending h3 {
    color: var(--gold);
    font-size: 16px;
    margin-bottom: 15px;
}

.pending-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--black);
    border-radius: 8px;
    margin-bottom: 10px;
}

.pending-item .amount {
    color: var(--white);
    font-weight: 600;
}

.pending-item .status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
}

.status-pending {
    background: var(--gold-dark);
    color: var(--black);
}

.status-approved {
    background: var(--green);
    color: var(--white);
}

.status-rejected {
    background: var(--red);
    color: var(--white);
}

/* ============================================
   MODAL DE HISTORIAL
   ============================================ */
.history-summary {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.summary-item {
    flex: 1;
    background: var(--black);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.summary-label {
    display: block;
    font-size: 12px;
    color: var(--white-dim);
    margin-bottom: 5px;
}

.summary-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--gold);
}

.summary-value.pending {
    color: var(--gold-dark);
}

.history-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    flex: 1;
    padding: 10px;
    background: var(--black);
    border: 2px solid var(--black-lighter);
    border-radius: 8px;
    color: var(--white-dim);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--gold);
    color: var(--gold);
}

.history-list {
    max-height: 400px;
    overflow-y: auto;
}

.history-empty {
    text-align: center;
    padding: 40px;
    color: var(--white-dim);
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--black);
    border-radius: 10px;
    margin-bottom: 10px;
}

.history-item-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.history-item-type {
    font-size: 14px;
    font-weight: 600;
}

.history-item-type.deposit {
    color: var(--green);
}

.history-item-type.withdrawal {
    color: var(--red-light);
}

.history-item-date {
    font-size: 12px;
    color: var(--white-dim);
}

.history-item-method {
    font-size: 11px;
    color: var(--white-dim);
}

.history-item-amount {
    font-size: 18px;
    font-weight: 700;
}

.history-item-amount.deposit {
    color: var(--green);
}

.history-item-amount.withdrawal {
    color: var(--red-light);
}

/* ============================================
   MODAL DE PERFIL
   ============================================ */
.profile-info {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--black);
    border-radius: 12px;
    margin-bottom: 25px;
}

.profile-avatar {
    font-size: 50px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black-lighter);
    border-radius: 50%;
}

.profile-details {
    flex: 1;
}

.profile-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 5px;
}

.profile-email {
    font-size: 14px;
    color: var(--white-dim);
    margin-bottom: 8px;
}

.profile-badge {
    display: inline-block;
    font-size: 12px;
    padding: 4px 10px;
    background: var(--green);
    color: var(--white);
    border-radius: 12px;
}

.profile-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--black-lighter);
}

.profile-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.profile-section h3 {
    color: var(--gold);
    font-size: 16px;
    margin-bottom: 15px;
}

/* ============================================
   DEPÓSITOS PENDIENTES (mejora visual)
   ============================================ */
.pending-deposit-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--black);
    border-radius: 8px;
    margin-bottom: 10px;
}

/* ============================================
   KYC - VERIFICACIÓN DE IDENTIDAD
   ============================================ */
.kyc-info {
    color: var(--white-dim);
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}

.kyc-section-title {
    color: var(--gold);
    font-size: 16px;
    margin: 25px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--black-lighter);
}

.kyc-section-title:first-of-type {
    margin-top: 10px;
}

.doc-type-selector {
    display: flex;
    gap: 15px;
    margin-top: 8px;
}

.doc-type-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 12px 20px;
    border: 2px solid var(--black-lighter);
    border-radius: 8px;
    transition: all 0.3s;
}

.doc-type-option:hover {
    border-color: var(--gold);
}

.doc-type-option input[type="radio"] {
    accent-color: var(--gold);
    width: 18px;
    height: 18px;
}

.doc-type-option input[type="radio"]:checked + .doc-type-label {
    color: var(--gold);
}

.doc-type-label {
    color: var(--white);
    font-weight: 500;
}

.photo-tips {
    background: var(--black-lighter);
    border-left: 3px solid var(--gold);
    padding: 15px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 20px;
}

.photo-tips p {
    color: var(--gold);
    margin-bottom: 10px;
}

.photo-tips ul {
    margin: 0;
    padding-left: 20px;
}

.photo-tips li {
    color: var(--white-dim);
    font-size: 13px;
    margin-bottom: 5px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 500px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.kyc-status {
    text-align: center;
    padding: 30px;
}

.kyc-status h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.kyc-status p {
    color: var(--white-dim);
    margin-bottom: 20px;
}

.kyc-status-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.kyc-status-icon.pending {
    color: var(--gold);
}

.kyc-status-icon.approved {
    color: var(--green);
}

.kyc-status-icon.rejected {
    color: var(--red-light);
}

.kyc-upload-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.kyc-upload-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kyc-upload-item.full-width {
    grid-column: span 2;
}

.kyc-upload-item label {
    color: var(--white-dim);
    font-size: 14px;
}

.kyc-upload-box {
    position: relative;
    border: 2px dashed var(--black-lighter);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
    overflow: hidden;
}

.kyc-upload-box:hover {
    border-color: var(--gold);
}

.kyc-upload-box input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--white-dim);
}

.upload-icon {
    font-size: 30px;
}

.upload-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 8px;
}

.kyc-disclaimer {
    margin-bottom: 20px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: var(--white-dim);
}

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.kyc-badge {
    display: inline-block;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.kyc-badge.pending {
    background: var(--gold-dark);
    color: var(--black);
}

.kyc-badge.approved {
    background: var(--green);
    color: var(--white);
}

.kyc-badge.not-verified {
    background: var(--red);
    color: var(--white);
}

@media (max-width: 500px) {
    .kyc-upload-section {
        grid-template-columns: 1fr;
    }

    .kyc-upload-item.full-width {
        grid-column: span 1;
    }
}

/* ============================================
   KYC WIZARD - PASOS DE VERIFICACIÓN
   ============================================ */

/* Modal que no se cierra al hacer click fuera */
.modal-no-close-outside {
    pointer-events: auto;
}

.modal-kyc-wizard {
    max-width: 550px;
}

/* Stepper / Indicador de pasos */
.kyc-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    margin-bottom: 20px;
    background: var(--black);
    border-radius: 12px;
}

.kyc-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.kyc-step .step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--black-lighter);
    color: var(--white-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.kyc-step .step-label {
    font-size: 11px;
    color: var(--white-dim);
    text-align: center;
    transition: all 0.3s ease;
}

.kyc-step.active .step-number {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold-light);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.kyc-step.active .step-label {
    color: var(--gold);
    font-weight: 600;
}

.kyc-step.completed .step-number {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}

.kyc-step.completed .step-label {
    color: var(--green);
}

.kyc-step-line {
    flex: 1;
    height: 3px;
    background: var(--black-lighter);
    margin: 0 8px;
    margin-bottom: 20px;
    transition: background 0.3s ease;
    max-width: 50px;
}

.kyc-step-line.completed {
    background: var(--green);
}

/* Pasos del wizard */
.kyc-wizard-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.kyc-wizard-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.kyc-step-desc {
    color: var(--white-dim);
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}

/* Botones de navegación del wizard */
.kyc-wizard-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--black-lighter);
}

.kyc-wizard-buttons .btn {
    flex: 1;
    padding: 14px 20px;
}

.kyc-wizard-buttons .btn-submit {
    background: linear-gradient(135deg, var(--green) 0%, #1a6b1a 100%);
}

.kyc-wizard-buttons .btn-submit:hover {
    background: linear-gradient(135deg, #2ecc71 0%, var(--green) 100%);
}

/* Tip de MercadoPago */
.kyc-mp-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--gold-dark);
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
}

.kyc-mp-tip .tip-icon {
    font-size: 20px;
}

.kyc-mp-tip span:last-child {
    font-size: 13px;
    color: var(--white-dim);
    line-height: 1.5;
}

/* Auto-guardado indicator */
.kyc-autosave-indicator {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--green);
    opacity: 0;
    transition: opacity 0.3s;
}

.kyc-autosave-indicator.visible {
    opacity: 1;
}

.kyc-autosave-indicator .spinner {
    width: 12px;
    height: 12px;
    border: 2px solid var(--green);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive para stepper */
@media (max-width: 500px) {
    .kyc-stepper {
        padding: 15px 5px;
    }

    .kyc-step .step-number {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .kyc-step .step-label {
        font-size: 9px;
    }

    .kyc-step-line {
        max-width: 30px;
        margin: 0 4px;
        margin-bottom: 16px;
    }

    .kyc-wizard-buttons {
        flex-direction: column;
    }

    .kyc-wizard-buttons .btn {
        width: 100%;
    }
}

/* ============================================
   MEJORAS VISUALES GENERALES
   ============================================ */

/* Mejorar inputs */
.form-group input:hover {
    border-color: var(--gold-dark);
}

.form-group input:valid:not(:placeholder-shown) {
    border-color: var(--green);
}

/* Botón con loading state */
.btn.loading {
    position: relative;
    pointer-events: none;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--white);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Cards de juego mejoradas */
.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 16px;
}

.game-card:hover::before {
    opacity: 1;
}

/* Header mejorado */
.header {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Balance con animación */
.balance-amount {
    transition: transform 0.2s ease;
}

.balance-amount.updated {
    animation: balancePulse 0.5s ease;
}

@keyframes balancePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); color: var(--gold-light); }
}

/* Modales con mejor sombra */
.modal-content {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(212, 175, 55, 0.1);
}

/* Inputs con mejor feedback visual */
.form-group {
    position: relative;
}

.form-group.error input {
    border-color: var(--red-light);
    background: rgba(196, 30, 58, 0.1);
}

.form-group .error-message {
    position: absolute;
    bottom: -18px;
    left: 0;
    font-size: 11px;
    color: var(--red-light);
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--black-light);
    border: 1px solid var(--gold);
    border-radius: 10px;
    padding: 15px 25px;
    color: var(--white);
    font-size: 14px;
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    border-color: var(--green);
}

.toast.error {
    border-color: var(--red-light);
}

/* ============================================
   VERIFICACIÓN DE CÓDIGO
   ============================================ */

.verification-code-input {
    margin: 25px 0;
}

.verification-code-input input {
    width: 100%;
    padding: 20px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 12px;
    text-align: center;
    background: var(--black);
    border: 3px solid var(--gold);
    border-radius: 12px;
    color: var(--gold);
    font-family: var(--font-title);
}

.verification-code-input input:focus {
    outline: none;
    border-color: var(--gold-light);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.verification-code-input input::placeholder {
    color: var(--black-lighter);
    letter-spacing: 12px;
}

.verify-hint {
    font-size: 12px;
    color: var(--white-dim);
    margin-bottom: 20px;
}
