* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    padding: 10px;
    box-sizing: border-box;
}

.screen {
    display: none;
    width: 100%;
    min-height: 100vh;
    padding: 0;
    box-sizing: border-box;
}

#main-screen {
    padding: 0 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

@media (min-width: 769px) {
    #main-screen {
        padding: 0 !important;
    }
    
    #main-screen.active {
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding-top: 0 !important;
    }
}

.screen.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

#main-screen.active {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding-top: 0 !important;
}

.container {
    width: 100%;
    max-width: 450px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px 30px;
    position: relative;
    box-sizing: border-box;
}

#main-screen .container {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    max-width: 100% !important;
    width: 100% !important;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: stretch;
}

@media (min-width: 769px) {
    #main-screen .container {
        padding: 0 !important;
    }
}

@media (min-width: 769px) {
    .container {
        max-width: 500px;
    }
    
    #main-screen .container {
        max-width: 100% !important;
        width: 100% !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
    
    #main-screen .main-container {
        max-width: 100%;
        width: 100%;
        min-height: calc(100vh - 40px);
        border-radius: 0;
        margin-top: 0;
        align-self: flex-start;
        background: transparent;
    }
}

.main-container {
    max-width: 600px;
}

/* Pantalla de Bienvenida */
.welcome-content {
    text-align: center;
    padding: 40px 0 80px 0;
}

