/**
 * Neil Kappel Financial Planning
 * Ultimate Premium Design System v3.0
 * World-class UX/UI with refined aesthetics
 */

/* ============================================
   1. CUSTOM FONTS & IMPORTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800;900&family=Montserrat:wght@400;500;600;700;800;900&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* ============================================
   2. CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
    /* Primary Colors */
    --primary-blue: #0f1923;
    --primary-blue-light: #1a2a3a;
    --primary-blue-dark: #080d12;
    
    /* Accent - Premium Gold Palette */
    --accent-gold: #c9a227;
    --accent-gold-light: #e6c65c;
    --accent-gold-dark: #a68518;
    --accent-gold-subtle: rgba(201, 162, 39, 0.1);
    
    /* Neutral Palette */
    --white: #ffffff;
    --off-white: #fafbfc;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #868e96;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    /* Semantic Colors */
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #3b82f6;
    --info-light: #dbeafe;
    
    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-heading: 'Montserrat', system-ui, sans-serif;
    --font-body: 'Heebo', system-ui, sans-serif;
    
    /* Font Sizes - Fluid Typography */
    --text-xs: clamp(0.7rem, 0.8vw, 0.75rem);
    --text-sm: clamp(0.8rem, 0.9vw, 0.875rem);
    --text-base: clamp(0.9rem, 1vw, 1rem);
    --text-lg: clamp(1rem, 1.2vw, 1.125rem);
    --text-xl: clamp(1.1rem, 1.4vw, 1.25rem);
    --text-2xl: clamp(1.3rem, 1.8vw, 1.5rem);
    --text-3xl: clamp(1.6rem, 2.5vw, 1.875rem);
    --text-4xl: clamp(2rem, 3.5vw, 2.5rem);
    --text-5xl: clamp(2.5rem, 5vw, 3.5rem);
    --text-6xl: clamp(3rem, 6vw, 4.5rem);
    
    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows - Layered System */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.15);
    --shadow-gold: 0 10px 40px rgba(201, 162, 39, 0.2);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    
    /* Layout */
    --container-max: 1200px;
    --header-height: 80px;
}

/* ============================================
   3. CSS RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--gray-800);
    background-color: var(--off-white);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    border-radius: var(--radius-full);
    border: 2px solid var(--gray-100);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-gold-light) 0%, var(--accent-gold) 100%);
}

/* Selection */
::selection {
    background: var(--accent-gold);
    color: var(--white);
}

/* Focus States - Accessibility */
:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: 3px;
}

/* Skip Link */
.skip-link {
    position: fixed;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-blue);
    color: var(--white);
    padding: var(--space-3) var(--space-6);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    z-index: var(--z-tooltip);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   4. TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-blue);
    letter-spacing: -0.02em;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p {
    margin-bottom: var(--space-4);
    color: var(--gray-700);
}

a {
    color: var(--accent-gold-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-gold);
}

strong {
    font-weight: 700;
    color: var(--gray-800);
}

/* ============================================
   5. HEADER & NAVIGATION
   ============================================ */
header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: var(--space-4) 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-base);
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold-dark), var(--accent-gold), var(--accent-gold-light), var(--accent-gold), var(--accent-gold-dark));
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

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

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.brand-wrapper a {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    text-decoration: none;
}

.monogram-header {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--accent-gold);
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    border: 2px solid var(--accent-gold);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
}

.brand-wrapper:hover .monogram-header {
    transform: scale(1.05) rotate(-5deg);
    box-shadow: var(--shadow-gold);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: 0.05em;
}

.brand-slogan {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--accent-gold-dark);
}

/* Navigation */
nav {
    display: flex;
    gap: var(--space-6);
    align-items: center;
}

nav > a {
    position: relative;
    color: var(--gray-700);
    font-weight: 600;
    font-size: var(--text-sm);
    padding: var(--space-2) var(--space-1);
    transition: color var(--transition-fast);
}

nav > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width var(--transition-base);
}

nav > a:hover,
nav > a.active {
    color: var(--primary-blue);
}

nav > a:hover::after,
nav > a.active::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropbtn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--gray-700);
    font-weight: 600;
    font-size: var(--text-sm);
    padding: var(--space-2) var(--space-1);
    cursor: pointer;
    transition: color var(--transition-fast);
    background: none;
    border: none;
    font-family: inherit;
}

.dropbtn:hover {
    color: var(--primary-blue);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + var(--space-2));
    right: 0;
    min-width: 260px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    padding: var(--space-2);
    z-index: var(--z-dropdown);
    animation: dropdownFade var(--transition-fast) ease-out;
}

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

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    color: var(--gray-700);
    font-size: var(--text-sm);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.dropdown-content a i {
    width: 20px;
    color: var(--accent-gold);
}

.dropdown-content a:hover {
    background: var(--gray-50);
    color: var(--primary-blue);
    transform: translateX(-4px);
}

/* CTA Button - Premium */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    color: var(--white) !important;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: var(--text-sm);
    border: none;
    cursor: pointer;
    box-shadow: 
        0 4px 15px rgba(201, 162, 39, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Shimmer effect */
.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.1) 25%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 75%,
        transparent 100%
    );
    transition: left 0.6s ease;
    z-index: -1;
}

/* Glow effect */
.cta-button::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light), var(--accent-gold));
    border-radius: inherit;
    z-index: -2;
    opacity: 0;
    filter: blur(15px);
    transition: opacity 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 30px rgba(201, 162, 39, 0.4),
        0 4px 15px rgba(201, 162, 39, 0.3);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover::after {
    opacity: 0.6;
}

.cta-button:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 
        0 4px 15px rgba(201, 162, 39, 0.3),
        inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Icon animation */
.cta-button i {
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cta-button:hover i {
    transform: translateX(-3px);
}

/* ============================================
   6. HERO SECTION - PREMIUM ANIMATED
   ============================================ */
.hero {
    position: relative;
    background: linear-gradient(-45deg, #0f1923, #1a2a3a, #0a0f14, #152535);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: var(--white);
    padding: var(--space-24) var(--space-6);
    text-align: center;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

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

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201,162,39,0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb1 8s ease-in-out infinite;
    top: -10%;
    right: -10%;
    pointer-events: none;
}

@keyframes floatOrb1 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    25% { transform: translate(-30px, 30px) scale(1.1); opacity: 0.8; }
    50% { transform: translate(-20px, -20px) scale(0.9); opacity: 0.6; }
    75% { transform: translate(20px, 10px) scale(1.05); opacity: 0.7; }
}

/* Second floating orb */
.hero .hero-content::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201,162,39,0.06) 0%, transparent 60%);
    border-radius: 50%;
    animation: floatOrb2 10s ease-in-out infinite;
    bottom: -20%;
    left: -15%;
    pointer-events: none;
    z-index: -1;
}

@keyframes floatOrb2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(40px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--off-white), transparent);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    animation: heroFadeIn 1s ease-out;
}

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

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(201, 162, 39, 0.15);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: var(--space-2) var(--space-5);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-6);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(201, 162, 39, 0); }
}

.hero h1 {
    font-family: var(--font-display);
    color: var(--white);
    font-size: var(--text-6xl);
    font-weight: 600;
    margin-bottom: var(--space-6);
    line-height: 1.1;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 50%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerTitle 4s ease-in-out infinite;
}

@keyframes shimmerTitle {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 200% center; }
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-8);
    line-height: 1.6;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-12);
    margin-bottom: var(--space-10);
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
    position: relative;
    padding: var(--space-4);
}

/* Subtle glow behind stat */
.hero-stat::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s;
}

.hero-stat:hover::before {
    opacity: 1;
}

.hero-stat-value {
    font-family: var(--font-heading);
    font-size: var(--text-5xl);
    font-weight: 800;
    color: var(--accent-gold);
    line-height: 1;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    /* Animation will be triggered by JS */
}

.hero-stat:hover .hero-stat-value {
    transform: scale(1.1);
}

.hero-stat-label {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
    margin-top: var(--space-2);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero-cta {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta .cta-button {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

.cta-button-secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white) !important;
    box-shadow: none;
}

.cta-button-secondary:hover {
    background: var(--white);
    color: var(--primary-blue) !important;
}

/* ============================================
   7. SECTIONS & CONTAINERS
   ============================================ */
section {
    padding: var(--space-20) var(--space-6);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-12);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--accent-gold-subtle);
    color: var(--accent-gold-dark);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.section-title {
    margin-bottom: var(--space-4);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Tool Pages */
.tool-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--white);
    padding: var(--space-16) var(--space-6);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tool-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(201, 162, 39, 0.1) 0%, transparent 70%);
}

.tool-header h1 {
    color: var(--white);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
}

.tool-header h1 i {
    color: var(--accent-gold);
}

.tool-header p {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-lg);
    margin-top: var(--space-4);
}

.tool-container {
    max-width: 900px;
    margin: calc(-1 * var(--space-12)) auto var(--space-12);
    background: var(--white);
    padding: var(--space-10);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    position: relative;
    z-index: 1;
}

/* ============================================
   8. PAIN POINTS SECTION - PREMIUM 3D
   ============================================ */
.pain-points {
    background: var(--white);
    position: relative;
}

/* Decorative background shapes */
.pain-points::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    left: -100px;
    pointer-events: none;
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
    max-width: var(--container-max);
    margin: 0 auto;
    perspective: 1000px;
}

.pain-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.pain-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light), var(--accent-gold));
    background-size: 200% auto;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Gradient overlay on hover */
.pain-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(201, 162, 39, 0.05) 0%,
        transparent 50%,
        rgba(201, 162, 39, 0.02) 100%
    );
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.pain-item:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 15px 30px rgba(201, 162, 39, 0.1);
    border-color: rgba(201, 162, 39, 0.3);
}

.pain-item:hover::before {
    transform: scaleX(1);
    transform-origin: left;
    animation: shimmerBorder 2s ease infinite;
}

@keyframes shimmerBorder {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 200% center; }
}

.pain-item:hover::after {
    opacity: 1;
}

.pain-icon {
    font-size: 60px;
    margin-bottom: var(--space-4);
    display: block;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.pain-item:hover .pain-icon {
    transform: scale(1.15) translateY(-5px);
}

.pain-item h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
    position: relative;
    z-index: 1;
}

.pain-item p {
    color: var(--gray-600);
    margin: 0;
    position: relative;
    z-index: 1;
}

/* ============================================
   9. PROCESS SECTION - PREMIUM 3D
   ============================================ */
.process {
    background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative wave separator */
.process::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,40 C150,80 350,0 500,40 C650,80 800,0 1000,40 C1150,80 1350,0 1440,40 L1440,0 L0,0 Z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-size: cover;
    pointer-events: none;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-8);
    max-width: var(--container-max);
    margin: 0 auto;
    counter-reset: step-counter;
}

.step-card {
    background: var(--white);
    padding: var(--space-10) var(--space-8) var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    position: relative;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid transparent;
    overflow: hidden;
}

/* Animated gradient border on hover */
.step-card::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light), var(--accent-gold));
    background-size: 200% auto;
    border-radius: inherit;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
}

.step-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.12),
        0 10px 30px rgba(201, 162, 39, 0.1);
}

.step-card:hover::after {
    opacity: 1;
    animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
    to { background-position: 200% center; }
}

.step-num {
    position: absolute;
    top: calc(-1 * var(--space-5));
    right: var(--space-6);
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: var(--text-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    box-shadow: 
        0 8px 25px rgba(201, 162, 39, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.step-card:hover .step-num {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 
        0 12px 35px rgba(201, 162, 39, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.step-card h4 {
    margin-top: var(--space-4);
    margin-bottom: var(--space-3);
    font-size: var(--text-xl);
    transition: color 0.3s;
}

.step-card:hover h4 {
    color: var(--accent-gold-dark);
}

.step-card p {
    color: var(--gray-600);
    font-size: var(--text-sm);
    margin: 0;
    line-height: 1.8;
}

/* ============================================
   10. WHY ME SECTION
   ============================================ */
.why-me {
    background: var(--gray-50);
    padding: var(--space-20) var(--space-6);
}

.why-me-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--space-12);
    max-width: var(--container-max);
    margin: 0 auto;
    align-items: start;
}

.why-image {
    text-align: center;
    position: sticky;
    top: calc(var(--header-height) + var(--space-6));
}

.why-image .monogram-large {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--accent-gold);
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    border: 4px solid var(--accent-gold);
    margin: 0 auto var(--space-6);
    box-shadow: var(--shadow-2xl);
}

.why-content h2 {
    margin-bottom: var(--space-6);
}

.why-list {
    list-style: none;
}

.why-list li {
    position: relative;
    padding-right: var(--space-8);
    margin-bottom: var(--space-5);
    font-size: var(--text-lg);
    line-height: 1.7;
}

.why-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    background: var(--accent-gold);
    color: var(--white);
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
}

/* ============================================
   11. QUOTE SECTION
   ============================================ */
.buffett-quote {
    background: var(--white);
    border-right: 5px solid var(--accent-gold);
    padding: var(--space-8);
    margin: var(--space-8) auto;
    max-width: 700px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.quote-icon {
    position: absolute;
    top: calc(-1 * var(--space-5));
    right: var(--space-6);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    font-size: 16px;
    box-shadow: var(--shadow-md);
}

.quote-text {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 500;
    color: var(--primary-blue);
    line-height: 1.5;
    margin-bottom: var(--space-4);
}

.quote-author {
    color: var(--gray-500);
    font-size: var(--text-base);
}

/* ============================================
   12. FORMS & INPUTS
   ============================================ */
.form-group {
    margin-bottom: var(--space-6);
}

.form-group label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
    font-weight: 600;
    color: var(--primary-blue);
    font-size: var(--text-sm);
}

.form-group label i {
    color: var(--accent-gold);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-4);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-family: var(--font-body);
    transition: all var(--transition-fast);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 4px var(--accent-gold-subtle);
    outline: none;
}

.form-hint {
    font-size: var(--text-xs);
    color: var(--gray-500);
    margin-top: var(--space-2);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-6);
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    cursor: pointer;
    margin-bottom: var(--space-4);
}

.checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent-gold);
}

.checkbox-wrapper label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
}

.calc-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--white);
    padding: var(--space-5);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--text-lg);
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.calc-btn:hover {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.calc-btn:active {
    transform: translateY(0);
}

/* Details/Summary for Advanced Options */
details {
    margin-top: var(--space-6);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

details summary {
    padding: var(--space-4) var(--space-5);
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: background var(--transition-fast);
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

details summary::after {
    content: '▼';
    font-size: 10px;
    margin-right: auto;
    transition: transform var(--transition-fast);
}

details[open] summary::after {
    transform: rotate(180deg);
}

details summary:hover {
    background: var(--gray-100);
}

details[open] {
    border-color: var(--accent-gold);
}

details > div,
details > .form-group,
details > .form-row {
    padding: var(--space-5);
    border-top: 1px solid var(--gray-200);
}

/* ============================================
   13. RESULT AREA
   ============================================ */
.result-area {
    margin-top: var(--space-8);
    padding: var(--space-8);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    animation: resultFadeIn var(--transition-slow) ease-out;
}

@keyframes resultFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-area h3 {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 2px solid var(--gray-200);
}

.result-area h3 i {
    color: var(--accent-gold);
}

.result-highlight {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--white);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: var(--space-6);
}

.result-highlight .label {
    font-size: var(--text-sm);
    opacity: 0.8;
    margin-bottom: var(--space-2);
}

.result-highlight .value {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--accent-gold);
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.result-item {
    background: var(--white);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--gray-200);
}

.result-item .label {
    font-size: var(--text-xs);
    color: var(--gray-500);
    margin-bottom: var(--space-1);
}

.result-item .value {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary-blue);
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.comp-card {
    background: var(--white);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 2px solid var(--gray-200);
    transition: all var(--transition-base);
}

.comp-card.highlight {
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-gold);
}

.comp-card .comp-label {
    font-size: var(--text-sm);
    color: var(--gray-500);
    margin-bottom: var(--space-2);
}

.comp-card .comp-val {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--primary-blue);
}

/* Charts */
.chart-container {
    background: var(--white);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    margin: var(--space-6) 0;
}

.chart-container h4 {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    font-size: var(--text-lg);
}

.chart-container h4 i {
    color: var(--accent-gold);
}

/* Result Table */
.result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.result-table th,
.result-table td {
    padding: var(--space-3) var(--space-4);
    text-align: right;
    border-bottom: 1px solid var(--gray-200);
}

.result-table th {
    background: var(--gray-100);
    font-weight: 700;
    color: var(--primary-blue);
}

.result-table tr:hover td {
    background: var(--gray-50);
}

/* Verdict Badges */
.verdict-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: var(--text-lg);
    margin: var(--space-6) 0;
}

.verdict-success {
    background: var(--success-light);
    color: var(--success);
    border: 2px solid var(--success);
}

.verdict-danger {
    background: var(--danger-light);
    color: var(--danger);
    border: 2px solid var(--danger);
}

.verdict-warning {
    background: var(--warning-light);
    color: var(--warning);
    border: 2px solid var(--warning);
}

/* ============================================
   14. KNOWLEDGE CENTER
   ============================================ */
.search-container {
    text-align: center;
    margin-bottom: var(--space-10);
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto var(--space-6);
}

.search-box input {
    width: 100%;
    padding: var(--space-5) var(--space-6) var(--space-5) var(--space-12);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: var(--text-lg);
    transition: all var(--transition-base);
}

