/* ==========================================================================
   QuizMind (quiz-mind.org) — Modern Minimalist Design System v2.0
   High-Aesthetic Cognitive Assessment UI
   ========================================================================== */

/* 1. Design Tokens & Root Variables */
:root {
    /* Brand Color Palette */
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-dark: #3730a3;
    --primary-light: #eef2ff;
    --primary-glow: rgba(79, 70, 229, 0.28);
    --primary-glow-lg: rgba(79, 70, 229, 0.45);
    
    --accent: #06b6d4;
    --accent-hover: #0891b2;
    --accent-light: #ecfeff;
    --accent-glow: rgba(6, 182, 212, 0.3);

    --violet: #8b5cf6;
    --violet-hover: #7c3aed;
    --violet-light: #f5f3ff;
    --violet-glow: rgba(139, 92, 246, 0.3);
    
    --success: #10b981;
    --success-hover: #059669;
    --success-light: #ecfdf5;
    --success-glow: rgba(16, 185, 129, 0.25);
    
    --warning: #f59e0b;
    --warning-light: #fffbeb;
    --warning-glow: rgba(245, 158, 11, 0.25);
    
    --danger: #ef4444;
    --danger-light: #fef2f2;
    --danger-glow: rgba(239, 68, 68, 0.25);

    /* Backgrounds & Glass Surfaces */
    --bg-main: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.92);
    --bg-card-solid: #ffffff;
    --bg-card-hover: #ffffff;
    --bg-alt: #f1f5f9;
    --bg-subtle: #f8fafc;
    --bg-dark: #0f172a;
    --bg-dark-surface: #1e293b;

    /* Typography Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-inverse: #ffffff;

    /* Borders & Outlines */
    --border-color: #e2e8f0;
    --border-subtle: rgba(226, 232, 240, 0.8);
    --border-hover: #cbd5e1;
    --border-focus: #6366f1;
    --border-glow: rgba(99, 102, 241, 0.4);

    /* Radii */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Multi-layered Soft Diffused Shadows */
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
    --shadow-md: 0 4px 8px -2px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.06), 0 4px 8px -4px rgba(15, 23, 42, 0.03);
    --shadow-xl: 0 20px 35px -6px rgba(15, 23, 42, 0.08), 0 10px 15px -8px rgba(15, 23, 42, 0.04);
    --shadow-glow: 0 8px 30px rgba(79, 70, 229, 0.25);
    --shadow-glow-cyan: 0 8px 30px rgba(6, 182, 212, 0.25);

    /* Fonts */
    --font-sans: 'Plus Jakarta Sans', 'Noto Sans Armenian', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Outfit', 'Noto Sans Armenian', 'Plus Jakarta Sans', sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    /* Transitions */
    --transition-fast: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Armenian Language Specific Typography */
html[lang="hy"] {
    --font-sans: 'Noto Sans Armenian', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-heading: 'Noto Sans Armenian', 'Outfit', sans-serif;
}

html[lang="hy"] body,
html[lang="hy"] button,
html[lang="hy"] input,
html[lang="hy"] select,
html[lang="hy"] textarea,
html[lang="hy"] .btn,
html[lang="hy"] .nav-link,
html[lang="hy"] .hero-title,
html[lang="hy"] .hero-subtitle,
html[lang="hy"] .stat-label,
html[lang="hy"] .card-title,
html[lang="hy"] .faq-question,
html[lang="hy"] h1, html[lang="hy"] h2, html[lang="hy"] h3, html[lang="hy"] h4, html[lang="hy"] h5, html[lang="hy"] h6 {
    font-family: var(--font-sans);
}

html[lang="hy"] h1,
html[lang="hy"] h2,
html[lang="hy"] h3,
html[lang="hy"] .hero-title,
html[lang="hy"] .section-title {
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
}

/* 2. Base Reset & Typography */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}



a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Containers */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 28px;
    position: relative;
    z-index: 1;
}

.container-narrow {
    max-width: 960px;
}

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

/* Glassmorphism Helper */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg);
}

/* 3. Site Header (Floating Glass Navbar) & Navigation System */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 2px 12px -2px rgba(15, 23, 42, 0.03);
    transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 30px -4px rgba(15, 23, 42, 0.08);
    border-bottom-color: rgba(226, 232, 240, 0.95);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 12px;
    width: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.logo-link:hover {
    transform: scale(1.02);
    opacity: 0.95;
}

.logo-img {
    height: 65px;
    width: auto;
    object-fit: contain;
}

/* Desktop Nav Container & Capsule */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 4px;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2px;
    flex-wrap: nowrap;
    margin: 0;
    padding: 3px 5px;
    background: rgba(241, 245, 249, 0.75);
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: var(--radius-full);
}

.nav-item {
    flex-shrink: 0;
    position: relative;
}

.nav-item a {
    color: var(--text-secondary);
    font-size: 0.86rem;
    font-weight: 600;
    padding: 6px 11px;
    border-radius: var(--radius-full);
    white-space: nowrap !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    border: 1px solid transparent;
}

.nav-item a:hover {
    color: var(--primary);
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    border-color: rgba(226, 232, 240, 0.9);
    transform: translateY(-1.5px);
}

.nav-item.active a {
    color: var(--primary);
    background: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 12px rgba(79, 70, 229, 0.16), 0 0 0 1px rgba(79, 70, 229, 0.14);
    border-color: rgba(79, 70, 229, 0.25);
    position: relative;
}

.nav-item.active a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 18%;
    right: 18%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border-radius: var(--radius-full);
    box-shadow: 0 0 6px var(--primary-glow);
    animation: navActivePulse 2.4s ease-in-out infinite alternate;
}

@keyframes navActivePulse {
    0% { opacity: 0.5; transform: scaleX(0.85); }
    100% { opacity: 1; transform: scaleX(1.15); }
}

.nav-link-with-icon {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
}

.nav-item-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-item a:hover .nav-item-icon {
    transform: scale(1.18);
}