.welcome-title {
    font-size: 42px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.welcome-subtitle {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto;
}

.next-button {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #667eea;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.next-button:hover {
    background: #5568d3;
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.next-button:active {
    transform: translateX(-50%) scale(0.95);
}

.next-button svg {
    width: 24px;
    height: 24px;
}

/* Botón de retroceso */
.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(102, 126, 234, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    color: #667eea;
}

.back-button:hover {
    background: #667eea;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    border-color: #667eea;
}

.back-button:active {
    transform: scale(0.95);
}

.back-button svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* Botón de avanzar en esquina superior derecha */
.next-button-top-right {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    z-index: 100;
    color: white;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.next-button-top-right:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3d92 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.next-button-top-right:active {
    transform: translateY(0);
}

.next-button-top-right span {
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Botón Enviar solicitud - Posicionado debajo del botón "Solo Admin" */
.send-email-button {
    top: 72px !important;
    right: 20px !important;
    position: absolute !important;
    z-index: 99 !important;
}

/* Botón Grupo De WhatsApp - Posicionado debajo del botón "Enviar solicitud" */
.whatsapp-group-button {
    top: 124px !important;
    right: 20px !important;
    position: absolute !important;
    z-index: 99 !important;
}

/* ============================================
   ============================================
   ⚠️ REGLA IMPORTANTE: Todas las nuevas pantallas DEBEN incluir
   onclick="goBackToPreviousScreen()" para mantener la consistencia
   de navegación en toda la aplicación.
   ============================================ */

/* Pantalla de Grupo de WhatsApp */
.whatsapp-group-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    position: relative;
}

.whatsapp-group-title {
    position: absolute;
    top: 20px;
    left: 40px;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.whatsapp-group-text {
    margin-top: 80px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    line-height: 1.8;
}

.whatsapp-group-text p {
    font-size: 16px;
    color: #333;
    margin-bottom: 30px;
    text-align: justify;
}

.whatsapp-link {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-link:hover {
    background: linear-gradient(135deg, #20BA5A 0%, #0F7A6E 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-link:active {
    transform: translateY(0);
}

/* Pantalla de Solicitud de Aplicación */
.application-request-container {
    max-width: 600px;
    padding: 40px;
    position: relative;
}

.application-request-title {
    position: absolute;
    top: 20px;
    left: 40px;
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    margin: 0;
    z-index: 10;
}

/* Mensaje informativo temporal */
.info-message-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    margin-top: 60px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.info-message-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.info-message-text {
    color: white;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px;
    text-align: justify;
}

.info-message-close {
    color: white;
    font-size: 12px;
    text-align: center;
    margin: 0;
    opacity: 0.9;
    font-style: italic;
}

.info-message-box.hidden {
    display: none;
}

/* Formulario de solicitud */
.application-request-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.required {
    color: #e74c3c;
}

.form-input,
.form-textarea {
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
    color: #333;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input:invalid:not(:placeholder-shown) {
    border-color: #e74c3c;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Mensajes de error y éxito */
.form-error-message,
.form-success-message {
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: none;
    animation: slideDown 0.3s ease;
}

.form-error-message {
    background-color: #fee;
    color: #c33;
    border: 2px solid #e74c3c;
}

.form-success-message {
    background-color: #efe;
    color: #3c3;
    border: 2px solid #27ae60;
}

.form-error-message.show,
.form-success-message.show {
    display: block;
}

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

/* Botón Enviar Solicitud */
.submit-request-button {
    padding: 14px 28px;
    border-radius: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    color: white;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.submit-request-button:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3d92 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.submit-request-button:active {
    transform: translateY(0);
}

.submit-request-button span {
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Pantalla Confirmar Correo */
.confirmar-correo-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

/* Pantalla Descargar */
.descargar-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.descargar-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 3px solid #667eea;
}

/* Layout de Solicitud */
.solicitud-layout {
    display: flex;
    width: 100%;
    height: calc(100vh - 200px);
    min-height: 600px;
    gap: 20px;
}

/* División 1: Parte Izquierda (20%) */
.solicitud-left {
    width: 20%;
    background: white;
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    position: relative;
    overflow-y: auto;
}

/* División 2: Parte Derecha (80%) */
.solicitud-right {
    width: 80%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* División 2A: Parte Superior Derecha (50%) */
.solicitud-right-top {
    height: 50%;
    background: white;
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    position: relative;
    overflow-y: auto;
}

/* División 2B: Parte Inferior Derecha (50%) */
.solicitud-right-bottom {
    height: 50%;
    background: white;
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    position: relative;
    overflow-y: auto;
}

/* Número de división */
.division-number {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    z-index: 10;
}

.division-content {
    width: 100%;
    height: 100%;
    padding-top: 10px;
}

/* Título de división */
.division-title {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

/* Lista de solicitudes */
.solicitudes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.solicitud-item {
    padding: 12px 15px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.solicitud-item:hover {
    background: #f0f0ff;
    border-color: #667eea;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.solicitud-item.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

.solicitud-item-gmail {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.solicitud-item.selected .solicitud-item-gmail {
    color: white;
}

.solicitud-item-countdown {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.solicitud-item.selected .solicitud-item-countdown {
    background: rgba(255, 255, 255, 0.3);
}

/* Sección de correos de tester */
.tester-emails-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    background: white;
    border: 2px solid #667eea;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    margin-top: 20px;
    width: 100%;
}

.tester-emails-title {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
    margin: 0;
}

.tester-emails-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    resize: vertical;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.tester-emails-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.tester-emails-input::placeholder {
    color: #999;
}

.guardar-correos-button {
    padding: 12px 24px;
    border-radius: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    color: white;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    align-self: flex-start;
}

.guardar-correos-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #5568d3 0%, #6a3d92 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.guardar-correos-button:active:not(:disabled) {
    transform: translateY(0);
}

.guardar-correos-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.guardar-correos-button span {
    color: white;
    font-weight: 600;
}

.tester-emails-message {
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
}

.tester-emails-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tester-emails-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.tester-emails-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Detalle de solicitud */
.solicitud-detail {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.solicitud-detail-name {
    font-size: 22px;
    font-weight: 700;
    color: #667eea;
    margin: 0;
}

.solicitud-detail-gmail {
    font-size: 16px;
    font-weight: 600;
    color: #555;
    margin: 0;
}

.solicitud-detail-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.empty-message {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Gmail generados */
.generated-emails {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #333;
    line-height: 1.8;
    word-break: break-all;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #667eea;
    min-height: 100px;
    max-height: calc(100% - 60px);
    overflow-y: auto;
}

/* Botón Generar/Espera/Limpiar */
.generate-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 14px 28px;
    border-radius: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    color: white;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 1000;
}

.generate-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #5568d3 0%, #6a3d92 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.generate-button:active:not(:disabled) {
    transform: translateY(0);
}

.generate-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.generate-button svg {
    width: 20px;
    height: 20px;
}

/* Botón Generado OK */
.generated-ok-button {
    position: absolute;
    bottom: 15px;
    right: 15px;
    padding: 10px 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    color: white;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.generated-ok-button:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3d92 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.generated-ok-button:active {
    transform: translateY(0);
}

.loading-text {
    text-align: center;
    color: #999;
    padding: 20px;
    font-style: italic;
}

/* Responsive para Solicitud */
@media (max-width: 768px) {
    .solicitud-layout {
        flex-direction: column;
        height: auto;
    }
    
    .solicitud-left {
        width: 100%;
        height: 300px;
    }
    
    .solicitud-right {
        width: 100%;
    }
    
    .solicitud-right-top,
    .solicitud-right-bottom {
        height: 300px;
    }
    
    .generate-button {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Contenedor de políticas */
.policies-container {
    max-width: 100% !important;
    width: 100% !important;
    height: 100vh;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: white;
    position: relative;
    overflow: hidden;
}

/* Layout de políticas */
.policies-layout {
    display: flex;
    width: 100%;
    height: 100vh;
    padding-top: 0;
    box-sizing: border-box;
}

/* Navegación de políticas (20%) */
.policies-nav {
    width: 20%;
    background: #f8f9fa;
    border-right: 2px solid #e0e0e0;
    padding: 30px 20px;
    overflow-y: auto;
    box-sizing: border-box;
}

.policies-nav-title {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #667eea;
}

.policies-nav-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.policy-nav-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.policy-nav-main {
    display: block;
    padding: 14px 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid #667eea;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.policy-nav-main:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.policy-nav-main.active {
    background: linear-gradient(135deg, #5568d3 0%, #6a3d92 100%);
}

.policy-nav-subitems {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 10px;
    margin-top: 4px;
}

.policy-nav-subitem {
    display: block;
    padding: 10px 16px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.policy-nav-subitem:hover {
    background: #f0f0ff;
    color: #667eea;
    border-color: #667eea;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.policy-nav-subitem.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    font-weight: 600;
}

/* Contenido de políticas (70%) */
.policies-content {
    width: 70%;
    padding: 40px 50px;
    overflow-y: auto;
    box-sizing: border-box;
    background: white;
}

.policy-section {
    margin-bottom: 60px;
    scroll-margin-top: 20px;
}

.policy-title {
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
}

.policy-text {
    line-height: 1.8;
    color: #333;
}

.policy-text h3 {
    font-size: 22px;
    font-weight: 600;
    color: #667eea;
    margin-top: 35px;
    margin-bottom: 15px;
    scroll-margin-top: 20px;
}

.policy-text p {
    font-size: 16px;
    margin-bottom: 15px;
    color: #555;
}

.policy-text ul {
    margin: 15px 0 25px 25px;
    padding-left: 0;
}

.policy-text li {
    font-size: 15px;
    margin-bottom: 12px;
    color: #555;
    line-height: 1.7;
}

.policy-text li strong {
    color: #667eea;
    font-weight: 600;
}

.policy-update {
    margin-top: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    font-size: 14px;
    color: #666;
}

/* Scrollbar personalizado para políticas */
.policies-nav::-webkit-scrollbar,
.policies-content::-webkit-scrollbar {
    width: 8px;
}

.policies-nav::-webkit-scrollbar-track,
.policies-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.policies-nav::-webkit-scrollbar-thumb,
.policies-content::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.policies-nav::-webkit-scrollbar-thumb:hover,
.policies-content::-webkit-scrollbar-thumb:hover {
    background: #5568d3;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .policies-layout {
        flex-direction: column;
        padding-top: 0;
    }
    
    .policies-nav {
        width: 100%;
        height: auto;
        max-height: 200px;
        border-right: none;
        border-bottom: 2px solid #e0e0e0;
        padding: 20px 15px;
    }
    
    .policies-nav-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .policies-nav-list {
        flex-direction: column;
        gap: 15px;
    }
    
    .policy-nav-group {
        gap: 6px;
    }
    
    .policy-nav-main {
        padding: 12px 16px;
        font-size: 15px;
    }
    
    .policy-nav-subitems {
        padding-left: 8px;
        gap: 5px;
    }
    
    .policy-nav-subitem {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .policies-content {
        width: 100%;
        padding: 30px 20px;
    }
    
    .policy-title {
        font-size: 24px;
    }
    
    .policy-text h3 {
        font-size: 18px;
    }
    
    .next-button-top-right {
        top: 15px;
        right: 15px;
        padding: 10px 16px;
        font-size: 12px;
    }
}

/* Pantalla de Verificación */
.verification-content {
    width: 100%;
}

.verification-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    text-align: center;
}

.verification-subtitle {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 35px;
}

.verification-form {
    width: 100%;
}

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

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f9f9f9;
    color: #333;
    pointer-events: auto !important;
    z-index: 10;
    position: relative;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    pointer-events: auto !important;
}

.input-group input:disabled,
.input-group input[readonly] {
    background: #f9f9f9;
    cursor: text;
    pointer-events: auto !important;
}

#user-id-coins-input {
    pointer-events: auto !important;
    z-index: 10 !important;
    position: relative !important;
}

.input-group input::placeholder {
    color: #999;
}

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

.password-input-wrapper input {
    padding-right: 50px;
}

.toggle-password-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.3s ease;
    border-radius: 6px;
}

.toggle-password-btn:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.toggle-password-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.toggle-password-btn svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    display: none;
    border: 1px solid #fcc;
}

.error-message.show {
    display: block;
}

.success-message {
    background: #efe;
    color: #3c3;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    display: none;
    border: 1px solid #cfc;
}

.success-message.show {
    display: block;
}

.submit-button {
    width: 100%;
    padding: 16px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.submit-button:hover {
    background: #5568d3;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Pantalla de Solicitud Pendiente */
.pending-content {
    text-align: center;
    padding: 20px 0;
}

.pending-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pending-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.pending-subtitle {
    font-size: 18px;
    color: #667eea;
    margin-bottom: 15px;
    font-weight: 600;
}

.pending-message {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
    padding: 0 20px;
}

.access-approved-button {
    width: 100%;
    padding: 16px;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.access-approved-button:hover {
    background: #45a049;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    transform: translateY(-2px);
}

.access-approved-button:active {
    transform: translateY(0);
}

/* Pantalla Principal */
.main-container {
    position: relative;
    min-height: 100vh;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: transparent;
    width: 100%;
    padding: 0;
}

@media (min-width: 769px) {
    .main-container {
        padding-top: 0;
        min-height: calc(100vh - 40px);
        width: 100%;
    }
}

.main-header {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1000;
}

/* ==================== ESTILOS PARA PANTALLA SHATHER ==================== */
#shather-screen {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    position: relative;
}

#shather-screen .container {
    position: relative;
    width: 90%;
    max-width: 90%;
    min-height: calc(100vh - 200px);
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px 30px;
    margin-top: 180px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

/* Solo ocultar el título "Publicasion1" pero mantener el recuadro visible */
#publicasion1 h2 {
    display: none;
    visibility: hidden;
}

/* Asegurar que el contenedor tenga posición relativa para el contador absoluto */
#publicasion1 {
    position: relative;
}

/* Contenedor de publicación destacada */
.featured-post-content {
    position: relative;
    width: 100%;
}

/* Contador de tiempo en esquina superior derecha */
.featured-post-timer-top-right {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    z-index: 10;
}

.timer-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timer-value {
    font-size: 16px;
    color: white;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Estilos para el contenido de la publicación destacada */
.featured-post-header {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e8e8e8;
    align-items: center;
    margin-top: 60px; /* Espacio para el contador absoluto */
}

.featured-post-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.featured-info-label {
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
}

.featured-info-value {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.featured-post-media {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
}

.featured-post-media img,
.featured-post-media video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
}

.featured-post-text {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    text-align: center;
    padding: 20px 0;
}

.featured-post-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
}

/* Estilos para las publicaciones regulares (cuadro 1) */
.regular-posts-container {
    width: 100%;
    margin-top: 30px;
    padding-top: 30px;
}

.regular-post-item {
    width: 100%;
    margin-bottom: 30px;
    border: 4px solid #000000;
    border-radius: 15px;
    padding: 20px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.regular-post-item:first-child {
    margin-top: 0;
}

.post-separator {
    width: 100%;
    height: 3px;
    background: #000000;
    margin-bottom: 15px;
    border-radius: 2px;
}

.regular-post-item:first-child .post-separator {
    margin-top: 0;
}

.regular-post-date {
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    text-align: right;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8e8e8;
}

/* Estilos para el header con fecha y botón de eliminar (solo en tab Publicaciones) */
.post-header-with-delete {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8e8e8;
}

.post-header-with-delete .regular-post-date {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    flex: 1;
}

.delete-post-btn {
    position: absolute;
    top: 0;
    left: 0;
    background: #ff6b6b;
    color: white;
    border: 2px solid #000000;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.delete-post-btn:hover {
    background: #ff5252;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.5);
}

.delete-post-btn:active {
    transform: scale(0.95);
}

.delete-post-btn svg {
    width: 16px;
    height: 16px;
}

.regular-post-media {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
}

.regular-post-media img,
.regular-post-media video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    border: 3px solid #000000;
}

/* Estilos para el carrusel de imágenes/videos */
.carousel-container {
    width: 100%;
    margin-bottom: 20px;
    position: relative;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
}

.carousel-items {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 200px;
}

.carousel-item {
    display: none;
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-item.active {
    display: block;
    opacity: 1;
}

.carousel-item img,
.carousel-item video {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block;
    border-radius: 12px;
    border: 3px solid #000000;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(102, 126, 234, 0.9);
    color: white;
    border: 2px solid #000000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    user-select: none;
}

.carousel-btn:hover {
    background: rgba(102, 126, 234, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn-prev {
    left: 10px;
}

.carousel-btn-next {
    right: 10px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    padding: 10px 0;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    border: 2px solid #000000;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-indicator:hover {
    background: #999;
    transform: scale(1.2);
}

.carousel-indicator.active {
    background: #667eea;
    border-color: #000000;
    transform: scale(1.3);
}

.regular-post-text {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    text-align: left;
    padding: 20px 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    border-top: 3px solid #000000;
    padding-top: 20px;
    margin-top: 10px;
}

/* Recuadro negro de información */
.info-container {
    position: relative;
    width: 90%;
    max-width: 90%;
    min-height: calc((100vh - 200px) / 3);
    background: #000000;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px 30px;
    margin-top: 20px;
    box-sizing: border-box;
}

.info-title-hidden {
    display: none;
    visibility: hidden;
}

.privacy-policy-link {
    position: absolute;
    top: 20px;
    left: 30px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: block;
}

.privacy-policy-link:hover {
    color: #667eea;
    text-decoration: underline;
}

#gana-diamantes-link {
    top: 50px;
}

@media (min-width: 769px) {
    .privacy-policy-link {
        top: 30px;
        left: 40px;
        font-size: 18px;
    }
    
    #gana-diamantes-link {
        top: 65px;
    }
}

@media (min-width: 769px) {
    .privacy-policy-link {
        top: 30px;
        left: 40px;
        font-size: 18px;
    }
    
    .info-container {
        min-height: calc((100vh - 200px) / 3);
    }
    
    #shather-screen .container {
        margin-top: 200px;
    }
}

/* Estilos para pantallas de participación - sin recuadros */
#formulario-participantes-screen .shather-title,
#enviar-participacion-screen .shather-title {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    margin-bottom: 20px;
}

#formulario-participantes-screen,
#enviar-participacion-screen {
    background: transparent;
}

#formulario-participantes-screen > div,
#enviar-participacion-screen > div {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.shather-title {
    position: absolute;
    top: 20px;
    left: 5%;
    font-size: 32px;
    font-weight: 900;
    color: white;
    margin: 0;
    padding: 0;
    z-index: 100;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

@media (min-width: 769px) {
    .shather-title {
        top: 30px;
        left: 5%;
        font-size: 40px;
    }
}

/* Sección Ships */
.ships-section {
    position: absolute;
    top: 80px;
    left: 5%;
    z-index: 100;
    width: 90%;
}

@media (min-width: 769px) {
    .ships-section {
        top: 100px;
        left: 5%;
    }
}

.ships-buttons {
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-start;
}

@media (min-width: 480px) {
    .ships-buttons {
        gap: 12px;
    }
}

@media (min-width: 769px) {
    .ships-buttons {
        gap: 18px;
        flex-wrap: nowrap;
    }
}

.ships-button {
    padding: 10px 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid #000000;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    white-space: normal;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.ships-button:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3d92 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.ships-button:active {
    transform: translateY(0);
}

.ships-button span {
    font-size: 11px;
    font-weight: 600;
    color: white;
    letter-spacing: 0.3px;
    display: block;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

@media (min-width: 480px) {
    .ships-button {
        padding: 10px 16px;
    }
    
    .ships-button span {
        font-size: 12px;
    }
}

@media (min-width: 769px) {
    .ships-button {
        padding: 12px 24px;
        white-space: nowrap;
        min-width: 120px;
    }
    
    .ships-button span {
        font-size: 14px;
        white-space: nowrap;
    }
}

.main-header-title {
    position: relative;
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0;
    padding: 20px 20px 10px 20px;
    z-index: 100;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 769px) {
    .main-header {
        top: 20px;
        right: 20px;
    }
    
    .main-header-title {
        top: 20px;
        left: 20px;
        font-size: 24px;
    }
}

.config-button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.config-button:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: rotate(90deg);
}

.config-button svg {
    width: 24px;
    height: 24px;
}

.config-dropdown {
    position: absolute;
    top: 45px;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 20;
}

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

.config-dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.config-dropdown-content {
    padding: 8px 0;
}

.config-menu-item {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #333;
    font-size: 14px;
    transition: all 0.2s ease;
    text-align: left;
}

.config-menu-item:hover {
    background: #f5f5f5;
    color: #667eea;
}

.config-menu-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.main-content {
    text-align: left;
    padding: 0;
    padding-top: 0 !important;
    width: 100%;
    margin-top: 0 !important;
    align-self: flex-start;
    background: transparent;
}

#main-screen .main-content {
    padding-top: 0;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 769px) {
    #main-screen .main-content {
        padding-top: 0;
        padding-left: 40px;
        padding-right: 40px;
        padding-bottom: 40px;
    }
    
    .main-header-title {
        padding: 20px 40px 10px 40px;
    }
}

@media (min-width: 769px) {
    .main-content {
        padding: 0 40px;
        padding-top: 0;
    }
}

.main-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.main-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.user-info {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.user-email {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.logout-button {
    width: 100%;
    padding: 14px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-button:hover {
    background: #ee5a5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.logout-button:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 25px 20px;
        border-radius: 15px;
        max-width: 100%;
        margin: 10px;
    }
    
    .main-container {
        min-height: auto;
    }
    
    .main-header {
        top: 15px;
        right: 15px;
    }
    
    .main-header-title {
        top: 15px;
        left: 15px;
        font-size: 20px;
        color: white;
    }
    
    .config-button {
        padding: 6px;
    }
    
    .config-button svg {
        width: 20px;
        height: 20px;
    }
    
    .config-dropdown {
        min-width: 180px;
        right: -10px;
    }
    
    .main-content {
        padding-top: 0;
    }
    
    .main-header-title {
        padding: 15px 15px 10px 15px;
        font-size: 20px;
    }
    
    .tabs {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .tab-button {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .tab-button svg {
        width: 20px;
        height: 20px;
    }
    
    .tab-panel-content {
        padding: 15px;
    }
    
    .tab-panel-content h3 {
        font-size: 20px;
    }
    
    .user-info {
        padding: 15px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 15px;
        border-radius: 12px;
        margin: 5px;
    }
    
    .welcome-title {
        font-size: 32px;
    }
    
    .welcome-subtitle {
        font-size: 14px;
        padding: 0 10px;
    }
    
    .verification-title {
        font-size: 22px;
    }
    
    .verification-subtitle {
        font-size: 13px;
    }
    
    .main-header {
        top: 10px;
        right: 10px;
    }
    
    .main-header-title {
        top: 10px;
        left: 10px;
        font-size: 18px;
        color: white;
    }
    
    .config-dropdown {
        min-width: 160px;
        right: -15px;
    }
    
    .main-content {
        padding-top: 0;
    }
    
    .main-header-title {
        padding: 10px 10px 8px 10px;
        font-size: 18px;
    }
    
    .tabs {
        gap: 5px;
        padding: 0 5px;
    }
    
    .tab-button {
        padding: 8px 12px;
        font-size: 12px;
        gap: 4px;
    }
    
    .tab-button svg {
        width: 18px;
        height: 18px;
    }
    
    .tab-panel-content {
        padding: 12px;
    }
    
    .tab-panel-content h3 {
        font-size: 18px;
    }
    
    .user-info {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .user-email {
        font-size: 13px;
    }
    
    .input-group input {
        padding: 12px 14px;
        font-size: 15px;
    }
    
    .submit-button {
        padding: 14px;
        font-size: 15px;
    }
    
    .logout-button {
        padding: 12px;
        font-size: 15px;
    }
    
    .pending-title {
        font-size: 24px;
    }
    
    .pending-subtitle {
        font-size: 16px;
    }
    
    .pending-message {
        font-size: 13px;
        padding: 0 10px;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.screen.active .container {
    animation: fadeIn 0.4s ease;
}

/* Tabs */
.tabs-container {
    margin-top: 0;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (min-width: 769px) {
    .tabs-container {
        margin-top: 0;
    }
}

.tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 0;
    justify-content: center;
    width: 100%;
    padding: 0 20px;
}

@media (min-width: 769px) {
    .tabs {
        justify-content: flex-start;
        padding: 0 40px;
        margin-bottom: 0;
    }
}

.tab-button {
    background: transparent;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    position: relative;
}

.tab-button:hover {
    color: white;
}

.tab-button.active {
    color: white;
    border-bottom-color: white;
}

.tab-button svg {
    width: 24px;
    height: 24px;
}

.tab-content {
    min-height: 300px;
    width: 100%;
    flex: 1;
}

@media (min-width: 769px) {
    .tab-content {
        min-height: auto;
        flex: 1;
    }
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.tab-panel-content {
    padding: 15px 20px;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    background: white;
    border-radius: 20px 20px 0 0;
    min-height: calc(100vh - 200px);
}

@media (min-width: 769px) {
    .tab-panel-content {
        padding: 20px;
        border-radius: 20px;
        min-height: auto;
    }
}

.tab-panel-content h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

/* Estadísticas */
.stat-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.stat-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Nuevo desplegable de períodos - Estructura limpia */
.stats-period-selector {
    position: relative;
    display: inline-block;
}

.stats-period-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 120px;
    justify-content: space-between;
}

.stats-period-btn:hover {
    background: #eeeeee;
    border-color: #667eea;
}

.stats-period-icon {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.stats-period-selector.active .stats-period-icon {
    transform: rotate(180deg);
}

.stats-period-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 100%;
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.stats-period-selector.active .stats-period-dropdown {
    display: block;
}

.stats-period-item {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: white;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.stats-period-item:last-child {
    border-bottom: none;
}

.stats-period-item:hover {
    background: #f5f5f5;
}

.stats-period-item.active {
    background: #667eea;
    color: white;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-chart-container {
    width: 100%;
    height: 300px;
    position: relative;
}

.stat-info {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.stat-value {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

@media (max-width: 480px) {
    .stat-card {
        padding: 15px;
    }
    
    .stat-title {
        font-size: 18px;
    }
    
    .stat-chart-container {
        height: 250px;
    }
    
    .stat-value {
        font-size: 36px;
    }
}

.tab-panel-content p {
    color: #666;
    line-height: 1.6;
}

/* Estadística de Cuentas Creadas - Diseño de estadística tradicional con toque distintivo */
.stat-card.stat-card-accounts {
    background: white !important;
    border-radius: 16px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    border-left: 4px solid #667eea !important;
    position: relative;
}

.stat-card-accounts .stat-header-accounts {
    display: flex !important;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card-accounts .stat-icon-accounts {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.stat-card-accounts .stat-title-wrapper {
    flex: 1;
}

.stat-card-accounts .stat-title-accounts {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
}

.stat-card-accounts .stat-subtitle-accounts {
    font-size: 13px;
    color: #666;
    margin: 0;
    font-weight: 400;
}

.stat-card-accounts .stat-content-accounts {
    display: block !important;
    text-align: center !important;
    padding: 20px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-radius: 12px !important;
    color: white !important;
    flex-direction: initial !important;
    gap: 0 !important;
}

.stat-card-accounts .stat-value-accounts {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.stat-card-accounts .stat-label-accounts {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 12px;
}

.stat-card-accounts .stat-badge-accounts {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    margin-top: 8px;
}

.stat-card-accounts .badge-text {
    font-size: 11px;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-card-accounts .badge-text::before {
    content: '●';
    color: #00ff88;
    animation: pulse-dot 1.5s ease-in-out infinite;
    font-size: 8px;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

@media (max-width: 480px) {
    .stat-card-accounts {
        padding: 15px;
    }
    
    .stat-header-accounts {
        gap: 12px;
    }
    
    .stat-icon-accounts {
        width: 40px;
        height: 40px;
    }
    
    .stat-title-accounts {
        font-size: 18px;
    }
    
    .stat-value-accounts {
        font-size: 36px;
    }
}

/* Bento Grid para Reportes */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 16px;
    margin-top: 24px;
    height: 800px;
}

.bento-item {
    background: linear-gradient(135deg, #9b7dd4 0%, #b794d4 100%);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(155, 125, 212, 0.3);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(155, 125, 212, 0.3);
    height: 100%;
}

.bento-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(155, 125, 212, 0.4);
    background: linear-gradient(135deg, #8b6bc4 0%, #a584c4 100%);
}

.bento-number {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.bento-content {
    flex: 1;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    padding-right: 4px;
}

.bento-content::-webkit-scrollbar {
    width: 6px;
}

.bento-content::-webkit-scrollbar-track {
    background: rgba(155, 125, 212, 0.2);
    border-radius: 3px;
}

.bento-content::-webkit-scrollbar-thumb {
    background: rgba(155, 125, 212, 0.5);
    border-radius: 3px;
}

.bento-content::-webkit-scrollbar-thumb:hover {
    background: rgba(155, 125, 212, 0.7);
}

/* Distribución del grid - 10 elementos */
.bento-item:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1;
}

.bento-item:nth-child(2) {
    grid-column: 3 / 5;
    grid-row: 1;
}

.bento-item:nth-child(3) {
    grid-column: 1 / 2;
    grid-row: 2;
}

.bento-item:nth-child(4) {
    grid-column: 2 / 4;
    grid-row: 2;
}

.bento-item:nth-child(5) {
    grid-column: 4 / 5;
    grid-row: 2;
}

.bento-item:nth-child(6) {
    grid-column: 1 / 3;
    grid-row: 3;
}

.bento-item:nth-child(7) {
    grid-column: 3 / 5;
    grid-row: 3;
}

.bento-item:nth-child(8) {
    grid-column: 1 / 2;
    grid-row: 4;
}

.bento-item:nth-child(9) {
    grid-column: 2 / 3;
    grid-row: 4;
}

.bento-item:nth-child(10) {
    grid-column: 3 / 5;
    grid-row: 4;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(5, 1fr);
        height: auto;
        min-height: 1000px;
    }
    
    .bento-item:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: 1;
    }
    
    .bento-item:nth-child(2) {
        grid-column: 1 / 2;
        grid-row: 2;
    }
    
    .bento-item:nth-child(3) {
        grid-column: 2 / 3;
        grid-row: 2;
    }
    
    .bento-item:nth-child(4) {
        grid-column: 1 / 3;
        grid-row: 3;
    }
    
    .bento-item:nth-child(5) {
        grid-column: 1 / 2;
        grid-row: 4;
    }
    
    .bento-item:nth-child(6) {
        grid-column: 2 / 3;
        grid-row: 4;
    }
    
    .bento-item:nth-child(7) {
        grid-column: 1 / 3;
        grid-row: 5;
    }
    
    .bento-item:nth-child(8) {
        grid-column: 1 / 2;
        grid-row: 6;
    }
    
    .bento-item:nth-child(9) {
        grid-column: 2 / 3;
        grid-row: 6;
    }
    
    .bento-item:nth-child(10) {
        grid-column: 1 / 3;
        grid-row: 7;
    }
}

/* Estilos para Reportes */
.bento-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

/* Lista de Reportes (Grid 1) */
.reports-list {
    height: 100%;
    max-height: calc(100% - 40px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    min-height: 0;
}

.reports-list::-webkit-scrollbar {
    width: 6px;
}

.reports-list::-webkit-scrollbar-track {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 3px;
}

.reports-list::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 3px;
}

.reports-list::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

.report-item {
    background: white;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.report-item:hover {
    transform: translateX(4px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.report-item.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.report-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.report-type-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.report-type-badge.content {
    background: #ff6b6b;
    color: white;
}

.report-type-badge.user {
    background: #4ecdc4;
    color: white;
}

.report-type-badge.chat {
    background: #ffe66d;
    color: #333;
}

.report-reason {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.report-user-info {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.loading-text, .empty-message {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 20px;
}

/* Barra de Búsqueda (Grid 2) */
.search-container {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.search-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 24px;
    font-size: 14px;
    background: white;
    color: #333;
    outline: none;
    transition: all 0.2s ease;
}

.search-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-button {
    padding: 10px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 24px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.search-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Estadísticas (Grid 3) */
.reports-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100% - 40px);
    max-height: calc(100% - 40px);
    padding: 20px;
    overflow: hidden;
    min-height: 0;
}

.reports-stats canvas {
    max-width: 100%;
    max-height: 100%;
}

/* Detalle del Reporte (Grid 4) */
.report-detail {
    height: calc(100% - 40px);
    max-height: calc(100% - 40px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px;
    min-height: 0;
    padding-right: 4px;
}

.report-detail::-webkit-scrollbar {
    width: 6px;
}

.report-detail::-webkit-scrollbar-track {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 3px;
}

.report-detail::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 3px;
}

.report-detail::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

.report-detail-section {
    margin-bottom: 16px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.report-detail-section h5 {
    font-size: 12px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.report-detail-section p {
    font-size: 13px;
    color: #333;
    margin: 4px 0;
    line-height: 1.5;
}

.report-detail-section strong {
    color: #667eea;
}

.reported-content {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 8px;
    margin-top: 8px;
    font-size: 13px;
    color: #333;
    max-height: 200px;
    overflow-y: auto;
}

/* Acciones (Grid 7) */
.report-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
    height: calc(100% - 40px);
    max-height: calc(100% - 40px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    min-height: 0;
}

.report-actions::-webkit-scrollbar {
    width: 6px;
}

.report-actions::-webkit-scrollbar-track {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 3px;
}

.report-actions::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 3px;
}

.report-actions::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

.action-button {
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    text-align: center;
}

.ban-button {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

.ban-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.cancel-button {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
}

.cancel-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(149, 165, 166, 0.3);
}

.suspend-container {
    position: relative;
}

.suspend-button {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    width: 100%;
}

.suspend-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.suspend-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 100;
    overflow: hidden;
}

.suspend-container:hover .suspend-dropdown,
.suspend-dropdown:hover {
    display: block;
}

.suspend-option {
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    transition: background 0.2s ease;
}

.suspend-option:hover {
    background: rgba(102, 126, 234, 0.1);
}

.unban-button {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.unban-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.unsuspend-button {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.unsuspend-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.delete-content-button {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.delete-content-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.content-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px 0;
}

#delete-content-btn {
    display: none; /* Oculto por defecto, se mostrará solo para reportes de contenido */
}

/* Chips de Justificación (Grid 6) */
.justification-chips {
    height: calc(100% - 40px);
    max-height: calc(100% - 40px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    min-height: 0;
}

.justification-chips::-webkit-scrollbar {
    width: 6px;
}

.justification-chips::-webkit-scrollbar-track {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 3px;
}

.justification-chips::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 3px;
}

.justification-chips::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

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

.chip-group-title {
    font-size: 13px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chips-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.justification-chip {
    padding: 10px 14px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    background: white;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    position: relative;
}

.justification-chip:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    transform: translateX(4px);
}

.justification-chip.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.justification-chip.selected::after {
    content: '✓';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    font-size: 16px;
}

/* Ocultar grupos de chips según el tipo de reporte seleccionado */
.chip-group.hidden {
    display: none !important;
}

/* Asegurar que los grupos estén visibles por defecto si no tienen la clase hidden */
.chip-group:not(.hidden) {
    display: block;
}

/* Estado de la Cuenta (Grid 5) */
.account-status {
    padding: 12px;
}

.account-status-banned,
.account-status-suspended,
.account-status-active {
    padding: 16px;
    background: white;
    border-radius: 12px;
    border-left: 4px solid;
}

.account-status-banned {
    border-left-color: #ff6b6b;
}

.account-status-suspended {
    border-left-color: #f39c12;
}

.account-status-active {
    border-left-color: #2ecc71;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.banned-badge {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
}

.suspended-badge {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.active-badge {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
}

.status-date {
    font-size: 12px;
    color: #666;
    margin: 4px 0;
}

.status-justification {
    font-size: 13px;
    color: #333;
    margin-top: 8px;
    padding: 8px;
    background: #f5f5f5;
    border-radius: 6px;
    font-weight: 500;
}

.status-note {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    font-style: italic;
}

/* Botones desactivados */
.action-button.disabled {
    background: #95a5a6 !important;
    cursor: not-allowed !important;
    opacity: 0.6;
    pointer-events: none;
}

.action-button.disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Estilos para Publicación Reportada (Bento Grid 8) */
.reported-publication {
    height: 100%;
    max-height: calc(100% - 40px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    min-height: 0;
}

.reported-publication::-webkit-scrollbar {
    width: 6px;
}

.reported-publication::-webkit-scrollbar-track {
    background: rgba(155, 125, 212, 0.2);
    border-radius: 3px;
}

.reported-publication::-webkit-scrollbar-thumb {
    background: rgba(155, 125, 212, 0.5);
    border-radius: 3px;
}

.reported-publication::-webkit-scrollbar-thumb:hover {
    background: rgba(155, 125, 212, 0.7);
}

.publication-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.publication-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.publication-profile {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.publication-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.publication-profile-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: bold;
    font-size: 18px;
}

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

.publication-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.publication-user-id {
    font-size: 11px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.publication-content {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 12px;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.publication-media {
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.publication-photo {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    cursor: pointer;
    display: block;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.publication-photo:hover {
    transform: scale(1.02);
}

.publication-video {
    width: 100%;
    max-height: 400px;
    border-radius: 8px;
    display: block;
    background: #000;
}

.publication-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.publication-date {
    font-size: 10px;
    color: rgba(51, 51, 51, 0.5);
}

.publication-stats {
    display: flex;
    gap: 12px;
}

.publication-stat {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Estilos para el chat reportado (Bento Grid 10) */
.reported-chat {
    height: 100%;
    max-height: calc(100% - 40px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    min-height: 0;
}

.reported-chat::-webkit-scrollbar {
    width: 6px;
}

.reported-chat::-webkit-scrollbar-track {
    background: rgba(155, 125, 212, 0.2);
    border-radius: 3px;
}

.reported-chat::-webkit-scrollbar-thumb {
    background: rgba(155, 125, 212, 0.5);
    border-radius: 3px;
}

.reported-chat::-webkit-scrollbar-thumb:hover {
    background: rgba(155, 125, 212, 0.7);
}

.chat-messages-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px 0;
}

.chat-message {
    display: flex;
    width: 100%;
    margin-bottom: 8px;
}

.message-from-reported {
    justify-content: flex-end;
}

.message-from-reporter {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 16px;
    word-wrap: break-word;
    position: relative;
}

.bubble-reported {
    background: rgba(76, 175, 80, 0.7);
    color: white;
    border-bottom-right-radius: 4px;
}

.bubble-reporter {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-bottom-left-radius: 4px;
}

.message-sender-name {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4px;
}

.message-content {
    margin-bottom: 6px;
}

.message-text {
    font-size: 14px;
    line-height: 1.4;
    color: white;
}

.message-audio {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.audio-icon {
    font-size: 18px;
}

.audio-duration {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.audio-player {
    width: 100%;
    max-width: 250px;
    height: 32px;
    margin-top: 4px;
}

.audio-unavailable {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.message-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    gap: 8px;
}

.message-time {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.message-status {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.resume-chat-button {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.resume-chat-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

/* Botón Gestor - Posicionado debajo del botón "Grupo De WhatsApp" */
.gestor-button {
    top: 176px !important;
    right: 20px !important;
    position: absolute !important;
    z-index: 99 !important;
}

/* Pantalla ID (ID1) */
.id-content {
    width: 100%;
    padding: 40px 0;
}

.id-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    text-align: center;
}

.id-subtitle {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 35px;
}

/* Estilos para pantalla Selección de Juego */
#seleccion-juego-screen {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#seleccion-juego-screen .container {
    display: none !important;
}

.seleccion-juego-header-title {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0;
    z-index: 100;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.seleccion-juego-content {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 80px;
}

.seleccion-juego-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 40px;
}

.juegos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
}

.juego-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-height: 200px;
    justify-content: center;
}

.juego-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #7c8ef0 0%, #8a5fb8 100%);
}

.juego-card:active {
    transform: translateY(-2px);
}

.juego-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
}

.juego-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.juego-name {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin: 0;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .juegos-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .juego-card {
        min-height: 180px;
        padding: 25px 15px;
    }
    
    .seleccion-juego-header-title {
        font-size: 24px;
    }
    
    .seleccion-juego-content {
        margin-top: 60px;
    }
}

/* Estilos para pantalla Ruleta de Casino */
#ruleta-casino-screen {
    position: relative;
    background: linear-gradient(135deg, #0d5d2e 0%, #1a7a3e 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#ruleta-casino-screen .container {
    display: none !important;
}

.ruleta-casino-header-title {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0;
    z-index: 100;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.ruleta-casino-shather-coins {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 100;
}

.ruleta-casino-content {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 80px;
}

.roulette-wheel-container {
    width: 100%;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.casino-wheel {
    width: 100%;
    max-width: 400px;
    position: relative;
}

.casino-wheel svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

.casino-wheel-pointer {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid #d4af37;
    z-index: 10;
    pointer-events: none;
}

.roulette-table-container {
    width: 100%;
    max-width: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.casino-table {
    width: 100%;
}

.casino-table-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    max-width: 600px;
    margin: 0 auto;
}

.casino-number-cell {
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.casino-number-cell:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

.casino-zero {
    grid-column: 1 / -1;
    padding: 15px;
    background: #0d5d2e;
    color: white;
}

/* Selector de cantidad de apuesta */
.bet-amount-selector {
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.bet-amount-selector label {
    display: block;
    color: white;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}

.bet-amount-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.bet-amount-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
    min-width: 60px;
}

.bet-amount-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.bet-amount-btn.active {
    background: #d4af37;
    color: #000;
    border-color: #d4af37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

/* Tablero completo */
.casino-table-wrapper {
    width: 100%;
}

.casino-zeros-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-bottom: 10px;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

.casino-zero-cell {
    background: #0d5d2e;
    color: white;
    padding: 15px;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    border: 2px solid #fff;
    transition: all 0.2s;
}

.casino-zero-cell:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

/* Fichas/Chips de apuesta */
.bet-chip {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    border: 2px solid #fff;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 10;
    pointer-events: none;
}

.casino-number-cell {
    position: relative;
}

.casino-zero-cell {
    position: relative;
}

.external-bet-cell {
    position: relative;
}

.casino-external-bets {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.external-bets-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}

.external-bet-cell {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 15px;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s;
}

.external-bet-cell:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Botones de control */
.casino-control-buttons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.clear-button {
    background: rgba(255, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.clear-button:hover {
    background: rgba(255, 0, 0, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
}

.spin-button {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #000;
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spin-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, #f4d03f 0%, #d4af37 100%);
}

.spin-button:active {
    transform: translateY(-1px);
}

.spin-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 768px) {
    .ruleta-casino-content {
        margin-top: 60px;
        gap: 20px;
    }
    
    .roulette-wheel-container,
    .roulette-table-container {
        padding: 15px;
    }
    
    .ruleta-casino-header-title {
        font-size: 24px;
    }
}

/* Estilos para pantalla Blackjack */
#blackjack-screen {
    position: relative;
    background: linear-gradient(135deg, #0d5d2e 0%, #1a7a3e 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#blackjack-screen .container {
    display: none !important;
}

.blackjack-header-title {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0;
    z-index: 100;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.blackjack-shather-coins {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 100;
}

.blackjack-content {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 80px;
    padding: 20px;
}

/* Estilos del juego de Blackjack */
.blackjack-game-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.blackjack-betting-area {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.betting-chips {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.chip-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    border: 3px solid #fff;
    color: #000;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.chip-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.5);
}

.chip-btn:active {
    transform: scale(0.95);
}

.current-bet {
    color: white;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.current-bet span:last-of-type {
    color: #d4af37;
    font-size: 24px;
}

.clear-bet-btn {
    background: rgba(255, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.clear-bet-btn:hover {
    background: rgba(255, 0, 0, 0.9);
    transform: translateY(-2px);
}

.blackjack-dealer-area,
.blackjack-player-area {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    min-height: 200px;
}

.blackjack-dealer-area h3,
.blackjack-player-area h3 {
    color: white;
    margin: 0 0 15px 0;
    font-size: 20px;
    text-align: center;
}

.hand-sum {
    color: #d4af37;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
}

.cards-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    min-height: 120px;
}

.blackjack-card {
    width: 80px;
    height: 112px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
    position: relative;
}

.blackjack-card:hover {
    transform: translateY(-5px);
}

.card-back {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0d5d2e 0%, #1a7a3e 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.card-front {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 8px;
}

.card-front.red {
    color: #8b0000;
}

.card-value {
    font-size: 20px;
    font-weight: 700;
}

.card-suit {
    font-size: 28px;
}

.blackjack-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.blackjack-btn {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #000;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    min-width: 120px;
}

.blackjack-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.blackjack-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.blackjack-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    display: none;
}

.blackjack-message.ganaste,
.blackjack-message.blackjack {
    background: rgba(0, 255, 0, 0.2);
    color: #90EE90;
    border: 2px solid #90EE90;
}

.blackjack-message.perdiste {
    background: rgba(255, 0, 0, 0.2);
    color: #FF6B6B;
    border: 2px solid #FF6B6B;
}

.blackjack-message.empate {
    background: rgba(255, 255, 0, 0.2);
    color: #FFD700;
    border: 2px solid #FFD700;
}

/* Estilos completos del juego de Blackjack */
#blackjack-screen .game-container {
    width: 100%;
    max-width: 1000px;
    height: 700px;
    position: relative;
    background: linear-gradient(145deg, #041e42, #052e20);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.3), 0 0 60px rgba(176, 38, 255, 0.1);
    overflow: hidden;
    margin: 0 auto;
}

#blackjack-screen .game-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #035c3d;
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
    z-index: 0;
}

#blackjack-screen .table {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

#blackjack-screen .info-panel {
    display: flex;
    justify-content: space-between;
    width: 320px;
    padding: 10px 15px;
    background: rgba(0,0,0,0.8);
    border-radius: 5px;
    margin: 10px 0 0 10px;
    color: white;
    font-size: 14px;
    box-shadow: 0 0 10px rgba(176, 38, 255, 0.3);
    z-index: 10;
    position: absolute;
    top: 0;
    left: 0;
}

#blackjack-screen .dealer-area, 
#blackjack-screen .player-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    flex: 1;
    position: relative;
}

#blackjack-screen .dealer-area {
    justify-content: flex-end;
}

#blackjack-screen .player-area {
    justify-content: flex-start;
}

#blackjack-screen .hand {
    display: flex;
    justify-content: center;
    height: 150px;
    width: 100%;
    position: relative;
}

#blackjack-screen .hand-value {
    position: absolute;
    font-size: 20px;
    color: white;
    text-shadow: 0 0 5px rgba(255,255,255,0.5);
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 15px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 10;
}

#blackjack-screen .dealer-hand-value {
    top: -35px;
    right: 10px;
}

#blackjack-screen .player-hand-value {
    bottom: -35px;
    right: 10px;
}

#blackjack-screen .card {
    width: 100px;
    height: 140px;
    background-color: white;
    border-radius: 8px;
    margin: 0 -20px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease-out;
    transform-style: preserve-3d;
    transform: perspective(800px) rotateY(180deg);
    cursor: default;
}

#blackjack-screen .card.dealt {
    transform: perspective(800px) rotateY(0deg);
}

#blackjack-screen .card.hidden {
    transform: perspective(800px) rotateY(180deg);
}

#blackjack-screen .card-face, 
#blackjack-screen .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

#blackjack-screen .card-face {
    background-color: white;
    color: black;
    display: flex;
    flex-direction: column;
    padding: 5px;
}

#blackjack-screen .card-back {
    background: #1a237e;
    background-image: linear-gradient(45deg, #1a237e 25%, transparent 25%), 
                     linear-gradient(-45deg, #1a237e 25%, transparent 25%), 
                     linear-gradient(45deg, transparent 75%, #1a237e 75%), 
                     linear-gradient(-45deg, transparent 75%, #1a237e 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    border: 5px solid #3949ab;
    transform: rotateY(180deg);
}

#blackjack-screen .card-value {
    font-size: 24px;
    position: absolute;
    top: 5px;
    left: 5px;
}

#blackjack-screen .card-value-bottom {
    font-size: 24px;
    position: absolute;
    bottom: 5px;
    right: 5px;
    transform: rotate(180deg);
}

#blackjack-screen .card-suit {
    font-size: 40px;
    margin: auto;
}

#blackjack-screen .hearts, 
#blackjack-screen .diamonds {
    color: red;
}

#blackjack-screen .controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 10px;
}

#blackjack-screen .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0,0,0,0.7);
    color: white;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.3);
}

#blackjack-screen .btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(176, 38, 255, 0.5);
}

#blackjack-screen .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#blackjack-screen .btn-hit {
    border-bottom: 3px solid #4da6ff;
}

#blackjack-screen .btn-stand {
    border-bottom: 3px solid #ff2a6d;
}

#blackjack-screen .btn-double {
    border-bottom: 3px solid #b026ff;
}

#blackjack-screen .btn-split {
    border-bottom: 3px solid #00ff9d;
}

#blackjack-screen .chip-tray {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
}

#blackjack-screen .chip {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    cursor: grab;
    box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 -1px 0 rgba(0,0,0,0.5) inset, 0 2px 5px rgba(0,0,0,0.3);
    position: relative;
    user-select: none;
    transition: transform 0.2s ease;
}

#blackjack-screen .chip::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px dashed rgba(255,255,255,0.3);
}

#blackjack-screen .chip:hover {
    transform: translateY(-3px);
}

#blackjack-screen .chip-5 {
    background: #e53935;
}

#blackjack-screen .chip-25 {
    background: #43a047;
}

#blackjack-screen .chip-50 {
    background: #1e88e5;
}

#blackjack-screen .chip-100 {
    background: #212121;
}

#blackjack-screen .chip-500 {
    background: #8e24aa;
}

#blackjack-screen .bet-area {
    width: 120px;
    height: 80px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 15px auto 5px auto;
    transition: all 0.3s ease;
    position: relative;
}

#blackjack-screen .bet-area.highlight {
    border-color: #00ff9d;
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.5);
}

#blackjack-screen .bet-amount {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    font-weight: bold;
    color: white;
    background: rgba(0,0,0,0.7);
    padding: 5px 15px;
    border-radius: 12px;
    text-shadow: 0 0 5px rgba(0, 255, 157, 0.5);
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.3);
    z-index: 10;
}

#blackjack-screen .bet-chips {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

#blackjack-screen .bet-chip {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-top: -15px;
    position: relative;
    box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 -1px 0 rgba(0,0,0,0.5) inset, 0 2px 5px rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 10px;
    transform: perspective(100px) rotateX(30deg);
}

#blackjack-screen .bet-chip::before {
    content: '';
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px dashed rgba(255,255,255,0.3);
}

#blackjack-screen .message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    padding: 20px 40px;
    border-radius: 10px;
    font-size: 28px;
    font-weight: bold;
    color: white;
    text-align: center;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    text-shadow: 0 0 10px #00ff9d;
}

#blackjack-screen .message.show {
    opacity: 1;
}

#blackjack-screen .win-message {
    color: #00ff9d;
}

#blackjack-screen .lose-message {
    color: #ff2a6d;
}

#blackjack-screen .push-message {
    color: #4da6ff;
}

