/* ========================================
   PRESTAGWEB - Ultra Modern Dark Theme
   ======================================== */

/* Variables CSS - Dark Theme */
:root {
    /* Dark Backgrounds */
    --bg-primary: #0a0e17;
    --bg-secondary: #0f1419;
    --bg-tertiary: #141921;
    --bg-elevated: #1a1f2e;
    --bg-card: rgba(26, 31, 46, 0.6);
    --bg-hover: rgba(255, 255, 255, 0.05);
    
    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    /* Accent Colors - Neon & Vibrant */
    --accent-cyan: #00d4ff;
    --accent-cyan-rgb: 0, 212, 255;
    --accent-blue: #0ea5e9;
    --accent-purple: #a78bfa;
    --accent-pink: #f43f5e;
    
    /* Status Colors */
    --success: #10b981;
    --success-rgb: 16, 185, 129;
    --danger: #ef4444;
    --danger-rgb: 239, 68, 68;
    --warning: #fbbf24;
    --warning-rgb: 251, 191, 36;
    --info: #06b6d4;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --text-muted: #475569;
    
    /* Borders */
    --border-primary: rgba(255, 255, 255, 0.1);
    --border-secondary: rgba(255, 255, 255, 0.05);
    --border-glow: rgba(0, 212, 255, 0.3);
    
    /* Dimensions */
    --sidebar-width: 280px;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Border Radius */
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.6);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.8);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.9);
    --shadow-glow-cyan: 0 0 30px rgba(var(--accent-cyan-rgb), 0.3);
    --shadow-glow-success: 0 0 30px rgba(var(--success-rgb), 0.3);
    --shadow-glow-danger: 0 0 30px rgba(var(--danger-rgb), 0.3);
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Sidebar - Ultra Modern
   ======================================== */
/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1002;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4), var(--shadow-md);
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.6), var(--shadow-lg);
}

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

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none !important;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto !important;
}

.mobile-bottom-nav {
    display: none;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #0a0d15 0%, #12151f 100%);
    border-right: 1px solid var(--border-primary);
    color: var(--text-primary);
    overflow-y: auto;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-logo {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.sidebar-logo i {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(var(--accent-cyan-rgb), 0.5));
}

.sidebar-logo-text h1 {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-logo-text p {
    font-size: 0.65rem;
    color: var(--text-tertiary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Selector de mes (Mis gastos) */
.month-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-primary);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.month-filter:hover {
    border-color: var(--border-glow);
    box-shadow: 0 0 0 2px rgba(var(--accent-cyan-rgb), 0.15);
}

.month-filter i {
    color: var(--accent-cyan);
}

.month-filter input[type="month"] {
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 100%;
    cursor: pointer;
    padding: 0;
}

.month-filter input[type="month"]:focus {
    outline: none;
}

.month-filter input[type="month"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.7;
    cursor: pointer;
}

.demo-timer {
    margin-top: 0.35rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: rgba(0, 212, 255, 0.12);
    border: 1px solid rgba(0, 212, 255, 0.25);
    color: #e2e8f0;
    font-size: 0.65rem;
}

.demo-timer i {
    color: var(--accent-cyan);
    font-size: 0.7rem;
}

.demo-timer strong {
    color: #fff;
    font-weight: 700;
}

.trial-expired-banner {
    margin: 0;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    font-size: 0.7rem;
    line-height: 1.3;
    text-align: left;
    color: #fecaca;
    background: rgba(239, 68, 68, 0.08);
    border: none;
    border-top: 1px solid rgba(239, 68, 68, 0.2);
    border-bottom: 1px solid var(--border-primary);
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
    transition: all 0.2s ease;
}

.sidebar-logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.sidebar-logo-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    width: 100%;
}

.trial-expired-banner .trial-expired-icon {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: rgba(239, 68, 68, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.trial-expired-banner:hover {
    background: rgba(239, 68, 68, 0.15);
}

.coupon-apply-box {
    margin-top: 0.75rem;
    padding: 0.85rem 1rem;
    border: 2px dashed rgba(56, 189, 248, 0.5);
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.06);
}

.coupon-apply-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #93c5fd;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.coupon-apply-code {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #38bdf8;
    text-align: center;
    margin-bottom: 0.5rem;
}

.coupon-apply-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    justify-content: space-between;
}

.coupon-apply-note {
    color: #94a3b8;
    font-size: 0.8rem;
}

/* ========================================
   Premium Upgrade Modal (Compact Design)
   ======================================== */
.premium-upgrade-modal {
    max-width: 440px;
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.16), transparent 60%), #0b1124;
    border: 1px solid rgba(56, 189, 248, 0.25);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
    padding: 0;
}

.premium-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
}

.premium-upgrade-hero {
    text-align: center;
    padding: 1.5rem 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.premium-upgrade-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.75rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #38bdf8, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0b1124;
    font-size: 1.5rem;
    box-shadow: 0 12px 32px rgba(56, 189, 248, 0.4);
}

.premium-upgrade-hero h2 {
    margin: 0 0 0.35rem;
    font-size: 1.4rem;
    font-weight: 900;
    color: #e2e8f0;
}

.premium-upgrade-hero p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.5;
}

.premium-upgrade-pricing {
    padding: 1.25rem 1.5rem;
    text-align: center;
    background: rgba(15, 23, 42, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.premium-upgrade-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #7dd3fc;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.premium-upgrade-old {
    font-size: 0.95rem;
    color: #64748b;
    text-decoration: line-through;
    margin-bottom: 0.2rem;
}

.premium-upgrade-price {
    font-size: 2rem;
    font-weight: 900;
    color: #38bdf8;
    line-height: 1;
}

.premium-upgrade-price span {
    font-size: 0.95rem;
    color: #94a3b8;
    font-weight: 700;
}

.premium-upgrade-promo {
    margin-top: 0.4rem;
    color: #22c55e;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.premium-upgrade-coupon {
    margin: 1.25rem 1.5rem;
    padding: 1rem;
    border: 2px dashed rgba(56, 189, 248, 0.5);
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.06);
    text-align: center;
}

.premium-upgrade-coupon-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: #93c5fd;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.premium-upgrade-coupon-code {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    color: #38bdf8;
    margin-bottom: 0.6rem;
    padding: 0.4rem;
    background: rgba(56, 189, 248, 0.08);
    border-radius: 8px;
}

.premium-upgrade-coupon-note {
    margin-top: 0.6rem;
    color: #94a3b8;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.premium-upgrade-actions {
    padding: 0 1.5rem 1.5rem;
    display: grid;
    gap: 0.6rem;
}

.premium-upgrade-cta {
    font-size: 1rem;
    font-weight: 800;
    padding: 0.85rem 1.25rem;
}

@media (max-width: 600px) {
    .premium-upgrade-hero,
    .premium-upgrade-pricing,
    .premium-upgrade-actions {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    .premium-upgrade-coupon {
        margin-left: 1.25rem;
        margin-right: 1.25rem;
    }
}

.sidebar-nav {
    padding: 0.5rem 0;
    flex: 1;
    overflow-y: auto;
}

.sidebar-nav-section {
    margin-bottom: 0.5rem;
}

.sidebar-nav-title {
    padding: 0 1rem;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-cyan);
    margin-bottom: 0.3rem;
    margin-top: 0.5rem;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
    position: relative;
    margin: 0.05rem 0;
}

