/* Landing Page Light Mode Theme Overrides */
/* Extracted and Adapted from app.css for public/index.html consistency */

/* =========================================
   LIGHT MODE OVERRIDES
   ========================================= */

/* 1. GLOBAL BACKGROUNDS (LEVEL 1) */
body.light-mode {
    background: #E2E6EC !important;
    /* Cool Light Gray */
    color: #111827 !important;
    /* Deep Cool Gray Text */
}

/* Sections - Transparent to show Level 1 Background */
body.light-mode #app-options,
body.light-mode #features,
body.light-mode #pricing,
body.light-mode #faq,
body.light-mode #contact,
body.light-mode #about,
body.light-mode #privacy-policy,
body.light-mode #installation-guide {
    background: transparent !important;
}

body.light-mode .app-container {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Hero Section Overlay — keep it dark so text stays legible */
body.light-mode .hero-video-overlay {
    background:
        linear-gradient(135deg, rgba(11, 16, 24, 0.90) 0%, rgba(17, 20, 24, 0.72) 50%, rgba(11, 16, 24, 0.90) 100%) !important;
    backdrop-filter: blur(2px) !important;
}

/* Navigation */
body.light-mode .nav-dark {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid #E5E7EB !important;
    /* Gray 200 */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .nav-dark.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .nav-dark a.nav-link {
    color: #4B5563 !important;
}

body.light-mode .nav-dark a.nav-link:hover {
    color: #2563EB !important;
    /* Blue 600 */
}

body.light-mode .nav-dark button.nav-link {
    color: #4B5563 !important;
}

body.light-mode .nav-dark button.nav-link:hover {
    color: #2563EB !important;
}

body.light-mode .nav-dropdown-panel {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid #E5E7EB !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .dropdown-item {
    color: #374151 !important;
}

body.light-mode .dropdown-item:hover {
    background: #F3F4F6 !important;
    color: #111827 !important;
}

body.light-mode .dropdown-item .text-gray-500 {
    color: #6B7280 !important;
}

/* Footer */
body.light-mode .footer-dark {
    background: linear-gradient(180deg, #EEF0F3 0%, #E2E6EC 100%) !important;
    border-top: 1px solid #E5E7EB !important;
}

body.light-mode .footer-dark h3 {
    color: #111827 !important;
}

body.light-mode .footer-dark p,
body.light-mode .footer-dark a {
    color: #4B5563 !important;
}

body.light-mode .footer-dark a:hover,
body.light-mode .social-link:hover {
    color: #2563EB !important;
}

body.light-mode .social-link {
    color: #4B5563 !important;
}


/* 2. CARDS & VISIBLE CONTAINERS (LEVEL 2) */
body.light-mode .glass-card,
body.light-mode .pricing-card,
body.light-mode .feature-card,
body.light-mode .bg-gray-800,
body.light-mode .bg-gray-900 {
    background: #FFFFFF !important;
    /* Pure White */
    border: 1px solid #E5E7EB !important;
    /* Gray 200 */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
    color: #1F2937 !important;
}

/* Hero Container Override - Keep Transparent */
body.light-mode .hero-gradient>div {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Important Requirements Box */
body.light-mode .important-reqs-box {
    background: #F0F9FF !important;
    /* Light Blue Tint */
    border: 1px solid #2563EB !important;
}

body.light-mode .important-reqs-box strong,
body.light-mode .important-reqs-box h6 {
    color: #1E40AF !important;
    /* Dark Blue */
}

body.light-mode .important-reqs-box ul li {
    color: #1F2937 !important;
}

body.light-mode .important-reqs-box i {
    color: #2563EB !important;
}


/* 3. MODALS (LEVEL 2 - HIDDEN PANELS) */


/* Targeting the specific content divs inside modals */
body.light-mode #email-auth-modal>div,
body.light-mode #signup-thankyou-modal>div,
body.light-mode #email-verification-modal>div,
body.light-mode #terms-consent-modal>div,
body.light-mode #success-modal>div,
body.light-mode #error-modal>div,
body.light-mode #refund-policy-modal>div,
body.light-mode #payment-processing-modal>div {
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

/* Full Page Overlays */
body.light-mode #payment-success-page {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%) !important;
}

/* Payment Success Page - Glass Card */
body.light-mode #payment-success-page .glass-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid #E5E7EB !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
}

/* Payment Success Page - Preserve Gradient Counter Animation */
body.light-mode #payment-success-page #success-report-counter {
    background: linear-gradient(to right, #2563eb, #059669) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}

/* Payment Success Page - Text Elements */
body.light-mode #payment-success-page h1,
body.light-mode #payment-success-page h2 {
    color: #1E40AF !important;
    -webkit-text-fill-color: #1E40AF !important;
}

body.light-mode #payment-success-page .text-white {
    color: #1E3A8A !important;
}

body.light-mode #payment-success-page .text-blue-200 {
    color: #1E40AF !important;
}

body.light-mode #payment-success-page .text-gray-400,
body.light-mode #payment-success-page .text-gray-500 {
    color: #4B5563 !important;
}

/* Payment Success Page - Border */
body.light-mode #payment-success-page .border-gray-700 {
    border-color: #E5E7EB !important;
}

/* Payment Success Page - Button */
body.light-mode #payment-success-page button {
    color: #FFFFFF !important;
}

/* Modal Typography */
body.light-mode h2,
body.light-mode h3,
body.light-mode .modal h2,
body.light-mode .modal h3,
body.light-mode [id*="-modal"] h2,
body.light-mode [id*="-modal"] h3 {
    color: #111827 !important;
}

body.light-mode p,
body.light-mode .modal p,
body.light-mode [id*="-modal"] p {
    color: #4B5563 !important;
}


/* 4. TEXT & TYPOGRAPHY (LEVEL 3) — exclude hero h1 to prevent layout shift */
body.light-mode h1:not(.hero-gradient h1),
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6,
body.light-mode strong {
    color: #111827 !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    text-shadow: none !important;
}

body.light-mode p,
body.light-mode li,
body.light-mode span,
body.light-mode .text-gray-200,
body.light-mode .text-gray-300,
body.light-mode .text-gray-400 {
    color: #4B5563 !important;
}

body.light-mode .text-white {
    color: #111827 !important;
}

/* Ensure section headings are dark and visible in light mode */
/* Fix visibility of section headings on gray backgrounds */
body.light-mode section h2.text-white,
body.light-mode #app-options h2,
body.light-mode #features h2,
body.light-mode #privacy-policy h2 {
    color: #111827 !important;
}

/* Pricing heading teal */
body.light-mode #pricing h2 {
    color: #319795 !important;
}

