/* ═══════════════════════════════════════════════════
   SHARED COMPONENTS — Theme Toggle, Cookie Bar, Hero Graphics, Light Mode
   Applied to ALL pages (index, features, pricing, contact, support, guide)
   ═══════════════════════════════════════════════════ */

/* ── THEME TOGGLE BUTTON ── */
.theme-toggle-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding: 0;
    vertical-align: middle;
    outline: none;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(148, 163, 184, 0.4);
    transform: rotate(15deg);
}

.theme-icon {
    color: rgba(241, 245, 249, 0.85);
    transition: transform 0.3s ease, color 0.3s ease;
}

.theme-toggle-btn:hover .theme-icon {
    color: #ffffff;
    transform: scale(1.1);
}

/* ── COOKIE CONSENT BAR ── */
#cn-cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#cn-cookie-bar.cn-cookie--visible {
    transform: translateY(0);
}

.cn-cookie__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 16px 16px 0 0;
}

.cn-cookie__text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.5;
}

.cn-cookie__text a {
    color: #8b5cf6;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cn-cookie__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.cn-cookie__btn {
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cn-cookie__btn--accept {
    background: linear-gradient(135deg, #4f6ef7, #8b5cf6);
    color: white;
}

.cn-cookie__btn--accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(79, 110, 247, 0.4);
}

.cn-cookie__btn--decline {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.cn-cookie__btn--decline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

/* ── LIGHT MODE ── */
/* index.html custom variables */
:root[data-theme="light"] {
    --cn-bg: #ffffff;
    --cn-bg-surface: #f8fafc;
    --cn-bg-card: rgba(241, 245, 249, 0.8);
    --cn-text: #0f172a;
    --cn-text-secondary: #475569;
    --cn-text-muted: #94a3b8;
    --cn-border: rgba(15, 23, 42, 0.08);
    --cn-border-hover: rgba(15, 23, 42, 0.15);
    --cn-shadow: 0 4px 24px rgba(0,0,0,0.06);
    --cn-shadow-glow: 0 0 60px rgba(79, 110, 247, 0.08);
}

/* Sub-page light mode overrides (Bootstrap-based pages) */
html[data-theme="light"] body {
    background: #ffffff !important;
    color: #0f172a !important;
}

html[data-theme="light"] .main-bg,
html[data-theme="light"] .iq-breadcrumb-five.main-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

html[data-theme="light"] .main-content {
    background: #ffffff;
}

html[data-theme="light"] header#header {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] header#header .navbar-brand .brand-text,
html[data-theme="light"] header#header .nav-link {
    color: #1e293b !important;
}

html[data-theme="light"] header#header .nav-link:hover,
html[data-theme="light"] header#header .nav-link.active {
    color: #8b5cf6 !important;
}

html[data-theme="light"] header#header .login a {
    color: #1e293b !important;
}

html[data-theme="light"] header#header .login .active a {
    background: linear-gradient(135deg, #4f6ef7, #8b5cf6) !important;
    color: white !important;
}

html[data-theme="light"] .title.text-dark,
html[data-theme="light"] .title-light.text-dark,
html[data-theme="light"] h2, html[data-theme="light"] h3, html[data-theme="light"] h4 {
    color: #0f172a !important;
}

html[data-theme="light"] p {
    color: #475569;
}

html[data-theme="light"] .feature-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .feature-card:hover {
    border-color: #8b5cf6 !important;
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.08) !important;
}

