/* ============================================================
   MOOTOON.ICU - Premium Design System
   Deep, organic colors with elegant animations
   ============================================================ */

:root {
    /* Deep Premium Color Palette */
    --color-primary: #0B3D2E;        /* Deep Emerald - Trust, Finance, Islamic */
    --color-primary-dark: #062319;   /* Darker Emerald */
    --color-primary-light: #1A5A47;  /* Lighter Emerald */
    --color-secondary: #1A535C;      /* Deep Teal */
    --color-accent: #C9A961;         /* Warm Gold */
    --color-accent-dark: #A8893E;    /* Darker Gold */
    --color-accent-light: #E0C485;   /* Lighter Gold */
    
    --color-bg: #FAF7F2;             /* Cream Background */
    --color-bg-alt: #F0EBE0;         /* Slightly darker cream */
    --color-surface: #FFFFFF;        /* White surfaces */
    --color-surface-dark: #0A2620;   /* Dark surface */
    
    --color-text: #1A1A1A;           /* Primary text */
    --color-text-muted: #5A5A5A;     /* Muted text */
    --color-text-light: #F5F5DC;     /* Light text on dark */
    --color-text-light-muted: #B8B8A8;
    
    --color-border: #E5DFD3;         /* Border color */
    --color-border-dark: #2A4A3E;    /* Dark border */
    
    /* Status Colors */
    --color-success: #2D6A4F;
    --color-warning: #D4A574;
    --color-danger: #9B2226;
    --color-info: #1A535C;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0B3D2E 0%, #1A535C 100%);
    --gradient-gold: linear-gradient(135deg, #C9A961 0%, #E0C485 50%, #C9A961 100%);
    --gradient-dark: linear-gradient(180deg, #062319 0%, #0A2620 100%);
    --gradient-hero: linear-gradient(135deg, #062319 0%, #0B3D2E 40%, #1A535C 100%);
    
    /* Shadows - Deep and luxurious */
    --shadow-sm: 0 2px 8px rgba(11, 61, 46, 0.08);
    --shadow-md: 0 8px 24px rgba(11, 61, 46, 0.12);
    --shadow-lg: 0 16px 48px rgba(11, 61, 46, 0.18);
    --shadow-xl: 0 24px 64px rgba(11, 61, 46, 0.22);
    --shadow-gold: 0 8px 32px rgba(201, 169, 97, 0.25);
    
    /* Typography */
    --font-heading: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Spacing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-2xl: 40px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-primary-dark);
    letter-spacing: -0.02em;
}

/* ============================================================
   ANIMATIONS - Live, Premium Feel
   ============================================================ */

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

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

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

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

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

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

@keyframes pulse-soft {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.02); }
}

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

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(201, 169, 97, 0.3); }
    50% { box-shadow: 0 0 40px rgba(201, 169, 97, 0.6); }
}

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

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-up { animation: fadeInUp 0.8s ease forwards; }
.animate-fade-down { animation: fadeInDown 0.8s ease forwards; }
.animate-fade-left { animation: fadeInLeft 0.8s ease forwards; }
.animate-fade-right { animation: fadeInRight 0.8s ease forwards; }
.animate-scale-in { animation: scaleIn 0.6s ease forwards; }
.animate-float { animation: float 4s ease-in-out infinite; }
.animate-glow { animation: glow 3s ease-in-out infinite; }