/* Preserve white text on buttons with gradient backgrounds */
/* Ensure ALL text inside teal/gradient buttons is white */
body.light-mode .light-mode-teal,
body.light-mode .light-mode-teal *,
body.light-mode button.light-mode-teal,
body.light-mode a.light-mode-teal,
body.light-mode .download-btn,
body.light-mode .download-btn *,
body.light-mode button.text-white,
body.light-mode a.text-white,
body.light-mode [class*="bg-gradient"] .text-white,
body.light-mode [class*="bg-gradient"].text-white,
body.light-mode [class*="bg-blue-"].text-white,
body.light-mode [class*="bg-green-"].text-white {
    color: #FFFFFF !important;
}

/* Pulse Text - cyan→emerald gradient */
body.light-mode .pulse-text {
    background: linear-gradient(90deg, #22d3ee, #34d399) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}


/* 5. INPUTS & CONTROLS (LEVEL 3) */
body.light-mode input,
body.light-mode textarea {
    background: #FFFFFF !important;
    border: 1px solid #D1D5DB !important;
    /* Gray 300 */
    color: #111827 !important;
}

body.light-mode input:focus,
body.light-mode textarea:focus {
    border-color: #2563EB !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2) !important;
}

/* Theme Switch */
body.light-mode .slider {
    background-color: #E2E8F0;
    border: 1px solid #CBD5E0;
}

body.light-mode .slider i.fa-moon {
    color: #94A3B8;
}

/* Dropdowns (Profile/Mobile Menu) */
body.light-mode .user-profile .bg-gray-800,
body.light-mode #mobile-menu,
body.light-mode .absolute.right-0.bg-gray-800 {
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
}

body.light-mode .user-profile a:hover,
body.light-mode #mobile-menu .nav-link:hover {
    background-color: #DFE3E8 !important;
    color: #2563EB !important;
}


/* 6. BUTTONS & BRANDING (BLUE > TEAL) */
/* Override generic blue keys */
body.light-mode .bg-blue-600 {
    background-color: #2563EB !important;
}

body.light-mode .bg-blue-600:hover {
    background-color: #1D4ED8 !important;
}

/* Override Teal Classes to Blue */
body.light-mode .bg-teal-600 {
    background-color: #2563EB !important;
}

body.light-mode .bg-teal-600:hover {
    background-color: #1D4ED8 !important;
}

/* Special 'light-mode-teal' class repurposing */
body.light-mode .light-mode-teal,
body.light-mode .download-btn,
body.light-mode .desktop-toggle-btn {
    background: #2563EB !important;
    background-image: none !important;
    color: #ffffff !important;
    border: none !important;
}

body.light-mode .light-mode-teal:hover,
body.light-mode .download-btn:hover,
body.light-mode .desktop-toggle-btn:hover {
    background: #1D4ED8 !important;
}

/* Secondary Buttons */
body.light-mode .nav-dark .auth-buttons button.btn-secondary {
    background: #FFFFFF !important;
    border: 1px solid #D1D5DB !important;
    color: #374151 !important;
}

body.light-mode .nav-dark .auth-buttons button.btn-secondary:hover {
    background: #EEF0F3 !important;
    border-color: #9CA3AF !important;
    color: #111827 !important;
}

/* Navigation - Light Mode */
body.light-mode .nav-dark {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

body.light-mode .nav-dark.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
}

body.light-mode .nav-dark a.nav-link {
    color: #374151 !important;
}

body.light-mode .nav-dark a.nav-link:hover {
    color: #319795 !important;
    /* Teal accent */
}

/* Auth Buttons in Light Mode */
body.light-mode .nav-dark .auth-buttons button.btn-secondary {
    background: transparent !important;
    border: 1px solid #CBD5E0 !important;
    color: #4A5568 !important;
}

body.light-mode .nav-dark .auth-buttons button.btn-secondary:hover {
    background: #EDF2F7 !important;
    color: #2D3748 !important;
}

/* Hero Section Overrides — match dark overlay for video legibility */
body.light-mode .hero-video-overlay {
    background:
        linear-gradient(135deg, rgba(11, 16, 24, 0.90) 0%, rgba(17, 20, 24, 0.72) 50%, rgba(11, 16, 24, 0.90) 100%) !important;
    backdrop-filter: blur(2px) !important;
}

/* Fix Hero Container Transparency - Override generic section>div rule */
body.light-mode .hero-gradient>div {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Float particles in light mode */
body.light-mode .hero-gradient::before {
    background-image:
        radial-gradient(circle at 25% 25%, rgba(49, 151, 149, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(72, 187, 120, 0.15) 0%, transparent 50%) !important;
}

body.light-mode .hero-gradient h1,
body.light-mode .hero-gradient h1 span:not(.pulse-text),
body.light-mode .hero-gradient .text-gray-200 {
    color: #FFFFFF !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

body.light-mode .hero-gradient p,
body.light-mode .hero-gradient p strong,
body.light-mode .hero-gradient .text-gray-400 {
    color: #F9FAFB !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

/* Make "AI-Powered" pulse text — keep cyan→emerald gradient + border in light mode */
body.light-mode .pulse-text {
    background: linear-gradient(90deg, #22d3ee, #34d399) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 8px !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1) !important;
    padding: 0.3em 0.7em !important;
}

/* Important Requirements Box - Light Mode */
body.light-mode .important-reqs-box {
    background: rgba(230, 255, 250, 0.5) !important;
    border: 1px solid #38B2AC !important;
}

body.light-mode .important-reqs-box h6 {
    color: #234E52 !important;
}

body.light-mode .important-reqs-box i.fa-exclamation-triangle {
    color: #D69E2E !important;
    /* Darker yellow/orange for light mode */
}

body.light-mode .important-reqs-box ul li {
    color: #2D3748 !important;
}

body.light-mode .important-reqs-box i.fa-user-check,
body.light-mode .important-reqs-box i.fa-globe,
body.light-mode .important-reqs-box i.fa-sync {
    color: #319795 !important;
}

body.light-mode .important-reqs-box strong {
    color: #285E61 !important;
}

/* Headings - Light Mode (exclude hero section to prevent size shift) */
body.light-mode h1:not(.hero-gradient h1),
body.light-mode h2 {
    background: none !important;
    -webkit-text-fill-color: initial !important;
    color: #111827 !important;
    line-height: 1.3 !important;
    padding-bottom: 0.1em !important;
    /* Prevent descender clipping */
}
body.light-mode .hero-gradient h1 {
    line-height: 1 !important;
    padding-bottom: 0 !important;
}

body.light-mode h3,
body.light-mode h4,
body.light-mode strong {
    color: #1f2937 !important;
    line-height: 1.4 !important;
    /* improved readability */
}

body.light-mode .pulse-text {
    background: linear-gradient(90deg, #22d3ee, #34d399) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 8px !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1) !important;
    padding: 0.3em 0.7em !important;
    line-height: 1 !important;
}

body.light-mode p.text-gray-200,
body.light-mode p.text-gray-300,
body.light-mode p.text-gray-400 {
    color: #4b5563 !important;
    line-height: 1.7 !important;
    /* Improved body text readability */
}
/* Keep hero paragraph line-height consistent with dark mode */
body.light-mode .hero-gradient p {
    line-height: 1.4 !important;
}

/* Cards & Containers - Light Mode */
body.light-mode .bg-gray-800,
body.light-mode .bg-gray-900,
body.light-mode [class*="bg-gray-"],
body.light-mode .glass-card,
body.light-mode .pricing-card,
body.light-mode .feature-card {
    background: #FFFFFF !important;
    /* Pure White */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
    border: 1px solid #E5E7EB !important;
    color: #2D3748 !important;
}

/* Fix specific gradient backgrounds on sections */
body.light-mode #app-options,
body.light-mode #features,
body.light-mode #pricing,
body.light-mode #faq,
body.light-mode #contact {
    background: transparent !important;
}

/* Remove border from specific layout containers if needed */
body.light-mode .app-container {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Text Colors in Containers */
body.light-mode .text-gray-300,
body.light-mode .text-gray-400 {
    color: #4b5563 !important;
    /* darkened for readability on white */
}

body.light-mode .text-white {
    color: #111827 !important;
}

body.light-mode .text-gray-200 {
    color: #374151 !important;
}

/* Footer - Light Mode */
body.light-mode .footer-dark {
    background: linear-gradient(135deg, #EEF0F3 0%, #E2E6EC 100%) !important;
    border-top: 1px solid #E5E7EB !important;
}

body.light-mode .footer-dark h3 {
    color: #2D3748 !important;
}

body.light-mode .footer-dark p,
body.light-mode .footer-dark a {
    color: #4A5568 !important;
}

body.light-mode .footer-dark a:hover {
    color: #319795 !important;
}

/* Social Links */
body.light-mode .social-link {
    color: #4A5568 !important;
}

body.light-mode .social-link:hover {
    color: #319795 !important;
}

/* Toggle Switch Styles — Premium Pill Design */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 88px;
    height: 34px;
    cursor: pointer;
    margin-right: 15px;
}

/* Hide default HTML checkbox */
.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

/* Track — Dark Mode default */
.theme-track {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1F2937;
    border-radius: 34px !important;
    border: 1px solid #374151 !important;
    display: flex;
    align-items: center;
    padding: 0 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

/* Text label inside the track */
.theme-label-text {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #9CA3AF;
    margin-left: 30px;
    transition: all 0.4s ease;
    user-select: none;
    white-space: nowrap;
}

/* Sliding knob with icon */
.theme-knob {
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: #FFFFFF;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
    z-index: 10;
}

/* Icons inside the knob */
.theme-icon-moon,
.theme-icon-sun {
    position: absolute;
    font-size: 13px;
    transition: all 0.3s ease;
}

/* Dark Mode: moon visible, sun hidden */
.theme-icon-moon {
    color: #374151;
    opacity: 1;
    transform: rotate(0deg);
}

.theme-icon-sun {
    color: #F59E0B;
    opacity: 0;
    transform: rotate(-90deg);
}

/* Checked = Light Mode */
input:checked+.theme-track {
    background: #E5E7EB;
    border-color: #D1D5DB !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

input:checked+.theme-track .theme-label-text {
    color: #4B5563;
    margin-left: 4px;
    margin-right: auto;
}

input:checked+.theme-track .theme-knob {
    left: calc(100% - 31px);
    background: #FFFFFF;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

input:checked+.theme-track .theme-icon-moon {
    opacity: 0;
    transform: rotate(90deg);
}

input:checked+.theme-track .theme-icon-sun {
    opacity: 1;
    transform: rotate(0deg);
}

/* Hover effect */
.theme-switch:hover .theme-track {
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 0 5px rgba(59, 130, 246, 0.3) !important;
}

/* Light Mode overrides for landing page */
body.light-mode .theme-track {
    background: #E5E7EB;
    border-color: #D1D5DB !important;
}

body.light-mode .theme-label-text {
    color: #4B5563;
}

/* User Profile & Mobile Menu Dropdowns in Light Mode */
body.light-mode .user-profile .bg-gray-800,
body.light-mode #mobile-menu,
body.light-mode .absolute.right-0.bg-gray-800

/* Dropdown */
    {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

body.light-mode .user-profile .text-gray-300,
body.light-mode .user-profile .text-white {
    color: #2D3748 !important;
}

body.light-mode .user-profile .border-gray-700 {
    border-color: #E2E8F0 !important;
}

body.light-mode .user-profile a:hover {
    background-color: #F7FAFC !important;
}

/* Mobile Menu specifically */
body.light-mode #mobile-menu .nav-link {
    color: #4A5568 !important;
}

body.light-mode #mobile-menu .nav-link:hover {
    color: #319795 !important;
    background-color: #F7FAFC !important;
}

/* Input Fields in Contact Form */
body.light-mode input,
body.light-mode textarea {
    background: #FFFFFF !important;
    border: 1px solid #CBD5E0 !important;
    color: #2D3748 !important;
}

body.light-mode input:focus,
body.light-mode textarea:focus {
    border-color: #319795 !important;
    box-shadow: 0 0 0 3px rgba(49, 151, 149, 0.2) !important;
}

/* Generic Blue Keys - Muted Teal override */
body.light-mode .bg-blue-600 {
    background-color: #319795 !important;
}

body.light-mode .bg-blue-600:hover {
    background-color: #2C7A7B !important;
}

/* Force specific button colors for Teal */
body.light-mode .bg-teal-600 {
    background-color: #319795 !important;
    color: #ffffff !important;
}

body.light-mode .bg-teal-600:hover {
    background-color: #2C7A7B !important;
}

/* New Utility: Force solid teal in light mode for buttons that use gradients in dark mode */
body.light-mode .light-mode-teal {
    background: #319795 !important;
    background-image: none !important;
    color: #ffffff !important;
    border: none !important;
    line-height: 1.5 !important;
    /* Fix text cutoff */
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.light-mode .light-mode-teal:hover {
    background: #2C7A7B !important;
}

/* Sign In with Google Button - Light Mode Override */
/* Default (dark mode) is dark bg + white text set in HTML */
body.light-mode .nav-dark .btn-google-signin,
body.light-mode .nav-dark .btn-google-signin *,
body.light-mode #mobile-menu .btn-google-signin,
body.light-mode #mobile-menu .btn-google-signin * {
    background: #FFFFFF !important;
    border-color: #D1D5DB !important;
    color: #1F2937 !important;
    -webkit-text-fill-color: #1F2937 !important;
}

body.light-mode .nav-dark .btn-google-signin:hover,
body.light-mode #mobile-menu .btn-google-signin:hover {
    background: #DFE3E8 !important;
}

/* Sign In with Email Button - Light Mode Override */
/* Default (dark mode) is dark bg + white text set in HTML */
body.light-mode .nav-dark .btn-email-signin,
body.light-mode #mobile-menu .btn-email-signin {
    background: #FFFFFF !important;
    border-color: #D1D5DB !important;
    color: #1F2937 !important;
    -webkit-text-fill-color: #1F2937 !important;
}

body.light-mode .nav-dark .btn-email-signin:hover,
body.light-mode #mobile-menu .btn-email-signin:hover {
    background: #DFE3E8 !important;
}

/* Preserve email icon color in light mode */
body.light-mode .nav-dark .btn-email-signin i.fa-envelope,
body.light-mode #mobile-menu .btn-email-signin i.fa-envelope {
    color: #3B82F6 !important;
    -webkit-text-fill-color: #3B82F6 !important;
}

/* Center Login Button - Light Mode Override */
/* Default (dark mode) is dark bg + white text set in HTML */
body.light-mode .nav-dark .btn-center-login,
body.light-mode #mobile-menu .btn-center-login {
    background: #FFFFFF !important;
    border-color: #D1D5DB !important;
    color: #1F2937 !important;
    -webkit-text-fill-color: #1F2937 !important;
}

body.light-mode .nav-dark .btn-center-login:hover,
body.light-mode #mobile-menu .btn-center-login:hover {
    background: #DFE3E8 !important;
}

/* Preserve building icon color in light mode */
body.light-mode .nav-dark .btn-center-login i.fa-building,
body.light-mode #mobile-menu .btn-center-login i.fa-building {
    color: #14B8A6 !important;
    -webkit-text-fill-color: #14B8A6 !important;
}

/* Force solid blue in light mode for primary buttons */
body.light-mode .light-mode-primary-blue {
    background: #2563EB !important;
    background-image: none !important;
    color: #ffffff !important;
    border: none !important;
}

body.light-mode .light-mode-primary-blue:hover {
    background: #1D4ED8 !important;
}

body.light-mode .text-blue-400 {
    color: #319795 !important;
}

/* Gray Buttons (Cancel/Later) - Light Mode Fix */
body.light-mode .bg-gray-700,
body.light-mode .bg-gray-600,
body.light-mode button.bg-gray-700,
body.light-mode button.bg-gray-600 {
    background-color: #E2E8F0 !important;
    /* Light Gray */
    color: #1F2937 !important;
    /* Dark Gray Text */
    border: 1px solid #CBD5E0 !important;
}

body.light-mode .bg-gray-700:hover,
body.light-mode .bg-gray-600:hover,
body.light-mode button.bg-gray-700:hover,
body.light-mode button.bg-gray-600:hover {
    background-color: #CBD5E0 !important;
    /* Slightly darker on hover */
    color: #111827 !important;
}

/* Warning Boxes (Yellow/Orange) - Light Mode Fix */
body.light-mode .bg-yellow-800 {
    background-color: #FEF3C7 !important;
    /* Light Yellow/Amber */
    color: #92400E !important;
    /* Dark Amber Text */
    border: 1px solid #FCD34D !important;
}

body.light-mode .bg-yellow-800 .text-yellow-200,
body.light-mode .bg-yellow-800 p,
body.light-mode .bg-yellow-800 i {
    color: #92400E !important;
}

/* Info Boxes (Blue) - Light Mode Fix */
body.light-mode .bg-blue-900 {
    background-color: #EFF6FF !important;
    /* Light Blue */
    color: #1E40AF !important;
    /* Dark Blue Text */
    border: 1px solid #BFDBFE !important;
}

body.light-mode .bg-blue-900 .text-blue-100,
body.light-mode .bg-blue-900 .text-blue-200,
body.light-mode .bg-blue-900 p,
body.light-mode .bg-blue-900 i {
    color: #1E40AF !important;
}

/* Error/Destructive Alerts (Red) - Light Mode Fix */
body.light-mode .bg-red-800 {
    background-color: #FEF2F2 !important;
    /* Light Red */
    color: #991B1B !important;
    /* Dark Red Text */
    border: 1px solid #FECACA !important;
}

body.light-mode .bg-red-800 .text-red-200,
body.light-mode .bg-red-800 p,
body.light-mode .bg-red-800 i {
    color: #991B1B !important;
}

/* Success Badges/Alerts (Green) - Light Mode Fix */
body.light-mode .bg-green-800 {
    background-color: #F0FDF4 !important;
    /* Light Green */
    color: #166534 !important;
    /* Dark Green Text */
    border: 1px solid #BBF7D0 !important;
}

body.light-mode .bg-green-800 .text-green-200,
body.light-mode .bg-green-800 p,
body.light-mode .bg-green-800 span {
    color: #166534 !important;
}

/* Green Buttons - Ensure White Text */
body.light-mode .bg-green-600 {
    color: #FFFFFF !important;
}

body.light-mode .bg-green-600:hover {
    color: #FFFFFF !important;
}

/* =========================================
   PART 6: DARK MODE BUTTON FIXES & ENFORCEMENT
   ========================================= */

/* Default (Dark Mode) Gradients - Enforce these to fix "missing background" issue */
.download-btn {
    background: linear-gradient(90deg, #319795 0%, #00B5D8 100%);
    color: white;
    border: none;
}

.desktop-toggle-btn {
    background: linear-gradient(90deg, #1f2937, #111827);
    color: white;
    border: 1px solid #374151;
    /* gray-700 */
}

/* Light Mode Overrides for these specific classes */
body.light-mode .download-btn,
body.light-mode .desktop-toggle-btn {
    background: #319795 !important;
    background-image: none !important;
    border: none !important;
    color: white !important;
}

/* Ensure ALL text inside download buttons and desktop toggle stays white */
body.light-mode .download-btn *,
body.light-mode .download-btn span,
body.light-mode .download-btn i,
body.light-mode .download-btn .download-text,
body.light-mode .download-btn .text-blue-200,
body.light-mode .download-btn .text-gray-300,
body.light-mode .download-btn .text-indigo-200,
body.light-mode .desktop-toggle-btn *,
body.light-mode .desktop-toggle-btn h4,
body.light-mode .desktop-toggle-btn p,
body.light-mode .desktop-toggle-btn span,
body.light-mode .desktop-toggle-btn i,
body.light-mode .desktop-toggle-btn .text-gray-400 {
    color: #FFFFFF !important;
}

body.light-mode .download-btn:hover,
body.light-mode .desktop-toggle-btn:hover {
    background: #2C7A7B !important;
}

/* =========================================
   PART 9: PRIVACY POLICY & CLEANUP
   ========================================= */

/* Fix Privacy Policy Background in Light Mode */
body.light-mode #privacy-policy {
    background: linear-gradient(135deg, #EEF0F3 0%, #E2E6EC 100%) !important;
}

/* =========================================
   PART 10: MODAL LIGHT MODE STYLING
   ========================================= */

/* Light Mode Modal Backgrounds */
body.light-mode #email-auth-modal>div,
body.light-mode #signup-thankyou-modal>div,
body.light-mode #email-verification-modal>div,
body.light-mode #terms-consent-modal>div {
    background: linear-gradient(135deg, #FFFFFF 0%, #EEF0F3 100%) !important;
}

/* Fix modal text colors in Light Mode */
body.light-mode #email-auth-modal h2,
body.light-mode #signup-thankyou-modal h2,
body.light-mode #email-verification-modal h2,
body.light-mode #terms-consent-modal h3 {
    color: #1a202c !important;
}

body.light-mode #email-auth-modal p,
body.light-mode #signup-thankyou-modal p,
body.light-mode #email-verification-modal p,
body.light-mode #terms-consent-modal p {
    color: #4a5568 !important;
}

/* =========================================
   PART 11: SPECIFIC LIGHT MODE OVERRIDES
   ========================================= */

/* AI Revolution Heading */
body.light-mode .ai-revolution-heading,
body.light-mode h3.text-white.ai-revolution-heading,
body.light-mode #features h3.ai-revolution-heading {
    color: #319795 !important;
    -webkit-text-fill-color: #319795 !important;
}

/* Feature Section Headings - Teal in Light Mode */
body.light-mode #features h4.text-white {
    color: #319795 !important;
}

