/* ========================================
   WORTI ERP - Custom Styles
   ======================================== */

/* Base Styles */
:root {
    --primary-600: #006699;
    --primary-700: #005280;
    --secondary-600: #006699;
    --accent-500: #006699;
    --gray-900: #111827;
    --gray-50: #f9fafb;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg-app: #030712;
    --bg-surface: #0f172a;
    --bg-slate: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-outer: rgba(148, 163, 184, 0.12);
    --border-inner: rgba(148, 163, 184, 0.08);
}

html[data-theme="dark"] body {
    background: var(--bg-app);
    background-image: radial-gradient(1200px 600px at 10% -10%, rgba(14, 165, 233, 0.1), transparent 70%),
                     radial-gradient(900px 500px at 90% 0%, rgba(30, 41, 59, 0.2), transparent 60%),
                     linear-gradient(180deg, #030712 0%, #0f172a 100%);
    color: var(--text-main);
}

html[data-theme="dark"] .bg-white {
    background-color: var(--bg-surface) !important;
}

html[data-theme="dark"] .bg-gray-50,
html[data-theme="dark"] .bg-gray-50\/50 {
    background-color: var(--bg-slate) !important;
}

html[data-theme="dark"] .bg-gray-100 {
    background-color: #111827 !important;
}

html[data-theme="dark"] .bg-primary-50,
html[data-theme="dark"] .bg-secondary-50,
html[data-theme="dark"] .bg-accent-100,
html[data-theme="dark"] .bg-primary-100,
html[data-theme="dark"] .bg-secondary-100 {
    background-color: rgba(30, 41, 59, 0.7) !important;
}

html[data-theme="dark"] .text-gray-900 {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .text-gray-700,
html[data-theme="dark"] .text-gray-600,
html[data-theme="dark"] .text-gray-500 {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .border-gray-100,
html[data-theme="dark"] .border-gray-200 {
    border-color: rgba(148, 163, 184, 0.2) !important;
}

html[data-theme="dark"] .border-primary-100,
html[data-theme="dark"] .border-secondary-100 {
    border-color: rgba(56, 189, 248, 0.25) !important;
}

html[data-theme="dark"] .shadow-soft,
html[data-theme="dark"] .shadow-card {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] .bg-gradient-to-br,
html[data-theme="dark"] .bg-gradient-to-tr,
html[data-theme="dark"] .bg-gradient-to-r,
html[data-theme="dark"] .bg-gradient-to-l,
html[data-theme="dark"] .bg-gradient-to-bl,
html[data-theme="dark"] .bg-gradient-to-tl {
    filter: brightness(0.75) saturate(0.9);
}

html[data-theme="dark"] .btn-primary {
    box-shadow: 0 8px 20px rgba(0, 102, 153, 0.35);
}

html[data-theme="dark"] .btn-secondary {
    background: rgba(15, 23, 42, 0.9);
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.3);
}

html[data-theme="dark"] .btn-secondary:hover {
    border-color: rgba(56, 189, 248, 0.6);
    color: #ffffff;
}

html[data-theme="dark"] .soft-section {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.95)) !important;
}

html[data-theme="dark"] .sector-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.9)) !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
}

html[data-theme="dark"] .sector-card .bg-red-100 {
    background-color: rgba(239, 68, 68, 0.18) !important;
}

html[data-theme="dark"] .sector-card .bg-orange-100 {
    background-color: rgba(249, 115, 22, 0.18) !important;
}

html[data-theme="dark"] .sector-card .bg-blue-100 {
    background-color: rgba(59, 130, 246, 0.18) !important;
}

html[data-theme="dark"] .sector-card .bg-green-100 {
    background-color: rgba(34, 197, 94, 0.18) !important;
}

html[data-theme="dark"] .sector-card .bg-purple-100 {
    background-color: rgba(168, 85, 247, 0.18) !important;
}

html[data-theme="dark"] .sector-card .bg-gray-100 {
    background-color: rgba(148, 163, 184, 0.16) !important;
}

html[data-theme="dark"] .bg-white\/20 {
    background-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .bg-white\/10 {
    background-color: rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .bg-white\/30 {
    background-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] .text-gray-400 {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .soft-hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.9)) !important;
}

html[data-theme="dark"] .soft-card {
    background: #0f172a !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
}

html[data-theme="dark"] .pricing-card {
    background: #0f172a !important;
    border-color: rgba(148, 163, 184, 0.25) !important;
}