.sidebar-nav-link i {
    font-size: 0.95rem;
    width: 24px;
    text-align: center;
    transition: all 0.3s ease;
}


.sidebar-nav-link span {
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sidebar-badge {
    margin-left: auto;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    font-size: 0.65rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar-badge-pro {
    margin-left: 0.4rem;
    padding: 1px 4px;
    border-radius: 3px;
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    font-size: 10px !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.sidebar-nav-link:hover {
    background: var(--glass-bg);
    border-left-color: var(--accent-cyan);
    color: var(--text-primary);
}

.sidebar-nav-link:hover i {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px var(--accent-cyan));
}

.sidebar-nav-link.premium-locked:hover {
    border-left-color: #ef4444;
}

.sidebar-nav-link.premium-locked:hover i {
    color: #ef4444;
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.5));
}

.sidebar-nav-link.active {
    background: linear-gradient(90deg, rgba(var(--accent-cyan-rgb), 0.15), transparent);
    border-left-color: var(--accent-cyan);
    color: var(--text-primary);
}

.sidebar-nav-link.active i {
    color: var(--accent-cyan);
    filter: drop-shadow(0 0 10px var(--accent-cyan));
}

.sidebar-footer {
    padding: 0.5rem 1rem 0.75rem;
    border-top: 1px solid var(--border-primary);
    margin-top: auto;
}

.sidebar-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-sm);
    color: var(--danger);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.sidebar-logout-btn:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
    border-color: var(--danger);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-danger);
}

.sidebar-logout-btn i {
    font-size: 0.95rem;
}

.sidebar-footer-info {
    font-size: 0.65rem;
    color: var(--text-tertiary);
    text-align: center;
    letter-spacing: 0.5px;
}

.sidebar-footer-info p {
    margin: 0.25rem 0;
}

/* ========================================
   Main Layout
   ======================================== */
.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
}

.main-content {
    flex: 1;
    padding: 1.25rem;
}

/* ========================================
   Page Header
   ======================================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.page-header-title h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.5px;
}

.page-header-title h1 i {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.form-select {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    min-width: 150px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-select:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-select:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
}

.form-select option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* ========================================
   Cards - Glassmorphism
   ======================================== */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 0;
    margin-bottom: 1.5rem;
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--border-glow);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(var(--accent-cyan-rgb), 0.1), rgba(var(--accent-purple), 0.05));
    border-bottom: 1px solid var(--border-primary);
    backdrop-filter: blur(10px);
}

.card-header h2, 
.card-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin: 0;
    letter-spacing: -0.3px;
}

.card-header h2 i,
.card-header h3 i {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-header .badge {
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.card-header .text-muted,
.card-header p {
    color: var(--text-secondary) !important;
}

.card-body {
    padding: 1.5rem;
    box-sizing: border-box;
    width: 100%;
}

/* ========================================
   Stats Grid
   ======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl), var(--shadow-glow-cyan);
    border-color: var(--border-glow);
}

.stat-card.stat-primary::before {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
}

.stat-card.stat-danger::before {
    background: linear-gradient(90deg, var(--danger), #dc2626);
}

.stat-card.stat-success::before {
    background: linear-gradient(90deg, var(--success), #059669);
}

.stat-card.stat-warning::before {
    background: linear-gradient(90deg, var(--warning), #f59e0b);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-icon.blue {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    box-shadow: 0 8px 24px rgba(var(--accent-cyan-rgb), 0.3);
}

.stat-icon.red {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    box-shadow: 0 8px 24px rgba(var(--danger-rgb), 0.3);
}

.stat-icon.green {
    background: linear-gradient(135deg, var(--success), #059669);
    box-shadow: 0 8px 24px rgba(var(--success-rgb), 0.3);
}

.stat-icon.orange {
    background: linear-gradient(135deg, var(--warning), #f59e0b);
    box-shadow: 0 8px 24px rgba(var(--warning-rgb), 0.3);
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.stat-content p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Stat Details */
.stat-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-primary);
    width: 100%;
}

.stat-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-details-list li {
    padding: 0.65rem;
    background: var(--glass-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-secondary);
    transition: all 0.3s ease;
}

.stat-details-list li:hover {
    background: var(--bg-hover);
    border-color: var(--border-primary);
    transform: translateX(4px);
}

/* ========================================
   Income Stats Grid (Ingresos Extra)
   ======================================== */

.income-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.income-stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.income-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple));
}

.income-stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl), var(--shadow-glow-cyan);
    border-color: var(--border-glow);
}

.income-stat-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.income-stat-card:hover .income-stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.income-stat-info {
    flex: 1;
    min-width: 0;
}

.income-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.income-stat-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   Income List (Ingresos Extra)
   ======================================== */

.income-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.income-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.income-item:hover {
    background: var(--bg-hover);
    border-color: var(--border-primary);
    transform: translateX(4px);
}

.income-item-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.income-item-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.income-item-details {
    flex: 1;
    min-width: 0;
}

.income-item-description {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.income-item-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.income-item-date i {
    font-size: 0.75rem;
    opacity: 0.7;
}

.income-item-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.income-item-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #10b981;
    white-space: nowrap;
}

.income-item-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: var(--bg-hover);
    border-color: var(--border-primary);
    color: var(--text-primary);
    transform: scale(1.1);
}

.btn-icon.btn-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
    color: var(--danger);
}

.stat-details-empty {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: center;
    padding: 0.75rem;
    font-style: italic;
}

.stat-details-section {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: var(--glass-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-secondary);
}

.stat-details-section strong {
    color: var(--text-primary);
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.stat-detail-with-icon {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
}

.stat-detail-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}

.stat-detail-name {
    color: var(--text-primary);
    font-weight: 600;
    flex: 1;
    font-size: 0.9rem;
}

.stat-detail-value {
    color: var(--accent-cyan);
    font-weight: 700;
    white-space: nowrap;
    font-size: 0.9rem;
}

.stat-detail-value-danger {
    color: var(--danger);
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

.stat-detail-value-success {
    color: var(--success);
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

.stat-detail-total {
    color: var(--text-tertiary);
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

.stat-detail-amounts {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.stat-detail-progress {
    flex: 1;
    width: 100%;
}

.stat-detail-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: nowrap;
}

.stat-detail-progress-values {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Progress Bar */
.progress-bar-full {
    width: 100%;
    height: 10px;
    background: rgba(251, 191, 36, 0.2);
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar-full .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    transition: width 0.5s ease;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.6);
}

.stat-detail-percentage {
    color: #fbbf24;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Monthly Payment Card */
.monthly-payment-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(14, 165, 233, 0.1) 100%);
    border: 2px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.2);
    margin-bottom: 1.5rem;
}

.monthly-payment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-primary);
}

.monthly-payment-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.4);
    flex-shrink: 0;
}

.monthly-payment-content {
    flex: 1;
}

.monthly-payment-label {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 0.25rem 0;
}