/* Beta Extension Panel - White text on teal/cyan gradient background */
body.light-mode .border-cyan-500 button,
body.light-mode .border-cyan-500 button span,
body.light-mode .border-cyan-500 button i,
body.light-mode #beta-extension-content,
body.light-mode #beta-extension-content p,
body.light-mode #beta-extension-content a,
body.light-mode #beta-extension-content span {
    color: #FFFFFF !important;
}

body.light-mode #beta-extension-content a.text-cyan-300 {
    color: #E0F2F1 !important;
}

body.light-mode #beta-extension-content a.text-cyan-300:hover {
    color: #FFFFFF !important;
}

/* Installation Guide Heading */
body.light-mode #installation-guide h2 {
    color: #319795 !important;
}

/* Installation Icons Background */
body.light-mode .install-icon-bg {
    background: #319795 !important;
}

/* Installation Step Badges (Windows) */
body.light-mode .install-step-badge {
    background-color: #319795 !important;
}

/* Installation Step Circles (Mac) */
body.light-mode .install-step-circle {
    border-color: #319795 !important;
    color: #319795 !important;
    background-color: transparent !important;
    border: 2px solid #319795 !important;
}

/* =========================================
   PART 12: LIGHT MODE BUTTON TEXT LEGIBILITY FIXES
   ========================================= */