html[data-theme="dark"] .pricing-card .text-gray-900 {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .pricing-card .text-gray-600,
html[data-theme="dark"] .pricing-card .text-gray-700 {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .faq-card {
    background: #0f172a !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
}

html[data-theme="dark"] .soft-cta {
    filter: saturate(0.85) brightness(0.85);
}

/* Dark overrides for index-erp page */
html[data-theme="dark"] .wortis-app-bar {
    background: linear-gradient(90deg, #0b1220 0%, #0f172a 100%) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] .wortis-card {
    background: #0f172a !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
}

/* Generic Dashboard Components for Dark Mode - Premium */
html[data-theme="dark"] .card,
html[data-theme="dark"] .wortis-card {
    background: rgba(15, 23, 42, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    backdrop-filter: blur(8px) !important;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.7) !important;
}

html[data-theme="dark"] .sidebar {
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    border-right-color: rgba(255, 255, 255, 0.05) !important;
}

html[data-theme="dark"] .sidebar-nav a {
    color: var(--text-muted) !important;
}

html[data-theme="dark"] .sidebar-nav a:hover,
html[data-theme="dark"] .sidebar-nav a.active {
    background: rgba(14, 145, 233, 0.1) !important;
    color: #38bdf8 !important;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.1) !important;
}

html[data-theme="dark"] .main-content {
    background-color: #0b1220 !important;
}

html[data-theme="dark"] .page-header h1 {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .status-badge {
    border: 1px solid currentColor;
}

html[data-theme="dark"] .data-table th {
    background-color: #111827 !important;
    border-bottom-color: rgba(148, 163, 184, 0.15) !important;
}

html[data-theme="dark"] .data-table td {
    border-bottom-color: rgba(148, 163, 184, 0.1) !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .data-table tr:hover {
    background: rgba(30, 41, 59, 0.5) !important;
}

html[data-theme="dark"] .form-control {
    background-color: #111827 !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
    color: #f8fafc !important;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Theme Toggle (global) */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.25s ease;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.theme-toggle i {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #334155;
}

.theme-toggle .icon-moon {
    display: none;
}

.theme-toggle--compact {
    width: 36px;
    height: 36px;
}

.theme-toggle--floating {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 9999;
}

html[data-theme="dark"] .theme-toggle {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .theme-toggle i {
    color: #e2e8f0;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
    display: none;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
    display: block;
}

/* Custom Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

@keyframes pulse-soft {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-soft {
    animation: pulse-soft 2s ease-in-out infinite;
}

.animate-slide-in-up {
    animation: slideInUp 0.6s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

/* Staggered Animation Delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }
.delay-700 { animation-delay: 700ms; }
.delay-800 { animation-delay: 800ms; }

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hover-scale {
    transition: transform 0.3s ease;
}

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

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Section Padding */
.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (min-width: 1024px) {
    .section-padding {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

/* Container */
.container-custom {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Button Styles */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 153, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 153, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.75rem;
    border: 2px solid #e5e7eb;
    background: white;
    color: #374151;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--primary-300);
    background: #eff6ff;
    color: var(--primary-600);
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(0, 102, 153, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* Icon Container */
.icon-container {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.icon-container:hover {
    transform: scale(1.1);
}

/* Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 9999px;
}

/* Navigation Active State */
.nav-link {
    position: relative;
    color: #4b5563;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-600);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-600);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu Animation */
.mobile-menu-enter {
    opacity: 0;
    transform: translateY(-10px);
}

.mobile-menu-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu-exit {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-exit-active {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-700), var(--secondary-700));
}

/* Selection Color */
::selection {
    background: rgba(0, 102, 153, 0.2);
    color: var(--gray-900);
}

/* Focus Ring */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 153, 0.3);
}

/* Background Patterns */
.bg-pattern {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(0, 102, 153, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 102, 153, 0.05) 0%, transparent 50%);
}

/* Hero Background */
.hero-bg {
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 50%, #eef2ff 100%);
}

/* Gradient Border */
.gradient-border {
    position: relative;
    background: white;
    border-radius: 1rem;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Price Card Popular */
.popular-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 102, 153, 0.4);
}

/* Stats Counter Animation */
.stat-number {
    font-variant-numeric: tabular-nums;
}

/* Floating Elements */
.floating-element {
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(2) {
    animation-delay: -2s;
}

.floating-element:nth-child(3) {
    animation-delay: -4s;
}

/* Testimonial Card */
.testimonial-card {
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 120px;
    font-family: Georgia, serif;
    color: rgba(0, 102, 153, 0.1);
    line-height: 1;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-600);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Typography */
@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
}

/* Stats Counters (Odoo-style) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

/* Counter Animation */
.counter {
    font-variant-numeric: tabular-nums;
}

@keyframes countUp {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Testimonial Carousel (LWS-inspired) */
.testimonial-carousel {
    overflow: hidden;
    position: relative;
}

.testimonial-slide {
    display: none;
    padding: 2rem;
}

.testimonial-slide.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

.testimonial-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.testimonial-content {
    font-style: italic;
    font-size: 1.125rem;
    color: #374151;
    margin-bottom: 1rem;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    font-size: 4rem;
    font-family: serif;
    color: #e5e7eb;
    position: absolute;
    left: -20px;
    top: -10px;
}

.testimonial-author {
    font-weight: 600;
    color: var(--gray-900);
}

/* Trust Badges (LWS-style) */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.trust-badge:hover {
    transform: translateY(-4px);
}

.trust-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.trust-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-900);
    text-align: center;
}

/* Partner Logos (Odoo-partners style) */
.partner-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
    align-items: center;
    padding: 3rem 0;
}

.partner-logo {
    height: 50px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Video Hero Background */
.video-hero {
    position: relative;
    overflow: hidden;
}

.video-hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    z-index: 1;
}

/* Module Screenshot */
.module-screenshot {
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
    }
}

/* ========================================
   INDEX PAGE — DARK MODE OVERRIDES
   ======================================== */

/* Hero section backgrounds */
html[data-theme="dark"] .hero-surface {
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(56, 189, 248, 0.08), transparent 60%),
        radial-gradient(900px 500px at 90% 0%, rgba(14, 116, 144, 0.08), transparent 55%),
        radial-gradient(700px 400px at 20% 80%, rgba(59, 130, 246, 0.08), transparent 60%),
        linear-gradient(120deg, #0b1220 0%, #0f172a 55%, #0b1220 100%);
}

html[data-theme="dark"] .hero-grid {
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.08) 1px, transparent 1px);
    mask-image: radial-gradient(circle at 30% 20%, rgba(0,0,0,0.8), transparent 70%);
}
html[data-theme="dark"] .orb { opacity: 0.4; }

/* Section backgrounds */
html[data-theme="dark"] .section-surface {
    background:
        radial-gradient(800px 400px at 10% 0%, rgba(56, 189, 248, 0.08), transparent 60%),
        radial-gradient(700px 360px at 90% 20%, rgba(14, 116, 144, 0.08), transparent 55%),
        linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
}

html[data-theme="dark"] .section-surface-alt {
    background:
        radial-gradient(900px 420px at 0% 50%, rgba(59, 130, 246, 0.08), transparent 60%),
        radial-gradient(700px 360px at 100% 10%, rgba(14, 116, 144, 0.08), transparent 55%),
        linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
}

/* Stats bar (bg-gray-900 in light mode should stay dark but get a subtle border) */
html[data-theme="dark"] section.bg-gray-900 {
    background-color: #060d1a !important;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Dashboard hero mockup */
html[data-theme="dark"] .shine {
    background-color: #0f172a !important;
    border-color: rgba(148,163,184,0.15) !important;
}
html[data-theme="dark"] .shine::after {
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.08), transparent 45%);
    opacity: 0.35;
}
html[data-theme="dark"] .bg-gray-50\/80 {
    background-color: rgba(15, 23, 42, 0.8) !important;
}
html[data-theme="dark"] .bg-gray-50\/30 {
    background-color: rgba(15, 23, 42, 0.55) !important;
}
html[data-theme="dark"] .border-gray-50 {
    border-color: rgba(148, 163, 184, 0.15) !important;
}

/* Avantages / Modules cards */
html[data-theme="dark"] .card-hover {
    background-color: #0f172a;
    border-color: rgba(148, 163, 184, 0.18) !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.35) !important;
}
html[data-theme="dark"] .card-hover:hover {
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.55) !important;
}