/* Feature specific icon accents & hover micro-animations */
.nav-icon-iq { color: var(--primary); }
.nav-icon-soul { color: #8b5cf6; }
.nav-icon-daily { color: #f59e0b; }
.nav-icon-trainers { color: #06b6d4; }
.nav-icon-calc { color: #3b82f6; }
.nav-icon-progress { color: #10b981; }

.nav-item a:hover .nav-icon-iq {
    animation: brainPulse 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes brainPulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.28) rotate(-5deg); }
    75% { transform: scale(1.15) rotate(4deg); }
    100% { transform: scale(1.18); }
}

.nav-item a:hover .nav-icon-soul {
    animation: sparkleTwinkle 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes sparkleTwinkle {
    0% { transform: scale(1) rotate(0deg); }
    35% { transform: scale(1.3) rotate(22deg); filter: drop-shadow(0 0 4px #c084fc); }
    70% { transform: scale(1.15) rotate(-12deg); filter: drop-shadow(0 0 6px #ec4899); }
    100% { transform: scale(1.18) rotate(0deg); }
}

.nav-item a:hover .nav-icon-daily {
    animation: flameFlicker 0.75s ease-in-out;
}
@keyframes flameFlicker {
    0% { transform: scale(1) translateY(0); }
    30% { transform: scale(1.18, 1.3) translateY(-2px) rotate(-5deg); filter: drop-shadow(0 0 4px #fbbf24); }
    65% { transform: scale(1.08, 1.12) translateY(-1px) rotate(4deg); filter: drop-shadow(0 0 6px #f59e0b); }
    100% { transform: scale(1.18) translateY(0); }
}

.nav-item a:hover .nav-icon-trainers {
    animation: boltEnergize 0.55s ease-in-out;
}
@keyframes boltEnergize {
    0% { transform: scale(1); }
    35% { transform: scale(1.3) translateY(-2px); filter: drop-shadow(0 0 5px #22d3ee); }
    70% { transform: scale(1.12) translateY(0); }
    100% { transform: scale(1.18); }
}

.nav-item a:hover .nav-icon-calc {
    animation: calcTilt 0.55s ease-in-out;
}
@keyframes calcTilt {
    0% { transform: scale(1) rotate(0deg); }
    30% { transform: scale(1.22) rotate(-10deg); }
    65% { transform: scale(1.15) rotate(8deg); }
    100% { transform: scale(1.18) rotate(0deg); }
}

.nav-item a:hover .nav-icon-progress {
    animation: trendClimb 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes trendClimb {
    0% { transform: scale(1) translate(0, 0); }
    45% { transform: scale(1.25) translate(1px, -3px); filter: drop-shadow(0 0 4px #34d399); }
    100% { transform: scale(1.18) translate(0, 0); }
}

/* Special Nav Links */
.nav-link-soul {
    color: #7c3aed !important;
    font-weight: 700 !important;
    background: rgba(139, 92, 246, 0.08) !important;
    border: 1px solid rgba(139, 92, 246, 0.22) !important;
}

.nav-link-soul:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%) !important;
    border-color: transparent !important;
    box-shadow: 0 4px 18px rgba(139, 92, 246, 0.4) !important;
    transform: translateY(-2px);
}

.nav-link-soul:hover .nav-icon-soul {
    color: #ffffff !important;
}

.nav-item.active .nav-link-soul {
    color: #ffffff !important;
    background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%) !important;
    border-color: transparent !important;
    box-shadow: 0 4px 18px rgba(124, 58, 237, 0.45) !important;
}

.nav-item.active .nav-link-soul .nav-icon-soul {
    color: #ffffff !important;
}

.nav-link-daily {
    color: #b45309 !important;
    font-weight: 700 !important;
    background: rgba(245, 158, 11, 0.08) !important;
    border: 1px solid rgba(245, 158, 11, 0.22) !important;
}

.nav-link-daily:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;
    border-color: transparent !important;
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.4) !important;
    transform: translateY(-2px);
}

.nav-link-daily:hover .nav-icon-daily {
    color: #ffffff !important;
}

.nav-item.active .nav-link-daily {
    color: #ffffff !important;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;
    border-color: transparent !important;
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.45) !important;
}

.nav-item.active .nav-link-daily .nav-icon-daily {
    color: #ffffff !important;
}

/* Nav Micro Badges with Living Animations */
.nav-pill-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1;
    padding: 2.5px 6.5px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

.nav-badge-soul {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #8b5cf6 100%);
    background-size: 200% auto;
    color: #ffffff;
    box-shadow: 0 1px 6px rgba(139, 92, 246, 0.4);
    animation: shimmerSoulBadge 3s linear infinite;
}
@keyframes shimmerSoulBadge {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 200% center; }
}

.nav-badge-daily {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    color: #ffffff;
    box-shadow: 0 1px 6px rgba(245, 158, 11, 0.4);
    position: relative;
    animation: pulseLiveBadge 2.2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
@keyframes pulseLiveBadge {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6); }
    70% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.nav-link-soul:hover .nav-badge-soul,
.nav-item.active .nav-link-soul .nav-badge-soul,
.nav-link-daily:hover .nav-badge-daily,
.nav-item.active .nav-link-daily .nav-badge-daily,
.nav-link-kids:hover .nav-badge-kids,
.nav-item.active .nav-link-kids .nav-badge-kids {
    background: rgba(255, 255, 255, 0.28);
    color: #ffffff;
    box-shadow: none;
    animation: none;
}

/* Kids Nav Link Styling */
.nav-link-kids {
    color: #db2777 !important;
    font-weight: 700 !important;
    background: rgba(236, 72, 153, 0.08) !important;
    border: 1px solid rgba(236, 72, 153, 0.22) !important;
}

.nav-link-kids:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%) !important;
    border-color: transparent !important;
    box-shadow: 0 4px 18px rgba(236, 72, 153, 0.4) !important;
    transform: translateY(-2px);
}

.nav-link-kids:hover .nav-icon-kids {
    color: #ffffff !important;
    animation: puzzleJiggle 0.6s ease-in-out;
}

.nav-item.active .nav-link-kids {
    color: #ffffff !important;
    background: linear-gradient(135deg, #db2777 0%, #7c3aed 100%) !important;
    border-color: transparent !important;
    box-shadow: 0 4px 18px rgba(219, 39, 119, 0.45) !important;
}

.nav-item.active .nav-link-kids .nav-icon-kids {
    color: #ffffff !important;
}

.nav-badge-kids {
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
    color: #ffffff;
    box-shadow: 0 1px 6px rgba(236, 72, 153, 0.4);
}

@keyframes puzzleJiggle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.22) rotate(-8deg); }
    75% { transform: scale(1.22) rotate(8deg); }
}

/* Header Right Controls */
.header-right-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-nav-cta {
    position: relative;
    overflow: hidden;
    padding: 8px 18px !important;
    font-size: 0.88rem !important;
    border-radius: var(--radius-full) !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    box-shadow: 0 2px 10px var(--primary-glow);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.btn-nav-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-25deg);
    animation: ctaLightSweep 4.5s cubic-bezier(0.16, 1, 0.3, 1) infinite;
    pointer-events: none;
}

@keyframes ctaLightSweep {
    0%, 65% { left: -120%; }
    100% { left: 220%; }
}

.btn-nav-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 22px var(--primary-glow-lg);
}

.btn-nav-cta:active {
    transform: translateY(0) scale(0.97);
}

.btn-nav-cta svg {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-nav-cta:hover svg {
    transform: translateX(4px);
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.lang-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.12);
}

.lang-label-short {
    display: none;
    font-weight: 700;
    font-size: 0.84rem;
    letter-spacing: 0.04em;
}

.lang-chevron {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -10px;
    right: -10px;
    height: 16px;
    z-index: 119;
}

.lang-dropdown.open .lang-chevron,
.lang-dropdown:hover .lang-chevron,
.lang-dropdown:focus-within .lang-chevron {
    transform: rotate(180deg);
}

.lang-dropdown.open .lang-btn {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.15);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.16), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
    list-style: none;
    min-width: 200px;
    padding: 8px;
    display: none;
    z-index: 120;
    transform-origin: top right;
}

@keyframes langMenuSpring {
    0% {
        opacity: 0;
        transform: translateY(-8px) scale(0.94);
    }
    60% {
        opacity: 1;
        transform: translateY(2px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.lang-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.lang-dropdown.open .lang-menu,
.lang-dropdown:hover .lang-menu,
.lang-dropdown:focus-within .lang-menu {
    display: block;
    animation: langMenuSpring 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.lang-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, color 0.2s ease;
}

.lang-menu li a:hover,
.lang-menu li.active a {
    background-color: var(--primary-light);
    color: var(--primary);
    transform: translateX(4px);
}

.lang-menu li a .lang-menu-flag {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lang-menu li a:hover .lang-menu-flag {
    transform: scale(1.15);
}

/* Mobile Hamburger Toggle Button with Elastic Spring */
.mobile-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    color: var(--text-primary);
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-toggle:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: scale(1.05);
}

.mobile-nav-toggle:active {
    transform: scale(0.92);
}

.hamburger-box {
    width: 20px;
    height: 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.68, -0.6, 0.32, 1.6), opacity 0.25s ease, background-color 0.2s ease;
    transform-origin: center;
}

.mobile-nav-toggle.open {
    border-color: rgba(239, 68, 68, 0.3);
    background: var(--danger-light);
}

.mobile-nav-toggle.open .hamburger-line {
    background: var(--danger);
}

.mobile-nav-toggle.open .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-nav-toggle.open .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-nav-toggle.open .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Navigation Backdrop */
.mobile-nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile Navigation Drawer with Physics-based Slide */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 88%;
    max-width: 380px;
    background: #ffffff;
    box-shadow: -10px 0 45px rgba(15, 23, 42, 0.24);
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mobile-nav-drawer.open {
    transform: translateX(0);
}

body.mobile-nav-open {
    overflow: hidden !important;
    touch-action: none;
}

/* Mobile Drawer Header */
.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(248, 250, 252, 0.95);
    flex-shrink: 0;
}

.mobile-drawer-logo img {
    height: 32px;
    width: auto;
    transition: transform 0.2s ease;
}

.mobile-drawer-logo:hover img {
    transform: scale(1.03);
}

.mobile-drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-drawer-close:hover {
    color: var(--danger);
    border-color: var(--danger);
    background: var(--danger-light);
    transform: rotate(90deg) scale(1.08);
}

.mobile-drawer-close:active {
    transform: rotate(90deg) scale(0.92);
}

/* Staggered Item Cascade Animation for Drawer */
@keyframes drawerItemCascade {
    0% {
        opacity: 0;
        transform: translateX(22px) scale(0.97);
    }
    65% {
        opacity: 0.95;
        transform: translateX(-3px) scale(1.005);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.mobile-nav-drawer.open .mobile-nav-hero-card {
    animation: drawerItemCascade 0.38s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

.mobile-nav-drawer.open .mobile-nav-group-title {
    animation: drawerItemCascade 0.38s cubic-bezier(0.16, 1, 0.3, 1) 0.09s both;
}

.mobile-nav-drawer.open .mobile-nav-list .mobile-nav-link:nth-child(1) {
    animation: drawerItemCascade 0.38s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}
.mobile-nav-drawer.open .mobile-nav-list .mobile-nav-link:nth-child(2) {
    animation: drawerItemCascade 0.38s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}
.mobile-nav-drawer.open .mobile-nav-list .mobile-nav-link:nth-child(3) {
    animation: drawerItemCascade 0.38s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}
.mobile-nav-drawer.open .mobile-nav-list .mobile-nav-link:nth-child(4) {
    animation: drawerItemCascade 0.38s cubic-bezier(0.16, 1, 0.3, 1) 0.21s both;
}
.mobile-nav-drawer.open .mobile-nav-list .mobile-nav-link:nth-child(5) {
    animation: drawerItemCascade 0.38s cubic-bezier(0.16, 1, 0.3, 1) 0.24s both;
}
.mobile-nav-drawer.open .mobile-nav-list .mobile-nav-link:nth-child(6) {
    animation: drawerItemCascade 0.38s cubic-bezier(0.16, 1, 0.3, 1) 0.27s both;
}

.mobile-nav-drawer.open .mobile-lang-section {
    animation: drawerItemCascade 0.38s cubic-bezier(0.16, 1, 0.3, 1) 0.31s both;
}

.mobile-nav-drawer.open .mobile-drawer-footer {
    animation: drawerItemCascade 0.38s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

/* Mobile Drawer Scrollable Body */
.mobile-drawer-body {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Animated Radar Pulse Dot */
.pulse-dot {
    width: 8px;
    height: 8px;
    background: #34d399;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.8);
    flex-shrink: 0;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid #34d399;
    animation: radarPing 1.8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes radarPing {
    0% { transform: scale(0.8); opacity: 1; }
    80%, 100% { transform: scale(2.6); opacity: 0; }
}

/* Mobile Hero Assessment Card with Moving Cosmic Aura */
.mobile-nav-hero-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 35%, #4338ca 70%, #6366f1 100%);
    background-size: 250% 250%;
    animation: cosmicAuraShift 7s ease-in-out infinite alternate;
    border-radius: var(--radius-lg);
    color: #ffffff !important;
    box-shadow: 0 8px 24px -4px rgba(49, 46, 129, 0.45);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
    text-decoration: none;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.mobile-nav-hero-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: skewX(-25deg);
    animation: heroShimmer 5s cubic-bezier(0.16, 1, 0.3, 1) infinite;
    pointer-events: none;
}

@keyframes heroShimmer {
    0%, 60% { left: -150%; }
    100% { left: 250%; }
}

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

.mobile-nav-hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.5) 0%, transparent 70%);
    pointer-events: none;
    animation: pulseAuraGlow 4s ease-in-out infinite alternate;
}

@keyframes pulseAuraGlow {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.15); opacity: 0.9; }
}

.mobile-nav-hero-card:active {
    transform: scale(0.98);
}

.mobile-hero-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-nav-hero-card:hover .mobile-hero-icon-box {
    transform: scale(1.08) rotate(4deg);
}

.mobile-hero-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.70rem;
    font-weight: 700;
    color: #34d399;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1;
}

.mobile-hero-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
}

.mobile-hero-sub {
    font-size: 0.74rem;
    color: #cbd5e1;
    line-height: 1.25;
}

.mobile-hero-arrow {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}

.mobile-nav-hero-card:hover .mobile-hero-arrow {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.35);
}