/* Preserve white text on dark-background buttons inside modals */
/* These buttons have dark backgrounds (bg-gray-700, bg-gray-600, etc.) and need white text */
body.light-mode [id*="-modal"] button.bg-gray-700,
body.light-mode [id*="-modal"] button.bg-gray-600,
body.light-mode [id*="-modal"] .bg-gray-700,
body.light-mode [id*="-modal"] .bg-gray-600,
body.light-mode #auth-options-modal button.bg-gray-700,
body.light-mode #auth-options-modal .bg-gray-700 {
    color: #FFFFFF !important;
}

/* Fix "Sign in with Google" button text specifically in modals */
body.light-mode [id*="-modal"] button[onclick*="signInWithGoogle"],
body.light-mode #email-auth-modal button[onclick*="signInWithGoogle"],
body.light-mode #auth-options-modal button[onclick*="signInWithGoogle"] {
    color: #FFFFFF !important;
    background-color: #374151 !important;
    border-color: #4B5563 !important;
}

body.light-mode [id*="-modal"] button[onclick*="signInWithGoogle"]:hover,
body.light-mode #email-auth-modal button[onclick*="signInWithGoogle"]:hover,
body.light-mode #auth-options-modal button[onclick*="signInWithGoogle"]:hover {
    background-color: #4B5563 !important;
}