.monthly-payment-amount {
    color: var(--accent-cyan);
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0;
    line-height: 1;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.monthly-payment-breakdown {
    padding: 1rem 1.5rem;
}

.monthly-payment-breakdown h4 {
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.monthly-payment-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.monthly-payment-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.875rem;
    background: var(--glass-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-secondary);
    transition: all 0.3s ease;
}

.monthly-payment-item:hover {
    background: var(--bg-hover);
    border-color: var(--border-primary);
    transform: translateX(4px);
}

.monthly-payment-name {
    flex: 1;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.monthly-payment-value {
    color: var(--accent-cyan);
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
}

/* Color Indicators */
.loan-color-dot,
.payment-color-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid var(--bg-primary);
    box-shadow: 0 0 10px currentColor;
}

.payment-icon-indicator {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.custom-chart-legend {
    width: 100%;
    padding: 1rem 0;
}

/* Touch Feedback para dispositivos móviles */
@media (hover: none) and (pointer: coarse) {
    /* Eliminar hover en dispositivos táctiles */
    .btn:hover,
    .card:hover,
    .sidebar-nav-link:hover,
    .payment-item:hover,
    .loan-info-item:hover,
    .monthly-payment-item:hover {
        transform: none;
    }
    
    /* Agregar efecto de toque */
    .btn:active,
    .sidebar-nav-link:active,
    .payment-item:active {
        opacity: 0.7;
        transform: scale(0.98);
    }
    
    /* Mejorar área táctil de botones pequeños */
    .btn-sm {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Enlaces y botones con highlight color */
    a,
    button {
        -webkit-tap-highlight-color: rgba(0, 212, 255, 0.2);
    }
}

/* ========================================
   Dashboard Grid
   ======================================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 65fr 35fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* ========================================
   Loans Grid
   ======================================== */
.loans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 1200px) {
    .loans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   Loan Info Grid
   ======================================== */
.loan-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
    padding: 1.25rem 1.5rem;
}

.loan-info-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem;
    background: var(--glass-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-secondary);
    transition: all 0.3s ease;
}

.loan-progress-section {
    padding: 0 1.5rem 1rem 1.5rem;
}

.loan-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.loan-progress-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.loan-progress-value {
    font-weight: 700;
    color: #fbbf24;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

.loan-description {
    margin: 0 1.5rem 1rem 1.5rem;
    padding: 0.75rem;
    background: var(--glass-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-secondary);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.loan-actions {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border-primary);
}

.loan-info-item:hover {
    background: var(--bg-hover);
    border-color: var(--border-glow);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.loan-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.loan-info-content {
    flex: 1;
    min-width: 0;
}

.loan-info-content label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.375rem;
    font-weight: 700;
}

.loan-info-content span {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ========================================
   Chart Container
   ======================================== */
.chart-container {
    min-height: 320px;
    position: relative;
    padding: 1.5rem;
}

.chart-container canvas {
    max-height: 350px;
}

/* ========================================
   Empty State
   ======================================== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state i.fa-6x,
.empty-state i:not(.btn i) {
    font-size: 4rem !important;
    margin-bottom: 1.5rem;
    display: block;
    background: linear-gradient(135deg, #00d4ff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.8;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.3));
}

.empty-state h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.empty-state .btn {
    margin-top: 0.5rem;
}

.empty-state .btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.empty-state .btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.empty-state .btn-lg i {
    font-size: 1rem !important;
    opacity: 1 !important;
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
    filter: none !important;
    margin: 0 !important;
}

/* ========================================
   Stat Card Variants
   ======================================== */
.stat-card.stat-success {
    border-left: 4px solid var(--success);
}

.stat-card.stat-danger {
    border-left: 4px solid var(--danger);
}

.stat-card.stat-primary {
    border-left: 4px solid var(--accent-cyan);
}

.stat-card.stat-warning {
    border-left: 4px solid var(--warning);
}

.stat-card.stat-info {
    border-left: 4px solid var(--info);
}

/* ========================================
   Payments List
   ======================================== */
.payments-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
}

.payment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--glass-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 1.25rem;
    position: relative;
}

.payment-item:hover {
    background: var(--bg-hover);
    border-color: var(--border-primary);
    transform: translateX(6px);
    box-shadow: var(--shadow-sm);
}

.payment-item.payment-current-month {
    border: 2px solid var(--danger);
    border-left: 4px solid var(--danger);
    box-shadow: 0 0 20px rgba(var(--danger-rgb), 0.2);
}

.payment-item.payment-current-month:hover {
    box-shadow: 0 0 30px rgba(var(--danger-rgb), 0.3);
}

.payment-item.paid-payment {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.08) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-left: 4px solid var(--success);
}

.payment-item.paid-payment:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.12) 100%);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.payment-item.pending-payment {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.08) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-left: 4px solid var(--danger);
}

.payment-item.pending-payment:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.12) 100%);
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.payment-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    text-align: left;
}

.payment-info strong {
    display: block;
    color: var(--text-primary);
    font-size: 1.05rem;
    margin-bottom: 0.375rem;
    font-weight: 700;
}

.payment-info small {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.payment-amount {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    flex-shrink: 0;
}

.payment-amount strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--accent-cyan);
}

.payment-amount small {
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

/* ========================================
   Tables
   ======================================== */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
}

.loans-table,
.amortization-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.loans-table th,
.loans-table td,
.amortization-table th,
.amortization-table td {
    padding: 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-secondary);
}

.loans-table thead,
.amortization-table thead {
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-tertiary));
    color: var(--text-primary);
}

.loans-table thead th,
.amortization-table thead th {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
}

.loans-table tbody tr,
.amortization-table tbody tr {
    transition: all 0.3s ease;
}

.loans-table tbody tr:hover,
.amortization-table tbody tr:hover {
    background: var(--bg-hover);
}

.amortization-table tbody tr.paid {
    background: rgba(var(--success-rgb), 0.1);
    opacity: 0.6;
}

.loans-table .actions,
.amortization-table .actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

/* ========================================
   Badges
   ======================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge-success {
    background: rgba(var(--success-rgb), 0.15);
    color: var(--success);
    box-shadow: 0 0 15px rgba(var(--success-rgb), 0.2);
}

.badge-danger {
    background: rgba(var(--danger-rgb), 0.15);
    color: var(--danger);
    box-shadow: 0 0 15px rgba(var(--danger-rgb), 0.2);
}

.badge-warning {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

.badge-info {
    background: rgba(6, 182, 212, 0.15);
    color: var(--info);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

/* ========================================
   Buttons - Neon Style
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-family);
    white-space: nowrap;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(var(--accent-cyan-rgb), 0.3);
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow-cyan);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-tertiary));
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(var(--success-rgb), 0.3);
}

.btn-success:hover {
    box-shadow: var(--shadow-glow-success);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(var(--danger-rgb), 0.3);
}

.btn-danger:hover {
    box-shadow: var(--shadow-glow-danger);
}

.btn-warning {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-info {
    background: linear-gradient(135deg, var(--info), #0891b2);
    color: var(--text-primary);
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1.125rem 2.25rem;
    font-size: 1.05rem;
}

.btn-lg i {
    font-size: 1rem;
}

/* ========================================
   Forms
   ======================================== */
.loan-form {
    padding: 1.5rem;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-primary);
}

.form-section h3 {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

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

.form-group label {
    font-weight: 700;
    margin-bottom: 0.625rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-family: var(--font-family);
    transition: all 0.3s ease;
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(var(--accent-cyan-rgb), 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-primary);
}

/* ========================================
   Profile Settings
   ======================================== */
.profile-preview-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(var(--accent-cyan-rgb), 0.05), rgba(var(--accent-purple-rgb), 0.05));
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid rgba(var(--accent-cyan-rgb), 0.1);
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(var(--accent-cyan-rgb), 0.3);
}

