/* =========================================
   1. RESET & VARIABLES
   ========================================= */
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@700,900,500&display=swap');

:root {
    /* Dashboard Color Palette */
    --bg-primary: #0a0a0c;
    --bg-secondary: rgba(20, 20, 25, 0.8);
    --accent-glow: #94a3b8;
    --text-highlight: #00d2ff;
    /* Strong Cyan - Dashboard Blue */

    --btn-primary: #00d2ff;
    /* Dashboard Blue */
    --highlight: #00d2ff;
    /* Dashboard Blue */
    --text-main: #FFFFFF;
    --text-muted: #94a3b8;

    /* Button Shadows */
    --btn-shadow-dark: #0099b3;
    /* Darker Blue */

    /* Typography */
    --font-stack: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing & Layout */
    --radius-md: 12px;
    --radius-lg: 20px;
    --container-width: 1200px;
}

/* Global Light Mode Overrides */
.light-mode {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --accent-glow: rgba(52, 76, 235, 0.15);
    --text-highlight: #0f172a;
    --highlight: #2563eb;
    --btn-primary: #1e40af;
    --btn-shadow-dark: #1e3a8a;
    --text-main: #0f172a;
    --text-muted: #334155;
}

/* Light Mode Contrast Overrides */
.light-mode h1,
.light-mode h2,
.light-mode h3,
.light-mode .logo span {
    color: #1a202c !important;
}

.light-mode .hero p,
.light-mode .feature-card p,
.light-mode footer p,
.light-mode .auth-header p,
.light-mode .section-title p {
    color: #4a5568 !important;
}

.light-mode .feature-card h3 {
    color: #0f172a !important;
}

.light-mode .feature-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.light-mode .feature-card:hover {
    background: #f1f5f9;
    border-color: var(--highlight);
}