/* Fix "Sign in with Google" button text within FA icon spans */
body.light-mode [id*="-modal"] button[onclick*="signInWithGoogle"] *,
body.light-mode #email-auth-modal button[onclick*="signInWithGoogle"] *,
body.light-mode #auth-options-modal button[onclick*="signInWithGoogle"] * {
    color: #FFFFFF !important;
}

/* Fix the View Plans button in signup thank you modal */
body.light-mode #signup-thankyou-modal button.bg-gray-700,
body.light-mode #signup-thankyou-modal button[onclick*="viewPlans"] {
    color: #FFFFFF !important;
    background-color: #374151 !important;
}

body.light-mode #signup-thankyou-modal button.bg-gray-700:hover,
body.light-mode #signup-thankyou-modal button[onclick*="viewPlans"]:hover {
    background-color: #4B5563 !important;
}

/* Fix the scroll down indicator in terms consent modal */
body.light-mode #scroll-indicator {
    background: linear-gradient(135deg, rgba(180, 83, 9, 0.9) 0%, rgba(154, 52, 18, 0.9) 100%) !important;
    border-color: rgba(251, 191, 36, 0.8) !important;
}

body.light-mode #scroll-indicator p,
body.light-mode #scroll-indicator i {
    color: #FEF3C7 !important;
}

body.light-mode #scroll-indicator p.text-yellow-200 {
    color: #FDE68A !important;
}

/* Fix text in auth options modal info box */
body.light-mode #auth-options-modal .bg-blue-900,
body.light-mode [id*="-modal"] .bg-blue-900 {
    background-color: rgba(30, 58, 138, 0.5) !important;
    color: #BFDBFE !important;
}

body.light-mode #auth-options-modal .bg-blue-900 *,
body.light-mode [id*="-modal"] .bg-blue-900 * {
    color: #BFDBFE !important;
}

/* Preserve white text on gradient buttons inside modals */
body.light-mode [id*="-modal"] button[class*="bg-gradient-to-r"],
body.light-mode [id*="-modal"] button.bg-gradient-to-r {
    color: #FFFFFF !important;
}

body.light-mode [id*="-modal"] button[class*="bg-gradient-to-r"] *,
body.light-mode [id*="-modal"] button.bg-gradient-to-r * {
    color: #FFFFFF !important;
}

/* Modal close buttons and secondary actions text */
body.light-mode [id*="-modal"] button.text-gray-400 {
    color: #6B7280 !important;
}

body.light-mode [id*="-modal"] button.text-gray-400:hover {
    color: #374151 !important;
}

/* Preserve white text on buttons with text-white class that have dark backgrounds */
body.light-mode [id*="-modal"] button.text-white,
body.light-mode [id*="-modal"] button.text-white *,
body.light-mode #email-auth-modal button.text-white,
body.light-mode #email-auth-modal button.text-white * {
    color: #FFFFFF !important;
}