.profile-avatar-large i {
    font-size: 2.5rem;
    color: white;
}

.profile-info-preview {
    flex: 1;
}

.profile-info-preview h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.profile-info-preview p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-info-preview p i {
    color: var(--accent-cyan);
}

.profile-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-primary), transparent);
    margin: 2rem 0;
}

.icon-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.icon-selector-item {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-primary);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.icon-selector-item i {
    font-size: 1.75rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.icon-selector-item:hover {
    background: var(--glass-bg);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--accent-cyan-rgb), 0.2);
}

.icon-selector-item:hover i {
    color: var(--accent-cyan);
    transform: scale(1.1);
}

.icon-selector-item.active {
    background: linear-gradient(135deg, rgba(var(--accent-cyan-rgb), 0.15), rgba(var(--accent-purple-rgb), 0.15));
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(var(--accent-cyan-rgb), 0.1);
}

.icon-selector-item.active i {
    color: var(--accent-cyan);
    filter: drop-shadow(0 0 8px var(--accent-cyan));
}

.form-control-modern {
    padding: 0.875rem 1.125rem;
    border: 2px solid var(--border-primary);
    background: var(--bg-tertiary);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control-modern:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 4px rgba(var(--accent-cyan-rgb), 0.1);
    background: var(--bg-secondary);
}

.form-group label i {
    margin-right: 0.5rem;
    color: var(--accent-cyan);
}

/* ========================================
   Credentials Settings
   ======================================== */
.credentials-notice {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(14, 165, 233, 0.08));
    border-radius: 12px;
    border: 1px solid rgba(6, 182, 212, 0.2);
    margin-bottom: 2rem;
}

.credentials-notice-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(14, 165, 233, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.credentials-notice-icon i {
    font-size: 1.5rem;
    color: #06b6d4;
}

.credentials-notice-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.credentials-notice-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.credentials-section {
    margin-bottom: 2rem;
}

.credentials-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-primary);
}

.credentials-section-header i {
    font-size: 1.25rem;
    color: var(--accent-cyan);
}

.credentials-section-header h4 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.credentials-password-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    flex: 1;
    padding-right: 3rem;
}

.password-toggle-btn {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.password-toggle-btn:hover {
    color: var(--accent-cyan);
}

.password-toggle-btn i {
    font-size: 1rem;
}

.password-strength-bar {
    width: 100%;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.password-strength-fill {
    height: 100%;
    width: 0%;
    background: var(--danger);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-strength-fill.weak {
    width: 33%;
    background: #ef4444;
}

.password-strength-fill.medium {
    width: 66%;
    background: #f59e0b;
}

.password-strength-fill.strong {
    width: 100%;
    background: #10b981;
}

.credentials-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-primary);
}

/* ========================================
   Coupon Settings
   ======================================== */
.coupon-notice {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(139, 92, 246, 0.08));
    border-radius: 12px;
    border: 1px solid rgba(168, 85, 247, 0.2);
    margin-bottom: 2rem;
}

.coupon-notice-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(139, 92, 246, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.coupon-notice-icon i {
    font-size: 1.5rem;
    color: #a855f7;
}

.coupon-notice-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.coupon-notice-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.coupon-code-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(var(--accent-cyan-rgb), 0.05), rgba(var(--accent-purple-rgb), 0.05));
    border-radius: 16px;
    border: 2px dashed var(--accent-cyan);
    text-align: center;
}

.coupon-code-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.coupon-code-label i {
    color: var(--accent-cyan);
}

.coupon-code-value {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--accent-cyan);
    text-shadow: 0 0 20px rgba(var(--accent-cyan-rgb), 0.3);
    padding: 0.5rem 1.5rem;
    background: rgba(var(--accent-cyan-rgb), 0.1);
    border-radius: 12px;
}

.coupon-code-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.coupon-code-actions .btn {
    flex: 0 1 auto;
    min-width: 150px;
}

.coupon-comparison-section {
    margin: 2rem 0;
}

.coupon-comparison-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.coupon-comparison-title i {
    color: var(--accent-cyan);
}

.coupon-comparison-subtitle {
    margin: 0 0 1.5rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.coupon-comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.coupon-comparison-card {
    position: relative;
    padding: 1.75rem;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-primary);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.coupon-comparison-card--regular {
    opacity: 0.8;
}

.coupon-comparison-card--discount {
    background: linear-gradient(135deg, rgba(var(--accent-cyan-rgb), 0.05), rgba(var(--accent-purple-rgb), 0.05));
    border-color: var(--accent-cyan);
    box-shadow: 0 8px 24px rgba(var(--accent-cyan-rgb), 0.2);
}

.coupon-comparison-badge {
    position: absolute;
    top: -12px;
    right: 1.5rem;
    padding: 0.35rem 0.85rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.coupon-comparison-badge i {
    font-size: 0.7rem;
}

.coupon-comparison-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.coupon-comparison-header i {
    font-size: 1.1rem;
}

.coupon-comparison-card--discount .coupon-comparison-header {
    color: var(--accent-cyan);
}

.coupon-comparison-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.coupon-price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.coupon-price-amount--old {
    font-size: 1.5rem;
    text-decoration: line-through;
    color: var(--text-tertiary);
    opacity: 0.6;
}

.coupon-price-amount--new {
    color: var(--accent-cyan);
    text-shadow: 0 0 20px rgba(var(--accent-cyan-rgb), 0.3);
}

.coupon-price-period {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.coupon-comparison-label {
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.coupon-savings-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.15));
    color: #10b981;
    font-weight: 700;
    border-radius: 20px;
    font-size: 0.85rem;
}

.coupon-comparison-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.coupon-comparison-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.coupon-comparison-features i {
    color: var(--accent-cyan);
    font-size: 0.85rem;
}

.coupon-total-savings {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(5, 150, 105, 0.08));
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.coupon-total-savings-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.coupon-total-savings-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.coupon-total-savings-icon i {
    font-size: 1.5rem;
    color: #10b981;
}

.coupon-total-savings-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.coupon-total-savings-amount {
    font-size: 1.75rem;
    font-weight: 800;
    color: #10b981;
}

.coupon-instructions {
    margin-top: 2rem;
}

.coupon-instructions-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1.25rem 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.coupon-instructions-title i {
    color: #f59e0b;
}

.coupon-instructions-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step-counter;
}

.coupon-instructions-list li {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 1px solid var(--border-primary);
}

.coupon-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.coupon-instructions-list li strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.coupon-instructions-list li p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ========================================
   Affiliate Settings
   ======================================== */
.affiliate-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

