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

:root {
    /* Fondo oscuro */
    --bg-primary: #000000f1; /* fondo layout color*/
    

    /* Texto */
    --text-primary: #ffffff; /* texto body. navs, titulos*/
    --text-secondary: #5cff00; /* texto panel limpieza/cards de ganancias,depositos,*/
    --text-muted: #ffffff; /* texto fondo formularios*/

    /* botones rojos */
    --red-primary: #ff0000;     /* botones rojos */
    --red-light: #ff3333;
    --red-dark: #cc0000;

    --purple-primary: #800080;   /* texto idcif o qr*/
    --purple-light: #b300b3;/* texto qr*/
    --purple-dark: #660066;

    
    /* paneles fondos */
    --surface-1: #1a0320; 
    --surface-2: #000000;/* color fondo placeholder rfc idcif */
    --surface-3: #262626;
   

    /* Sombras */
    --shadow-xs: 0 1px 3px rgba(245, 89, 17, 0.315);
    --shadow-sm: 0 1px 6px rgba(128, 0, 128, 0.15);
    --shadow-md: 0 4px 14px rgba(255, 0, 0, 0.25);
    --shadow-lg: 0 10px 25px rgba(128, 0, 128, 0.2);
    --shadow-xl: 0 20px 40px rgba(255, 0, 0, 0.15);

    /* Bordes */
    --border-light: rgba(38, 0, 255, 0.671); 
    --border-medium: rgba(128, 0, 128, 0.4);
  

    /* Transiciones */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Border radius */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 50px;

    /* Espaciado */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
}

/* ===========================================
   RESET Y BASE OSCUROS
   =========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    font-weight: 400;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface-2);
}

::-webkit-scrollbar-thumb {
    background: var(--purple-primary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--purple-light);
}

/* ===========================================
 *  HEADER Y NAVEGACIÓN NAVIDEÑOS
 *  =========================================== */
header {
    background: #0c1a0c; /* Verde oscuro base */
    background: linear-gradient(100deg,
                                rgb(0, 0, 0) 0%,           /* Verde oscuro */
                                rgb(109, 7, 87) 51%,          /* Rojo oscuro */
                                rgba(0, 0, 0, 0.8) 100%       /* Verde navideño */
    ) !important;
    padding: var(--space-lg) 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--border-medium) !important;
}

header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(214, 10, 61, 0.5); /* Brillo verde */
    position: relative;
}

header h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg,
                                var(--red-primary),
                                var(--green-primary)
    ) !important;
    border-radius: var(--radius-full);
}

nav {
   background: #000000; /* Negro base */
   background: linear-gradient(100deg,
                rgb(0, 0, 0) 0%,           /* Negro puro */
                rgb(80, 18, 80) 51%,      /* Morado oscuro */
                rgba(0, 0, 0, 0.8) 100%      /* Rojo brillante */
    ) !important;
    padding: var(--space-md) 0;
    text-align: center;
    border-bottom: 2px solid var(--border-light) !important;
    box-shadow: 0 4px 12px rgba(99, 9, 58, 0.2) !important;
}

nav a {
    color: var(--text-primary) !important;
    text-decoration: none;
    margin: 0 var(--space-lg);
    font-weight: 500;
    font-size: 1rem;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    display: inline-block;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
                                transparent,
                                rgba(99, 15, 85, 0.3),  /* Verde suave */
                                transparent
    ) !important;
    transition: left 0.5s ease;
    z-index: -1;
}

nav a:hover::before {
    left: 100%;
}

nav a:hover {
    color: white !important;
    transform: translateY(-2px);
    border-color: var(--green-primary) !important;
    box-shadow: 0 4px 12px rgba(155, 37, 43, 0.3),
    inset 0 0 15px rgba(145, 42, 56, 0.2) !important;
    background: rgba(145, 42, 99, 0.1) !important;
}

/* Efecto activo/actual para enlace */
nav a.active {
    background: linear-gradient(135deg,
                                var(--green-primary),
                                var(--red-primary)
    ) !important;
    color: white !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(214, 40, 40, 0.4) !important;
}

/* Indicador de enlace activo */
nav a.active::after {
    content: '🎄';
    margin-left: 5px;
    font-size: 0.9em;
}
/* ===========================================
   LAYOUT PRINCIPAL OSCURO
   =========================================== */
main {
    padding: var(--space-2xl) var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 200px);
}

.container,
.login-container,
.generator-container,
.constancias-container,
.cleanup-container,
.admin-container {
    background: var(--surface-1);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    margin: var(--space-xl) auto;
    border: 1px solid var(--border-light);
    max-width: 1000px;
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--purple-gradient);
}

.container:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
    transition: var(--transition-normal);
}

/* ===========================================
   TIPOGRAFÍA OSCURA
   =========================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

h2 {
    font-size: 1.875rem;
    margin-bottom: var(--space-lg);
    color: var(--purple-dark);
    position: relative;
    padding-bottom: var(--space-sm);
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    color: var(--purple-primary);
}

/* ===========================================
   FORMULARIOS OSCUROS
   =========================================== */
.form-group {
    margin-bottom: var(--space-xl);
    position: relative;
}

label {
    display: block;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
    width: 100%;
    max-width: 500px;
    padding: var(--space-md) var(--space-lg);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--surface-2);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-fast);
    font-weight: 400;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--purple-primary);
    box-shadow: 0 0 0 3px rgba(107, 115, 255, 0.1);
    background: var(--surface-1);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