.light-mode .faq-item {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

.light-mode .faq-answer {
    border-top-color: rgba(0, 0, 0, 0.1);
}

.light-mode .click-particle {
    background-color: #1a202c;
}

.light-mode .btn-secondary {
    border-color: #1a202c;
    color: #1a202c;
}

.light-mode .btn-secondary:hover {
    background: rgba(26, 32, 44, 0.1);
    border-color: #1a202c;
    color: #1a202c;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-stack);
    line-height: 1.6;
    overflow-x: hidden;

    /* Animated Grid Background */
    background-size: 40px 40px;
    background-image:
        linear-gradient(to right, rgba(92, 100, 114, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(92, 100, 114, 0.1) 1px, transparent 1px);
    animation: scrollGrid 20s linear infinite;
}

.light-mode body {
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

@keyframes scrollGrid {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 40px 40px;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* =========================================
   2. UTILITIES
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.text-highlight {
    color: var(--highlight);
}

.mt-2 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

/* =========================================
   3. 3D BUTTONS (CRITICAL)
   ========================================= */
.btn {
    display: inline-block;
    padding: 16px 32px;
    font-family: var(--font-stack);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    position: relative;
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(to bottom, #00e5ff, var(--btn-primary));
    color: #000;
    /* Dark text for contrast */

    /* 3D Depth Styling */
    box-shadow:
        0 6px 0 var(--btn-shadow-dark),
        0 12px 12px rgba(0, 0, 0, 0.4);
    transform: translateY(0);
}

.light-mode .btn-primary {
    color: #ffffff;
    box-shadow:
        0 6px 0 var(--btn-shadow-dark),
        0 12px 12px rgba(0, 0, 0, 0.15);
}

/* Hover: Lift */
.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow:
        0 10px 0 var(--btn-shadow-dark),
        0 18px 20px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
}

/* Click: Press */
.btn-primary:active {
    transform: translateY(4px);
    box-shadow:
        0 2px 0 var(--btn-shadow-dark),
        0 4px 4px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-glow);
    color: var(--accent-glow);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: rgba(142, 202, 230, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    color: var(--highlight);
    border-color: var(--highlight);
}

/* =========================================
   4. NAVBAR
   ========================================= */
.navbar {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: #0A100D;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(142, 202, 230, 0.1);
}

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

.logo,
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img,
.brand img,
.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    font-family: 'Satoshi', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a:hover {
    color: var(--highlight);
}

.high-contrast .navbar {
    background: #000000 !important;
    border-bottom: 1px solid #FFFFFF !important;
}

.high-contrast .nav-links a {
    color: #FFFFFF !important;
    border: 1px solid transparent;
}

.high-contrast .nav-links a:hover {
    background: #FFFFFF !important;
    color: #000000 !important;
    border: 1px solid #FFFFFF !important;
}

.high-contrast .nav-links a i,
.high-contrast .nav-links a span {
    color: #FFFFFF !important;
}

.high-contrast .nav-links a:hover i,
.high-contrast .nav-links a:hover span {
    color: #000000 !important;
}


/* =========================================
    5. HERO SECTION
    ========================================= */
.hero {
    min-height: 100vh;
    padding-top: 100px;
    display: flex;
    align-items: center;
    position: relative;
    /* Background removed to show grid */
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Dashboard Preview in Hero */
.hero-visual {
    position: relative;
    padding: 20px;
}

.dashboard-mockup {
    background: #8d99ae5e;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(142, 202, 230, 0.2);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.dashboard-mockup:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.widget {
    background: linear-gradient(135deg, rgba(0, 18, 25, 0.95) 0%, rgba(2, 48, 71, 0.9) 100%);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(142, 202, 230, 0.15);
    border-left: 4px solid var(--highlight);
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.widget:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--highlight);
}

.widget h4 {
    font-size: 0.8rem;
    color: var(--accent-glow);
    margin-bottom: 5px;
}

.widget .stat {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
}

.widget .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

/* =========================================
   6. FEATURES GRID
   ========================================= */
.features {
    padding: 100px 0;
}

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

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-title p {
    color: var(--accent-glow);
}

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

.feature-card {
    background: linear-gradient(180deg, rgba(54, 68, 69, 0.3) 0%, rgba(54, 68, 69, 0.6) 100%);
    backdrop-filter: blur(5px);
    padding: 32px;
    border-radius: var(--radius-md);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(141, 153, 174, 0.08);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border-color: rgba(13, 211, 211, 0.3);
    background: linear-gradient(180deg, rgba(54, 68, 69, 0.5) 0%, rgba(54, 68, 69, 0.9) 100%);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--highlight), transparent);
    opacity: 0;
    transition: 0.3s;
}

.feature-card:hover::before {
    opacity: 1;
}

.icon-box {
    width: 56px;
    height: 56px;
    background: rgba(13, 211, 211, 0.1);
    border: 1px solid rgba(13, 211, 211, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--highlight);
    margin-bottom: 24px;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.feature-card:hover .icon-box {
    background: var(--highlight);
    color: #0A100D;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 20px rgba(13, 211, 211, 0.4);
}

.feature-card h3 {
    margin-bottom: 10px;
    color: var(--text-main);
}

.feature-card p {
    color: #CFE8F3;
    font-size: 0.95rem;
}

/* =========================================
   7. FAQ SECTION
   ========================================= */
.faq-section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(54, 68, 69, 0.3);
    border: 1px solid rgba(141, 153, 174, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--highlight);
    background: rgba(54, 68, 69, 0.5);
}

.faq-item[open] {
    background: rgba(54, 68, 69, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(13, 211, 211, 0.3);
}

summary {
    padding: 20px;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
}

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

summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--highlight);
    transition: transform 0.3s ease;
}

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

.faq-answer {
    padding: 0 20px 20px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: -5px;
    padding-top: 15px;
}

/* =========================================
   7. CTA SECTION
   ========================================= */
.cta-section {
    padding: 100px 0;
    text-align: center;
    /* Background removed to show grid */
}

.cta-box {
    background: var(--bg-secondary);
    padding: 60px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--accent-glow);
    box-shadow: 0 0 50px rgba(13, 211, 211, 0.05);
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--highlight);
}

/* =========================================
   8. ANIMATIONS
   ========================================= */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* =========================================
   9. MEDIA QUERIES
   ========================================= */