/* Specifically target the Sign In with Google button which has bg-gray-700 and text-white */
body.light-mode #email-auth-modal form button.bg-gray-700.text-white,
body.light-mode #email-auth-modal form button.bg-gray-700.text-white * {
    color: #FFFFFF !important;
}

/* Fix all buttons with dark backgrounds in modals that should have white text */
body.light-mode [id*="-modal"] button[class*="bg-gray-7"][class*="text-white"],
body.light-mode [id*="-modal"] button[class*="bg-gray-6"][class*="text-white"] {
    color: #FFFFFF !important;
}

/* Ensure icon elements inside these buttons also remain white */
body.light-mode [id*="-modal"] button.bg-gray-700 i,
body.light-mode [id*="-modal"] button.bg-gray-600 i {
    color: #FFFFFF !important;
}

/* =========================================
   PART 13: MODAL INPUT TEXT FIX FOR LIGHT MODE
   ========================================= */

/* Fix input text visibility in modals - ensure dark text on light background */
body.light-mode #email-auth-modal input,
body.light-mode #email-auth-modal textarea,
body.light-mode [id*="-modal"] input,
body.light-mode [id*="-modal"] textarea,
body.light-mode [id*="-modal"] input.text-gray-200,
body.light-mode [id*="-modal"] input.text-gray-300 {
    background: #FFFFFF !important;
    color: #1F2937 !important;
    border: 1px solid #D1D5DB !important;
}

/* Ensure placeholder text is visible but lighter */
body.light-mode #email-auth-modal input::placeholder,
body.light-mode [id*="-modal"] input::placeholder {
    color: #9CA3AF !important;
}

/* Focus state for modal inputs */
body.light-mode #email-auth-modal input:focus,
body.light-mode [id*="-modal"] input:focus {
    border-color: #2563EB !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2) !important;
    outline: none !important;
}

/* Labels in modals should be dark for visibility */
body.light-mode #email-auth-modal label,
body.light-mode [id*="-modal"] label {
    color: #1F2937 !important;
}

/* =========================================
   PART 14: RADIOLOGY NEWS SECTION
   ========================================= */

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* News Section Dark Mode */
#radiology-news-landing {
    background: transparent;
}

#radiology-news-landing .news-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#radiology-news-landing .news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15);
}

#radiology-news-landing .news-card img {
    transition: transform 0.5s ease;
}

#radiology-news-landing .news-card:hover img {
    transform: scale(1.05);
}

/* News Section Light Mode */
body.light-mode #radiology-news-landing {
    background: transparent;
}

body.light-mode #radiology-news-landing h2 {
    color: #319795 !important;
    -webkit-text-fill-color: initial !important;
}

body.light-mode #radiology-news-landing p.text-gray-400 {
    color: #6B7280 !important;
}

body.light-mode #radiology-news-landing .news-card {
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

body.light-mode #radiology-news-landing .news-card:hover {
    border-color: #3B82F6 !important;
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.1) !important;
}

body.light-mode #radiology-news-landing .news-card h3 {
    color: #1F2937 !important;
}

body.light-mode #radiology-news-landing .news-card .bg-gray-900 {
    background: #DFE3E8 !important;
}

body.light-mode #radiology-news-landing .text-gray-500,
body.light-mode #radiology-news-landing .text-gray-600 {
    color: #9CA3AF !important;
}

/* ===== Hero floating text (light mode) ===== */
/* In light mode: plain black text, no halo / glow */
body.light-mode .hero-badge {
    color: #ffffff !important;
    opacity: 1 !important;
    text-shadow: none !important;
}
body.light-mode .hero-badge i {
    /* keep each icon's original Tailwind color (green/blue/cyan/yellow/pink) */
    opacity: 0.95 !important;
    filter: none !important;
}
body.light-mode .hero-badge:hover {
    color: #ffffff !important;
}
body.light-mode .hero-badge:hover i {
    opacity: 1 !important;
}

/* ===== Browser Extension + TextRad IQ sections (light mode) ===== */
body.light-mode #browser-extension {
    background: linear-gradient(135deg, #ebeef2, #e0f2fe, #ebeef2) !important;
}
body.light-mode #browser-extension h2,
body.light-mode #browser-extension h4 {
    color: #0f172a !important;
}
body.light-mode #browser-extension p,
body.light-mode #browser-extension li span {
    color: #334155 !important;
}
body.light-mode #browser-extension .text-cyan-300 {
    color: #0e7490 !important;
}
body.light-mode #browser-extension .text-teal-300 {
    color: #0f766e !important;
}

body.light-mode #textrad-iq {
    --iq-bg-a: #e9eef5;
    --iq-bg-b: #ffffff;
    --iq-surface: rgba(255, 255, 255, 0.94);
    --iq-surface-raised: #f8fafc;
    --iq-paper: #ffffff;
    --iq-paper-ink: #263244;
    --iq-paper-muted: #667085;
    --iq-paper-toolbar: #f1f5f9;
    --iq-paper-rule: #e2e8f0;
    --iq-paper-heading: #334155;
    --iq-paper-file: #2563eb;
    --iq-paper-file-bg: #dbeafe;
    --iq-paper-safe: #059669;
    --iq-border: rgba(100, 116, 139, 0.18);
    --iq-border-strong: rgba(100, 116, 139, 0.34);
    --iq-heading: #0f172a;
    --iq-copy: #475569;
    --iq-muted: #64748b;
    --iq-blue: #2563eb;
    --iq-blue-strong: #2563eb;
    --iq-yellow: #a16207;
    --iq-success: #059669;
    --iq-danger: #e11d48;
    --iq-purple: #7e22ce;
    background:
        radial-gradient(circle at 16% 25%, rgba(37, 99, 235, 0.1), transparent 31%),
        radial-gradient(circle at 84% 70%, rgba(202, 138, 4, 0.08), transparent 30%),
        linear-gradient(135deg, var(--iq-bg-a), var(--iq-bg-b) 55%, var(--iq-bg-a)) !important;
}

body.light-mode #textrad-iq h2,
body.light-mode #textrad-iq .iq-inspector h3,
body.light-mode #textrad-iq .iq-workbench-brand strong {
    color: #0f172a !important;
}

body.light-mode #textrad-iq .iq-heading-copy,
body.light-mode #textrad-iq .iq-inspector-description,
body.light-mode #textrad-iq .iq-complete-state p {
    color: #475569 !important;
}

body.light-mode #textrad-iq .iq-demo-kicker,
body.light-mode #textrad-iq .iq-workbench-brand small,
body.light-mode #textrad-iq .iq-mode-label small,
body.light-mode #textrad-iq .iq-progress-label,
body.light-mode #textrad-iq .iq-progress-value,
body.light-mode #textrad-iq .iq-coverage-label {
    color: #64748b !important;
}