/* Validación de campos */
input.valid {
    border-color: var(--green-primary);
    box-shadow: 0 0 0 3px rgba(59, 241, 4, 0.671);
}

input.invalid {
    border-color: var(--red-primary);
    box-shadow: 0 0 0 3px rgba(245, 101, 101, 0.1);
}

/* Iconos de validación */
.form-group {
    position: relative;
}

.valid-icon,
.invalid-icon {
    position: absolute;
    right: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    margin-top: 14px;
}

.valid-icon {
    color: var(--green-primary);
}

.invalid-icon {
    color: var(--red-primary);
}

/* ===========================================
   BOTONES MEJORADOS CON COLORES VIBRANTES
   =========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-fast);
    margin: var(--space-xs);
    text-align: center;
    user-select: none;
    position: relative;
    overflow: hidden;
    min-height: 44px;
    box-shadow: var(--shadow-sm);
}

/* Efecto de brillo en hover */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.btn:hover::before {
    left: 100%;
}

.btn span,
.btn .btn-text {
    position: relative;
    z-index: 2;
}

/* Botón primario - Morado vibrante */
.btn,
.btn-primary {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 50%, #6D28D9 100%);
    color: white;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.btn:hover,
.btn-primary:hover {
    background: linear-gradient(135deg, #A78BFA 0%, #8B5CF6 50%, #7C3AED 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.btn:active,
.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

/* Botón secundario - Contorno morado */
.btn-secondary {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(124, 58, 237, 0.05) 100%);
    color: #A78BFA;
    border: 2px solid #8B5CF6;
    font-weight: 600;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

/* Botón de éxito - Verde vibrante */
.btn-success {
    background: linear-gradient(135deg, #10B981 0%, #059669 50%, #047857 100%);
    color: white;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #34D399 0%, #10B981 50%, #059669 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* Botón de peligro - Rojo vibrante */
.btn-danger {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 50%, #B91C1C 100%);
    color: white;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #F87171 0%, #EF4444 50%, #DC2626 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

/* Botón de advertencia - Amarillo/Naranja vibrante */
.btn-warning {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 50%, #B45309 100%);
    color: white;
    border: 1px solid rgba(245, 158, 11, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 50%, #D97706 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

/* Botón info - Azul vibrante */
.btn-info {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 50%, #1D4ED8 100%);
    color: white;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.btn-info:hover {
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 50%, #2563EB 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Tamaños de botones */
.btn-sm {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.75rem;
    min-height: 36px;
}

.btn-lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1rem;
    min-height: 56px;
    font-weight: 700;
}

/* Botones especiales con colores únicos */
.btn-danger-all {
    background: linear-gradient(135deg, #DC2626 0%, #991B1B 50%, #7F1D1D 100%);
    color: white;
    font-weight: 700;
    border: 1px solid rgba(220, 38, 38, 0.4);
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.3);
}

.btn-danger-all:hover {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 50%, #991B1B 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.5);
}

.btn-nuclear {
    background: linear-gradient(135deg, #7F1D1D 0%, #450A0A 50%, #1F2937 100%);
    color: #FECACA;
    font-weight: 700;
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1rem;
    border: 2px solid #DC2626;
    text-shadow: 0 0 10px rgba(254, 202, 202, 0.5);
    box-shadow:
        0 0 20px rgba(220, 38, 38, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-nuclear:hover {
    background: linear-gradient(135deg, #991B1B 0%, #7F1D1D 50%, #450A0A 100%);
    color: white;
    transform: scale(1.05) translateY(-3px);
    box-shadow:
        0 0 35px rgba(220, 38, 38, 0.6),
        0 10px 30px rgba(220, 38, 38, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Botón clean/limpiar - Naranja vibrante */
.btn-clean {
    background: linear-gradient(135deg, #FB923C 0%, #F97316 50%, #EA580C 100%);
    color: white;
    border: 1px solid rgba(251, 146, 60, 0.3);
    font-weight: 600;
}

.btn-clean:hover {
    background: linear-gradient(135deg, #FED7AA 0%, #FB923C 50%, #F97316 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(251, 146, 60, 0.4);
}

/* Botón deshabilitado */
.btn:disabled {
    background: linear-gradient(135deg, #4B5563 0%, #374151 100%) !important;
    color: #9CA3AF !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    border-color: #374151 !important;
}

.btn:disabled::before {
    display: none;
}

/* Botones con iconos */
.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.btn-icon .icon {
    font-size: 1rem;
    font-weight: normal;
}

/* Variantes de colores adicionales */
.btn-purple {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    color: white;
}

.btn-purple:hover {
    background: linear-gradient(135deg, #A78BFA 0%, #8B5CF6 100%);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.btn-green {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
}

.btn-green:hover {
    background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-red {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
}

.btn-red:hover {
    background: linear-gradient(135deg, #F87171 0%, #EF4444 100%);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.btn-blue {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
}

.btn-blue:hover {
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-yellow {
    background: linear-gradient(135deg, #EAB308 0%, #CA8A04 100%);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-yellow:hover {
    background: linear-gradient(135deg, #FDE047 0%, #EAB308 100%);
    box-shadow: 0 8px 25px rgba(97, 11, 114, 0.4);
}

/* Botones outline con colores */
.btn-outline-purple {
    background: rgba(139, 92, 246, 0.1);
    color: #A78BFA;
    border: 2px solid #8B5CF6;
}

.btn-outline-purple:hover {
    background: #8B5CF6;
    color: white;
}

.btn-outline-green {
    background: rgba(16, 185, 129, 0.1);
    color: #34D399;
    border: 2px solid #10B981;
}

.btn-outline-green:hover {
    background: #10B981;
    color: white;
}

.btn-outline-red {
    background: rgba(239, 68, 68, 0.1);
    color: #F87171;
    border: 2px solid #EF4444;
}

.btn-outline-red:hover {
    background: #EF4444;
    color: white;
}

/* Botones con efectos especiales */
.btn-glow {
    box-shadow:
        0 0 10px rgba(139, 92, 246, 0.3),
        0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-glow:hover {
    box-shadow:
        0 0 20px rgba(139, 92, 246, 0.5),
        0 8px 25px rgba(139, 92, 246, 0.3),
        0 12px 35px rgba(0, 0, 0, 0.2);
}

/* Botones con gradientes animados */
.btn-animated {
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Botones específicos del sistema */
.btn-generar {
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 50%, #4F46E5 100%);
    color: white;
    font-weight: 700;
    box-shadow:
        0 4px 15px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-generar:hover {
    background: linear-gradient(135deg, #A78BFA 0%, #8B5CF6 50%, #6366F1 100%);
    transform: translateY(-4px);
    box-shadow:
        0 12px 30px rgba(139, 92, 246, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-limpiar {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 50%, #DC2626 100%);
    color: white;
    font-weight: 600;
}

.btn-limpiar:hover {
    background: linear-gradient(135deg, #FB923C 0%, #F97316 50%, #EA580C 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

.btn-ver {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 50%, #1D4ED8 100%);
    color: white;
    font-weight: 600;
}

.btn-ver:hover {
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 50%, #2563EB 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-descargar {
    background: linear-gradient(135deg, #10B981 0%, #059669 50%, #047857 100%);
    color: white;
    font-weight: 600;
}

.btn-descargar:hover {
    background: linear-gradient(135deg, #34D399 0%, #10B981 50%, #059669 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Botón eliminar individual */
.btn-delete-single {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: var(--space-xs) var(--space-sm);
    cursor: pointer;
    font-size: 0.75rem;
    transition: var(--transition-fast);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-delete-single:hover {
    background: linear-gradient(135deg, #F87171 0%, #EF4444 100%);
    transform: scale(1.1) translateY(-1px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.5);
}

/* Grupos de botones */
.btn-group {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.btn-group .btn {
    margin: 0;
}

.btn-group .btn:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.btn-group .btn:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.btn-group .btn:not(:first-child):not(:last-child) {
    border-radius: 0;
}

/* Estados de carga en botones */
.btn.loading {
    position: relative;
    pointer-events: none;
    color: greenyellow;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Botones flotantes */
.btn-float {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.btn-float:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

/* ===========================================
   RESPONSIVE PARA BOTONES
   =========================================== */
@media (max-width: 768px) {
    .btn {
        width: 100%;
        padding: var(--space-lg);
        margin: var(--space-xs) 0;
        font-size: 0.875rem;
        justify-content: center;
        min-height: 48px;
    }

    .btn-sm {
        padding: var(--space-md);
        font-size: 0.75rem;
        min-height: 40px;
    }

    .btn-lg {
        padding: var(--space-xl);
        font-size: 1rem;
        min-height: 56px;
    }

    /* Grid de botones en móvil */
    .btn-group {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .btn-group .btn {
        width: 100%;
        border-radius: var(--radius-md) !important;
    }

    /* Botones flotantes en móvil */
    .btn-float {
        width: 48px;
        height: 48px;
        bottom: var(--space-lg);
        right: var(--space-lg);
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: var(--space-md);
        font-size: 0.75rem;
        min-height: 44px;
    }

    .btn-sm {
        padding: var(--space-sm);
        font-size: 0.7rem;
        min-height: 36px;
    }

    .btn-nuclear {
        font-size: 0.875rem;
        padding: var(--space-md) var(--space-lg);
    }

    .btn-float {
        width: 44px;
        height: 44px;
        font-size: 1.125rem;
    }
}

/* ===========================================
   ANIMACIONES ESPECIALES PARA BOTONES
   =========================================== */

/* Pulso para botones importantes */
@keyframes btnPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
    }
}

.btn-pulse {
    animation: btnPulse 2s ease-in-out infinite;
}

/* Efecto de ondas al hacer click */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.btn-ripple:active::after {
    width: 200px;
    height: 200px;
}


/* ===========================================
   PANELES DE CRÉDITOS OSCUROS
   =========================================== */
.credits-panel {
    background: linear-gradient(135deg, var(--surface-1) 0%, var(--surface-2) 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-2xl);
    position: relative;
    overflow: hidden;
}

.credits-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--purple-gradient);
}

.last-deposit-compact {
    background: linear-gradient(135deg, var(--surface-1) 0%, var(--surface-2) 100%);
    border: 1px solid var(--green-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-2xl);
    position: relative;
    overflow: hidden;
}

.last-deposit-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--green-gradient);
}

.panel-title {
    margin: 0 0 var(--space-lg) 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--purple-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.credits-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.credits-info span {
    background: var(--surface-1);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--purple-primary);
    transition: var(--transition-fast);
}

.credits-info span:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.credits-available {
    border-left-color: var(--green-primary);
    color: var(--green-light);
}

.credits-used {
    border-left-color: var(--purple-primary);
    color: var(--purple-light);
}

.credits-server {
    border-left-color: var(--blue-primary);
    color: var(--blue-light);
}

/* Estados de créditos */
.status-good {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.2) 0%, rgba(104, 211, 145, 0.1) 100%);
    color: var(--green-light);
    border: 1px solid var(--green-primary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    display: inline-block;
    font-weight: 500;
}

.status-warning {
    background: linear-gradient(135deg, rgba(237, 137, 54, 0.2) 0%, rgba(246, 173, 85, 0.1) 100%);
    color: var(--yellow-light);
    border: 1px solid var(--yellow-primary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    display: inline-block;
    font-weight: 500;
}

.status-error {
    background: linear-gradient(135deg, rgba(245, 101, 101, 0.2) 0%, rgba(252, 129, 129, 0.1) 100%);
    color: var(--red-light);
    border: 1px solid var(--red-primary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    display: inline-block;
    font-weight: 500;
}

/* ===========================================
   PANEL DE LIMPIEZA OSCURO
   =========================================== */
.server-section {
    background: linear-gradient(135deg, var(--surface-1) 0%, var(--surface-2) 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-2xl);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.server-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--purple-gradient);
}

.server-section h3 {
    margin: 0 0 var(--space-lg) 0;
    color: var(--purple-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.files-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.files-info span {
    background: var(--surface-2);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--green-light);
    text-align: center;
    box-shadow: var(--shadow-xs);
    border-left: 3px solid var(--green-primary);
}

.actions {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.files-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--surface-2);
    box-shadow: var(--shadow-xs);
}

.file-item {
    display: grid;
    grid-template-columns: 40px 1fr 120px 80px 50px;
    gap: var(--space-md);
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-light);
    align-items: center;
    transition: var(--transition-fast);
    position: relative;
}

.file-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--purple-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.file-item:hover::before {
    transform: scaleY(1);
}

.file-item:hover {
    background: var(--surface-1);
    transform: translateX(5px);
}

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

.file-name {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.875rem;
}

.file-date,
.file-size {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 400;
}

/* Checkbox moderno oscuro */
input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-medium);
    border-radius: var(--radius-xs);
    background: var(--surface-2);
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
}

input[type="checkbox"]:checked {
    background: var(--purple-gradient);
    border-color: var(--purple-primary);
}

input[type="checkbox"]:checked::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

input[type="checkbox"]:hover {
    border-color: var(--purple-primary);
    box-shadow: 0 0 0 3px rgba(107, 115, 255, 0.1);
}

.btn-delete-single {
    background: var(--red-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: var(--space-xs) var(--space-sm);
    cursor: pointer;
    font-size: 0.75rem;
    transition: var(--transition-fast);
    font-weight: 500;
}

.btn-delete-single:hover {
    background: var(--red-light);
    transform: scale(1.05);
}

/* ===========================================
   ZONA PELIGROSA OSCURA
   =========================================== */
.global-actions {
    text-align: center;
    padding: var(--space-2xl);
    background: linear-gradient(135deg, rgba(245, 101, 101, 0.1) 0%, rgba(229, 62, 62, 0.05) 100%);
    border: 2px solid var(--red-primary);
    border-radius: var(--radius-lg);
    margin-top: var(--space-2xl);
    position: relative;
    overflow: hidden;
}

.global-actions::before {
    content: "⚠️ ZONA PELIGROSA ⚠️";
    display: block;
    font-weight: 700;
    color: var(--red-light);
    margin-bottom: var(--space-lg);
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: dangerPulse 2s ease-in-out infinite;
}

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

.global-actions::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 101, 101, 0.1), transparent);
    animation: dangerSweep 3s linear infinite;
}

@keyframes dangerSweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ===========================================
   TABLAS OSCURAS
   =========================================== */
.ganancias-table,
.constancias-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface-1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    margin: 2rem 0;
}

.ganancias-table thead th,
.constancias-table thead th {
    background: var(--surface-2);
    color: var(--text-primary);
    padding: 1.1rem 1.4rem;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    text-align: left;
    border-bottom: 2px solid var(--border-subtle);
}

.ganancias-table tbody td,
.constancias-table tbody td {
    padding: 1.1rem 1.4rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.18s ease;
}

.ganancias-table tbody tr:last-child td,
.constancias-table tbody tr:last-child td {
    border-bottom: none;
}

.ganancias-table tbody tr:hover,
.constancias-table tbody tr:hover {
    background: var(--surface-hover);
    /* transform: translateX(4px); */ /* opcional, queda interesante */
}

.ganancias-table tbody tr:hover td,
.constancias-table tbody tr:hover td {
    color: var(--text-primary);
}
/* ===========================================
   CARDS Y ESTADÍSTICAS OSCUROS
   =========================================== */
.ganancia-card,
.stat-card {
    background: linear-gradient(135deg, var(--surface-1) 0%, var(--surface-2) 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.ganancia-card::before,
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--purple-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.ganancia-card:hover::before,
.stat-card:hover::before {
    transform: scaleX(1);
}

.ganancia-card:hover,
.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--purple-light);
}

.card-icon {
    font-size: 2rem;
    color: var(--purple-light);
    margin-bottom: var(--space-md);
}

.card-content {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.card-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--purple-light);
    line-height: 1.2;
}

/* ===========================================
   ESTADOS Y MENSAJES OSCUROS
   =========================================== */
.status {
    margin: var(--space-lg) 0;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    position: relative;
    border-left: 4px solid;
    box-shadow: var(--shadow-sm);
}

.status.success {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.2) 0%, rgba(104, 211, 145, 0.1) 100%);
    color: var(--green-light);
    border-left-color: var(--green-primary);
}

.status.error {
    background: linear-gradient(135deg, rgba(245, 101, 101, 0.2) 0%, rgba(252, 129, 129, 0.1) 100%);
    color: var(--red-light);
    border-left-color: var(--red-primary);
}

.status.warning {
    background: linear-gradient(135deg, rgba(237, 137, 54, 0.2) 0%, rgba(246, 173, 85, 0.1) 100%);
    color: var(--yellow-light);
    border-left-color: var(--yellow-primary);
}

.status.info {
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.2) 0%, rgba(99, 179, 237, 0.1) 100%);
    color: var(--blue-light);
    border-left-color: var(--blue-primary);
}

/* ===========================================
   BOTONES DE ACCIÓN EN TABLAS OSCUROS
   =========================================== */
.table-action {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.75rem;
    transition: var(--transition-fast);
    margin-right: var(--space-xs);
    border: 1px solid;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table-action.view {
    background: rgba(124, 58, 237, 0.2);
    color: var(--purple-light);
    border-color: var(--purple-primary);
}

.table-action.download {
    background: rgba(72, 187, 120, 0.2);
    color: var(--green-light);
    border-color: var(--green-primary);
}

.table-action:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-xs);
}

.table-action.view:hover {
    background: var(--purple-primary);
    color: white;
}

.table-action.download:hover {
    background: var(--green-primary);
    color: white;
}

/* ===========================================
   ACCIONES EN CELDAS OSCURAS
   =========================================== */
.acciones-cell a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.75rem;
    transition: var(--transition-fast);
    margin-right: var(--space-xs);
    border: 1px solid;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.acciones-cell a.btn-ver {
    background: rgba(124, 58, 237, 0.2);
    color: var(--purple-light);
    border-color: var(--purple-primary);
}

.acciones-cell a.btn-descargar {
    background: rgba(72, 187, 120, 0.2);
    color: var(--green-light);
    border-color: var(--green-primary);
}

.acciones-cell a.btn-ver:hover {
    background: var(--purple-primary);
    color: white;
    transform: translateY(-1px);
}

.acciones-cell a.btn-descargar:hover {
    background: var(--green-primary);
    color: white;
    transform: translateY(-1px);
}

/* ===========================================
   DEPÓSITOS ADMIN OSCUROS
   =========================================== */
.deposits-admin {
    background: linear-gradient(135deg, var(--surface-1) 0%, var(--surface-2) 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin: var(--space-xl) 0;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.deposits-admin::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--green-gradient);
}

.deposit-admin-item {
    background: var(--surface-2);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    transition: var(--transition-fast);
    box-shadow: var(--shadow-xs);
}

.deposit-admin-item:hover {
    background: var(--surface-1);
    border-color: var(--green-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.deposit-admin-info {
    display: flex;
    gap: var(--space-md);
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-sm);
}

.deposit-admin-amount {
    font-weight: 700;
    color: var(--green-light);
    background: rgba(72, 187, 120, 0.2);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    border: 1px solid var(--green-primary);
    font-size: 0.875rem;
}

.deposit-admin-credits {
    color: var(--purple-light);
    font-weight: 600;
    background: rgba(124, 58, 237, 0.2);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    border: 1px solid var(--purple-primary);
    font-size: 0.875rem;
}

.deposit-admin-note {
    color: var(--text-secondary);
    font-style: italic;
    background: var(--surface-3);
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--yellow-primary);
    flex: 1;
    min-width: 200px;
    font-size: 0.875rem;
}

.deposit-admin-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    background: var(--surface-3);
    border-radius: var(--radius-sm);
    display: inline-block;
}

/* ===========================================
   SPINNER Y LOADING OSCUROS
   =========================================== */
.spinner {
    border: 3px solid var(--surface-3);
    border-top: 3px solid var(--purple-primary);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    animation: spin 1s linear infinite;
    margin: var(--space-lg) auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading overlay oscuro */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

/* ===========================================
   ELEMENTOS ADICIONALES OSCUROS
   =========================================== */

/* Resumen y estadísticas */
.resumen-constancias {
    background: linear-gradient(135deg, var(--surface-1) 0%, var(--surface-2) 100%);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    margin: var(--space-xl) auto;
    text-align: center;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.resumen-constancias::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--purple-gradient);
}

.resumen-constancias h2 {
    font-weight: 700;
    color: var(--purple-light);
    margin-bottom: var(--space-xl);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.resumen-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.titulo-resumen {
    background: linear-gradient(135deg, var(--surface-1) 0%, var(--surface-2) 100%);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--space-xl);
    text-align: center;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.titulo-resumen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--purple-gradient);
}

.titulo-resumen h2 {
    font-weight: 700;
    color: var(--purple-light);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}



/* Cards de ganancias */
.ganancias-section {
    max-width: 1000px;
    margin: var(--space-xl) auto;
    background: linear-gradient(135deg, var(--surface-1) 0%, var(--surface-2) 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.ganancias-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--purple-gradient);
}

.ganancias-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

/* Alertas flotantes oscuras */
.alert-float {
    position: fixed;
    top: var(--space-xl);
    right: var(--space-xl);
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    z-index: 2000;
    transition: var(--transition-normal);
    max-width: 350px;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid;
}

.alert-float.success {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.95) 0%, rgba(104, 211, 145, 0.9) 100%);
    color: white;
    border-left-color: var(--green-dark);
}

.alert-float.error {
    background: linear-gradient(135deg, rgba(245, 101, 101, 0.95) 0%, rgba(252, 129, 129, 0.9) 100%);
    color: white;
    border-left-color: var(--red-dark);
}

.alert-float.warning {
    background: linear-gradient(135deg, rgba(237, 137, 54, 0.95) 0%, rgba(246, 173, 85, 0.9) 100%);
    color: white;
    border-left-color: var(--yellow-dark);
}

/* Modos de validación oscuros */
.mode-selector {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    justify-content: center;
    flex-wrap: wrap;
}

.mode-btn {
    padding: var(--space-md) var(--space-xl);
    border: 2px solid var(--purple-primary);
    background: transparent;
    color: var(--purple-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 600;
    font-family: inherit;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mode-btn.active {
    background: var(--purple-gradient);
    color: white;
    border-color: var(--purple-primary);
}

.mode-btn:hover {
    background: var(--purple-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Validación de resultados oscura */
.validation-result {
    margin: var(--space-lg) 0;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border-left: 4px solid;
    box-shadow: var(--shadow-sm);
}

.validation-result .success {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.2) 0%, rgba(104, 211, 145, 0.1) 100%);
    color: var(--green-light);
    border-left-color: var(--green-primary);
}

.validation-result .error {
    background: linear-gradient(135deg, rgba(245, 101, 101, 0.2) 0%, rgba(252, 129, 129, 0.1) 100%);
    color: var(--red-light);
    border-left-color: var(--red-primary);
}

.validation-result .info {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(159, 122, 234, 0.1) 100%);
    color: var(--purple-light);
    border-left-color: var(--purple-primary);
}

/* Textarea oscuro */
textarea {
    width: 100%;
    min-height: 150px;
    padding: var(--space-lg);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--surface-2);
    color: var(--text-primary);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.875rem;
    resize: vertical;
    transition: var(--transition-fast);
    line-height: 1.5;
}

textarea:focus {
    outline: none;
    border-color: var(--purple-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* Botones de descarga */
.download-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-top: var(--space-lg);
    flex-wrap: wrap;
}

/* HR separador */
hr {
    border: none;
    height: 2px;
    background: var(--purple-gradient);
    margin: var(--space-2xl) 0;
    border-radius: var(--radius-full);
}

/* ===========================================
   NAVEGACIÓN MÓVIL OSCURA
   =========================================== */

/* Botón hamburguesa oscuro */
.mobile-nav-toggle {
    display: none;
    position: fixed;
    top: var(--space-lg);
    right: var(--space-lg);
    z-index: 1001;
    background: var(--purple-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: var(--space-md);
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-toggle:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Overlay oscuro */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* ===========================================
   UTILIDADES
   =========================================== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-green {
    color: var(--green-light);
}

.text-red {
    color: var(--red-light);
}

.text-yellow {
    color: var(--yellow-light);
}

.text-purple {
    color: var(--purple-light);
}

.text-blue {
    color: var(--blue-light);
}

.fw-light {
    font-weight: 300;
}

.fw-normal {
    font-weight: 400;
}

.fw-medium {
    font-weight: 500;
}

.fw-semibold {
    font-weight: 600;
}

.fw-bold {
    font-weight: 700;
}

/* ===========================================
   FOOTER OSCURO
   =========================================== */
footer {
    text-align: center;
    padding: var(--space-2xl);
    background: linear-gradient(135deg, var(--surface-1) 0%, var(--surface-2) 100%);
    color: var(--purple-light);
    border-top: 1px solid var(--border-light);
    margin-top: var(--space-2xl);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--purple-gradient);
}

/* ===========================================
   RESPONSIVE OSCURO
   =========================================== */
@media (max-width: 768px) {
    /* Mostrar navegación móvil */
    .mobile-nav-toggle {
        display: flex;
    }

    /* Header móvil */
    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        padding: var(--space-lg) 0;
        z-index: 1000;
    }

    header h1 {
        font-size: 1.5rem;
        margin-right: 60px;
    }

    /* Navegación móvil oscura */
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--surface-1);
        padding: var(--space-2xl) 0;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        border-left: 1px solid var(--border-light);
        overflow-y: auto;
        box-shadow: var(--shadow-xl);
    }

    nav.nav-open {
        right: 0;
    }

    nav a {
        display: block;
        margin: 0;
        padding: var(--space-lg) var(--space-xl);
        border-bottom: 1px solid var(--border-light);
        font-size: 1rem;
        transition: var(--transition-fast);
        border-radius: 0;
        color: var(--text-primary);
    }

    nav a:hover {
        background: var(--purple-gradient);
        color: white;
        transform: none;
        padding-left: var(--space-2xl);
    }

    /* Contenido principal móvil */
    main {
        padding: calc(var(--space-2xl) + 80px) var(--space-md) var(--space-xl) var(--space-md);
    }

    /* Contenedores móviles */
    .container,
    .cleanup-container,
    .admin-container,
    .generator-container,
    .constancias-container {
        padding: var(--space-lg);
        margin: var(--space-lg) var(--space-sm);
        border-radius: var(--radius-lg);
    }

    /* Tipografía móvil */
    h2 {
        font-size: 1.5rem;
        text-align: center;
        color: var(--purple-light);
    }

    h3 {
        font-size: 1.25rem;
        text-align: center;
        color: var(--purple-light);
    }

    .panel-title {
        font-size: 1rem;
        text-align: center;
        color: var(--purple-light);
    }

    /* Formularios móviles */
    .form-group {
        margin-bottom: var(--space-lg);
    }

    input[type="text"],
    input[type="password"],
    input[type="email"],
    select,
    textarea {
        max-width: none;
        width: 100%;
        padding: var(--space-lg);
        font-size: 1rem;
        background: var(--surface-2);
        color: var(--text-primary);
    }

    /* Botones móviles */
    .btn {
        width: 100%;
        padding: var(--space-lg);
        margin: var(--space-xs) 0;
        font-size: 0.875rem;
        justify-content: center;
    }

    .btn-sm {
        padding: var(--space-md);
        font-size: 0.75rem;
    }

    /* Grid de acciones móvil */
    .actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-sm);
        margin-bottom: var(--space-lg);
    }

    .actions .btn {
        width: 100%;
        margin: 0;
    }

    /* Paneles de créditos móviles */
    .credits-panel,
    .last-deposit-compact {
        padding: var(--space-lg);
        margin-bottom: var(--space-lg);
        background: var(--surface-1);
    }

    .credits-info {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .credits-info span {
        padding: var(--space-md);
        text-align: center;
        font-size: 0.875rem;
        background: var(--surface-2);
    }

    /* Lista de archivos móvil */
    .file-item {
        grid-template-columns: 30px 1fr 40px;
        gap: var(--space-sm);
        padding: var(--space-md);
        background: var(--surface-2);
    }

    .file-item:hover {
        background: var(--surface-1);
    }

    .file-date,
    .file-size {
        display: none;
    }

    .file-name {
        font-size: 0.875rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: var(--text-primary);
    }

    /* Información de archivos móvil */
    .files-info {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .files-info span {
        text-align: center;
        padding: var(--space-sm);
        font-size: 0.875rem;
        background: var(--surface-2);
    }

    /* Tablas móviles */
    .ganancias-table,
    .constancias-table {
        font-size: 0.75rem;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        background: var(--surface-1);
    }

    .ganancias-table th,
    .constancias-table th {
        padding: var(--space-md) var(--space-sm);
        font-size: 0.75rem;
        background: var(--purple-gradient);
    }

    .ganancias-table td,
    .constancias-table td {
        padding: var(--space-md) var(--space-sm);
        color: var(--text-primary);
    }

    /* Cards móviles */
    .ganancia-card,
    .stat-card {
        padding: var(--space-lg);
        margin: var(--space-sm) 0;
        background: var(--surface-1);
    }

    .card-value {
        font-size: 1.25rem;
        color: var(--purple-light);
    }

    .ganancias-cards {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    /* Zona peligrosa móvil */
    .global-actions {
        padding: var(--space-xl) var(--space-lg);
        margin-top: var(--space-lg);
        background: linear-gradient(135deg, rgba(245, 101, 101, 0.2) 0%, rgba(229, 62, 62, 0.1) 100%);
    }

    .global-actions::before {
        font-size: 1rem;
        margin-bottom: var(--space-md);
        color: var(--red-light);
    }

    .btn-nuclear {
        font-size: 0.875rem;
        padding: var(--space-lg) var(--space-xl);
        width: 100%;
    }

    /* Depósitos admin móviles */
    .deposit-admin-item {
        padding: var(--space-md);
        background: var(--surface-2);
    }

    .deposit-admin-info {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }

    .deposit-admin-amount,
    .deposit-admin-credits {
        font-size: 0.75rem;
        padding: var(--space-xs) var(--space-sm);
    }

    .deposit-admin-note {
        min-width: auto;
        width: 100%;
        margin-top: var(--space-sm);
        font-size: 0.75rem;
        background: var(--surface-3);
    }

    /* Estados de créditos móviles */
    .status-good,
    .status-warning,
    .status-error {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.75rem;
        text-align: center;
        display: block;
        margin: var(--space-xs) 0;
    }

    /* Mensajes de estado móviles */
    .status {
        padding: var(--space-md);
        font-size: 0.875rem;
        text-align: center;
    }

    /* Footer móvil */
    footer {
        padding: var(--space-xl) var(--space-lg);
        font-size: 0.875rem;
        background: var(--surface-1);
    }

    /* Alertas flotantes móviles */
    .alert-float {
        top: var(--space-lg);
        right: var(--space-lg);
        left: var(--space-lg);
        max-width: none;
        font-size: 0.75rem;
    }
}

/* ===========================================
   MÓVIL EXTRA PEQUEÑO
   =========================================== */
@media (max-width: 480px) {
    :root {
        --space-xs: 0.125rem;
        --space-sm: 0.25rem;
        --space-md: 0.75rem;
        --space-lg: 1rem;
        --space-xl: 1.5rem;
        --space-2xl: 2rem;
    }

    header h1 {
        font-size: 1.25rem;
        margin-right: 50px;
    }

    .mobile-nav-toggle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        top: var(--space-md);
        right: var(--space-md);
    }

    nav {
        width: 280px;
        padding-top: var(--space-xl);
        background: var(--surface-1);
    }

    nav a {
        padding: var(--space-md) var(--space-lg);
        font-size: 0.875rem;
        color: var(--text-primary);
    }

    main {
        padding: calc(var(--space-xl) + 70px) var(--space-xs) var(--space-lg) var(--space-xs);
    }

    .container,
    .cleanup-container,
    .admin-container {
        padding: var(--space-md);
        margin: var(--space-md) var(--space-xs);
        background: var(--surface-1);
    }

    h2 {
        font-size: 1.25rem;
        color: var(--purple-light);
    }

    .btn {
        padding: var(--space-md);
        font-size: 0.75rem;
    }

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

    .file-item {
        padding: var(--space-sm);
        background: var(--surface-2);
    }

    .files-list {
        max-height: 250px;
        background: var(--surface-1);
    }

    .credits-info span {
        font-size: 0.75rem;
        padding: var(--space-sm);
        background: var(--surface-2);
    }

    .ganancias-table,
    .constancias-table {
        font-size: 0.625rem;
        background: var(--surface-1);
    }
}

/* ===========================================
   EFECTOS ESPECIALES OSCUROS
   =========================================== */

/* Efecto de partículas de fondo */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(159, 122, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(72, 187, 120, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: particleFloat 20s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(2deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

/* Efecto de brillo sutil */
.container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(124, 58, 237, 0.03) 50%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ===========================================
   FOCUS Y ACCESIBILIDAD OSCURO
   =========================================== */
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--yellow-primary);
    outline-offset: 2px;
}

/* ===========================================
   ANIMACIONES DE ENTRADA
   =========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

.fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

.fade-in-delay {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* ===========================================
   TOOLTIPS OSCUROS
   =========================================== */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface-3);
    color: var(--text-primary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    z-index: 1000;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--surface-3);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.tooltip:hover::before,
.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ===========================================
   MODALES OSCUROS
   =========================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    backdrop-filter: blur(4px);
}

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

.modal-content {
    background: var(--surface-1);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-light);
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface-2);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--surface-3);
    color: var(--text-primary);
}

.modal-body {
    padding: var(--space-xl);
    background: var(--surface-1);
}

.modal-footer {
    padding: var(--space-lg) var(--space-xl);
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: var(--space-sm);
    justify-content: flex-end;
    background: var(--surface-2);
}

/* ===========================================
   SKELETON LOADERS OSCUROS
   =========================================== */
.skeleton {
    background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1rem;
    margin: 0.5rem 0;
}

.skeleton-title {
    height: 1.5rem;
    width: 60%;
    margin: 1rem 0;
}

.skeleton-button {
    height: 2.5rem;
    width: 120px;
    margin: 1rem 0;
}

/* ===========================================
   MEJORAS ESPECIALES PARA TEMA OSCURO
   =========================================== */

/* Efecto de neón sutil */
.neon-glow {
    box-shadow:
        0 0 5px var(--purple-primary),
        0 0 10px var(--purple-primary),
        0 0 15px var(--purple-primary);
}

.neon-glow:hover {
    box-shadow:
        0 0 10px var(--purple-light),
        0 0 20px var(--purple-light),
        0 0 30px var(--purple-light);
}

/* Gradientes mejorados para tema oscuro */
.purple-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.green-gradient {
    background: linear-gradient(135deg, #9b226c 0%, #a8e6cf 100%);
}

.red-gradient {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
}

.yellow-gradient {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.blue-gradient {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* ===========================================
   PRINT STYLES PARA TEMA OSCURO
   =========================================== */
@media print {
    * {
        color: #000 !important;
        background: #fff !important;
        box-shadow: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        background: white !important;
    }

    .btn,
    nav,
    .global-actions,
    .mobile-nav-toggle,
    .nav-overlay {
        display: none !important;
    }

    .container {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        margin: 0 !important;
        padding: 20pt !important;
        background: white !important;
    }

    h1, h2, h3 {
        page-break-after: avoid;
        color: #000 !important;
    }

    table {
        page-break-inside: avoid;
    }
}

/* ===========================================
   MEJORAS DE ACCESIBILIDAD PARA TEMA OSCURO
   =========================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Alto contraste para mejor lectura */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: #e0e0e0;
        --border-light: rgba(255, 255, 255, 0.3);
        --border-medium: rgba(255, 255, 255, 0.5);
    }
}

/* panel index*/

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.8rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    border-radius: 16px;
    padding: 1.8rem 1.6rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.stat-icon {
    font-size: 2.4rem;
    line-height: 1;
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;
}

/* Quick panel */
.admin-quick-panel {
    margin-top: 3.5rem;
    border-radius: 16px;
    padding: 2.2rem;
    overflow: hidden;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
}

.action-card {
    border-radius: 14px;
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.action-card:hover {
    transform: translateY(-6px);
}

.action-icon {
    font-size: 2.2rem;
}

.action-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.action-desc {
    font-size: 0.875rem;
    opacity: 0.75;
    margin-top: 0.2rem;
    line-height: 1.35;
}
@media (max-width: 768px) {
    .admin-stats {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }
}


/* ===========================================
   OPTIMIZACIONES FINALES
   =========================================== */

/* Prevenir highlight azul en dispositivos táctiles */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Optimización de imágenes */
img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

svg {
    max-width: 100%;
    height: auto;
}

/* Estados de interacción mejorados */
.interactive {
    cursor: pointer;
    user-select: none;
    transition: var(--transition-fast);
}

.interactive:hover {
    transform: translateY(-1px);
}

.interactive:active {
    transform: translateY(0);
}

/* Mejoras de rendimiento */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

/* ===========================================
   VARIABLES PARA EXTENSIONES FUTURAS
   =========================================== */
:root {
    --theme-primary: var(--purple-primary);
    --theme-secondary: var(--green-primary);
    --theme-accent: var(--blue-primary);
    --theme-neutral: var(--text-secondary);
    --theme-success: var(--green-primary);
    --theme-warning: var(--yellow-primary);
    --theme-danger: var(--red-primary);
    --theme-info: var(--blue-primary);
}


.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.qr-box {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}