.search-box input:focus {
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-gold);
}

.search-box i {
    position: absolute;
    right: var(--space-6);
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 20px;
}

.category-filters {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--white);
    border: 2px solid var(--gray-200);
    padding: var(--space-2) var(--space-5);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-600);
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.filter-btn.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-6);
}

.article-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-gold);
}

.article-tag {
    display: inline-block;
    background: var(--accent-gold-subtle);
    color: var(--accent-gold-dark);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    margin-bottom: var(--space-4);
    align-self: flex-start;
}

.article-card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
    line-height: 1.3;
}

.article-excerpt {
    color: var(--gray-600);
    font-size: var(--text-sm);
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: var(--space-4);
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-4);
    border-top: 1px solid var(--gray-100);
    font-size: var(--text-sm);
    color: var(--gray-500);
}

.read-more {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--accent-gold);
    font-weight: 700;
    transition: gap var(--transition-fast);
}

.read-more:hover {
    gap: var(--space-3);
}

/* ============================================
   15. RESOURCES PAGE
   ============================================ */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-5);
}

.resource-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    background: var(--white);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    text-decoration: none;
    transition: all var(--transition-base);
}

.resource-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-gold);
}

.resource-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.resource-icon i {
    font-size: 20px;
    color: var(--accent-gold);
}

.resource-card h4 {
    font-size: var(--text-base);
    margin-bottom: var(--space-1);
    color: var(--primary-blue);
}

.resource-card p {
    font-size: var(--text-sm);
    color: var(--gray-600);
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   16. ABOUT PAGE
   ============================================ */
.about-intro {
    text-align: center;
    margin-bottom: var(--space-12);
}

.about-profile-wrapper {
    margin-bottom: var(--space-6);
}

.about-profile-img {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--accent-gold);
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    border: 4px solid var(--accent-gold);
    margin: 0 auto;
    box-shadow: var(--shadow-2xl);
}

.about-grid-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-10);
}

.about-card {
    background: var(--white);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--accent-gold);
}

.icon-title {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.icon-title i {
    font-size: 24px;
    color: var(--accent-gold);
}

.icon-title h3 {
    margin: 0;
    font-size: var(--text-xl);
}

.about-card p {
    color: var(--gray-600);
    line-height: 1.8;
}

.custom-list {
    list-style: none;
    padding: 0;
}

.custom-list li {
    position: relative;
    padding-right: var(--space-6);
    margin-bottom: var(--space-3);
    line-height: 1.7;
}

.custom-list li::before {
    content: '•';
    position: absolute;
    right: 0;
    color: var(--accent-gold);
    font-weight: bold;
    font-size: 20px;
}

.about-social-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    background: #0077b5;
    color: var(--white);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-weight: 700;
    transition: all var(--transition-base);
}

.about-social-btn:hover {
    background: #005e93;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

/* ============================================
   17. TESTIMONIALS
   ============================================ */
.testimonials {
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
    max-width: var(--container-max);
    margin: 0 auto;
}

.testimonial-card {
    background: var(--gray-50);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    position: relative;
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-gold);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: var(--space-4);
    right: var(--space-6);
    font-family: var(--font-display);
    font-size: 80px;
    color: var(--accent-gold);
    opacity: 0.2;
    line-height: 1;
}

.testimonial-text {
    font-size: var(--text-lg);
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: var(--space-6);
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    color: var(--accent-gold);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
}

.testimonial-info strong {
    display: block;
    color: var(--primary-blue);
}

.testimonial-info span {
    font-size: var(--text-sm);
    color: var(--gray-500);
}

/* ============================================
   18. FOOTER
   ============================================ */
footer {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--white);
    padding: var(--space-12) var(--space-6) var(--space-8);
    text-align: center;
}

footer p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-4);
}

footer a {
    color: var(--accent-gold);
    transition: color var(--transition-fast);
}

footer a:hover {
    color: var(--accent-gold-light);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--white);
}

.linkedin-link {
    color: var(--white) !important;
    font-size: 22px;
    margin-right: var(--space-3);
    display: inline-flex;
    vertical-align: middle;
    transition: all var(--transition-fast);
}

.linkedin-link:hover {
    color: #0077b5 !important;
    transform: scale(1.2);
}

.legal-disclaimer {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.5);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ============================================
   19. WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: var(--space-8);
    left: var(--space-8);
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: var(--shadow-xl);
    z-index: var(--z-fixed);
    transition: all var(--transition-base);
    animation: whatsappPulse 2s ease-in-out infinite;
}

@keyframes whatsappPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4), var(--shadow-xl);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0), var(--shadow-xl);
    }
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: var(--white);
}

/* ============================================
   20. RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
    .why-me-grid {
        grid-template-columns: 1fr;
    }
    
    .why-image {
        position: static;
    }
    
    .hero h1 {
        font-size: var(--text-4xl);
    }
    
    .hero-stats {
        gap: var(--space-6);
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: var(--space-4);
        padding: var(--space-4);
    }
    
    nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--space-3);
    }
    
    .dropdown-content {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90vw;
        max-width: 350px;
        max-height: 80vh;
        overflow-y: auto;
        z-index: var(--z-modal);
        border-radius: var(--radius-xl);
        border: 2px solid var(--accent-gold);
    }
    
    .hero {
        padding: var(--space-16) var(--space-4);
        min-height: auto;
    }
    
    .hero h1 {
        font-size: var(--text-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-base);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta .cta-button {
        width: 100%;
        max-width: 300px;
    }
    
    section {
        padding: var(--space-12) var(--space-4);
    }
    
    .tool-container {
        margin: calc(-1 * var(--space-8)) var(--space-4) var(--space-8);
        padding: var(--space-6);
    }
    
    .pain-grid,
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid-section {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: var(--space-4);
        left: var(--space-4);
        font-size: 26px;
    }
    
    .buffett-quote {
        border-right: none;
        border-top: 4px solid var(--accent-gold);
        text-align: center;
    }
    
    .quote-icon {
        top: calc(-1 * var(--space-5));
        right: 50%;
        transform: translateX(50%);
    }
    
    .quote-text {
        font-size: var(--text-xl);
    }
    
    .result-highlight .value {
        font-size: var(--text-3xl);
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--space-3);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: var(--text-2xl);
    }
    
    .tool-header h1 {
        font-size: var(--text-2xl);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .result-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-btn {
        font-size: var(--text-xs);
        padding: var(--space-2) var(--space-3);
    }
}

/* ============================================
   21. PRINT STYLES
   ============================================ */
@media print {
    header,
    .whatsapp-float,
    .cta-button,
    footer {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    .tool-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .result-area {
        border: 1px solid #ccc;
    }
}

/* ============================================
   22. REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   23. UTILITY CLASSES
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-gold { color: var(--accent-gold); }
.text-muted { color: var(--gray-500); }

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.hidden { display: none !important; }
.show { display: block !important; }

/* ============================================
   24. PREMIUM ANIMATIONS & MICRO-INTERACTIONS
   ============================================ */

/* Scroll-triggered fade in */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children animation */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Text gradient shimmer */
.text-shimmer {
    background: linear-gradient(
        90deg, 
        var(--accent-gold) 0%, 
        var(--accent-gold-light) 25%,
        var(--white) 50%,
        var(--accent-gold-light) 75%,
        var(--accent-gold) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 3s linear infinite;
}

@keyframes textShimmer {
    to { background-position: 200% center; }
}

/* Floating animation for decorative elements */
.float-element {
    animation: floatGentle 6s ease-in-out infinite;
}

@keyframes floatGentle {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(1deg); }
    50% { transform: translateY(-5px) rotate(-1deg); }
    75% { transform: translateY(-15px) rotate(0.5deg); }
}

/* Pulse glow effect */
.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(201, 162, 39, 0.2),
                    0 0 20px rgba(201, 162, 39, 0.1);
    }
    50% { 
        box-shadow: 0 0 20px rgba(201, 162, 39, 0.4),
                    0 0 40px rgba(201, 162, 39, 0.2);
    }
}

/* Button ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

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

.btn-ripple:active::after {
    width: 300%;
    height: 300%;
}

/* Input focus glow */
input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent-gold) !important;
    box-shadow: 
        0 0 0 4px rgba(201, 162, 39, 0.1),
        0 4px 20px rgba(201, 162, 39, 0.15) !important;
    outline: none;
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--gray-200) 25%,
        var(--gray-100) 50%,
        var(--gray-200) 75%
    );
    background-size: 200% 100%;
    animation: skeletonWave 1.5s ease infinite;
    border-radius: var(--radius-md);
}

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

/* Loading spinner for buttons */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

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

@keyframes spinLoader {
    to { transform: rotate(360deg); }
}

/* Success animation */
.animate-success {
    animation: successPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* Error shake animation */
.animate-error {
    animation: errorShake 0.5s ease;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-10px); }
    40%, 80% { transform: translateX(10px); }
}

/* Number counter animation helper */
.counter-animated {
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Hover lift effect */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Disabled per user request - no hover animation on step cards */
/* .hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
} */

/* Card shine effect on hover */
.card-shine {
    position: relative;
    overflow: hidden;
}

.card-shine::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        135deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(25deg);
    transition: all 0.6s;
    opacity: 0;
}

/* Disabled per user request - no shine animation on step cards */
/* .card-shine:hover::before {
    opacity: 1;
    top: -50%;
    left: -50%;
} */

/* Magnetic button effect placeholder */
.magnetic-btn {
    transition: transform 0.2s;
}

/* Glass morphism card */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-blue: #000000;
        --accent-gold: #ffcc00;
        --gray-600: #000000;
    }
    
    .pain-item,
    .step-card,
    .card {
        border: 2px solid currentColor;
    }
}

/* Dark mode placeholder */
@media (prefers-color-scheme: dark) {
    /* Future dark mode styles */
}
/**
 * Neil Kappel - Ultimate UX/UI Enhancements v4.0
 * World-Class Visual Design Improvements
 * Focus: Premium aesthetics, micro-interactions, modern trends
 */

/* ============================================
   1. ENHANCED CSS CUSTOM PROPERTIES
   ============================================ */
:root {
    /* Enhanced Gold Palette - More depth */
    --accent-gold-50: #fef9e7;
    --accent-gold-100: #fcefc7;
    --accent-gold-200: #f9e08f;
    --accent-gold-300: #f6d157;
    --accent-gold-400: #e6bc2f;
    --accent-gold-500: #c9a227;
    --accent-gold-600: #a68518;
    --accent-gold-700: #846913;
    --accent-gold-800: #624d0f;
    --accent-gold-900: #40320a;
    
    /* Premium Gradients */
    --gradient-gold-shine: linear-gradient(
        135deg,
        #c9a227 0%,
        #e6c65c 25%,
        #c9a227 50%,
        #a68518 75%,
        #c9a227 100%
    );
    --gradient-dark-premium: linear-gradient(
        160deg,
        #0f1923 0%,
        #1a2a3a 30%,
        #0d151c 70%,
        #0f1923 100%
    );
    --gradient-glass: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    
    /* Enhanced Shadows - More realistic */
    --shadow-elevation-1: 
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-elevation-2: 
        0 2px 4px rgba(0, 0, 0, 0.04),
        0 4px 8px rgba(0, 0, 0, 0.06);
    --shadow-elevation-3: 
        0 4px 8px rgba(0, 0, 0, 0.04),
        0 8px 16px rgba(0, 0, 0, 0.06),
        0 16px 32px rgba(0, 0, 0, 0.04);
    --shadow-elevation-4: 
        0 8px 16px rgba(0, 0, 0, 0.06),
        0 16px 32px rgba(0, 0, 0, 0.08),
        0 32px 64px rgba(0, 0, 0, 0.04);
    --shadow-gold-glow: 
        0 0 20px rgba(201, 162, 39, 0.15),
        0 0 40px rgba(201, 162, 39, 0.1),
        0 0 60px rgba(201, 162, 39, 0.05);
    --shadow-inset-subtle: inset 0 1px 2px rgba(0, 0, 0, 0.08);
    
    /* Animation Timing Functions - More organic */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);
    --spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Premium Blur Values */
    --blur-sm: 8px;
    --blur-md: 16px;
    --blur-lg: 24px;
    --blur-xl: 40px;
}

/* ============================================
   2. ENHANCED BODY & GLOBAL POLISH
   ============================================ */
body {
    /* Subtle texture overlay for premium feel */
    background-image: 
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-color: var(--off-white);
    background-blend-mode: soft-light;
    background-size: 100px 100px;
}

/* Selection styling */
::selection {
    background: var(--accent-gold-200);
    color: var(--primary-blue);
}

::-moz-selection {
    background: var(--accent-gold-200);
    color: var(--primary-blue);
}

/* ============================================
   3. ENHANCED HEADER - Glassmorphism Premium
   ============================================ */
header {
    background: rgba(15, 25, 35, 0.85);
    backdrop-filter: blur(var(--blur-lg)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(180%);
    border-bottom: 1px solid rgba(201, 162, 39, 0.15);
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.1),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

/* Animated header border */
header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--accent-gold) 20%,
        var(--accent-gold-light) 50%,
        var(--accent-gold) 80%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmerBorder 3s linear infinite;
    opacity: 0.7;
}

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

/* Brand wrapper enhancement */
.brand-wrapper {
    position: relative;
}

.brand-wrapper::before {
    content: '';
    position: absolute;
    inset: -8px;
    background: radial-gradient(ellipse at center, rgba(201, 162, 39, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out-expo);
    pointer-events: none;
}

.brand-wrapper:hover::before {
    opacity: 1;
}

/* Monogram enhancement */
.monogram-header {
    position: relative;
    background: linear-gradient(145deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    box-shadow:
        0 4px 15px rgba(28, 63, 148, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.4s var(--ease-out-back);
}

.monogram-header:hover {
    transform: scale(1.08) rotate(-3deg);
    box-shadow:
        0 8px 25px rgba(28, 63, 148, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* ============================================
   4. ENHANCED HERO SECTION - Cinematic
   ============================================ */
.hero {
    position: relative;
    background: var(--gradient-dark-premium);
    overflow: hidden;
}

/* Animated particles background */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(201, 162, 39, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(201, 162, 39, 0.2), transparent),
        radial-gradient(2px 2px at 50px 160px, rgba(201, 162, 39, 0.3), transparent),
        radial-gradient(2px 2px at 90px 40px, rgba(201, 162, 39, 0.2), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(201, 162, 39, 0.3), transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(201, 162, 39, 0.2), transparent);
    background-size: 200px 200px;
    animation: particleFloat 20s linear infinite;
    opacity: 0.6;
}

@keyframes particleFloat {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-200px) rotate(360deg); }
}

/* Hero content with enhanced entrance */
.hero-content {
    position: relative;
    z-index: 2;
    animation: heroEntrance 1.2s var(--ease-out-expo) forwards;
}

@keyframes heroEntrance {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Hero title with text gradient */
.hero h1 {
    background: linear-gradient(
        180deg,
        var(--white) 0%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(201, 162, 39, 0.8) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* Trust badge enhancement */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(201, 162, 39, 0.12);
    border: 1px solid rgba(201, 162, 39, 0.25);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--accent-gold-light);
    backdrop-filter: blur(10px);
    animation: badgePulse 3s ease-in-out infinite;
    margin-bottom: 24px;
}

@keyframes badgePulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 20px 5px rgba(201, 162, 39, 0.2);
        transform: scale(1.02);
    }
}

/* Hero stats - Glass cards */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 48px 0;
}

.hero-stat {
    position: relative;
    text-align: center;
    padding: 24px 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    transition: all 0.4s var(--ease-out-expo);
}

.hero-stat:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(201, 162, 39, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hero-stat-value {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1;
    margin-bottom: 8px;
}

.hero-stat-label {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* ============================================
   5. ENHANCED CTA BUTTONS - Premium 3D
   ============================================ */
.cta-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(
        145deg,
        var(--accent-gold) 0%,
        var(--accent-gold-600) 50%,
        var(--accent-gold-700) 100%
    );
    border: none;
    border-radius: 60px;
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: all 0.4s var(--ease-out-back);
    box-shadow: 
        0 6px 20px rgba(201, 162, 39, 0.35),
        0 2px 6px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

/* 3D depth layer */
.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    border-radius: inherit;
    transition: opacity 0.3s;
}

/* Shimmer sweep */
.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    transform: skewX(-25deg);
    transition: left 0.6s var(--ease-out-expo);
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 
        0 12px 35px rgba(201, 162, 39, 0.45),
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cta-button:hover::after {
    left: 150%;
}

.cta-button:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 
        0 4px 15px rgba(201, 162, 39, 0.35),
        inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Secondary CTA */
.cta-button-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: none;
}

.cta-button-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-gold);
    box-shadow: 0 0 30px rgba(201, 162, 39, 0.2);
}

/* ============================================
   6. ENHANCED CARDS - Neumorphism + Glass
   ============================================ */
.pain-item,
.step-card,
.article-card,
.resource-card,
.testimonial-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--shadow-elevation-2);
    transition: all 0.5s var(--ease-out-expo);
    overflow: hidden;
}

/* Gradient border on hover */
.pain-item::before,
.step-card::before,
.article-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(
        135deg,
        var(--accent-gold) 0%,
        var(--accent-gold-light) 50%,
        var(--accent-gold) 100%
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out-expo);
}

.pain-item:hover::before,
.step-card:hover::before,
.article-card:hover::before {
    opacity: 1;
}