/* Mobile Nav Group & Titles */
.mobile-nav-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.mobile-nav-group-title {
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding: 0 4px;
    margin-bottom: 1px;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Mobile Nav Links */
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 13px;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-primary) !important;
    text-decoration: none;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-link:hover {
    background: var(--bg-alt);
    border-color: rgba(79, 70, 229, 0.35);
    transform: translateX(5px);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.08);
}

.mobile-nav-link:active {
    transform: scale(0.98) translateX(2px);
    background: var(--primary-light);
}

.mobile-nav-link.active {
    background: var(--primary-light);
    border-color: rgba(79, 70, 229, 0.35);
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.12);
}

.mobile-nav-link.active .mobile-nav-title {
    color: var(--primary);
    font-weight: 800;
}

.mobile-nav-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-nav-link:hover .mobile-nav-icon-wrap {
    transform: scale(1.16) rotate(5deg);
}

.mobile-nav-text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.mobile-nav-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.mobile-nav-desc {
    font-size: 0.73rem;
    color: var(--text-muted);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-nav-chevron {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.6;
    margin-left: auto;
    transition: transform 0.2s ease, color 0.2s ease;
}

.mobile-nav-link:hover .mobile-nav-chevron {
    transform: translateX(4px);
    color: var(--primary);
    opacity: 1;
}

.mobile-nav-link.mobile-link-soul {
    border-color: rgba(168, 85, 247, 0.25);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.04) 0%, rgba(236, 72, 153, 0.04) 100%);
}

.mobile-nav-link.mobile-link-soul:hover,
.mobile-nav-link.mobile-link-soul.active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border-color: rgba(168, 85, 247, 0.45);
}

.mobile-nav-link.mobile-link-daily {
    border-color: rgba(245, 158, 11, 0.25);
    background: rgba(245, 158, 11, 0.03);
}