/* Staggered animation delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(250, 247, 242, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(250, 247, 242, 0.95);
    box-shadow: var(--shadow-md);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 24px;
    color: var(--color-primary-dark);
    transition: var(--transition);
}

.logo:hover { transform: scale(1.02); }

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 22px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(201,169,97,0.3) 50%, transparent 70%);
    background-size: 200% 200%;
    animation: shimmerGold 3s linear infinite;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav a {
    padding: 10px 16px;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--color-primary);
    background: rgba(11, 61, 46, 0.06);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 60%;
}

.main-nav a.active {
    color: var(--color-primary);
    font-weight: 600;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-primary-dark);
    cursor: pointer;
    padding: 8px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-text-light);
    box-shadow: var(--shadow-md);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.6s;
}

.btn-primary:hover::before { left: 100%; }
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-gold {
    background: var(--gradient-gold);
    color: var(--color-primary-dark);
    box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(201, 169, 97, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary-dark);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-text-light);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text);
}

.btn-ghost:hover {
    background: rgba(11, 61, 46, 0.08);
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
    background: var(--gradient-hero);
    color: var(--color-text-light);
    padding: 100px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201,169,97,0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-soft 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(26,83,92,0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-soft 10s ease-in-out infinite;
    animation-delay: 2s;
}

.hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content { animation: fadeInLeft 1s ease forwards; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201, 169, 97, 0.15);
    border: 1px solid rgba(201, 169, 97, 0.3);
    color: var(--color-accent-light);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-badge i { color: var(--color-accent); }

.hero h1 {
    color: var(--color-text-light);
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, #C9A961 0%, #E0C485 50%, #C9A961 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerGold 4s linear infinite;
    display: inline-block;
}

.hero p {
    font-size: 18px;
    color: var(--color-text-light-muted);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
    animation: fadeInUp 1.4s ease forwards;
    animation-delay: 0.7s;
    opacity: 0;
}

.hero-stat .num {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--color-accent);
    display: block;
    line-height: 1;
}

.hero-stat .label {
    font-size: 13px;
    color: var(--color-text-light-muted);
    margin-top: 4px;
}

.hero-visual {
    animation: fadeInRight 1.2s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
    position: relative;
}

.hero-card-stack {
    position: relative;
    height: 480px;
}

.hero-card {
    position: absolute;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

.hero-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), 0 0 0 2px var(--color-accent);
}

.hero-card-1 {
    top: 0;
    left: 0;
    width: 280px;
    animation: float 5s ease-in-out infinite;
}

.hero-card-2 {
    top: 100px;
    right: 0;
    width: 240px;
    animation: float 6s ease-in-out infinite;
    animation-delay: 1s;
}

.hero-card-3 {
    bottom: 0;
    left: 40px;
    width: 260px;
    animation: float 5.5s ease-in-out infinite;
    animation-delay: 2s;
}

.hero-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 20px;
    margin-bottom: 16px;
}

.hero-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 8px;
}

.hero-card-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-primary);
    font-family: var(--font-heading);
}

.hero-card-sub {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: 4px;
}

/* ============================================================
   SECTIONS
   ============================================================ */

.section {
    padding: 80px 24px;
    max-width: 1280px;
    margin: 0 auto;
}

.section-dark {
    background: var(--gradient-dark);
    color: var(--color-text-light);
    padding: 80px 24px;
}

.section-dark .section-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(28px, 4vw, 44px);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--color-text-muted);
    max-width: 640px;
    margin: 0 auto;
}

.section-dark .section-title { color: var(--color-text-light); }
.section-dark .section-subtitle { color: var(--color-text-light-muted); }

.section-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(11, 61, 46, 0.08);
    color: var(--color-primary);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.section-dark .section-eyebrow {
    background: rgba(201, 169, 97, 0.15);
    color: var(--color-accent);
}

/* ============================================================
   CALCULATOR GRID CARDS
   ============================================================ */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.tool-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.tool-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-light);
}

.tool-card:hover::before { transform: scaleX(1); }

.tool-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(11,61,46,0.08), rgba(26,83,92,0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--color-primary);
    margin-bottom: 20px;
    transition: var(--transition);
}

.tool-card:hover .tool-card-icon {
    background: var(--gradient-primary);
    color: var(--color-accent);
    transform: scale(1.1) rotate(-5deg);
}

.tool-card-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.tool-card-desc {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
    flex: 1;
}

.tool-card-arrow {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.tool-card:hover .tool-card-arrow {
    gap: 12px;
}

.tool-card.popular {
    border-color: var(--color-accent);
    box-shadow: 0 4px 16px rgba(201,169,97,0.15);
}

.popular-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--gradient-gold);
    color: var(--color-primary-dark);
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================================
   CALCULATOR PAGE LAYOUT
   ============================================================ */