#blackjack-screen .balance {
    font-size: 20px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 255, 157, 0.5);
}

#blackjack-screen .history-log {
    max-height: 100px;
    overflow-y: auto;
    margin-left: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: #4da6ff rgba(0,0,0,0.2);
}

#blackjack-screen .history-log::-webkit-scrollbar {
    width: 8px;
}

#blackjack-screen .history-log::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
}

#blackjack-screen .history-log::-webkit-scrollbar-thumb {
    background: #4da6ff;
    border-radius: 4px;
    box-shadow: 0 0 5px #4da6ff;
}

#blackjack-screen .history-item {
    margin: 2px 0;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;
}

#blackjack-screen .history-win {
    background-color: rgba(0, 255, 157, 0.2);
    border-left: 3px solid #00ff9d;
}

#blackjack-screen .history-lose {
    background-color: rgba(255, 42, 109, 0.2);
    border-left: 3px solid #ff2a6d;
}

#blackjack-screen .history-push {
    background-color: rgba(77, 166, 255, 0.2);
    border-left: 3px solid #4da6ff;
}

#blackjack-screen .actions-panel {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
}

#blackjack-screen .new-game, 
#blackjack-screen .new-hand {
    background: rgba(0,0,0,0.7);
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: bold;
    margin-top: 10px;
    box-shadow: 0 0 5px rgba(176, 38, 255, 0.3);
}