.affiliate-info-column,
.affiliate-form-column {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.affiliate-info-column .card,
.affiliate-form-column .card {
    height: 100%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.affiliate-settings-grid * {
    box-sizing: border-box;
}

.affiliate-program-banner {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(139, 92, 246, 0.08));
    border-radius: 12px;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.affiliate-program-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(139, 92, 246, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.affiliate-program-icon i {
    font-size: 1.5rem;
    color: #a855f7;
}

.affiliate-program-banner h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.affiliate-program-banner p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.affiliate-benefits h4 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.affiliate-benefits h4 i {
    color: #f59e0b;
}

.affiliate-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.affiliate-benefits-list li {
    display: flex;
    gap: 1rem;
    padding: 0.875rem;
    margin-bottom: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 10px;
    border: 1px solid var(--border-primary);
    transition: all 0.3s ease;
}

.affiliate-benefits-list li:hover {
    background: var(--glass-bg);
    border-color: var(--accent-cyan);
    transform: translateX(4px);
}

.affiliate-benefits-list li > i {
    font-size: 1.25rem;
    color: var(--accent-cyan);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.affiliate-benefits-list li strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.affiliate-benefits-list li p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.affiliate-notice {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(251, 146, 60, 0.08));
    border-radius: 12px;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.affiliate-notice-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(251, 146, 60, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.affiliate-notice-icon i {
    font-size: 1.25rem;
    color: #f59e0b;
}

.affiliate-notice h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.affiliate-notice p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.affiliate-form-section {
    margin-bottom: 1.5rem;
}

.affiliate-form-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-primary);
}

.affiliate-form-section-header i {
    font-size: 1.25rem;
    color: var(--accent-cyan);
}

.affiliate-form-section-header h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.affiliate-form-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-primary);
}

/* ========================================
   Modal
   ======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(10px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    max-width: 650px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-primary);
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-tertiary);
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--danger);
    background: var(--bg-hover);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 2rem;
    border-top: 1px solid var(--border-primary);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* ========================================
   Progress Bar
   ======================================== */
.progress-bar {
    width: 100%;
    height: 14px;
    background: rgba(251, 191, 36, 0.2);
    border-radius: 7px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    transition: width 0.6s ease;
    border-radius: 7px;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.6);
}

/* ========================================
   Info Grid
   ======================================== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding: 1.25rem;
    background: var(--glass-bg);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent-cyan);
    border: 1px solid var(--border-secondary);
}

.info-item label {
    font-weight: 700;
    color: var(--text-tertiary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-item span {
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 700;
}

/* ========================================
   Alert
   ======================================== */
