:root {
    /* =========================================
       TEMA POR DEFECTO (MODO CLARO - LIGHT)
       ========================================= */
    --primary-color: #000000;
    --secondary-color: #333333;
    
    /* Fondos Claros */
    --dark-bg: #f3f4f6;       /* Fondo general de la página (Gris muy claro) */
    --card-bg: #ffffff;       /* Fondo de tarjetas (Blanco puro) */
    --card-border: #e5e7eb;   /* Bordes sutiles */
    
    /* Textos Oscuros */
    --text-primary: #111827;  /* Casi negro */
    --text-secondary: #6b7280;/* Gris medio */
    
    /* Colores funcionales */
    --accent: #007bff;
    --success: #10b981;       /* Verde moderno */
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Gradientes */
    --gradient-1: linear-gradient(135deg, #000000 0%, #333333 100%);
    --gradient-2: linear-gradient(135deg, #495057 0%, #6c757d 100%);
    --gradient-3: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    --gradient-primary: linear-gradient(135deg, #000000 0%, #333333 100%);
    
    --btn-text: #ffffff;
    
    /* Variable para el fondo sutil de los inputs */
    --input-bg-gradient: linear-gradient(145deg, #ffffff 0%, #f9fafb 100%);
}

.logo {
    transition: filter 0.3s ease;
}

/* Cuando el HTML o BODY tienen la clase dark-theme, invierte el logo */
html.dark-theme .logo,
body.dark-theme .logo,
.dark-theme img.logo {
    filter: brightness(0) invert(1) !important;
    -webkit-filter: brightness(0) invert(1) !important; /* Safari/Mobile */
    
    opacity: 1 !important;
}

/* Regla para botones en temas de color */
.theme-purple, .theme-blue, .theme-green, .theme-orange {
    --btn-text: #000000 !important;
}

/* =========================================
   TEMA OSCURO (DARK MODE - CORREGIDO)
   ========================================= */
.dark-theme {
    --primary-color: #ffffff; 
    --secondary-color: #e5e7eb;
    
    /* Fondos Oscuros */
    --dark-bg: #000000;       /* Negro puro para pantallas OLED/Modernas */
    --card-bg: #111827;       /* Gris muy oscuro / Azulado oscuro */
    --card-border: #374151;   /* Borde gris oscuro */
    
    /* Textos Claros */
    --text-primary: #f9fafb;  /* Blanco casi puro */
    --text-secondary: #9ca3af;/* Gris claro */
    
    --accent: #3b82f6;
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;
    
    --gradient-1: linear-gradient(135deg, #ffffff 0%, #e5e7eb 100%);
    --gradient-2: linear-gradient(135deg, #4b5563 0%, #9ca3af 100%);
    --gradient-3: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --gradient-primary: linear-gradient(135deg, #ffffff 0%, #9ca3af 100%);
    
    --btn-text: #000000; /* Texto negro en botones blancos */
    
    /* Gradiente oscuro para inputs */
    --input-bg-gradient: linear-gradient(145deg, #1f2937 0%, #111827 100%);
}

/* =========================================
   PALETAS DE COLORES (Personalización)
   ========================================= */

/* Paleta de colores - Futurista Púrpura */
.theme-purple {
    --primary-color: #D000FF;
    --secondary-color: #7c3aed;
    --dark-bg: #fdf4ff; /* Fondo claro tintado */
    --card-bg: #ffffff;
    --card-border: #fae8ff;
    --text-primary: #4a044e;
    --text-secondary: #86198f;
    --gradient-primary: linear-gradient(135deg, #D000FF 0%, #7c3aed 100%);
    --btn-text: #ffffff;
    --input-bg-gradient: linear-gradient(145deg, #ffffff 0%, #fae8ff 100%);
}

.dark-theme.theme-purple {
    --primary-color: #e0aaff;
    --secondary-color: #c77dff;
    --dark-bg: #10002b; /* Fondo muy oscuro */
    --card-bg: #240046;
    --card-border: #3c096c;
    --text-primary: #e0aaff;
    --text-secondary: #c77dff;
    --gradient-primary: linear-gradient(135deg, #e0aaff 0%, #c77dff 100%);
    --btn-text: #000000;
    --input-bg-gradient: linear-gradient(145deg, #3c096c 0%, #240046 100%);
}

/* Paleta de colores - Azul Futurista */
.theme-blue {
    --primary-color: #0066ff;
    --secondary-color: #0052cc;
    --dark-bg: #eff6ff;
    --card-bg: #ffffff;
    --card-border: #dbeafe;
    --text-primary: #1e3a8a;
    --text-secondary: #3b82f6;
    --gradient-primary: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
    --btn-text: #ffffff;
    --input-bg-gradient: linear-gradient(145deg, #ffffff 0%, #eff6ff 100%);
}

.dark-theme.theme-blue {
    --primary-color: #60a5fa;
    --secondary-color: #3b82f6;
    --dark-bg: #0f172a;
    --card-bg: #1e293b;
    --card-border: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --gradient-primary: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    --btn-text: #000000;
    --input-bg-gradient: linear-gradient(145deg, #334155 0%, #1e293b 100%);
}

/* Paleta de colores - Verde Matrix */
.theme-green {
    --primary-color: #059669; /* Verde más oscuro para modo claro (legibilidad) */
    --secondary-color: #10b981;
    --dark-bg: #f0fdf4;
    --card-bg: #ffffff;
    --card-border: #dcfce7;
    --text-primary: #064e3b;
    --text-secondary: #059669;
    --gradient-primary: linear-gradient(135deg, #059669 0%, #10b981 100%);
    --btn-text: #ffffff;
    --input-bg-gradient: linear-gradient(145deg, #ffffff 0%, #f0fdf4 100%);
}

.dark-theme.theme-green {
    --primary-color: #4ade80;
    --secondary-color: #22c55e;
    --dark-bg: #052e16;
    --card-bg: #14532d;
    --card-border: #166534;
    --text-primary: #f0fdf4;
    --text-secondary: #bbf7d0;
    --gradient-primary: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    --btn-text: #000000;
    --input-bg-gradient: linear-gradient(145deg, #166534 0%, #14532d 100%);
}

/* Paleta de colores - Naranja Oscuro */
.theme-orange {
    --primary-color: #ea580c;
    --secondary-color: #f97316;
    --dark-bg: #fff7ed;
    --card-bg: #ffffff;
    --card-border: #ffedd5;
    --text-primary: #7c2d12;
    --text-secondary: #c2410c;
    --gradient-primary: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    --btn-text: #ffffff;
    --input-bg-gradient: linear-gradient(145deg, #ffffff 0%, #fff7ed 100%);
}

.dark-theme.theme-orange {
    --primary-color: #fb923c;
    --secondary-color: #f97316;
    --dark-bg: #431407;
    --card-bg: #7c2d12;
    --card-border: #9a3412;
    --text-primary: #fed7aa;
    --text-secondary: #ffedd5;
    --gradient-primary: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    --btn-text: #000000;
    --input-bg-gradient: linear-gradient(145deg, #9a3412 0%, #7c2d12 100%);
}

/* Paleta de colores - Rosa Pastel */
.theme-pink {
    --primary-color: #db2777;
    --secondary-color: #ec4899;
    --dark-bg: #fdf2f8;
    --card-bg: #ffffff;
    --card-border: #fbcfe8;
    --text-primary: #831843;
    --text-secondary: #9f1239;
    --gradient-primary: linear-gradient(135deg, #db2777 0%, #ec4899 100%);
    --btn-text: #ffffff;
    --input-bg-gradient: linear-gradient(145deg, #ffffff 0%, #fdf2f8 100%);
}

.dark-theme.theme-pink {
    --primary-color: #f9a8d4;
    --secondary-color: #f472b6;
    --dark-bg: #500724;
    --card-bg: #701a75;
    --card-border: #86198f;
    --text-primary: #fce7f3;
    --text-secondary: #fbcfe8;
    --gradient-primary: linear-gradient(135deg, #f9a8d4 0%, #f472b6 100%);
    --btn-text: #000000;
    --input-bg-gradient: linear-gradient(145deg, #86198f 0%, #701a75 100%);
}

/* Paleta de colores - Cian Claro */
.theme-cyan {
    --primary-color: #0891b2;
    --secondary-color: #06b6d4;
    --dark-bg: #ecfeff;
    --card-bg: #ffffff;
    --card-border: #a5f3fc;
    --text-primary: #164e63;
    --text-secondary: #0e7490;
    --gradient-primary: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    --btn-text: #ffffff;
    --input-bg-gradient: linear-gradient(145deg, #ffffff 0%, #ecfeff 100%);
}

.dark-theme.theme-cyan {
    --primary-color: #67e8f9;
    --secondary-color: #22d3ee;
    --dark-bg: #083344;
    --card-bg: #0c4a6e;
    --card-border: #075985;
    --text-primary: #ecfeff;
    --text-secondary: #cffafe;
    --gradient-primary: linear-gradient(135deg, #67e8f9 0%, #22d3ee 100%);
    --btn-text: #000000;
    --input-bg-gradient: linear-gradient(145deg, #075985 0%, #0c4a6e 100%);
}

/* Paleta de colores - Amarillo Dorado */
.theme-gold {
    --primary-color: #d97706;
    --secondary-color: #f59e0b;
    --dark-bg: #fffbeb;
    --card-bg: #ffffff;
    --card-border: #fde68a;
    --text-primary: #78350f;
    --text-secondary: #92400e;
    --gradient-primary: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    --btn-text: #ffffff;
    --input-bg-gradient: linear-gradient(145deg, #ffffff 0%, #fffbeb 100%);
}

.dark-theme.theme-gold {
    --primary-color: #fcd34d;
    --secondary-color: #fbbf24;
    --dark-bg: #451a03;
    --card-bg: #78350f;
    --card-border: #92400e;
    --text-primary: #fef3c7;
    --text-secondary: #fde68a;
    --gradient-primary: linear-gradient(135deg, #fcd34d 0%, #fbbf24 100%);
    --btn-text: #000000;
    --input-bg-gradient: linear-gradient(145deg, #92400e 0%, #78350f 100%);
}

/* =========================================
   ESTILOS GENERALES
   ========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-bottom: 70px;
    overflow-x: hidden;
    min-height: 100vh;
    transition: all 0.3s ease;
}

/* =========================================
   INPUTS, SELECTS Y FORMULARIOS (ANIMADOS)
   ========================================= */

.form-control, 
.form-select, 
.custom-input {
    /* Fondo con gradiente sutil definido en las variables del tema */
    background: var(--input-bg-gradient) !important;
    border: 1px solid var(--card-border) !important;
    color: var(--text-primary) !important;
    border-radius: 12px !important;
    padding: 12px 15px;
    font-size: 1rem;
    
    /* Animación suave */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-size: 200% 200%; /* Preparar para animar gradiente si se desea */
}

/* Estado Focus (Clic/Escribiendo) */
.form-control:focus, 
.form-select:focus, 
.custom-input:focus {
    background: var(--card-bg) !important; /* Vuelve a color sólido o mantiene gradiente */
    border-color: var(--primary-color) !important;
    color: var(--text-primary) !important;
    
    /* Efecto de elevación y resplandor */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-2px) scale(1.01); /* Se mueve un poco hacia arriba y crece */
    
    outline: none;
}

/* Placeholder */
.form-control::placeholder,
.custom-input::placeholder {
    color: var(--text-secondary) !important;
    opacity: 0.6;
}

/* Etiquetas Flotantes */
.form-floating > label {
    color: var(--text-secondary) !important;
    transition: all 0.2s ease-in-out;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    opacity: 1;
    font-weight: 600;
    background-color: transparent; 
}

/* Autocompletado del navegador (Fix fondo amarillo/azul) */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--card-bg) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.form-select option {
    background-color: var(--card-bg);
    color: var(--text-primary);
}

/* =========================================
   LOADER & COMPONENTES UI
   ========================================= */

#loader {
    background: var(--dark-bg) !important;
    color: var(--text-primary) !important; 
    position: fixed !important;
    height: 100% !important;
    width: 100% !important;
    z-index: 5000 !important;
    top: 0 !important;
    left: 0 !important;
    opacity: 1 !important;
}

#loader.show {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#loader.hide {
    display: none !important;
}

.loader-animation {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 20px auto;
}

.loader-animation div {
    position: absolute;
    border: 4px solid transparent;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.loader-animation div:nth-child(1) {
    animation-delay: 0s;
    width: 120px;
    height: 120px;
}

.loader-animation div:nth-child(2) {
    animation-delay: 0.2s;
    width: 100px;
    height: 100px;
    top: 10px;
    left: 10px;
}

.loader-animation div:nth-child(3) {
    animation-delay: 0.4s;
    width: 80px;
    height: 80px;
    top: 20px;
    left: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.navbar {
    background: var(--card-bg);
    border-bottom: 1px solid var(--card-border);
    padding: 10px 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 2000;
}

.navbar-brand {
    color: var(--text-primary) !important;
    font-weight: 600;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo {
    max-height: 40px;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.2));
}

.icon-s {
    background-color: transparent;
    color: var(--text-primary);
    border: none;
    font-size: 1.2rem;
    padding: 5px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.icon-s:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.main-container {
    padding: 20px 15px;
    max-width: 500px;
    margin: 0 auto;
}

.wallet-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Sombra suavizada */
    border: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.wallet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
}

.wallet-balance {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 15px 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wallet-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.section-title i {
    color: var(--primary-color);
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

@media (min-width: 576px) {
    .action-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .action-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.action-item {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 120px;
}

.action-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.action-item i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.action-item span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.action-item.active {
    background: var(--gradient-primary);
    border-color: transparent;
}

.action-item.active i,
.action-item.active span {
    color: var(--btn-text) !important;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}

.feature-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.feature-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.feature-action {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--card-border);
    text-align: center;
}

.feature-action button, .feature-action a, .feature-action .btn {
    border-radius: 20px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-top: 1px solid var(--card-border);
    padding: 10px 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-items {
    display: flex;
    justify-content: space-around;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.nav-item.active {
    color: var(--primary-color);
    transform: scale(1.1);
}

.nav-item i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.nav-item span {
    font-size: 0.7rem;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 600;
    color: var(--btn-text) !important;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
}

.btn-outline-primary {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--btn-text);
}

.accordion-button {
    background: var(--card-bg);
    color: var(--text-primary);
}

.accordion-button:not(.collapsed) {
    background: var(--card-bg);
    color: var(--primary-color);
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}

.accordion-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}

.table {
    color: var(--text-primary);
}

.table thead th {
    border-bottom: 1px solid var(--card-border);
    color: var(--text-secondary);
}

.table tbody tr {
    border-bottom: 1px solid var(--card-border);
}

.alert {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border-color: rgba(40, 167, 69, 0.3);
    color: var(--success);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
    color: var(--warning);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.3);
    color: var(--danger);
}

.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.bg-primary { background: var(--gradient-primary) !important; }

.qr-container {
    background: white;
    padding: 20px;
    border-radius: 15px;
    display: inline-block;
    margin: 20px 0;
}

.qr-code {
    width: 200px;
    height: 200px;
}

.wallet-address {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 15px;
    font-family: monospace;
    word-break: break-all;
    margin: 15px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.wallet-address:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
}

.copy-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--success);
    color: var(--btn-text);
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transform: translateY(-100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.copy-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.transaction-item {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--card-border);
}

.transaction-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.transaction-icon.income {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
}

.transaction-icon.expense {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger);
}

.transaction-details h5 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.transaction-details p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.transaction-amount {
    text-align: right;
}

.transaction-amount h5 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.transaction-amount p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    opacity: 0.05;
    pointer-events: none;
}

.shape {
    position: absolute;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.1;
}

.shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation: float 15s infinite ease-in-out;
}

.shape:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    left: 80%;
    animation: float 20s infinite ease-in-out reverse;
}

.shape:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 30%;
    animation: float 12s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.page-transition {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

.hidden {
    display: none !important;
}

.theme-selector {
    position: relative; 
    display: inline-block;
}

.theme-dropdown {
    position: fixed; 
    top: 45px; 
    right: 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 3000;
    min-width: 250px;
    display: none;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.theme-option:hover {
    background: rgba(0, 0, 0, 0.05);
}

.theme-option.active {
    background: var(--gradient-primary);
    color: var(--btn-text);
}

.theme-color-preview {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--card-border);
}

.theme-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 8px;
}

.theme-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.theme-mode-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 5px;
    border-top: 1px solid var(--card-border);
    padding-top: 15px;
    margin-top: 10px;
    color: var(--text-primary);
}

.theme-mode-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* PWA Install Banner */
.pwa-install-banner {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 15px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    max-width: 350px;
    width: 90%;
}

.pwa-install-banner.show {
    display: block;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from { transform: translateX(-50%) translateY(100px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.pwa-install-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pwa-install-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--btn-text);
    font-size: 1.5rem;
}

.pwa-install-text h5 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.pwa-install-text p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.pwa-install-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.pwa-install-btn {
    flex: 1;
    padding: 8px 15px;
    border-radius: 8px;
    border: none;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pwa-install-btn.primary {
    background: var(--gradient-primary);
    color: var(--btn-text);
}

.pwa-install-btn.secondary {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
}

@media (max-width: 576px) {
    .action-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wallet-balance {
        font-size: 1.8rem;
    }
    
    .main-container {
        padding: 15px 10px;
    }
}

/* Efecto para los logos de tiendas en modo oscuro */
.dark-theme .logo-gray {
    opacity: 0.8;
    filter: invert(1);
}

/* El botón warning ahora usará el color de acento del tema */
.btn-warning {
    background-color: var(--warning) !important;
    border: none !important;
    color: #000 !important;
}