.mobile-nav-link.mobile-link-daily:hover,
.mobile-nav-link.mobile-link-daily.active {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.45);
}

/* Mobile Language Grid */
.mobile-lang-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
}

.mobile-lang-chip {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-secondary) !important;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-lang-chip:hover,
.mobile-lang-chip:active {
    border-color: var(--primary);
    color: var(--primary) !important;
    background: var(--primary-light);
}

.mobile-lang-chip.active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary) !important;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.1);
}

.mobile-lang-flag {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.mobile-lang-name {
    flex: 1 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-lang-check {
    color: var(--primary);
    flex-shrink: 0;
}

/* Mobile Drawer Footer */
.mobile-drawer-footer {
    padding: 16px 18px;
    border-top: 1px solid var(--border-color);
    background: rgba(248, 250, 252, 0.95);
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.mobile-drawer-cta {
    width: 100%;
    justify-content: center;
    padding: 13px 20px !important;
    font-size: 0.95rem !important;
    border-radius: var(--radius-md) !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px var(--primary-glow);
    animation: drawerCtaGlow 3.5s ease-in-out infinite alternate;
}

@keyframes drawerCtaGlow {
    0% { box-shadow: 0 4px 14px var(--primary-glow); }
    100% { box-shadow: 0 6px 24px var(--primary-glow-lg), 0 0 12px rgba(99, 102, 241, 0.35); }
}

.mobile-drawer-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
    transform: skewX(-25deg);
    animation: ctaLightSweep 4.5s cubic-bezier(0.16, 1, 0.3, 1) infinite;
    pointer-events: none;
}

.mobile-drawer-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* 4. Modern Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, border-color 0.2s ease;
    text-align: center;
    text-decoration: none;
    line-height: 1;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
    color: #ffffff !important;
    box-shadow: var(--shadow-md), 0 2px 8px var(--primary-glow);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -120%;
    width: 60%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    transform: rotate(25deg);
    transition: left 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.btn-primary:hover::after {
    left: 200%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 8px 22px var(--primary-glow-lg);
}

.btn-glow {
    box-shadow: 0 8px 25px -4px var(--primary-glow);
}

.btn-glow:hover {
    box-shadow: 0 12px 30px -4px var(--primary-glow-lg);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--bg-alt);
    border-color: var(--border-hover);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px 0 var(--success-glow);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px 0 var(--success-glow);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.86rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 16px 34px;
    font-size: 1.08rem;
    border-radius: var(--radius-lg);
}

.btn-xl {
    padding: 18px 40px;
    font-size: 1.15rem;
    border-radius: var(--radius-xl);
}

.btn-block {
    width: 100%;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.badge-primary {
    background: var(--primary-light);
    color: var(--primary);
}

.badge-accent {
    background: var(--accent-light);
    color: var(--accent-hover);
}

.badge-success {
    background: var(--success-light);
    color: #065f46;
}

.badge-warning {
    background: var(--warning-light);
    color: #b45309;
}

.badge-neutral {
    background: var(--bg-alt);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* 5. Hero Section */
.hero-section {
    padding: 64px 0 48px;
    position: relative;
    overflow: hidden;
}

.hero-split-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 44px;
    align-items: center;
    margin-bottom: 40px;
}

.hero-content-col {
    max-width: 680px;
}

.hero-badge-wrap {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 22px;
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--success);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.25rem;
    font-weight: 850;
    letter-spacing: -0.035em;
    color: var(--text-primary);
    line-height: 1.12;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.18rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

/* Trust Proof Bar */
.hero-trust-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.hero-trust-stars {
    color: #f59e0b;
    letter-spacing: 2px;
    font-size: 1.1rem;
    line-height: 1;
}

.hero-trust-text strong {
    color: var(--text-primary);
    font-weight: 800;
}

/* Hero Right: Floating Interactive Matrix Preview Card */
.hero-visual-col {
    display: flex;
    justify-content: center;
}

.hero-card-floating {
    width: 100%;
    max-width: 440px;
    border-radius: var(--radius-2xl);
    padding: 30px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
    animation: floatHeroCard 6s ease-in-out infinite alternate;
    border: 1px solid rgba(226, 232, 240, 0.9);
}

@keyframes floatHeroCard {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

.hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.hero-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: var(--primary);
    background: var(--primary-light);
    padding: 5px 12px;
    border-radius: var(--radius-full);
}

.hero-card-status {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-muted);
}

.hero-matrix-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: inset 0 2px 6px rgba(15, 23, 42, 0.02);
}

.hero-matrix-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.matrix-cell {
    height: 52px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-secondary);
}

.matrix-cell-target {
    background: var(--primary-light);
    border: 2px dashed var(--primary);
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 900;
    animation: pulseTarget 2s infinite;
}

@keyframes pulseTarget {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); background: #e0e7ff; }
}

.matrix-caption {
    font-size: 0.76rem;
    color: var(--text-muted);
    text-align: center;
    font-weight: 600;
}

.hero-card-chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.hero-mini-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.mini-chip-icon {
    font-size: 1.3rem;
}

.mini-chip-val {
    font-size: 0.95rem;
    font-weight: 850;
    color: var(--text-primary);
    line-height: 1.1;
}

.mini-chip-lbl {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Hero Metrics Strip */
.hero-metrics-strip {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 18px 32px;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    flex-wrap: wrap;
    gap: 16px;
    border: 1px solid var(--border-color);
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.metric-icon {
    font-size: 1.2rem;
}

.metric-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.metric-text strong {
    color: var(--text-primary);
    font-weight: 800;
}

.metric-divider {
    width: 1px;
    height: 22px;
    background: var(--border-color);
}

/* 6. Section General Styles */
.section {
    padding: 68px 0;
    position: relative;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: 14px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
}

.section-header {
    margin-bottom: 48px;
}

/* 7. Featured Tests Grid */
.popular-tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.test-preview-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.test-preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #8b5cf6, var(--accent));
    opacity: 0;
    transform: scaleX(0.7);
    transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.test-preview-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    transition: left 0.75s ease;
    pointer-events: none;
}

.test-preview-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px -6px rgba(79, 70, 229, 0.16), 0 4px 12px rgba(15, 23, 42, 0.04);
    border-color: rgba(99, 102, 241, 0.35);
}

.test-preview-card:hover::before {
    opacity: 1;
    transform: scaleX(1);
}

.test-preview-card:hover::after {
    left: 200%;
}

.test-preview-card.card-featured {
    border: 2px solid var(--primary);
    box-shadow: 0 10px 28px -4px var(--primary-glow);
}

.test-preview-card.card-featured::before {
    opacity: 1;
}

.test-card-badge-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.test-card-count {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}

.test-card-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.test-card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 26px;
    flex-grow: 1;
}

.test-card-footer {
    margin-top: auto;
}

/* 8. How It Works Steps */
.section-how-it-works {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

.step-card {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    background: #ffffff;
}

.step-num-watermark {
    position: absolute;
    top: 16px;
    right: 20px;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--border-color);
    line-height: 1;
    pointer-events: none;
    opacity: 0.6;
}

.step-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.step-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 9. Sample Question Card */
.section-sample {
    background: var(--bg-main);
}