.calc-page {
    padding: 48px 24px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.breadcrumb a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .separator { opacity: 0.5; }
.breadcrumb .current { color: var(--color-primary-dark); font-weight: 500; }

.calc-header {
    text-align: center;
    margin-bottom: 48px;
    padding: 48px 32px;
    background: var(--gradient-hero);
    border-radius: var(--radius-xl);
    color: var(--color-text-light);
    position: relative;
    overflow: hidden;
}

.calc-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201,169,97,0.15) 0%, transparent 70%);
    animation: pulse-soft 6s ease-in-out infinite;
}

.calc-header h1 {
    color: var(--color-text-light);
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.calc-header p {
    color: var(--color-text-light-muted);
    font-size: 17px;
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.calc-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.calc-form-card,
.calc-result-card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.calc-form-card h2,
.calc-result-card h2 {
    font-size: 22px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.calc-form-card h2 i { color: var(--color-primary); }
.calc-result-card h2 i { color: var(--color-accent); }

/* Form fields */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--color-primary-dark);
    margin-bottom: 8px;
}

.form-group .hint {
    font-size: 12px;
    color: var(--color-text-muted);
    font-weight: 400;
    margin-left: 4px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-surface);
    box-shadow: 0 0 0 4px rgba(11,61,46,0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230B3D2E' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Result display */
.result-box {
    background: var(--gradient-dark);
    border-radius: var(--radius-lg);
    padding: 28px;
    color: var(--color-text-light);
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.result-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(201,169,97,0.2) 0%, transparent 70%);
}

.result-label {
    font-size: 13px;
    color: var(--color-text-light-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.result-value {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
    position: relative;
    z-index: 2;
}

.result-value.small {
    font-size: 24px;
}

.result-breakdown {
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 16px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
}

.result-row:last-child { border-bottom: none; }
.result-row .label { color: var(--color-text-muted); }
.result-row .value {
    font-weight: 700;
    color: var(--color-primary-dark);
    font-family: var(--font-heading);
}

.result-row.total {
    padding-top: 16px;
    border-top: 2px solid var(--color-primary);
    margin-top: 8px;
}

.result-row.total .label {
    color: var(--color-primary-dark);
    font-weight: 700;
    font-size: 16px;
}

.result-row.total .value {
    color: var(--color-primary);
    font-size: 20px;
}

/* ============================================================
   CONTENT (Article) STYLING
   ============================================================ */

.article-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.article-header {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 2px solid var(--color-border);
}

.article-category {
    display: inline-block;
    background: rgba(11,61,46,0.08);
    color: var(--color-primary);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.article-title {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 16px;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    font-size: 14px;
    color: var(--color-text-muted);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-text);
}

.article-content h2 {
    font-size: 28px;
    margin: 40px 0 16px;
    color: var(--color-primary-dark);
    padding-left: 16px;
    border-left: 4px solid var(--color-accent);
}

.article-content h3 {
    font-size: 22px;
    margin: 32px 0 12px;
    color: var(--color-primary);
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.article-content blockquote {
    border-left: 4px solid var(--color-accent);
    padding: 16px 24px;
    background: var(--color-bg-alt);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 24px 0;
    font-style: italic;
    color: var(--color-primary-dark);
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.article-content th {
    background: var(--gradient-primary);
    color: var(--color-text-light);
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.article-content td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    font-size: 15px;
}

.article-content tr:last-child td { border-bottom: none; }
.article-content tr:nth-child(even) td { background: var(--color-bg-alt); }

/* Callout boxes */
.callout {
    background: linear-gradient(135deg, rgba(11,61,46,0.05), rgba(201,169,97,0.05));
    border-left: 4px solid var(--color-accent);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    margin: 24px 0;
}

.callout-title {
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* FAQ Section */
.faq-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--color-border);
}

.faq-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--color-primary-light);
}

.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--color-primary-dark);
    font-size: 16px;
    transition: var(--transition);
}

.faq-question:hover { color: var(--color-primary); }

.faq-question .icon {
    color: var(--color-accent);
    transition: var(--transition);
    font-size: 18px;
}

.faq-item.open .faq-question .icon { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.open .faq-answer { max-height: 600px; }

.faq-answer-inner {
    padding: 0 24px 20px;
    color: var(--color-text);
    line-height: 1.7;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    background: var(--gradient-dark);
    color: var(--color-text-light-muted);
    padding: 80px 24px 32px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(201,169,97,0.1) 0%, transparent 70%);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

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

.footer-brand h3 {
    color: var(--color-text-light);
    font-size: 24px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand p {
    line-height: 1.7;
    margin-bottom: 24px;
    font-size: 15px;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light-muted);
    transition: var(--transition);
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--gradient-gold);
    color: var(--color-primary-dark);
    transform: translateY(-3px);
    border-color: transparent;
}