.pain-item:hover,
.step-card:hover,
.article-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        var(--shadow-elevation-4),
        0 0 40px rgba(201, 162, 39, 0.08);
}

/* Pain icon enhancement */
.pain-icon {
    font-size: 56px;
    display: block;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.4s var(--ease-out-back);
}

.pain-item:hover .pain-icon {
    transform: scale(1.15) rotate(-5deg);
}

/* Step number enhancement */
.step-num {
    width: 56px;
    height: 56px;
    background: var(--gradient-gold-shine);
    background-size: 200% 200%;
    color: var(--white);
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 
        0 8px 20px rgba(201, 162, 39, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.4s var(--ease-out-back);
    animation: goldShine 3s ease infinite;
}

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

.step-card:hover .step-num {
    transform: scale(1.1) rotate(-10deg);
    box-shadow: 
        0 12px 30px rgba(201, 162, 39, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

/* ============================================
   7. ENHANCED QUOTE SECTION - Editorial
   ============================================ */
.buffett-quote {
    position: relative;
    max-width: 800px;
    margin: 80px auto;
    padding: 48px 64px;
    background: linear-gradient(
        135deg,
        var(--gray-50) 0%,
        var(--white) 50%,
        var(--gray-50) 100%
    );
    border-radius: var(--radius-2xl);
    border: 1px solid var(--gray-200);
    text-align: center;
}

/* Decorative corner accents */
.buffett-quote::before,
.buffett-quote::after {
    content: '"';
    position: absolute;
    font-family: var(--font-display);
    font-size: 120px;
    color: var(--accent-gold);
    opacity: 0.15;
    line-height: 1;
}

.buffett-quote::before {
    top: 10px;
    right: 30px;
}

.buffett-quote::after {
    content: '"';
    bottom: -20px;
    left: 30px;
}

.quote-text {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-style: italic;
    color: var(--primary-blue);
    line-height: 1.5;
    margin-bottom: 20px;
}

.quote-author {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--accent-gold);
    letter-spacing: 0.05em;
}

/* Quote icon floating */
.quote-icon {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    background: var(--accent-gold);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-gold-glow);
}

/* ============================================
   8. ENHANCED PROCESS/STEPS - Timeline
   ============================================ */
.steps-container {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Connecting line */
.steps-container::before {
    content: '';
    position: absolute;
    top: 68px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--accent-gold-200) 10%,
        var(--accent-gold) 50%,
        var(--accent-gold-200) 90%,
        transparent 100%
    );
    z-index: 0;
}

.step-card {
    position: relative;
    z-index: 1;
    text-align: center;
    background: var(--white);
}

/* ============================================
   9. ENHANCED WHY-ME SECTION - Split Design
   ============================================ */
.why-me-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.why-image {
    position: relative;
    text-align: center;
    padding: 48px;
    background: linear-gradient(
        135deg,
        var(--gray-50) 0%,
        var(--white) 100%
    );
    border-radius: var(--radius-2xl);
    border: 1px solid var(--gray-200);
}

/* Monogram large enhancement */
.monogram-large {
    width: 140px;
    height: 140px;
    background: var(--gradient-gold-shine);
    background-size: 200% 200%;
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -2px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 
        0 20px 60px rgba(201, 162, 39, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    animation: goldShine 4s ease infinite;
    transition: transform 0.5s var(--ease-out-back);
}

.why-image:hover .monogram-large {
    transform: scale(1.05) rotate(-5deg);
}

/* Why list enhancement */
.why-list {
    list-style: none;
    padding: 0;
}

.why-list li {
    position: relative;
    padding: 20px 0 20px 40px;
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.3s var(--ease-out-expo);
}

.why-list li:last-child {
    border-bottom: none;
}

.why-list li::before {
    content: '✓';
    position: absolute;
    right: auto;
    left: 0;
    top: 20px;
    width: 28px;
    height: 28px;
    background: var(--success-light);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.why-list li:hover {
    padding-right: 8px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    margin: -4px -16px;
    padding: 24px 16px 24px 56px;
}

/* ============================================
   10. ENHANCED TESTIMONIALS - Carousel Style
   ============================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.testimonial-card {
    position: relative;
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-elevation-2);
    border: 1px solid var(--gray-100);
}

/* Quote decoration */
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-family: var(--font-display);
    font-size: 80px;
    color: var(--accent-gold);
    opacity: 0.15;
    line-height: 1;
}

.testimonial-text {
    font-size: var(--text-lg);
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    background: var(--gradient-gold-shine);
    background-size: 200% 200%;
    color: var(--white);
    font-weight: 700;
    font-size: var(--text-lg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: goldShine 3s ease infinite;
}

.testimonial-info strong {
    display: block;
    color: var(--primary-blue);
    font-size: var(--text-base);
}

.testimonial-info span {
    color: var(--gray-500);
    font-size: var(--text-sm);
}

/* ============================================
   11. ENHANCED CALCULATOR TOOLS
   ============================================ */
.tool-container {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 48px;
    box-shadow: var(--shadow-elevation-3);
    border: 1px solid var(--gray-100);
    max-width: 900px;
    margin: 0 auto;
}

/* Form group enhancement */
.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 10px;
    font-size: var(--text-sm);
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 16px 20px;
    font-size: var(--text-base);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--gray-50);
    transition: all 0.3s var(--ease-out-expo);
    font-family: inherit;
}

.form-group input:hover,
.form-group select:hover {
    border-color: var(--gray-300);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent-gold);
    background: var(--white);
    box-shadow: 
        0 0 0 4px rgba(201, 162, 39, 0.1),
        0 4px 20px rgba(201, 162, 39, 0.1);
    outline: none;
}

/* Form hint */
.form-hint {
    font-size: var(--text-xs);
    color: var(--gray-500);
    margin-top: 6px;
}

/* Calculate button */
.calc-btn {
    width: 100%;
    padding: 18px 32px;
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--white);
    background: var(--gradient-gold-shine);
    background-size: 200% 200%;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.4s var(--ease-out-back);
    box-shadow: 
        0 8px 25px rgba(201, 162, 39, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    animation: goldShine 3s ease infinite paused;
}

.calc-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 35px rgba(201, 162, 39, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation-play-state: running;
}

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

/* Result area enhancement */
.result-area {
    margin-top: 40px;
    padding: 32px;
    background: linear-gradient(
        135deg,
        var(--gray-50) 0%,
        var(--white) 100%
    );
    border-radius: var(--radius-xl);
    border: 2px solid var(--accent-gold-200);
    animation: resultSlideIn 0.5s var(--ease-out-expo);
}

@keyframes resultSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Highlight result */
.result-highlight {
    text-align: center;
    padding: 32px;
    background: linear-gradient(
        135deg,
        var(--accent-gold-50) 0%,
        var(--accent-gold-100) 100%
    );
    border-radius: var(--radius-xl);
    border: 2px solid var(--accent-gold-200);
    margin-bottom: 24px;
}

.result-highlight .label {
    display: block;
    font-size: var(--text-sm);
    color: var(--gray-600);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.result-highlight .value {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--accent-gold-700);
}

/* Result grid */
.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.result-item {
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: all 0.3s var(--ease-out-expo);
}

.result-item:hover {
    border-color: var(--accent-gold-300);
    box-shadow: var(--shadow-elevation-2);
}

.result-item .label {
    display: block;
    font-size: var(--text-xs);
    color: var(--gray-500);
    margin-bottom: 6px;
}

.result-item .value {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary-blue);
}

/* Verdict badges */
.verdict-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: var(--text-sm);
    margin-bottom: 24px;
}

.verdict-success {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid var(--success);
}

.verdict-warning {
    background: var(--warning-light);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.verdict-danger {
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.verdict-info {
    background: var(--info-light);
    color: var(--info);
    border: 1px solid var(--info);
}

/* ============================================
   12. ENHANCED FOOTER - Premium
   ============================================ */
footer {
    background: var(--gradient-dark-premium);
    color: var(--white);
    padding: 60px var(--space-6) 40px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--accent-gold) 0%,
        var(--accent-gold-light) 50%,
        var(--accent-gold) 100%
    );
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin: 24px 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

/* ============================================
   13. ENHANCED WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 
        0 8px 25px rgba(37, 211, 102, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    z-index: var(--z-fixed);
    transition: all 0.4s var(--ease-out-back);
    animation: whatsappPulse 2s ease-in-out infinite;
}

@keyframes whatsappPulse {
    0%, 100% {
        box-shadow: 
            0 8px 25px rgba(37, 211, 102, 0.4),
            0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 
            0 8px 25px rgba(37, 211, 102, 0.4),
            0 0 0 15px rgba(37, 211, 102, 0);
    }
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(-10deg);
    box-shadow: 
        0 12px 35px rgba(37, 211, 102, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ============================================
   14. PAGE LOAD ANIMATIONS
   ============================================ */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered children animation */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s var(--ease-out-expo) forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }

/* ============================================
   15. ENHANCED RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .hero-stat {
        flex: 1 1 150px;
    }
    
    .steps-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-container::before {
        display: none;
    }
    
    .why-me-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .why-list li::before {
        position: relative;
        display: block;
        margin: 0 auto 10px;
    }
    
    .why-list li {
        padding-left: 0;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: var(--space-16) var(--space-4);
        min-height: 70vh;
    }
    
    .hero h1 {
        font-size: var(--text-3xl);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .hero-stat {
        padding: 16px 24px;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .pain-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-container {
        padding: 24px;
        margin: 0 16px;
    }
    
    .buffett-quote {
        padding: 32px 24px;
        margin: 40px 16px;
    }
    
    .quote-text {
        font-size: var(--text-xl);
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-float {
        width: 56px;
        height: 56px;
        font-size: 28px;
        bottom: 20px;
        left: 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: var(--text-2xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-sm);
    }
    
    .cta-button {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }
    
    .trust-badge {
        font-size: var(--text-xs);
        padding: 8px 16px;
    }
}

/* ============================================
   16. PRINT STYLES ENHANCEMENT
   ============================================ */
@media print {
    .hero {
        background: var(--white) !important;
        color: var(--primary-blue) !important;
        min-height: auto;
        padding: 40px;
    }
    
    .hero h1 {
        -webkit-text-fill-color: var(--primary-blue);
        background: none;
    }
    
    .cta-button,
    .whatsapp-float,
    nav {
        display: none !important;
    }
    
    .pain-item,
    .step-card,
    .article-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--gray-300);
    }
}
/* ============================================
   ULTIMATE UX/UI IMPROVEMENTS v5.0
   All Remaining Features Implementation
   ============================================ */

/* ============================================
   1. DARK MODE SYSTEM
   ============================================ */
:root {
    --dark-bg-primary: #0a0f14;
    --dark-bg-secondary: #111820;
    --dark-bg-tertiary: #1a242e;
    --dark-text-primary: #f0f2f5;
    --dark-text-secondary: #a0a8b2;
    --dark-border: rgba(255, 255, 255, 0.08);
}

/* Dark mode class-based toggle */
body.dark-mode {
    background-color: var(--dark-bg-primary);
    color: var(--dark-text-primary);
}

body.dark-mode header {
    background: rgba(10, 15, 20, 0.95);
    border-bottom-color: var(--accent-gold);
}

body.dark-mode .pain-item,
body.dark-mode .step-card,
body.dark-mode .article-card,
body.dark-mode .resource-card,
body.dark-mode .tool-container,
body.dark-mode .testimonial-card {
    background: var(--dark-bg-secondary);
    border-color: var(--dark-border);
    color: var(--dark-text-primary);
}

body.dark-mode .pain-item h3,
body.dark-mode .step-card h4,
body.dark-mode .article-card h3 {
    color: var(--dark-text-primary);
}

body.dark-mode .pain-item p,
body.dark-mode .step-card p,
body.dark-mode .article-card p {
    color: var(--dark-text-secondary);
}

body.dark-mode .buffett-quote {
    background: var(--dark-bg-secondary);
    border-color: var(--dark-border);
}

body.dark-mode .quote-text {
    color: var(--dark-text-primary);
}

body.dark-mode .form-group input,
body.dark-mode .form-group select {
    background: var(--dark-bg-tertiary);
    border-color: var(--dark-border);
    color: var(--dark-text-primary);
}

body.dark-mode .result-area {
    background: var(--dark-bg-secondary);
    border-color: var(--accent-gold-300);
}

body.dark-mode .section-title {
    color: var(--dark-text-primary);
}

body.dark-mode .section-subtitle {
    color: var(--dark-text-secondary);
}

body.dark-mode nav a {
    color: var(--dark-text-primary);
}

body.dark-mode .dropdown-content {
    background: var(--dark-bg-secondary);
    border-color: var(--accent-gold);
}

body.dark-mode .dropdown-content a {
    color: var(--dark-text-primary);
    border-bottom-color: var(--dark-border);
}

body.dark-mode .dropdown-content a:hover {
    background: var(--dark-bg-tertiary);
}

/* Dark mode toggle button */
.dark-mode-toggle {
    position: fixed;
    top: 100px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-blue);
    border: 2px solid var(--accent-gold);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--accent-gold);
    transition: all 0.3s var(--ease-out-back);
    box-shadow: var(--shadow-elevation-3);
}

.dark-mode-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: var(--shadow-gold-glow);
}

.dark-mode-toggle .icon-sun,
.dark-mode-toggle .icon-moon {
    position: absolute;
    transition: all 0.4s var(--ease-out-expo);
}

body:not(.dark-mode) .dark-mode-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0);
}

body:not(.dark-mode) .dark-mode-toggle .icon-moon {
    opacity: 0;
    transform: rotate(-90deg);
}

body.dark-mode .dark-mode-toggle .icon-sun {
    opacity: 0;
    transform: rotate(90deg);
}

body.dark-mode .dark-mode-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0);
}

/* ============================================
   2. CUSTOM CURSOR SYSTEM
   ============================================ */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.1s ease-out;
    mix-blend-mode: difference;
}

.cursor-ring {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99998;
    transition: all 0.15s ease-out;
    opacity: 0.6;
}

.cursor-ring.cursor-hover {
    transform: scale(1.5);
    opacity: 0.3;
    border-color: var(--accent-gold-light);
}

.cursor-ring.cursor-click {
    transform: scale(0.8);
    opacity: 1;
}

/* Hide default cursor on desktop */
@media (min-width: 1024px) {
    body.custom-cursor,
    body.custom-cursor * {
        cursor: none !important;
    }
    
    body.custom-cursor a,
    body.custom-cursor button,
    body.custom-cursor input,
    body.custom-cursor select {
        cursor: none !important;
    }
}

/* ============================================
   3. PAGE TRANSITIONS
   ============================================ */
.page-transition-overlay {
    position: fixed;
    inset: 0;
    background: var(--primary-blue);
    z-index: 100000;
    transform: scaleY(0);
    transform-origin: bottom;
    pointer-events: none;
}

.page-transition-overlay.active-enter {
    animation: pageTransitionEnter 0.5s var(--ease-in-out-circ) forwards;
}

.page-transition-overlay.active-exit {
    animation: pageTransitionExit 0.5s var(--ease-in-out-circ) forwards;
}

@keyframes pageTransitionEnter {
    0% { transform: scaleY(0); transform-origin: bottom; }
    100% { transform: scaleY(1); transform-origin: bottom; }
}

@keyframes pageTransitionExit {
    0% { transform: scaleY(1); transform-origin: top; }
    100% { transform: scaleY(0); transform-origin: top; }
}

/* Logo animation during transition */
.page-transition-overlay .transition-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: logoFade 0.8s ease 0.2s forwards;
}

@keyframes logoFade {
    0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ============================================
   4. SCROLL PROGRESS INDICATOR
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 10000;
}

.scroll-progress-bar {
    height: 100%;
    background: var(--gradient-gold-shine);
    background-size: 200% 100%;
    animation: goldShine 2s linear infinite;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.1s linear;
    box-shadow: 0 0 10px rgba(201, 162, 39, 0.5);
}

/* ============================================
   5. SKELETON LOADING
   ============================================ */
.skeleton-container {
    padding: 20px;
}

.skeleton {
    background: linear-gradient(
        90deg,
        var(--gray-200) 25%,
        var(--gray-100) 50%,
        var(--gray-200) 75%
    );
    background-size: 200% 100%;
    animation: skeletonWave 1.5s ease infinite;
    border-radius: var(--radius-md);
}

.skeleton-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 16px;
}

.skeleton-line {
    height: 16px;
    margin-bottom: 12px;
    border-radius: var(--radius-sm);
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-line.medium {
    width: 80%;
}

.skeleton-card {
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-elevation-2);
}

body.dark-mode .skeleton {
    background: linear-gradient(
        90deg,
        var(--dark-bg-tertiary) 25%,
        var(--dark-bg-secondary) 50%,
        var(--dark-bg-tertiary) 75%
    );
    background-size: 200% 100%;
}

body.dark-mode .skeleton-card {
    background: var(--dark-bg-secondary);
}

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