.alert {
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert i {
    font-size: 1.35rem;
    flex-shrink: 0;
}

.alert-success {
    background: rgba(var(--success-rgb), 0.1);
    color: var(--success);
    border-left-color: var(--success);
}

.alert-danger {
    background: rgba(var(--danger-rgb), 0.1);
    color: var(--danger);
    border-left-color: var(--danger);
}

.alert-warning {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-left-color: #ef4444;
}

.alert-info {
    background: rgba(6, 182, 212, 0.1);
    color: var(--info);
    border-left-color: var(--info);
}

/* ========================================
   Utilities
   ======================================== */
.text-muted {
    color: var(--text-secondary);
}

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

.hidden {
    display: none !important;
}

/* ========================================
   Responsive
   ======================================== */
@media (min-width: 769px) and (max-width: 1024px) {
    :root {
        --sidebar-width: 240px;
    }
    
    /* Stats grid en 2 filas de 2 en tablets */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Income stats grid en 2 filas de 2 en tablets */
    .income-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Loans grid en 2 columnas en tablets */
    .loans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop y Tablet: Elementos comunes */
@media (min-width: 769px) {
    /* Ocultar elementos móviles */
    .mobile-menu-btn {
        display: none !important;
    }
    
    .mobile-overlay {
        display: none !important;
        pointer-events: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
    
    .mobile-menu-btn {
        display: none !important;
    }
    
    /* Asegurar que sidebar esté visible */
    .sidebar {
        transform: translateX(0) !important;
    }
    
    /* Asegurar margin del contenido principal */
    .main-wrapper {
        margin-left: var(--sidebar-width) !important;
    }
}

/* Desktop Grande: Grids completos */
@media (min-width: 1025px) {
    /* Asegurar grids en fila en desktop */
    .stats-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    
    .income-stats-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    
    .dashboard-grid {
        grid-template-columns: 65fr 35fr !important;
    }
    
    .loan-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Ocultar botón superior en móvil */
    .mobile-menu-btn {
        display: none !important;
    }
    
    .mobile-overlay {
        display: block;
    }
    
    /* Sidebar oculto por defecto en móvil */
    .sidebar {
        transform: translateX(-100%);
        z-index: 1001;
        width: 280px;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    }
    
    /* Enlaces del sidebar más grandes y táctiles */
    .sidebar-nav-link {
        min-height: 48px;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .sidebar-nav-link i {
        font-size: 1.5rem;
    }
    
    .sidebar-logout-btn {
        min-height: 48px;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Main content ocupa todo el ancho en móvil */
    .main-wrapper {
        margin-left: 0;
        width: 100%;
    }
    
    /* Ajustar padding del contenido principal */
    .main-content {
        padding: 1rem;
        padding-top: 1rem;
        padding-bottom: 5.5rem; /* Espacio para la barra inferior */
    }

    /* Barra inferior móvil */
    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 0.25rem;
        padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
        background: rgba(10, 14, 23, 0.95);
        backdrop-filter: blur(12px);
        border-top: 1px solid var(--border-primary);
        z-index: 1200;
    }

    /* Evitar que la barra inferior tape el logout en sidebar */
    .sidebar {
        padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
    }

    .sidebar-footer {
        padding-bottom: calc(1rem + 5.5rem + env(safe-area-inset-bottom));
    }

    .mobile-bottom-link,
    .mobile-bottom-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
        padding: 0.5rem 0;
        color: var(--text-secondary);
        background: transparent;
        border: none;
        text-decoration: none;
        font-size: 0.7rem;
        font-weight: 600;
        cursor: pointer;
    }

    .mobile-bottom-link i,
    .mobile-bottom-btn i {
        font-size: 1.2rem;
    }

    .mobile-bottom-link.active,
    .mobile-bottom-btn.active {
        color: var(--accent-cyan);
    }

    .mobile-bottom-link:active,
    .mobile-bottom-btn:active {
        transform: scale(0.96);
    }

    .add-payment-row-btn {
        display: none !important;
    }

    .mobile-hide {
        display: none !important;
    }

    .payments-top {
        display: flex !important;
        flex-direction: column;
    }

    .payments-top .payments-filters {
        order: 1 !important;
    }

    .payments-top .stats-grid {
        order: 2 !important;
    }

    .dashboard-main {
        display: flex;
        flex-direction: column;
    }

    .dashboard-main .dashboard-months {
        order: 1;
    }

    .dashboard-main .dashboard-stats {
        order: 2;
    }
    
    /* Page header responsive */
    .page-header {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .page-header-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .page-header-actions .btn {
        flex: 1;
        min-width: 120px;
    }
    
    /* Stats grid en columna */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Income stats grid en columna */
    .income-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Income items responsive */
    .income-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .income-item-left {
        width: 100%;
    }
    
    .income-item-right {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .income-item-description {
        white-space: normal;
    }
    
    /* Dashboard grid en columna */
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    /* Loans grid en columna */
    .loans-grid {
        grid-template-columns: 1fr;
    }
    
    /* Monthly payment card */
    .monthly-payment-header {
        flex-direction: row;
        padding: 1rem;
    }
    
    .monthly-payment-icon {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
    
    .monthly-payment-amount {
        font-size: 1.5rem;
    }
    
    .monthly-payment-breakdown {
        padding: 0.875rem 1rem 1rem 1rem;
    }
    
    /* Tablas responsive */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .amortization-table,
    .loans-table {
        font-size: 0.85rem;
    }
    
    .amortization-table th,
    .amortization-table td,
    .loans-table th,
    .loans-table td {
        padding: 0.75rem 0.5rem;
    }
    
    /* Botones más grandes para táctil */
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .btn-sm {
        min-height: 38px;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Inputs más grandes para táctil */
    input,
    select,
    textarea {
        min-height: 44px;
        font-size: 16px !important; /* Previene zoom en iOS */
    }
    
    /* Cards con menos padding */
    .card {
        margin-bottom: 1rem;
    }
    
    .card-header h3 {
        font-size: 1.1rem;
    }
    
    /* Form groups */
    .form-group {
        margin-bottom: 1rem;
    }
    
    /* Loan info grid en columna */
    .loan-info-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    /* Payment items */
    .payment-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .payment-amount {
        width: 100%;
        align-items: flex-start;
        text-align: left;
    }
    
    /* Modales */
    .modal-content {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }
}

@media (max-width: 480px) {
    /* Botón móvil más pequeño */
    .mobile-menu-btn {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
        top: 0.75rem;
        left: 0.75rem;
    }
    
    /* Main content en móvil pequeño */
    .main-content {
        padding: 0.75rem;
        padding-top: 0.75rem;
        padding-bottom: 5.5rem; /* Barra inferior */
    }
    
    /* Page header */
    .page-header-title h1 {
        font-size: 1.5rem;
    }
    
    /* Stats */
    .stat-card {
        padding: 1rem;
    }
    
    .stat-content h3 {
        font-size: 1.25rem;
    }
    
    .stat-content p {
        font-size: 0.75rem;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
    
    /* Monthly payment */
    .monthly-payment-amount {
        font-size: 1.35rem;
    }
    
    /* Chart containers */
    .chart-container {
        padding: 1rem;
        min-height: 250px;
    }
    
    /* Form elements aún más grandes */
    input,
    select,
    textarea {
        font-size: 16px !important;
        padding: 0.875rem;
    }
    
    /* Botones apilados en columna */
    .page-header-actions {
        flex-direction: column;
    }
    
    .page-header-actions .btn {
        width: 100%;
    }
    
    /* Loan actions */
    .loan-actions {
        flex-wrap: wrap;
    }
    
    .loan-actions .btn {
        flex: 1;
        min-width: 100px;
    }
}

@media (max-width: 900px) {
    .payments-top {
        display: flex !important;
        flex-direction: column;
    }

    .payments-top .payments-filters {
        order: 1 !important;
    }

    .payments-top .stats-grid {
        order: 2 !important;
    }
}

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(var(--accent-cyan-rgb), 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(var(--accent-cyan-rgb), 0.5);
    }
}

.card,
.stat-card {
    animation: fadeInUp 0.5s ease;
}

/* ========================================
   Configuration Page - Tabs
   ======================================== */
.config-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    background: var(--bg-card);
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
    position: relative;
    z-index: 100;
}

.config-tab {
    flex: 1;
    min-width: 150px;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    z-index: 101;
    pointer-events: auto !important;
    user-select: none;
}

.config-tab:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.config-tab.active {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: white;
    box-shadow: 0 4px 12px rgba(var(--accent-cyan-rgb), 0.3);
}

.config-tab-content {
    display: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

.config-tab-content.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.settings-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

/* ========================================
   Configuration Items List
   ======================================== */
.config-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.config-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.config-item:hover {
    background: var(--bg-hover);
    transform: translateX(4px);
}

.config-item-inactive {
    opacity: 0.5;
}

.config-item-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.config-item-icon.blue {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: white;
    box-shadow: 0 4px 12px rgba(var(--accent-cyan-rgb), 0.3);
}

.config-item-icon.green {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.config-item-icon.red {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.config-item-icon.purple {
    background: linear-gradient(135deg, #a855f7, #9333ea);
    color: white;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.config-item-icon.orange {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.config-item-info {
    flex: 1;
    min-width: 0;
}

.config-item-info strong {
    display: block;
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.config-item-info small {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.config-item-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.config-item-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Drag & Drop Styles */
.config-item.draggable {
    cursor: move;
    cursor: grab;
}

.config-item.draggable:active {
    cursor: grabbing;
}

.config-item.dragging {
    opacity: 0.5;
    transform: scale(0.95);
    cursor: grabbing;
}

.config-item.drag-over {
    border-top: 3px solid var(--accent-cyan);
    padding-top: calc(1rem - 2px);
}

.config-item-drag-handle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    cursor: grab;
    flex-shrink: 0;
    order: -1;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.config-item:hover .config-item-drag-handle {
    opacity: 1;
}

.config-item-drag-handle:active {
    cursor: grabbing;
}

/* ========================================
   Modal Styles (Extended)
   ======================================== */

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-primary);
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

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

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border-primary);
    justify-content: flex-end;
}

/* ========================================
   Annual View Page
   ======================================== */
.annual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.annual-month-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.annual-month-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-cyan);
}

.annual-month-card.current-month {
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 0 20px rgba(var(--accent-cyan-rgb), 0.3);
}

.annual-month-card.deficit-month {
    border-left: 4px solid var(--danger);
}

.annual-month-card.surplus-month {
    border-left: 4px solid var(--success);
}

.annual-month-header {
    padding: 1rem 1.25rem;
    background: var(--glass-bg);
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.annual-month-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.month-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.month-expense-indicators {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-top: 0.35rem;
}

.expense-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: help;
}

.expense-indicator:hover {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.expense-indicator i {
    font-size: 0.75rem;
}

/* Switch Toggle (global) */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ef4444;
    transition: 0.4s;
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.switch input:checked + .slider {
    background-color: #10b981;
}

.switch input:checked + .slider:before {
    transform: translateX(22px);
}

/* Indicadores importantes con animación */
.expense-important {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
    animation: pulse-important 2s ease-in-out infinite;
}

.expense-important:hover {
    transform: scale(1.2) !important;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.5) !important;
}

@keyframes pulse-important {
    0%, 100% {
        box-shadow: 0 0 10px rgba(239, 68, 68, 0.3), 0 0 20px rgba(239, 68, 68, 0.1);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 15px rgba(239, 68, 68, 0.5), 0 0 30px rgba(239, 68, 68, 0.2);
        transform: scale(1.05);
    }
}

.month-badge.current {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: white;
    box-shadow: 0 2px 8px rgba(var(--accent-cyan-rgb), 0.3);
}

.month-badge.past {
    background: rgba(100, 116, 139, 0.2);
    color: var(--text-secondary);
}

.month-badge.future {
    background: rgba(168, 139, 250, 0.2);
    color: var(--accent-purple);
}

.annual-month-body {
    padding: 1rem 1.25rem;
    flex: 1;
}

.annual-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-secondary);
}

.annual-stat-row:last-child {
    border-bottom: none;
}

.annual-stat-row.total {
    border-top: 2px solid var(--border-primary);
    margin-top: -1px;
    padding-top: 0.65rem;
    font-weight: 600;
}

.annual-stat-row-clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.annual-stat-row-clickable:hover {
    background: rgba(0, 212, 255, 0.1);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    border-radius: 8px;
}

.annual-stat-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.annual-stat-label i {
    font-size: 0.75rem;
}

.annual-stat-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
}

.annual-stat-value.success {
    color: var(--success);
}

.annual-stat-value.danger {
    color: var(--danger);
}

.annual-limit-list {
    margin-top: 0.45rem;
    padding: 0.45rem 0.6rem;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.annual-limit-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #fca5a5;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.25rem;
}

.annual-limit-item {
    font-size: 0.78rem;
    color: #fecaca;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
}

.annual-limit-item + .annual-limit-item {
    margin-top: 0.2rem;
}

.annual-limit-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 55%;
}

.annual-limit-values {
    color: rgba(254, 202, 202, 0.85);
    text-align: right;
    white-space: nowrap;
}

.annual-month-footer {
    padding: 0.9rem 1.25rem;
    background: var(--glass-bg);
    border-top: 1px solid var(--border-primary);
    margin-top: auto;
}

.annual-month-footer.deficit {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05));
}

.annual-month-footer.surplus {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));
}

.annual-balance {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.balance-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.balance-amount {
    font-size: 1.15rem;
    font-weight: 700;
}

.annual-month-footer.deficit .balance-amount {
    color: var(--danger);
    text-shadow: 0 0 10px rgba(var(--danger-rgb), 0.3);
}

.annual-month-footer.surplus .balance-amount {
    color: var(--success);
    text-shadow: 0 0 10px rgba(var(--success-rgb), 0.3);
}

.year-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--glass-bg);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.year-selector label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    white-space: nowrap;
}