#blackjack-screen .new-game:hover, 
#blackjack-screen .new-hand:hover {
    box-shadow: 0 0 10px rgba(176, 38, 255, 0.5);
    transform: translateY(-2px);
}

#blackjack-screen .bet-button {
    background: linear-gradient(145deg, #00ff9d, #4da6ff);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
    transition: all 0.3s ease;
    display: none;
    position: absolute;
    z-index: 10;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 15px;
}

#blackjack-screen .bet-button:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.8);
}

#blackjack-screen .bet-button.button-breathe {
    animation: buttonBreathe 2s infinite;
    border: 2px solid rgba(0, 255, 157, 0.5);
}

@keyframes buttonBreathe {
    0% { box-shadow: 0 0 10px rgba(0, 255, 157, 0.5); border-color: rgba(0, 255, 157, 0.5); }
    50% { box-shadow: 0 0 20px rgba(0, 255, 157, 0.8), 0 0 30px rgba(0, 255, 157, 0.4); border-color: rgba(0, 255, 157, 1); }
    100% { box-shadow: 0 0 10px rgba(0, 255, 157, 0.5); border-color: rgba(0, 255, 157, 0.5); }
}

@keyframes blueGlow {
    0% { box-shadow: 0 0 5px rgba(77, 166, 255, 0.5); }
    50% { box-shadow: 0 0 15px rgba(77, 166, 255, 0.8); border-color: #4da6ff; }
    100% { box-shadow: 0 0 5px rgba(77, 166, 255, 0.5); }
}

#blackjack-screen .blue-glow {
    animation: blueGlow 1.5s infinite;
    border: 2px solid #4da6ff !important;
}