/* Icon chip backgrounds in cards */
html[data-theme="dark"] .bg-blue-50 { background-color: rgba(59,130,246,0.15) !important; }
html[data-theme="dark"] .bg-green-50 { background-color: rgba(34,197,94,0.12) !important; }
html[data-theme="dark"] .bg-purple-50 { background-color: rgba(168,85,247,0.13) !important; }
html[data-theme="dark"] .bg-orange-50 { background-color: rgba(249,115,22,0.13) !important; }
html[data-theme="dark"] .bg-pink-50 { background-color: rgba(236,72,153,0.12) !important; }
html[data-theme="dark"] .bg-red-50 { background-color: rgba(239,68,68,0.12) !important; }
html[data-theme="dark"] .bg-yellow-50 { background-color: rgba(234,179,8,0.12) !important; }
html[data-theme="dark"] .bg-indigo-50 { background-color: rgba(99,102,241,0.13) !important; }
html[data-theme="dark"] .bg-teal-50 { background-color: rgba(20,184,166,0.12) !important; }

/* Testimonials / reviews */
html[data-theme="dark"] .testimonial-card,
html[data-theme="dark"] [class*="review-card"],
html[data-theme="dark"] [class*="testimonial"] {
    background-color: #0f172a !important;
    border-color: rgba(148,163,184,0.18) !important;
}