.sample-card {
    border-radius: var(--radius-2xl);
    padding: 40px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.sample-q-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.sample-category-tag {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}

.sample-q-text {
    font-size: 1.25rem;
    font-weight: 750;
    color: var(--text-primary);
    line-height: 1.45;
    margin-bottom: 24px;
}

.sample-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.sample-option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.sample-opt-letter {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.82rem;
    color: var(--text-primary);
}

.sample-option-item.correct {
    background: var(--success-light);
    border-color: var(--success);
    color: #065f46;
}

.sample-option-item.correct .sample-opt-letter {
    background: var(--success);
    color: #ffffff;
}

.sample-explanation-box {
    background: var(--primary-light);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.92rem;
    color: #312e81;
    margin-bottom: 28px;
}

.sample-expl-icon {
    font-size: 1.25rem;
    line-height: 1;
}

/* 10. FAQ Accordion */
.section-faq {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--border-hover);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    padding: 22px 26px;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.12rem;
    font-weight: 750;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-toggle-icon {
    width: 14px;
    height: 14px;
    border-right: 2.5px solid var(--text-muted);
    border-bottom: 2.5px solid var(--text-muted);
    transform: rotate(45deg);
    transition: transform 0.25s ease;
    margin-left: 16px;
    flex-shrink: 0;
}

.faq-item[open] .faq-toggle-icon {
    transform: rotate(-135deg);
    border-color: var(--primary);
}

.faq-answer {
    padding: 0 26px 24px;
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.7;
}

/* ==========================================================================
   11. QUIZ ENGINE / TEST RUNNER (Ultra-Modern)
   ========================================================================== */
.quiz-container {
    padding: 36px 0 72px;
}

/* Quiz Header Status Bar */
.quiz-header-bar {
    border-radius: var(--radius-xl);
    padding: 16px 26px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border-color);
}

.quiz-progress-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quiz-step-chip {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: var(--bg-alt);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.quiz-step-numbers {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
}

.quiz-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    padding: 7px 16px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.timer-live-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--primary);
    animation: livePulse 1.5s infinite;
}

/* Progress bar */
.progress-bar-container {
    width: 100%;
    height: 7px;
    background: #e2e8f0;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 24px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    width: 5%;
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Dots track */
.quiz-dots-track {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.quiz-dot {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 800;
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-bounce);
}

.quiz-dot:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.quiz-dot.answered {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.quiz-dot.active {
    background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
    border-color: var(--primary);
    color: #ffffff;
    transform: scale(1.12);
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* Question Card */
.question-card {
    border-radius: var(--radius-2xl);
    padding: 40px;
    margin-bottom: 24px;
    display: none;
    animation: fadeScale 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.question-card.active {
    display: block;
}

@keyframes fadeScale {
    from { opacity: 0; transform: translateY(8px) scale(0.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.question-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.question-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: var(--bg-alt);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--primary);
}

.question-counter-label {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 700;
}

.question-text {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 750;
    color: var(--text-primary);
    line-height: 1.45;
    margin-bottom: 26px;
}

/* Question Diagram Media Frame */
.question-media {
    margin: 0 auto 30px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.02);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.question-media img, .question-media svg {
    max-height: 290px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

/* Option Buttons (A, B, C, D) */
.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.option-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 18px 24px;
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
    position: relative;
    user-select: none;
    box-shadow: var(--shadow-sm);
}

.option-btn:hover {
    border-color: #818cf8;
    background: #fafafa;
    transform: translateX(4px);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.1);
}

.option-btn.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateX(6px) scale(1.01);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.22), 0 8px 20px rgba(79, 70, 229, 0.15);
    animation: optionSelectPop 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes optionSelectPop {
    0% { transform: translateX(0) scale(0.98); }
    60% { transform: translateX(8px) scale(1.02); }
    100% { transform: translateX(6px) scale(1.01); }
}

.option-letter {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-right: 18px;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.option-btn.selected .option-letter {
    background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px var(--primary-glow);
}

.option-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    flex-grow: 1;
    line-height: 1.45;
}

.option-kbd-hint {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 3px 8px;
    margin-left: 12px;
    opacity: 0.8;
}

@media (max-width: 640px) {
    .option-kbd-hint {
        display: none;
    }
}

/* Navigation Controls */
.quiz-nav-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 26px;
}

/* 12. Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
}

.modal-card {
    background: #ffffff;
    border-radius: var(--radius-2xl);
    padding: 38px;
    max-width: 480px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    text-align: center;
    animation: fadeScale 0.25s ease-out;
}

.modal-icon {
    font-size: 2.75rem;
    margin-bottom: 16px;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.modal-desc {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 26px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* 13. Results Page Styling — High-End Psychometric Dashboard */
.results-page-section {
    padding-top: 28px;
    padding-bottom: 70px;
}

/* Certificate Top Strip */
.results-cert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 22px;
    border-radius: var(--radius-xl);
    margin-bottom: 18px;
    border: 1px solid var(--border-color);
}

.cert-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: var(--success);
}

.cert-id {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}

.cert-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.results-card {
    border-radius: var(--radius-2xl);
    padding: 40px;
    box-shadow: var(--shadow-xl);
    text-align: center;
    border: 1px solid rgba(226, 232, 240, 0.9);
}

/* SVG Radial Gauge & Center IQ Display */
.results-gauge-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    margin-bottom: 34px;
    flex-wrap: wrap;
}

.results-svg-gauge-box {
    position: relative;
    width: 200px;
    height: 200px;
    flex-shrink: 0;
}

.results-gauge-svg {
    transform: rotate(-90deg);
}

.gauge-track {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 14;
}

.gauge-fill {
    fill: none;
    stroke: url(#gaugeGrad);
    stroke-width: 14;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gauge-center-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
}

.gauge-iq-val {
    font-family: var(--font-heading);
    font-size: 2.85rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.04em;
}

.gauge-iq-label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--primary);
    margin-top: 2px;
}

.gauge-pct-badge {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: var(--bg-alt);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    margin-top: 4px;
}

.results-title-block {
    text-align: left;
}

.results-score-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 800;
    background: var(--primary-light);
    color: var(--primary);
    margin-bottom: 12px;
    letter-spacing: 0.4px;
}

.results-headline-score {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 850;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 6px;
}

.score-denominator {
    font-size: 1.35rem;
    color: var(--text-muted);
    font-weight: 600;
}