.footer-col h4 {
    color: var(--color-text-light);
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--color-text-light-muted);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

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

.footer-bottom a {
    color: var(--color-text-light-muted);
    text-decoration: none;
    transition: var(--transition);
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { display: none; }
    .calc-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-surface);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--color-border);
    }
    
    .main-nav.open { display: flex; }
    .main-nav a { width: 100%; }
    .mobile-menu-toggle { display: block; }
    
    .hero { padding: 60px 20px 60px; }
    .hero-stats { gap: 24px; }
    .hero-stat .num { font-size: 26px; }
    
    .section { padding: 60px 20px; }
    .section-dark { padding: 60px 20px; }
    
    .tools-grid { grid-template-columns: 1fr; }
    
    .calc-form-card, .calc-result-card { padding: 24px; }
    .form-row { grid-template-columns: 1fr; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    
    .article-content { font-size: 16px; }
    .article-content h2 { font-size: 24px; }
    .article-content table { font-size: 13px; }
    .article-content th, .article-content td { padding: 10px 8px; }
}

/* ============================================================
   UTILITY ANIMATIONS & HELPERS
   ============================================================ */

.shimmer-bg {
    background: linear-gradient(90deg, #f0ebe0 25%, #faf7f2 50%, #f0ebe0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-gold-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hover-lift {
    transition: var(--transition);
}

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

/* AdSense container */
.ad-container {
    margin: 32px auto;
    max-width: 728px;
    min-height: 90px;
    text-align: center;
}

.ad-placeholder {
    background: var(--color-bg-alt);
    border: 1px dashed var(--color-border);
    padding: 32px;
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    font-size: 14px;
    text-align: center;
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-gold);
    z-index: 9999;
    width: 0%;
    transition: width 0.1s;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--color-accent);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

/* Print-friendly */
@media print {
    .site-header, .site-footer, .ad-container, .back-to-top, .scroll-progress {
        display: none;
    }
}

/* ============================================================
   COOKIE CONSENT BANNER (GDPR Compliant)
   ============================================================ */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gradient-dark);
    color: var(--color-text-light);
    padding: 24px;
    z-index: 9998;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.3);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid var(--color-accent);
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-consent-content {
    flex: 1;
    min-width: 280px;
}

.cookie-consent-content h4 {
    color: var(--color-accent);
    margin-bottom: 8px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-consent-content p {
    color: var(--color-text-light-muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.cookie-consent-content a {
    color: var(--color-accent-light);
    text-decoration: underline;
}

.cookie-consent-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-btn-accept {
    background: var(--gradient-gold);
    color: var(--color-primary-dark);
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.cookie-btn-reject {
    background: transparent;
    color: var(--color-text-light);
    border: 2px solid rgba(255,255,255,0.3);
}

.cookie-btn-reject:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

.cookie-btn-settings {
    background: transparent;
    color: var(--color-text-light-muted);
    text-decoration: underline;
    font-size: 13px;
}

/* ============================================================
   PREMIUM SEARCH OVERLAY (Full-screen modal style)
   ============================================================ */
.search-container {
    margin-left: auto;
}

.search-toggle {
    background: linear-gradient(135deg, rgba(11,61,46,0.08), rgba(26,83,92,0.08));
    border: 2px solid transparent;
    height: 42px;
    padding: 0 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--color-primary-dark);
    font-size: 14px;
    font-family: var(--font-body);
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.search-toggle:hover {
    background: var(--gradient-primary);
    color: var(--color-accent);
    border-color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.search-toggle i {
    font-size: 15px;
}

.search-toggle .search-shortcut {
    background: rgba(11,61,46,0.1);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-family: var(--font-mono);
    font-weight: 600;
    margin-left: 4px;
}

.search-toggle:hover .search-shortcut {
    background: rgba(201,169,97,0.2);
    color: var(--color-accent);
}

/* Full-screen Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 35, 25, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 24px 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay.show {
    opacity: 1;
    visibility: visible;
}

.search-modal {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    box-shadow: 0 32px 80px rgba(0,0,0,0.4);
    width: 100%;
    max-width: 680px;
    max-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95) translateY(-20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.search-overlay.show .search-modal {
    transform: scale(1) translateY(0);
}

/* Search Header (Input area) */
.search-modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--gradient-primary);
    color: var(--color-text-light);
}

.search-modal-icon {
    font-size: 24px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.search-modal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-text-light);
    font-size: 20px;
    font-family: var(--font-heading);
    font-weight: 500;
    padding: 4px 0;
}

.search-modal-input::placeholder {
    color: rgba(245, 245, 220, 0.4);
}

.search-modal-close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--color-text-light);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-modal-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

/* Search Results */
.search-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
}