@keyframes pulse {
    0% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.3); }
    50% { box-shadow: 0 0 15px rgba(255, 255, 255, 0.8); border-color: white; }
    100% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.3); }
}

#blackjack-screen .pulse {
    animation: pulse 1.5s infinite;
    border: 2px dashed rgba(255, 255, 255, 0.8) !important;
}

@keyframes slideIn {
    0% { transform: translateY(-20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

#blackjack-screen .slide-in {
    animation: slideIn 0.5s forwards;
}

@media (max-width: 1024px) {
    #blackjack-screen .game-container {
        width: 95%;
        height: 95vh;
    }

    #blackjack-screen .card {
        width: 80px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .blackjack-content {
        margin-top: 60px;
        padding: 15px;
    }
    
    .blackjack-header-title {
        font-size: 24px;
    }
    
    #blackjack-screen .controls {
        flex-wrap: wrap;
    }

    #blackjack-screen .btn {
        flex: 1;
        min-width: auto;
        padding: 12px 15px;
        font-size: 16px;
    }
    
    #blackjack-screen .chip {
        width: 60px;
        height: 60px;
        font-size: 18px;
    }
    
    #blackjack-screen .chip::before {
        width: 48px;
        height: 48px;
    }
    
    #blackjack-screen .bet-button {
        padding: 12px 25px;
        font-size: 18px;
        border-radius: 25px;
    }
    
    #blackjack-screen .new-hand, 
    #blackjack-screen .new-game {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    /* Mobile layout adjustments */
    #blackjack-screen .info-panel {
        flex-direction: column;
        width: 280px;
        padding: 10px;
        margin: 5px 0 0 5px;
        position: absolute;
        top: 5px;
        left: 5px;
        z-index: 100;
        background-color: rgba(0, 0, 0, 0.85);
        border: 1px solid rgba(77, 166, 255, 0.2);
        border-radius: 5px;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    #blackjack-screen .info-panel.collapsed {
        transform: translateY(-80%);
        opacity: 0.7;
    }

    #blackjack-screen .info-panel::after {
        content: "≡";
        position: absolute;
        bottom: -20px;
        right: 10px;
        background-color: rgba(0, 0, 0, 0.8);
        border: 1px solid rgba(77, 166, 255, 0.2);
        color: #4da6ff;
        width: 24px;
        height: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 0 0 4px 4px;
        cursor: pointer;
        font-size: 16px;
        text-shadow: 0 0 5px #4da6ff;
    }
    
    #blackjack-screen .balance {
        margin-bottom: 5px;
        font-size: 14px;
        text-shadow: 0 0 5px #4da6ff;
    }
    
    #blackjack-screen .history-log {
        max-height: 80px;
        width: 100%;
        border-top: 1px solid rgba(77, 166, 255, 0.2);
        padding-top: 3px;
        margin-top: 3px;
        transition: max-height 0.3s ease;
    }
    
    #blackjack-screen .history-item {
        width: 100%;
        font-size: 11px;
        margin: 1px 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    #blackjack-screen .game-container {
        height: 90vh;
    }
}

/* Add active states for touch devices */
@media (hover: none) {
    #blackjack-screen .btn:active, 
    #blackjack-screen .new-hand:active, 
    #blackjack-screen .new-game:active {
        transform: scale(0.95);
        box-shadow: 0 0 15px rgba(0, 255, 157, 0.7);
    }
    
    #blackjack-screen .chip:active {
        transform: scale(1.1);
    }
    
    #blackjack-screen .bet-button:active {
        transform: translateX(-50%) scale(0.95);
    }
    
    #blackjack-screen .touch-active {
        transition: transform 0.1s ease, box-shadow 0.1s ease;
    }
    
    #blackjack-screen .btn.touch-active, 
    #blackjack-screen .new-hand.touch-active, 
    #blackjack-screen .new-game.touch-active {
        transform: scale(0.95);
        box-shadow: 0 0 15px rgba(0, 255, 157, 0.7);
    }
    
    #blackjack-screen .bet-button.touch-active {
        transform: translateX(-50%) scale(0.95);
        box-shadow: 0 0 15px rgba(0, 255, 157, 0.8);
    }
}

/* Extra small mobile screens */
@media (max-width: 360px) {
    #blackjack-screen .info-panel {
        width: 240px;
    }

    #blackjack-screen .history-log {
        max-height: 65px;
    }

    #blackjack-screen .history-item {
        font-size: 10px;
        padding: 2px 4px;
    }
}