.year-selector label i {
    font-size: 0.9rem;
    opacity: 0.8;
}

.year-selector .form-control {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.year-selector .form-control:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(var(--accent-cyan-rgb), 0.1);
}

.year-selector .form-control:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(var(--accent-cyan-rgb), 0.2);
}

/* ========================================
   Responsive: Config Page
   ======================================== */
@media (max-width: 768px) {
    .config-tabs {
        flex-direction: column;
    }
    
    .config-tab {
        min-width: auto;
    }
    
    .config-item {
        flex-wrap: wrap;
    }
    
    .config-item-amount {
        width: 100%;
        text-align: left;
        margin-top: 0.5rem;
    }
    
    .profile-preview-section {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .profile-avatar-large {
        width: 70px;
        height: 70px;
    }
    
    .profile-avatar-large i {
        font-size: 2rem;
    }
    
    .profile-info-preview h4 {
        font-size: 1.25rem;
    }
    
    .profile-info-preview p {
        justify-content: center;
        font-size: 0.85rem;
    }
    
    .icon-selector-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 0.5rem;
    }
    
    .icon-selector-item i {
        font-size: 1.5rem;
    }
    
    .credentials-notice {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }
    
    .credentials-notice-icon {
        width: 40px;
        height: 40px;
    }
    
    .credentials-notice-icon i {
        font-size: 1.25rem;
    }
    
    .credentials-password-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .credentials-actions {
        justify-content: stretch;
    }
    
    .credentials-actions .btn {
        width: 100%;
    }
    
    .coupon-notice {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }
    
    .coupon-notice-icon {
        width: 40px;
        height: 40px;
    }
    
    .coupon-code-display {
        padding: 1.5rem;
    }
    
    .coupon-code-value {
        font-size: 1.5rem;
        padding: 0.5rem 1rem;
    }
    
    .coupon-code-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .coupon-code-actions .btn {
        width: 100%;
        min-width: auto;
    }
    
    .coupon-comparison-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .coupon-comparison-badge {
        right: 50%;
        transform: translateX(50%);
    }
    
    .coupon-total-savings {
        padding: 1.25rem;
    }
    
    .coupon-total-savings-content {
        flex-direction: column;
        text-align: center;
    }
    
    .coupon-total-savings-amount {
        font-size: 1.5rem;
    }
    
    .coupon-instructions-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .affiliate-settings-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .affiliate-program-banner {
        flex-direction: column;
        padding: 1.25rem;
    }
    
    .affiliate-program-icon {
        width: 40px;
        height: 40px;
    }
    
    .affiliate-program-icon i {
        font-size: 1.25rem;
    }
    
    .affiliate-benefits-list li {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .affiliate-notice {
        flex-direction: column;
        padding: 1rem;
    }
    
    .modal {
        padding: 1rem;
    }
    
    .modal-content {
        max-width: 100%;
    }
    
    /* Annual Page Mobile */
    .annual-grid {
        grid-template-columns: 1fr;
    }
    
    .year-selector {
        width: 100%;
        margin-top: 1rem;
        padding: 0.75rem;
    }
    
    .year-selector .form-control {
        flex: 1;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========================================
   Add Expense Button
   ======================================== */
.btn-add-expense {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: white !important;
    text-decoration: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    flex-shrink: 0;
}

.btn-add-expense:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    color: white !important;
}

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

/* ========================================
   Affiliates Page
   ======================================== */
.affiliates-table {
    border-collapse: separate;
    border-spacing: 0 0.75rem;
    table-layout: fixed;
    width: 100%;
}

.affiliates-table thead th {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    padding: 0.75rem 1rem;
    text-align: left;
}

.affiliates-table tbody tr {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-primary);
}

.affiliates-table tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    color: var(--text-secondary);
}

.affiliates-table tbody tr td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.affiliates-table tbody tr td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.affiliates-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.06);
}

.affiliates-table .email-cell {
    font-weight: 600;
    color: var(--text-primary);
}

.affiliate-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.affiliate-pill--active {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.affiliate-pill--pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.affiliate-pill--inactive {
    background: rgba(100, 116, 139, 0.15);
    color: #64748b;
}

.affiliate-pill--plan {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}

.affiliate-amount {
    font-weight: 700;
    color: #c4b5fd;
}

.affiliate-stat-note {
    display: inline-block;
    margin-top: 0.35rem;
    color: #fbbf24;
    font-size: 0.75rem;
    font-weight: 600;
}

.affiliates-stats-grid {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 0.85rem !important;
}

.affiliates-stats-grid .stat-card {
    min-width: 0;
    overflow: hidden;
}

.affiliates-stats-grid .stat-content h3 {
    font-size: 1.4rem;
}

.affiliates-stats-grid .stat-content p {
    font-size: 0.85rem;
}

@media (max-width: 1200px) {
    .affiliates-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .affiliates-stats-grid {
        grid-template-columns: 1fr;
    }
}

.affiliate-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 14px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #e2e8f0;
}

.affiliate-banner strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.affiliate-banner span {
    color: #cbd5e1;
    font-size: 0.9rem;
}

.affiliate-banner--success {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.25);
    color: #d1fae5;
    justify-content: flex-start;
}

.affiliate-banner--pending {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.25);
    color: #fde68a;
    justify-content: flex-start;
}

.affiliate-banner--error {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fecaca;
    justify-content: space-between;
    align-items: center;
}

.affiliate-banner--error i {
    font-size: 1.5rem;
    color: #ef4444;
}

.affiliate-banner--error strong {
    color: #fff;
}

.affiliate-banner--error p {
    color: #fecaca;
    margin-top: 0.35rem;
}

.affiliate-banner--error .btn {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .affiliate-banner--error {
        flex-direction: column;
        gap: 1rem;
    }
    
    .affiliate-banner--error .btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .affiliate-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Banner espectacular de pago de afiliados */
.affiliate-payout-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);
    border: 2px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* Coin rain para el banner de afiliados */