.search-section-title {
    padding: 8px 28px 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search-section-title span {
    color: var(--color-accent-dark);
    font-size: 11px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 28px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease, padding 0.2s ease;
    cursor: pointer;
    border-left: 3px solid transparent;
}

.search-result-item:hover,
.search-result-item.highlighted {
    background: var(--color-bg-alt);
    border-left-color: var(--color-accent);
    padding-left: 31px;
}

.search-result-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(11,61,46,0.08), rgba(26,83,92,0.08));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 18px;
    flex-shrink: 0;
    transition: var(--transition);
}

.search-result-item:hover .search-result-icon {
    background: var(--gradient-primary);
    color: var(--color-accent);
    transform: scale(1.05);
}

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

.search-result-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin: 0;
    line-height: 1.4;
}

.search-result-title strong {
    color: var(--color-accent-dark);
    background: rgba(201,169,97,0.15);
    padding: 0 3px;
    border-radius: 3px;
}

.search-result-desc {
    font-size: 13px;
    color: var(--color-text-muted);
    margin: 2px 0 0;
    line-height: 1.4;
}

.search-result-desc strong {
    color: var(--color-primary);
}

.search-result-badge {
    font-size: 10px;
    color: var(--color-accent-dark);
    background: rgba(201,169,97,0.12);
    padding: 4px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    flex-shrink: 0;
}

/* Empty State */
.search-empty {
    padding: 60px 28px;
    text-align: center;
    color: var(--color-text-muted);
}

.search-empty i {
    font-size: 48px;
    color: var(--color-border);
    margin-bottom: 16px;
    display: block;
}

.search-empty h4 {
    font-size: 18px;
    color: var(--color-primary-dark);
    margin-bottom: 8px;
}

.search-empty p {
    font-size: 14px;
    margin: 0;
}

/* Search Footer */
.search-modal-footer {
    padding: 12px 28px;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-alt);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 12px;
    color: var(--color-text-muted);
    flex-wrap: wrap;
}

.search-modal-footer kbd {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-bottom-width: 2px;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-primary-dark);
    font-weight: 600;
}

.search-shortcuts {
    display: flex;
    gap: 16px;
    align-items: center;
}

.search-shortcut-hint {
    display: flex;
    align-items: center;
    gap: 4px;
}

.search-modal-footer a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.search-modal-footer a:hover {
    text-decoration: underline;
}

/* Loading spinner */
.search-loading {
    padding: 40px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 14px;
}

.search-loading i {
    margin-right: 8px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Mobile search adjustments */
@media (max-width: 768px) {
    .search-toggle {
        padding: 0 12px;
        font-size: 0;
    }
    
    .search-toggle i {
        font-size: 18px;
    }
    
    .search-toggle .search-shortcut {
        display: none;
    }
    
    .search-overlay {
        padding: 0;
    }
    
    .search-modal {
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .search-modal-header {
        padding: 16px 20px;
    }
    
    .search-modal-input {
        font-size: 17px;
    }
    
    .search-result-item {
        padding: 12px 20px;
    }
    
    .search-result-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .search-modal-footer {
        padding: 10px 20px;
        font-size: 11px;
    }
    
    .search-shortcuts {
        gap: 8px;
    }
    
    .cookie-consent-inner {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-consent-buttons {
        justify-content: stretch;
    }
    
    .cookie-btn {
        flex: 1;
    }
}