html[data-theme="light"] .pricing-box {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .addon-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .contact-bg {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
}

html[data-theme="light"] footer.education {
    background: #0f172a !important;
}

html[data-theme="light"] .faq-item {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .faq-question h4 {
    color: #0f172a !important;
}

html[data-theme="light"] .faq-answer p {
    color: #475569 !important;
}

/* Light mode: comparison table */
html[data-theme="light"] .feature-table,
html[data-theme="light"] .comparison-table {
    background: #ffffff !important;
}

html[data-theme="light"] .feature-table td,
html[data-theme="light"] .comparison-table td {
    color: #334155 !important;
    border-color: #e2e8f0 !important;
}

html[data-theme="light"] .comparison-table tbody tr:hover {
    background: rgba(15, 23, 42, 0.02) !important;
}

/* Light mode: toggle button — unscrolled (dark bg) stays bright */
html[data-theme="light"] nav.cn-nav:not(.scrolled) .theme-toggle-btn {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] nav.cn-nav:not(.scrolled) .theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

html[data-theme="light"] nav.cn-nav:not(.scrolled) .theme-icon {
    color: #e2e8f0;
}

html[data-theme="light"] nav.cn-nav:not(.scrolled) .theme-toggle-btn:hover .theme-icon {
    color: #ffffff;
}

/* Light mode: toggle button — scrolled (white bg) goes dark */
html[data-theme="light"] nav.cn-nav.scrolled .theme-toggle-btn {
    border-color: rgba(15, 23, 42, 0.15);
    background: rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] nav.cn-nav.scrolled .theme-toggle-btn:hover {
    background: rgba(15, 23, 42, 0.08);
    border-color: rgba(15, 23, 42, 0.25);
}

html[data-theme="light"] nav.cn-nav.scrolled .theme-icon {
    color: #475569;
}

html[data-theme="light"] nav.cn-nav.scrolled .theme-toggle-btn:hover .theme-icon {
    color: #0f172a;
}

/* Light mode: cookie bar */
html[data-theme="light"] .cn-cookie__inner {
    background: rgba(255, 255, 255, 0.95);
    border-top-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .cn-cookie__text {
    color: #334155;
}

html[data-theme="light"] .cn-cookie__btn--decline {
    background: rgba(0, 0, 0, 0.04);
    color: #475569;
    border-color: rgba(0, 0, 0, 0.1);
}

/* Light mode: unscrolled nav stays white (dark banner/hero behind it) */
html[data-theme="light"] nav.cn-nav:not(.scrolled) .cn-nav__link {
    color: #e2e8f0 !important;
}

html[data-theme="light"] nav.cn-nav:not(.scrolled) .cn-nav__link:hover,
html[data-theme="light"] nav.cn-nav:not(.scrolled) .cn-nav__link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="light"] nav.cn-nav:not(.scrolled) .cn-nav__logo span {
    color: #ffffff !important;
}

html[data-theme="light"] nav.cn-nav:not(.scrolled) .btn-outline {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

html[data-theme="light"] nav.cn-nav:not(.scrolled) .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="light"] nav.cn-nav:not(.scrolled) .cn-nav__dropdown-toggle {
    color: #e2e8f0 !important;
}

/* Light mode: scrolled nav gets white bg + dark text */
html[data-theme="light"] nav.cn-nav.scrolled {
    background: rgba(255, 255, 255, 0.92) !important;
    border-bottom-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06) !important;
}

html[data-theme="light"] nav.cn-nav.scrolled .cn-nav__link {
    color: #334155 !important;
    font-weight: 600 !important;
}

html[data-theme="light"] nav.cn-nav.scrolled .cn-nav__link:hover,
html[data-theme="light"] nav.cn-nav.scrolled .cn-nav__link.active {
    color: #0f172a !important;
    background: rgba(0, 0, 0, 0.05) !important;
}

html[data-theme="light"] nav.cn-nav.scrolled .cn-nav__logo span {
    color: #0f172a !important;
}

html[data-theme="light"] nav.cn-nav.scrolled .btn-outline {
    color: #0f172a !important;
    border-color: rgba(15, 23, 42, 0.2) !important;
}

html[data-theme="light"] nav.cn-nav.scrolled .btn-outline:hover {
    background: rgba(0, 0, 0, 0.05) !important;
}

/* Light mode: hero stays dark — it looks better */
html[data-theme="light"] .hero {
    background: linear-gradient(135deg, #0a0e1a 0%, #1e293b 100%) !important;
}

html[data-theme="light"] .hero__title {
    color: #f1f5f9 !important;
}

html[data-theme="light"] .hero__subtitle {
    color: #94a3b8 !important;
}

html[data-theme="light"] .hero .btn-outline {
    color: #f1f5f9 !important;
    border-color: rgba(241, 245, 249, 0.2) !important;
}

html[data-theme="light"] .hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="light"] .hero__trust-item {
    color: #94a3b8 !important;
}

html[data-theme="light"] .hero__badge {
    background: rgba(139, 92, 246, 0.15) !important;
    color: #c4b5fd !important;
    border-color: rgba(139, 92, 246, 0.25) !important;
}

/* Light mode: section btn-outline (outside hero) */
html[data-theme="light"] .section .btn-outline,
html[data-theme="light"] .section--light .btn-outline {
    color: #0f172a !important;
    border-color: rgba(15, 23, 42, 0.2) !important;
}

html[data-theme="light"] .section .btn-outline:hover,
html[data-theme="light"] .section--light .btn-outline:hover {
    background: rgba(0, 0, 0, 0.05) !important;
}

/* Light mode: sections on index.html */
html[data-theme="light"] .section__header .section__title {
    color: #0f172a !important;
}

html[data-theme="light"] .section__header .section__sub {
    color: #475569 !important;
}

html[data-theme="light"] .section__header .section__badge {
    background: rgba(139, 92, 246, 0.08) !important;
    color: #6d28d9 !important;
}

/* Light mode: agent cards */
html[data-theme="light"] .agent-scene__chat {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .agent-scene__input {
    background: #f1f5f9 !important;
    border-top-color: rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .agent-scene__input-bar {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
    color: #475569 !important;
}

/* Light mode: agent floating badges + cards */
html[data-theme="light"] .agent-badge {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

html[data-theme="light"] .widget-ticket {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .widget-ticket__header span {
    color: #0f172a !important;
}

html[data-theme="light"] .widget-ticket__status {
    background: #fef3c7 !important;
    color: #92400e !important;
}

html[data-theme="light"] .widget-ticket__desc {
    color: #475569 !important;
}

html[data-theme="light"] .widget-checkout {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .widget-checkout__title {
    color: #0f172a !important;
}

html[data-theme="light"] .widget-checkout__price {
    color: #475569 !important;
}

html[data-theme="light"] .agent-scene__form {
    background: #f8fafc !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .agent-scene__form-field {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
    color: #475569 !important;
}

html[data-theme="light"] .agent-scene__form-title {
    color: #0f172a !important;
}

/* Light mode: callout box */
html[data-theme="light"] .callout {
    background: rgba(241, 245, 249, 0.9) !important;
    border-color: rgba(79, 110, 247, 0.12) !important;
}

html[data-theme="light"] .callout p {
    color: #334155 !important;
}

/* Light mode: stats counters */
html[data-theme="light"] .stat__number {
    color: #0f172a !important;
}

html[data-theme="light"] .stat__label {
    color: #475569 !important;
}

/* Light mode: mobile menu */
html[data-theme="light"] .mobile-menu {
    background: rgba(255, 255, 255, 0.98) !important;
}

html[data-theme="light"] .mobile-menu a {
    color: #0f172a !important;
}

html[data-theme="light"] .mobile-menu__close {
    color: #0f172a !important;
}

html[data-theme="light"] .cn-nav__hamburger {
    color: #0f172a !important;
}

/* ═══════════════════════════════════════════════════
   UNIFIED NAVBAR — Shared across all pages
   Extracted from index.html glassmorphism navbar
   ═══════════════════════════════════════════════════ */

/* ── Nav Container ── */
nav.cn-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.cn-nav.scrolled {
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    padding: 10px 0;
}

.cn-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.cn-nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
    color: #f1f5f9;
    color: var(--cn-text, #f1f5f9);
    flex-shrink: 0;
    text-decoration: none;
}

.cn-nav__logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.cn-nav__links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cn-nav__link {
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    text-decoration: none;
}

.cn-nav__link:hover {
    color: #f1f5f9;
    color: var(--cn-text, #f1f5f9);
    background: rgba(255,255,255,0.06);
}

.cn-nav__link.active {
    color: #f1f5f9;
    color: var(--cn-text, #f1f5f9);
}

/* ── Dropdown Styling ── */
.cn-nav__dropdown {
    position: relative;
}

.cn-nav__dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.dropdown-arrow {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cn-nav__dropdown:hover .dropdown-arrow {
    transform: translateY(1px);
}

.cn-nav__dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #111827;
    background: var(--cn-bg-surface, #111827);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border: 1px solid var(--cn-border, rgba(148, 163, 184, 0.1));
    border-radius: 12px;
    padding: 8px;
    min-width: 180px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Hover bridge to keep dropdown open */
.cn-nav__dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 12px;
}

.cn-nav__dropdown:hover .cn-nav__dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(4px);
}

.cn-nav__dropdown-item {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #94a3b8;
    color: var(--cn-text-secondary, #94a3b8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    white-space: nowrap;
    display: block;
}

.cn-nav__dropdown-item:hover {
    color: #f1f5f9;
    color: var(--cn-text, #f1f5f9);
    background: rgba(255, 255, 255, 0.06);
}

:root[data-theme="light"] .cn-nav__dropdown-item:hover {
    background: rgba(15, 23, 42, 0.04);
}

/* ── Nav Action Buttons ── */
.cn-nav__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cn-nav__hamburger {
    display: none;
    background: none;
    border: none;
    color: #f1f5f9;
    color: var(--cn-text, #f1f5f9);
    cursor: pointer;
    padding: 8px;
}

.cn-nav__hamburger svg { display: block; }

/* ── Nav Buttons (shared) ── */
nav.cn-nav .btn,
.mobile-menu .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 50px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    text-decoration: none;
}

nav.cn-nav .btn-sm { padding: 8px 20px; font-size: 13px; }

nav.cn-nav .btn-primary,
.mobile-menu .btn-primary {
    background: linear-gradient(135deg, #4f6ef7, #8b5cf6);
    color: white;
    box-shadow: 0 4px 20px rgba(79, 110, 247, 0.35);
}

nav.cn-nav .btn-primary:hover,
.mobile-menu .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(79, 110, 247, 0.5);
}

nav.cn-nav .btn-outline {
    background: transparent;
    color: #f1f5f9;
    color: var(--cn-text, #f1f5f9);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

nav.cn-nav .btn-outline:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* ── Mobile Menu ── */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
    font-size: 20px;
    font-weight: 600;
    color: #f1f5f9;
    color: var(--cn-text, #f1f5f9);
    padding: 12px 24px;
    text-decoration: none;
}

.mobile-menu__close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #f1f5f9;
    color: var(--cn-text, #f1f5f9);
    font-size: 28px;
    cursor: pointer;
}

/* ── Scroll Progress Bar ── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 1001;
    background: transparent;
}

.scroll-progress__bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4f6ef7, #8b5cf6, #06d6a0);
    transition: width 0.1s linear;
}

/* ── Modern Loading Screen ── */
#loading {
    background: #0a0e1a !important;
    justify-content: center;
    align-items: center;
}

#loading img {
    display: none !important;
}

#loading #loading-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#loading #loading-center::before {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid rgba(79, 110, 247, 0.15);
    border-top-color: #4f6ef7;
    border-radius: 50%;
    animation: cn-spin 0.8s linear infinite;
}

@keyframes cn-spin {
    to { transform: rotate(360deg); }
}

/* ── Banner extends behind fixed nav (subpages) ── */
.iq-breadcrumb-five.main-bg {
    padding-top: 120px !important;
}

/* ── Nav Responsive ── */
@media (max-width: 768px) {
    .cn-nav__links { display: none; }
    .cn-nav__actions { display: none; }
    .cn-nav__hamburger { display: block; }
}


/* ── Light Mode Nav Overrides (dropdown + mobile) ── */

html[data-theme="light"] .cn-nav__dropdown-menu {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .cn-nav__dropdown-item {
    color: #475569;
}

html[data-theme="light"] .cn-nav__dropdown-item:hover {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .mobile-menu {
    background: rgba(255, 255, 255, 0.98) !important;
}

html[data-theme="light"] .mobile-menu a {
    color: #0f172a !important;
}

html[data-theme="light"] .mobile-menu__close {
    color: #0f172a !important;
}

html[data-theme="light"] .cn-nav__hamburger {
    color: #0f172a !important;
}

html[data-theme="light"] #loading {
    background: #f8fafc !important;
}

/* ── CSS HERO GRAPHICS (replacing AI images) ── */
.hero-graphic {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 260px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.hero-graphic__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: orbFloat 8s ease-in-out infinite;
}

.hero-graphic__orb--1 {
    width: 180px; height: 180px;
    background: rgba(139, 92, 246, 0.4);
    top: -30px; right: -20px;
    animation-delay: 0s;
}

.hero-graphic__orb--2 {
    width: 140px; height: 140px;
    background: rgba(79, 110, 247, 0.35);
    bottom: -20px; left: 10px;
    animation-delay: -3s;
}

.hero-graphic__orb--3 {
    width: 100px; height: 100px;
    background: rgba(6, 214, 160, 0.3);
    top: 40%; left: 40%;
    animation-delay: -5s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(15px, -10px) scale(1.05); }
    66% { transform: translate(-10px, 8px) scale(0.95); }
}

.hero-graphic__icons {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 30px;
    height: 100%;
    align-content: center;
}

.hero-graphic__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 28px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.3s ease, background 0.3s ease;
    margin: 0 auto;
}

.hero-graphic__icon:hover {
    transform: translateY(-4px) scale(1.08);
    background: rgba(255, 255, 255, 0.12);
}

/* Light mode hero graphics */
html[data-theme="light"] .hero-graphic {
    background: rgba(241, 245, 249, 0.8);
    border-color: rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .hero-graphic__orb--1 { background: rgba(139, 92, 246, 0.15); }
html[data-theme="light"] .hero-graphic__orb--2 { background: rgba(79, 110, 247, 0.12); }
html[data-theme="light"] .hero-graphic__orb--3 { background: rgba(6, 214, 160, 0.12); }

html[data-theme="light"] .hero-graphic__icon {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* ── HERO BANNER MOBILE FIXES ── */
@media (max-width: 991px) {
    .iq-breadcrumb-five .row.align-items-center {
        text-align: center !important;
    }

    .iq-breadcrumb-five .col-lg-6.text-left {
        text-align: center !important;
    }

    .iq-breadcrumb-five .col-lg-6 img {
        max-height: 200px !important;
    }

    .hero-graphic {
        max-width: 300px;
        height: 200px;
    }

    .hero-graphic__icon {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }
}

@media (max-width: 576px) {
    .cn-cookie__inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 14px 16px;
        border-radius: 12px 12px 0 0;
    }

    .cn-cookie__text {
        font-size: 13px;
    }

    .hero-graphic {
        max-width: 260px;
        height: 170px;
    }

    .hero-graphic__icons {
        padding: 20px;
        gap: 8px;
    }

    .hero-graphic__icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
        border-radius: 12px;
    }

    .theme-toggle-btn {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }
}