/* ============================================
   6. TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 380px;
}

.toast {
    padding: 16px 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-elevation-4);
    display: flex;
    align-items: center;
    gap: 16px;
    animation: toastSlideIn 0.4s var(--ease-out-back);
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.toast-success::before { background: var(--success); }
.toast-error::before { background: var(--danger); }
.toast-warning::before { background: var(--warning); }
.toast-info::before { background: var(--info); }

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    background: var(--success-light);
    color: var(--success);
}

.toast-error .toast-icon {
    background: var(--danger-light);
    color: var(--danger);
}

.toast-warning .toast-icon {
    background: var(--warning-light);
    color: var(--warning);
}

.toast-info .toast-icon {
    background: var(--info-light);
    color: var(--info);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 4px;
    font-size: var(--text-sm);
}

.toast-message {
    color: var(--gray-600);
    font-size: var(--text-xs);
}

.toast-close {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--gray-400);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.toast-close:hover {
    background: var(--gray-100);
    color: var(--gray-600);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gold);
    animation: toastProgress 5s linear forwards;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

.toast.removing {
    animation: toastSlideOut 0.3s var(--ease-out-expo) forwards;
}

body.dark-mode .toast {
    background: var(--dark-bg-secondary);
}

body.dark-mode .toast-title {
    color: var(--dark-text-primary);
}

body.dark-mode .toast-message {
    color: var(--dark-text-secondary);
}

/* RTL Support */
[dir="rtl"] .toast-container {
    right: auto;
    left: 30px;
}

[dir="rtl"] .toast::before {
    right: auto;
    left: 0;
}

[dir="rtl"] .toast-close {
    left: auto;
    right: 8px;
}

/* ============================================
   7. CONFETTI EFFECT (Canvas overlay)
   ============================================ */
.confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99999;
}

/* ============================================
   8. ENHANCED NAVIGATION INDICATORS
   ============================================ */
nav a {
    position: relative;
    overflow: hidden;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s var(--ease-out-expo);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a.active {
    color: var(--accent-gold);
}

/* ============================================
   9. ENHANCED FORM INTERACTIONS
   ============================================ */
.form-group {
    position: relative;
}

.form-group label {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label .label-icon {
    color: var(--accent-gold);
    font-size: 14px;
}

/* Floating label effect */
.form-group.floating-label input {
    padding-top: 24px;
}

.form-group.floating-label label {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    transition: all 0.3s var(--ease-out-expo);
    pointer-events: none;
    color: var(--gray-500);
    font-weight: 400;
}

.form-group.floating-label input:focus + label,
.form-group.floating-label input:not(:placeholder-shown) + label {
    top: 12px;
    font-size: var(--text-xs);
    color: var(--accent-gold);
    font-weight: 600;
}

/* Input with icon */
.input-with-icon {
    position: relative;
}

.input-with-icon input {
    padding-right: 48px;
}

.input-with-icon .input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    transition: color 0.3s;
}

.input-with-icon input:focus + .input-icon {
    color: var(--accent-gold);
}

/* Range slider enhancement */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--accent-gold);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(201, 162, 39, 0.4);
    transition: all 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(201, 162, 39, 0.5);
}

/* ============================================
   10. ENHANCED ACCESSIBILITY INDICATORS
   ============================================ */
/* Better focus indicators */
*:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* Skip link enhancement */
.skip-link {
    position: absolute;
    top: -100px;
    right: 50%;
    transform: translateX(50%);
    background: var(--accent-gold);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    z-index: 100001;
    transition: top 0.3s var(--ease-out-expo);
    text-decoration: none;
}

.skip-link:focus {
    top: 10px;
    outline: none;
    box-shadow: var(--shadow-gold-glow);
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   11. LOADING SCREEN
   ============================================ */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--primary-blue);
    z-index: 100001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-logo {
    width: 100px;
    height: 100px;
    background: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 900;
    color: var(--white);
    animation: loadingPulse 1.5s ease-in-out infinite;
    margin-bottom: 24px;
}

@keyframes loadingPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.5); }
    50% { transform: scale(1.05); box-shadow: 0 0 30px 10px rgba(201, 162, 39, 0.3); }
}

.loading-text {
    color: var(--white);
    font-size: var(--text-lg);
    font-weight: 500;
}

.loading-dots {
    display: inline-flex;
    gap: 4px;
    margin-right: 8px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 50%;
    animation: loadingDot 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes loadingDot {
    0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* ============================================
   12. SMOOTH REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out-expo);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* ============================================
   13. MOBILE-SPECIFIC ENHANCEMENTS
   ============================================ */
@media (max-width: 768px) {
    /* Hide custom cursor on mobile */
    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }
    
    /* Better touch targets */
    .cta-button,
    .calc-btn,
    nav a,
    .dropdown-content a {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Mobile dark mode toggle position */
    .dark-mode-toggle {
        top: auto;
        bottom: 100px;
        left: 20px;
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    
    /* Mobile toast */
    .toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }
    
    /* Loading screen mobile */
    .loading-logo {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
}

/* ============================================
   14. PRINT STYLES
   ============================================ */
@media print {
    .dark-mode-toggle,
    .scroll-progress,
    .cursor-dot,
    .cursor-ring,
    .whatsapp-float,
    .toast-container,
    .confetti-canvas,
    .loading-screen,
    .page-transition-overlay {
        display: none !important;
    }
}

/* ============================================
   15. REDUCED MOTION SUPPORT
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .cursor-dot,
    .cursor-ring {
        display: none;
    }
    
    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
    }
}
/* ============================================
   UX/UI FIXES - Version 5.1
   Fixing: Text contrast, Dropdown, Cursor
   ============================================ */

/* ============================================
   1. FIX TEXT CONTRAST IN WHY-LIST
   ============================================ */
.why-list li {
    color: var(--gray-800) !important;
    font-weight: 400;
}

.why-list li strong {
    color: var(--primary-blue) !important;
    font-weight: 700;
}

/* Make all paragraph text more visible */
.why-content p,
.why-list li {
    color: #2d3748 !important;
    opacity: 1 !important;
}

/* Fix any faded text */
.pain-item p,
.step-card p,
.testimonial-text {
    color: var(--gray-700) !important;
    opacity: 1 !important;
}

/* ============================================
   2. IMPROVED DROPDOWN BEHAVIOR
   - Opens on hover immediately
   - Stays open when hovering content
   - Has delay before closing
   ============================================ */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: block !important;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Keep dropdown open when mouse is inside */
.dropdown-content:hover {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Larger hit area for dropdown trigger */
.dropdown > a {
    padding: 12px 16px !important;
    position: relative;
}

/* Add arrow indicator that's more visible */
.dropdown > a::after {
    content: '▼';
    font-size: 10px;
    margin-right: 6px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.dropdown:hover > a::after {
    transform: rotate(180deg);
}

/* Highlight dropdown trigger on hover */
.dropdown > a {
    background: transparent;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.dropdown:hover > a {
    background: rgba(201, 162, 39, 0.1);
    color: var(--accent-gold) !important;
}

/* Make dropdown content more prominent */
.dropdown-content {
    min-width: 260px;
    background: var(--white);
    border-radius: var(--radius-lg) !important;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(201, 162, 39, 0.2) !important;
    border-top: 3px solid var(--accent-gold);
    padding: 8px;
}

.dropdown-content a {
    padding: 14px 18px !important;
    border-radius: var(--radius-md);
    margin: 4px 0;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.1) 0%, rgba(201, 162, 39, 0.05) 100%);
    transform: translateX(-8px);
}

.dropdown-content a i {
    color: var(--accent-gold);
    font-size: 18px;
}

/* ============================================
   3. REMOVE BORING CURSOR - ADD MONEY EFFECT
   ============================================ */
/* Hide the old cursor elements */
.cursor-dot,
.cursor-ring {
    display: none !important;
}

/* Money Trail Canvas */
.money-trail-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99999;
}

/* Click Burst Effect Container */
.click-burst {
    position: fixed;
    pointer-events: none;
    z-index: 99998;
}

.click-burst .particle {
    position: absolute;
    font-size: 20px;
    animation: burstOut 1s ease-out forwards;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

@keyframes burstOut {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0.5) rotate(var(--rot));
        opacity: 0;
    }
}

/* Hover sparkle effect on buttons */
.cta-button,
.calc-btn {
    position: relative;
    overflow: visible;
}

.cta-button:hover::before,
.calc-btn:hover::before {
    content: '💰';
    position: absolute;
    font-size: 16px;
    animation: floatMoney 1s ease-out infinite;
    pointer-events: none;
}

.cta-button:hover::before {
    top: -20px;
    right: 20%;
}

.calc-btn:hover::before {
    top: -20px;
    right: 30%;
}

@keyframes floatMoney {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-30px) rotate(15deg);
        opacity: 0;
    }
}

/* Multiple floating coins on button hover */
.cta-button:hover::after,
.calc-btn:hover::after {
    content: '🪙';
    position: absolute;
    top: -15px;
    left: 30%;
    font-size: 14px;
    animation: floatCoin 0.8s ease-out infinite 0.2s;
    pointer-events: none;
}

@keyframes floatCoin {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-25px) rotate(-20deg);
        opacity: 0;
    }
}

/* ============================================
   4. TOOLS DROPDOWN - MORE INVITING
   ============================================ */
.dropdown > a[href="#tools"],
.dropdown > a:has(+ .dropdown-content) {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.15) 0%, transparent 100%);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 25px;
    padding: 10px 20px !important;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(201, 162, 39, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(201, 162, 39, 0.5), 0 0 30px rgba(201, 162, 39, 0.2);
    }
}

/* Special hover for tools */
.dropdown:hover > a[href="#tools"],
.dropdown:has(.dropdown-content):hover > a {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    color: var(--white) !important;
    transform: scale(1.05);
    animation: none;
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.4);
}

/* ============================================
   5. BETTER VISUAL FEEDBACK
   ============================================ */
/* Success state glow */
.result-area {
    animation: resultGlow 0.5s ease-out;
}

@keyframes resultGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.5);
    }
    50% {
        box-shadow: 0 0 30px 10px rgba(201, 162, 39, 0.3);
    }
    100% {
        box-shadow: var(--shadow-elevation-2);
    }
}

/* Hover effect with sparkle */
.pain-item:hover,
.step-card:hover,
.article-card:hover {
    position: relative;
}

.pain-item:hover::after,
.step-card:hover::after {
    content: '✨';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 20px;
    animation: sparkle 0.6s ease-out;
    pointer-events: none;
}

@keyframes sparkle {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 0;
    }
}
/* ============================================
   QA/QC FIXES v5.2
   Comprehensive fixes for all devices & RTL
   ============================================ */

/* ============================================
   1. SKIP LINK - CENTERED CORRECTLY FOR RTL
   ============================================ */
.skip-link {
    position: fixed !important;
    top: -100px !important;
    left: 0 !important;
    right: 0 !important;
    width: fit-content !important;
    margin: 0 auto !important;
    transform: none !important;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%) !important;
    color: var(--white) !important;
    padding: 14px 28px !important;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl) !important;
    font-weight: 700 !important;
    font-size: var(--text-base) !important;
    z-index: 100001 !important;
    transition: top 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-decoration: none !important;
    text-align: center !important;
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.4) !important;
}

.skip-link:focus {
    top: 0 !important;
    outline: 3px solid var(--white) !important;
    outline-offset: -3px !important;
}

/* ============================================
   2. RTL FIXES FOR ALL ELEMENTS
   ============================================ */
[dir="rtl"] .dropdown-content a:hover {
    transform: translateX(8px); /* Reverse for RTL */
}

[dir="rtl"] .cta-button i {
    margin-left: 0;
    margin-right: 8px;
}

[dir="rtl"] .cta-button:hover i {
    transform: translateX(3px); /* Reverse for RTL */
}

[dir="rtl"] .hero-cta {
    flex-direction: row-reverse;
}

[dir="rtl"] .pain-item::after,
[dir="rtl"] .step-card::after {
    left: auto;
    right: 10px;
}

/* ============================================
   3. HEADER FIXES - ALL DEVICES
   ============================================ */
header {
    background: rgba(15, 25, 35, 0.98) !important;
    padding: 12px 5% !important;
}

/* Make sure nav is visible */
nav {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
}

nav a {
    color: var(--white) !important;
    font-size: var(--text-sm) !important;
    padding: 8px 12px !important;
}

nav a:hover {
    color: var(--accent-gold) !important;
}

/* ============================================
   4. DROPDOWN FIXES - IMPROVED
   ============================================ */
.dropdown {
    position: relative !important;
}