/* Estilos para pantalla Domino */
#domino-screen {
    position: relative;
    background: linear-gradient(135deg, #0d5d2e 0%, #1a7a3e 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#domino-screen .container {
    display: none !important;
}

.domino-header-title {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0;
    z-index: 100;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.domino-shather-coins {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 100;
}

.domino-content {
    width: 100%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 80px;
    padding: 20px;
}

.domino-game-container {
    width: 100%;
    max-width: 1200px;
    position: relative;
}

.domino-table {
    background: linear-gradient(145deg, #035c3d 0%, #052e20 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 0 30px rgba(0, 255, 157, 0.3), 0 0 60px rgba(176, 38, 255, 0.1);
    position: relative;
    min-height: 600px;
}

.domino-info-panel {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    color: white;
    font-weight: bold;
}

.domino-balance-display,
.domino-bet-display {
    font-size: 18px;
    text-shadow: 0 0 5px rgba(0, 255, 157, 0.5);
}

/* Área de apuesta */
.domino-bet-area {
    width: 200px;
    height: 120px;
    border: 3px dashed rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.domino-bet-area.highlight {
    border-color: #00ff9d;
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.5);
    background: rgba(0, 255, 157, 0.1);
}

.domino-bet-label {
    color: white;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
}

.domino-bet-chips {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: -10px;
}

.domino-bet-chip {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 10px;
    margin-top: -12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.domino-bet-button {
    background: linear-gradient(145deg, #00ff9d, #4da6ff);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 25px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.5);
    transition: all 0.3s ease;
    margin-top: 10px;
    font-size: 16px;
}

.domino-bet-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.8);
}

/* Mesa central */
.domino-board {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    min-height: 200px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.domino-chain-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    position: relative;
}

.domino-chain {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    min-height: 150px;
}

/* Layout horizontal (tradicional) */
.domino-chain-horizontal {
    flex-direction: row;
    flex-wrap: wrap;
}

/* Layout vertical */
.domino-chain-vertical {
    flex-direction: column;
    align-items: center;
}

.domino-chain-vertical .domino-tile {
    transform: rotate(90deg);
    margin: 8px 0;
    width: 35px;
    height: 70px;
}

/* Layout espiral */
.domino-chain-spiral {
    position: relative;
    width: 100%;
    height: 350px;
    display: block;
    min-height: 350px;
}

.domino-chain-spiral .domino-tile {
    position: absolute;
    z-index: 1;
    margin: 0;
}

.domino-chain-spiral .domino-tile.chain-start {
    z-index: 10;
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.8);
}

.domino-chain-spiral .domino-tile.chain-end {
    z-index: 10;
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.8);
}

/* Layout zigzag */
.domino-chain-zigzag {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
}

.domino-chain-zigzag .domino-tile {
    position: relative;
}

.domino-chain-empty {
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    font-style: italic;
    text-align: center;
    width: 100%;
}

/* Fichas de dominó mejoradas */
.domino-tile {
    width: 70px;
    height: 35px;
    background: linear-gradient(135deg, #fff 0%, #f5f5f5 100%);
    border: 2px solid #333;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.domino-tile::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #333;
    transform: translateX(-50%);
}

.domino-tile-left,
.domino-tile-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.domino-tile-divider {
    width: 2px;
    height: 100%;
    background: #333;
}

.domino-tile.playable {
    border-color: #00ff9d;
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.6);
    transform: scale(1.05);
}

.domino-tile:hover.playable {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 255, 157, 0.8);
}