.affiliate-payout-banner .coin-rain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.coin-fall {
    position: absolute;
    top: -60px;
    animation: coinFall var(--fall, 3s) ease-in forwards;
}

.coin {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #7a4b00;
    background: radial-gradient(circle at 50% 45%, #ffe79a 0%, #f7c948 55%, #d69a25 100%);
    border: 1px solid rgba(122, 75, 0, 0.35);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.12), 0 6px 12px rgba(0,0,0,0.2);
    opacity: 0.92;
    animation: coinSpin var(--spinDuration, 1.4s) linear infinite;
}

.coin::before {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    border: 1px solid rgba(122, 75, 0, 0.35);
}

.coin::after {
    content: '€';
    font-size: 0.85rem;
}

@keyframes coinFall {
    0% { transform: translate3d(0, 0, 0); opacity: 0; }
    10% { opacity: 0.9; }
    100% { transform: translate3d(var(--drift, 0px), 120vh, 0); opacity: 0; }
}

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

.affiliate-payout-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    animation: pulse-glow 3s ease-in-out infinite;
    z-index: 0;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.payout-banner-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    z-index: 2;
}

.payout-banner-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
    animation: float-rocket 2s ease-in-out infinite;
}

@keyframes float-rocket {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.payout-banner-icon i {
    font-size: 1.75rem;
    color: #ffffff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.payout-banner-text {
    flex: 1;
}

.payout-banner-text h3 {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.payout-banner-text p {
    margin: 0;
    font-size: 0.95rem;
    color: #d1fae5;
    line-height: 1.5;
}

.btn-payout {
    position: relative;
    z-index: 2;
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
    transition: all 0.3s ease;
}

.btn-payout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
}

.btn-payout i {
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .affiliate-payout-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem 1.5rem;
    }
    
    .payout-banner-content {
        width: 100%;
    }
    
    .btn-payout {
        width: 100%;
        justify-content: center;
    }
}

/* Modal de confirmación de pago de afiliados */
#payoutSuccessModal .modal-content {
    position: relative;
    overflow: hidden;
}

#payoutSuccessModal .modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem 1.5rem;
    border-bottom: none;
}

#payoutSuccessModal .modal-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
    animation: success-icon-pop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes success-icon-pop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

#payoutSuccessModal .modal-success-icon i {
    font-size: 2.5rem;
    color: #ffffff;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

#payoutSuccessModal .modal-header h2 {
    margin: 0 0 0.75rem;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #86efac);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#payoutSuccessModal .modal-header p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 420px;
}

#payoutSuccessModal .modal-footer {
    padding: 1rem 1.5rem 2rem;
    display: flex;
    justify-content: center;
}

#payoutSuccessModal .btn-primary {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border: 1px solid rgba(16, 185, 129, 0.6) !important;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
    padding: 0.85rem 2rem;
    font-weight: 600;
}

#payoutSuccessModal .btn-primary:hover {
    filter: brightness(1.05);
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

.modal-confetti-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
}

.affiliates-link-card {
    margin-bottom: 1.5rem;
}

.affiliate-link-subtitle {
    margin: 0 0 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.affiliate-link-box {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.affiliate-link-input {
    flex: 1;
    min-width: 260px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(15, 23, 42, 0.7);
    border: 2px dashed rgba(56, 189, 248, 0.5);
    border-radius: 12px;
    padding: 0.6rem 0.9rem;
}

.affiliate-link-input i {
    color: var(--accent-cyan);
}

.affiliate-link-input .form-control {
    border: none;
    background: transparent;
    padding: 0;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 2.2rem;
    width: 100%;
    height: 2.2rem;
    white-space: nowrap;
    overflow-x: auto;
    text-overflow: clip;
}

.affiliate-link-input .form-control:focus {
    box-shadow: none;
    outline: none;
}

.affiliate-copy-btn {
    white-space: nowrap;
}

.affiliate-alert {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.affiliate-alert--success {
    background: rgba(16,185,129,0.12);
    border: 1px solid rgba(16,185,129,0.25);
    color: #d1fae5;
}

.affiliate-alert--info {
    background: rgba(56,189,248,0.08);
    border: 1px solid rgba(56,189,248,0.2);
    color: #bae6fd;
}

/* ========================================
   Fixed Expense Modal (Brutal)
   ======================================== */
.fixed-expense-modal {
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.14), transparent 60%), #0b1124;
    border: 1px solid rgba(56, 189, 248, 0.2);
    box-shadow: 0 30px 90px rgba(0,0,0,0.6);
}

.fixed-expense-header h3 {
    font-weight: 800;
}

.fixed-expense-header-icon {
    color: #fbbf24;
}

.fixed-expense-hero {
    padding: 1.1rem 1.6rem 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-align: left;
}

.fixed-expense-hero h4 {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 900;
    color: #e2e8f0;
}

.fixed-expense-hero p {
    margin: 0;
    color: #94a3b8;
    line-height: 1.6;
}

.fixed-expense-body {
    padding: 1rem 1.6rem 1.5rem;
}

.fixed-expense-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 0.9rem;
}

.fixed-expense-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 1rem;
}

.fixed-expense-card label {
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.fixed-expense-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 0.75rem;
}

.fixed-expense-icon-field .icon-selector-btn {
    width: 100%;
    justify-content: center;
}

.icon-selector-compact {
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.7rem;
    min-height: 86px;
}

.icon-selector-compact small {
    font-size: 0.65rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.color-selector-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.7rem;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.7);
    position: relative;
    min-height: 86px;
}

.color-swatch {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.color-select-compact {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.color-selector-compact small {
    font-size: 0.65rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.fixed-expense-card .form-group input,
.fixed-expense-card .form-group select,
.fixed-expense-card .form-group .icon-selector,
.fixed-expense-card .form-group .fixed-expense-toggle {
    margin-bottom: 0.75rem;
}

.fixed-expense-card .form-group small {
    margin-top: -0.35rem;
    display: block;
    font-size: 0.7rem;
    color: var(--text-tertiary);
}

.fixed-expense-dashboard {
    border: 1px solid rgba(56, 189, 248, 0.25);
    background: rgba(15, 23, 42, 0.9);
}

.fixed-expense-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.fixed-expense-dashboard-header h5 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    color: #e2e8f0;
}

.fixed-expense-dashboard-header p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.85rem;
}

.fixed-expense-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
    align-items: center;
}

.fixed-expense-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.fixed-expense-toggle button {
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(2, 6, 23, 0.7);
    color: #cbd5e1;
    border-radius: 12px;
    padding: 0.65rem 0.75rem;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    cursor: pointer;
    min-height: 44px;
}

.fixed-expense-toggle button.is-active {
    border-color: rgba(56, 189, 248, 0.5);
    color: #e2e8f0;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(139, 92, 246, 0.2));
    box-shadow: 0 8px 18px rgba(56, 189, 248, 0.2);
}

@media (max-width: 768px) {
    .fixed-expense-hero,
    .fixed-expense-body {
        padding: 1rem 1.1rem;
    }
    .fixed-expense-grid,
    .fixed-expense-dashboard-grid,
    .fixed-expense-toggle,
    .fixed-expense-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .affiliate-link-box {
        flex-direction: column;
        align-items: stretch;
    }
    .affiliate-copy-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .sidebar,
    .btn,
    .form-actions {
        display: none !important;
    }
    
    .main-wrapper {
        margin-left: 0;
    }
}