.dropdown > a {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 10px 18px !important;
    background: rgba(201, 162, 39, 0.15) !important;
    border: 1px solid rgba(201, 162, 39, 0.3) !important;
    border-radius: 25px !important;
    color: var(--accent-gold) !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.dropdown > a:hover {
    background: var(--accent-gold) !important;
    color: var(--white) !important;
}

.dropdown-content {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    min-width: 240px !important;
    background: var(--white) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
    border-top: 3px solid var(--accent-gold) !important;
    padding: 8px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(10px) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 1001 !important;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.dropdown-content a {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 16px !important;
    color: var(--gray-700) !important;
    border-radius: var(--radius-md) !important;
    transition: all 0.2s ease !important;
}

.dropdown-content a:hover {
    background: rgba(201, 162, 39, 0.1) !important;
    color: var(--primary-blue) !important;
}

.dropdown-content a i {
    color: var(--accent-gold) !important;
    width: 20px !important;
}

/* ============================================
   5. HERO STATS - FIXED DISPLAY
   ============================================ */
.hero-stats {
    display: flex !important;
    justify-content: center !important;
    gap: 30px !important;
    flex-wrap: wrap !important;
    margin: 40px 0 !important;
}

.hero-stat {
    text-align: center !important;
    padding: 20px 30px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: var(--radius-xl) !important;
    min-width: 140px !important;
}

.hero-stat-value {
    font-family: var(--font-display) !important;
    font-size: clamp(1.5rem, 4vw, 2.5rem) !important;
    font-weight: 700 !important;
    color: var(--accent-gold) !important;
    line-height: 1.2 !important;
    margin-bottom: 8px !important;
}

.hero-stat-label {
    font-size: var(--text-sm) !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

/* ============================================
   6. WHY-LIST TEXT VISIBILITY FIX
   ============================================ */
.why-list li {
    color: var(--gray-800) !important;
    font-size: var(--text-lg) !important;
    line-height: 1.8 !important;
    padding-right: 40px !important;
    margin-bottom: 24px !important;
}

.why-list li strong {
    color: var(--primary-blue) !important;
    font-weight: 700 !important;
    display: block !important;
    margin-bottom: 4px !important;
}

.why-list li::before {
    position: absolute !important;
    right: 0 !important;
    top: 4px !important;
}

/* ============================================
   7. MOBILE RESPONSIVE FIXES
   ============================================ */
@media (max-width: 992px) {
    header {
        flex-wrap: wrap !important;
        gap: 16px !important;
    }
    
    nav {
        order: 3 !important;
        width: 100% !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 12px !important;
    }
    
    .dropdown-content {
        position: fixed !important;
        top: auto !important;
        bottom: 20px !important;
        right: 20px !important;
        left: 20px !important;
        width: auto !important;
    }
    
    .hero-stats {
        flex-direction: column !important;
        gap: 16px !important;
        align-items: center !important;
    }
    
    .hero-stat {
        width: 80% !important;
        max-width: 280px !important;
    }
}

@media (max-width: 768px) {
    header {
        padding: 12px 16px !important;
    }
    
    nav a {
        font-size: var(--text-xs) !important;
        padding: 8px 10px !important;
    }
    
    .dropdown > a {
        padding: 8px 14px !important;
        font-size: var(--text-xs) !important;
    }
    
    .hero h1 {
        font-size: clamp(1.5rem, 6vw, 2.5rem) !important;
    }
    
    .hero-subtitle {
        font-size: var(--text-sm) !important;
    }
    
    .hero-cta {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .cta-button {
        width: 100% !important;
        justify-content: center !important;
    }
    
    .pain-grid,
    .steps-container {
        grid-template-columns: 1fr !important;
    }
    
    .why-me-grid {
        grid-template-columns: 1fr !important;
        text-align: center !important;
    }
    
    .why-list li {
        padding-right: 0 !important;
        padding-top: 40px !important;
    }
    
    .why-list li::before {
        right: 50% !important;
        transform: translateX(50%) !important;
        top: 0 !important;
    }
    
    .buffett-quote {
        padding: 24px 20px !important;
        margin: 30px 16px !important;
    }
    
    .quote-text {
        font-size: var(--text-lg) !important;
    }
}

@media (max-width: 480px) {
    .skip-link {
        padding: 12px 20px !important;
        font-size: var(--text-sm) !important;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg) !important;
    }
    
    nav {
        gap: 8px !important;
    }
    
    nav a {
        font-size: 11px !important;
        padding: 6px 8px !important;
    }
    
    .dropdown > a {
        padding: 6px 10px !important;
        font-size: 11px !important;
    }
    
    .hero {
        padding: 60px 16px !important;
        min-height: 60vh !important;
    }
    
    .trust-badge {
        font-size: var(--text-xs) !important;
        padding: 8px 16px !important;
    }
    
    .hero-stat {
        width: 90% !important;
        padding: 16px 20px !important;
    }
    
    .hero-stat-value {
        font-size: 1.8rem !important;
    }
    
    .section-title {
        font-size: var(--text-xl) !important;
    }
    
    .pain-item,
    .step-card {
        padding: 24px 20px !important;
    }
}

/* ============================================
   8. TOUCH TARGET SIZES (min 44x44px)
   ============================================ */
@media (pointer: coarse) {
    nav a,
    .dropdown > a,
    .cta-button,
    .calc-btn,
    .dropdown-content a {
        min-height: 44px !important;
        min-width: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .whatsapp-float {
        width: 56px !important;
        height: 56px !important;
    }
}

/* ============================================
   9. DARK MODE FIXES
   ============================================ */
body.dark-mode header {
    background: rgba(10, 15, 20, 0.98) !important;
}

body.dark-mode .skip-link {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%) !important;
}

body.dark-mode .dropdown-content {
    background: var(--dark-bg-secondary) !important;
    border-color: var(--accent-gold) !important;
}

body.dark-mode .dropdown-content a {
    color: var(--dark-text-primary) !important;
}

body.dark-mode .dropdown-content a:hover {
    background: var(--dark-bg-tertiary) !important;
}

/* ============================================
   10. PRINT STYLES
   ============================================ */
@media print {
    .skip-link,
    .dark-mode-toggle,
    .whatsapp-float,
    .scroll-progress,
    .money-trail-canvas {
        display: none !important;
    }
    
    header {
        background: white !important;
        color: black !important;
        position: static !important;
    }
    
    nav a {
        color: black !important;
    }
}

/* ============================================
   11. REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .skip-link {
        transition: none !important;
    }
    
    .dropdown-content {
        transition: none !important;
    }
    
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   12. HIGH CONTRAST MODE
   ============================================ */
@media (prefers-contrast: high) {
    .skip-link {
        background: #000 !important;
        color: #fff !important;
        border: 2px solid #fff !important;
    }
    
    .dropdown-content {
        border: 2px solid #000 !important;
    }
    
    nav a {
        border: 1px solid currentColor !important;
    }
}

/* ============================================
   13. LANDSCAPE MOBILE FIX
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto !important;
        padding: 40px 20px !important;
    }
    
    .hero-stats {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }
    
    .hero-stat {
        width: auto !important;
        min-width: 100px !important;
        padding: 12px 16px !important;
    }
}

/* ============================================
   14. SAFE AREA INSETS (Notch phones)
   ============================================ */
@supports (padding: max(0px)) {
    header {
        padding-left: max(5%, env(safe-area-inset-left)) !important;
        padding-right: max(5%, env(safe-area-inset-right)) !important;
    }
    
    .hero {
        padding-left: max(20px, env(safe-area-inset-left)) !important;
        padding-right: max(20px, env(safe-area-inset-right)) !important;
    }
    
    .whatsapp-float {
        bottom: max(20px, env(safe-area-inset-bottom)) !important;
        left: max(20px, env(safe-area-inset-left)) !important;
    }
}
/* ============================================
   V5.2 FIXES - Professional Polish
   - Subtle cursor effect
   - Light mode default
   - No toast notifications  
   - Better text contrast
   - No floating money on buttons
   ============================================ */

/* ============================================
   1. SUBTLE CURSOR GLOW (Not Money Trail)
   ============================================ */
/* Hide money trail canvas */
.money-trail-canvas {
    display: none !important;
}

/* ============================================
   2. REMOVE FLOATING MONEY ON BUTTONS
   ============================================ */
.cta-button::before,
.cta-button::after,
.calc-btn::before,
.calc-btn::after {
    content: none !important;
    display: none !important;
    animation: none !important;
}

/* Clean button hover effect */
.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(201, 162, 39, 0.35);
}

/* Shimmer effect instead of money */
.cta-button .shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover .shimmer {
    left: 100%;
}

/* ============================================
   3. HIDE TOAST NOTIFICATIONS
   ============================================ */
.toast-container,
.toast,
.toast-progress {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* ============================================
   4. TEXT CONTRAST FIXES - LIGHT MODE
   ============================================ */

/* Hero text */
.hero h1 {
    color: var(--white) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Section titles */
.section-title {
    color: var(--primary-blue) !important;
}

.section-subtitle {
    color: var(--gray-600) !important;
}

/* Pain items */
.pain-item h3 {
    color: var(--primary-blue) !important;
}

.pain-item p {
    color: var(--gray-600) !important;
}

/* Step cards */
.step-card h4 {
    color: var(--primary-blue) !important;
}

.step-card p {
    color: var(--gray-600) !important;
}

/* Why list */
.why-content h2 {
    color: var(--primary-blue) !important;
}

.why-list li {
    color: var(--gray-700) !important;
    font-size: 1.05rem !important;
}

.why-list li strong {
    color: var(--primary-blue) !important;
}

/* Quote */
.quote-text {
    color: var(--primary-blue) !important;
}

.quote-author {
    color: var(--gray-500) !important;
}

/* Testimonials */
.testimonial-text {
    color: var(--gray-700) !important;
}

.testimonial-info strong {
    color: var(--primary-blue) !important;
}

/* Articles */
.article-card h3 {
    color: var(--primary-blue) !important;
}

.article-card p {
    color: var(--gray-600) !important;
}

/* Tools/Calculators */
.tool-container h1,
.tool-container h2,
.tool-container h3 {
    color: var(--primary-blue) !important;
}

.tool-container p,
.tool-container label {
    color: var(--gray-700) !important;
}

.form-group input,
.form-group select {
    color: var(--gray-800) !important;
    background: var(--white) !important;
}

/* ============================================
   5. TEXT CONTRAST FIXES - DARK MODE
   ============================================ */
body.dark-mode .section-title {
    color: var(--white) !important;
}

body.dark-mode .section-subtitle {
    color: var(--dark-text-secondary) !important;
}

body.dark-mode .pain-item h3,
body.dark-mode .step-card h4,
body.dark-mode .article-card h3,
body.dark-mode .why-content h2 {
    color: var(--white) !important;
}

body.dark-mode .pain-item p,
body.dark-mode .step-card p,
body.dark-mode .article-card p,
body.dark-mode .why-list li,
body.dark-mode .testimonial-text {
    color: var(--dark-text-secondary) !important;
}

body.dark-mode .why-list li strong {
    color: var(--white) !important;
}

body.dark-mode .quote-text {
    color: var(--white) !important;
}

body.dark-mode .quote-author {
    color: var(--dark-text-secondary) !important;
}

body.dark-mode .tool-container h1,
body.dark-mode .tool-container h2,
body.dark-mode .tool-container h3 {
    color: var(--white) !important;
}

body.dark-mode .tool-container p,
body.dark-mode .tool-container label {
    color: var(--dark-text-secondary) !important;
}

body.dark-mode .form-group input,
body.dark-mode .form-group select {
    color: var(--white) !important;
    background: var(--dark-bg-tertiary) !important;
    border-color: var(--dark-border) !important;
}

body.dark-mode .testimonial-info strong {
    color: var(--white) !important;
}

/* ============================================
   6. DARK MODE TOGGLE - SUBTLE
   ============================================ */
.dark-mode-toggle {
    width: 42px !important;
    height: 42px !important;
    font-size: 18px !important;
    opacity: 0.8 !important;
    background: var(--white) !important;
    border: 1px solid var(--gray-200) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.dark-mode-toggle:hover {
    opacity: 1 !important;
    transform: scale(1.05) !important;
}

body.dark-mode .dark-mode-toggle {
    background: var(--dark-bg-tertiary) !important;
    border-color: var(--dark-border) !important;
}

/* ============================================
   7. HEADER - LIGHT MODE DEFAULT
   ============================================ */
header {
    background: var(--white) !important;
    border-bottom: 1px solid var(--gray-200) !important;
}

.brand-name {
    color: var(--primary-blue) !important;
}

nav a {
    color: var(--primary-blue) !important;
}

nav a:hover {
    color: var(--accent-gold) !important;
}

/* Dropdown light mode */
.dropdown > a {
    background: rgba(201, 162, 39, 0.1) !important;
    border-color: rgba(201, 162, 39, 0.2) !important;
    color: var(--accent-gold-dark) !important;
}

.dropdown > a:hover {
    background: var(--accent-gold) !important;
    color: var(--white) !important;
}

.dropdown-content {
    background: var(--white) !important;
    border-color: var(--gray-200) !important;
}

.dropdown-content a {
    color: var(--gray-700) !important;
}

.dropdown-content a:hover {
    background: var(--gray-50) !important;
    color: var(--primary-blue) !important;
}

/* Dark mode header */
body.dark-mode header {
    background: var(--dark-bg-secondary) !important;
    border-bottom-color: var(--dark-border) !important;
}

body.dark-mode .brand-name {
    color: var(--white) !important;
}

body.dark-mode nav a {
    color: var(--dark-text-secondary) !important;
}

body.dark-mode nav a:hover {
    color: var(--accent-gold) !important;
}

body.dark-mode .dropdown-content {
    background: var(--dark-bg-secondary) !important;
    border-color: var(--dark-border) !important;
}

body.dark-mode .dropdown-content a {
    color: var(--dark-text-secondary) !important;
}

body.dark-mode .dropdown-content a:hover {
    background: var(--dark-bg-tertiary) !important;
    color: var(--white) !important;
}

/* ============================================
   8. CARDS & SECTIONS - BOTH MODES
   ============================================ */
.pain-item,
.step-card,
.testimonial-card,
.article-card {
    background: var(--white) !important;
    border: 1px solid var(--gray-200) !important;
}

body.dark-mode .pain-item,
body.dark-mode .step-card,
body.dark-mode .testimonial-card,
body.dark-mode .article-card {
    background: var(--dark-bg-tertiary) !important;
    border-color: var(--dark-border) !important;
}

.buffett-quote {
    background: var(--white) !important;
    border-color: var(--gray-200) !important;
}

body.dark-mode .buffett-quote {
    background: var(--dark-bg-tertiary) !important;
    border-color: var(--dark-border) !important;
}

/* Section backgrounds */
.pain-points {
    background: var(--gray-50) !important;
}

.how-it-works {
    background: var(--white) !important;
}

.why-me {
    background: var(--gray-50) !important;
}

.testimonials {
    background: var(--white) !important;
}

.articles {
    background: var(--gray-50) !important;
}

body.dark-mode .pain-points,
body.dark-mode .why-me,
body.dark-mode .articles {
    background: var(--dark-bg-secondary) !important;
}

body.dark-mode .how-it-works,
body.dark-mode .testimonials {
    background: var(--dark-bg) !important;
}

/* ============================================
   9. RESULT AREAS - BOTH MODES
   ============================================ */
.result-area {
    background: var(--gray-50) !important;
    border-color: var(--gray-200) !important;
}

.result-highlight {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.1) 0%, rgba(201, 162, 39, 0.05) 100%) !important;
    border-color: var(--accent-gold) !important;
}

.result-highlight .label {
    color: var(--gray-600) !important;
}

.result-highlight .value {
    color: var(--accent-gold-dark) !important;
}

body.dark-mode .result-area {
    background: var(--dark-bg-secondary) !important;
    border-color: var(--dark-border) !important;
}

body.dark-mode .result-highlight {
    background: rgba(201, 162, 39, 0.15) !important;
}

body.dark-mode .result-highlight .label {
    color: var(--dark-text-secondary) !important;
}

body.dark-mode .result-highlight .value {
    color: var(--accent-gold) !important;
}
/* ============================================
   UX/UI AUDIT FIXES
   Critical & Medium Priority Issues
   ============================================ */

/* ============================================
   1. DROPDOWN - IMPROVED BEHAVIOR
   ============================================ */
.dropdown {
    position: relative;
}

/* Better trigger button */
.dropdown > .dropbtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.1) 0%, rgba(201, 162, 39, 0.05) 100%);
    border: 1px solid rgba(201, 162, 39, 0.25);
    border-radius: 25px;
    color: var(--accent-gold-dark);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropdown > .dropbtn:hover {
    background: var(--accent-gold);
    color: var(--white);
    border-color: var(--accent-gold);
    transform: translateY(-1px);
}

/* Smooth dropdown animation */
.dropdown-content {
    display: block !important;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 260px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--gray-200);
    border-top: 3px solid var(--accent-gold);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: var(--z-dropdown);
    pointer-events: none;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Keep open when hovering content */
.dropdown-content:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Better dropdown items */
.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: var(--gray-700);
    border-radius: 10px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.dropdown-content a:hover {
    background: var(--gray-50);
    color: var(--primary-blue);
    transform: translateX(-4px);
}

.dropdown-content a i {
    width: 22px;
    color: var(--accent-gold);
    font-size: 16px;
}

/* Dark mode dropdown */
body.dark-mode .dropdown-content {
    background: var(--dark-bg-secondary);
    border-color: var(--dark-border);
}

body.dark-mode .dropdown-content a {
    color: var(--dark-text-secondary);
}

body.dark-mode .dropdown-content a:hover {
    background: var(--dark-bg-tertiary);
    color: var(--white);
}

/* ============================================
   2. TEXT CONTRAST - ALL SECTIONS
   ============================================ */

/* Why List - Better contrast */
.why-list li {
    color: var(--gray-700) !important;
    font-size: 1.1rem !important;
    line-height: 1.8 !important;
    margin-bottom: 20px !important;
    position: relative;
    padding-right: 45px !important;
}

.why-list li strong {
    color: var(--primary-blue) !important;
    font-weight: 700 !important;
    display: block !important;
    margin-bottom: 4px;
    font-size: 1.05rem;
}

body.dark-mode .why-list li {
    color: var(--dark-text-secondary) !important;
}

body.dark-mode .why-list li strong {
    color: var(--white) !important;
}

/* Pain Items - Better text */
.pain-item h3 {
    color: var(--primary-blue) !important;
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.pain-item p {
    color: var(--gray-600) !important;
    line-height: 1.7;
    font-size: 1rem;
}

body.dark-mode .pain-item h3 {
    color: var(--white) !important;
}

body.dark-mode .pain-item p {
    color: var(--dark-text-secondary) !important;
}

/* Step Cards - Better text */
.step-card h4 {
    color: var(--primary-blue) !important;
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.step-card p {
    color: var(--gray-600) !important;
    line-height: 1.7;
}

body.dark-mode .step-card h4 {
    color: var(--white) !important;
}

body.dark-mode .step-card p {
    color: var(--dark-text-secondary) !important;
}

/* Quote section */
.quote-text {
    color: var(--primary-blue) !important;
    font-size: 1.35rem;
}

.quote-author {
    color: var(--gray-500) !important;
}

body.dark-mode .quote-text {
    color: var(--white) !important;
}

/* Testimonials */
.testimonial-text {
    color: var(--gray-700) !important;
    font-size: 1.05rem;
    line-height: 1.8;
}

body.dark-mode .testimonial-text {
    color: var(--dark-text-secondary) !important;
}

/* Tool pages */
.tool-container h1,
.tool-container h2,
.tool-container h3 {
    color: var(--primary-blue) !important;
}

.tool-container p,
.tool-container label {
    color: var(--gray-700) !important;
}

body.dark-mode .tool-container h1,
body.dark-mode .tool-container h2,
body.dark-mode .tool-container h3 {
    color: var(--white) !important;
}

body.dark-mode .tool-container p,
body.dark-mode .tool-container label {
    color: var(--dark-text-secondary) !important;
}

/* ============================================
   3. MOBILE HAMBURGER MENU
   ============================================ */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-blue);
    border-radius: 2px;
    transition: all 0.3s ease;
}

body.dark-mode .hamburger span {
    background: var(--white);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 24px 24px;
        gap: 8px;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    body.dark-mode nav {
        background: var(--dark-bg-secondary);
    }
    
    nav.open {
        right: 0;
    }
    
    nav > a {
        padding: 16px 20px;
        font-size: 1rem;
        border-radius: 10px;
    }
    
    nav > a:hover {
        background: var(--gray-50);
    }
    
    body.dark-mode nav > a:hover {
        background: var(--dark-bg-tertiary);
    }
    
    /* Mobile dropdown */
    .dropdown {
        width: 100%;
    }
    
    .dropdown > .dropbtn {
        width: 100%;
        justify-content: space-between;
        padding: 16px 20px;
        border-radius: 10px;
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        border-top: none;
        background: var(--gray-50);
        margin-top: 8px;
        border-radius: 10px;
        padding: 8px;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: max-height 0.3s ease;
    }
    
    body.dark-mode .dropdown-content {
        background: var(--dark-bg-tertiary);
    }
    
    .dropdown.open .dropdown-content {
        max-height: 500px;
        pointer-events: auto;
    }
    
    /* Nav overlay */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .nav-overlay.active {
        display: block;
    }
    
    /* CTA in mobile nav */
    nav .cta-button {
        width: 100%;
        justify-content: center;
        margin-top: 16px;
    }
}

/* ============================================
   4. TOUCH TARGETS - 44px MINIMUM
   ============================================ */
@media (pointer: coarse) {
    nav a,
    .dropdown-content a,
    .cta-button,
    .calc-btn,
    .dark-mode-toggle,
    footer a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    .dropdown-content a {
        padding: 14px 18px;
    }
    
    .whatsapp-float {
        width: 56px;
        height: 56px;
    }
    
    .dark-mode-toggle {
        width: 48px;
        height: 48px;
    }
}

/* ============================================
   5. FORM VALIDATION VISUAL
   ============================================ */
.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
    outline: none;
}

.form-group input:valid:not(:placeholder-shown) {
    border-color: var(--success);
}

.form-group input:invalid:not(:placeholder-shown):not(:focus) {
    border-color: var(--danger);
}

/* Error/Success icons */
.form-group {
    position: relative;
}

.form-group input:valid:not(:placeholder-shown) + .validation-icon::after {
    content: '✓';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--success);
    font-weight: bold;
}

/* ============================================
   6. LOADING STATE FOR BUTTONS
   ============================================ */