@media (max-width: 900px) {
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 140px;
    }

    .hero-content {
        margin-bottom: 60px;
    }

    .dashboard-mockup {
        transform: none;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* =========================================
   10. CLICK BURST ANIMATION
   ========================================= */
.click-particle {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    width: 3px;
    height: 10px;
    background-color: #FFFFFF;
    border-radius: 99px;
    z-index: 9999;
    /* Translate to center on cursor, then move along angle */
    opacity: 0;
    animation: particleLine 0.8s ease-out forwards;
}

@keyframes particleLine {
    0% {
        opacity: 1;
        /* Start at cursor (translated -50%) rotated by angle, un-translated in Y */
        transform: translate3d(var(--x), var(--y), 0) rotate(var(--angle)) translateY(8px) scaleY(0.5);
    }

    100% {
        opacity: 0;
        /* Move outward (translateY significantly) */
        transform: translate3d(var(--x), var(--y), 0) rotate(var(--angle)) translateY(40px) scaleY(1.2);
    }
}

/* =========================================
   11. AUTHENTICATION PAGE
   ========================================= */
.auth-page {
    /* Center content vertically and horizontally */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.auth-container {
    background: var(--bg-secondary);
    border: 1px solid var(--accent-glow);
    padding: 40px;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

/* Tabs */
.auth-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    padding: 5px;
    margin-bottom: 30px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px;
    font-family: var(--font-stack);
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--highlight);
    color: var(--bg-primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Forms */
.auth-form {
    display: none;
    animation: fadeIn 0.3s ease;
}

.auth-form.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Inputs */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.input-group input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(141, 153, 174, 0.2);
    padding: 14px 14px 14px 45px;
    /* Space for icon */
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: var(--font-stack);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: var(--highlight);
    box-shadow: 0 0 0 3px rgba(13, 211, 211, 0.1);
}

.input-group input:focus+i,
.input-group:focus-within i {
    color: var(--highlight);
}

/* Auth Message */
.success-msg {
    color: #4cd964;
}

.error-msg {
    color: #ff5f56;
}

/* =========================================
   12. ONBOARDING PAGE
   ========================================= */
.onboarding-container {
    max-width: 550px;
    /* Slightly wider for options */
}

.step-header {
    text-align: center;
    margin-bottom: 30px;
}

.step-indicator {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.step-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.step-dot.active {
    background: var(--highlight);
    box-shadow: 0 0 10px rgba(13, 211, 211, 0.4);
    transform: scale(1.2);
}

.step-screen {
    display: none;
    text-align: center;
    animation: fadeIn 0.4s ease;
}

.step-screen.active {
    display: block;
}

/* Option Cards */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.options-grid.dense {
    grid-template-columns: repeat(3, 1fr);
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.option-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(141, 153, 174, 0.1);
    padding: 15px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-card.wide {
    justify-content: flex-start;
    padding: 20px;
    font-size: 1rem;
}

.option-card:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
    border-color: rgba(13, 211, 211, 0.2);
}

.option-card.selected {
    background: rgba(13, 211, 211, 0.1);
    /* Subtle cyan bg */
    border-color: var(--highlight);
    color: var(--highlight);
    box-shadow: 0 0 15px rgba(13, 211, 211, 0.15);
}

.onboarding-nav {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(1);
    transform: none !important;
    box-shadow: none !important;
}

/* =========================================
   13. ACCESSIBILITY FEATURES
   ========================================= */

/* Reduce Motion - Disable or minimize animations */
.reduce-motion,
.reduce-motion * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}

.reduce-motion .fade-up {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.reduce-motion .dashboard-mockup,
.reduce-motion .widget,
.reduce-motion .feature-card {
    transform: none !important;
}

.reduce-motion .click-particle {
    display: none !important;
}

/* High Contrast Mode - Increase contrast for better readability */
.high-contrast {
    --text-main: #FFFFFF;
    --text-muted: #E0E0E0;
    --bg-primary: #000000;
    --bg-secondary: #1a1a1a;
    --highlight: #00FFFF;
    --btn-primary: #00FFFF;
    --accent-glow: #FFFFFF;
    --border-color: #FFFFFF;
}

/* High Contrast Mode for Light Mode */
.light-mode.high-contrast {
    --text-main: #000000;
    --text-muted: #1a1a1a;
    --bg-primary: #FFFFFF;
    --bg-secondary: #FFFFE0;
    --highlight: #000080;
    --btn-primary: #000080;
    --accent-glow: #000000;
    --border-color: #000000;
    --btn-shadow-dark: #000040;
}

.light-mode.high-contrast body {
    background-image: none;
    background-color: #FFFFFF !important;
}

.light-mode.high-contrast .navbar {
    background: #FFFFFF !important;
    border-bottom: 2px solid #000000 !important;
}

.light-mode.high-contrast .nav-links a {
    color: #000000 !important;
    border: 2px solid transparent;
}

.light-mode.high-contrast .nav-links a:hover {
    background: #000000 !important;
    color: #FFFFFF !important;
    border: 2px solid #000000 !important;
}

.light-mode.high-contrast .nav-links a i,
.light-mode.high-contrast .nav-links a span {
    color: #000000 !important;
}

.light-mode.high-contrast .nav-links a:hover i,
.light-mode.high-contrast .nav-links a:hover span {
    color: #FFFFFF !important;
}

.light-mode.high-contrast .feature-card,
.light-mode.high-contrast .widget,
.light-mode.high-contrast .faq-item,
.light-mode.high-contrast .settings-card {
    border: 3px solid #000000 !important;
    background: #FFFFFF !important;
    box-shadow: 4px 4px 0 #000000 !important;
}

.light-mode.high-contrast .feature-card:hover,
.light-mode.high-contrast .widget:hover {
    background: #FFFFE0 !important;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #000000 !important;
}

.light-mode.high-contrast .btn-primary {
    background: #000080 !important;
    color: #FFFFFF !important;
    border: 3px solid #000000 !important;
    box-shadow: 0 6px 0 #000040, 0 8px 8px rgba(0, 0, 0, 0.3) !important;
}

.light-mode.high-contrast .btn-primary:hover {
    background: #0000A0 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 0 #000040, 0 12px 12px rgba(0, 0, 0, 0.3) !important;
}

.light-mode.high-contrast .btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #000040, 0 4px 4px rgba(0, 0, 0, 0.3) !important;
}

.light-mode.high-contrast .btn-secondary {
    background: #FFFFFF !important;
    color: #000000 !important;
    border: 3px solid #000000 !important;
    font-weight: 700;
}

.light-mode.high-contrast .btn-secondary:hover {
    background: #000000 !important;
    color: #FFFFFF !important;
    border-color: #000000 !important;
}

.light-mode.high-contrast h1,
.light-mode.high-contrast h2,
.light-mode.high-contrast h3,
.light-mode.high-contrast h4,
.light-mode.high-contrast .logo span {
    color: #000000 !important;
    font-weight: 800;
}

.light-mode.high-contrast p,
.light-mode.high-contrast span,
.light-mode.high-contrast label {
    color: #000000 !important;
}

.light-mode.high-contrast .text-muted,
.light-mode.high-contrast .hero p,
.light-mode.high-contrast .feature-card p,
.light-mode.high-contrast footer p,
.light-mode.high-contrast .auth-header p,
.light-mode.high-contrast .section-title p {
    color: #1a1a1a !important;
    font-weight: 500;
}

.light-mode.high-contrast .icon-box {
    background: #FFFFFF !important;
    border: 3px solid #000000 !important;
    color: #000000 !important;
}

.light-mode.high-contrast .feature-card:hover .icon-box {
    background: #000000 !important;
    color: #FFFFFF !important;
}

.light-mode.high-contrast .input-group input {
    background: #FFFFFF !important;
    border: 2px solid #000000 !important;
    color: #000000 !important;
}

.light-mode.high-contrast .input-group input:focus {
    border-color: #000080 !important;
    box-shadow: 0 0 0 4px #00008040 !important;
}

.light-mode.high-contrast .input-group i {
    color: #000000 !important;
}

.light-mode.high-contrast .cta-box {
    background: #FFFFFF !important;
    border: 3px solid #000000 !important;
}

.light-mode.high-contrast .auth-container {
    background: #FFFFFF !important;
    border: 3px solid #000000 !important;
    box-shadow: 8px 8px 0 #000000 !important;
}

.light-mode.high-contrast .tab-btn {
    color: #000000 !important;
}

.light-mode.high-contrast .tab-btn.active {
    background: #000080 !important;
    color: #FFFFFF !important;
    border: 2px solid #000000 !important;
}

.high-contrast .feature-card,
.high-contrast .widget,
.high-contrast .faq-item,
.high-contrast .settings-card {
    border: 2px solid #FFFFFF !important;
    background: #000000 !important;
}

.high-contrast .btn-primary {
    background: #00FFFF !important;
    color: #000000 !important;
    border: 2px solid #FFFFFF !important;
}

.high-contrast .btn-secondary {
    background: transparent !important;
    color: #FFFFFF !important;
    border: 2px solid #FFFFFF !important;
}

.high-contrast h1,
.high-contrast h2,
.high-contrast h3,
.high-contrast h4,
.high-contrast p,
.high-contrast span,
.high-contrast label {
    color: #FFFFFF !important;
}

.high-contrast .text-muted,
.high-contrast .hero p,
.high-contrast .feature-card p {
    color: #E0E0E0 !important;
}

/* Respect user's system preferences */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (prefers-contrast: high) {
    :root {
        --text-main: #FFFFFF;
        --text-muted: #E0E0E0;
        --bg-primary: #000000;
        --bg-secondary: #1a1a1a;
    }
}