.results-score-subtext {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Metric Cards Row */
.results-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.stat-icon {
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.stat-val {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 850;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-lbl {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Gaussian Bell Curve Distribution */
.bell-curve-card {
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 28px;
    text-align: left;
    border: 1px solid var(--border-color);
}

.bell-curve-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.bell-curve-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.bell-curve-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.bell-curve-svg-box {
    width: 100%;
    overflow-x: auto;
}

.bell-curve-svg {
    width: 100%;
    height: auto;
    min-width: 500px;
    display: block;
}

/* Bracket Aptitude Tier */
.bracket-card {
    background: linear-gradient(135deg, var(--primary-light) 0%, #ede9fe 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 28px;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.bracket-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.bracket-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #312e81;
    margin-bottom: 6px;
}

.bracket-desc {
    color: #3730a3;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Category Breakdown Grid */
.category-breakdown-card {
    border-radius: var(--radius-xl);
    padding: 26px;
    margin-bottom: 30px;
    text-align: left;
    border: 1px solid var(--border-color);
}

.breakdown-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.breakdown-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.breakdown-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.category-row {
    margin-bottom: 16px;
}

.category-row:last-child {
    margin-bottom: 0;
}

.category-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.92rem;
    margin-bottom: 8px;
}

.cat-label-with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--text-primary);
}

.cat-icon {
    font-size: 1.05rem;
}

.cat-ratio {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.cat-ratio strong {
    color: var(--text-primary);
}

.cat-pct-tag {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.category-bar-bg {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.category-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: var(--radius-full);
}

/* Action Buttons Container */
.results-actions-wrapper {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

.results-secondary-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Scientific Disclaimer */
.disclaimer-card {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px;
    text-align: left;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.disclaimer-title {
    font-weight: 800;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

/* Sample Question Toast & Interactive Animations */
.sample-feedback-toast {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.94rem;
    margin-bottom: 20px;
    animation: fadeInToast 0.3s ease-out;
}

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

.toast-success {
    background: var(--success-light);
    border: 1px solid var(--success);
    color: #065f46;
}

.toast-warning {
    background: var(--warning-light);
    border: 1px solid var(--warning);
    color: #92400e;
}

.shake-error {
    animation: shakeOpt 0.4s ease-in-out;
    border-color: var(--danger) !important;
    background: var(--danger-light) !important;
}

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

/* 14. Answer Review Page Styling */
.review-filters,
.review-filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.filter-btn,
.review-filter-btn {
    padding: 9px 20px;
    border-radius: var(--radius-full);
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active,
.review-filter-btn:hover,
.review-filter-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.review-item-card,
.review-question-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.review-item-card:hover,
.review-question-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(99, 102, 241, 0.25);
}

.review-header,
.review-q-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.status-badge,
.review-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 800;
}

.status-correct,
.review-status-badge.correct {
    background: var(--success-light);
    color: #065f46;
}

.status-incorrect,
.review-status-badge.incorrect {
    background: var(--danger-light);
    color: #991b1b;
}

.status-skipped,
.review-status-badge.skipped {
    background: var(--warning-light);
    color: #92400e;
}

.review-answers-box,
.answers-comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 20px 0;
}

@media (max-width: 600px) {
    .review-answers-box,
    .answers-comparison-grid {
        grid-template-columns: 1fr;
    }
}

.review-ans-item,
.answer-box {
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
    background: var(--bg-main);
}

.answer-box-user {
    background: var(--bg-main);
}

.answer-box-correct {
    background: var(--success-light);
    border-color: var(--success);
}

.review-ans-label,
.answer-box-lbl {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.explanation-callout,
.explanation-card {
    background: var(--primary-light);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-left: 4px solid var(--primary);
    padding: 18px 22px;
    border-radius: var(--radius-md);
    margin-top: 18px;
}

.explanation-title {
    font-weight: 800;
    font-size: 0.92rem;
    color: var(--primary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.explanation-body,
.explanation-text {
    font-size: 0.94rem;
    color: #312e81;
    line-height: 1.6;
}

/* 15. Site Footer - Modern Light Aesthetic System */
.site-footer {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: #475569;
    padding: 68px 0 36px;
    margin-top: auto;
    border-top: 1px solid #e2e8f0;
    position: relative;
    box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.03);
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, rgba(79, 70, 229, 0.45) 25%, rgba(139, 92, 246, 0.55) 50%, rgba(6, 182, 212, 0.45) 75%, transparent 100%);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.25fr repeat(4, 1fr);
    gap: 36px;
    margin-bottom: 44px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand .logo-link {
    display: inline-flex;
    align-items: center;
}

.footer-brand .logo-link img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.footer-brand-desc {
    font-size: 0.90rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 320px;
    margin: 0;
}

.footer-trust-chips {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 2px;
}

.footer-trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
    width: fit-content;
    line-height: 1.2;
}

.chip-free {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.chip-instant {
    background: #eef2ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
}

.chip-privacy {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col-title {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0f172a;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    flex-shrink: 0;
}

.footer-col-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col-links a {
    color: #475569;
    font-size: 0.88rem;
    font-weight: 550;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
}

.footer-col-links a:hover {
    color: #4f46e5;
    transform: translateX(3px);
}

.footer-badge-mini {
    font-size: 0.68rem;
    padding: 2px 7px;
    border-radius: 9999px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-mini-live {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-mini-top {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.badge-mini-new {
    background: rgba(139, 92, 246, 0.12);
    color: #7c3aed;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-mini-hot {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.28);
}

.badge-mini-kids {
    background: rgba(236, 72, 153, 0.12);
    color: #db2777;
    border: 1px solid rgba(236, 72, 153, 0.28);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: #64748b;
}

.footer-bottom-legal {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom-legal a {
    color: #64748b;
    text-decoration: none;
    font-weight: 550;
    transition: color 0.2s ease;
}

.footer-bottom-legal a:hover {
    color: #4f46e5;
    text-decoration: underline;
}

.footer-back-to-top {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.80rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
    text-decoration: none;
}

.footer-back-to-top:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.footer-disclaimer-card {
    width: 100%;
    margin-top: 20px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-disclaimer-icon {
    color: #94a3b8;
    flex-shrink: 0;
    margin-top: 1px;
}

@media (max-width: 1100px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
    .footer-brand-desc {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .site-footer {
        padding: 44px 0 28px;
    }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
    }
    .footer-bottom-legal {
        justify-content: center;
        gap: 12px;
    }
    .footer-disclaimer-card {
        text-align: left;
    }
}

/* 16. Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 520px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    padding: 22px 26px;
    box-shadow: var(--shadow-xl);
    z-index: 150;
    display: none;
    color: #ffffff;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

/* 17. Responsive Tweaks */
@media (max-width: 900px) {
    .hero-split-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }
    .hero-content-col {
        max-width: 100%;
        margin: 0 auto;
    }
    .hero-badge-wrap,
    .hero-actions,
    .hero-trust-bar {
        justify-content: center;
    }
    .hero-card-floating {
        margin: 0 auto;
    }
    .results-gauge-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .results-title-block {
        text-align: center;
    }
}

/* Responsive Navigation Breakpoints (Fully Adaptive Navbar) */
@media (max-width: 1400px) {
    .nav-item a {
        font-size: 0.83rem;
        padding: 5px 8px;
        gap: 4px;
    }
    .nav-menu {
        gap: 2px;
        padding: 2px 4px;
    }
    .lang-btn {
        padding: 6px 11px;
        font-size: 0.82rem;
    }
}

@media (max-width: 1300px) {
    .nav-item-icon {
        display: none !important;
    }
    .nav-item a {
        font-size: 0.81rem;
        padding: 5px 7px;
        gap: 4px;
    }
    .nav-pill-badge {
        padding: 1px 5px;
        font-size: 0.65rem;
    }
    .lang-label-full {
        display: none !important;
    }
    .lang-label-short {
        display: inline !important;
    }
    .lang-btn {
        padding: 6px 10px;
    }
    .logo-img {
        height: 41px;
    }
}

@media (max-width: 1200px) {
    .nav-container {
        display: none !important;
    }
    .mobile-nav-toggle {
        display: inline-flex !important;
    }
}

@media (max-width: 680px) {
    .site-header .nav-wrapper {
        height: 60px;
        gap: 8px;
    }
    .logo-img {
        height: 36px;
        width: auto;
        max-width: 140px;
        object-fit: contain;
    }
    .lang-label-full {
        display: none !important;
    }
    .lang-label-short {
        display: inline !important;
    }
    .lang-btn {
        padding: 6px 9px;
        gap: 4px;
    }
    .lang-chevron {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.35rem;
    }
    .hero-subtitle {
        font-size: 1.05rem;
    }
    .hero-metrics-strip {
        border-radius: var(--radius-xl);
        padding: 14px;
        gap: 12px;
    }
    .metric-divider {
        display: none;
    }
    .sample-options-grid {
        grid-template-columns: 1fr;
    }
    .question-card {
        padding: 22px 18px;
    }
    .results-card {
        padding: 26px 16px;
    }
    .results-stats-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .results-cert-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* ==========================================================================
   Smart Calculators Hub Styles
   ========================================================================== */

.calc-hero-section {
    padding-top: 48px;
    padding-bottom: 24px;
}

.calc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.calc-main-title {
    font-size: clamp(2rem, 3.8vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 14px;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.calc-main-desc {
    font-size: 1.12rem;
    color: var(--text-secondary);
    max-width: 820px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

/* Filter Tabs */
.calc-nav-tabs-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.calc-nav-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

.calc-nav-tab {
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calc-nav-tab:hover {
    color: var(--primary);
    background: rgba(79, 70, 229, 0.06);
}

.calc-nav-tab.active {
    color: #ffffff;
    background: var(--primary);
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* Cards Grid */
.calc-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 10px;
}

.calc-card {
    padding: 32px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.calc-card:hover {
    box-shadow: var(--shadow-lg);
}

.calc-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-subtle);
}

.calc-icon-badge {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.calc-icon-badge svg {
    stroke: #ffffff;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.2));
}

.calc-card:hover .calc-icon-badge {
    transform: scale(1.06);
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.calc-cat-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
    margin-bottom: 4px;
}

.calc-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.calc-card-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Body Grid */
.calc-body-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
    align-items: start;
}

.calc-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Inputs styling */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.96rem;
    font-family: inherit;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Result Box */
.calc-results-col {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-subtle);
}

.calc-result-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.primary-result-box {
    border-color: rgba(79, 70, 229, 0.35);
    background: linear-gradient(180deg, #ffffff 0%, var(--primary-light) 100%);
}

.res-label {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.res-value-highlight {
    font-family: 'Outfit', var(--font-sans);
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}

.calc-breakdown-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border-subtle);
}

.breakdown-name {
    color: var(--text-secondary);
}

.breakdown-val {
    font-weight: 700;
    color: var(--text-primary);
}

.calc-visual-bar-wrap {
    height: 10px;
    border-radius: 6px;
    background: #e2e8f0;
    overflow: hidden;
    display: flex;
    margin: 14px 0 8px;
}

.calc-bar-fill {
    height: 100%;
    transition: width 0.35s ease;
}

.bar-primary { background: var(--primary); }
.bar-success { background: var(--success); }

.calc-bar-legend {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.legend-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
}

/* Function Plotter Specifics */
.graph-plotter-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.input-with-prefix {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 14px;
    font-weight: 700;
    color: var(--primary);
    font-family: monospace;
    font-size: 1.05rem;
    pointer-events: none;
}

.input-with-prefix .form-control {
    padding-left: 56px;
    font-family: monospace;
    font-size: 1.05rem;
    font-weight: 600;
}

.graph-presets-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.graph-preset-btn {
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: monospace;
    border: 1px solid var(--border-color);
    background: #ffffff;
    border-radius: var(--radius-xs);
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.15s;
}

.graph-preset-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.canvas-container {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #ffffff;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

#math-graph-canvas {
    display: block;
    width: 100%;
    height: 360px;
    cursor: crosshair;
}

.graph-coords-badge {
    position: absolute;
    bottom: 10px;
    right: 12px;
    padding: 4px 10px;
    border-radius: var(--radius-xs);
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    font-family: monospace;
    font-size: 0.8rem;
    pointer-events: none;
}

/* AI Equation Solver */
.equation-solver-wrap {
    margin-top: 10px;
}

.solver-solution-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 14px;
    box-shadow: var(--shadow-sm);
}

.solver-step {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.94rem;
    color: var(--text-primary);
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.solver-step code {
    background: var(--bg-alt);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.96rem;
    color: var(--primary);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.78rem;
    flex-shrink: 0;
}

.solver-step-final {
    margin-top: 16px;
    padding-top: 8px;
    font-size: 1.05rem;
    color: var(--text-primary);
}

/* ==========================================================================
   Psychometric, Sequence & Cognitive Converter Widgets
   ========================================================================== */

/* Bell Curve Gauge */
.bell-curve-wrap {
    margin-top: 14px;
    position: relative;
}

.bell-curve-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.bell-curve-track {
    position: relative;
    width: 100%;
    height: 90px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border-color);
}

.bell-curve-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.bell-curve-needle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.needle-tip {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    margin-left: -3px;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
}

.needle-line {
    width: 2px;
    height: calc(100% - 8px);
    background: #ef4444;
}

/* Brain Age Reaction Pad */
.reaction-pad {
    padding: 38px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 700;
    font-size: 1.15rem;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.pad-idle {
    background: var(--bg-alt);
    color: var(--text-secondary);
    border: 2px dashed var(--border-color);
}

.pad-idle:hover {
    background: #f1f5f9;
    border-color: var(--primary);
    color: var(--primary);
}

.pad-waiting {
    background: #fef2f2;
    color: #dc2626;
    border: 2px solid #ef4444;
}

.pad-ready {
    background: #ecfdf5;
    color: #059669;
    border: 2px solid #10b981;
    animation: padPulse 0.5s infinite alternate;
}

@keyframes padPulse {
    from { transform: scale(1); box-shadow: 0 0 0 rgba(16, 185, 129, 0.2); }
    to { transform: scale(1.02); box-shadow: 0 0 20px rgba(16, 185, 129, 0.4); }
}

.pad-early {
    background: #fffbeb;
    color: #d97706;
    border: 2px solid #f59e0b;
}

.pad-success {
    background: #eef2ff;
    color: #4338ca;
    border: 2px solid #6366f1;
}

/* WPM Reading Speed Box */
.wpm-instructions {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.wpm-reading-text-box {
    padding: 20px 22px;
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--text-primary);
    max-height: 220px;
    overflow-y: auto;
    transition: border-color 0.2s, box-shadow 0.2s;
    user-select: none;
}

.wpm-reading-text-box.reading-active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: #fafafa;
}

.seq-preset-btn {
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: monospace;
    border: 1px solid var(--border-color);
    background: #ffffff;
    border-radius: var(--radius-xs);
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.15s;
}

.seq-preset-btn:hover {
    border-color: var(--warning);
    color: var(--warning);
    background: #fffbeb;
}

/* Mobile Responsiveness */
@media (max-width: 860px) {
    .calc-body-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .calc-card {
        padding: 22px 16px;
    }
    .calc-row-2 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Dedicated Single Calculator Page Styles
   ========================================================================== */

/* Breadcrumbs Bar */
.calc-breadcrumbs-bar {
    padding: 20px 0 6px;
    background: transparent;
}

.calc-breadcrumbs-bar .container {
    max-width: 1140px;
}

.breadcrumbs-nav {
    display: flex;
}

.breadcrumbs-nav .breadcrumb-list {
    display: inline-flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none !important;
    padding: 6px 14px !important;
    margin: 0 !important;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    font-size: 0.85rem;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    list-style: none !important;
}

.breadcrumb-item a {
    color: var(--text-secondary);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-separator {
    color: var(--text-muted);
    opacity: 0.45;
    font-size: 0.75rem;
    list-style: none !important;
    user-select: none;
}

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 700;
}

/* Single Calculator Hero Header */
.calc-single-hero {
    padding: 28px 0 24px;
}

.calc-single-hero .container {
    max-width: 840px;
}

.calc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.calc-main-title {
    font-family: 'Outfit', var(--font-sans);
    font-size: clamp(2rem, 3.8vw, 2.85rem);
    font-weight: 850;
    color: var(--text-primary);
    line-height: 1.15;
    margin: 0 auto 14px;
    letter-spacing: -0.025em;
    max-width: 820px;
}

.calc-main-desc {
    font-size: clamp(1rem, 1.4vw, 1.14rem);
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Single Calculator Card Container */
.calc-single-widget-section {
    padding-top: 6px;
    padding-bottom: 40px;
}

.calc-single-widget-section .container {
    max-width: 1140px;
}

/* On dedicated single page, hide the redundant duplicate header inside the card */
.calc-single-widget-section .calc-card-header {
    display: none !important;
}

.calc-single-widget-section .calc-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.06), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
    padding: 36px 32px;
}

/* SEO Article & Methodology Section */
.calc-seo-section {
    padding: 20px 0 30px;
}

.calc-seo-section .container {
    max-width: 1140px;
}

.calc-seo-article {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px 44px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    color: var(--text-secondary);
    line-height: 1.75;
}

.calc-seo-article h2 {
    font-family: 'Outfit', var(--font-sans);
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-alt);
    display: flex;
    align-items: center;
    gap: 10px;
}

.calc-seo-article h2:not(:first-child) {
    margin-top: 36px;
}

.calc-seo-article h3 {
    font-family: 'Outfit', var(--font-sans);
    font-size: 1.22rem;
    font-weight: 750;
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 10px;
}

.calc-seo-article p {
    font-size: 1.02rem;
    margin-bottom: 16px;
    color: #475569;
}

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

.calc-seo-article li {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #475569;
    line-height: 1.65;
}

.calc-seo-article code {
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.9em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.calc-formula-callout {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-left: 5px solid var(--primary);
    border-radius: 0 14px 14px 0;
    padding: 18px 24px;
    margin: 22px 0;
    font-family: 'Outfit', ui-monospace, monospace;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    overflow-x: auto;
}

/* Styled Table in Articles */
.table-responsive {
    overflow-x: auto;
    margin: 24px 0;
}

.table-styled {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    text-align: left;
}

.table-styled th {
    background: var(--bg-alt);
    padding: 12px 16px;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

.table-styled td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.table-styled tr:hover td {
    background: rgba(79, 70, 229, 0.02);
}

/* FAQ Section */
.calc-faq-section {
    padding: 10px 0 30px;
}

.calc-faq-section .container {
    max-width: 1140px;
}

.calc-faq-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px 44px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.faq-headline {
    font-family: 'Outfit', var(--font-sans);
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-alt);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: var(--bg-alt);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 20px 24px;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: rgba(79, 70, 229, 0.25);
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.faq-question {
    font-size: 1.08rem;
    font-weight: 750;
    color: var(--text-primary);
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-answer p {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

.faq-answer code {
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.88em;
}

/* Related Calculators Grid */
.calc-related-section {
    padding: 24px 0 40px;
}

.calc-related-section .container {
    max-width: 1140px;
}

.calc-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.calc-related-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: #ffffff;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.calc-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -6px rgba(79, 70, 229, 0.12);
    border-color: rgba(79, 70, 229, 0.35);
}

.related-card-icon {
    font-size: 1.8rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 70, 229, 0.08);
    border-radius: 12px;
    margin-bottom: 14px;
    flex-shrink: 0;
}

.related-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.related-card-cat {
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 6px;
}

.related-card-title {
    font-size: 1.05rem;
    font-weight: 750;
    color: var(--text-primary);
    margin: 0 0 8px;
    line-height: 1.35;
}

.related-card-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0 0 16px;
    line-height: 1.5;
    flex-grow: 1;
}

.related-card-link {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.related-card-link::after {
    content: '→';
    transition: transform 0.15s ease;
}

.calc-related-card:hover .related-card-link::after {
    transform: translateX(4px);
}

/* Call to Action Card */
.calc-cta-section {
    padding-top: 10px;
    padding-bottom: 60px;
}

.calc-cta-section .container {
    max-width: 1140px;
}

.calc-cta-card {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #4338ca 100%);
    border-radius: var(--radius-xl);
    padding: 48px 36px;
    color: #ffffff;
    text-align: center;
    box-shadow: 0 16px 36px -8px rgba(30, 27, 75, 0.35);
}

.calc-cta-card h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    font-weight: 850;
    color: #ffffff;
    margin-bottom: 12px;
}

.calc-cta-card p {
    font-size: 1.05rem;
    color: #cbd5e1;
    max-width: 680px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
    .calc-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .calc-seo-article,
    .calc-faq-card {
        padding: 26px 20px;
    }
    .calc-cta-card {
        padding: 32px 20px;
    }
    .calc-single-widget-section .calc-card {
        padding: 24px 18px;
    }
}

@media (max-width: 600px) {
    .calc-related-grid {
        grid-template-columns: 1fr;
    }
    .calc-main-title {
        font-size: 1.75rem;
    }
}

/* ==========================================================================
   Universal Social Share Box (Unique URL & Viral Sharing)
   ========================================================================== */
.social-share-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    padding: 26px 22px;
    margin: 28px 0;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05);
    text-align: center;
}

.social-share-header {
    margin-bottom: 1rem;
}

.social-share-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.social-share-subtitle {
    font-size: 0.92rem;
    color: #64748b;
    margin: 0;
}

/* Unique Link Input Row */
.unique-link-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 6px 6px 6px 14px;
    max-width: 580px;
    margin: 1rem auto 1.25rem auto;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.unique-link-row:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    background: #ffffff;
}

.unique-link-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.88rem;
    color: #334155;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    outline: none;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    padding: 4px 0;
}

.unique-link-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.unique-link-copy-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.unique-link-copy-btn.copied {
    background: #16a34a !important;
}

/* Social Buttons Row */
.social-buttons-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff !important;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
    filter: brightness(1.08);
}

.social-btn.telegram { background: #229ed9; }
.social-btn.whatsapp { background: #25d366; }
.social-btn.facebook { background: #1877f2; }
.social-btn.vk { background: #0077ff; }
.social-btn.twitter { background: #0f172a; }

@media (max-width: 600px) {
    .social-share-card {
        padding: 20px 14px;
    }
    .unique-link-row {
        flex-direction: column;
        align-items: stretch;
        padding: 8px;
    }
    .unique-link-input {
        text-align: center;
        padding: 6px;
    }
    .unique-link-copy-btn {
        justify-content: center;
    }
    .social-buttons-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .social-btn {
        justify-content: center;
        padding: 10px 12px;
        font-size: 0.82rem;
    }
}

/* ==========================================================================
   Core Web Vitals & Mobile Performance Optimization
   ========================================================================== */

/* 1. Fast Touch Response (Eliminate 300ms mobile touch delay) */
a, button, [role="button"], input, select, textarea {
    touch-action: manipulation;
}

/* 2. Below-the-fold content visibility rendering optimization */
.section-how-it-works,
.section-faq,
.section-seo-article,
.site-footer {
    content-visibility: auto;
    contain-intrinsic-size: 1px 600px;
}

/* 3. Mobile Tap-Target Accessibility (Min 44px for touch interactions) */
@media (max-width: 768px) {
    .btn, 
    .nav-link-with-icon,
    .eng-btn-primary,
    .eng-btn-secondary,
    .social-btn {
        min-height: 44px;
    }
}