body.light-mode #textrad-iq .iq-workbench {
    border-color: rgba(100, 116, 139, 0.2) !important;
    box-shadow: 0 32px 70px -38px rgba(15, 23, 42, 0.34),
                0 0 0 1px rgba(37, 99, 235, 0.03) !important;
}

body.light-mode #textrad-iq .iq-workbench-topbar,
body.light-mode #textrad-iq .iq-mode-tabs,
body.light-mode #textrad-iq .iq-progress-wrap {
    background: rgba(248, 250, 252, 0.84) !important;
}

body.light-mode #textrad-iq .iq-review-count,
body.light-mode #textrad-iq .iq-review-count span {
    color: #1d4ed8 !important;
    border-color: rgba(37, 99, 235, 0.2) !important;
    background: rgba(37, 99, 235, 0.07) !important;
}

body.light-mode #textrad-iq .text-blue-400 {
    color: #2563eb !important;
}

body.light-mode #textrad-iq .text-yellow-400 {
    color: #a16207 !important;
}

body.light-mode #textrad-iq .iq-demo-reset,
body.light-mode #textrad-iq .iq-demo-reset span,
body.light-mode #textrad-iq .iq-action-button--secondary {
    color: #475569 !important;
}

body.light-mode #textrad-iq .iq-mode-button,
body.light-mode #textrad-iq .iq-mode-button .iq-mode-label strong {
    color: #64748b !important;
}

body.light-mode #textrad-iq .iq-mode-button:hover,
body.light-mode #textrad-iq .iq-mode-button:hover .iq-mode-label strong,
body.light-mode #textrad-iq .iq-mode-button[aria-selected="true"],
body.light-mode #textrad-iq .iq-mode-button[aria-selected="true"] .iq-mode-label strong {
    color: #0f172a !important;
}

body.light-mode #textrad-iq .iq-mode-button[aria-selected="true"] {
    border-color: rgba(37, 99, 235, 0.24) !important;
    background: rgba(37, 99, 235, 0.07) !important;
}

body.light-mode #textrad-iq .iq-mode-icon {
    color: #2563eb !important;
    background: #dbeafe !important;
}

body.light-mode #textrad-iq .iq-mode-button[data-iq-issue="grading"] .iq-mode-icon {
    color: #a16207 !important;
    background: #fef3c7 !important;
}

body.light-mode #textrad-iq .iq-mode-button[data-iq-issue="staging"] .iq-mode-icon {
    color: #7e22ce !important;
    background: #f3e8ff !important;
}

body.light-mode #textrad-iq .iq-mode-state {
    color: #64748b !important;
}

body.light-mode #textrad-iq .iq-mode-button.is-applied .iq-mode-state {
    color: #ffffff !important;
    background: #059669 !important;
}

body.light-mode #textrad-iq .iq-report-pane {
    background:
        radial-gradient(circle at 15% 0%, rgba(37, 99, 235, 0.07), transparent 35%),
        rgba(226, 232, 240, 0.52) !important;
}

body.light-mode #textrad-iq .iq-type-badge,
body.light-mode #textrad-iq .iq-type-badge span {
    color: #be123c !important;
    border-color: rgba(225, 29, 72, 0.2) !important;
    background: #fff1f2 !important;
}

body.light-mode #textrad-iq .iq-inspector[data-tone="grading"] .iq-type-badge,
body.light-mode #textrad-iq .iq-inspector[data-tone="grading"] .iq-type-badge span {
    color: #854d0e !important;
    border-color: rgba(202, 138, 4, 0.22) !important;
    background: #fefce8 !important;
}

body.light-mode #textrad-iq .iq-inspector[data-tone="staging"] .iq-type-badge,
body.light-mode #textrad-iq .iq-inspector[data-tone="staging"] .iq-type-badge span {
    color: #7e22ce !important;
    border-color: rgba(126, 34, 206, 0.2) !important;
    background: #faf5ff !important;
}

body.light-mode #textrad-iq .iq-priority-badge {
    color: #475569 !important;
    background: #f1f5f9 !important;
}

body.light-mode #textrad-iq .iq-diff {
    background: #ffffff !important;
}

body.light-mode #textrad-iq .iq-diff-label {
    color: #64748b !important;
}

body.light-mode #textrad-iq .iq-diff-row--before .iq-diff-text {
    color: #be123c !important;
}

body.light-mode #textrad-iq .iq-diff-row--after {
    background: #ecfdf5 !important;
}

body.light-mode #textrad-iq .iq-diff-row--after .iq-diff-text {
    color: #047857 !important;
}

body.light-mode #textrad-iq .iq-action-button--primary,
body.light-mode #textrad-iq .iq-action-button--primary span {
    color: #ffffff !important;
}

body.light-mode #textrad-iq .iq-resolution-copy {
    color: #334155 !important;
}

body.light-mode #textrad-iq .iq-coverage-list span {
    color: #475569 !important;
    border-color: #dbe3ee !important;
    background: rgba(255, 255, 255, 0.72) !important;
}

/* Light Mode overrides for Schedule Demo Modal */
body.light-mode #schedule-demo-modal>div {
    background: linear-gradient(135deg, #FFFFFF 0%, #EEF0F3 100%) !important;
}

body.light-mode #schedule-demo-modal h3 {
    color: #1a202c !important;
}

body.light-mode #schedule-demo-modal label {
    color: #1F2937 !important;
}

body.light-mode #schedule-demo-modal input,
body.light-mode #schedule-demo-modal select {
    background: #FFFFFF !important;
    color: #1F2937 !important;
    border: 1px solid #D1D5DB !important;
}

body.light-mode #schedule-demo-modal input:focus,
body.light-mode #schedule-demo-modal select:focus {
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2) !important;
}

body.light-mode #schedule-demo-modal input::placeholder {
    color: #9CA3AF !important;
}

body.light-mode .light-mode-indigo {
    background: #4f46e5 !important;
    background-image: none !important;
    color: #ffffff !important;
    border: none !important;
}

body.light-mode .light-mode-indigo:hover {
    background: #4338ca !important;
}

/* =========================================
   ABOUT / TEAM PANELS
   ========================================= */
#about .about-team-heading {
    max-width: 48rem;
    margin: 0 auto 3rem;
    text-align: center;
}

#about .about-team-eyebrow {
    margin: 0 0 0.5rem;
    color: #67e8f9;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

#about .about-team-intro {
    margin: 1rem auto 0;
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.7;
}

#about .team-portrait-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.55rem, 1.8vw, 1.25rem);
    max-width: 64rem;
    margin: 0 auto;
}

#about .team-portrait-item {
    min-width: 0;
    margin: 0;
    opacity: 0;
    transform: translateX(-1.25rem) scale(0.86);
    transform-origin: left center;
}

#about .team-portrait-strip.is-visible .team-portrait-item {
    animation: team-portrait-reveal 580ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(var(--portrait-index) * 135ms);
}