/* CTA Section */
html[data-theme="dark"] [class*="bg-primary-600"],
html[data-theme="dark"] [class*="bg-primary-700"] {
    filter: brightness(0.85) saturate(0.9);
}

/* White button / "Espace Client" style in dark */
html[data-theme="dark"] a.bg-white,
html[data-theme="dark"] button.bg-white {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: rgba(148,163,184,0.25) !important;
}

/* Trust strip avatars */
html[data-theme="dark"] .bg-gray-200 { background-color: #334155 !important; }
html[data-theme="dark"] .bg-gray-300 { background-color: #475569 !important; }
html[data-theme="dark"] .bg-gray-400 { background-color: #64748b !important; }

/* Download dropdown portal */
html[data-theme="dark"] #download-dropdown {
    background-color: #0f172a !important;
    border-color: rgba(148,163,184,0.2) !important;
    color: #e2e8f0;
}
html[data-theme="dark"] #download-dropdown a,
html[data-theme="dark"] #download-dropdown div {
    color: #cbd5e1 !important;
}
html[data-theme="dark"] #download-dropdown a:hover {
    background-color: rgba(255,255,255,0.06) !important;
}
html[data-theme="dark"] #download-dropdown .text-gray-400 { color: #64748b !important; }
html[data-theme="dark"] #download-dropdown .border-gray-100 { border-color: rgba(148,163,184,0.15) !important; }
html[data-theme="dark"] #download-dropdown .font-medium { color: #f1f5f9 !important; }

/* Hero badge pill */
html[data-theme="dark"] .bg-primary-50 {
    background-color: rgba(30,41,59,0.8) !important;
}
html[data-theme="dark"] .text-primary-700 {
    color: #38bdf8 !important;
}

/* Scrollbar for dark mode */
html[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #0b1220;
}

/* ---- Secteurs "Adapté à votre métier" cards ---- */
html[data-theme="dark"] [class*="from-red-50"],
html[data-theme="dark"] [class*="from-orange-50"],
html[data-theme="dark"] [class*="from-blue-50"],
html[data-theme="dark"] [class*="from-green-50"],
html[data-theme="dark"] [class*="from-purple-50"],
html[data-theme="dark"] [class*="from-yellow-50"],
html[data-theme="dark"] [class*="from-pink-50"],
html[data-theme="dark"] [class*="from-indigo-50"],
html[data-theme="dark"] [class*="from-teal-50"] {
    background: #0f172a !important;
}

html[data-theme="dark"] .border-red-100 { border-color: rgba(239,68,68,0.25) !important; }
html[data-theme="dark"] .border-orange-100 { border-color: rgba(249,115,22,0.25) !important; }
html[data-theme="dark"] .border-blue-100 { border-color: rgba(59,130,246,0.25) !important; }
html[data-theme="dark"] .border-green-100 { border-color: rgba(34,197,94,0.25) !important; }
html[data-theme="dark"] .border-purple-100 { border-color: rgba(168,85,247,0.25) !important; }
html[data-theme="dark"] .border-yellow-100 { border-color: rgba(234,179,8,0.25) !important; }
html[data-theme="dark"] .border-pink-100 { border-color: rgba(236,72,153,0.25) !important; }
html[data-theme="dark"] .border-indigo-100 { border-color: rgba(99,102,241,0.25) !important; }

html[data-theme="dark"] .bg-red-100 { background-color: rgba(239,68,68,0.18) !important; }
html[data-theme="dark"] .bg-orange-100 { background-color: rgba(249,115,22,0.18) !important; }
html[data-theme="dark"] .bg-blue-100 { background-color: rgba(59,130,246,0.18) !important; }
html[data-theme="dark"] .bg-green-100 { background-color: rgba(34,197,94,0.18) !important; }
html[data-theme="dark"] .bg-purple-100 { background-color: rgba(168,85,247,0.18) !important; }
html[data-theme="dark"] .bg-yellow-100 { background-color: rgba(234,179,8,0.18) !important; }
html[data-theme="dark"] .bg-pink-100 { background-color: rgba(236,72,153,0.18) !important; }
html[data-theme="dark"] .bg-indigo-100 { background-color: rgba(99,102,241,0.18) !important; }

/* Sector heading badge (bg-gray-100) */
html[data-theme="dark"] .bg-gray-100 {
    background-color: rgba(30,41,59,0.8) !important;
}

/* Green testimonials badge */
html[data-theme="dark"] .bg-green-100.text-green-700 {
    background-color: rgba(34,197,94,0.18) !important;
    color: #4ade80 !important;
}
html[data-theme="dark"] .text-green-700 { color: #4ade80 !important; }