.calc-btn {
    position: relative;
    transition: all 0.3s ease;
}

.calc-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.calc-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: buttonSpin 0.8s linear infinite;
    margin-right: 10px;
}

@keyframes buttonSpin {
    to { transform: rotate(360deg); }
}

/* ============================================
   7. EMPTY STATES
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--gray-700);
    margin-bottom: 8px;
}

.empty-state p {
    margin-bottom: 24px;
}

/* ============================================
   8. RESULT AREA IMPROVEMENTS
   ============================================ */
.result-area {
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-highlight {
    position: relative;
    overflow: hidden;
}

.result-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: resultShimmer 1.5s ease-out;
}

@keyframes resultShimmer {
    to { left: 100%; }
}

/* ============================================
   9. FOOTER IMPROVEMENTS
   ============================================ */
footer {
    background: var(--primary-blue-dark);
    padding: 60px 5% 40px;
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-brand .monogram {
    width: 40px;
    height: 40px;
    background: var(--accent-gold);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

footer h4 {
    color: var(--accent-gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    display: block;
    padding: 6px 0;
    transition: all 0.2s ease;
}

footer a:hover {
    color: var(--accent-gold);
    transform: translateX(-4px);
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0;
}

/* Legal disclaimer collapsible */
.legal-disclaimer {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.6;
    max-width: 800px;
    margin: 24px auto 0;
}

.legal-disclaimer summary {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

/* ============================================
   10. MICRO-INTERACTIONS
   ============================================ */

/* Card hover lift */
.pain-item,
.step-card,
.testimonial-card,
.article-card {
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.pain-item:hover,
.step-card:hover,
.testimonial-card:hover,
.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

body.dark-mode .pain-item:hover,
body.dark-mode .step-card:hover,
body.dark-mode .testimonial-card:hover,
body.dark-mode .article-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Button press effect */
.cta-button:active,
.calc-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* Input focus grow */
.form-group input:focus {
    transform: scale(1.01);
}

/* Link underline animation */
.article-link,
.footer-links a {
    position: relative;
}

.article-link::after,
.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

.article-link:hover::after,
.footer-links a:hover::after {
    width: 100%;
}

/* ============================================
   11. SCROLL BEHAVIOR IMPROVEMENTS
   ============================================ */

/* Smooth anchor scrolling with offset */
html {
    scroll-padding-top: 100px;
}

/* Hide scrollbar during smooth scroll */
html.smooth-scrolling {
    overflow-y: hidden;
}

/* ============================================
   12. ACCESSIBILITY IMPROVEMENTS
   ============================================ */

/* Better focus indicators */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: 3px;
}

/* Skip link improvements */
.skip-link {
    position: fixed;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gold);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 0 0 16px 16px;
    font-weight: 700;
    z-index: 10000;
    transition: top 0.3s ease;
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.4);
}

.skip-link:focus {
    top: 0;
}

/* Screen reader only class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
/* ============================================
   COMPLETE UX/UI IMPROVEMENTS
   All remaining fixes from audit
   ============================================ */

/* ============================================
   1. IMPROVED FOOTER DESIGN
   ============================================ */
footer {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    padding: 0;
    margin-top: 0;
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 60px 5% 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-brand .monogram {
    width: 45px;
    height: 45px;
    background: var(--accent-gold);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 16px;
}

.footer-brand span {
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
}

footer h4 {
    color: var(--accent-gold);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-nav a,
.footer-tools a,
.footer-contact a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 0;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.footer-nav a:hover,
.footer-tools a:hover,
.footer-contact a:hover {
    color: var(--accent-gold);
    transform: translateX(-4px);
}

.footer-contact a i {
    width: 18px;
    color: var(--accent-gold);
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--accent-gold);
    transform: translateY(-3px);
}

/* Legal Disclaimer Collapsible */
footer .legal-disclaimer {
    margin-top: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

footer .legal-disclaimer summary {
    padding: 16px 20px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

footer .legal-disclaimer summary::-webkit-details-marker {
    display: none;
}

footer .legal-disclaimer summary::before {
    content: '▶';
    font-size: 10px;
    transition: transform 0.3s ease;
}

footer .legal-disclaimer[open] summary::before {
    transform: rotate(90deg);
}

footer .legal-disclaimer p {
    padding: 0 20px 16px;
    margin: 0;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.4);
}

footer .legal-disclaimer p:first-of-type {
    padding-top: 0;
}

/* Footer Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-about {
        grid-column: span 2;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-about {
        grid-column: span 1;
    }
    
    .footer-brand {
        justify-content: center;
    }
    
    .footer-nav a,
    .footer-tools a,
    .footer-contact a {
        justify-content: center;
    }
    
    .footer-nav a:hover,
    .footer-tools a:hover,
    .footer-contact a:hover {
        transform: none;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* ============================================
   2. TESTIMONIALS CAROUSEL (Mobile)
   ============================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: var(--container-max);
    margin: 0 auto;
}

@media (max-width: 768px) {
    .testimonials-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding: 0 20px 20px;
        margin: 0 -20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .testimonials-grid::-webkit-scrollbar {
        display: none;
    }
    
    .testimonial-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
    }
    
    /* Carousel dots indicator */
    .testimonials::after {
        content: '';
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 16px;
    }
    
    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 16px;
    }
    
    .carousel-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--gray-300);
        transition: all 0.3s ease;
    }
    
    .carousel-dot.active {
        background: var(--accent-gold);
        width: 24px;
        border-radius: 4px;
    }
}

/* ============================================
   3. HAMBURGER MENU - ENHANCED
   ============================================ */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.hamburger:hover {
    background: var(--gray-100);
}

body.dark-mode .hamburger:hover {
    background: var(--dark-bg-tertiary);
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--primary-blue);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

body.dark-mode .hamburger span {
    background: var(--white);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Nav Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    header {
        position: fixed;
        width: 100%;
        top: 0;
        right: 0;
    }
    
    body {
        padding-top: 80px;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background: var(--white);
        flex-direction: column;
        padding: 100px 24px 40px;
        gap: 8px;
        box-shadow: -10px 0 50px rgba(0, 0, 0, 0.15);
        transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 1000;
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    
    body.dark-mode nav {
        background: var(--dark-bg-secondary);
    }
    
    nav.open {
        right: 0;
    }
    
    nav > a {
        padding: 16px 20px;
        font-size: 1.05rem;
        border-radius: 12px;
        width: 100%;
        transition: all 0.2s ease;
    }
    
    nav > a:hover,
    nav > a.active {
        background: var(--gray-50);
    }
    
    body.dark-mode nav > a:hover,
    body.dark-mode nav > a.active {
        background: var(--dark-bg-tertiary);
    }
    
    nav > a::after {
        display: none;
    }
    
    /* Mobile dropdown */
    nav .dropdown {
        width: 100%;
    }
    
    nav .dropdown > .dropbtn {
        width: 100%;
        justify-content: space-between;
        padding: 16px 20px;
        border-radius: 12px;
        background: var(--accent-gold-subtle);
        border: 1px solid rgba(201, 162, 39, 0.2);
    }
    
    nav .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        border-top: none;
        background: var(--gray-50);
        margin-top: 8px;
        border-radius: 12px;
        padding: 8px;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: max-height 0.4s ease, padding 0.4s ease;
    }
    
    body.dark-mode nav .dropdown-content {
        background: var(--dark-bg-tertiary);
    }
    
    nav .dropdown.open .dropdown-content {
        max-height: 400px;
        padding: 8px;
    }
    
    nav .dropdown-content a {
        padding: 14px 16px;
    }
    
    /* CTA Button in mobile nav */
    nav .cta-button {
        width: 100%;
        justify-content: center;
        margin-top: 24px;
        padding: 18px 24px;
        font-size: 1.05rem;
    }
}

/* ============================================
   4. SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
    z-index: 10000;
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px var(--accent-gold);
}

/* ============================================
   5. BUTTON LOADING STATES
   ============================================ */
.calc-btn {
    position: relative;
    min-width: 200px;
}

.calc-btn.loading {
    pointer-events: none;
    opacity: 0.85;
}

.calc-btn.loading i {
    display: none;
}

.calc-btn.loading::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: buttonSpin 0.8s linear infinite;
    margin-left: 10px;
}

@keyframes buttonSpin {
    to { transform: rotate(360deg); }
}

/* ============================================
   6. FORM VALIDATION STATES
   ============================================ */
.form-group input,
.form-group select {
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.15);
    outline: none;
}

.form-group input.valid {
    border-color: var(--success);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    padding-left: 40px;
}

.form-group input.invalid {
    border-color: var(--danger);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='15' y1='9' x2='9' y2='15'%3E%3C/line%3E%3Cline x1='9' y1='9' x2='15' y2='15'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    padding-left: 40px;
}

/* ============================================
   7. RESULT AREA ANIMATIONS
   ============================================ */
.result-area {
    animation: fadeSlideUp 0.5s ease-out;
}

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

.result-highlight {
    position: relative;
    overflow: hidden;
}

.result-highlight.animate::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmerResult 1s ease-out forwards;
}

@keyframes shimmerResult {
    to { left: 100%; }
}

.result-item {
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInItem 0.4s ease-out forwards;
}

.result-item:nth-child(1) { animation-delay: 0.1s; }
.result-item:nth-child(2) { animation-delay: 0.2s; }
.result-item:nth-child(3) { animation-delay: 0.3s; }
.result-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInItem {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   8. EMPTY STATE DESIGN
   ============================================ */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-500);
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.4;
    animation: float 3s ease-in-out infinite;
}

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

.empty-state h3 {
    color: var(--gray-700);
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.empty-state p {
    color: var(--gray-500);
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

body.dark-mode .empty-state h3 {
    color: var(--white);
}

body.dark-mode .empty-state p {
    color: var(--dark-text-secondary);
}

/* ============================================
   9. ENHANCED CARD HOVER EFFECTS
   ============================================ */
.pain-item,
.step-card,
.testimonial-card,
.article-card {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform, box-shadow;
}

.pain-item:hover,
.step-card:hover,
.testimonial-card:hover,
.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.1),
        0 10px 20px rgba(0, 0, 0, 0.06);
}

body.dark-mode .pain-item:hover,
body.dark-mode .step-card:hover,
body.dark-mode .testimonial-card:hover,
body.dark-mode .article-card:hover {
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Card shine effect on hover */
.card-shine {
    position: relative;
    overflow: hidden;
}

.card-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: skewX(-25deg);
    transition: left 0.6s ease;
}

.card-shine:hover::before {
    left: 125%;
}

/* ============================================
   10. IMPROVED DROPDOWN (Desktop)
   ============================================ */
@media (min-width: 769px) {
    .dropdown-content {
        display: block;
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        min-width: 280px;
        background: var(--white);
        border-radius: 16px;
        box-shadow: 
            0 20px 60px rgba(0, 0, 0, 0.15),
            0 5px 20px rgba(0, 0, 0, 0.08);
        border: 1px solid var(--gray-100);
        border-top: 3px solid var(--accent-gold);
        padding: 12px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px) scale(0.95);
        transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: var(--z-dropdown);
        pointer-events: none;
    }
    
    .dropdown:hover .dropdown-content,
    .dropdown:focus-within .dropdown-content {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }
    
    .dropdown-content a {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 14px 18px;
        color: var(--gray-700);
        border-radius: 10px;
        transition: all 0.2s ease;
        font-weight: 500;
    }
    
    .dropdown-content a:hover {
        background: var(--gray-50);
        color: var(--primary-blue);
        transform: translateX(-6px);
    }
    
    .dropdown-content a i {
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--accent-gold-subtle);
        color: var(--accent-gold-dark);
        border-radius: 8px;
        font-size: 12px;
    }
    
    body.dark-mode .dropdown-content {
        background: var(--dark-bg-secondary);
        border-color: var(--dark-border);
    }
    
    body.dark-mode .dropdown-content a {
        color: var(--dark-text-secondary);
    }
    
    body.dark-mode .dropdown-content a:hover {
        background: var(--dark-bg-tertiary);
        color: var(--white);
    }
}

/* ============================================
   11. IMPROVED ACCESSIBILITY
   ============================================ */

/* Better focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: 3px;
}

/* Skip link */
.skip-link {
    position: fixed;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gold);
    color: var(--white);
    padding: 16px 32px;
    border-radius: 0 0 16px 16px;
    font-weight: 700;
    font-size: 1rem;
    z-index: 100000;
    transition: top 0.3s ease;
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.4);
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .scroll-progress {
        display: none;
    }
}

/* ============================================
   12. DARK MODE TOGGLE IMPROVEMENT
   ============================================ */
.dark-mode-toggle {
    position: fixed;
    bottom: 100px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--gray-200);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.dark-mode-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

body.dark-mode .dark-mode-toggle {
    background: var(--dark-bg-tertiary);
    border-color: var(--dark-border);
}

/* ============================================
   13. WHATSAPP BUTTON IMPROVEMENT
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    left: 20px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 998;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    animation: whatsappPulse 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes whatsappPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* Adjust positions when both buttons exist */
.dark-mode-toggle {
    bottom: 90px;
}

/* ============================================
   14. PRINT STYLES
   ============================================ */
@media print {
    header,
    footer,
    .whatsapp-float,
    .dark-mode-toggle,
    .scroll-progress,
    .hamburger,
    .nav-overlay {
        display: none !important;
    }
    
    body {
        padding-top: 0 !important;
    }
    
    .hero {
        min-height: auto;
        padding: 40px 20px;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}
/* ============================================
   FINAL FIXES & ADDITIONAL IMPROVEMENTS
   - Dark Mode Fix
   - More UX Improvements
   ============================================ */

/* ============================================
   1. DARK MODE - COMPREHENSIVE STYLES
   ============================================ */

/* Dark Mode Variables */
:root {
    --dark-bg: #0a0f14;
    --dark-bg-secondary: #111820;
    --dark-bg-tertiary: #1a242e;
    --dark-text: #f0f2f5;
    --dark-text-secondary: #a0a8b2;
    --dark-border: rgba(255, 255, 255, 0.1);
}

/* Base dark mode */
body.dark-mode {
    background-color: var(--dark-bg) !important;
    color: var(--dark-text) !important;
}

/* Header dark mode */
body.dark-mode header {
    background: rgba(17, 24, 32, 0.95) !important;
    border-bottom-color: var(--dark-border) !important;
}

body.dark-mode .brand-name {
    color: var(--white) !important;
}

body.dark-mode .brand-slogan {
    color: var(--accent-gold) !important;
}

body.dark-mode nav > a {
    color: var(--dark-text-secondary) !important;
}

body.dark-mode nav > a:hover,
body.dark-mode nav > a.active {
    color: var(--white) !important;
}

/* Dropdown dark mode */
body.dark-mode .dropdown-content {
    background: var(--dark-bg-secondary) !important;
    border-color: var(--dark-border) !important;
}

body.dark-mode .dropdown-content a {
    color: var(--dark-text-secondary) !important;
}

body.dark-mode .dropdown-content a:hover {
    background: var(--dark-bg-tertiary) !important;
    color: var(--white) !important;
}

/* Sections dark mode */
body.dark-mode .pain-points,
body.dark-mode .why-me,
body.dark-mode .articles {
    background: var(--dark-bg-secondary) !important;
}

body.dark-mode .how-it-works,
body.dark-mode .process,
body.dark-mode .testimonials {
    background: var(--dark-bg) !important;
}

/* Cards dark mode */
body.dark-mode .pain-item,
body.dark-mode .step-card,
body.dark-mode .testimonial-card,
body.dark-mode .article-card {
    background: var(--dark-bg-tertiary) !important;
    border-color: var(--dark-border) !important;
}

body.dark-mode .pain-item h3,
body.dark-mode .step-card h4,
body.dark-mode .article-card h3,
body.dark-mode .testimonial-info strong {
    color: var(--white) !important;
}

body.dark-mode .pain-item p,
body.dark-mode .step-card p,
body.dark-mode .article-card p,
body.dark-mode .testimonial-text {
    color: var(--dark-text-secondary) !important;
}

/* Section titles dark mode */
body.dark-mode .section-title {
    color: var(--white) !important;
}

body.dark-mode .section-subtitle {
    color: var(--dark-text-secondary) !important;
}

/* Quote dark mode */
body.dark-mode .buffett-quote {
    background: var(--dark-bg-tertiary) !important;
    border-color: var(--dark-border) !important;
}

body.dark-mode .quote-text {
    color: var(--white) !important;
}

body.dark-mode .quote-author {
    color: var(--dark-text-secondary) !important;
}

/* Why me section dark mode */
body.dark-mode .why-content h2 {
    color: var(--white) !important;
}

body.dark-mode .why-list li {
    color: var(--dark-text-secondary) !important;
}

body.dark-mode .why-list li strong {
    color: var(--white) !important;
}

/* Tool container dark mode */
body.dark-mode .tool-container {
    background: var(--dark-bg-secondary) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5) !important;
}

body.dark-mode .tool-container h1,
body.dark-mode .tool-container h2,
body.dark-mode .tool-container h3 {
    color: var(--white) !important;
}

body.dark-mode .tool-container p,
body.dark-mode .tool-container label {
    color: var(--dark-text-secondary) !important;
}

/* Form inputs dark mode */
body.dark-mode .form-group input,
body.dark-mode .form-group select {
    background: var(--dark-bg-tertiary) !important;
    border-color: var(--dark-border) !important;
    color: var(--white) !important;
}