#about .team-portrait-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #111827;
    border: 2px solid rgba(103, 232, 249, 0.24);
    border-radius: 1rem;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

#about .team-portrait-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 280ms ease;
}

#about .team-portrait-item:hover .team-portrait-image {
    transform: scale(1.035);
}

#about .team-portrait-item figcaption {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.75rem 0.25rem 0;
    text-align: center;
}

#about .team-portrait-name {
    color: #f8fafc;
    font-size: clamp(0.78rem, 1.6vw, 1rem);
    font-weight: 750;
    line-height: 1.3;
}

#about .team-portrait-role {
    color: #94a3b8;
    font-size: clamp(0.62rem, 1.2vw, 0.76rem);
    font-weight: 600;
    line-height: 1.35;
}

#about .team-reveal-control {
    display: flex;
    justify-content: center;
    margin-top: 1.75rem;
    opacity: 0;
    transform: translateY(-0.5rem);
}

#about .team-portrait-strip.is-visible + .team-reveal-control {
    animation: team-arrow-reveal 480ms ease 720ms forwards;
}

#about .team-reveal-button {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 1rem;
    color: #cffafe;
    background: rgba(8, 145, 178, 0.13);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

#about .team-reveal-button:hover {
    background: rgba(8, 145, 178, 0.24);
    border-color: rgba(103, 232, 249, 0.58);
    transform: translateY(2px);
}

#about .team-reveal-button:focus-visible {
    outline: 3px solid rgba(103, 232, 249, 0.82);
    outline-offset: 3px;
}

#about .team-reveal-button i {
    transition: transform 300ms ease;
}

#about .team-reveal-button[aria-expanded="true"] i {
    transform: rotate(180deg);
}

#about .team-details {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-1rem);
    transition: max-height 450ms ease, margin-top 450ms ease, opacity 300ms ease, transform 400ms ease;
}

#about .team-details.is-expanded {
    max-height: 220rem;
    margin-top: 2.25rem;
    opacity: 1;
    transform: translateY(0);
}

@keyframes team-portrait-reveal {
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes team-arrow-reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#about .team-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}

#about .team-card {
    display: grid;
    grid-template-columns: 12rem minmax(0, 1fr);
    min-height: 22rem;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(31, 41, 55, 0.98), rgba(17, 24, 39, 0.98));
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 1.25rem;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

#about .team-card:hover {
    transform: translateY(-4px);
    border-color: rgba(45, 212, 191, 0.5);
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.3);
}

#about .team-card:focus-visible {
    outline: 3px solid rgba(103, 232, 249, 0.82);
    outline-offset: 4px;
}

#about .team-photo-frame {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    background: #111827;
    border-right: 1px solid rgba(148, 163, 184, 0.16);
}

#about .team-photo-frame::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

#about .team-photo {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 22rem;
    object-fit: cover;
}

#about .team-photo-udit,
#about .team-photo-roy {
    object-position: 50% 30%;
}

#about .team-photo-athar {
    object-position: 50% 24%;
}

#about .team-photo-sraboni {
    object-position: 50% 38%;
}

#about .team-card-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.6rem;
}

#about .team-member-name {
    margin: 0;
    color: #f8fafc;
    font-size: 1.35rem;
    font-weight: 750;
    line-height: 1.25;
}

#about .team-credentials {
    margin: 0.3rem 0 0;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    line-height: 1.5;
}

#about .team-role {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 0.75rem 0 0;
    padding: 0.35rem 0.7rem;
    color: #a5f3fc;
    background: rgba(8, 145, 178, 0.14);
    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: 999px;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    line-height: 1.35;
}

#about .team-bio {
    margin: 1.1rem 0 0;
    color: #cbd5e1;
    font-size: 0.89rem;
    line-height: 1.72;
    transition: max-height 360ms ease;
}

#about .team-social-links {
    display: flex;
    gap: 0.6rem;
    margin-top: auto;
    padding-top: 1.25rem;
}

#about .team-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    color: #fff;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

#about .team-social-link:hover {
    color: #fff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 9px 20px rgba(0, 0, 0, 0.26);
}

#about .team-social-linkedin {
    background: #0077b5;
}

#about .team-social-instagram {
    background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888);
}

body.light-mode #about .about-team-eyebrow {
    color: #0f766e !important;
}

body.light-mode #about .about-team-intro {
    color: #475569 !important;
}

body.light-mode #about .team-portrait-frame {
    background: #e2e8f0 !important;
    border-color: rgba(13, 148, 136, 0.26) !important;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12) !important;
}

body.light-mode #about .team-portrait-name {
    color: #0f172a !important;
}

body.light-mode #about .team-portrait-role {
    color: #64748b !important;
}

body.light-mode #about .team-reveal-button {
    color: #0f766e !important;
    background: #f0fdfa !important;
    border-color: #99f6e4 !important;
}

body.light-mode #about .team-reveal-button:hover {
    background: #ccfbf1 !important;
    border-color: #5eead4 !important;
}

body.light-mode #about .team-card {
    background: #ffffff !important;
    border-color: #dbe2ea !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.09) !important;
}

body.light-mode #about .team-card:hover {
    border-color: rgba(13, 148, 136, 0.48) !important;
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.14) !important;
}

body.light-mode #about .team-photo-frame {
    background: #e2e8f0 !important;
    border-right-color: #e2e8f0 !important;
}

body.light-mode #about .team-member-name {
    color: #0f172a !important;
}

body.light-mode #about .team-credentials {
    color: #64748b !important;
}

body.light-mode #about .team-role {
    color: #0f766e !important;
    background: #f0fdfa !important;
    border-color: #99f6e4 !important;
}

body.light-mode #about .team-bio {
    color: #475569 !important;
}

@media (min-width: 1024px) {
    #about .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 639px) {
    #about .about-team-heading {
        margin-bottom: 2rem;
    }

    #about .team-card {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    #about .team-photo-frame {
        width: 100%;
        height: 19rem;
        min-height: 19rem;
        border-right: 0;
        border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    }

    #about .team-photo {
        height: 19rem;
        min-height: 19rem;
    }

    #about .team-card-body {
        padding: 1.35rem;
    }

    #about .team-portrait-strip {
        gap: 0.45rem;
    }

    #about .team-portrait-frame {
        border-radius: 0.7rem;
    }

    #about .team-portrait-item figcaption {
        padding-top: 0.55rem;
    }

    #about .team-portrait-role {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    #about .team-portrait-item,
    #about .team-reveal-control {
        opacity: 1;
        transform: none;
        animation: none !important;
    }

    #about .team-card,
    #about .team-bio,
    #about .team-details,
    #about .team-portrait-image,
    #about .team-reveal-button,
    #about .team-reveal-button i,
    #about .team-social-link {
        transition: none;
    }
}