.domino-back {
    background: linear-gradient(135deg, #555 0%, #333 100%) !important;
    cursor: default;
}

.domino-back .domino-tile-left,
.domino-back .domino-tile-right {
    color: #555;
}

/* Jugadores */
.domino-players-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.domino-player-seat {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.domino-player-info h4 {
    color: white;
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 700;
}

.domino-player-bet,
.domino-hand-count {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    margin: 4px 0;
}

.domino-hand {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    margin-top: 10px;
    min-height: 40px;
}

/* Área del jugador */
.domino-player-area {
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.domino-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 15px;
}

.domino-action-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.domino-action-btn:hover:not(:disabled) {
    background: rgba(0, 255, 157, 0.2);
    border-color: #00ff9d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 157, 0.4);
}

.domino-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Fichas para apostar */
.domino-chip-tray {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.domino-chip {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    cursor: grab;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
    border: 3px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.domino-chip::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.4);
}

.domino-chip:nth-child(1) { background: #e53935; }
.domino-chip:nth-child(2) { background: #43a047; }
.domino-chip:nth-child(3) { background: #1e88e5; }
.domino-chip:nth-child(4) { background: #212121; }
.domino-chip:nth-child(5) { background: #8e24aa; }

.domino-chip:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.domino-chip:active {
    cursor: grabbing;
}

/* Panel de acciones */
.domino-actions-panel {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.domino-new-game-btn,
.domino-reset-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.domino-new-game-btn:hover,
.domino-reset-btn:hover {
    background: rgba(176, 38, 255, 0.3);
    border-color: #b026ff;
    transform: translateY(-2px);
}

.domino-message {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin: 15px 0;
    padding: 12px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
    min-height: 20px;
}

/* Efectos especiales */
.domino-tile.chain-start {
    border-left: 4px solid #00ff9d;
}

.domino-tile.chain-end {
    border-right: 4px solid #00ff9d;
}

@media (max-width: 1024px) {
    .domino-players-grid {
        grid-template-columns: 1fr;
    }
    
    .domino-tile {
        width: 60px;
        height: 32px;
    }
    
    .domino-tile-left,
    .domino-tile-right {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .domino-content {
        margin-top: 60px;
        padding: 15px;
    }
    
    .domino-table {
        padding: 20px;
    }
    
    .domino-tile {
        width: 55px;
        height: 30px;
    }
    
    .domino-tile-left,
    .domino-tile-right {
        font-size: 14px;
    }
    
    .domino-controls {
        flex-direction: column;
    }
    
    .domino-action-btn {
        width: 100%;
    }
    
    .domino-chip {
        width: 45px;
        height: 45px;
        font-size: 12px;
    }
}

/* Estilos para pantalla Juega Coins */
#juega-coins-screen {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#juega-coins-screen .container {
    display: none !important;
}

.juega-coins-header-title {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0;
    z-index: 100;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.juega-coins-shather-coins {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 100;
}

.coins-label {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.coins-value {
    font-size: 18px;
    font-weight: 700;
    color: #f39c12;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.juega-coins-content {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 80px;
}

/* Estilos para la ruleta */
.ruleta-container {
    width: 100%;
    max-width: 500px;
    position: relative;
    margin: 20px 0;
}

.ruleta-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 500px;
    margin: 0 auto;
}

.ruleta {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ruleta svg {
    width: 100%;
    height: 100%;
    max-width: 500px;
    max-height: 500px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

.ruleta svg path {
    transition: fill 0.2s ease;
}

.ruleta svg path:hover {
    opacity: 0.9;
}

.ruleta svg text {
    pointer-events: none;
    user-select: none;
}

.ruleta-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid #000000;
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Contador de coins */
.coins-counter-container {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.coins-counter-label-hidden {
    display: none;
    visibility: hidden;
}

.coins-counter {
    background: rgba(255, 255, 255, 0.95);
    border: 4px solid #000000;
    border-radius: 15px;
    padding: 20px 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.coins-counter-value {
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Botones de la ruleta */
.ruleta-buttons {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 400px;
    justify-content: center;
}

.ruleta-button {
    flex: 1;
    padding: 15px 30px;
    border-radius: 25px;
    border: 3px solid #000000;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.girar-button {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.girar-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.5);
}

.girar-button.spinning {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    cursor: not-allowed;
}

.girar-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.retirar-button {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.retirar-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.5);
}

.retirar-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ruleta-button:active:not(:disabled) {
    transform: translateY(0);
}

/* Contador de Mano a Mano */
.mano-a-mano-counter {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 15px 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    border: 3px solid rgba(52, 152, 219, 0.5);
}

.mano-a-mano-counter span {
    font-size: 28px;
    font-weight: 900;
    color: #3498db;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 2px;
    font-family: 'Arial Black', Arial, sans-serif;
    -webkit-text-stroke: 1px rgba(52, 152, 219, 0.3);
}

.id-form {
    width: 100%;
}

/* Pantalla Gestor (Gestor1) */
.gestor-container {
    max-width: 100% !important;
    width: 100% !important;
    min-height: 100vh;
    padding: 0 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    position: relative;
    align-items: stretch;
}

.gestor-header-title {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0;
    z-index: 100;
}

@media (min-width: 769px) {
    .gestor-header-title {
        top: 20px;
        left: 40px;
        font-size: 24px;
    }
}

.gestor-header {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1000;
}

@media (min-width: 769px) {
    .gestor-header {
        top: 20px;
        right: 20px;
    }
}

/* Desplegable de períodos del Gestor */
.gestor-period-selector {
    position: relative;
    display: inline-block;
}

.gestor-period-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 140px;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gestor-period-btn:hover {
    background: white;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.gestor-period-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.gestor-period-selector.active .gestor-period-icon {
    transform: rotate(180deg);
}

.gestor-period-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 100%;
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.gestor-period-selector.active .gestor-period-dropdown {
    display: block;
}

.gestor-period-item {
    display: block;
    width: 100%;
    padding: 12px 18px;
    background: white;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.gestor-period-item:last-child {
    border-bottom: none;
}

.gestor-period-item:hover {
    background: #f5f5f5;
    color: #667eea;
}

.gestor-period-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
}

/* Tabs del Gestor */
.gestor-tabs-container {
    margin-top: 80px;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 20px;
}

@media (min-width: 769px) {
    .gestor-tabs-container {
        margin-top: 80px;
        padding: 0 40px;
    }
}

.gestor-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 0;
    justify-content: flex-start;
    width: 100%;
    padding: 0;
}

.gestor-tab-button {
    background: transparent;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    position: relative;
}

.gestor-tab-button:hover {
    color: white;
}

.gestor-tab-button.active {
    color: white;
    border-bottom-color: white;
}

.gestor-tab-button svg {
    width: 24px;
    height: 24px;
}

.gestor-tab-content {
    min-height: 300px;
    width: 100%;
    flex: 1;
}

.gestor-tab-panel {
    display: none;
}

.gestor-tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.gestor-tab-panel-content {
    padding: 20px;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    background: white;
    border-radius: 20px 20px 0 0;
    min-height: calc(100vh - 250px);
}

@media (min-width: 769px) {
    .gestor-tab-panel-content {
        padding: 30px;
        border-radius: 20px;
        min-height: auto;
    }
}

.gestor-tab-panel-content h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.gestor-tab-panel-content p {
    color: #666;
    line-height: 1.6;
}

/* Responsive para pantallas ID y Gestor */
@media (max-width: 768px) {
    .gestor-header-title {
        top: 15px;
        left: 15px;
        font-size: 20px;
    }
    
    .gestor-header {
        top: 15px;
        right: 15px;
    }
    
    .gestor-period-btn {
        padding: 8px 14px;
        font-size: 13px;
        min-width: 120px;
    }
    
    .gestor-tabs-container {
        margin-top: 70px;
        padding: 0 15px;
    }
    
    .gestor-tab-button {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .gestor-tab-button svg {
        width: 20px;
        height: 20px;
    }
    
    .gestor-tab-panel-content {
        padding: 15px;
    }
    
    .gestor-tab-panel-content h3 {
        font-size: 20px;
    }
}

/* Grid de Estadísticas del Gestor */
.gestor-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

@media (min-width: 769px) {
    .gestor-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

/* Tarjetas de Estadísticas */
.gestor-stat-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInUp 0.6s ease-out;
}

.gestor-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gestor-stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.gestor-stat-card:hover::before {
    opacity: 1;
}

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estadística 1: Visualizaciones - Estilo Azul con animación de pulso */
.gestor-stat-visualizaciones {
    border-left: 5px solid #3498db;
    animation-delay: 0.1s;
}

.gestor-stat-visualizaciones .gestor-stat-icon-wrapper {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    animation: pulseBlue 2s ease-in-out infinite;
}

.gestor-stat-visualizaciones .gestor-stat-value {
    color: #3498db;
    animation: countUp 1.5s ease-out;
}

@keyframes pulseBlue {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(52, 152, 219, 0);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Estadística 2: Like - Estilo Rojo con animación de latido */
.gestor-stat-like {
    border-left: 5px solid #e74c3c;
    animation-delay: 0.2s;
}

.gestor-stat-like .gestor-stat-icon-wrapper {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    animation: heartbeat 1.5s ease-in-out infinite;
}

.gestor-stat-like .gestor-stat-value {
    color: #e74c3c;
    animation: countUp 1.5s ease-out 0.2s both;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.1);
    }
    20%, 40% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

/* Estadística 3: Seguidores - Estilo Verde con animación de crecimiento */
.gestor-stat-seguidores {
    border-left: 5px solid #2ecc71;
    animation-delay: 0.3s;
}

.gestor-stat-seguidores .gestor-stat-icon-wrapper {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    animation: growShrink 2s ease-in-out infinite;
}

.gestor-stat-seguidores .gestor-stat-value {
    color: #2ecc71;
    animation: countUp 1.5s ease-out 0.3s both;
}

@keyframes growShrink {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.1) rotate(5deg);
    }
    50% {
        transform: scale(1.05) rotate(-5deg);
    }
    75% {
        transform: scale(1.1) rotate(3deg);
    }
}

/* Estadística 4: Comentarios - Estilo Púrpura con animación de onda */
.gestor-stat-comentarios {
    border-left: 5px solid #9b59b6;
    animation-delay: 0.4s;
}

.gestor-stat-comentarios .gestor-stat-icon-wrapper {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    animation: wave 2s ease-in-out infinite;
}

.gestor-stat-comentarios .gestor-stat-value {
    color: #9b59b6;
    animation: countUp 1.5s ease-out 0.4s both;
}

/* Estadística 5: Shather Coin - Estilo Dorado con animación de brillo */
.gestor-stat-coins {
    border-left: 5px solid #f39c12;
    animation-delay: 0.5s;
}

.gestor-stat-coins .gestor-stat-icon-wrapper {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    animation: shine 2s ease-in-out infinite;
}

.gestor-stat-coins .gestor-stat-value {
    color: #f39c12;
    animation: countUp 1.5s ease-out 0.5s both;
}

@keyframes shine {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(243, 156, 18, 0);
    }
}

@keyframes wave {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(-5deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(-5px) rotate(5deg);
    }
}

/* Icono wrapper */
.gestor-stat-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.gestor-stat-icon-wrapper svg {
    position: relative;
    z-index: 1;
}

/* Contenido de la estadística */
.gestor-stat-content {
    display: flex;
    flex-direction: column;
}

.gestor-stat-title {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gestor-stat-value {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1;
}

.gestor-stat-chart {
    width: 100%;
    height: 120px;
    position: relative;
}

.gestor-stat-chart canvas {
    max-width: 100%;
    max-height: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .gestor-stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .gestor-stat-card {
        padding: 20px;
    }
    
    .gestor-stat-icon-wrapper {
        width: 56px;
        height: 56px;
    }
    
    .gestor-stat-value {
        font-size: 28px;
    }
}

/* Nombre del usuario en el centro superior */
.gestor-user-name {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 24px;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.gestor-user-name span {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

/* Sección de Videos Populares */
.gestor-videos-section {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 0 20px 40px;
}

.gestor-video-space {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 3px solid transparent;
    background-clip: padding-box;
    position: relative;
}

/* Bordes de colores para cada espacio usando la paleta */
.gestor-video-space:nth-child(1) {
    border-color: #3498db;
    border-left-width: 5px;
}

.gestor-video-space:nth-child(2) {
    border-color: #e74c3c;
    border-left-width: 5px;
}

.gestor-video-space:nth-child(3) {
    border-color: #9b59b6;
    border-left-width: 5px;
}

.gestor-video-space-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 3px solid;
    position: relative;
}

/* Líneas de color en el header según el espacio */
.gestor-video-space:nth-child(1) .gestor-video-space-header {
    border-bottom-color: #3498db;
}

.gestor-video-space:nth-child(2) .gestor-video-space-header {
    border-bottom-color: #e74c3c;
}

.gestor-video-space:nth-child(3) .gestor-video-space-header {
    border-bottom-color: #9b59b6;
}

.gestor-video-space-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    padding-left: 12px;
    position: relative;
}

/* Colores de título según el espacio */
.gestor-video-space:nth-child(1) .gestor-video-space-title {
    color: #3498db;
}

.gestor-video-space:nth-child(2) .gestor-video-space-title {
    color: #e74c3c;
}

.gestor-video-space:nth-child(3) .gestor-video-space-title {
    color: #9b59b6;
}

/* Indicador de color antes del título */
.gestor-video-space-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    border-radius: 2px;
}

.gestor-video-space:nth-child(1) .gestor-video-space-title::before {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.gestor-video-space:nth-child(2) .gestor-video-space-title::before {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.gestor-video-space:nth-child(3) .gestor-video-space-title::before {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.gestor-video-space-user {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid #ddd;
}

.gestor-video-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gestor-video-loading {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 14px;
}

.gestor-video-item {
    display: flex;
    gap: 16px;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid #e0e0e0;
    border-left: 4px solid;
    position: relative;
}

/* Bordes de color izquierdo según el espacio padre */
.gestor-video-space:nth-child(1) .gestor-video-item {
    border-left-color: #3498db;
}

.gestor-video-space:nth-child(2) .gestor-video-item {
    border-left-color: #e74c3c;
}

.gestor-video-space:nth-child(3) .gestor-video-item {
    border-left-color: #9b59b6;
}

.gestor-video-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: #ccc;
}

/* Sombra de color sutil en hover según el espacio */
.gestor-video-space:nth-child(1) .gestor-video-item:hover {
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.2);
    border-left-color: #2980b9;
}

.gestor-video-space:nth-child(2) .gestor-video-item:hover {
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.2);
    border-left-color: #c0392b;
}

.gestor-video-space:nth-child(3) .gestor-video-item:hover {
    box-shadow: 0 6px 20px rgba(155, 89, 182, 0.2);
    border-left-color: #8e44ad;
}

.gestor-video-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gestor-video-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

.gestor-video-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gestor-video-stats {
    display: flex;
    gap: 20px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 2px solid #e8e8e8;
    position: relative;
}

/* Línea decorativa superior en las estadísticas */
.gestor-video-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 2px;
    border-radius: 1px;
}

.gestor-video-space:nth-child(1) .gestor-video-stats::before {
    background: linear-gradient(90deg, #3498db 0%, transparent 100%);
}

.gestor-video-space:nth-child(2) .gestor-video-stats::before {
    background: linear-gradient(90deg, #e74c3c 0%, transparent 100%);
}

.gestor-video-space:nth-child(3) .gestor-video-stats::before {
    background: linear-gradient(90deg, #9b59b6 0%, transparent 100%);
}

.gestor-video-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
}

.gestor-video-stat svg {
    width: 18px;
    height: 18px;
    color: #999;
}

.gestor-video-stat.views svg {
    color: #3498db;
}

.gestor-video-stat.likes svg {
    color: #e74c3c;
}

.gestor-video-stat.comments svg {
    color: #9b59b6;
}

.gestor-video-stat-value {
    font-weight: 600;
    color: #333;
}

.gestor-video-player {
    width: 200px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    flex-shrink: 0;
}

.gestor-video-player video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive para videos */
@media (max-width: 768px) {
    .gestor-video-item {
        flex-direction: column;
    }
    
    .gestor-video-player {
        width: 100%;
        height: 200px;
    }
    
    .gestor-user-name {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 10px auto;
        display: inline-block;
    }
    }
    
    .gestor-stat-chart {
        height: 100px;
    }
}

/* ==================== ESTILOS PARA TAB PUBLICAR ==================== */
/* Estilos para el tab de Publicaciones */
.publicaciones-tab-content {
    padding: 20px;
    max-width: 100%;
    overflow-y: auto;
}

.publicaciones-list-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.publicaciones-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    text-align: center;
}

.publicaciones-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.publicaciones-list .regular-post-item {
    width: 100%;
    max-width: 100%;
}

.publicaciones-list .loading-text,
.publicaciones-list .empty-message,
.publicaciones-list .error-message {
    text-align: center;
    color: white;
    font-size: 16px;
    padding: 40px 20px;
}

.publicaciones-list .error-message {
    color: #ff6b6b;
}

.publicar-content {
    position: relative;
    padding: 20px;
}

.publicaciones-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

/* Estilos para tab Diamantes */
.diamantes-tab-content {
    padding: 20px;
    max-width: 100%;
    overflow-y: auto;
    position: relative;
    min-height: calc(100vh - 200px);
}

.diamantes-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 80px;
}

@media (min-width: 1200px) {
    .diamantes-container {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.diamantes-box {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.diamantes-box-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.diamantes-lista {
    flex: 1;
    overflow-y: auto;
    max-height: 500px;
}

.diamantes-lista-item {
    padding: 12px;
    margin-bottom: 8px;
    background: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.diamantes-lista-item:hover {
    background: #e8e8e8;
    border-color: #667eea;
}

.diamantes-lista-item.selected {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.diamantes-lista-item.ganador {
    background: #4caf50;
    color: white;
}

.diamantes-lista-item.ganador:hover {
    background: #45a049;
}

.diamantes-lista-item p {
    margin: 4px 0;
    font-size: 14px;
}

.diamantes-lista-item .item-id {
    font-weight: 600;
}

.diamantes-info {
    flex: 1;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.diamantes-info-item {
    margin-bottom: 12px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #667eea;
}

.diamantes-info-item label {
    font-weight: 600;
    color: #666;
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    text-transform: uppercase;
}

.diamantes-info-item .value {
    font-size: 16px;
    color: #333;
}

.empty-text {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 40px 20px;
    font-style: italic;
}

.diamantes-action-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.diamantes-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.diamantes-action-btn:active {
    transform: translateY(0);
}

.diamantes-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.diamantes-action-btn.limpiar {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4);
}

.diamantes-action-btn.limpiar:hover {
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.6);
}

.publicacion-item {
    position: relative;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.publicacion-number {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.publicacion-box {
    flex: 1;
    background: white;
    border: 3px solid #667eea;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    min-height: 300px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.media-upload-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

.media-upload-area {
    position: relative;
}

.media-input {
    display: none;
}

.media-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border: 3px solid #667eea;
    border-radius: 12px;
    background: rgba(102, 126, 234, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    color: #667eea;
    text-align: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.media-upload-label:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #764ba2;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.media-upload-label svg {
    width: 48px;
    height: 48px;
}

.media-upload-label span {
    font-size: 14px;
    font-weight: 600;
}

.media-preview {
    display: none;
    margin-top: 15px;
    position: relative;
}

.media-preview.active {
    display: block;
}

.media-preview img,
.media-preview video {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
}

.media-preview .remove-media {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 20px;
    line-height: 1;
}

.media-preview .remove-media:hover {
    background: rgba(255, 0, 0, 0.8);
}

.publicacion-text {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: 3px solid #667eea;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    resize: vertical;
    box-sizing: border-box;
    margin-bottom: 60px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.publicacion-text:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.publicacion-actions {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.publicar-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.publicar-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.publicar-button:active {
    transform: translateY(0);
}

.publicar-button svg {
    width: 20px;
    height: 20px;
}

.generar-button {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

.generar-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.5);
}

.generar-button:active {
    transform: translateY(0);
}

.generar-button svg {
    width: 20px;
    height: 20px;
}

.generar-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.add-media-btn {
    width: 100%;
    padding: 12px;
    background: rgba(102, 126, 234, 0.1);
    border: 2px dashed #667eea;
    border-radius: 8px;
    color: #667eea;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.add-media-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: #764ba2;
}

.add-media-btn svg {
    width: 20px;
    height: 20px;
}

/* ==================== ESTILOS PARA RECUADRO DE AGRADECIMIENTO ==================== */
.agradecimiento-box {
    position: relative;
}

.agradecimiento-header {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e8e8e8;
}

.agradecimiento-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-label {
    font-weight: 600;
    color: #667eea;
    font-size: 14px;
}

.info-value {
    color: #666;
    font-size: 14px;
}

.agradecimiento-photo-area {
    margin-bottom: 20px;
    position: relative;
}

.agradecimiento-photo-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border: 3px solid #667eea;
    border-radius: 12px;
    background: rgba(102, 126, 234, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    color: #667eea;
    text-align: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.agradecimiento-photo-label:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #764ba2;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.agradecimiento-photo-label svg {
    width: 48px;
    height: 48px;
}

.agradecimiento-photo-label span {
    font-size: 14px;
    font-weight: 600;
}

.agradecimiento-text {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 3px solid #667eea;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #f9f9f9;
    box-sizing: border-box;
    margin-bottom: 60px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    white-space: pre-line;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

@media (min-width: 769px) {
    .publicacion-box {
        padding: 25px;
    }
    
    .publicacion-text {
        min-height: 200px;
    }
    
    .agradecimiento-text {
        min-height: 250px;
        font-size: 17px;
    }
}

/* ==================== ESTILOS POKER ==================== */

#poker-screen {
    position: relative;
    background: linear-gradient(135deg, #0d5d2e 0%, #1a7a3e 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#poker-screen .container {
    display: none !important;
}

.poker-header-title {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0;
    z-index: 100;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.poker-shather-coins {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 100;
}

.poker-content {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 80px;
    padding: 20px;
}

.poker-game-container-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.poker-gameboard {
    width: 100%;
    height: 60vh;
    min-height: 500px;
    max-height: 650px;
    margin: 0 auto;
    position: relative;
    border: 3px solid #d4af37;
    border-radius: 15px;
    background: linear-gradient(135deg, #0d5d2e 0%, #1a7a3e 100%);
    box-shadow: 0 0 30px rgba(0, 255, 157, 0.3), 0 0 60px rgba(176, 38, 255, 0.1);
    z-index: 0;
    flex-shrink: 0;
}

.poker-hud {
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
    color: #0f0;
    text-shadow: 0 0 8px #0f0;
    background: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 10px;
    color: white;
    font-weight: bold;
}

.poker-messages {
    text-align: center;
    margin: 15px 0;
    font-size: 16px;
    color: #0f0;
    text-shadow: 0 0 6px #0f0;
    background: rgba(0, 0, 0, 0.5);
    padding: 12px;
    border-radius: 10px;
    min-height: 50px;
    color: white;
}

.poker-totalbet {
    color: white;
    position: absolute;
    left: 50%;
    top: 5%;
    transform: translateX(-50%);
    font-size: 20px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.8);
    z-index: 10;
}

.poker-dealer {
    position: absolute;
    height: 18%;
    width: 50%;
    background: rgba(245, 245, 245, 0.2);
    border-radius: 10px;
    left: 50%;
    top: 30%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 10px;
    border: 2px solid rgba(212, 175, 55, 0.5);
}

.poker-dealercards {
    height: 100%;
    width: 16%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.poker-card-rendered {
    width: 100%;
    height: 100%;
    background: #fff;
    border: 2px solid #333;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    min-width: 50px;
    min-height: 70px;
}

.poker-player {
    color: white;
    font-weight: bold;
    position: absolute;
    height: 20%;
    width: 15%;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(212, 175, 55, 0.5);
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.poker-player-gamer {
    border: 3px solid #d4af37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
    background: rgba(0, 0, 0, 0.6);
}

#player0 {
    top: 5%;
    right: 10%;
}

#player1 {
    top: 45%;
    right: 5%;
}

#player2 {
    top: 70%;
    left: 50%;
    transform: translateX(-50%);
    width: 20%;
}

#player3 {
    top: 45%;
    left: 5%;
}

#player4 {
    top: 5%;
    left: 10%;
}

.poker-msg {
    position: absolute;
    background: white;
    color: black;
    font-weight: normal;
    font-size: 12px;
    border-radius: 20px;
    min-width: 60px;
    text-align: center;
    padding: 5px 10px;
    opacity: 0;
    z-index: 5;
}

.poker-msgpop {
    animation: pokerFadein 3.5s linear;
    animation-fill-mode: forwards;
}

.poker-msgshow {
    animation: pokerMsgshow 3.5s linear;
    animation-fill-mode: forwards;
}

.poker-msgright {
    top: -25%;
    left: -50%;
}

.poker-msgleft {
    top: -25%;
    right: -50%;
}

.poker-msggamer {
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
}

.poker-playercards {
    margin-top: 5px;
    height: 70%;
    width: 100%;
    text-align: center;
    background: rgba(185, 185, 185, 0.5);
    border-radius: 5px;
    padding: 5px;
    display: flex;
    gap: 5px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.poker-card-rendered {
    width: 45%;
    min-width: 40px;
    height: auto;
    aspect-ratio: 2/3;
    background: #fff;
    border: 2px solid #333;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.poker-card-value {
    font-size: 16px;
    font-weight: bold;
    color: #222;
}

.poker-card-suit {
    font-size: 24px;
}

.poker-playerfund {
    color: white;
    font-weight: bold;
    margin-top: 5px;
    font-size: 14px;
    text-shadow: 0 0 5px rgba(0, 255, 157, 0.5);
}

.poker-ctlbuttons {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    flex-shrink: 0;
}

.poker-start-btn {
    font-size: 20px;
    padding: 15px 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0f0 0%, #0d0 100%);
    color: #222;
    border: 3px solid #d4af37;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 0 15px #0f0, 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    min-width: 200px;
}

.poker-start-btn:hover {
    background: linear-gradient(135deg, #0d0 0%, #0b0 100%);
    transform: translateY(-3px);
    box-shadow: 0 0 20px #0f0, 0 6px 15px rgba(0, 0, 0, 0.4);
}

.poker-bet-controls-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 15px;
    border: 3px solid #d4af37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.poker-buttons-row {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.poker-action-btn {
    background: linear-gradient(135deg, #0f0 0%, #0d0 100%);
    color: #222;
    border: 2px solid #d4af37;
    border-radius: 10px;
    padding: 12px 25px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 0 8px #0f0, 0 3px 8px rgba(0, 0, 0, 0.3);
    text-shadow: 0 0 3px #fff;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 140px;
    flex: 1;
    max-width: 200px;
}

.poker-action-btn:hover {
    background: linear-gradient(135deg, #0d0 0%, #0b0 100%);
    transform: translateY(-3px);
    box-shadow: 0 0 12px #0f0, 0 5px 12px rgba(0, 0, 0, 0.4);
}

.poker-btn-fold {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    border-color: #ff6666;
    box-shadow: 0 0 8px #ff4444, 0 3px 8px rgba(0, 0, 0, 0.3);
}

.poker-btn-fold:hover {
    background: linear-gradient(135deg, #cc0000 0%, #990000 100%);
    box-shadow: 0 0 12px #ff4444, 0 5px 12px rgba(0, 0, 0, 0.4);
}

.poker-btn-call {
    background: linear-gradient(135deg, #0f0 0%, #0d0 100%);
}

.poker-btn-raise {
    background: linear-gradient(135deg, #ffaa00 0%, #ff8800 100%);
    border-color: #ffbb33;
    box-shadow: 0 0 8px #ffaa00, 0 3px 8px rgba(0, 0, 0, 0.3);
}

.poker-btn-raise:hover {
    background: linear-gradient(135deg, #ff8800 0%, #cc6600 100%);
    box-shadow: 0 0 12px #ffaa00, 0 5px 12px rgba(0, 0, 0, 0.4);
}

.poker-scalediv {
    width: 100%;
    max-width: 500px;
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    border-radius: 12px;
    border: 3px solid #d4af37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.poker-raise-header {
    text-align: center;
    color: white;
}

.poker-scale-value {
    color: #d4af37;
    font-weight: bold;
    font-size: 20px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
    margin-bottom: 5px;
}

.poker-scale-info {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.poker-slider-container {
    width: 100%;
    padding: 10px 0;
}

.poker-slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.poker-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
    border: 2px solid white;
}

.poker-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
    border: 2px solid white;
}

.poker-raise-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.poker-btn-confirm {
    background: linear-gradient(135deg, #0f0 0%, #0d0 100%);
    min-width: 180px;
}

.poker-btn-cancel {
    background: linear-gradient(135deg, #666 0%, #444 100%);
    border-color: #888;
    box-shadow: 0 0 8px #666, 0 3px 8px rgba(0, 0, 0, 0.3);
    min-width: 180px;
}

.poker-btn-cancel:hover {
    background: linear-gradient(135deg, #444 0%, #222 100%);
    box-shadow: 0 0 12px #666, 0 5px 12px rgba(0, 0, 0, 0.4);
}

.poker-reset-buttons-row {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.poker-btn-continue {
    background: linear-gradient(135deg, #0f0 0%, #0d0 100%);
    min-width: 160px;
}

.poker-btn-end {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    border-color: #ff6666;
    box-shadow: 0 0 8px #ff4444, 0 3px 8px rgba(0, 0, 0, 0.3);
    min-width: 160px;
}

.poker-btn-end:hover {
    background: linear-gradient(135deg, #cc0000 0%, #990000 100%);
    box-shadow: 0 0 12px #ff4444, 0 5px 12px rgba(0, 0, 0, 0.4);
}

.poker-gamemsg {
    position: absolute;
    height: auto;
    min-height: 150px;
    max-height: 300px;
    background: rgba(0, 0, 0, 0.95);
    width: 60%;
    max-width: 500px;
    border-radius: 15px;
    z-index: 200;
    color: white;
    margin: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid #d4af37;
    box-shadow: 0 0 30px rgba(212, 175, 55, 1);
    padding: 20px;
    animation: pokerMsgAppear 0.5s ease;
}

@keyframes pokerMsgAppear {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.poker-gamemsg.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

#gamemsgcon {
    width: 100%;
    font-size: 18px;
    color: #d4af37;
    padding: 15px;
    white-space: pre-wrap;
    text-align: center;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
    line-height: 1.6;
}

@keyframes pokerFadein {
    0% {
        opacity: 0;
        transform: translateY(0);
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes pokerMsgshow {
    0% {
        opacity: 0;
        transform: translateY(0);
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 1;
    }
}

.selectplayer {
    background: rgba(212, 175, 55, 0.3) !important;
    border: 2px solid #d4af37 !important;
}

.poker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999;
    text-align: center;
    color: #0f0;
    text-shadow: 0 0 8px #0f0;
}

.poker-overlay.hidden {
    display: none;
}

.poker-overlay p {
    font-size: 18px;
    max-width: 700px;
    margin: 15px;
    line-height: 1.6;
    color: white;
}

.poker-overlay-btn {
    margin-top: 20px;
    padding: 12px 24px;
    font-size: 18px;
    background: #0f0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 0 6px #0f0;
    color: #222;
    font-weight: bold;
    transition: all 0.3s ease;
}

.poker-overlay-btn:hover {
    background: #0d0;
    transform: translateY(-2px);
    box-shadow: 0 0 10px #0f0;
}

.poker-hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .poker-content {
        margin-top: 60px;
        padding: 10px;
    }
    
    .poker-game-container-wrapper {
        padding: 10px;
        gap: 15px;
    }
    
    .poker-gameboard {
        height: 50vh;
        min-height: 400px;
        max-height: 500px;
    }
    
    .poker-ctlbuttons {
        padding: 15px;
    }
    
    .poker-player {
        width: 18%;
        font-size: 12px;
    }
    
    #player2 {
        width: 25%;
    }
    
    .poker-card-rendered {
        min-width: 30px;
    }
    
    .poker-card-value {
        font-size: 12px;
    }
    
    .poker-card-suit {
        font-size: 18px;
    }
    
    .poker-action-btn {
        font-size: 14px;
        padding: 8px 16px;
        margin: 0 4px;
    }
    
    .poker-totalbet {
        font-size: 16px;
    }
    
    .poker-msg {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .poker-dealer {
        width: 60%;
        height: 15%;
    }
}