body.dark-mode .form-group input::placeholder {
    color: var(--dark-text-secondary) !important;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group select:focus {
    border-color: var(--accent-gold) !important;
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2) !important;
}

body.dark-mode .form-hint {
    color: var(--dark-text-secondary) !important;
}

/* Result area dark mode */
body.dark-mode .result-area {
    background: var(--dark-bg-tertiary) !important;
    border-color: var(--dark-border) !important;
}

body.dark-mode .result-area h3 {
    color: var(--white) !important;
}

body.dark-mode .result-highlight {
    background: rgba(201, 162, 39, 0.15) !important;
}

body.dark-mode .result-highlight .label {
    color: var(--dark-text-secondary) !important;
}

body.dark-mode .result-highlight .value {
    color: var(--accent-gold) !important;
}

body.dark-mode .result-item .label {
    color: var(--dark-text-secondary) !important;
}

body.dark-mode .result-item .value {
    color: var(--white) !important;
}

/* Footer dark mode */
body.dark-mode footer {
    background: linear-gradient(135deg, #080d12 0%, #0a0f14 100%) !important;
}

/* Mobile nav dark mode */
body.dark-mode nav {
    background: var(--dark-bg-secondary) !important;
}

body.dark-mode .nav-overlay.active {
    background: rgba(0, 0, 0, 0.7) !important;
}

/* Hamburger dark mode */
body.dark-mode .hamburger span {
    background: var(--white) !important;
}

body.dark-mode .hamburger:hover {
    background: var(--dark-bg-tertiary) !important;
}

/* Dark mode toggle button */
.dark-mode-toggle {
    position: fixed !important;
    bottom: 100px !important;
    left: 24px !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background: var(--white) !important;
    border: 2px solid var(--gray-200) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    cursor: pointer !important;
    font-size: 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 9999 !important;
    transition: all 0.3s ease !important;
}

.dark-mode-toggle:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2) !important;
}

body.dark-mode .dark-mode-toggle {
    background: var(--dark-bg-tertiary) !important;
    border-color: var(--dark-border) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

/* Details/Summary dark mode */
body.dark-mode details {
    background: var(--dark-bg-tertiary) !important;
    border-color: var(--dark-border) !important;
}

body.dark-mode details summary {
    color: var(--dark-text-secondary) !important;
}

body.dark-mode details[open] {
    background: var(--dark-bg-tertiary) !important;
}

/* Chart dark mode */
body.dark-mode .chart-container {
    background: var(--dark-bg) !important;
}

/* ============================================
   2. ADDITIONAL UX IMPROVEMENTS
   ============================================ */

/* Smooth page transitions */
html {
    scroll-behavior: smooth;
}

/* Better text selection */
::selection {
    background: var(--accent-gold);
    color: var(--white);
}

body.dark-mode ::selection {
    background: var(--accent-gold);
    color: var(--primary-blue);
}

/* Improved button active state */
.cta-button:active,
.calc-btn:active {
    transform: translateY(0) scale(0.98) !important;
}

/* Better focus for accessibility */
:focus-visible {
    outline: 3px solid var(--accent-gold) !important;
    outline-offset: 3px !important;
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[loading] {
    opacity: 0;
}

/* Better link hover */
a {
    transition: color 0.2s ease, transform 0.2s ease;
}

/* Monogram hover effect */
.monogram-large:hover {
    transform: scale(1.05) rotate(-5deg);
    box-shadow: 0 10px 40px rgba(201, 162, 39, 0.3);
}

/* Step number pulse */
.step-num {
    animation: stepPulse 2s ease-in-out infinite;
}

@keyframes stepPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(201, 162, 39, 0); }
}

/* Pain icon bounce on hover */
.pain-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.pain-item:hover .pain-icon {
    transform: scale(1.2);
    animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1.2) translateY(0); }
    50% { transform: scale(1.2) translateY(-5px); }
}

/* Trust badge glow */
.trust-badge {
    animation: trustGlow 3s ease-in-out infinite;
}

@keyframes trustGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.4); }
    50% { box-shadow: 0 0 20px 5px rgba(201, 162, 39, 0.2); }
}

/* Testimonial avatar gradient border */
.testimonial-avatar {
    position: relative;
}

.testimonial-avatar::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
    border-radius: 50%;
    z-index: -1;
}

/* Article card image placeholder */
.article-card::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light), var(--accent-gold));
    border-radius: 4px 4px 0 0;
}

/* Improved scrollbar for dark mode */
body.dark-mode::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

body.dark-mode::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
}

/* ============================================
   3. PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* GPU acceleration for animations */
.pain-item,
.step-card,
.testimonial-card,
.article-card,
.cta-button,
.calc-btn {
    will-change: transform;
    transform: translateZ(0);
}

/* Reduce repaints */
.hero::before,
.hero::after {
    will-change: transform, opacity;
}

/* Optimize scroll performance */
.hero,
.testimonials-grid {
    contain: layout style;
}

/* ============================================
   4. MOBILE OPTIMIZATIONS
   ============================================ */

@media (max-width: 768px) {
    /* Larger touch targets */
    .cta-button,
    .calc-btn {
        min-height: 50px;
        padding: 16px 28px;
    }
    
    /* Better spacing */
    section {
        padding: 60px 20px;
    }
    
    /* Larger text for readability */
    .pain-item p,
    .step-card p,
    .testimonial-text {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    /* Dark mode toggle position on mobile */
    .dark-mode-toggle {
        bottom: 90px !important;
        left: 16px !important;
        width: 46px !important;
        height: 46px !important;
    }
    
    /* WhatsApp button position */
    .whatsapp-float {
        bottom: 20px !important;
        left: 16px !important;
        width: 52px !important;
        height: 52px !important;
    }
}

/* ============================================
   5. PRINT IMPROVEMENTS
   ============================================ */

@media print {
    .dark-mode-toggle,
    .whatsapp-float,
    .scroll-progress,
    
    body.dark-mode {
        background: white !important;
        color: black !important;
    }
    
    body.dark-mode * {
        background: white !important;
        color: black !important;
        border-color: #ccc !important;
    }
}
/* ============================================
   CALCULATOR IMPROVEMENTS
   Premium styling for all calculator pages
   ============================================ */

/* ============================================
   1. LOANS SECTION - BASE STYLING
   ============================================ */
.loans-section {
    background: var(--gray-50);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    border: 1px solid var(--gray-200);
    position: relative;
    transition: all 0.3s ease;
}

.loans-section:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* Golden border section */
.loans-section[style*="border: 2px solid var(--accent-gold)"] {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.03) 0%, rgba(255, 255, 255, 1) 100%) !important;
    border: 2px solid var(--accent-gold) !important;
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.1);
}

.loans-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 10px;
}

.loans-section h3 i {
    font-size: 1.1rem;
}

/* ============================================
   2. LOAN CARDS - INDIVIDUAL LOAN ENTRIES
   ============================================ */
.loan-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--gray-200);
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.loan-card:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.1);
    transform: translateY(-2px);
}

/* Loan card number indicator */
.loan-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-gold), var(--accent-gold-light));
    border-radius: 0 12px 12px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loan-card:hover::before {
    opacity: 1;
}

.loan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 600px) {
    .loan-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ============================================
   3. REMOVE BUTTON - TRASH ICON
   ============================================ */
.remove-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--gray-100);
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 14px;
}

.remove-btn:hover {
    background: var(--danger-light);
    color: var(--danger);
    transform: scale(1.1);
}

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

/* ============================================
   4. ADD BUTTON - ADD NEW LOAN
   ============================================ */
.add-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: 2px dashed var(--accent-gold);
    border-radius: 10px;
    color: var(--accent-gold-dark);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.add-btn:hover {
    background: var(--accent-gold-subtle);
    border-style: solid;
    transform: translateY(-2px);
}

.add-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.add-btn:hover i {
    transform: rotate(90deg);
}

/* ============================================
   5. TOTAL BALANCE STRIP
   ============================================ */
.total-balance-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--white);
    padding: 16px 24px;
    border-radius: 10px;
    margin-top: 20px;
    font-weight: 600;
}

.total-balance-strip span:last-child {
    font-size: 1.3rem;
    color: var(--accent-gold);
    font-family: var(--font-heading);
}

/* ============================================
   6. FORM INPUTS - CALCULATOR SPECIFIC
   ============================================ */
.tool-container .form-group {
    margin-bottom: 20px;
}

.tool-container .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray-700);
    font-size: 0.95rem;
}

.tool-container .form-group input,
.tool-container .form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    background: var(--white);
}

.tool-container .form-group input:hover,
.tool-container .form-group select:hover {
    border-color: var(--gray-300);
}

.tool-container .form-group input:focus,
.tool-container .form-group select:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.15);
    outline: none;
}

.tool-container .form-group input::placeholder {
    color: var(--gray-400);
}

/* Number input with icons */
.tool-container .form-group input[type="number"] {
    -moz-appearance: textfield;
}

.tool-container .form-group input[type="number"]::-webkit-outer-spin-button,
.tool-container .form-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ============================================
   7. FORM ROW - GRID LAYOUT
   ============================================ */
.tool-container .form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .tool-container .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ============================================
   8. CHECKBOX WRAPPER - TOGGLE STYLE
   ============================================ */
.tool-container .checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.tool-container .checkbox-wrapper input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: var(--accent-gold);
    cursor: pointer;
}

.tool-container .checkbox-wrapper label {
    margin: 0;
    cursor: pointer;
    font-size: 0.95rem;
}

/* ============================================
   9. CALCULATE BUTTON - PREMIUM
   ============================================ */
.calc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px 32px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.3);
    position: relative;
    overflow: hidden;
    margin: 24px 0;
}

.calc-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.calc-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(201, 162, 39, 0.4);
}

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

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

.calc-btn i {
    font-size: 1.1rem;
}

/* ============================================
   10. RESULT AREA - PREMIUM STYLING
   ============================================ */
.result-area {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    margin-top: 32px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    animation: slideUp 0.5s ease-out;
}

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

.result-area h3 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.3rem;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.result-area h3 i {
    color: var(--accent-gold);
}

/* ============================================
   11. VERDICT BADGE - SUCCESS/WARNING/DANGER
   ============================================ */
.verdict-badge {
    text-align: center;
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.verdict-badge i {
    font-size: 1.3rem;
}

.verdict-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    color: var(--success);
    border: 2px solid var(--success);
}

.verdict-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    color: var(--warning);
    border: 2px solid var(--warning);
}

.verdict-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    color: var(--info);
    border: 2px solid var(--info);
}

.verdict-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    color: var(--danger);
    border: 2px solid var(--danger);
}

/* ============================================
   12. COMPARISON GRID - CARD LAYOUT
   ============================================ */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 600px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
}

.comp-card {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.comp-card:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.1);
}

.comp-card.highlight {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.08) 0%, rgba(201, 162, 39, 0.03) 100%);
    border: 2px solid var(--accent-gold);
}

.comp-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 8px;
    font-weight: 500;
}

.comp-val {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--primary-blue);
}

/* ============================================
   13. RESULT TABLE - COMPARISON TABLE
   ============================================ */
.result-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.result-table th,
.result-table td {
    padding: 16px 20px;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}

.result-table th {
    background: var(--primary-blue);
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
}

.result-table th:first-child {
    background: var(--primary-blue-dark);
}

.result-table td:first-child {
    font-weight: 600;
    color: var(--gray-700);
    text-align: right;
    background: var(--gray-50);
}

.result-table tr:last-child td {
    border-bottom: none;
}

.result-table tr:hover td {
    background: rgba(201, 162, 39, 0.05);
}

.result-table tr:hover td:first-child {
    background: var(--gray-100);
}

/* ============================================
   14. RESULT HIGHLIGHT - BIG NUMBERS
   ============================================ */
.result-highlight {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.1) 0%, rgba(201, 162, 39, 0.05) 100%);
    border: 2px solid var(--accent-gold);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.result-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.15) 0%, transparent 70%);
}

.result-highlight .label {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin-bottom: 8px;
    font-weight: 500;
}

.result-highlight .value {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--accent-gold-dark);
    line-height: 1.2;
}

/* ============================================
   15. RESULT GRID - 4 COLUMN STATS
   ============================================ */
.result-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 24px 0;
}

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

@media (max-width: 480px) {
    .result-grid {
        grid-template-columns: 1fr;
    }
}

.result-item {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.result-item:hover {
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.result-item .label {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 6px;
}

.result-item .value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
    font-family: var(--font-heading);
}

/* ============================================
   16. CHART CONTAINER
   ============================================ */
.chart-container {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    border: 1px solid var(--gray-200);
}

.chart-container h4 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.chart-container h4 i {
    color: var(--accent-gold);
}

/* ============================================
   17. FORM HINT - HELPER TEXT
   ============================================ */
.form-hint {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-hint::before {
    content: 'ℹ️';
    font-size: 0.9em;
}

/* ============================================
   18. TOOL CONTAINER - BASE
   ============================================ */
.tool-container {
    max-width: 900px;
    margin: -40px auto 60px;
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .tool-container {
        margin: -20px 16px 40px;
        padding: 24px;
        border-radius: 16px;
    }
}

/* ============================================
   19. TOOL HEADER - PAGE TITLE
   ============================================ */
.tool-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--white);
    padding: 80px 24px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tool-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(201, 162, 39, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.tool-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.tool-header h1 i {
    color: var(--accent-gold);
    font-size: 1.8rem;
}

.tool-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    z-index: 1;
    margin: 0;
}

/* ============================================
   20. DARK MODE - CALCULATOR SPECIFIC
   ============================================ */
body.dark-mode .loans-section {
    background: var(--dark-bg-tertiary);
    border-color: var(--dark-border);
}

body.dark-mode .loans-section[style*="border: 2px solid var(--accent-gold)"] {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.05) 0%, var(--dark-bg-tertiary) 100%) !important;
}

body.dark-mode .loans-section h3 {
    border-bottom-color: var(--dark-border);
    color: var(--white);
}

body.dark-mode .loan-card {
    background: var(--dark-bg-secondary);
    border-color: var(--dark-border);
}

body.dark-mode .loan-card:hover {
    border-color: var(--accent-gold);
}

body.dark-mode .remove-btn {
    background: var(--dark-bg-tertiary);
    color: var(--dark-text-secondary);
}

body.dark-mode .remove-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

body.dark-mode .add-btn {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}

body.dark-mode .add-btn:hover {
    background: rgba(201, 162, 39, 0.1);
}

body.dark-mode .total-balance-strip {
    background: linear-gradient(135deg, var(--dark-bg-secondary) 0%, var(--dark-bg-tertiary) 100%);
}

body.dark-mode .tool-container {
    background: var(--dark-bg-secondary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

body.dark-mode .tool-container .form-group label {
    color: var(--dark-text-secondary);
}

body.dark-mode .tool-container .form-group input,
body.dark-mode .tool-container .form-group select {
    background: var(--dark-bg-tertiary);
    border-color: var(--dark-border);
    color: var(--white);
}

body.dark-mode .tool-container .form-group input::placeholder {
    color: var(--dark-text-secondary);
}

body.dark-mode .result-area {
    background: var(--dark-bg-tertiary);
    border-color: var(--dark-border);
}

body.dark-mode .result-area h3 {
    color: var(--white);
}

body.dark-mode .comp-card {
    background: var(--dark-bg-secondary);
    border-color: var(--dark-border);
}

body.dark-mode .comp-card.highlight {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.1) 0%, var(--dark-bg-secondary) 100%);
}

body.dark-mode .comp-label {
    color: var(--dark-text-secondary);
}

body.dark-mode .comp-val {
    color: var(--white);
}

body.dark-mode .result-table th {
    background: var(--dark-bg-primary);
}

body.dark-mode .result-table td {
    background: var(--dark-bg-secondary);
    border-color: var(--dark-border);
    color: var(--dark-text-secondary);
}

body.dark-mode .result-table td:first-child {
    background: var(--dark-bg-tertiary);
    color: var(--white);
}

body.dark-mode .result-highlight {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.1) 0%, var(--dark-bg-tertiary) 100%);
}

body.dark-mode .result-item {
    background: var(--dark-bg-secondary);
    border-color: var(--dark-border);
}

body.dark-mode .result-item .label {
    color: var(--dark-text-secondary);
}

body.dark-mode .result-item .value {
    color: var(--white);
}

body.dark-mode .chart-container {
    background: var(--dark-bg-secondary);
    border-color: var(--dark-border);
}

body.dark-mode .chart-container h4 {
    color: var(--white);
}

body.dark-mode .form-hint {
    color: var(--dark-text-secondary);
}

/* ============================================
   21. ANIMATIONS & TRANSITIONS
   ============================================ */

/* Loan card entrance animation */
.loan-card {
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Result items stagger animation */
.result-item:nth-child(1) { animation-delay: 0.1s; }
.result-item:nth-child(2) { animation-delay: 0.2s; }
.result-item:nth-child(3) { animation-delay: 0.3s; }
.result-item:nth-child(4) { animation-delay: 0.4s; }

/* Hover effects */
.loans-section,
.loan-card,
.comp-card,
.result-item {
    will-change: transform, box-shadow;
}

/* ============================================
   22. RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 480px) {
    .tool-header h1 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 8px;
    }
    
    .tool-header h1 i {
        font-size: 2rem;
    }
    
    .calc-btn {
        font-size: 1rem;
        padding: 16px 24px;
    }
    
    .result-highlight .value {
        font-size: 2rem;
    }
    
    .comp-val {
        font-size: 1.4rem;
    }
}

/* ============================================
   23. PRINT STYLES
   ============================================ */
@media print {
    .tool-header {
        background: var(--primary-blue) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .calc-btn,
    .add-btn,
    .remove-btn {
        display: none !important;
    }
    
    .result-area {
        break-inside: avoid;
    }
}
/* ============================================
   OPTIONS ROW - IMPROVED STYLING
   For calculator checkbox/toggle options
   ============================================ */

.options-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 16px;
}

@media (max-width: 600px) {
    .options-row {
        grid-template-columns: 1fr;
    }
}

.option-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--accent-gold), var(--accent-gold-light));
    transition: height 0.3s ease;
}

.option-card:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.1);
}

.option-card:hover::before {
    height: 100%;
}

/* When checkbox is checked */
.option-card.active {
    border-color: var(--accent-gold);
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.05) 0%, var(--white) 100%);
}

.option-card.active::before {
    height: 100%;
}

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

.option-header input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: var(--accent-gold);
    cursor: pointer;
    flex-shrink: 0;
}

.option-header label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    font-size: 1rem;
    margin: 0;
}

.option-header label i {
    color: var(--accent-gold);
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.option-header label span {
    color: var(--gray-700);
}

.option-content {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

.option-content.hidden {
    display: none !important;
}

.option-content.always-visible {
    display: block;
}

.option-content label {
    display: block;
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 8px;
    font-weight: 500;
}

.option-content input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--gray-50);
}

.option-content input:hover {
    border-color: var(--gray-300);
}

.option-content input:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
    outline: none;
    background: var(--white);
}

.input-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 6px;
    font-style: italic;
}

/* Dark Mode */
body.dark-mode .option-card {
    background: var(--dark-bg-tertiary);
    border-color: var(--dark-border);
}

body.dark-mode .option-card:hover {
    border-color: var(--accent-gold);
}

body.dark-mode .option-card.active {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.08) 0%, var(--dark-bg-tertiary) 100%);
}

body.dark-mode .option-header label,
body.dark-mode .option-header label span {
    color: var(--dark-text-primary);
}

body.dark-mode .option-content {
    border-top-color: var(--dark-border);
}

body.dark-mode .option-content label {
    color: var(--dark-text-secondary);
}

body.dark-mode .option-content input {
    background: var(--dark-bg-secondary);
    border-color: var(--dark-border);
    color: var(--white);
}

body.dark-mode .option-content input:focus {
    background: var(--dark-bg-primary);
}

body.dark-mode .input-hint {
    color: var(--dark-text-secondary);
}

/* Animation for showing content */
.option-content.show {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ============================================
   COMPREHENSIVE MOBILE FIXES
   Fixes for all mobile issues across the site
   ============================================ */

/* ============================================
   1. GLOBAL OVERFLOW PREVENTION
   ============================================ */
html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
}

/* Prevent any element from causing horizontal scroll */
*, *::before, *::after {
    max-width: 100%;
}

img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

/* ============================================
   2. HEADER & NAVIGATION - MOBILE FIX
   ============================================ */
@media (max-width: 768px) {
    header {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        width: 100%;
        padding: 12px 16px;
        z-index: 1001;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }
    
    /* Ensure body has padding for fixed header */
    body {
        padding-top: 70px;
    }
    
    .brand-wrapper {
        flex: 1;
    }
    
    .brand-wrapper a {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .monogram-header {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .brand-text {
        display: flex;
        flex-direction: column;
    }
    
    .brand-name {
        font-size: 14px;
    }
    
    .brand-slogan {
        font-size: 10px;
    }
    
    /* Hamburger always visible on mobile */
    .hamburger {
        display: flex !important;
        position: relative;
        z-index: 1003;
        width: 40px;
        height: 40px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        cursor: pointer;
        background: transparent;
        border: none;
        padding: 8px;
    }
    
    .hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--primary-blue);
        transition: all 0.3s ease;
    }
    
    body.dark-mode .hamburger span {
        background: var(--white);
    }
    
    /* Mobile Navigation */
    nav {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 85% !important;
        max-width: 320px !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: var(--white) !important;
        flex-direction: column !important;
        padding: 80px 20px 20px !important;
        gap: 4px !important;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15) !important;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 1002 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        display: flex !important;
    }
    
    body.dark-mode nav {
        background: var(--dark-bg-secondary) !important;
    }
    
    nav.open {
        right: 0 !important;
    }
    
    /* Nav links in mobile */
    nav > a {
        display: block;
        width: 100%;
        padding: 14px 16px;
        font-size: 1rem;
        border-radius: 10px;
        text-decoration: none;
        color: var(--gray-700);
        transition: background 0.2s ease;
    }
    
    nav > a:hover,
    nav > a:active {
        background: var(--gray-100);
    }
    
    body.dark-mode nav > a {
        color: var(--dark-text-primary);
    }
    
    body.dark-mode nav > a:hover {
        background: var(--dark-bg-tertiary);
    }
    
    /* Nav Overlay */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 1001;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .nav-overlay.active {
        display: block;
        opacity: 1;
    }
}

/* ============================================
   3. DROPDOWN - MOBILE FIX (CRITICAL)
   ============================================ */
@media (max-width: 768px) {
    .dropdown {
        width: 100%;
        position: relative;
    }
    
    .dropdown > .dropbtn {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 16px;
        border-radius: 10px;
        background: transparent;
        border: none;
        cursor: pointer;
        font-size: 1rem;
        color: var(--gray-700);
    }
    
    body.dark-mode .dropdown > .dropbtn {
        color: var(--dark-text-primary);
    }
    
    /* Dropdown content - INSIDE nav, not fixed/absolute */
    .dropdown-content {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        background: var(--gray-50) !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 10px !important;
        margin: 0 !important;
        padding: 0 !important;
        opacity: 1 !important;
        visibility: hidden !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.3s ease, visibility 0.3s ease, padding 0.3s ease !important;
    }
    
    body.dark-mode .dropdown-content {
        background: var(--dark-bg-tertiary) !important;
    }
    
    /* When dropdown is open */
    .dropdown.open .dropdown-content {
        visibility: visible !important;
        max-height: 400px !important;
        padding: 8px !important;
        margin-top: 8px !important;
    }
    
    .dropdown-content a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 14px;
        border-radius: 8px;
        color: var(--gray-700);
        text-decoration: none;
        font-size: 0.95rem;
    }
    
    .dropdown-content a:hover,
    .dropdown-content a:active {
        background: var(--gray-200);
    }
    
    body.dark-mode .dropdown-content a {
        color: var(--dark-text-primary);
    }
    
    body.dark-mode .dropdown-content a:hover {
        background: var(--dark-bg-secondary);
    }
    
    .dropdown-content a i {
        width: 20px;
        text-align: center;
        color: var(--accent-gold);
    }
    
    /* CTA button in nav */
    nav .cta-button {
        width: 100%;
        justify-content: center;
        margin-top: 12px;
        padding: 14px 20px;
    }
}

/* ============================================
   4. HERO SECTION - MOBILE FIX
   ============================================ */
@media (max-width: 768px) {
    .hero {
        padding: 100px 16px 60px;
        min-height: auto;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 16px;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.6;
        padding: 0 8px;
    }
    
    .hero-stats {
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        margin: 24px 0;
    }
    
    .hero-stat {
        flex: 0 0 calc(33.33% - 8px);
        min-width: 90px;
        padding: 12px 8px;
    }
    
    .hero-stat-value {
        font-size: 1.25rem;
    }
    
    .hero-stat-label {
        font-size: 0.7rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 0 16px;
    }
    
    .hero-cta .cta-button {
        width: 100%;
        max-width: 280px;
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    /* Trust badge */
    .hero .trust-badge,
    .trust-badge {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero-stat {
        flex: 0 0 100%;
        max-width: 200px;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
    }
}

/* ============================================
   5. SECTIONS - MOBILE FIX
   ============================================ */
@media (max-width: 768px) {
    section {
        padding: 48px 16px;
        overflow-x: hidden;
    }
    
    section h2 {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }
    
    /* Pain points grid */
    .pain-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    
    .pain-item {
        padding: 20px;
    }
    
    /* Steps container */
    .steps-container {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .step-card {
        padding: 24px 20px;
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    /* Articles */
    .articles-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    
    /* Resources */
    .resources-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
}

/* ============================================
   6. TOOL PAGES - MOBILE FIX (CRITICAL)
   ============================================ */
@media (max-width: 768px) {
    .tool-header {
        padding: 100px 16px 60px;
    }
    
    .tool-header h1 {
        font-size: 1.4rem;
        flex-direction: column;
        gap: 8px;
    }
    
    .tool-header h1 i {
        font-size: 1.8rem;
    }
    
    .tool-header p {
        font-size: 0.9rem;
    }
    
    .tool-container {
        margin: -30px 12px 40px !important;
        padding: 20px 16px !important;
        border-radius: 16px;
        width: calc(100% - 24px) !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    
    /* Loans section */
    .loans-section {
        padding: 20px 16px;
        margin-bottom: 16px;
    }
    
    .loans-section h3 {
        font-size: 1.1rem;
        flex-wrap: wrap;
    }
    
    /* Form row - single column on mobile */
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .form-group {
        width: 100%;
    }
    
    .form-group input,
    .form-group select {
        width: 100%;
        padding: 14px 12px;
        font-size: 16px; /* Prevent iOS zoom */
    }
    
    /* Loan cards */
    .loan-card {
        padding: 16px;
    }
    
    .loan-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    /* Options row */
    .options-row {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    
    .option-card {
        padding: 16px;
    }
    
    /* Calc button */
    .calc-btn {
        padding: 16px 24px;
        font-size: 1rem;
    }
    
    /* Results area */
    .result-area {
        padding: 20px 16px;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    
    .comp-card {
        padding: 16px;
    }
    
    .comp-val {
        font-size: 1.5rem;
    }
    
    /* Result table */
    .result-table {
        font-size: 0.9rem;
    }
    
    .result-table th,
    .result-table td {
        padding: 12px 8px;
    }
    
    /* Chart container */
    .chart-container {
        padding: 16px;
        overflow-x: auto;
    }
    
    .chart-container canvas {
        min-width: 300px;
    }
}

/* ============================================
   7. FOOTER - MOBILE FIX
   ============================================ */
@media (max-width: 768px) {
    footer {
        padding: 40px 16px 100px; /* Space for WhatsApp button */
    }
    
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 32px;
        text-align: center;
    }
    
    .footer-brand {
        align-items: center;
    }
    
    .footer-nav ul,
    .footer-tools ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 16px;
    }
    
    .footer-contact {
        align-items: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    /* Legal disclaimer */
    .legal-disclaimer,
    details.legal-disclaimer {
        font-size: 0.8rem;
        padding: 16px;
    }
}

/* ============================================
   8. FLOATING BUTTONS - MOBILE FIX
   ============================================ */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        left: auto;
        width: 50px;
        height: 50px;
    }
    
    .dark-mode-toggle {
        bottom: 80px;
        right: 20px;
        left: auto;
        width: 44px;
        height: 44px;
    }
}

/* ============================================
   9. BUFFETT QUOTE - MOBILE FIX
   ============================================ */
@media (max-width: 768px) {
    .buffett-quote {
        margin: 0 16px 32px;
        padding: 20px;
        width: calc(100% - 32px);
    }
    
    .buffett-quote .quote-text {
        font-size: 1rem;
    }
}

/* ============================================
   10. KNOWLEDGE & RESOURCES PAGES - MOBILE FIX
   ============================================ */
@media (max-width: 768px) {
    .filter-section {
        padding: 16px;
    }
    
    .filter-buttons {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .filter-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        width: 100%;
        padding: 12px 16px;
        font-size: 16px; /* Prevent iOS zoom */
    }
}

/* ============================================
   11. ABOUT PAGE - MOBILE FIX
   ============================================ */
@media (max-width: 768px) {
    .about-section {
        padding: 40px 16px;
    }
    
    .about-content {
        flex-direction: column;
        gap: 24px;
    }
    
    .about-image {
        max-width: 200px;
        margin: 0 auto;
    }
    
    .credentials-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
}

/* ============================================
   12. PREVENT TABLE OVERFLOW
   ============================================ */
@media (max-width: 768px) {
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Alternative: responsive table */
    .responsive-table {
        font-size: 0.85rem;
    }
    
    .responsive-table th,
    .responsive-table td {
        min-width: 80px;
        padding: 8px 6px;
    }
}

/* ============================================
   13. TOUCH TARGETS - MINIMUM 44px
   ============================================ */
@media (max-width: 768px), (pointer: coarse) {
    a, button, input[type="submit"], 
    input[type="button"], .cta-button,
    .calc-btn, .add-btn, .remove-btn,
    .filter-btn, nav a, .dropdown-content a {
        min-height: 44px;
        min-width: 44px;
    }
    
    input[type="checkbox"],
    input[type="radio"] {
        width: 24px;
        height: 24px;
    }
}

/* ============================================
   14. SAFE AREAS (NOTCH PHONES)
   ============================================ */
@supports (padding: env(safe-area-inset-bottom)) {
    .whatsapp-float {
        bottom: calc(20px + env(safe-area-inset-bottom));
    }
    
    footer {
        padding-bottom: calc(40px + env(safe-area-inset-bottom));
    }
    
    nav {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
}

/* ============================================
   15. LANDSCAPE MOBILE FIX
   ============================================ */
@media (max-width: 900px) and (orientation: landscape) {
    .hero {
        padding: 80px 24px 40px;
        min-height: auto;
    }
    
    .hero-stats {
        flex-direction: row !important;
    }
    
    nav {
        height: 100vh !important;
        height: 100dvh !important;
        padding-top: 60px !important;
    }
}

/* ============================================
   16. VERY SMALL SCREENS (320px)
   ============================================ */
@media (max-width: 360px) {
    body {
        font-size: 14px;
    }
    
    header {
        padding: 10px 12px;
    }
    
    .monogram-header {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .brand-name {
        font-size: 12px;
    }
    
    .brand-slogan {
        display: none;
    }
    
    .hero h1 {
        font-size: 1.3rem;
    }
    
    section {
        padding: 32px 12px;
    }
    
    .tool-container {
        margin: -20px 8px 32px !important;
        padding: 16px 12px !important;
    }
    
    .calc-btn {
        font-size: 0.9rem;
        padding: 14px 16px;
    }
}

/* ============================================
   17. HIGH DPI SCREENS
   ============================================ */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hamburger span {
        height: 2px;
    }
}

/* ============================================
   18. REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    nav {
        transition: none !important;
    }
    
    .dropdown-content {
        transition: none !important;
    }
}

/* ============================================
   19. FIX RTL ISSUES
   ============================================ */
[dir="rtl"] nav,
html[dir="rtl"] nav {
    right: -100%;
    left: auto;
}

[dir="rtl"] nav.open,
html[dir="rtl"] nav.open {
    right: 0;
}

[dir="rtl"] .hamburger,
html[dir="rtl"] .hamburger {
    order: -1;
}

/* ============================================
   20. PRINT STYLES (HIDE MOBILE ELEMENTS)
   ============================================ */
@media print {
    .hamburger,
    .nav-overlay,
    .whatsapp-float,
    .dark-mode-toggle {
        display: none !important;
    }
    
    nav {
        position: static !important;
        width: auto !important;
        height: auto !important;
        flex-direction: row !important;
        display: flex !important;
    }
    
    body {
        padding-top: 0 !important;
    }
}

/* ============================================
   DISABLE DARK MODE - User Request
   ============================================ */
.dark-mode-toggle {
    display: none !important;
}

/* Prevent any dark mode styling from being applied */
body.dark-mode {
    background-color: var(--white) !important;
    color: var(--gray-900) !important;
}

/* Hide confetti canvas */
.confetti-canvas {
    display: none !important;
}

/* ============================================
   STICKY HEADER FOR DESKTOP ONLY
   ============================================ */
@media (min-width: 993px) {
    header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
    }
    
    body {
        padding-top: var(--header-height) !important;
    }
    
    .hero {
        margin-top: 0 !important;
    }
}

/* ============================================
   CONTACT FORM STYLES
   ============================================ */
.contact-form-section {
    padding: var(--space-20) var(--space-6);
    background: var(--gray-50);
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: var(--white);
    padding: var(--space-10);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: var(--space-6);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 600;
    color: var(--gray-700);
    font-size: var(--text-base);
}

.form-group label i {
    margin-left: var(--space-2);
    color: var(--accent-gold);
}

.form-group .required {
    color: var(--danger);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-4);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    font-size: var(--text-base);
    transition: all var(--transition-base);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 4px var(--accent-gold-subtle);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-note {
    font-size: var(--text-sm);
    color: var(--gray-500);
    margin-bottom: var(--space-6);
    text-align: center;
}

.submit-button {
    width: 100%;
    justify-content: center;
    font-size: var(--text-lg);
    padding: var(--space-4) var(--space-8);
}

.submit-button i {
    margin-left: var(--space-2);
}

.form-status {
    margin-top: var(--space-4);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    text-align: center;
    display: none;
}

.form-status.success {
    display: block;
    background: var(--success-light);
    color: var(--success);
    border: 1px solid var(--success);
}

.form-status.error {
    display: block;
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.form-status.loading {
    display: block;
    background: var(--info-light);
    color: var(--info);
    border: 1px solid var(--info);
}
