/* ==========================================================
   VeyHub â€” World-Class SaaS Design System
   Mobile-First Responsive · Universal Dark Form Controls · WCAG 2.1 AA
   Zero Frameworks · Pure Native CSS · Fluid Clamp Typography
   ========================================================== */

/* ========================================================
   DESIGN TOKENS (HIGH-CONTRAST DARK SLATE PALETTE)
   ======================================================== */
:root {
    /* Primary Backgrounds - 60-30-10 Ice Blue Palette */
    --bg-dark:          #edf4fa; /* 60% Dominant: Ice Blue Mist Canvas */
    --bg-surface-dark:  #ffffff; /* 30% Secondary: Pure Crisp White */
    --bg-card-dark:     #ffffff;
    --bg-card-hover:    #e4eef7;
    --bg-input-dark:    #ffffff;
    --bg-input-focus:   #ffffff;

    /* Borders & Accents */
    --border-subtle:    #cbd5e1;
    --border-focus:     rgba(5, 150, 105, 0.5);
    --border-glow:      rgba(5, 150, 105, 0.2);

    /* Typography & Contrast Colors - Deep Crisp Slate */
    --text-main-dark:   #0f172a;
    --text-muted-dark:  #334155;
    --text-dim-dark:    #475569;
    --text-label-dark:  #0f172a;

    /* Primary Accent - Deep Jewel Emerald (AAA Contrast) */
    --primary:          #059669;
    --primary-hover:    #047857;
    --primary-light:    #ecfdf5;
    --primary-glow:     rgba(5, 150, 105, 0.25);
    --primary-glow-sm:  rgba(5, 150, 105, 0.12);

    /* Semantic States */
    --success:          #059669;
    --success-light:    #d1fae5;
    --success-dark:     #047857;
    --danger:           #ef4444;
    --danger-light:     #fee2e2;
    --danger-dark:      #991b1b;
    --warning:          #f59e0b;
    --warning-light:    #fef3c7;
    --warning-dark:     #92400e;
    --info:             #2563eb;
    --info-light:       #dbeafe;
    --info-dark:        #1d4ed8;

    /* Theme Tokens (Clean Education SaaS) */
    --bg:           #edf4fa;
    --surface:      #ffffff;
    --text:         #0f172a;
    --text-muted:   #334155;
    --text-heading: #0f172a;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --border:       #cbd5e1;
    --shadow-sm:    0 1px 3px rgba(15, 23, 42, 0.05);
    --shadow:       0 4px 14px rgba(15, 23, 42, 0.06);
    --shadow-lg:    0 12px 30px rgba(15, 23, 42, 0.08);
    --shadow-glow:  0 0 25px rgba(5, 150, 105, 0.15);

    /* Radii */
    --radius-sm:    6px;
    --radius:       10px;
    --radius-lg:    16px;
    --radius-xl:    24px;
    --radius-full:  9999px;

    /* Typography Stack */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
}

/* ========================================================
   GLOBAL RESET, MOBILE BASE & ZERO OVERFLOW
   ======================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main-dark);
    background-color: var(--bg-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container safety */
.cd-container, .content, .admin-content, .auth-wrap {
    width: 100%;
    box-sizing: border-box;
}

.cd-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover { color: #818cf8; }
a:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 3px; }

img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; font-weight: 700; color: #0f172a; letter-spacing: -0.02em; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
ul, ol { list-style: none; }

/* Skip Navigation Link */
.skip-nav-link {
    position: absolute; top: -60px; left: 16px; z-index: 9999;
    background: var(--primary); color: #fff; padding: 10px 18px;
    border-radius: var(--radius); font-weight: 600; text-decoration: none;
    transition: top 0.2s ease;
}
.skip-nav-link:focus { top: 16px; }

/* ========================================================
   SECTION 1: UNIVERSAL DARK THEME FORM CONTROLS (HIGH CONTRAST)
   ======================================================== */
.form-control,
.form-group input,
.form-group select,
.form-group textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="date"],
input[type="search"],
select,
textarea {
    width: 100%;
    min-height: 46px;
    background: #ffffff !important;
    color: #0f172a !important; /* Crisp white readable text */
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.95rem;
    line-height: 1.5;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
    display: block;
}

/* Focus States */
.form-control:focus,
.form-control:focus-visible,
.form-group input:focus,
.form-group input:focus-visible,
.form-group select:focus,
.form-group select:focus-visible,
.form-group textarea:focus,
.form-group textarea:focus-visible,
input:focus,
input:focus-visible,
select:focus,
select:focus-visible,
textarea:focus,
textarea:focus-visible {
    border-color: var(--primary) !important; /* Indigo glow */
    box-shadow: 0 0 0 3px var(--primary-glow-sm) !important;
    background: #1a243d !important;
    outline: none !important;
}

/* High-Contrast Labels & Placeholders */
label,
.form-label,
.form-group label {
    display: block;
    color: #0f172a !important;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

label .required,
label span.text-danger,
.text-danger {
    color: #f87171 !important; /* Vivid red for required asterisks / error copy */
}

::placeholder {
    color: #64748b !important; /* Subtle legible slate placeholder */
    opacity: 1;
}

/* Custom Dropdown Option Background */
select option {
    background: #161f33;
    color: #f8fafc;
    padding: 10px 14px;
}

/* Form Groups & Grid Layouts */
.form-group {
    margin-bottom: 20px;
    width: 100%;
}

/* Password Visibility Toggle */
.cd-password-wrap {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}
.cd-password-wrap input {
    width: 100% !important;
    padding-right: 44px !important;
}
.cd-password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 15px;
    line-height: 1;
    border-radius: 6px;
    transition: color 0.15s ease, background 0.15s ease;
    z-index: 2;
    -webkit-appearance: none;
}
.cd-password-toggle:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.08);
}
.cd-password-toggle:focus-visible {
    color: var(--primary);
    outline: 2px solid var(--primary);
}
[data-theme="light"] .cd-password-toggle {
    color: #64748b;
}
[data-theme="light"] .cd-password-toggle:hover {
    color: #0f172a;
    background: rgba(0, 0, 0, 0.06);
}

.form-row,
.grid-2-col,
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
}

@media (max-width: 768px) {
    .form-row,
    .grid-2-col,
    .contact-grid {
        grid-template-columns: 1fr !important; /* Forces single column on mobile viewports */
        gap: 14px;
    }
}

/* ========================================================
   BUTTONS (MIN 44PX TOUCH TARGETS)
   ======================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    min-width: 44px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    font-family: var(--font-sans);
    box-sizing: border-box;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.45);
}
[data-theme="light"] .btn-primary {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.25);
    border: 1px solid rgba(5, 150, 105, 0.2);
}
[data-theme="light"] .btn-primary:hover {
    background: linear-gradient(135deg, #047857 0%, #064e3b 100%);
    box-shadow: 0 6px 22px rgba(5, 150, 105, 0.35);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #7579f3 0%, var(--primary) 100%);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc !important;
    border: 1px solid var(--border-subtle);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.25); }

.btn-ghost { background: transparent; color: var(--text-muted-dark) !important; border: 1px solid transparent; }
.btn-ghost:hover { color: #fff !important; background: rgba(255, 255, 255, 0.06); }

.btn-danger { background: var(--danger); color: #fff !important; }
.btn-danger:hover { background: var(--danger-dark); }

.btn-outline-light {
    background: transparent; color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.45); }

.btn-sm  { min-height: 38px; padding: 6px 16px; font-size: 13.5px; }
.btn-lg  { min-height: 50px; padding: 12px 28px; font-size: 15.5px; }
.btn-xl  { min-height: 56px; padding: 14px 36px; font-size: 16.5px; font-weight: 700; }
.btn-full { width: 100%; }

/* ========================================================
   CARDS, TABLES & CONTAINED SCROLLING
   ======================================================== */
.card, .stat-card, .table-wrap, .auth-card, .cd-contact-form-card, .cd-contact-info-card, .cd-stat-box, .cd-pillar-card, .cd-blog-card, .cd-author-box, .cd-article-trial-card, .cd-related-articles-widget, .cd-policy-toc {
    background: var(--bg-card-dark);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    color: var(--text-main-dark);
    box-sizing: border-box;
}

.card {
    padding: 24px;
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.stat-card {
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.15s ease;
    width: 100%;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-card .label { color: var(--text-muted-dark); font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; font-weight: 700; }
.stat-card .value { font-size: 26px; font-weight: 800; margin-top: 4px; color: #fff; }
.stat-card .icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: rgba(16, 185, 129, 0.15); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
}

/* Contained Responsive Tables */
.table-responsive, .table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    background: var(--bg-card-dark);
    border: 1px solid var(--border-subtle);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px; /* Ensures readable table layout on small screens inside horizontal scroll */
}

th, td {
    padding: 14px 16px;
    text-align: left;
    font-size: 14px;
}

th {
    background: #0f1829;
    color: var(--text-muted-dark);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-subtle);
}

tbody tr {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
    transition: background 0.1s ease;
}
tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.02); }
tbody tr:hover { background: rgba(16, 185, 129, 0.06); }

/* Badges */
.badge {
    display: inline-block; padding: 3px 10px; font-size: 12px;
    font-weight: 700; border-radius: var(--radius-full); text-transform: capitalize;
    white-space: nowrap;
}
.badge-green  { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.badge-red    { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }
.badge-yellow { background: rgba(245, 158, 11, 0.15); color: #fcd34d; }
.badge-gray   { background: rgba(255, 255, 255, 0.08); color: #cbd5e1; }
.badge-blue   { background: rgba(59, 130, 246, 0.15); color: #93c5fd; }

/* Flash Notifications */
.flash {
    padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px;
    font-weight: 500; font-size: 14px; border-left: 4px solid; width: 100%;
}
.flash-success { background: rgba(16, 185, 129, 0.12); color: #6ee7b7; border-color: var(--success); }
.flash-error   { background: rgba(239, 68, 68, 0.12); color: #fca5a5; border-color: var(--danger); }
.flash-info    { background: rgba(59, 130, 246, 0.12); color: #93c5fd; border-color: var(--info); }
.flash-warning { background: rgba(245, 158, 11, 0.12); color: #fde68a; border-color: var(--warning); }

/* Banner notices */
.banner {
    padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    font-weight: 500; font-size: 14px; width: 100%;
}
.banner-warning { background: rgba(245, 158, 11, 0.15); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.3); }
.banner-danger  { background: rgba(239, 68, 68, 0.15); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3); }
.banner-info    { background: rgba(59, 130, 246, 0.15); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.3); }

/* Toolbar */
.toolbar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px; flex-wrap: wrap; gap: 12px; width: 100%;
}

/* Receipt Card */
.receipt {
    max-width: 580px; width: 100%; margin: 28px auto;
    background: var(--bg-card-dark); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg); padding: 32px 24px; box-shadow: var(--shadow);
}
.receipt h2 { text-align: center; color: #fff; }
.receipt .row {
    display: flex; justify-content: space-between; padding: 10px 0;
    border-bottom: 1px dashed var(--border-subtle); font-size: 14px;
}

/* ========================================================
   AUTH SCREENS (LOGIN, REGISTER, PASSWORDS)
   ======================================================== */
.auth-wrap {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: var(--bg-dark);
    background-image: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.18) 0%, transparent 60%);
    padding: 24px 16px;
}
.auth-card {
    background: var(--bg-card-dark); padding: 36px 28px;
    border-radius: var(--radius-xl); width: 100%; max-width: 440px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6); border: 1px solid var(--border-subtle);
}
.auth-card h1 { text-align: center; color: #fff; margin-bottom: 8px; font-size: 24px; }
.auth-card .subtitle { text-align: center; color: var(--text-muted-dark); margin-bottom: 24px; font-size: 14px; }
.auth-card .footer-link { text-align: center; margin-top: 20px; font-size: 13.5px; color: var(--text-muted-dark); line-height: 1.8; }
.auth-card .footer-link a { color: #a5b4fc; font-weight: 500; }
.auth-card .footer-link a:hover { color: #fff; }

/* ========================================================
   NAVBAR & MOBILE DRAWER
   ======================================================== */
.cd-nav-wrap {
    position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
    width: calc(100% - 32px); max-width: 1240px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(10, 14, 23, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px; z-index: 1000;
    padding: 10px 18px; transition: all 0.3s ease;
}
.cd-nav-wrap.scrolled {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    background: rgba(10, 14, 23, 0.96);
}
.cd-nav-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.cd-nav-logo {
    display: flex; align-items: center; gap: 10px;
    font-size: 17px; font-weight: 800; color: #fff; white-space: nowrap;
}
.cd-logo-badge {
    width: 34px; height: 34px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), #10b981);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
    border-radius: 9px; display: flex; align-items: center;
    justify-content: center; font-size: 16px;
}
.cd-nav-links { display: flex; align-items: center; gap: 2px; }
.cd-nav-links a {
    color: #94a3b8; padding: 8px 14px; border-radius: 8px;
    font-size: 13.5px; font-weight: 500; transition: all 0.15s ease;
}
.cd-nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.cd-nav-actions { display: flex; align-items: center; gap: 10px; }
.cd-hamburger {
    display: none; align-items: center; justify-content: center;
    background: transparent; border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px; width: 42px; height: 42px;
    cursor: pointer; color: #fff; font-size: 18px;
}

/* Mobile Drawer */
.cd-mobile-nav {
    position: fixed; top: 0; right: 0;
    width: min(300px, 85vw); height: 100vh;
    background: #0d1527;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2000; padding: 80px 24px 32px;
    display: flex; flex-direction: column; gap: 6px;
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
    overflow-y: auto; box-sizing: border-box;
}
.cd-mobile-nav.open { 
    transform: translateX(0); 
    visibility: visible;
}
.cd-mobile-nav a {
    display: block; color: #cbd5e1; padding: 12px 16px;
    border-radius: 10px; font-size: 15px; font-weight: 500;
}
.cd-mobile-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.cd-mobile-close {
    position: absolute; top: 20px; right: 20px;
    background: transparent; border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px; width: 40px; height: 40px;
    cursor: pointer; color: #cbd5e1; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
}
.cd-mobile-divider { height: 1px; background: rgba(255, 255, 255, 0.08); margin: 12px 0; }
.cd-nav-overlay {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px);
    z-index: 1999; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.cd-nav-overlay.active { opacity: 1; pointer-events: all; }

/* ========================================================
   HERO & MOCKUP COMPONENT
   ======================================================== */
.cd-hero-section {
    padding: 150px 0 70px;
    position: relative; overflow: hidden; text-align: center;
}
.cd-status-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-full); padding: 6px 18px;
    font-size: 13px; color: #a5b4fc; font-weight: 600; margin-bottom: 24px;
}
.cd-status-dot { width: 6px; height: 6px; background: #a5b4fc; border-radius: 50%; }

.cd-hero-h1 {
    font-size: clamp(2.1rem, 5.2vw, 3.8rem);
    font-weight: 800; color: #fff;
    line-height: 1.15; letter-spacing: -0.03em;
    max-width: 860px; margin: 0 auto 24px;
    min-height: 2.8em;
    contain: layout;
}
.cd-tw-cursor {
    display: inline-block; width: 3px; background: var(--primary);
    margin-left: 3px; vertical-align: baseline;
    animation: blink 1s step-end infinite;
    height: 0.85em; border-radius: 2px;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.cd-hero-sub {
    font-size: clamp(1rem, 2vw, 1.15rem); color: var(--text-muted-dark);
    max-width: 640px; margin: 0 auto 36px; line-height: 1.75;
}
.cd-cta-row {
    display: flex; justify-content: center; flex-wrap: wrap;
    gap: 14px; margin-bottom: 22px; width: 100%;
}
.cd-micro-trust {
    display: flex; justify-content: center; flex-wrap: wrap;
    gap: 6px 20px; font-size: 13px; color: #94a3b8;
}
.cd-micro-trust .cd-check { color: var(--success); }

/* Mockup Canvas */
.cd-mockup-wrap {
    max-width: 960px; width: 100%; margin: 56px auto 0;
    position: relative; box-sizing: border-box;
    min-height: 480px;
}
.cd-mockup-frame {
    background: #090f1d;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px; overflow: hidden;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.7);
    width: 100%; box-sizing: border-box;
}
.cd-mock-topbar {
    background: #070c19;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 18px;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.cd-win-dots { display: flex; gap: 6px; }
.cd-win-dot { width: 11px; height: 11px; border-radius: 50%; }
.cd-dot-r { background: #ff5f57; }
.cd-dot-y { background: #febc2e; }
.cd-dot-g { background: #28c840; }
.cd-mock-institute { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #d1d5db; font-weight: 600; }
.cd-live-pulse { width: 7px; height: 7px; background: var(--success); border-radius: 50%; }

.cd-mock-canvas { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.cd-kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; }
.cd-kpi-card {
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px; padding: 14px;
}
.cd-kpi-label { font-size: 10.5px; color: #64748b; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.cd-kpi-val { font-size: 22px; font-weight: 800; color: #fff; margin: 4px 0 2px; }
.cd-kpi-sub { font-size: 11.5px; font-weight: 500; }
.cd-kpi-sub.emerald { color: #34d399; }
.cd-kpi-sub.violet  { color: #a5b4fc; }
.cd-kpi-sub.amber   { color: #fcd34d; }

.cd-toast {
    background: rgba(16, 185, 129, 0.08); border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 10px; padding: 12px 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    font-size: 12.5px; color: #d1fae5;
}
.cd-live-badge {
    background: var(--success); color: #fff; font-size: 10px; font-weight: 700;
    padding: 2px 8px; border-radius: var(--radius-full); text-transform: uppercase;
    white-space: nowrap; flex-shrink: 0;
}

.cd-mock-table-wrap {
    background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px; overflow-x: auto; width: 100%;
}
.cd-mock-table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 480px; }
.cd-mock-table th {
    padding: 10px 14px; color: #64748b; font-weight: 700;
    text-transform: uppercase; font-size: 10.5px; background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    white-space: nowrap;
}
.cd-mock-table td {
    padding: 11px 14px; color: #94a3b8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04); background: transparent !important;
}
.cd-s-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: var(--radius-full); font-size: 11px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.cd-s-done { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.cd-s-live { background: rgba(16, 185, 129, 0.15); color: #a5b4fc; }
.cd-s-soon { background: rgba(245, 158, 11, 0.15); color: #fcd34d; }

/* ========================================================
   COMPARISON & BENTO SECTIONS
   ======================================================== */
.cd-comparison-section { padding: 80px 0; }
.cd-comparison-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 980px; margin: 0 auto; width: 100%;
}
.cd-chaos-card, .cd-auto-card { border-radius: 20px; padding: 32px 28px; width: 100%; box-sizing: border-box; }
.cd-chaos-card { background: rgba(239, 68, 68, 0.04); border: 1px solid rgba(239, 68, 68, 0.16); }
.cd-auto-card  { background: rgba(16, 185, 129, 0.04); border: 1px solid rgba(16, 185, 129, 0.22); }
.cd-comp-tag {
    font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
    padding: 4px 12px; border-radius: var(--radius-full); display: inline-block; margin-bottom: 14px;
}
.cd-chaos-tag { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }
.cd-auto-tag  { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; }
.cd-comp-h3 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 20px; }
.cd-comp-list { display: flex; flex-direction: column; gap: 14px; }
.cd-comp-list li { display: flex; gap: 12px; font-size: 14px; color: #94a3b8; line-height: 1.55; }
.cd-bullet-x  { color: #ef4444; font-weight: 700; flex-shrink: 0; }
.cd-bullet-ok { color: #10b981; font-weight: 700; flex-shrink: 0; }

.cd-bento-section { padding: 80px 0; }
.cd-bento-grid {
    display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; width: 100%;
}
.cd-bento-xl { grid-column: span 7; }
.cd-bento-md { grid-column: span 5; }
.cd-bento-card {
    background: var(--bg-card-dark); border: 1px solid var(--border-subtle);
    border-radius: 20px; padding: 28px; transition: transform 0.25s, border-color 0.25s;
    width: 100%; box-sizing: border-box;
}
.cd-bento-card:hover { transform: translateY(-4px); border-color: rgba(16, 185, 129, 0.35); }
.cd-bento-tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.22);
    border-radius: var(--radius-full); padding: 4px 12px; font-size: 12px; color: #a5b4fc; font-weight: 600; margin-bottom: 12px;
}
.cd-bento-h3 { font-size: 19px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.cd-bento-desc { font-size: 13.5px; color: #64748b; line-height: 1.65; margin-bottom: 20px; }

/* Interactive Attendance Pills */
.cd-att-rate { font-size: 13px; color: #34d399; font-weight: 700; margin-bottom: 12px; }
.cd-att-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-size: 13.5px;
}
.cd-pill {
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}
.cd-pill-p { 
    background: rgba(16, 185, 129, 0.18); 
    color: #34d399; 
    border: 1px solid rgba(16, 185, 129, 0.35); 
}
.cd-pill-a { 
    background: rgba(239, 68, 68, 0.18); 
    color: #fca5a5; 
    border: 1px solid rgba(239, 68, 68, 0.35); 
}
.cd-pill-p.cd-pill-active, .cd-pill-p[aria-pressed="true"] { 
    background: rgba(16, 185, 129, 0.35); 
    color: #6ee7b7; 
    border-color: #10b981; 
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.35); 
}
.cd-pill-a.cd-pill-active, .cd-pill-a[aria-pressed="true"] { 
    background: rgba(239, 68, 68, 0.35); 
    color: #fecaca; 
    border-color: #ef4444; 
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.35); 
}
.cd-pill-inactive {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #64748b !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
}

/* Fee tracker preview */
.cd-fee-header { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 12.5px; }
.cd-fee-target { color: #34d399; font-weight: 700; }
.cd-fee-bar-bg { height: 8px; background: rgba(255, 255, 255, 0.08); border-radius: var(--radius-full); overflow: hidden; margin-bottom: 16px; }
.cd-fee-bar-fill { height: 100%; width: 88%; background: linear-gradient(90deg, #10b981, #34d399); border-radius: var(--radius-full); }
.cd-mini-receipt {
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center;
}
.cd-receipt-name { font-size: 13px; color: #fff; font-weight: 600; display: block; }
.cd-receipt-sub  { font-size: 11.5px; color: #64748b; }
.cd-paid-badge { background: rgba(16, 185, 129, 0.15); color: #34d399; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: var(--radius-full); }

/* Portal snippet */
.cd-portal-user { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cd-portal-avatar {
    width: 40px; height: 40px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), #10b981);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 14px;
}
.cd-portal-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cd-portal-stat { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 10px; padding: 12px; text-align: center; }
.cd-portal-stat-label { font-size: 11px; color: #64748b; display: block; margin-bottom: 3px; }
.cd-portal-stat-val   { font-size: 17px; font-weight: 800; }

/* Lang chips */
.cd-lang-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cd-lang-chip {
    padding: 6px 16px; border-radius: var(--radius-full); font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.12); color: #94a3b8; cursor: pointer;
    background: transparent; font-family: inherit;
}
.cd-lang-chip.active { background: rgba(16, 185, 129, 0.18); border-color: rgba(16, 185, 129, 0.45); color: #a5b4fc; }

/* ========================================================
   PRICING MATRIX
   ======================================================== */
.cd-pricing-section { padding: 80px 0 100px; }
.cd-pricing-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1100px; margin: 0 auto; width: 100%;
}
.cd-price-card {
    background: var(--bg-card-dark); border: 1px solid var(--border-subtle);
    border-radius: 22px; padding: 36px 28px; display: flex; flex-direction: column;
    position: relative; overflow: hidden; width: 100%; box-sizing: border-box;
}
.cd-price-card.cd-featured {
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 0 50px rgba(16, 185, 129, 0.15);
}
.cd-featured-ribbon {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: #fff; font-size: 11px; font-weight: 700;
    padding: 4px 18px; border-radius: 0 0 10px 10px;
}
.cd-price-name { font-size: 13px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 6px; }
.cd-price-desc { font-size: 13px; color: #64748b; margin-bottom: 18px; min-height: 36px; }
.cd-price-row { display: flex; align-items: baseline; gap: 4px; margin-bottom: 20px; }
.cd-price-amount { font-size: 46px; font-weight: 800; color: #fff; letter-spacing: -2px; }
.cd-price-cycle  { font-size: 14px; color: #64748b; }
.cd-price-feats  { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; flex: 1; }
.cd-price-feats li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: #cbd5e1; }
.cd-feat-check { color: var(--success); flex-shrink: 0; margin-top: 2px; }

/* ========================================================
   FAQ ACCORDION
   ======================================================== */
.cd-faq-section { padding: 80px 0 60px; }
.cd-faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; width: 100%; }
.cd-faq-item {
    background: var(--bg-card-dark); border: 1px solid var(--border-subtle);
    border-radius: 14px; overflow: hidden; width: 100%; box-sizing: border-box;
}
.cd-faq-item.open { border-color: rgba(16, 185, 129, 0.35); }
.cd-faq-btn {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 18px 22px; background: transparent; border: none;
    color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; text-align: left;
    min-height: 56px; font-family: inherit;
}
.cd-faq-icon { color: #64748b; flex-shrink: 0; transition: transform 0.25s ease; }
.cd-faq-item.open .cd-faq-icon { transform: rotate(180deg); color: var(--primary); }
.cd-faq-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.cd-faq-body p { padding: 0 22px 20px; color: #94a3b8; font-size: 14.5px; line-height: 1.7; }
.cd-faq-item.open .cd-faq-body { max-height: 450px; }

/* ========================================================
   CTA BANNER & 4-COLUMN FOOTER
   ======================================================== */
.cd-cta-section { padding: 60px 0 90px; }
.cd-cta-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.16) 0%, rgba(10, 14, 23, 0.98) 100%);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 24px; padding: 64px 28px; text-align: center; width: 100%; box-sizing: border-box;
}
.cd-cta-card h2 { font-size: clamp(1.8rem, 4vw, 3rem); color: #fff; margin-bottom: 16px; }
.cd-cta-card p  { font-size: 16px; color: #94a3b8; max-width: 580px; margin: 0 auto 32px; }

.cd-footer {
    background: #060910; border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 64px 0 32px; width: 100%;
}
.cd-footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 48px; width: 100%;
}
.cd-footer-brand p { color: #64748b; font-size: 13.5px; line-height: 1.7; margin-top: 14px; max-width: 280px; }
.cd-footer-col h4 { font-size: 12px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 16px; }
.cd-footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.cd-footer-col li a { color: #64748b; font-size: 14px; }
.cd-footer-col li a:hover { color: #fff; }
.cd-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06); padding-top: 24px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 14px; font-size: 13px; color: #64748b;
}

/* ========================================================
   POLICY, ABOUT, FEATURES, CONTACT & BLOG INNER PAGES
   ======================================================== */
.cd-breadcrumbs {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
    font-size: 13px; color: #64748b; margin-bottom: 20px;
}
.cd-breadcrumbs a { color: #94a3b8; }
.cd-breadcrumbs a:hover { color: #fff; }
.cd-bc-sep { color: #475569; font-size: 11px; }
.cd-bc-current { color: #a5b4fc; font-weight: 600; }

.cd-about-hero { padding: 140px 0 50px; text-align: center; }

/* Policy Layout */
.cd-policy-wrap { padding: 140px 0 80px; width: 100%; }
.cd-policy-h1 { font-size: clamp(2.2rem, 4.8vw, 3.4rem); font-weight: 800; color: #fff; margin-bottom: 10px; }
.cd-policy-meta { font-size: 13.5px; color: #64748b; margin-bottom: 32px; }
.cd-policy-grid { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; width: 100%; }
.cd-policy-sidebar { position: sticky; top: 100px; }
.cd-policy-toc { padding: 24px; border-radius: var(--radius-lg); }
.cd-toc-title { font-size: 12px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border-subtle); }
.cd-toc-list { display: flex; flex-direction: column; gap: 6px; }
.cd-toc-list a { color: #94a3b8; font-size: 13px; padding: 4px 6px; border-radius: 6px; }
.cd-toc-list a:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }

/* Policy Prose */
.cd-policy-content, .cd-post-body {
    color: #d1d5db;
    font-size: 15.5px;
    line-height: 1.8;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}
.cd-prose h2 { font-size: 24px; font-weight: 700; color: #fff; margin: 36px 0 16px; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); overflow-wrap: break-word; }
.cd-prose h3 { font-size: 18px; font-weight: 600; color: #f3f4f6; margin: 24px 0 12px; overflow-wrap: break-word; }
.cd-prose p { margin-bottom: 18px; overflow-wrap: break-word; }
.cd-prose ul { list-style: disc; margin-bottom: 24px; padding-left: 20px; }
.cd-prose ol { list-style: decimal; margin-bottom: 24px; padding-left: 20px; }
.cd-prose li { margin-bottom: 8px; overflow-wrap: break-word; }
.cd-prose strong { color: #fff; font-weight: 600; }
.cd-legal-callout {
    background: rgba(16, 185, 129, 0.08); border: 1px solid var(--primary-glow-sm);
    border-radius: var(--radius-lg); padding: 20px 24px; display: flex; gap: 16px; align-items: flex-start;
    margin-bottom: 32px; font-size: 14.5px; color: #e0e7ff; line-height: 1.65;
    max-width: 100%; min-width: 0; box-sizing: border-box;
}
.cd-legal-callout > div:last-child { min-width: 0; overflow-wrap: break-word; word-break: break-word; }
.cd-callout-icon { font-size: 20px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.cd-contact-card-mini {
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius); padding: 18px 22px; font-size: 13.5px; color: #94a3b8; line-height: 1.7; margin-top: 14px;
}
.cd-contact-card-mini strong { color: #fff; }

/* About Page */
.cd-stat-counter-section { padding: 40px 0 80px; }
.cd-stat-counter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; width: 100%; }
.cd-stat-box { padding: 28px 22px; text-align: center; width: 100%; }
.cd-stat-number { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: #fff; margin-bottom: 6px; }
.cd-stat-label { font-size: 14px; font-weight: 700; color: #a5b4fc; margin-bottom: 6px; }
.cd-stat-detail { font-size: 12.5px; color: #64748b; line-height: 1.5; }

.cd-story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 80px; width: 100%; }
.cd-story-card { border-radius: var(--radius-xl); padding: 36px 28px; width: 100%; }
.cd-story-problem { background: rgba(239, 68, 68, 0.03); border: 1px solid rgba(239, 68, 68, 0.16); }
.cd-story-solution { background: rgba(16, 185, 129, 0.03); border: 1px solid rgba(16, 185, 129, 0.2); }
.cd-story-card h2, .cd-story-card h3 { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.cd-story-card p { font-size: 14.5px; color: #94a3b8; line-height: 1.7; }
.cd-story-bullets { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.cd-story-bullets li { font-size: 14px; color: #d1d5db; line-height: 1.6; }

.cd-pillars-section { padding: 40px 0 90px; }
.cd-pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; width: 100%; }
.cd-pillar-card { padding: 30px 22px; width: 100%; }
.cd-pillar-icon { font-size: 28px; margin-bottom: 16px; }
.cd-pillar-card h3 { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.cd-pillar-card p { font-size: 13.5px; color: #94a3b8; line-height: 1.65; }

/* Features Page */
.cd-feature-deep-section { padding: 80px 0; width: 100%; }
.cd-feature-deep-section.cd-alt-bg {
    background: rgba(255, 255, 255, 0.015); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle);
}
.cd-feature-deep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; width: 100%; }
.cd-feature-deep-grid.cd-reverse { direction: rtl; }
.cd-feature-deep-grid.cd-reverse > * { direction: ltr; }
.cd-feature-deep-text h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; color: #fff; margin-bottom: 16px; }
.cd-feature-deep-text p { font-size: 15px; color: #94a3b8; line-height: 1.75; margin-bottom: 24px; }
.cd-feature-checklist { display: flex; flex-direction: column; gap: 14px; }
.cd-feature-checklist li { display: flex; gap: 12px; font-size: 14px; color: #d1d5db; line-height: 1.55; }
.cd-feature-card-preview {
    background: #090f1d; border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl); padding: 24px; width: 100%; box-sizing: border-box;
}
.cd-preview-header {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 12px; font-size: 13px; font-weight: 700; color: #fff;
}
.cd-preview-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 14px; background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05); border-radius: var(--radius);
    margin-bottom: 8px; font-size: 13.5px; color: #d1d5db;
}

/* Contact Page */
.cd-contact-section { padding: 40px 0 90px; width: 100%; }
.cd-contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; width: 100%; }
.cd-contact-info-wrap { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.cd-contact-info-card { padding: 24px; display: flex; gap: 18px; align-items: flex-start; width: 100%; }
.cd-contact-info-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.cd-contact-info-card h3 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.cd-contact-info-card p { font-size: 13.5px; color: #94a3b8; margin-bottom: 8px; }
.cd-contact-link { color: #a5b4fc; font-weight: 600; font-size: 14px; }
.cd-contact-form-card { padding: 36px 30px; width: 100%; box-sizing: border-box; }

/* Blog Hub & Post */
.cd-blog-controls-wrap { max-width: 720px; margin: 32px auto 0; display: flex; flex-direction: column; gap: 18px; width: 100%; }
.cd-blog-search-box { position: relative; width: 100%; }
.cd-search-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: #64748b; font-size: 16px; }
.cd-blog-search-box input {
    width: 100%; min-height: 52px; padding: 12px 20px 12px 48px;
    background: #161f33 !important; border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: var(--radius-full); font-size: 14.5px; color: #fff !important;
}
.cd-filter-pills { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; width: 100%; }
.cd-filter-pill {
    padding: 7px 18px; border-radius: var(--radius-full); font-size: 13px; font-weight: 600;
    cursor: pointer; background: transparent; border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8; font-family: inherit;
}
.cd-filter-pill.active { background: rgba(16, 185, 129, 0.18); border-color: rgba(16, 185, 129, 0.45); color: #a5b4fc; }

.cd-blog-grid-section { padding: 40px 0 90px; width: 100%; }
.cd-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; width: 100%; }
.cd-blog-card { 
    padding: 0; 
    display: flex; 
    flex-direction: column; 
    width: 100%; 
    border-radius: 16px; 
    overflow: hidden; 
    background: #ffffff; 
    border: 1px solid rgba(0, 0, 0, 0.08); 
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04); 
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; 
}
[data-theme="dark"] .cd-blog-card {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.cd-blog-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 16px 32px rgba(5, 150, 105, 0.12); 
    border-color: rgba(5, 150, 105, 0.3); 
}
.cd-blog-card-thumb { 
    width: 100%; 
    aspect-ratio: 16 / 9; 
    overflow: hidden; 
    background: #064e3b; 
    position: relative; 
}
.cd-blog-card-thumb img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block; 
    transition: transform 0.35s ease; 
}
.cd-blog-card:hover .cd-blog-card-thumb img { 
    transform: scale(1.04); 
}
.cd-blog-card-body { 
    padding: 22px 22px 20px; 
    display: flex; 
    flex-direction: column; 
    flex: 1; 
}
.cd-blog-card-featured { /* Uniform grid */ }
.cd-blog-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cd-blog-time { font-size: 12px; color: #64748b; }
.cd-blog-card-title { font-size: 20px; font-weight: 700; line-height: 1.35; margin-bottom: 12px; }
.cd-blog-card-title a { color: #0f172a; text-decoration: none; transition: color 0.2s; }
[data-theme="dark"] .cd-blog-card-title a { color: #ffffff; }
.cd-blog-card-title a:hover { color: var(--primary); }
.cd-blog-card-excerpt { font-size: 14px; color: #94a3b8; line-height: 1.65; margin-bottom: 18px; flex: 1; }
.cd-blog-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.cd-blog-tag { font-size: 11.5px; color: #64748b; background: rgba(255, 255, 255, 0.04); padding: 3px 8px; border-radius: 4px; }
.cd-blog-card-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.cd-blog-author { display: flex; align-items: center; gap: 10px; }
.cd-author-avatar-sm {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #10b981);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25); color: #fff;
    font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center;
}
.cd-author-name { font-size: 12.5px; font-weight: 600; color: #fff; display: block; }
.cd-blog-date { font-size: 11.5px; color: #64748b; }
.cd-read-more-link { font-size: 13px; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 6px; }

.cd-reading-progress { position: fixed; top: 0; left: 0; width: 0%; height: 3px; background: linear-gradient(90deg, var(--primary), #8b5cf6); z-index: 2001; }
.cd-article-wrapper { padding: 140px 0 80px; width: 100%; }
.cd-post-title { font-size: clamp(2.1rem, 4.8vw, 3.2rem); font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 20px; }
.cd-post-meta-row {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
    gap: 18px; padding-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); margin-bottom: 24px;
}
.cd-author-meta-block { display: flex; align-items: center; gap: 12px; }
.cd-author-avatar-md {
    width: 42px; height: 42px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #10b981);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25); color: #fff;
    font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center;
}
.cd-post-author-name { font-size: 14px; color: #fff; display: block; }
.cd-post-author-role { font-size: 12px; color: #a5b4fc; }
.cd-post-date-info { font-size: 13px; color: #64748b; display: flex; gap: 14px; }

.cd-share-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; }
.cd-share-label { color: #94a3b8; font-weight: 600; }
.cd-share-btn {
    padding: 6px 14px; border-radius: var(--radius-full); font-size: 12.5px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.12); color: #fff; background: rgba(255, 255, 255, 0.04);
    text-decoration: none; font-family: inherit;
}
.cd-share-wa:hover { background: #25d366; border-color: #25d366; }
.cd-share-tw:hover { background: #1da1f2; border-color: #1da1f2; }
.cd-share-li:hover { background: #0077b5; border-color: #0077b5; }
.cd-share-copy:hover { background: var(--primary); border-color: var(--primary); }

.cd-article-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 56px;
    align-items: start;
    width: 100%;
    min-width: 0;
}
.cd-lead-paragraph { font-size: 17.5px; color: #e5e7eb; line-height: 1.75; margin-bottom: 26px; overflow-wrap: break-word; }

/* Responsive Table Container for Articles */
.cd-table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 28px 0;
    border-radius: var(--radius-md, 10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}
.cd-article-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 14px;
}
.cd-article-table th { background: rgba(255, 255, 255, 0.06); color: #fff; padding: 12px 16px; text-align: left; }
.cd-article-table td { padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); color: #d1d5db; }
.cd-author-box { padding: 28px; display: flex; gap: 20px; align-items: flex-start; margin-bottom: 40px; }
.cd-author-avatar-lg {
    width: 54px; height: 54px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #10b981);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25); color: #fff;
    font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.cd-article-sidebar-sticky { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 24px; }
.cd-article-trial-card { padding: 26px 20px; text-align: center; }
.cd-related-articles-widget { padding: 22px; }
.cd-related-list { display: flex; flex-direction: column; gap: 12px; }
.cd-related-list li a { display: block; }
.cd-rel-cat { font-size: 11px; font-weight: 700; color: #a5b4fc; text-transform: uppercase; display: block; margin-bottom: 2px; }
.cd-rel-title { font-size: 13.5px; color: #d1d5db; font-weight: 600; line-height: 1.4; display: block; }

/* Back to Top */
#cd-btt {
    position: fixed; bottom: 24px; right: 24px;
    width: 42px; height: 42px; background: #0f172a; color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 50%; cursor: pointer; display: flex;
    align-items: center; justify-content: center; z-index: 500; font-size: 15px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.35); opacity: 0; transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s; pointer-events: none;
}
#cd-btt.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
@media (max-width: 640px) {
    #cd-btt {
        bottom: 74px;
        right: 18px;
        width: 38px;
        height: 38px;
        font-size: 13px;
    }
}

/* ========================================================
   OWNER & ADMIN APP DASHBOARD LAYOUT
   ======================================================== */
.app-wrap { display: flex; min-height: 100vh; background: var(--bg-dark); width: 100%; }
.sidebar {
    width: 240px; min-height: 100vh; flex-shrink: 0;
    background: #0d1527; border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar .logo { padding: 20px 18px; font-size: 17px; font-weight: 800; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.sidebar nav { flex: 1; padding: 12px 0; }
.sidebar nav a {
    display: flex; align-items: center; gap: 12px; color: #94a3b8;
    padding: 12px 18px; font-size: 14px; font-weight: 500; border-left: 3px solid transparent;
}
.sidebar nav a:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.sidebar nav a.active { background: rgba(16, 185, 129, 0.12); color: #fff; border-left-color: var(--primary); font-weight: 600; }
.sidebar .user-box { padding: 16px 18px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 13px; background: #090e1c; }
.sidebar .user-box strong { color: #fff; display: block; }
.sidebar .user-box a { color: #94a3b8; font-size: 12.5px; }

.main { flex: 1; min-width: 0; background: var(--bg-dark); width: 100%; }
.topbar {
    background: #0d1527; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 24px; display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 20; width: 100%; box-sizing: border-box;
}
.topbar .page-title { font-size: 19px; font-weight: 700; color: #fff; }
.topbar .menu-toggle {
    display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: #fff;
    width: 44px; height: 44px; align-items: center; justify-content: center;
}
.content { padding: 24px; width: 100%; box-sizing: border-box; }
.sidebar-backdrop { display: none; }

.grid   { display: grid; gap: 20px; width: 100%; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Superadmin Shell */
.admin-shell { display: flex; min-height: 100vh; background: var(--bg-dark); width: 100%; }
.admin-side  { width: 220px; background: #0d1527; color: #cbd5e1; border-right: 1px solid rgba(255, 255, 255, 0.08); }
.admin-side .logo { padding: 18px; color: #fff; font-weight: 700; font-size: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.admin-side nav a { display: block; color: #94a3b8; padding: 12px 20px; font-size: 14px; }
.admin-side nav a:hover, .admin-side nav a.active { background: rgba(16, 185, 129, 0.12); color: #fff; }
.admin-main  { flex: 1; min-width: 0; background: var(--bg-dark); }
.admin-top   { background: #0d1527; border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding: 14px 24px; display: flex; justify-content: space-between; align-items: center; }
.admin-content { padding: 24px; }

/* Utilities */
.text-muted   { color: var(--text-muted-dark); }
.text-right   { text-align: right; }
.text-center  { text-align: center; }
.text-success { color: var(--success); }
.text-danger  { color: #f87171; }
.text-warning { color: var(--warning); }
.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}
.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}

/* ========================================================
   ROOT-CAUSE MOBILE BREAKPOINTS (ZERO VIEWPORT OVERFLOW)
   ======================================================== */
@media (max-width: 1024px) {
    .cd-bento-xl, .cd-bento-md { grid-column: span 12; }
    .cd-pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
    .cd-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .cd-stat-counter-grid { grid-template-columns: repeat(2, 1fr); }
    .cd-pillar-grid { grid-template-columns: repeat(2, 1fr); }
    .cd-blog-grid { grid-template-columns: 1fr 1fr; }
    /* .cd-blog-card-featured span 2 removed */
    .cd-policy-grid { grid-template-columns: 1fr; }
    .cd-policy-sidebar { display: none; }
    .cd-article-layout-grid { grid-template-columns: minmax(0, 1fr); }
    .cd-article-sidebar { margin-top: 32px; }
}

@media (max-width: 900px) {
    .cd-comparison-grid { grid-template-columns: 1fr; }
    .cd-story-grid { grid-template-columns: 1fr; }
    .cd-feature-deep-grid { grid-template-columns: 1fr; gap: 32px; }
    .cd-feature-deep-grid.cd-reverse { direction: ltr; }
    .cd-contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .cd-nav-links, .cd-nav-actions { display: none; }
    .cd-hamburger { display: flex; }
    .cd-kpi-row { grid-template-columns: 1fr; }
    .cd-cta-row { flex-direction: column; align-items: stretch; }
    .cd-cta-row .btn { width: 100%; }
    .cd-footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .cd-footer-bottom { flex-direction: column; text-align: center; gap: 10px; }
    
    /* Responsive forms: Strict 1-column */
    .form-row, .grid-2-col, .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }
    
    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        width: 260px;
        height: 100vh;
        transition: left 0.25s ease-in-out;
        z-index: 1000;
        box-shadow: none;
    }
    .sidebar.open {
        left: 0;
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.7);
    }
    .sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.65);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        z-index: 999;
    }
    .sidebar-backdrop.active {
        display: block;
    }
    .topbar {
        padding: 12px 16px;
    }
    .topbar .menu-toggle {
        display: inline-flex;
    }
    .content {
        padding: 14px 12px;
        min-width: 0;
        max-width: 100vw;
        box-sizing: border-box;
    }
    .main {
        min-width: 0;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    .grid-2 > *, .grid-3 > *, .grid-4 > * {
        grid-column: span 1 !important;
    }
    .card {
        padding: 16px;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }
    .stat-card {
        padding: 14px 16px;
    }
    .stat-card .value {
        font-size: 22px;
    }
    .cd-stat-counter-grid { grid-template-columns: 1fr; }
    .cd-pillar-grid { grid-template-columns: 1fr; }
    .cd-blog-grid { grid-template-columns: 1fr; }
    /* .cd-blog-card-featured span 1 removed */
    .cd-contact-form-card { padding: 24px 18px; }
    .cd-post-meta-row { flex-direction: column; align-items: flex-start; }
    .cd-share-bar { flex-direction: column; align-items: flex-start; }
    .cd-share-bar .cd-share-btn { width: 100%; justify-content: center; }
    .cd-hero-h1 { min-height: auto; }
}

@media (max-width: 480px) {
    .cd-hero-section {
        padding: 84px 0 24px !important;
    }
    .cd-hero-h1 { font-size: 1.85rem; min-height: auto; }
    .cd-pricing-grid { max-width: 100%; }
    .cd-nav-wrap { width: calc(100% - 20px); padding: 8px 12px; }
    .cd-mock-topbar { flex-wrap: wrap; gap: 8px; }
    .cd-author-box { flex-direction: column; }
    .cd-filter-pills { flex-direction: column; }
    .cd-filter-pill { width: 100%; text-align: center; }
    .auth-card { padding: 28px 18px; }
}

@media (max-width: 360px) {
    .btn { padding: 10px 14px; font-size: 14px; }
    .cd-hero-h1 { font-size: 1.65rem; min-height: auto; }
    .content { padding: 12px; }
}

/* ========================================================
   LIGHT MODE THEME SYSTEM (WCAG 2.1 AA ACCESSIBLE)
   ======================================================== */
[data-theme="light"] {
    --bg-dark:          #edf4fa; /* 60% Dominant Canvas */
    --bg-surface-dark:  #ffffff; /* 30% Pure White Cards */
    --bg-card-dark:     #ffffff;
    --bg-card-hover:    #e4eef7;
    --bg-input-dark:    #ffffff;
    --bg-input-focus:   #ffffff;

    --border-subtle:    #cbd5e1;
    --border-focus:     rgba(5, 150, 105, 0.5);
    --border-glow:      rgba(16, 185, 129, 0.15);
    --primary:          #059669; /* Deep Jewel Emerald (AAA contrast) */
    --primary-hover:    #047857;
    --primary-light:    #ecfdf5;
    --primary-glow:     rgba(5, 150, 105, 0.25);
    --primary-glow-sm:  rgba(5, 150, 105, 0.12);
    --border-focus:     rgba(5, 150, 105, 0.5);
    --border-glow:      rgba(5, 150, 105, 0.2);

    --text-main-dark:   #0f172a;
    --text-muted-dark:  #334155;
    --text-dim-dark:    #475569;
    --text-label-dark:  #0f172a;

    --bg:           #edf4fa;
    --surface:      #ffffff;
    --text:         #0f172a;
    --text-muted:   #334155;
    --text-heading: #0f172a;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --border:       #cbd5e1;
    --shadow-sm:    0 1px 3px rgba(15, 23, 42, 0.05);
    --shadow:       0 4px 14px rgba(15, 23, 42, 0.06);
    --shadow-lg:    0 12px 30px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] body {
    background-color: #edf4fa;
    color: #0f172a;
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
    color: #0f172a;
}

/* Light Mode Public Navbar */
[data-theme="light"] .cd-nav-wrap {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .cd-nav-wrap.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .cd-nav-logo {
    color: #0f172a;
}
[data-theme="light"] .cd-nav-links a {
    color: #475569;
}
[data-theme="light"] .cd-nav-links a:hover {
    color: #0f172a;
    background: #f1f5f9;
}
[data-theme="light"] .cd-hamburger {
    color: #0f172a;
    border-color: #cbd5e1;
}

/* Light Mode Mobile Drawer */
[data-theme="light"] .cd-mobile-nav {
    background: #ffffff;
    border-left: 1px solid #e2e8f0;
}
[data-theme="light"] .cd-mobile-nav a {
    color: #334155;
}
[data-theme="light"] .cd-mobile-nav a:hover {
    color: var(--primary);
    background: #f1f5f9;
}
[data-theme="light"] .cd-mobile-close {
    color: #334155;
    border-color: #cbd5e1;
}
[data-theme="light"] .cd-mobile-divider {
    background: #e2e8f0;
}

/* Light Mode Hero & Text */
[data-theme="light"] .cd-hero-h1 {
    color: #0f172a;
}
[data-theme="light"] .cd-hero-sub {
    color: #475569;
}
[data-theme="light"] .cd-status-pill {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.25);
    color: #4f46e5;
}
[data-theme="light"] .cd-status-dot {
    background: #4f46e5;
}
[data-theme="light"] .cd-micro-trust {
    color: #475569;
}

/* Light Mode Buttons */
[data-theme="light"] .btn-secondary {
    background: #f1f5f9;
    color: #0f172a !important;
    border-color: #cbd5e1;
}
[data-theme="light"] .btn-secondary:hover {
    background: #e2e8f0;
}
[data-theme="light"] .btn-outline-light {
    color: #0f172a !important;
    border-color: #cbd5e1;
}
[data-theme="light"] .btn-outline-light:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}
[data-theme="light"] .btn-ghost {
    color: #475569 !important;
}
[data-theme="light"] .btn-ghost:hover {
    color: #0f172a !important;
    background: #f1f5f9;
}

/* Light Mode Form Controls */
[data-theme="light"] .form-control,
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea,
[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="email"],
[data-theme="light"] input[type="password"],
[data-theme="light"] input[type="number"],
[data-theme="light"] input[type="tel"],
[data-theme="light"] input[type="date"],
[data-theme="light"] input[type="search"],
[data-theme="light"] select,
[data-theme="light"] textarea {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}
[data-theme="light"] input:focus,
[data-theme="light"] select:focus,
[data-theme="light"] textarea:focus,
[data-theme="light"] .form-control:focus,
[data-theme="light"] .form-group input:focus {
    border-color: var(--primary) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
}
[data-theme="light"] label,
[data-theme="light"] .form-label,
[data-theme="light"] .form-group label {
    color: #1e293b !important;
}
[data-theme="light"] ::placeholder {
    color: #94a3b8 !important;
}
[data-theme="light"] select option {
    background: #ffffff;
    color: #0f172a;
}

/* Light Mode Cards, Bento & Sections */
[data-theme="light"] .card,
[data-theme="light"] .stat-card,
[data-theme="light"] .cd-bento-card,
[data-theme="light"] .cd-stat-box,
[data-theme="light"] .cd-pillar-card,
[data-theme="light"] .cd-blog-card,
[data-theme="light"] .cd-contact-form-card,
[data-theme="light"] .cd-contact-info-card,
[data-theme="light"] .cd-policy-toc,
[data-theme="light"] .cd-price-card,
[data-theme="light"] .cd-faq-item,
[data-theme="light"] .receipt {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04) !important;
    color: #0f172a !important;
}
[data-theme="light"] .cd-bento-h3,
[data-theme="light"] .cd-comp-h3,
[data-theme="light"] .cd-section-h2,
[data-theme="light"] .stat-card .value,
[data-theme="light"] .cd-stat-number,
[data-theme="light"] .cd-pillar-card h3,
[data-theme="light"] .cd-price-amount,
[data-theme="light"] .cd-faq-btn,
[data-theme="light"] .cd-story-card h2,
[data-theme="light"] .cd-story-card h3,
[data-theme="light"] .cd-preview-header,
[data-theme="light"] .receipt h2 {
    color: #0f172a !important;
}
[data-theme="light"] .cd-bento-desc,
[data-theme="light"] .cd-comp-list li,
[data-theme="light"] .cd-section-desc,
[data-theme="light"] .cd-stat-detail,
[data-theme="light"] .cd-pillar-card p,
[data-theme="light"] .cd-blog-card-excerpt,
[data-theme="light"] .cd-feature-deep-text p,
[data-theme="light"] .cd-story-card p,
[data-theme="light"] .cd-faq-body p,
[data-theme="light"] .cd-price-desc {
    color: #475569 !important;
}
[data-theme="light"] .cd-bento-tag {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
    color: #4f46e5;
}
[data-theme="light"] .cd-price-feats li {
    color: #334155;
}
[data-theme="light"] .cd-price-card.cd-featured {
    border-color: var(--primary) !important;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.12) !important;
}
[data-theme="light"] .cd-cta-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, #ffffff 100%);
    border-color: rgba(16, 185, 129, 0.25);
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.08);
}
[data-theme="light"] .cd-cta-card h2 {
    color: #0f172a;
}
[data-theme="light"] .cd-cta-card p {
    color: #475569;
}
[data-theme="light"] .cd-feature-deep-section.cd-alt-bg {
    background: #f1f5f9;
    border-color: #e2e8f0;
}
[data-theme="light"] .cd-story-problem {
    background: #fff5f5;
    border-color: #fed7d7;
}
[data-theme="light"] .cd-story-solution {
    background: #f0fdf4;
    border-color: #bbf7d0;
}
[data-theme="light"] .cd-story-bullets li,
[data-theme="light"] .cd-feature-checklist li {
    color: #334155;
}

/* Light Mode Tables */
[data-theme="light"] .table-wrap,
[data-theme="light"] .table-responsive {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .table th,
[data-theme="light"] .table-wrap th,
[data-theme="light"] .table-responsive th {
    background: #f8fafc;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
}
[data-theme="light"] .table td,
[data-theme="light"] .table-wrap td,
[data-theme="light"] .table-responsive td {
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}
[data-theme="light"] .table tbody tr,
[data-theme="light"] .table-wrap tbody tr,
[data-theme="light"] .table-responsive tbody tr {
    border-top: 1px solid #f1f5f9;
}
[data-theme="light"] .table tbody tr:nth-child(even),
[data-theme="light"] .table-wrap tbody tr:nth-child(even),
[data-theme="light"] .table-responsive tbody tr:nth-child(even) {
    background: #f8fafc;
}
[data-theme="light"] .table tbody tr:hover,
[data-theme="light"] .table-wrap tbody tr:hover,
[data-theme="light"] .table-responsive tbody tr:hover {
    background: #f1f5f9;
}

[data-theme="light"] .cd-mock-table tr,
[data-theme="light"] .cd-mock-table tbody tr,
[data-theme="light"] .cd-mock-table tbody tr:nth-child(even),
[data-theme="light"] .cd-mock-table tbody tr:hover {
    background: transparent !important;
}

/* Light Mode Auth Screens */
[data-theme="light"] .auth-wrap {
    background: #edf4fa;
    background-image: radial-gradient(circle at 50% 0%, rgba(5, 150, 105, 0.08) 0%, transparent 60%);
}
[data-theme="light"] .auth-card {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}
[data-theme="light"] .auth-card h1 {
    color: #0f172a;
}
[data-theme="light"] .auth-card .subtitle,
[data-theme="light"] .auth-card .footer-link {
    color: #475569;
}

/* Light Mode Dashboard App Layout */
[data-theme="light"] .app-wrap,
[data-theme="light"] .admin-shell {
    background: #edf4fa;
}
[data-theme="light"] .sidebar,
[data-theme="light"] .admin-side {
    background: #ffffff;
    border-right: 1.5px solid #cbd5e1;
}
[data-theme="light"] .sidebar .logo,
[data-theme="light"] .admin-side .logo {
    color: #0f172a;
    border-bottom: 1.5px solid #cbd5e1;
}
[data-theme="light"] .sidebar .logo a,
[data-theme="light"] .admin-side .logo a {
    color: #0f172a !important;
}
[data-theme="light"] .sidebar nav a,
[data-theme="light"] .admin-side nav a {
    color: #1e293b;
    font-weight: 600;
}
[data-theme="light"] .sidebar nav a:hover,
[data-theme="light"] .admin-side nav a:hover {
    background: #e0f2fe;
    color: #0369a1;
}
[data-theme="light"] .sidebar nav a.active,
[data-theme="light"] .admin-side nav a.active {
    background: #ecfdf5;
    color: #047857;
    border-left-color: #059669;
    font-weight: 700;
}
[data-theme="light"] .sidebar .user-box {
    background: #edf4fa;
    border-top: 1.5px solid #cbd5e1;
    color: #334155;
}
[data-theme="light"] .sidebar .user-box strong {
    color: #0f172a;
}
[data-theme="light"] .sidebar .user-box a {
    color: var(--primary) !important;
    font-weight: 600;
}
[data-theme="light"] .sidebar .user-box a:hover {
    color: var(--primary-hover) !important;
}
[data-theme="light"] .topbar,
[data-theme="light"] .admin-top {
    background: #ffffff;
    border-bottom: 1.5px solid #cbd5e1;
}
[data-theme="light"] .topbar .page-title,
[data-theme="light"] .admin-top .page-title {
    color: #0f172a !important;
}
[data-theme="light"] .topbar .menu-toggle {
    color: #0f172a;
}
[data-theme="light"] .main,
[data-theme="light"] .admin-main {
    background: #edf4fa;
}

/* Light Mode Badges (High Contrast) */
[data-theme="light"] .badge-green {
    background: #dcfce7 !important;
    color: #15803d !important;
    border: 1px solid #bbf7d0 !important;
}
[data-theme="light"] .badge-red {
    background: #fee2e2 !important;
    color: #b91c1c !important;
    border: 1px solid #fecaca !important;
}
[data-theme="light"] .badge-yellow {
    background: #fef3c7 !important;
    color: #b45309 !important;
    border: 1px solid #fde68a !important;
}
[data-theme="light"] .badge-gray {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
}
[data-theme="light"] .badge-blue {
    background: #dbeafe !important;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe !important;
}

/* Light Mode Banner Notices (Trial / Expiry) */
[data-theme="light"] .banner-warning {
    background: #fffbeb !important;
    color: #92400e !important;
    border: 1px solid #fde68a !important;
}
[data-theme="light"] .banner-warning strong {
    color: #78350f !important;
}
[data-theme="light"] .banner-danger {
    background: #fef2f2 !important;
    color: #991b1b !important;
    border: 1px solid #fecaca !important;
}
[data-theme="light"] .banner-danger strong {
    color: #7f1d1d !important;
}
[data-theme="light"] .banner-info {
    background: #eff6ff !important;
    color: #1e40af !important;
    border: 1px solid #bfdbfe !important;
}
[data-theme="light"] .banner-info strong {
    color: #1e3a8a !important;
}

/* Light Mode Flash Messages */
[data-theme="light"] .flash-success {
    background: #ecfdf5 !important;
    color: #065f46 !important;
    border-color: #10b981 !important;
}
[data-theme="light"] .flash-error {
    background: #fef2f2 !important;
    color: #991b1b !important;
    border-color: #ef4444 !important;
}
[data-theme="light"] .flash-info {
    background: #eff6ff !important;
    color: #1e40af !important;
    border-color: #3b82f6 !important;
}

/* Light Mode Dashboard Cards & Elements */
[data-theme="light"] .quick-actions-bar .card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    color: #0f172a !important;
}
[data-theme="light"] .quick-actions-bar .card:hover {
    border-color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.1) !important;
}
[data-theme="light"] .stat-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
    color: #0f172a !important;
}
[data-theme="light"] .stat-card .label {
    color: #64748b !important;
}
[data-theme="light"] .stat-card .value {
    color: #0f172a !important;
}
[data-theme="light"] .toolbar h2,
[data-theme="light"] .toolbar h3 {
    color: #0f172a !important;
}

/* Light Mode Table Contrast */
[data-theme="light"] .table-wrap table th {
    background: #e9f2fa !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    border-bottom: 2px solid #cbd5e1 !important;
}
[data-theme="light"] .table-wrap table td {
    color: #0f172a !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
[data-theme="light"] .table-wrap table td strong {
    color: #0f172a !important;
}
[data-theme="light"] .table-wrap table td a:not(.btn) {
    color: #047857 !important;
    font-weight: 600 !important;
}
[data-theme="light"] .table-wrap table td a:not(.btn):hover {
    color: #065f46 !important;
}
[data-theme="light"] .table-wrap table td a.btn,
[data-theme="light"] .table-wrap table td a.btn-primary {
    color: #ffffff !important;
    font-weight: 700 !important;
}
[data-theme="light"] .table-wrap table td.text-muted,
[data-theme="light"] .table-wrap table td .text-muted {
    color: #475569 !important;
    font-weight: 500 !important;
}

/* SVG Chart Elements Contrast Rules (Both Themes) */
.cd-chart-title { fill: var(--text-main-dark); }
.cd-chart-axis-text { fill: var(--text-muted-dark); }
.cd-chart-val-text { fill: var(--text-main-dark); font-weight: 700; }
.cd-chart-legend-text { fill: var(--text-muted-dark); font-weight: 600; }
.cd-chart-center-val { fill: var(--text-main-dark); font-weight: 800; }
.cd-chart-center-sub { fill: var(--text-muted-dark); font-weight: 600; }
.cd-chart-grid-line { stroke: rgba(255, 255, 255, 0.08); }
.cd-chart-axis-line { stroke: rgba(255, 255, 255, 0.2); }

[data-theme="light"] .cd-chart-title { fill: #0f172a !important; }
[data-theme="light"] .cd-chart-axis-text { fill: #475569 !important; }
[data-theme="light"] .cd-chart-val-text { fill: #0f172a !important; }
[data-theme="light"] .cd-chart-legend-text { fill: #1e293b !important; }
[data-theme="light"] .cd-chart-center-val { fill: #0f172a !important; }
[data-theme="light"] .cd-chart-center-sub { fill: #64748b !important; }
[data-theme="light"] .cd-chart-grid-line { stroke: #e2e8f0 !important; }
[data-theme="light"] .cd-chart-axis-line { stroke: #cbd5e1 !important; }

/* Light Mode Footer */
[data-theme="light"] .cd-footer {
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
}
[data-theme="light"] .cd-footer .cd-nav-logo {
    color: #0f172a;
}
[data-theme="light"] .cd-footer p {
    color: #475569;
}
[data-theme="light"] .cd-footer-col h4 {
    color: #0f172a;
}
[data-theme="light"] .cd-footer-col a {
    color: #64748b;
}
[data-theme="light"] .cd-footer-col a:hover {
    color: #0f172a;
}
[data-theme="light"] .cd-footer-bottom {
    border-top: 1px solid #e2e8f0;
    color: #64748b;
}

/* Theme Toggle Button Component */
.cd-theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8fafc;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.cd-theme-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateY(-1px);
}
[data-theme="light"] .cd-theme-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
}
[data-theme="light"] .cd-theme-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}


/* ========================================================
   LIGHT MODE POLICY, LEGAL & PROSE TEXT CONTRAST FIX
   ======================================================== */
[data-theme="light"] .cd-policy-wrap,
[data-theme="light"] .cd-article-wrapper,
[data-theme="light"] .cd-about-hero {
    padding-top: 160px;
}
[data-theme="light"] .cd-policy-content,
[data-theme="light"] .cd-post-body,
[data-theme="light"] .cd-prose p,
[data-theme="light"] .cd-prose li {
    color: #334155 !important;
    font-weight: 450;
}
[data-theme="light"] .cd-prose strong {
    color: #0f172a !important;
}
[data-theme="light"] .cd-prose h1,
[data-theme="light"] .cd-prose h2,
[data-theme="light"] .cd-prose h3,
[data-theme="light"] .cd-prose h4,
[data-theme="light"] .cd-policy-h1 {
    color: #0f172a !important;
}
[data-theme="light"] .cd-legal-callout {
    background: #eef2ff !important;
    border: 1px solid #c7d2fe !important;
    color: #1e293b !important;
}
[data-theme="light"] .cd-legal-callout strong {
    color: #312e81 !important;
}
[data-theme="light"] .cd-callout-icon {
    color: #4f46e5 !important;
}
[data-theme="light"] .cd-policy-toc {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}
[data-theme="light"] .cd-toc-title {
    color: #0f172a !important;
    border-bottom-color: #e2e8f0 !important;
}
[data-theme="light"] .cd-toc-list a {
    color: #475569 !important;
    font-weight: 500;
}
[data-theme="light"] .cd-toc-list a:hover {
    color: #4f46e5 !important;
    background: #f1f5f9 !important;
}
[data-theme="light"] .cd-breadcrumbs a {
    color: #475569 !important;
}
[data-theme="light"] .cd-breadcrumbs a:hover {
    color: #0f172a !important;
}
[data-theme="light"] .cd-bc-sep {
    color: #94a3b8 !important;
}
[data-theme="light"] .cd-bc-current {
    color: #4f46e5 !important;
}
[data-theme="light"] .cd-policy-meta {
    color: #64748b !important;
}
[data-theme="light"] .cd-table-responsive {
    border-color: #e2e8f0 !important;
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .cd-article-table th {
    background: #f8fafc !important;
    color: #0f172a !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
[data-theme="light"] .cd-article-table td {
    border-bottom: 1px solid #f1f5f9 !important;
    color: #334155 !important;
}
[data-theme="light"] .cd-article-table tr:hover td {
    background: rgba(241, 245, 249, 0.6) !important;
}
[data-theme="light"] .cd-post-title {
    color: #0f172a !important;
}
[data-theme="light"] .cd-post-author-name {
    color: #0f172a !important;
    font-weight: 700 !important;
}
[data-theme="light"] .cd-post-author-role {
    color: #4f46e5 !important;
    font-weight: 600;
}
[data-theme="light"] .cd-post-date-info {
    color: #64748b !important;
}
[data-theme="light"] .cd-share-label {
    color: #475569 !important;
}
[data-theme="light"] .cd-share-btn {
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .cd-share-btn:hover {
    color: #ffffff !important;
}
[data-theme="light"] .cd-share-wa:hover { background: #16a34a !important; border-color: #16a34a !important; color: #fff !important; }
[data-theme="light"] .cd-share-tw:hover { background: #0284c7 !important; border-color: #0284c7 !important; color: #fff !important; }
[data-theme="light"] .cd-share-li:hover { background: #0077b5 !important; border-color: #0077b5 !important; color: #fff !important; }
[data-theme="light"] .cd-share-copy:hover { background: #4f46e5 !important; border-color: #4f46e5 !important; color: #fff !important; }
[data-theme="light"] .cd-article-trial-card,
[data-theme="light"] .cd-related-articles-widget {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}
[data-theme="light"] .cd-article-trial-card h4 {
    color: #0f172a !important;
}
[data-theme="light"] .cd-article-trial-card p {
    color: #475569 !important;
}
[data-theme="light"] .cd-rel-title {
    color: #1e293b !important;
}
[data-theme="light"] .cd-rel-title:hover {
    color: #4f46e5 !important;
}
[data-theme="light"] .cd-rel-cat {
    color: #4f46e5 !important;
}
[data-theme="light"] .cd-blog-tag {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
}
[data-theme="light"] .cd-blog-tag:hover {
    color: #4f46e5 !important;
    border-color: #c7d2fe !important;
}

/* ========================================================
   LIGHT MODE TEXT CONTRAST & VISIBILITY SYSTEM
   Selector: [data-theme="light"]
   ======================================================== */
[data-theme="light"] {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 1. Headings & Titles (h1-h6, Card Titles, Link Titles) */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6,
[data-theme="light"] .cd-blog-card-title,
[data-theme="light"] .cd-blog-card-title a,
[data-theme="light"] .cd-post-title,
[data-theme="light"] .cd-contact-info-card h3,
[data-theme="light"] .cd-author-name,
[data-theme="light"] .cd-post-author-name,
[data-theme="light"] .cd-rel-title,
[data-theme="light"] .cd-toc-title,
[data-theme="light"] .cd-story-card h2,
[data-theme="light"] .cd-story-card h3,
[data-theme="light"] .cd-pillar-card h3,
[data-theme="light"] .cd-feature-deep-text h2,
[data-theme="light"] .card h1,
[data-theme="light"] .card h2,
[data-theme="light"] .card h3,
[data-theme="light"] .card h4 {
    color: #0f172a !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* High-Contrast Gradient CTA Banners (Must remain bright white on all themes) */
[data-theme="light"] .cd-cta-banner h1,
[data-theme="light"] .cd-cta-banner h2,
[data-theme="light"] .cd-cta-banner h3,
[data-theme="light"] .cd-cta-banner p,
[data-theme="light"] .business-cta-gradient h1,
[data-theme="light"] .business-cta-gradient h2,
[data-theme="light"] .business-cta-gradient h3,
[data-theme="light"] .business-cta-gradient span:not(.btn),
[data-theme="light"] .gym-cta-gradient h1,
[data-theme="light"] .gym-cta-gradient h2,
[data-theme="light"] .gym-cta-gradient h3,
[data-theme="light"] .gym-cta-gradient span:not(.btn),
[data-theme="light"] .dojo-cta-gradient h1,
[data-theme="light"] .dojo-cta-gradient h2,
[data-theme="light"] .dojo-cta-gradient h3,
[data-theme="light"] .dojo-cta-gradient span:not(.btn),
[data-theme="light"] .preschool-cta-gradient h1,
[data-theme="light"] .preschool-cta-gradient h2,
[data-theme="light"] .preschool-cta-gradient h3,
[data-theme="light"] .preschool-cta-gradient span:not(.btn),
.cd-cta-banner h2,
.business-cta-gradient h2,
.gym-cta-gradient h2,
.dojo-cta-gradient h2,
.preschool-cta-gradient h2,
[data-theme="light"] .section-security h1,
[data-theme="light"] .section-security h2,
[data-theme="light"] .section-security h3,
[data-theme="light"] .section-security .section-title,
[data-theme="light"] .section-security .sec-title,
[data-theme="light"] #compliance h1,
[data-theme="light"] #compliance h2,
[data-theme="light"] #compliance h3,
[data-theme="light"] #compliance .section-title,
[data-theme="light"] #compliance .sec-title,
[data-theme="light"] .sec-card h3,
[data-theme="light"] .sec-card .sec-title,
.section-security h1,
.section-security h2,
.section-security h3,
.section-security .section-title,
.section-security .sec-title,
#compliance h1,
#compliance h2,
#compliance h3,
#compliance .section-title,
#compliance .sec-title,
.sec-card h3,
.sec-card .sec-title {
    color: #ffffff !important;
}

[data-theme="light"] .section-security p,
[data-theme="light"] .section-security .sec-desc,
[data-theme="light"] #compliance p,
[data-theme="light"] #compliance .sec-desc,
[data-theme="light"] .sec-card p,
[data-theme="light"] .sec-card .sec-desc,
.section-security p,
.section-security .sec-desc,
#compliance p,
#compliance .sec-desc,
.sec-card p,
.sec-card .sec-desc {
    color: #cbd5e1 !important;
}

[data-theme="light"] .cd-cta-banner p,
[data-theme="light"] .business-cta-gradient p,
[data-theme="light"] .gym-cta-gradient p,
[data-theme="light"] .dojo-cta-gradient p,
[data-theme="light"] .preschool-cta-gradient p,
.cd-cta-banner p,
.business-cta-gradient p,
.gym-cta-gradient p,
.dojo-cta-gradient p,
.preschool-cta-gradient p {
    color: #f1f5f9 !important;
    opacity: 0.95 !important;
}

[data-theme="light"] .cd-blog-card-title a:hover,
[data-theme="light"] .cd-rel-title:hover {
    color: #4338ca !important;
}

/* 2. Body Paragraphs & Subtitles */
[data-theme="light"] p,
[data-theme="light"] .cd-section-desc,
[data-theme="light"] .cd-hero-sub,
[data-theme="light"] .cd-blog-card-excerpt,
[data-theme="light"] .cd-feature-deep-text p,
[data-theme="light"] .cd-story-card p,
[data-theme="light"] .cd-contact-info-card p,
[data-theme="light"] .cd-contact-card-mini,
[data-theme="light"] .cd-prose p,
[data-theme="light"] .cd-prose li {
    color: #334155 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 3. Metadata (Dates, Read Time, Tags & Badges) */
[data-theme="light"] .cd-blog-date,
[data-theme="light"] .cd-blog-time,
[data-theme="light"] .cd-post-date-info,
[data-theme="light"] .cd-post-date-info span {
    color: #475569 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

[data-theme="light"] .cd-blog-tag {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}

[data-theme="light"] .cd-bento-tag {
    background: #eef2ff !important;
    border: 1px solid #c7d2fe !important;
    color: #4338ca !important;
}

[data-theme="light"] .cd-filter-pill {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
}

[data-theme="light"] .cd-filter-pill:hover {
    background: #f8fafc !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

[data-theme="light"] .cd-filter-pill.active {
    background: #eef2ff !important;
    border-color: var(--primary) !important;
    color: #4338ca !important;
}

[data-theme="light"] .cd-blog-search-box input {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="light"] .cd-blog-search-box input::placeholder {
    color: #94a3b8 !important;
}

/* Billing Checkout UPI Badge & Quick Steps (Light/Dark Mode) */
.checkout-upi-label {
    color: #94a3b8;
}
.checkout-upi-code {
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: inline-block;
}
.checkout-quick-steps {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #e2e8f0;
}
.checkout-quick-steps strong {
    color: #ffffff;
}

[data-theme="light"] .checkout-upi-label {
    color: #475569 !important;
}
[data-theme="light"] .checkout-upi-code {
    color: #0f172a !important;
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
}
[data-theme="light"] .checkout-quick-steps {
    background: #f8fafc !important;
    border: 1px solid #c7d2fe !important;
    color: #334155 !important;
}
[data-theme="light"] .checkout-quick-steps strong {
    color: #0f172a !important;
}



/* ========================================================
   HUMAN-DESIGNED PREMIUM SAAS DESIGN SYSTEM (VEYHUB REDESIGN)
   Restrained palette · Editorial hierarchy · Product-led layouts
   ======================================================== */

/* --- 1. GLOBAL EYEBROWS & SECTION TYPOGRAPHY --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}
section[id],
div[id].cd-workbench-frame,
.cd-workbench-section,
.cd-matrix-section,
.cd-pillars-section,
.cd-pricing-section,
.cd-faq-section,
.cd-cta-section {
    scroll-margin-top: 100px !important;
}
.cd-section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 44px;
}
.cd-section-eyebrow {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4338ca;
    margin-bottom: 10px;
    display: inline-block;
}
[data-theme="dark"] .cd-section-eyebrow {
    color: #818cf8;
}
.cd-section-h2 {
    font-size: clamp(1.85rem, 3.4vw, 2.6rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.18;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}
[data-theme="dark"] .cd-section-h2 {
    color: #f8fafc;
}
.cd-section-sub {
    font-size: 15px;
    color: #475569;
    line-height: 1.68;
    margin: 0 auto;
}
[data-theme="dark"] .cd-section-sub {
    color: #94a3b8;
}

/* --- 2. HERO SECTION --- */
.cd-hero-section {
    position: relative;
    padding: 135px 0 65px;
    background: radial-gradient(120% 80% at 50% -10%, rgba(16, 185, 129, 0.08) 0%, rgba(6, 182, 212, 0.04) 40%, #ffffff 80%);
    border-bottom: 1px solid #e2e8f0;
}
[data-theme="dark"] .cd-hero-section {
    background: radial-gradient(120% 80% at 50% -10%, rgba(16, 185, 129, 0.12) 0%, rgba(6, 182, 212, 0.06) 40%, #0a0e17 80%);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}
.cd-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}
.cd-hero-content {
    text-align: left;
}
.cd-hero-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #065f46;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.22);
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.06);
    margin-bottom: 18px;
}
[data-theme="dark"] .cd-hero-eyebrow {
    color: #34d399;
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
}
.cd-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: cdPulseDot 2s infinite ease-in-out;
}
@keyframes cdPulseDot {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.cd-desktop-br {
    display: inline;
}
.cd-hero-main-cta {
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cd-hero-main-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(5, 150, 105, 0.38);
}
.cd-hero-h1 {
    font-size: clamp(2.35rem, 4.4vw, 3.8rem);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -0.035em;
    color: #0f172a;
    margin: 0 0 20px;
    text-align: left;
}
[data-theme="dark"] .cd-hero-h1 {
    color: #f8fafc;
}
.cd-hero-h1-accent {
    background: linear-gradient(135deg, #059669 0%, #0891b2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
[data-theme="dark"] .cd-hero-h1-accent {
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
.cd-hero-desc {
    font-size: clamp(1rem, 1.8vw, 1.125rem);
    color: #475569;
    line-height: 1.68;
    max-width: 560px;
    margin: 0 0 28px;
    text-align: left;
}
[data-theme="dark"] .cd-hero-desc {
    color: #94a3b8;
}
.cd-hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.cd-hero-trust-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: #475569;
    margin-bottom: 30px;
}
[data-theme="dark"] .cd-hero-trust-bar {
    color: #94a3b8;
}
.cd-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.cd-hero-stats-row {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 22px;
    border-top: 1px solid #e2e8f0;
    contain: layout;
}
[data-theme="dark"] .cd-hero-stats-row {
    border-top-color: rgba(255, 255, 255, 0.08);
}
.cd-hero-stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cd-hero-stat-val {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}
[data-theme="dark"] .cd-hero-stat-val {
    color: #f8fafc;
}
.cd-hero-stat-lbl {
    font-size: 12px;
    color: #475569;
    font-weight: 600;
}
[data-theme="dark"] .cd-hero-stat-lbl {
    color: #94a3b8;
}
.cd-hero-stat-sep {
    width: 1px;
    height: 32px;
    background: #e2e8f0;
}
[data-theme="dark"] .cd-hero-stat-sep {
    background: rgba(255, 255, 255, 0.08);
}

/* Hero Right Column: Teacher Visual + Grounded Classroom Status */
.cd-hero-visual {
    position: relative;
    width: 100%;
}
.cd-hero-media-card {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}
.cd-teacher-image-wrap {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    aspect-ratio: 4 / 3;
}
.cd-teacher-image-wrap picture {
    width: 100%;
    height: 100%;
    display: block;
}
[data-theme="dark"] .cd-teacher-image-wrap {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6);
}
.cd-teacher-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cd-teacher-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.cd-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

/* Grounded Classroom Status Card (Anchored naturally, no random floaters) */
.cd-hero-live-card {
    margin-top: -24px;
    position: relative;
    z-index: 2;
    margin-left: 18px;
    margin-right: 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.09);
    text-align: left;
}
[data-theme="dark"] .cd-hero-live-card {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
}
.cd-live-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.cd-live-card-batch {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #0f172a;
}
[data-theme="dark"] .cd-live-card-batch {
    color: #f8fafc;
}
.cd-batch-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #059669;
    flex-shrink: 0;
}
.cd-batch-time {
    display: block;
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}
[data-theme="dark"] .cd-batch-time {
    color: #94a3b8;
}
.cd-status-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.cd-status-badge.success {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}
[data-theme="dark"] .cd-status-badge.success {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.3);
}
.cd-live-card-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 10px;
    text-align: center;
}
[data-theme="dark"] .cd-live-card-metrics {
    border-top-color: rgba(255, 255, 255, 0.06);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}
.cd-live-metric {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cd-metric-num {
    font-size: 16px;
    font-weight: 800;
}
.cd-metric-text {
    font-size: 10.5px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
[data-theme="dark"] .cd-metric-text {
    color: #94a3b8;
}
.cd-live-card-footer {
    display: flex;
    align-items: center;
}
.cd-card-footnote {
    font-size: 11px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
}
[data-theme="dark"] .cd-card-footnote {
    color: #94a3b8;
}

/* --- 3. INTERACTIVE PRODUCT WORKBENCH --- */
.cd-workbench-section {
    padding: 85px 0;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
[data-theme="dark"] .cd-workbench-section {
    background: #080d18;
    border-bottom-color: rgba(255, 255, 255, 0.06);
}
.cd-workbench-frame {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
}
[data-theme="dark"] .cd-workbench-frame {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.cd-workbench-topbar {
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
}
[data-theme="dark"] .cd-workbench-topbar {
    background: #0b1120;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}
.cd-mac-dots {
    display: flex;
    gap: 6px;
}
.cd-mac-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.cd-mac-dot.dot-red { background: #ef4444; }
.cd-mac-dot.dot-yellow { background: #f59e0b; }
.cd-mac-dot.dot-green { background: #10b981; }
.cd-workbench-title {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
}
[data-theme="dark"] .cd-workbench-title {
    color: #cbd5e1;
}
.cd-workbench-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #059669;
}
.cd-status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
}
.cd-workbench-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #e2e8f0;
}
[data-theme="dark"] .cd-workbench-grid {
    background: rgba(255, 255, 255, 0.08);
}
.cd-workbench-panel {
    background: #ffffff;
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
}
[data-theme="dark"] .cd-workbench-panel {
    background: #0f172a;
}
.cd-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}
[data-theme="dark"] .cd-panel-header {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}
.cd-panel-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}
[data-theme="dark"] .cd-panel-title {
    color: #f8fafc;
}
.cd-panel-subtitle {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 2px;
    display: block;
}
[data-theme="dark"] .cd-panel-subtitle {
    color: #94a3b8;
}
.cd-btn-mark-all {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    color: #4338ca;
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.cd-btn-mark-all:hover {
    background: #e0e7ff;
}
[data-theme="dark"] .cd-btn-mark-all {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
}
[data-theme="dark"] .cd-btn-mark-all:hover {
    background: rgba(16, 185, 129, 0.25);
}
.cd-roster-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cd-roster-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    background: #f8fafc;
    transition: all 0.15s ease;
}
[data-theme="dark"] .cd-roster-item {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
}
.cd-roster-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e0e7ff;
    color: #4338ca;
    font-size: 10.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cd-roster-avatar.avatar-pink { background: #fce7f3; color: #db2777; }
.cd-roster-avatar.avatar-indigo { background: #e0e7ff; color: #4338ca; }
.cd-roster-avatar.avatar-emerald { background: #dcfce7; color: #15803d; }
.cd-roster-avatar.avatar-amber { background: #fef3c7; color: #b45309; }
.cd-roster-details {
    flex: 1;
    min-width: 0;
}
.cd-roster-name {
    font-size: 12.5px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
[data-theme="dark"] .cd-roster-name {
    color: #f8fafc;
}
.cd-roster-meta {
    font-size: 11px;
    color: #64748b;
}
[data-theme="dark"] .cd-roster-meta {
    color: #94a3b8;
}
.cd-roster-toggles {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
.cd-toggle-btn {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    background: #f1f5f9;
    color: #64748b;
}
[data-theme="dark"] .cd-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
}
.cd-toggle-btn.toggle-p.active {
    background: #059669;
    color: #ffffff;
    border-color: #047857;
}
.cd-toggle-btn.toggle-a.active {
    background: #ef4444;
    color: #ffffff;
    border-color: #dc2626;
}
.cd-roster-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
    font-size: 12px;
}
[data-theme="dark"] .cd-roster-footer {
    border-top-color: rgba(255, 255, 255, 0.08);
}
.cd-roster-live-summary {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.count-present { color: #059669; }
.count-absent { color: #ef4444; }
.count-divider { color: #94a3b8; }
.cd-roster-hint {
    font-size: 11px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
}
[data-theme="dark"] .cd-roster-hint {
    color: #94a3b8;
}

/* Digital Receipt Card in Workbench */
.cd-receipt-badge.success {
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    letter-spacing: 0.04em;
}
[data-theme="dark"] .cd-receipt-badge.success {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.3);
}
.cd-receipt-document {
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 14px 16px;
    background: #f8fafc;
    font-size: 12px;
}
[data-theme="dark"] .cd-receipt-document {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.12);
}
.cd-doc-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}
[data-theme="dark"] .cd-doc-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}
.cd-doc-inst-name {
    font-size: 12.5px;
    font-weight: 800;
    color: #4338ca;
    letter-spacing: 0.04em;
}
[data-theme="dark"] .cd-doc-inst-name {
    color: #818cf8;
}
.cd-doc-inst-sub {
    font-size: 11px;
    color: #64748b;
}
[data-theme="dark"] .cd-doc-inst-sub {
    color: #94a3b8;
}
.cd-doc-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    margin-bottom: 12px;
}
.meta-label {
    font-size: 10.5px;
    color: #64748b;
    display: block;
}
[data-theme="dark"] .meta-label {
    color: #94a3b8;
}
.meta-value {
    font-weight: 700;
    color: #0f172a;
}
[data-theme="dark"] .meta-value {
    color: #f8fafc;
}
.cd-doc-items-table {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 0;
    border-top: 1px dashed #e2e8f0;
    border-bottom: 1px dashed #e2e8f0;
    margin-bottom: 14px;
}
[data-theme="dark"] .cd-doc-items-table {
    border-color: rgba(255, 255, 255, 0.08);
}
.cd-doc-item-row {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    color: #475569;
}
[data-theme="dark"] .cd-doc-item-row {
    color: #94a3b8;
}
.cd-doc-item-row.head {
    font-size: 10.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}
.cd-doc-item-row.total {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    margin-top: 4px;
}
[data-theme="dark"] .cd-doc-item-row.total {
    color: #f8fafc;
}
.cd-doc-item-row.balance {
    font-size: 11.5px;
    color: #059669;
    font-weight: 600;
}
.cd-doc-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.cd-panel-note {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}
[data-theme="dark"] .cd-panel-note {
    color: #94a3b8;
}

/* --- 4. 3-WAY COMPARISON MATRIX --- */
.cd-matrix-section {
    padding: 85px 0;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}
[data-theme="dark"] .cd-matrix-section {
    background: #0a0e17;
    border-bottom-color: rgba(255, 255, 255, 0.06);
}
.cd-matrix-table-wrap {
    overflow-x: auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
[data-theme="dark"] .cd-matrix-table-wrap {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
}
.cd-matrix-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 780px;
    font-size: 13.5px;
}
.cd-matrix-table th,
.cd-matrix-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
}
[data-theme="dark"] .cd-matrix-table th,
[data-theme="dark"] .cd-matrix-table td {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}
.cd-matrix-table thead th {
    background: #f8fafc;
    font-weight: 700;
    font-size: 13px;
    color: #334155;
    border-bottom: 2px solid #e2e8f0;
}
[data-theme="dark"] .cd-matrix-table thead th {
    background: #0a101d;
    color: #cbd5e1;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}
.cd-matrix-table .col-veyhub,
.cd-matrix-table .cell-veyhub {
    background: rgba(67, 56, 202, 0.03);
}
[data-theme="dark"] .cd-matrix-table .col-veyhub,
[data-theme="dark"] .cd-matrix-table .cell-veyhub {
    background: rgba(16, 185, 129, 0.06);
}
.veyhub-header-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-weight: 800;
    color: #4338ca;
}
[data-theme="dark"] .veyhub-header-badge {
    color: #818cf8;
}
.tag-rec {
    background: #059669;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.cd-matrix-table tbody th,
.task-cell {
    width: 25%;
    background: transparent;
    text-transform: none;
    letter-spacing: normal;
    font-size: inherit;
    font-weight: normal;
}
.task-cell strong {
    display: block;
    font-size: 13.5px;
    color: #0f172a;
    font-weight: 700;
}
[data-theme="dark"] .task-cell strong {
    color: #f8fafc;
}
.task-cell span {
    font-size: 11.5px;
    color: #64748b;
    font-weight: normal;
    margin-top: 2px;
    display: block;
}
[data-theme="dark"] .task-cell span {
    color: #94a3b8;
}
.cell-paper, .cell-excel, .cell-veyhub {
    line-height: 1.55;
    color: #475569;
}
[data-theme="dark"] .cell-paper,
[data-theme="dark"] .cell-excel,
[data-theme="dark"] .cell-veyhub {
    color: #cbd5e1;
}
.cell-veyhub strong {
    color: #0f172a;
}
[data-theme="dark"] .cell-veyhub strong {
    color: #f8fafc;
}
.cd-matrix-table td i {
    margin-right: 7px;
    font-size: 13px;
}

/* --- 5. EDITORIAL PRODUCT PILLARS (ASYMMETRIC LAYOUTS) --- */
.cd-pillars-section {
    padding: 85px 0;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
[data-theme="dark"] .cd-pillars-section {
    background: #080d18;
    border-bottom-color: rgba(255, 255, 255, 0.06);
}
.cd-pillars-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.cd-pillar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 34px 38px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}
[data-theme="dark"] .cd-pillar-card {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
}
.cd-pillar-split {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 36px;
    align-items: center;
}
.cd-pillar-split.reverse {
    grid-template-columns: 0.8fr 1.4fr;
}
.cd-pillar-eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #4338ca;
    margin-bottom: 8px;
    text-transform: uppercase;
}
[data-theme="dark"] .cd-pillar-eyebrow {
    color: #818cf8;
}
.cd-pillar-h3 {
    font-size: clamp(1.3rem, 2.2vw, 1.65rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
[data-theme="dark"] .cd-pillar-h3 {
    color: #f8fafc;
}
.cd-pillar-p {
    font-size: 14px;
    color: #475569;
    line-height: 1.68;
    margin-bottom: 16px;
}
[data-theme="dark"] .cd-pillar-p {
    color: #94a3b8;
}
.cd-pillar-checklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: #334155;
}
[data-theme="dark"] .cd-pillar-checklist {
    color: #cbd5e1;
}
.cd-pillar-checklist li {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cd-stat-callout {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
}
[data-theme="dark"] .cd-stat-callout {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08);
}
.callout-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.05em;
    display: block;
}
[data-theme="dark"] .callout-label {
    color: #94a3b8;
}
.callout-value {
    font-size: 32px;
    font-weight: 800;
    margin: 4px 0 6px;
    display: block;
}
.callout-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
    display: block;
}
[data-theme="dark"] .callout-desc {
    color: #94a3b8;
}

/* Parent Portal Preview Card */
.cd-portal-preview-card {
    background: #0f172a;
    color: #ffffff;
    border-radius: 14px;
    padding: 18px;
    border: 1px solid #1e293b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.portal-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    margin-bottom: 10px;
}
.portal-badge {
    font-weight: 700;
    color: #818cf8;
    display: flex;
    align-items: center;
    gap: 6px;
}
.portal-status {
    background: #059669;
    color: #ffffff;
    padding: 1px 7px;
    border-radius: 9999px;
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
}
.portal-user-name {
    font-size: 14px;
    font-weight: 700;
}
.portal-user-meta {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 10px;
}
.portal-stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}
.portal-stat-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px;
}
.stat-box-lbl {
    font-size: 9.5px;
    color: #94a3b8;
    display: block;
}
.stat-box-val {
    font-size: 13.5px;
    font-weight: 700;
}

/* --- 6. TRANSPARENT PRICING --- */
.cd-pricing-section {
    padding: 85px 0;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}
[data-theme="dark"] .cd-pricing-section {
    background: #0a0e17;
    border-bottom-color: rgba(255, 255, 255, 0.06);
}
.cd-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 36px;
}
.cd-price-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px 26px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
[data-theme="dark"] .cd-price-card {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
}
.cd-price-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}
[data-theme="dark"] .cd-price-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.cd-price-card.featured {
    border-color: #4338ca;
    box-shadow: 0 12px 36px rgba(67, 56, 202, 0.12);
}
[data-theme="dark"] .cd-price-card.featured {
    border-color: var(--primary);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}
.cd-price-badge-top {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #4338ca;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(67, 56, 202, 0.25);
}
.cd-price-header {
    margin-bottom: 12px;
}
.cd-price-name {
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}
[data-theme="dark"] .cd-price-name {
    color: #f8fafc;
}
.cd-price-desc {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.45;
    min-height: 38px;
}
[data-theme="dark"] .cd-price-desc {
    color: #94a3b8;
}
.cd-price-figure {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 14px 0 4px;
}
.cd-price-amount {
    font-size: 38px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}
[data-theme="dark"] .cd-price-amount {
    color: #f8fafc;
}
.cd-price-cycle {
    font-size: 13.5px;
    color: #64748b;
    font-weight: 600;
}
[data-theme="dark"] .cd-price-cycle {
    color: #94a3b8;
}
.cd-price-capacity {
    font-size: 12.5px;
    color: #475569;
    margin-bottom: 22px;
}
[data-theme="dark"] .cd-price-capacity {
    color: #94a3b8;
}
.cd-price-feats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
    flex: 1;
    font-size: 13px;
    color: #334155;
}
[data-theme="dark"] .cd-price-feats {
    color: #cbd5e1;
}
.cd-price-feats li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}
.cd-pricing-security-note {
    text-align: center;
    margin-top: 36px;
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}
[data-theme="dark"] .cd-pricing-security-note {
    color: #94a3b8;
}

/* --- 7. FREQUENTLY ASKED QUESTIONS --- */
.cd-faq-section {
    padding: 85px 0;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
[data-theme="dark"] .cd-faq-section {
    background: #080d18;
    border-bottom-color: rgba(255, 255, 255, 0.06);
}
.cd-faq-list {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cd-faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.15s ease;
}
[data-theme="dark"] .cd-faq-item {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
}
.cd-faq-item.open {
    border-color: #cbd5e1;
}
[data-theme="dark"] .cd-faq-item.open {
    border-color: rgba(16, 185, 129, 0.35);
}
.cd-faq-btn {
    width: 100%;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    font-family: inherit;
    gap: 14px;
}
[data-theme="dark"] .cd-faq-btn {
    color: #f8fafc;
}
.cd-faq-icon {
    transition: transform 0.2s ease;
    font-size: 13px;
    color: #64748b;
    flex-shrink: 0;
}
.cd-faq-item.open .cd-faq-icon {
    transform: rotate(180deg);
    color: #4338ca;
}
[data-theme="dark"] .cd-faq-item.open .cd-faq-icon {
    color: #818cf8;
}
.cd-faq-body {
    display: none;
    padding: 0 20px 20px;
    font-size: 14px;
    color: #475569;
    line-height: 1.68;
}
[data-theme="dark"] .cd-faq-body {
    color: #94a3b8;
}
.cd-faq-item.open .cd-faq-body {
    display: block;
}

/* --- 8. BOTTOM CONVERSION CTA --- */
.cd-cta-section {
    padding: 85px 0;
    background: #ffffff;
}
[data-theme="dark"] .cd-cta-section {
    background: #0a0e17;
}
.cd-cta-card {
    background: #0f172a;
    color: #ffffff;
    border-radius: 20px;
    padding: 56px 40px;
    text-align: center;
    border: 1px solid #1e293b;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.15);
    max-width: 960px;
    margin: 0 auto;
}
.cd-cta-eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #818cf8;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.cd-cta-h2 {
    font-size: clamp(1.85rem, 3.4vw, 2.6rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 14px;
    letter-spacing: -0.025em;
    line-height: 1.2;
}
.cd-cta-desc {
    font-size: 15px;
    color: #94a3b8;
    max-width: 620px;
    margin: 0 auto 28px;
    line-height: 1.65;
}
.cd-cta-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.cd-cta-micro-trust {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: #94a3b8;
}

/* --- 9. RESPONSIVE GUARDRAILS (ZERO OVERFLOW GUARANTEE) --- */
@media (max-width: 1024px) {
    .cd-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .cd-hero-content {
        text-align: center;
    }
    .cd-hero-eyebrow {
        justify-content: center;
    }
    .cd-hero-h1 {
        text-align: center;
    }
    .cd-hero-desc {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .cd-hero-actions {
        justify-content: center;
    }
    .cd-hero-trust-bar {
        justify-content: center;
    }
    .cd-hero-stats-row {
        justify-content: center;
    }
    .cd-pricing-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
    .cd-pillar-split,
    .cd-pillar-split.reverse {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 860px) {
    .cd-workbench-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cd-hero-section {
        padding: 90px 0 32px !important;
    }
    .cd-desktop-br {
        display: none !important;
    }
    .cd-hero-h1 {
        font-size: clamp(1.85rem, 6.2vw, 2.3rem);
        line-height: 1.16;
        margin-bottom: 14px;
        min-height: auto;
    }
    .cd-hero-desc {
        font-size: 14.5px;
        line-height: 1.55;
        max-width: 380px;
        margin: 0 auto 20px;
    }
    .cd-hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin-bottom: 12px;
    }
    .cd-hero-main-cta {
        width: 100%;
        max-width: 330px;
        height: 48px;
        font-size: 15.5px;
        font-weight: 700;
        border-radius: 12px;
        justify-content: center;
        box-shadow: 0 8px 22px rgba(5, 150, 105, 0.32);
    }
    .cd-hero-sec-cta {
        background: transparent !important;
        border: 1px solid #cbd5e1 !important;
        color: #334155 !important;
        font-size: 13px !important;
        padding: 7px 16px !important;
        border-radius: 9999px !important;
        font-weight: 600 !important;
        justify-content: center;
    }
    .cd-hero-trust-bar {
        font-size: 11px;
        gap: 6px 12px;
        margin-bottom: 16px;
        justify-content: center;
    }
    .cd-hero-stats-row {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 4px !important;
        padding: 10px 4px !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 14px !important;
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
        margin: 14px auto 22px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }
    .cd-hero-stat-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        text-align: center !important;
        min-width: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }
    .cd-hero-stat-val {
        font-size: clamp(11px, 3.1vw, 15px) !important;
        font-weight: 800 !important;
        line-height: 1.22 !important;
        white-space: normal !important;
        text-align: center !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
        overflow: visible !important;
        text-overflow: clip !important;
        margin-bottom: 2px !important;
    }
    .cd-hero-stat-lbl {
        font-size: clamp(8.5px, 2.4vw, 10.5px) !important;
        line-height: 1.22 !important;
        text-align: center !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
        color: #64748b !important;
    }
    .cd-hero-stat-sep {
        display: none !important;
    }
    .cd-hero-visual,
    .cd-hero-media-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .cd-teacher-image-wrap {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .cd-hero-live-card,
    .cd-pg-mock-card.cd-hero-live-card {
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: -30px !important;
        padding: 14px 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .cd-live-card-metrics {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
        padding: 8px 0;
    }
    .cd-live-metric {
        text-align: center;
    }
    .cd-metric-num {
        font-size: 17px !important;
    }
    .cd-metric-text {
        font-size: 10.5px !important;
    }
    .cd-workbench-section,
    .cd-matrix-section,
    .cd-pillars-section,
    .cd-pricing-section,
    .cd-faq-section,
    .cd-cta-section {
        padding: 60px 0;
    }
    .cd-pillar-card {
        padding: 24px 20px;
    }
    .cd-cta-card {
        padding: 36px 20px;
    }
}

@media (max-width: 480px) {
    .cd-hero-section {
        padding: 84px 0 24px !important;
    }
    .cd-hero-h1 {
        font-size: clamp(1.75rem, 5.8vw, 2.05rem);
        min-height: auto;
    }
    .cd-workbench-panel {
        padding: 16px 14px;
    }
    .cd-doc-meta-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

@media (max-width: 360px) {
    .cd-hero-h1 {
        font-size: 1.65rem;
    }
    .cd-workbench-topbar {
        font-size: 10.5px;
        padding: 8px 10px;
    }
}


/* ========================================================
   ATTENDANCE MARKING SHEET & TOGGLE PILLS (2027 MODERN SAAS)
   ======================================================== */
.cd-att-filter-card {
    background: var(--bg-card-dark);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .cd-att-filter-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.cd-filter-inner {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
}
.cd-filter-group {
    margin: 0;
    flex: 1;
    min-width: 220px;
}
.cd-filter-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted-dark);
    margin-bottom: 8px;
}
[data-theme="light"] .cd-filter-group label {
    color: #475569;
}
.cd-custom-select, .cd-custom-date {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border-radius: var(--radius);
    background: var(--bg-surface-dark);
    border: 1px solid var(--border-subtle);
    color: var(--text-main-dark);
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
[data-theme="light"] .cd-custom-select, [data-theme="light"] .cd-custom-date {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}
.cd-custom-select:focus, .cd-custom-date:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow-sm);
}
.cd-filter-btn {
    height: 44px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    flex-shrink: 0;
    cursor: pointer;
}

/* Sheet Card */
.cd-att-sheet {
    background: var(--bg-card-dark);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}
[data-theme="light"] .cd-att-sheet {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

/* Sheet Header */
.cd-att-sheet-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 16px;
}
[data-theme="light"] .cd-att-sheet-head {
    border-bottom-color: #f1f5f9;
}
.cd-att-sheet-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cd-att-sheet-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 12.5px;
    color: var(--text-muted-dark);
    margin-top: 4px;
}
[data-theme="light"] .cd-att-sheet-meta {
    color: #64748b;
}
.cd-att-sheet-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Live Attendance Pill */
.cd-att-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 9999px;
    font-size: 12.5px;
    font-weight: 600;
}
[data-theme="light"] .cd-att-live-pill {
    background: #f8fafc;
    border-color: #e2e8f0;
}
.cd-pill-p { color: #10b981; }
.cd-pill-a { color: #ef4444; }
.cd-pill-l { color: #f59e0b; }
.cd-pill-divider { color: var(--text-dim-dark); opacity: 0.5; }

/* Mark All Button */
.cd-btn-mark-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Student Row */
.cd-att-sheet-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cd-att-student-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background: var(--bg-surface-dark);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    transition: all 0.2s ease;
}
[data-theme="light"] .cd-att-student-row {
    background: #ffffff;
    border-color: #f1f5f9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.cd-att-student-row:hover {
    border-color: rgba(16, 185, 129, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .cd-att-student-row:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Student Info */
.cd-att-student-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.cd-att-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: -0.02em;
}
.cd-att-details {
    min-width: 0;
}
.cd-att-name {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-main-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
[data-theme="light"] .cd-att-name {
    color: #0f172a;
}
.cd-att-sub {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted-dark);
    margin-top: 2px;
}
[data-theme="light"] .cd-att-sub {
    color: #64748b;
}
.cd-att-phone-links {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.cd-att-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s;
}
.cd-att-link:hover {
    color: var(--primary);
}
.cd-att-wa {
    color: #10b981 !important;
}

/* Status Segmented Toggle Group */
.cd-att-toggle-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
}
[data-theme="light"] .cd-att-toggle-group {
    background: #f1f5f9;
    border-color: #e2e8f0;
}
.cd-att-btn {
    position: relative;
    cursor: pointer;
    user-select: none;
    margin: 0;
}
.cd-att-btn input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.cd-att-btn-inner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted-dark);
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-theme="light"] .cd-att-btn-inner {
    color: #64748b;
}
.cd-att-btn:hover .cd-att-btn-inner {
    color: var(--text-main-dark);
    background: rgba(255, 255, 255, 0.05);
}
[data-theme="light"] .cd-att-btn:hover .cd-att-btn-inner {
    color: #0f172a;
    background: rgba(0, 0, 0, 0.04);
}

/* Checked States */
/* Present */
.cd-att-btn-p input:checked + .cd-att-btn-inner {
    background: #10b981 !important;
    color: #ffffff !important;
    border-color: #059669;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
}
/* Absent */
.cd-att-btn-a input:checked + .cd-att-btn-inner {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-color: #dc2626;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.4);
}
/* Late */
.cd-att-btn-l input:checked + .cd-att-btn-inner {
    background: #f59e0b !important;
    color: #ffffff !important;
    border-color: #d97706;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
}

/* Footer / Save Bar */
.cd-att-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
    flex-wrap: wrap;
}
[data-theme="light"] .cd-att-footer-bar {
    border-top-color: #f1f5f9;
}
.cd-btn-save-attendance {
    padding: 12px 28px;
    font-size: 14.5px;
    font-weight: 700;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 16px var(--primary-glow);
    transition: all 0.2s ease;
}
.cd-btn-save-attendance:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--primary-glow);
}
.cd-att-save-hint {
    font-size: 12.5px;
    color: var(--text-muted-dark);
    display: flex;
    align-items: center;
    gap: 6px;
}
[data-theme="light"] .cd-att-save-hint {
    color: #64748b;
}

/* Mobile Responsive */
@media (max-width: 680px) {
    .cd-att-student-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 14px;
    }
    .cd-att-student-info {
        width: 100%;
    }
    .cd-att-toggle-group {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }
    .cd-att-btn-inner {
        width: 100%;
        justify-content: center;
        padding: 8px 4px;
        font-size: 11.5px;
        box-sizing: border-box;
    }
    .cd-att-sheet-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .cd-att-sheet-actions {
        width: 100%;
        justify-content: space-between;
    }
    .cd-att-footer-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .cd-btn-save-attendance {
        width: 100%;
        justify-content: center;
    }
}




/* ========================================================
   IMPECCABLE DASHBOARD & SIDEBAR REDESIGN SYSTEM
   ======================================================== */
.sidebar {
    width: 250px !important;
    background: #0c1220 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.sidebar .logo {
    padding: 16px 18px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px;
}
.sidebar-close {
    display: none;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    color: #cbd5e1;
    font-size: 16px;
    transition: all 0.15s ease;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}
.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.28);
}
.sidebar-nav {
    flex: 1;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.sidebar-nav .nav-link,
.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #94a3b8 !important;
    padding: 10px 14px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.15s ease;
    text-decoration: none;
    border-left: none !important;
}
.sidebar-nav .nav-link:hover,
.sidebar nav a:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #f8fafc !important;
}
.sidebar-nav .nav-link.active,
.sidebar nav a.active {
    background: rgba(16, 185, 129, 0.14) !important;
    color: #818cf8 !important;
    font-weight: 700 !important;
}
.sidebar-nav .nav-icon {
    width: 20px;
    font-size: 14.5px;
    text-align: center;
    color: #64748b;
    transition: color 0.15s;
    flex-shrink: 0;
}
.sidebar-nav .nav-link.active .nav-icon {
    color: #818cf8 !important;
}
.sidebar-nav .nav-link:hover .nav-icon {
    color: #cbd5e1;
}

.sidebar .user-box {
    padding: 14px 16px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: #080d18 !important;
    margin-top: auto;
}
.user-profile-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(67, 56, 202, 0.3);
}
.user-info-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}
.user-center-name {
    font-size: 13px;
    font-weight: 700;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.user-email-text {
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}
.user-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.user-logout-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s;
}
.user-logout-link:hover {
    color: #ef4444;
}

.topbar {
    background: #0c1220 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 12px 24px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 60px;
    width: 100%;
    box-sizing: border-box;
}
.topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.topbar-left .page-title,
.topbar .page-title {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #f8fafc !important;
    letter-spacing: -0.02em;
    margin: 0 !important;
}
.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.topbar .menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 17px;
    cursor: pointer;
    color: #f8fafc;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    transition: all 0.15s ease;
}
.topbar .menu-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.28);
}

/* Dashboard Quick Actions Bar */
.dash-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
@media (max-width: 1024px) {
    .dash-quick-actions { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
    .dash-quick-actions { grid-template-columns: 1fr; }
}
.dash-action-card {
    background: #0f182a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 13px 16px;
    display: flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.dash-action-card:hover {
    transform: translateY(-2px);
    border-color: rgba(16, 185, 129, 0.35);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.dash-action-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.action-attendance .dash-action-icon { background: rgba(16, 185, 129, 0.14); color: #818cf8; }
.action-fees .dash-action-icon       { background: rgba(16, 185, 129, 0.14); color: #34d399; }
.action-students .dash-action-icon   { background: rgba(245, 158, 11, 0.14); color: #fbbf24; }
.action-enquiries .dash-action-icon  { background: rgba(139, 92, 246, 0.14); color: #a78bfa; }

.dash-action-title {
    font-weight: 700;
    font-size: 13.5px;
    color: #f8fafc;
    line-height: 1.25;
}
.dash-action-meta {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 2px;
}
.dash-action-arrow {
    margin-left: auto;
    font-size: 11px;
    color: #475569;
    transition: transform 0.15s ease, color 0.15s ease;
}
.dash-action-card:hover .dash-action-arrow {
    transform: translateX(3px);
    color: #818cf8;
}

/* Dashboard Metric Cards */
.dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
@media (max-width: 1024px) {
    .dash-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
    .dash-stats-grid { grid-template-columns: 1fr; }
}
.dash-stat-card {
    background: #0f182a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.dash-stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.dash-stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.dash-stat-label {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}
.dash-stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
}
.dash-stat-icon.icon-students  { background: rgba(16, 185, 129, 0.14); color: #818cf8; }
.dash-stat-icon.icon-batches   { background: rgba(59, 130, 246, 0.14); color: #60a5fa; }
.dash-stat-icon.icon-collected { background: rgba(16, 185, 129, 0.14); color: #34d399; }
.dash-stat-icon.icon-pending   { background: rgba(245, 158, 11, 0.14); color: #fbbf24; }
.dash-stat-icon.icon-clear     { background: rgba(16, 185, 129, 0.14); color: #34d399; }

.dash-stat-value {
    font-size: 25px;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-top: 2px;
}
.dash-stat-footer {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 4px;
}
.dash-stat-sub {
    font-size: 11.5px;
    color: #64748b;
}
.dash-stat-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.dash-stat-tag.tag-success {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.dash-stat-tag.tag-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.table-avatar-initial {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.15);
    color: #818cf8;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ========================================================
   LIGHT MODE DASHBOARD APP OVERRIDES
   ======================================================== */
[data-theme="light"] .sidebar {
    background: #ffffff !important;
    border-right-color: #e2e8f0 !important;
}
[data-theme="light"] .sidebar .logo {
    border-bottom-color: #e2e8f0 !important;
}
[data-theme="light"] .sidebar-nav .nav-link,
[data-theme="light"] .sidebar nav a {
    color: #475569 !important;
}
[data-theme="light"] .sidebar-nav .nav-link:hover,
[data-theme="light"] .sidebar nav a:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}
[data-theme="light"] .sidebar-nav .nav-link.active,
[data-theme="light"] .sidebar nav a.active {
    background: rgba(67, 56, 202, 0.08) !important;
    color: #4338ca !important;
}
[data-theme="light"] .sidebar-nav .nav-icon {
    color: #94a3b8 !important;
}
[data-theme="light"] .sidebar-nav .nav-link.active .nav-icon {
    color: #4338ca !important;
}
[data-theme="light"] .sidebar-nav .nav-link:hover .nav-icon {
    color: #475569 !important;
}
[data-theme="light"] .sidebar .user-box {
    background: #f8fafc !important;
    border-top-color: #e2e8f0 !important;
}
[data-theme="light"] .user-center-name {
    color: #0f172a !important;
}
[data-theme="light"] .user-email-text {
    color: #64748b !important;
}
[data-theme="light"] .user-actions-row {
    border-top-color: #e2e8f0 !important;
}
[data-theme="light"] .user-logout-link {
    color: #64748b !important;
}
[data-theme="light"] .topbar {
    background: #ffffff !important;
    border-bottom-color: #e2e8f0 !important;
}
[data-theme="light"] .topbar-left .page-title,
[data-theme="light"] .topbar .page-title {
    color: #0f172a !important;
}
[data-theme="light"] .topbar .menu-toggle {
    color: #0f172a !important;
}

[data-theme="light"] .dash-action-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}
[data-theme="light"] .dash-action-card:hover {
    border-color: rgba(67, 56, 202, 0.3) !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06) !important;
}
[data-theme="light"] .dash-action-title {
    color: #0f172a !important;
}
[data-theme="light"] .dash-action-meta {
    color: #64748b !important;
}
[data-theme="light"] .dash-action-arrow {
    color: #94a3b8 !important;
}
[data-theme="light"] .dash-action-card:hover .dash-action-arrow {
    color: #4338ca !important;
}

[data-theme="light"] .dash-stat-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}
[data-theme="light"] .dash-stat-card:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06) !important;
}
[data-theme="light"] .dash-stat-label {
    color: #64748b !important;
}
[data-theme="light"] .dash-stat-value {
    color: #0f172a !important;
}
[data-theme="light"] .dash-stat-sub {
    color: #64748b !important;
}

[data-theme="light"] .table-avatar-initial {
    background: #eef2ff !important;
    color: #4338ca !important;
}

/* ========================================================
   MOBILE APP NAVIGATION & SIDEBAR DRAWER SYSTEM
   ======================================================== */
@media (max-width: 900px) {
    .topbar .menu-toggle {
        display: inline-flex !important;
    }
    .sidebar-close {
        display: inline-flex !important;
    }
    .sidebar {
        position: fixed !important;
        left: -320px !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 280px !important;
        max-width: 86vw !important;
        height: 100vh !important;
        transition: left 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
        z-index: 1050 !important;
        box-shadow: none !important;
        display: flex !important;
        flex-direction: column !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
    }
    .sidebar.open {
        left: 0 !important;
        box-shadow: 8px 0 40px rgba(0, 0, 0, 0.75) !important;
    }
    .sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.65);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 1040;
    }
    .sidebar-backdrop.active {
        display: block !important;
    }
}

/* Light Mode Overrides for Mobile Navigation */
[data-theme="light"] .topbar .menu-toggle {
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    background: transparent !important;
}
[data-theme="light"] .topbar .menu-toggle:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
}
[data-theme="light"] .sidebar-close {
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}
[data-theme="light"] .sidebar-close:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}
[data-theme="light"] .sidebar.open {
    box-shadow: 8px 0 40px rgba(15, 23, 42, 0.22) !important;
}



/* ========================================================
   TABLER + TREMOR COMMAND CENTER STYLES
   ======================================================== */
.dash-exec-hero {
    background: linear-gradient(135deg, #0e1726 0%, #171b30 50%, #0d1527 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 4px 24px -2px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.dash-exec-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.dash-exec-identity {
    display: flex;
    align-items: center;
    gap: 14px;
}
.dash-exec-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
    flex-shrink: 0;
}
.dash-exec-greeting {
    font-size: 19px;
    font-weight: 700;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 10px;
}
.dash-status-dot-pulse {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
    display: inline-block;
    animation: statusPulse 2s infinite;
}
@keyframes statusPulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.dash-exec-subline {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.dash-bullet {
    color: #475569;
}
.dash-exec-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.dash-badge-date {
    font-size: 12px;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.btn-gold-glow {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35) !important;
}

/* Quick Action Launchpad */
.dash-quick-launchpad {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 18px;
}
@media (max-width: 900px) {
    .dash-quick-launchpad { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .dash-quick-launchpad { grid-template-columns: 1fr; }
}
.dash-launch-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.dash-launch-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(16, 185, 129, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.launch-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.btn-rollcall .launch-icon  { background: rgba(16, 185, 129, 0.18); color: #818cf8; }
.btn-collect .launch-icon   { background: rgba(16, 185, 129, 0.18); color: #34d399; }
.btn-admission .launch-icon { background: rgba(245, 158, 11, 0.18); color: #fbbf24; }
.btn-enquiries .launch-icon { background: rgba(139, 92, 246, 0.18); color: #a78bfa; }
.launch-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.launch-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.25;
}
.launch-hint {
    font-size: 11.5px;
    color: #94a3b8;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.launch-arrow {
    margin-left: auto;
    font-size: 11px;
    color: #64748b;
    transition: transform 0.15s ease, color 0.15s ease;
}
.dash-launch-btn:hover .launch-arrow {
    transform: translateX(3px);
    color: #818cf8;
}

/* Triage Action Radars */
.dash-radar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
@media (max-width: 900px) {
    .dash-radar-grid { grid-template-columns: 1fr; }
}
.radar-card {
    background: #0f182a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
}
.radar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
}
.radar-fee::before { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.radar-attendance::before { background: linear-gradient(90deg, #10b981, #06b6d4); }
.radar-leads::before { background: linear-gradient(90deg, #10b981, #06b6d4); }

.radar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.radar-tag {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}
.radar-pill {
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
}
.pill-alert   { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.pill-success { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.pill-priority{ background: rgba(16, 185, 129, 0.15); color: #a5b4fc; border: 1px solid rgba(99, 102, 241, 0.3); }
.pill-neutral { background: rgba(255, 255, 255, 0.06); color: #94a3b8; }

.radar-big-stat {
    font-size: 24px;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.02em;
}
.radar-stat-sub {
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
}
.radar-desc {
    font-size: 12.5px;
    color: #94a3b8;
    line-height: 1.45;
}
.radar-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.radar-action-btn {
    font-size: 12.5px;
    font-weight: 600;
    color: #818cf8;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s ease;
}
.radar-action-btn:hover {
    color: #a5b4fc;
    text-decoration: underline;
}
.btn-whatsapp-theme {
    color: #34d399 !important;
}
.btn-whatsapp-theme:hover {
    color: #6ee7b7 !important;
}

/* KPI Cards */
.dash-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
@media (max-width: 1024px) {
    .dash-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
    .dash-kpi-grid { grid-template-columns: 1fr; }
}
.kpi-card {
    background: #0f182a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.kpi-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
}
.kpi-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.kpi-label {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}
.kpi-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.icon-students   { background: rgba(16, 185, 129, 0.15); color: #818cf8; }
.icon-revenue    { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.icon-warning    { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.icon-attendance { background: rgba(6, 182, 212, 0.15);  color: #22d3ee; }

.kpi-value-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-top: 2px;
}
.kpi-value {
    font-size: 26px;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.kpi-growth-badge {
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
}
.badge-indigo { background: rgba(16, 185, 129, 0.15); color: #a5b4fc; }
.badge-green  { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.badge-amber  { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.badge-cyan   { background: rgba(6, 182, 212, 0.15);  color: #67e8f9; }

.kpi-progress-bar-wrap {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    overflow: hidden;
    margin: 4px 0 2px;
}
.kpi-progress-bar {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.4s ease;
}
.bar-indigo { background: linear-gradient(90deg, #10b981, #34d399); }
.bar-green  { background: linear-gradient(90deg, #10b981, #34d399); }
.bar-amber  { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.bar-cyan   { background: linear-gradient(90deg, #06b6d4, #22d3ee); }

.kpi-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    color: #64748b;
    margin-top: 2px;
}
.kpi-sub-right {
    color: #94a3b8;
}

/* Dropout Risk Radar Component */
.card-risk-radar {
    border-color: rgba(239, 68, 68, 0.35) !important;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.04) 0%, rgba(15, 24, 42, 1) 100%) !important;
}
.risk-icon-pulse {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}
.risk-students-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (max-width: 768px) {
    .risk-students-grid { grid-template-columns: 1fr; }
}
.risk-student-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.risk-student-avatar {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.risk-student-details {
    min-width: 0;
    flex: 1;
}
.risk-student-name {
    font-weight: 700;
    font-size: 13.5px;
    color: #f8fafc;
}
.risk-student-batch {
    font-size: 11.5px;
    color: #94a3b8;
}

/* 1-Click WhatsApp Button Pill */
.btn-whatsapp-nudge {
    background: #16a34a !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 9999px !important;
    padding: 4px 11px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease !important;
    white-space: nowrap !important;
}
.btn-whatsapp-nudge:hover {
    background: #15803d !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35) !important;
}

/* ========================================================
   LIGHT MODE OVERRIDES FOR COMMAND CENTER
   ======================================================== */
[data-theme="light"] .dash-exec-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}
[data-theme="light"] .dash-exec-topbar {
    border-bottom-color: #e2e8f0 !important;
}
[data-theme="light"] .dash-exec-greeting {
    color: #0f172a !important;
}
[data-theme="light"] .dash-exec-subline {
    color: #64748b !important;
}
[data-theme="light"] .dash-badge-date {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #475569 !important;
}
[data-theme="light"] .dash-launch-btn {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}
[data-theme="light"] .dash-launch-btn:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06) !important;
}
[data-theme="light"] .launch-title {
    color: #0f172a !important;
}
[data-theme="light"] .launch-hint {
    color: #64748b !important;
}
[data-theme="light"] .radar-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}
[data-theme="light"] .radar-tag {
    color: #64748b !important;
}
[data-theme="light"] .radar-big-stat {
    color: #0f172a !important;
}
[data-theme="light"] .radar-desc {
    color: #475569 !important;
}
[data-theme="light"] .radar-footer {
    border-top-color: #e2e8f0 !important;
}
[data-theme="light"] .kpi-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}
[data-theme="light"] .kpi-card:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06) !important;
}
[data-theme="light"] .kpi-label {
    color: #64748b !important;
}
[data-theme="light"] .kpi-value {
    color: #0f172a !important;
}
[data-theme="light"] .kpi-footer {
    color: #64748b !important;
}
[data-theme="light"] .kpi-progress-bar-wrap {
    background: #e2e8f0 !important;
}
[data-theme="light"] .card-risk-radar {
    background: #ffffff !important;
}
[data-theme="light"] .risk-student-item {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}
[data-theme="light"] .risk-student-name {
    color: #0f172a !important;
}
[data-theme="light"] .risk-student-batch {
    color: #64748b !important;
}


/* ========================================================
   INTERACTIVE ROI & REVENUE RECOVERY CALCULATOR (PRELINE/CRUIP)
   ======================================================== */
.cd-calculator-section {
    padding: 90px 0;
    background: var(--bg-surface-dark);
    position: relative;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}
[data-theme="light"] .cd-calculator-section {
    background: #f1f5f9;
}
.cd-calc-card {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
    background: var(--bg-card-dark);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    margin-top: 24px;
}
[data-theme="light"] .cd-calc-card {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}
.cd-calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-right: 12px;
}
.cd-calc-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.cd-calc-label {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-main-dark);
    margin: 0;
}
[data-theme="light"] .cd-calc-label {
    color: #0f172a;
}
.cd-calc-bubble {
    font-size: 14px;
    font-weight: 800;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 4px 12px;
    border-radius: 9999px;
}
[data-theme="light"] .cd-calc-bubble {
    color: #059669;
    background: #ecfdf5;
    border-color: #a7f3d0;
}
.cd-range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    outline: none;
    transition: background 0.2s;
    cursor: pointer;
}
[data-theme="light"] .cd-range-slider {
    background: #e2e8f0;
}
.cd-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #10b981;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
    border: 2px solid #ffffff;
    transition: transform 0.15s ease, background 0.15s ease;
}
.cd-range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}
.cd-range-markers {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-dim-dark);
    font-weight: 600;
    margin-top: 6px;
}
[data-theme="light"] .cd-range-markers {
    color: #64748b;
}
.cd-calc-pill-group {
    display: flex;
    gap: 8px;
}
.cd-calc-pill {
    flex: 1;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted-dark);
    cursor: pointer;
    transition: all 0.2s ease;
}
[data-theme="light"] .cd-calc-pill {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #475569;
}
.cd-calc-pill.active {
    background: rgba(16, 185, 129, 0.18);
    border-color: #10b981;
    color: #10b981;
    font-weight: 700;
}
[data-theme="light"] .cd-calc-pill.active {
    background: #ecfdf5;
    border-color: #059669;
    color: #059669;
}

/* Results Column */
.cd-calc-results {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(6, 182, 212, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
[data-theme="light"] .cd-calc-results {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 100%);
    border-color: #a7f3d0;
}
.cd-calc-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.result-badge {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    padding: 3px 9px;
    border-radius: 9999px;
}
[data-theme="light"] .result-badge {
    color: #059669;
    background: rgba(5, 150, 105, 0.12);
}
.result-plan-tag {
    font-size: 12px;
    color: var(--text-muted-dark);
}
[data-theme="light"] .result-plan-tag {
    color: #475569;
}
.cd-calc-big-stat {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 4px;
}
.stat-currency {
    font-size: 26px;
    font-weight: 800;
    color: #10b981;
}
[data-theme="light"] .stat-currency {
    color: #059669;
}
.stat-number {
    font-size: clamp(34px, 4vw, 44px);
    font-weight: 900;
    color: var(--text-main-dark);
    letter-spacing: -0.5px;
}
[data-theme="light"] .stat-number {
    color: #0f172a;
}
.stat-period {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dim-dark);
}
.stat-caption {
    font-size: 12.5px;
    color: var(--text-muted-dark);
    margin-bottom: 20px;
    line-height: 1.4;
}
[data-theme="light"] .stat-caption {
    color: #475569;
}
.cd-calc-breakdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}
.cd-calc-mini-stat {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-subtle);
    padding: 12px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
}
[data-theme="light"] .cd-calc-mini-stat {
    background: #ffffff;
    border-color: #e2e8f0;
}
.mini-val {
    font-size: 18px;
    font-weight: 800;
    color: #10b981;
}
[data-theme="light"] .mini-val {
    color: #059669;
}
.mini-lbl {
    font-size: 11px;
    color: var(--text-dim-dark);
    margin-top: 2px;
}
[data-theme="light"] .mini-lbl {
    color: #64748b;
}
.cd-calc-guarantee {
    display: block;
    text-align: center;
    font-size: 11.5px;
    color: var(--text-dim-dark);
    margin-top: 10px;
}
[data-theme="light"] .cd-calc-guarantee {
    color: #64748b;
}

/* ========================================================
   WHATSAPP AUTOMATION SHOWCASE SECTION
   ======================================================== */
.cd-wa-showcase-section {
    padding: 80px 0;
}
.cd-wa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 30px;
}
.cd-wa-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.cd-wa-pill-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.cd-wa-tab-btn {
    padding: 8px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted-dark);
    cursor: pointer;
    transition: all 0.2s ease;
}
[data-theme="light"] .cd-wa-tab-btn {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #475569;
}
.cd-wa-tab-btn.active {
    background: #25d366;
    color: #ffffff !important;
    border-color: #25d366;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}
.cd-wa-phone-mockup {
    background: #111b21;
    border-radius: 28px;
    border: 6px solid #2a3942;
    padding: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    max-width: 420px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.cd-wa-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 16px;
}
.cd-wa-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #00a884;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
}
.cd-wa-meta-name {
    font-size: 14px;
    font-weight: 700;
    color: #e9edef;
}
.cd-wa-meta-sub {
    font-size: 11.5px;
    color: #8696a0;
}
.cd-wa-bubble {
    background: #005c4b;
    color: #e9edef;
    padding: 12px 14px;
    border-radius: 8px 8px 0px 8px;
    font-size: 13px;
    line-height: 1.5;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.cd-wa-time {
    display: block;
    text-align: right;
    font-size: 10px;
    color: #8696a0;
    margin-top: 4px;
}

@media (max-width: 900px) {
    .cd-calc-card {
        grid-template-columns: 1fr;
        padding: 22px;
    }
    .cd-wa-grid {
        grid-template-columns: 1fr;
    }
}

/* CRM / Enquiries Pipeline Kanban Styles */
.cd-kanban-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(270px, 1fr));
    gap: 16px;
    align-items: start;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 12px;
}
.cd-kanban-col {
    background: var(--bg-card-dark, #121c2e);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius, 12px);
    display: flex;
    flex-direction: column;
    min-height: 480px;
    transition: var(--transition, all 0.2s ease);
}
[data-theme="light"] .cd-kanban-col {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.cd-kanban-header {
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
[data-theme="light"] .cd-kanban-header {
    border-bottom: 1px solid #f1f5f9;
}
.cd-kanban-title {
    font-size: 13.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.01em;
}
.cd-kanban-count {
    font-size: 11.5px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08);
}
[data-theme="light"] .cd-kanban-count {
    background: #f1f5f9;
    color: #475569;
}
.cd-kanban-cards {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}
.cd-kanban-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cd-kanban-card:hover {
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
[data-theme="light"] .cd-kanban-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
[data-theme="light"] .cd-kanban-card:hover {
    border-color: #059669;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.cd-card-lead-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}
.cd-card-lead-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-heading, #f8fafc);
}
[data-theme="light"] .cd-card-lead-name {
    color: #0f172a;
}
.cd-card-lead-meta {
    font-size: 12px;
    color: var(--text-muted, #94a3b8);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.cd-badge-course {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    font-weight: 600;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid rgba(16, 185, 129, 0.25);
}
[data-theme="light"] .cd-badge-course {
    background: #ecfdf5;
    color: #059669;
    border-color: #a7f3d0;
}
.cd-badge-source {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted, #94a3b8);
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
}
[data-theme="light"] .cd-badge-source {
    background: #f1f5f9;
    color: #475569;
}
.cd-card-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 4px;
    flex-wrap: wrap;
}
.cd-btn-wa-pass {
    background: #25D366;
    color: #ffffff !important;
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    border: none;
    transition: opacity 0.15s;
}
.cd-btn-wa-pass:hover {
    opacity: 0.9;
}
.cd-card-stage-select {
    font-size: 11px;
    padding: 4px 6px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    color: inherit;
    cursor: pointer;
}
[data-theme="light"] .cd-card-stage-select {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1e293b;
}


/* ========================================================
   HIGH-VISIBILITY EDUCATION SaaS DESIGN ENGINE (CLASSPRO BENCHMARK)
   WCAG AAA CONTRAST ? ZERO FAINT / BLUR TEXT ? PERMANENT LIGHT MODE
   ======================================================== */

/* 1. Permanent Root Tokens Lock (60-30-10 Ice Blue SaaS Palette) */
:root,
html,
body,
html[data-theme],
html[data-theme="light"],
html[data-theme="dark"] {
    --bg-dark: #edf4fa !important; /* 60% Dominant: Ice Blue Canvas */
    --bg-surface-dark: #ffffff !important; /* 30% Secondary: Pure White Surfaces */
    --bg-card-dark: #ffffff !important;
    --bg-card-hover: #e4eef7 !important;
    --bg-input-dark: #ffffff !important;
    --bg-input-focus: #ffffff !important;

    --border-subtle: #cbd5e1 !important;
    --border: #cbd5e1 !important;
    --border-focus: rgba(5, 150, 105, 0.5) !important;
    --border-glow: rgba(5, 150, 105, 0.2) !important;

    /* Typography & Contrast Colors - Deep Crisp Slate */
    --text-main-dark: #0f172a !important;
    --text-muted-dark: #334155 !important;
    --text-dim-dark: #475569 !important;
    --text-label-dark: #0f172a !important;

    /* Theme Tokens (Clean Education SaaS) */
    --bg: #edf4fa !important;
    --surface: #ffffff !important;
    --text: #0f172a !important;
    --text-muted: #334155 !important;
    --text-heading: #0f172a !important;
    --text-primary: #0f172a !important;
    --text-secondary: #334155 !important;

    /* Primary Accent (10%) - Deep Jewel Emerald */
    --primary: #059669 !important;
    --primary-hover: #047857 !important;
    --primary-light: #ecfdf5 !important;
}

/* 2. Global High-Contrast Typography */
html {
    color-scheme: light !important;
}

html body,
body {
    background-color: #edf4fa !important;
    color: #0f172a !important;
    font-weight: 450 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
}

/* Headings: Deep, solid, razor-sharp on light surfaces */
html[data-theme] h1, html[data-theme] h2, html[data-theme] h3,
html[data-theme] h4, html[data-theme] h5, html[data-theme] h6,
h1, h2, h3, h4, h5, h6 {
    color: #0f172a;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Dark Container Overrides: Ensure Absolute High-Contrast Crisp White & Silver Text */
.section-security,
.section-security h1, .section-security h2, .section-security h3, 
.section-security .section-title, .section-security .sec-title,
.sec-card h1, .sec-card h2, .sec-card h3, .sec-card .sec-title,
.cd-dark-section, .cd-dark-section h1, .cd-dark-section h2, .cd-dark-section h3,
.cd-dark-container, .cd-dark-container h1, .cd-dark-container h2, .cd-dark-container h3,
.bg-dark, .bg-dark h1, .bg-dark h2, .bg-dark h3,
.cd-cta-banner, .cd-cta-banner h1, .cd-cta-banner h2, .cd-cta-banner h3 {
    color: #ffffff !important;
}
.section-security p, .section-security .sec-desc,
.sec-card p, .sec-card .sec-desc,
.cd-dark-section p, .cd-dark-container p {
    color: #cbd5e1 !important;
}

/* Paragraphs & Subtitles */
html[data-theme] p, p {
    color: inherit;
}
html[data-theme] .subtitle,
html[data-theme] .page-subtitle,
html[data-theme] .lead,
html[data-theme] .text-muted,
html[data-theme] .sub-text,
html[data-theme] .cell-subtitle,
.subtitle, .text-muted, .sub-text {
    color: #334155 !important;
    font-weight: 500 !important;
}

/* 3. Dark Theme Button Removal Everywhere */
.cd-theme-btn,
[aria-label="Toggle theme"],
[title="Toggle theme"] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* 4. Universal High-Visibility Form Controls */
html[data-theme] .form-control,
html[data-theme] .form-group input,
html[data-theme] .form-group select,
html[data-theme] .form-group textarea,
html[data-theme] input[type="text"],
html[data-theme] input[type="email"],
html[data-theme] input[type="password"],
html[data-theme] input[type="number"],
html[data-theme] input[type="tel"],
html[data-theme] input[type="date"],
html[data-theme] input[type="month"],
html[data-theme] input[type="search"],
html[data-theme] select,
html[data-theme] textarea,
.form-control, input, select, textarea {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    outline: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

html[data-theme] .form-control:focus,
html[data-theme] input:focus,
html[data-theme] select:focus,
html[data-theme] textarea:focus {
    border-color: #059669 !important;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2) !important;
    background: #ffffff !important;
}

html[data-theme] label,
html[data-theme] .form-label,
html[data-theme] .form-group label,
label, .form-label {
    display: block !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    margin-bottom: 6px !important;
    letter-spacing: 0.01em !important;
}

::placeholder {
    color: #64748b !important;
    opacity: 1 !important;
    font-weight: 450 !important;
}

select option {
    background: #ffffff !important;
    color: #0f172a !important;
    padding: 8px 12px !important;
}

/* 5. High-Visibility Tables & Ledgers (Classpro Benchmark) */
html[data-theme] .table-wrap,
html[data-theme] .table-responsive,
.table-wrap, .table-responsive {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
}

html[data-theme] table,
table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #ffffff !important;
}

html[data-theme] .table-wrap table th,
html[data-theme] .table-wrap th,
html[data-theme] .table-responsive th,
html[data-theme] .table th,
html[data-theme] table th,
html[data-theme] thead th,
html[data-theme] th,
table th, thead th {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 0.78rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border-bottom: 2px solid #cbd5e1 !important;
    border-top: none !important;
    padding: 13px 16px !important;
    white-space: nowrap !important;
}

html[data-theme] .table-wrap table td,
html[data-theme] .table-wrap td,
html[data-theme] .table-responsive td,
html[data-theme] .table td,
html[data-theme] table td,
html[data-theme] tbody td,
html[data-theme] td,
table td, tbody td {
    color: #0f172a !important;
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 14px 16px !important;
    background: #ffffff !important;
}

html[data-theme] tbody tr:hover td,
html[data-theme] table tbody tr:hover td {
    background: #f8fafc !important;
}

html[data-theme] tbody tr:last-child td {
    border-bottom: none !important;
}

/* Secondary Table Copy */
html[data-theme] td .text-muted,
html[data-theme] .table-wrap table td.text-muted,
html[data-theme] .table-wrap table td .text-muted,
html[data-theme] td small,
html[data-theme] td .sub-text,
html[data-theme] td span[style*="font-size:12px"],
html[data-theme] td span[style*="font-size: 12px"],
html[data-theme] td div[style*="font-size:12px"],
html[data-theme] td div[style*="font-size: 12px"] {
    color: #334155 !important;
    font-weight: 500 !important;
}

/* Zero / Empty markers */
html[data-theme] td span[style*="color:var(--text-dim-dark)"],
html[data-theme] td span.unpaid-text {
    color: #475569 !important;
    font-weight: 600 !important;
}

/* 6. Badges & Status Indicators (Deep Readable Text) */
html[data-theme] .badge,
.badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 4px 10px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    border-radius: 9999px !important;
    letter-spacing: 0.02em !important;
}

html[data-theme] .badge-green, html[data-theme] .badge.badge-green,
.badge-green {
    background: #dcfce7 !important;
    color: #15803d !important;
    border: 1px solid #86efac !important;
}

html[data-theme] .badge-red, html[data-theme] .badge.badge-red,
.badge-red {
    background: #fee2e2 !important;
    color: #b91c1c !important;
    border: 1px solid #fca5a5 !important;
}

html[data-theme] .badge-yellow, html[data-theme] .badge.badge-yellow,
.badge-yellow {
    background: #fef3c7 !important;
    color: #92400e !important;
    border: 1px solid #fcd34d !important;
}

html[data-theme] .badge-gray, html[data-theme] .badge.badge-gray,
.badge-gray {
    background: #f1f5f9 !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
}

html[data-theme] .badge-blue, html[data-theme] .badge.badge-blue,
html[data-theme] .badge-indigo, html[data-theme] .badge.badge-indigo,
.badge-blue, .badge-indigo {
    background: #e0f2fe !important;
    color: #0369a1 !important;
    border: 1px solid #7dd3fc !important;
}

html[data-theme] .cd-badge-course,
.cd-badge-course {
    background: #ecfdf5 !important;
    color: #047857 !important;
    border: 1px solid #a7f3d0 !important;
    font-weight: 600 !important;
}

/* 7. Sidebar Navigation (Crystal Clear) */
html[data-theme] .sidebar,
html[data-theme] .admin-side,
.sidebar, .admin-side {
    background: #ffffff !important;
    border-right: 1.5px solid #e2e8f0 !important;
}

html[data-theme] .sidebar .logo,
html[data-theme] .admin-side .logo,
.sidebar .logo {
    color: #0f172a !important;
    border-bottom: 1.5px solid #e2e8f0 !important;
}

html[data-theme] .sidebar-nav .nav-link,
html[data-theme] .sidebar nav a,
html[data-theme] .admin-side nav a,
.sidebar-nav .nav-link {
    color: #1e293b !important;
    font-weight: 600 !important;
    font-size: 0.92rem !important;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    transition: background 0.15s ease, color 0.15s ease !important;
}

html[data-theme] .sidebar-nav .nav-link .nav-icon,
html[data-theme] .sidebar nav a i,
html[data-theme] .admin-side nav a i {
    color: #475569 !important;
}

html[data-theme] .sidebar-nav .nav-link:hover,
html[data-theme] .sidebar nav a:hover,
html[data-theme] .admin-side nav a:hover {
    background: #ecfdf5 !important;
    color: #059669 !important;
}

html[data-theme] .sidebar-nav .nav-link:hover .nav-icon,
html[data-theme] .sidebar nav a:hover i {
    color: #059669 !important;
}

html[data-theme] .sidebar-nav .nav-link.active,
html[data-theme] .sidebar nav a.active,
html[data-theme] .admin-side nav a.active {
    background: #ecfdf5 !important;
    color: #059669 !important;
    font-weight: 700 !important;
}

html[data-theme] .sidebar-nav .nav-link.active .nav-icon,
html[data-theme] .sidebar nav a.active i {
    color: #059669 !important;
}

html[data-theme] .sidebar .user-box,
.sidebar .user-box {
    background: #f8fafc !important;
    border-top: 1.5px solid #e2e8f0 !important;
}

html[data-theme] .user-center-name, .user-center-name {
    color: #0f172a !important;
    font-weight: 700 !important;
}

html[data-theme] .user-email-text, .user-email-text {
    color: #475569 !important;
    font-weight: 500 !important;
}

html[data-theme] .user-logout-link, .user-logout-link {
    color: #dc2626 !important;
    font-weight: 600 !important;
}

/* 8. Topbar & Layout Canvas (60% Dominant: Ice Blue) */
html[data-theme] .app-wrap,
html[data-theme] .admin-shell,
html[data-theme] .main,
html[data-theme] .admin-main,
html[data-theme] .content,
html[data-theme] .admin-content,
.app-wrap, .admin-shell, .main, .admin-main {
    background: #edf4fa !important;
}

html[data-theme] .topbar,
html[data-theme] .admin-top,
.topbar, .admin-top {
    background: #ffffff !important;
    border-bottom: 1.5px solid #cbd5e1 !important;
}

html[data-theme] .topbar .page-title,
html[data-theme] .topbar-left .page-title,
html[data-theme] .admin-top .page-title,
.topbar .page-title {
    color: #0f172a !important;
    font-weight: 800 !important;
    font-size: 1.25rem !important;
}

/* 9. Cards & Bento Containers (30% Secondary: Pure White Surfaces) */
html[data-theme] .card,
html[data-theme] .stat-card,
html[data-theme] .auth-card,
html[data-theme] .dash-action-card,
html[data-theme] .radar-card,
html[data-theme] .kpi-card,
html[data-theme] .cd-calc-card,
html[data-theme] .cd-calc-results,
html[data-theme] .cd-kanban-card,
.card, .stat-card {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03) !important;
    color: #0f172a !important;
}

html[data-theme] .cd-kanban-col {
    background: #e2edf6 !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 14px !important;
}

html[data-theme] .card:hover,
html[data-theme] .dash-action-card:hover,
html[data-theme] .radar-card:hover,
html[data-theme] .kpi-card:hover {
    border-color: #94a3b8 !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06) !important;
}

/* KPI Card Labels & Values */
html[data-theme] .dash-stat-label,
html[data-theme] .kpi-label,
html[data-theme] .stat-caption,
html[data-theme] .radar-tag,
html[data-theme] .kpi-card-header span,
html[data-theme] .stat-card .label,
.stat-card .label, .kpi-label {
    color: #334155 !important;
    font-weight: 700 !important;
    font-size: 0.76rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

html[data-theme] .dash-stat-value,
html[data-theme] .kpi-value,
html[data-theme] .stat-number,
html[data-theme] .stat-card .value,
.stat-card .value, .kpi-value {
    color: #0f172a !important;
    font-weight: 800 !important;
}

html[data-theme] .dash-stat-sub,
html[data-theme] .kpi-footer,
html[data-theme] .radar-desc,
html[data-theme] .kpi-sub-right,
html[data-theme] .kpi-footer span,
.kpi-footer {
    color: #334155 !important;
    font-weight: 600 !important;
    font-size: 0.82rem !important;
}

/* 10. Buttons & Actions (10% Accent - Solid Emerald with White Text) */
html[data-theme] .btn-primary,
html[data-theme] a.btn-primary,
html[data-theme] .table-wrap table td a.btn,
html[data-theme] .table-wrap table td a.btn-primary,
.btn-primary,
a.btn-primary,
a.btn-primary:visited,
.table-wrap table td a.btn,
.table-wrap table td a.btn-primary {
    background: #059669 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border: 1px solid #047857 !important;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.28) !important;
    text-decoration: none !important;
}
html[data-theme] .btn-primary:hover,
html[data-theme] a.btn-primary:hover,
html[data-theme] .table-wrap table td a.btn:hover,
html[data-theme] .table-wrap table td a.btn-primary:hover,
.btn-primary:hover,
a.btn-primary:hover,
.table-wrap table td a.btn:hover,
.table-wrap table td a.btn-primary:hover {
    background: #047857 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.38) !important;
}

html[data-theme] .btn-secondary,
.btn-secondary {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1.5px solid #cbd5e1 !important;
    font-weight: 600 !important;
}
html[data-theme] .btn-secondary:hover,
.btn-secondary:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

html[data-theme] .btn-ghost,
.btn-ghost {
    background: transparent !important;
    color: #334155 !important;
    border: 1px solid transparent !important;
    font-weight: 600 !important;
}
html[data-theme] .btn-ghost:hover,
.btn-ghost:hover {
    color: #059669 !important;
    background: #ecfdf5 !important;
}

html[data-theme] .btn-outline-light,
.btn-outline-light {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1.5px solid #cbd5e1 !important;
    font-weight: 600 !important;
}
html[data-theme] .btn-outline-light:hover,
.btn-outline-light:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
}

/* 11. Landing Page Specific Visibility */
html[data-theme] .cd-nav-wrap,
.cd-nav-wrap {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}

html[data-theme] .cd-nav-logo,
.cd-nav-logo {
    color: #0f172a !important;
    font-weight: 800 !important;
}

html[data-theme] .cd-nav-links a,
.cd-nav-links a {
    color: #1e293b !important;
    font-weight: 600 !important;
    font-size: 0.92rem !important;
}

html[data-theme] .cd-nav-links a:hover,
.cd-nav-links a:hover {
    color: #059669 !important;
    background: #ecfdf5 !important;
}

html[data-theme] .cd-hero-h1,
.cd-hero-h1 {
    color: #0f172a !important;
    font-weight: 800 !important;
}

html[data-theme] .cd-hero-sub,
.cd-hero-sub {
    color: #1e293b !important;
    font-weight: 500 !important;
    font-size: 1.15rem !important;
    line-height: 1.7 !important;
}

html[data-theme] .cd-micro-trust,
.cd-micro-trust {
    color: #334155 !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
}

html[data-theme] .cd-matrix-table th,
.cd-matrix-table th {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 0.78rem !important;
    border-bottom: 2px solid #cbd5e1 !important;
}

html[data-theme] .cd-matrix-table td,
.cd-matrix-table td {
    color: #1e293b !important;
    font-weight: 500 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

html[data-theme] .task-cell strong,
.task-cell strong {
    color: #0f172a !important;
    font-weight: 700 !important;
}

html[data-theme] .task-cell span,
html[data-theme] .cell-paper,
html[data-theme] .cell-excel,
.task-cell span, .cell-paper, .cell-excel {
    color: #334155 !important;
    font-weight: 500 !important;
}

html[data-theme] .cell-veyhub strong,
.cell-veyhub strong {
    color: #047857 !important;
    font-weight: 700 !important;
}

html[data-theme] .cd-price-card,
.cd-price-card {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

html[data-theme] .cd-price-name,
.cd-price-name {
    color: #0f172a !important;
    font-weight: 800 !important;
}

html[data-theme] .cd-price-desc,
.cd-price-desc {
    color: #334155 !important;
    font-weight: 500 !important;
}

html[data-theme] .cd-price-amount,
.cd-price-amount {
    color: #0f172a !important;
    font-weight: 800 !important;
}

html[data-theme] .cd-price-cycle,
.cd-price-cycle {
    color: #475569 !important;
    font-weight: 600 !important;
}

html[data-theme] .cd-price-feats li,
.cd-price-feats li {
    color: #0f172a !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
}

html[data-theme] .cd-faq-item,
.cd-faq-item {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
}

html[data-theme] .cd-faq-btn,
.cd-faq-btn {
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
}

html[data-theme] .cd-faq-body,
html[data-theme] .cd-faq-body p,
.cd-faq-body, .cd-faq-body p {
    color: #1e293b !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    line-height: 1.65 !important;
}

/* 12. Attendance Roll Call Roster */
html[data-theme] .cd-att-student-row,
.cd-att-student-row {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
}

html[data-theme] .cd-att-student-row:hover,
.cd-att-student-row:hover {
    border-color: #94a3b8 !important;
}

html[data-theme] .cd-att-name,
.cd-att-name {
    color: #0f172a !important;
    font-weight: 700 !important;
}

html[data-theme] .cd-att-sub,
.cd-att-sub {
    color: #334155 !important;
    font-weight: 500 !important;
}

html[data-theme] .cd-att-btn-inner,
.cd-att-btn-inner {
    font-weight: 600 !important;
    color: #334155 !important;
}

/* 13. Admissions CRM Kanban Pipeline */
html[data-theme] .cd-kanban-col,
.cd-kanban-col {
    background: #e2edf6 !important;
    border: 1.5px solid #cbd5e1 !important;
}

html[data-theme] .cd-kanban-header,
.cd-kanban-header {
    border-bottom: 1.5px solid #cbd5e1 !important;
}

html[data-theme] .cd-kanban-title,
.cd-kanban-title {
    color: #0f172a !important;
    font-weight: 700 !important;
}

html[data-theme] .cd-kanban-count,
.cd-kanban-count {
    background: #cbd5e1 !important;
    color: #0f172a !important;
    font-weight: 700 !important;
}

html[data-theme] .cd-kanban-card,
.cd-kanban-card {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
}

html[data-theme] .cd-card-lead-name,
.cd-card-lead-name {
    color: #0f172a !important;
    font-weight: 700 !important;
}

html[data-theme] .cd-card-lead-meta,
.cd-card-lead-meta {
    color: #334155 !important;
    font-weight: 500 !important;
}

/* 14. Footer Clarity */
html[data-theme] .cd-footer p {
    color: #334155 !important;
    font-weight: 500 !important;
}
html[data-theme] .cd-footer-col a {
    color: #1e293b !important;
    font-weight: 500 !important;
}
html[data-theme] .cd-footer-col a:hover {
    color: #059669 !important;
}
html[data-theme] .cd-footer-bottom {
    color: #475569 !important;
    font-weight: 500 !important;
}

/* 15. Landing Page 60-30-10 System (Ice Blue Canvas + Crisp White Cards) */
html[data-theme] .cd-hero-section,
html[data-theme] .cd-workbench-section,
html[data-theme] .cd-matrix-section,
html[data-theme] .cd-pillars-section,
html[data-theme] .cd-pricing-section,
html[data-theme] .cd-stat-counter-section,
html[data-theme] .cd-cta-section,
.cd-hero-section,
.cd-workbench-section,
.cd-matrix-section,
.cd-pillars-section,
.cd-pricing-section,
.cd-stat-counter-section,
.cd-cta-section {
    background: #edf4fa !important;
}

html[data-theme] .cd-workbench-section,
html[data-theme] .cd-faq-section,
.cd-workbench-section,
.cd-faq-section {
    background: #e5eff8 !important;
}

html[data-theme] .cd-matrix-wrap,
html[data-theme] .cd-matrix-table-wrap,
html[data-theme] .cd-hero-live-card,
html[data-theme] .cd-workbench-frame,
html[data-theme] .cd-workbench-panel,
html[data-theme] .cd-pillar-card,
html[data-theme] .cd-price-card,
html[data-theme] .cd-faq-item,
html[data-theme] .cd-cta-card,
html[data-theme] .cd-stat-box,
.cd-matrix-wrap,
.cd-hero-live-card,
.cd-workbench-frame,
.cd-workbench-panel,
.cd-pillar-card,
.cd-price-card,
.cd-faq-item,
.cd-cta-card,
.cd-stat-box {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
}

/* CTA Card Contrast & Heading Fix across Light and Dark Themes */
html[data-theme] .cd-cta-card,
.cd-cta-card {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
    color: #0f172a !important;
}
html[data-theme] .cd-cta-card h1,
html[data-theme] .cd-cta-card h2,
html[data-theme] .cd-cta-card h3,
html[data-theme] .cd-cta-h2,
.cd-cta-card h1,
.cd-cta-card h2,
.cd-cta-card h3,
.cd-cta-h2 {
    color: #0f172a !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
html[data-theme] .cd-cta-desc,
.cd-cta-desc {
    color: #475569 !important;
}
html[data-theme] .cd-cta-eyebrow,
.cd-cta-eyebrow {
    color: #4f46e5 !important;
}
html[data-theme] .cd-cta-micro-trust,
.cd-cta-micro-trust {
    color: #64748b !important;
}
[data-theme="dark"] .cd-cta-card {
    background: #0f172a !important;
    border-color: #1e293b !important;
    color: #ffffff !important;
}
[data-theme="dark"] .cd-cta-card h1,
[data-theme="dark"] .cd-cta-card h2,
[data-theme="dark"] .cd-cta-card h3,
[data-theme="dark"] .cd-cta-h2 {
    color: #ffffff !important;
}
[data-theme="dark"] .cd-cta-desc {
    color: #94a3b8 !important;
}

html[data-theme] .cd-footer,
.cd-footer {
    background: #e2edf7 !important;
    border-top: 1.5px solid #cbd5e1 !important;
}

/* =========================================================
   UI FIXES: Search Overlap, Subtitle Center, Table Wrap
   ========================================================= */

/* 1. Global Hero Subtitle Center Alignment */
.cd-text-center .cd-section-desc,
.cd-section-desc {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

/* 2. Blog Search Input Icon Overlap Fix */
html[data-theme] .cd-blog-search-box input,
.cd-blog-search-box input,
#cd-blog-search {
    padding-left: 52px !important;
    padding-right: 20px !important;
    border-radius: 9999px !important;
    min-height: 52px !important;
    line-height: 1.5 !important;
}

.cd-blog-search-box .cd-search-icon {
    left: 20px !important;
    z-index: 5 !important;
    pointer-events: none !important;
}

/* 3. Student Portal Responsive Tables & Cards */
.student-wrap .table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    width: 100% !important;
}

.student-wrap table {
    min-width: 100% !important;
    width: 100% !important;
}


/* =========================================================
   AWARD-WINNING BENTO GRID: SUPERSTAR FEATURES SHOWCASE
   ========================================================= */

.cd-bento-section {
    padding: 90px 0;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .cd-bento-section {
    background: #080d1a;
    border-top-color: rgba(255, 255, 255, 0.06);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.cd-bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.cd-bento-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .cd-bento-card {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.cd-bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(16, 185, 129, 0.09), 0 4px 16px rgba(15, 23, 42, 0.06);
    border-color: rgba(16, 185, 129, 0.35);
}

.cd-bento-span-7 { grid-column: span 7; }
.cd-bento-span-5 { grid-column: span 5; }
.cd-bento-span-6 { grid-column: span 6; }

/* Bento Header & Typography */
.cd-bento-header {
    margin-bottom: 24px;
}

.cd-bento-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    margin-bottom: 14px;
}

[data-theme="dark"] .cd-bento-badge {
    background: rgba(16, 185, 129, 0.16);
    color: #34d399;
}

.cd-badge-wa {
    background: rgba(37, 211, 102, 0.12);
    color: #128c7e;
}
[data-theme="dark"] .cd-badge-wa {
    background: rgba(37, 211, 102, 0.2);
    color: #25d366;
}

.cd-badge-profit {
    background: rgba(14, 165, 233, 0.1);
    color: #0284c7;
}
[data-theme="dark"] .cd-badge-profit {
    background: rgba(14, 165, 233, 0.18);
    color: #38bdf8;
}

.cd-badge-import {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}
[data-theme="dark"] .cd-badge-import {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
}

.cd-badge-notice {
    background: rgba(168, 85, 247, 0.12);
    color: #9333ea;
}
[data-theme="dark"] .cd-badge-notice {
    background: rgba(168, 85, 247, 0.18);
    color: #c084fc;
}

.cd-bento-title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    color: #0f172a;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

[data-theme="dark"] .cd-bento-title {
    color: #f8fafc;
}

.cd-bento-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}

[data-theme="dark"] .cd-bento-desc {
    color: #94a3b8;
}

/* Bento Widget Container */
.cd-bento-widget {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    margin-top: auto;
}

[data-theme="dark"] .cd-bento-widget {
    background: #141e33;
    border-color: rgba(255, 255, 255, 0.06);
}

/* Bento Feature Actions / Footer Pills */
.cd-bento-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed #e2e8f0;
}

[data-theme="dark"] .cd-bento-actions {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.cd-action-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 5px 10px;
    border-radius: 8px;
}

[data-theme="dark"] .cd-action-pill {
    background: #0f172a;
    color: #cbd5e1;
    border-color: rgba(255, 255, 255, 0.08);
}

/* Card 1: ID Card Widget */
.cd-id-card-mockup {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    position: relative;
}

[data-theme="dark"] .cd-id-card-mockup {
    background: #0b1120;
    border-color: rgba(255, 255, 255, 0.12);
}

.cd-id-topbar {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
}

.cd-id-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.04em;
}

.cd-id-badge-pill {
    font-size: 10px;
    background: rgba(255, 255, 255, 0.22);
    padding: 2px 8px;
    border-radius: 9999px;
    font-weight: 600;
}

.cd-id-body {
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.cd-id-photo {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #94a3b8;
    border: 2px solid #10b981;
    flex-shrink: 0;
}

[data-theme="dark"] .cd-id-photo {
    background: #1e293b;
    color: #64748b;
}

.cd-id-details {
    flex-grow: 1;
    min-width: 0;
}

.cd-id-name {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 2px;
}

[data-theme="dark"] .cd-id-name {
    color: #f8fafc;
}

.cd-id-meta {
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.45;
}

[data-theme="dark"] .cd-id-meta {
    color: #94a3b8;
}

.cd-id-qr-box {
    text-align: center;
    flex-shrink: 0;
}

.cd-qr-graphic {
    width: 48px;
    height: 48px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #0f172a;
    margin: 0 auto 3px;
}

[data-theme="dark"] .cd-qr-graphic {
    background: #ffffff;
    color: #0f172a;
}

.cd-qr-sub {
    font-size: 9px;
    font-weight: 700;
    color: #059669;
    text-transform: uppercase;
}

.cd-id-strip {
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
    padding: 6px 14px;
    display: flex;
    justify-content: space-between;
    font-size: 10.5px;
    font-weight: 600;
    color: #64748b;
}

[data-theme="dark"] .cd-id-strip {
    background: #0f172a;
    border-top-color: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

/* Card 2: Exam & WhatsApp Widget */
.cd-exam-mockup {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
}

[data-theme="dark"] .cd-exam-mockup {
    background: #0b1120;
    border-color: rgba(255, 255, 255, 0.1);
}

.cd-exam-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.cd-exam-tag {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: #059669;
}

.cd-exam-title {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}

[data-theme="dark"] .cd-exam-title {
    color: #f8fafc;
}

.cd-exam-grade {
    font-size: 18px;
    font-weight: 900;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    border-radius: 8px;
    padding: 4px 10px;
}

.cd-exam-score-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.cd-score-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px;
    text-align: center;
}

[data-theme="dark"] .cd-score-box {
    background: #141e33;
    border-color: rgba(255, 255, 255, 0.06);
}

.cd-score-lbl {
    font-size: 10px;
    color: #64748b;
    display: block;
    margin-bottom: 2px;
}

.cd-score-val {
    font-size: 13.5px;
    font-weight: 800;
}

.cd-wa-report-banner {
    background: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.25);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cd-wa-msg-text {
    flex-grow: 1;
    min-width: 0;
    font-size: 11.5px;
}

.cd-wa-msg-text strong {
    display: block;
    color: #0f172a;
    font-size: 12px;
}

[data-theme="dark"] .cd-wa-msg-text strong {
    color: #f8fafc;
}

.cd-wa-msg-text span {
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.cd-wa-send-btn {
    font-size: 11px;
    font-weight: 700;
    background: #10b981;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

/* Card 3: Expense & Net Profit Widget */
.cd-profit-mockup {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cd-pnl-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cd-pnl-chip {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
}

[data-theme="dark"] .cd-pnl-chip {
    background: #0b1120;
    border-color: rgba(255, 255, 255, 0.08);
}

.pnl-lbl {
    display: block;
    font-size: 10.5px;
    color: #64748b;
    margin-bottom: 2px;
    font-weight: 600;
}

.pnl-val {
    font-size: 15px;
    font-weight: 800;
}

.cd-net-profit-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(14, 165, 233, 0.08) 100%);
    border: 1.5px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 14px 16px;
}

.net-profit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.net-lbl {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #059669;
}

[data-theme="dark"] .net-lbl {
    color: #34d399;
}

.net-margin-badge {
    font-size: 11px;
    font-weight: 800;
    background: #10b981;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 9999px;
}

.net-amount {
    font-size: 24px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

[data-theme="dark"] .net-amount {
    color: #f8fafc;
}

.cd-profit-breakdown {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

[data-theme="dark"] .cd-profit-breakdown {
    color: #94a3b8;
}

/* Card 4: Bulk Excel Import Widget */
.cd-import-dropzone {
    background: #ffffff;
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    padding: 16px;
}

[data-theme="dark"] .cd-import-dropzone {
    background: #0b1120;
    border-color: rgba(255, 255, 255, 0.15);
}

.cd-file-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

[data-theme="dark"] .cd-file-card {
    background: #141e33;
    border-color: rgba(255, 255, 255, 0.08);
}

.cd-file-icon {
    font-size: 24px;
    color: #10b981;
}

.cd-file-info {
    flex-grow: 1;
    min-width: 0;
}

.cd-file-name {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme="dark"] .cd-file-name {
    color: #f8fafc;
}

.cd-file-meta {
    font-size: 11px;
    color: #64748b;
}

.cd-file-status {
    font-size: 12px;
    font-weight: 700;
    color: #059669;
}

.cd-mapping-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.cd-chip-item {
    font-size: 11px;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 6px;
    padding: 3px 8px;
}

[data-theme="dark"] .cd-chip-item {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.cd-import-progress-wrap {
    height: 6px;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 8px;
}

[data-theme="dark"] .cd-import-progress-wrap {
    background: #1e293b;
}

.cd-import-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 9999px;
}

.cd-import-success-note {
    font-size: 11px;
    font-weight: 600;
    color: #059669;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Card 5: Timetable Widget */
.cd-tt-day-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.cd-tt-day {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    cursor: default;
    white-space: nowrap;
}

[data-theme="dark"] .cd-tt-day {
    background: #0b1120;
    border-color: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

.cd-tt-day.active {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
}

.cd-tt-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cd-tt-slot {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
}

[data-theme="dark"] .cd-tt-slot {
    background: #0b1120;
    border-color: rgba(255, 255, 255, 0.08);
}

.cd-tt-slot.active-slot {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.04);
}

.cd-tt-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    flex-shrink: 0;
}

.slot-hour {
    font-size: 11px;
    font-weight: 800;
    color: #0f172a;
}

[data-theme="dark"] .slot-hour {
    color: #f8fafc;
}

.slot-status-pulse {
    font-size: 10px;
    font-weight: 700;
    color: #10b981;
}

.slot-status-up {
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
}

.cd-tt-details {
    flex-grow: 1;
    min-width: 0;
}

.slot-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
}

[data-theme="dark"] .slot-title {
    color: #f8fafc;
}

.slot-meta {
    font-size: 11px;
    color: #64748b;
}

/* Card 6: Notice Widget */
.cd-notice-mockup {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
}

[data-theme="dark"] .cd-notice-mockup {
    background: #0b1120;
    border-color: rgba(255, 255, 255, 0.08);
}

.cd-notice-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cd-notice-tag {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
}

.cd-notice-tag.urgent {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

[data-theme="dark"] .cd-notice-tag.urgent {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.cd-notice-date {
    font-size: 11px;
    color: #94a3b8;
}

.cd-notice-head {
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
}

[data-theme="dark"] .cd-notice-head {
    color: #f8fafc;
}

.cd-notice-text {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 12px;
}

[data-theme="dark"] .cd-notice-text {
    color: #94a3b8;
}

.cd-notice-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 8px;
}

[data-theme="dark"] .cd-notice-footer {
    border-top-color: rgba(255, 255, 255, 0.06);
}

.cd-reach-stat {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
}

[data-theme="dark"] .cd-reach-stat {
    color: #cbd5e1;
}

/* Responsive Breakpoints for Bento Grid */
@media (max-width: 992px) {
    .cd-bento-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cd-bento-span-7,
    .cd-bento-span-5,
    .cd-bento-span-6 {
        grid-column: span 12;
    }

    .cd-bento-card {
        padding: 24px;
    }

    .cd-id-body {
        flex-direction: column;
        text-align: center;
    }

    .cd-id-photo {
        margin: 0 auto;
    }

    .cd-pnl-row {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   ENHANCED FOOTER: BOLD VISIBILITY & CRISP SOCIAL BUTTONS
   ========================================================= */

.cd-footer {
    background: #e2edf7 !important;
    border-top: 1.5px solid #cbd5e1 !important;
    padding: 72px 0 36px !important;
}

[data-theme="dark"] .cd-footer {
    background: #060910 !important;
    border-top-color: rgba(255, 255, 255, 0.08) !important;
}

.cd-footer-brand .cd-nav-logo {
    font-size: 19px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 12px;
}

[data-theme="dark"] .cd-footer-brand .cd-nav-logo {
    color: #f8fafc !important;
}

.cd-footer-brand p {
    color: #1e293b !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.65 !important;
    max-width: 320px !important;
}

[data-theme="dark"] .cd-footer-brand p {
    color: #cbd5e1 !important;
}

/* Trust Badges in Footer */
.cd-footer-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px !important;
}

.cd-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px 11px;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

[data-theme="dark"] .cd-trust-badge {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0 !important;
}

/* Social Media Buttons (Crisp, Bold, High Contrast) */
.cd-social-links {
    display: flex !important;
    align-items: center;
    gap: 12px !important;
    margin-top: 20px !important;
}

.cd-social-btn {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 21px !important;
    color: #0f172a !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.07) !important;
    transition: all 0.22s ease-in-out !important;
    text-decoration: none !important;
}

[data-theme="dark"] .cd-social-btn {
    background: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: #f8fafc !important;
}

.cd-social-btn:hover {
    transform: translateY(-3px) scale(1.06);
}

.cd-social-facebook:hover {
    background: #1877F2 !important;
    color: #ffffff !important;
    border-color: #1877F2 !important;
    box-shadow: 0 6px 18px rgba(24, 119, 242, 0.4) !important;
}

.cd-social-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 6px 18px rgba(220, 39, 67, 0.4) !important;
}

.cd-social-linkedin:hover {
    background: #0A66C2 !important;
    color: #ffffff !important;
    border-color: #0A66C2 !important;
    box-shadow: 0 6px 18px rgba(10, 102, 194, 0.4) !important;
}

.cd-social-youtube:hover {
    background: #ff0000 !important;
    color: #ffffff !important;
    border-color: #ff0000 !important;
    box-shadow: 0 6px 18px rgba(255, 0, 0, 0.4) !important;
}

.cd-social-whatsapp:hover {
    background: #25D366 !important;
    color: #ffffff !important;
    border-color: #25D366 !important;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4) !important;
}

/* Footer Column Headings */
.cd-footer-col .cd-footer-heading,
.cd-footer-col h3 {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 18px !important;
}

[data-theme="dark"] .cd-footer-col .cd-footer-heading,
[data-theme="dark"] .cd-footer-col h3 {
    color: #f8fafc !important;
}

/* Footer Links (Bold, High Contrast, Smooth Hover) */
.cd-footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px !important;
    list-style: none;
    padding: 0;
    margin: 0;
}

.cd-footer-col li a {
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    transition: color 0.18s ease, transform 0.18s ease;
    display: inline-block;
    text-decoration: none;
}

[data-theme="dark"] .cd-footer-col li a {
    color: #e2e8f0 !important;
}

.cd-footer-col li a:hover {
    color: #059669 !important;
    transform: translateX(4px);
}

/* Footer Bottom Bar */
.cd-footer-bottom {
    border-top: 1.5px solid #cbd5e1 !important;
    padding-top: 24px !important;
    margin-top: 40px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

[data-theme="dark"] .cd-footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
}

.cd-footer-bottom span {
    color: #0f172a !important;
    font-weight: 700 !important;
}

[data-theme="dark"] .cd-footer-bottom span {
    color: #cbd5e1 !important;
}


/* =========================================================
   MOBILE SIDEBAR: PINNED LOGOUT & INDEPENDENT SCROLL
   ========================================================= */

/* Desktop & Global Logout Button Styles */
.user-profile-compact {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
}

.user-info-text {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

.user-logout-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 11px !important;
    border-radius: 8px !important;
    background: #fee2e2 !important;
    color: #dc2626 !important;
    border: 1.5px solid #fca5a5 !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
    transition: all 0.18s ease-in-out !important;
    cursor: pointer !important;
}

html[data-theme] .sidebar .user-box a.user-logout-btn,
html[data-theme] .sidebar .user-box a.user-logout-btn span,
html[data-theme] .sidebar .user-box a.user-logout-btn i,
.sidebar .user-box a.user-logout-btn,
.sidebar .user-box a.user-logout-btn span,
.sidebar .user-box a.user-logout-btn i {
    color: #dc2626 !important;
}

.user-logout-btn:hover,
.user-logout-btn:active,
html[data-theme] .sidebar .user-box a.user-logout-btn:hover,
html[data-theme] .sidebar .user-box a.user-logout-btn:hover span,
html[data-theme] .sidebar .user-box a.user-logout-btn:hover i {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.25);
}

[data-theme="dark"] .user-logout-btn {
    background: rgba(220, 38, 38, 0.15) !important;
    border-color: rgba(220, 38, 38, 0.35) !important;
    color: #f87171 !important;
}

[data-theme="dark"] .user-logout-btn:hover {
    background: #dc2626 !important;
    color: #ffffff !important;
}

/* Nav Link Logout (Fallback in menu list) */
.nav-link-logout {
    color: #dc2626 !important;
    font-weight: 700 !important;
}

.nav-link-logout:hover {
    background: #fee2e2 !important;
    color: #b91c1c !important;
}

[data-theme="dark"] .nav-link-logout:hover {
    background: rgba(220, 38, 38, 0.2) !important;
    color: #fca5a5 !important;
}

/* Mobile Specific Sidebar Drawer Overrides */
@media (max-width: 900px) {
    .sidebar {
        position: fixed !important;
        left: -320px !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 290px !important;
        max-width: 86vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        transition: left 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
        z-index: 1050 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important; /* Sidebar body does NOT scroll; only nav scrolls! */
        overscroll-behavior: contain;
    }

    .sidebar.open {
        left: 0 !important;
    }

    .sidebar .logo {
        flex-shrink: 0 !important;
    }

    .sidebar-nav {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 16px !important;
    }

    .sidebar .user-box {
        flex-shrink: 0 !important;
        margin-top: auto !important;
        background: #ffffff !important;
        border-top: 1.5px solid #cbd5e1 !important;
        padding: 12px 14px max(14px, env(safe-area-inset-bottom, 14px)) !important;
        box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08) !important;
        z-index: 20 !important;
    }

    [data-theme="dark"] .sidebar .user-box {
        background: #0b1120 !important;
        border-top-color: rgba(255, 255, 255, 0.12) !important;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.5) !important;
    }

    .user-actions-row {
        margin-top: 6px !important;
        padding-top: 6px !important;
    }
}

/* ========================================================
   FLOATING WHATSAPP BUG REPORT & SUPPORT BUTTON
   ======================================================== */
.cd-wa-float-btn {
    position: fixed;
    bottom: 80px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: #25D366;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    z-index: 501;
    text-decoration: none !important;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}
.cd-wa-float-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
    color: #ffffff !important;
}
.cd-wa-float-btn .cd-wa-tooltip {
    position: absolute;
    right: 58px;
    top: 50%;
    transform: translateY(-50%);
    background: #0f172a;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.cd-wa-float-btn:hover .cd-wa-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(-4px);
}
@media (max-width: 640px) {
    .cd-wa-float-btn {
        bottom: 18px;
        right: 16px;
        width: 48px;
        height: 48px;
        font-size: 26px;
        box-shadow: 0 6px 22px rgba(37, 211, 102, 0.5);
    }
    .cd-wa-float-btn .cd-wa-tooltip {
        display: none;
    }
}

/* ========================================================
   WHATSAPP REMINDER ACTION GROUP & EDIT BUTTON
   ======================================================== */
.cd-wa-action-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    vertical-align: middle;
}
.btn-wa-edit {
    background: rgba(37, 211, 102, 0.12) !important;
    color: #15803d !important;
    border: 1px solid rgba(22, 163, 74, 0.35) !important;
    border-radius: 9999px !important;
    padding: 3px 8px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    transition: all 0.15s ease !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
}
.btn-wa-edit:hover {
    background: #16a34a !important;
    color: #ffffff !important;
    border-color: #16a34a !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(22, 163, 74, 0.25) !important;
}
[data-theme="dark"] .btn-wa-edit {
    background: rgba(37, 211, 102, 0.15) !important;
    color: #4ade80 !important;
    border-color: rgba(74, 222, 128, 0.3) !important;
}
[data-theme="dark"] .btn-wa-edit:hover {
    background: #22c55e !important;
    color: #0b1120 !important;
}

/* ========================================================
   GLOBAL WHATSAPP MESSAGE CUSTOMIZER / EDITOR MODAL
   ======================================================== */
.cd-wa-modal-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: cdFadeIn 0.2s ease-out;
}
.cd-wa-modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 520px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: cdScaleUp 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid #e2e8f0;
}
[data-theme="dark"] .cd-wa-modal-content {
    background: #0f172a;
    border-color: #1e293b;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
.cd-wa-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
}
[data-theme="dark"] .cd-wa-modal-header {
    background: #1e293b;
    border-bottom-color: #334155;
}
.cd-wa-modal-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.cd-wa-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.15s ease;
}
.cd-wa-modal-close:hover {
    color: #ef4444;
}
.cd-wa-modal-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cd-wa-textarea {
    width: 100%;
    min-height: 190px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1.5px solid #cbd5e1;
    font-family: inherit;
    font-size: 13.5px;
    line-height: 1.55;
    color: #0f172a;
    background: #f8fafc;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.cd-wa-textarea:focus {
    border-color: #25D366;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2);
}
[data-theme="dark"] .cd-wa-textarea {
    background: #020617;
    border-color: #334155;
    color: #f1f5f9;
}
[data-theme="dark"] .cd-wa-textarea:focus {
    border-color: #22c55e;
    background: #0b1120;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}
.cd-wa-modal-footer {
    padding: 14px 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    flex-wrap: wrap;
    gap: 10px;
}
[data-theme="dark"] .cd-wa-modal-footer {
    background: #1e293b;
    border-top-color: #334155;
}
@keyframes cdFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes cdScaleUp {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* =====================================================
   SOFTWARE SOLUTIONS SWITCHER (FLIPKART-STYLE MULTI-OS)
   ===================================================== */
/* Responsive PG Calculator Layout */
.cd-calc-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
    align-items: center;
}
@media (max-width: 820px) {
    .cd-calc-wrap {
        padding: 22px 18px !important;
        margin: 24px auto 0 !important;
    }
    .cd-calc-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    .cd-calc-results {
        padding: 20px 16px !important;
    }
}

html[data-theme] .cd-pg-cta-card h2,
.cd-pg-cta-card h2 {
    color: #ffffff !important;
}
html[data-theme] .cd-pg-cta-card p,
.cd-pg-cta-card p {
    color: #e2e8f0 !important;
}
html[data-theme] .cd-pg-cta-card .cd-cta-trust,
.cd-pg-cta-card .cd-cta-trust {
    color: #cbd5e1 !important;
}

.cd-nav-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin: 0 4px;
}
.cd-switcher-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 14px;
    border-radius: 9999px;
    background: #f1f5f9;
    border: 1.5px solid #cbd5e1;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    user-select: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.cd-switcher-btn:hover,
.cd-switcher-btn.active {
    background: #ffffff;
    border-color: #059669;
    color: #059669;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.16);
}
.cd-switcher-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}
.cd-switcher-icon {
    font-size: 13px;
    display: flex;
    align-items: center;
}
.cd-switcher-label {
    letter-spacing: -0.2px;
}
.cd-switcher-chevron {
    font-size: 10px;
    margin-left: 2px;
    transition: transform 0.25s ease;
    opacity: 0.7;
}
.cd-switcher-btn.active .cd-switcher-chevron {
    transform: rotate(180deg);
}
.cd-switcher-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 360px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.04);
    padding: 10px;
    z-index: 2050;
    display: none;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.cd-switcher-menu.open {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.cd-switcher-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px 10px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748b;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 6px;
}
.cd-switcher-badge {
    background: #ecfdf5;
    color: #059669;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 9999px;
    border: 1px solid rgba(5, 150, 105, 0.2);
}
.cd-switcher-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #0f172a;
    transition: background 0.15s ease;
    cursor: pointer;
    margin-bottom: 2px;
}
.cd-switcher-item:hover {
    background: #f8fafc;
}
.cd-switcher-item.active {
    background: #ecfdf5;
}
.cd-switcher-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.cd-switcher-item-icon.coaching {
    background: #eff6ff;
    color: #2563eb;
}
.cd-switcher-item-icon.hostel {
    background: #ecfdf5;
    color: #059669;
}
.cd-switcher-item-icon.library {
    background: #fdf4ff;
    color: #a855f7;
}
.cd-switcher-item-icon.sports {
    background: #fff7ed;
    color: #ea580c;
}
.cd-switcher-item-icon.dance {
    background: #fdf2f8;
    color: #db2777;
}
.cd-switcher-item-content {
    flex: 1;
    min-width: 0;
}
.cd-switcher-item-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}
.cd-switcher-item.active .cd-switcher-item-title {
    color: #059669;
}
.cd-item-tag {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.cd-item-tag.current {
    background: #059669;
    color: #ffffff;
}
.cd-item-tag.live {
    background: #10b981;
    color: #ffffff;
}
.cd-item-tag.upcoming {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
}
.cd-switcher-item-desc {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 3px;
    line-height: 1.35;
}
.cd-switcher-item.upcoming {
    opacity: 0.85;
}
.cd-switcher-item.upcoming:hover {
    opacity: 1;
}
.cd-switcher-menu-footer {
    border-top: 1px solid #f1f5f9;
    padding: 10px 12px 6px;
    margin-top: 4px;
}
.cd-switcher-menu-footer a {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #059669;
    text-decoration: none;
    text-align: center;
}
.cd-switcher-menu-footer a:hover {
    text-decoration: underline;
}

/* Mobile responsive switcher */
@media (max-width: 768px) {
    .cd-switcher-btn {
        height: 32px;
        padding: 0 10px;
        font-size: 11.5px;
        gap: 5px;
        max-width: 145px;
    }
    .cd-switcher-label {
        max-width: 82px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .cd-switcher-menu {
        position: fixed;
        top: 68px;
        left: 12px;
        right: 12px;
        width: auto;
        max-width: calc(100vw - 24px);
        max-height: 75vh;
        overflow-y: auto;
    }
}

/* ========================================================
   MASTER MOBILE RESPONSIVE ENGINE (GitHub Modern Standards)
   - Universal fluid text & container break guard
   - Sleek visible horizontal scrollbar & scroll hints
   - Mobile table empty-state centering guard
   - Mobile topbar action button icon-collapse
   - Floating action buttons safe-area buffer
   ======================================================== */

/* 1. Universal Word Wrap & Container Guard */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}
* {
    min-width: 0;
}
p, span, h1, h2, h3, h4, h5, h6, label, div {
    overflow-wrap: break-word;
}

/* 2. Sleek Visible Mobile Scrollbars for Tables */
.table-wrap, .table-responsive, .cd-scroll-wrap, .cd-matrix-table-wrap {
    width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 #f1f5f9;
}
.table-wrap::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar,
.cd-scroll-wrap::-webkit-scrollbar,
.cd-matrix-table-wrap::-webkit-scrollbar {
    height: 5px;
    background: #f1f5f9;
}
.table-wrap::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb,
.cd-scroll-wrap::-webkit-scrollbar-thumb,
.cd-matrix-table-wrap::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 9999px;
}

/* 3. Swipe Hint Badge (Visible on Mobile & Tablet) */
.cd-swipe-hint {
    display: none;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    font-weight: 700;
    color: #0369a1;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    padding: 5px 12px;
    border-radius: 9999px;
    margin-bottom: 12px;
    width: fit-content;
    box-shadow: 0 1px 3px rgba(3, 105, 161, 0.08);
}
.cd-swipe-hint i {
    color: #0284c7;
    animation: cdSwipeArrow 2s infinite ease-in-out;
}
@keyframes cdSwipeArrow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}
@media (max-width: 768px) {
    .cd-swipe-hint {
        display: inline-flex !important;
    }
}

/* 4. Table Empty States Centering on Small Screens */
@media (max-width: 640px) {
    .table-wrap td[colspan],
    .table-responsive td[colspan] {
        position: sticky;
        left: 0;
        width: 100%;
        max-width: calc(100vw - 64px);
        box-sizing: border-box;
        text-align: center;
        margin: 0 auto;
        white-space: normal !important;
        overflow-wrap: break-word;
    }
}

/* 5. Mobile Topbar Refinement (Clean View Website + No Plan Badge Overflow) */
.topbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}
.topbar-left {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
.topbar-left .page-title,
.topbar .page-title {
    min-width: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.topbar-right {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-left: auto !important;
}
.topbar-plan-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}
.topbar-plan-badge .badge {
    font-size: 11px !important;
    padding: 2px 7px !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
}

@media (max-width: 640px) {
    .topbar {
        padding: 8px 12px !important;
        gap: 6px !important;
        min-height: 52px !important;
    }
    .topbar-left .page-title,
    .topbar .page-title {
        font-size: 15px !important;
        max-width: 120px !important;
    }
    .topbar-right {
        gap: 6px !important;
    }
    .topbar-right a.btn-ghost,
    .topbar-right a.btn-sm {
        padding: 4px 7px !important;
        font-size: 11px !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        white-space: nowrap !important;
        border-radius: 6px !important;
    }
    .topbar-right a.btn-ghost span,
    .topbar-right a.btn-sm span {
        display: inline !important;
    }
    .topbar-plan-badge {
        gap: 3px !important;
    }
    /* Hide second badge on mobile so badge never overflows off-screen! */
    .topbar-plan-badge .badge:nth-child(n+2) {
        display: none !important;
    }
    .topbar-plan-badge .badge {
        font-size: 10px !important;
        padding: 2px 6px !important;
        border-radius: 4px !important;
        max-width: 80px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

@media (max-width: 360px) {
    .topbar-left .page-title,
    .topbar .page-title {
        max-width: 90px !important;
    }
    .topbar-right a.btn-ghost span,
    .topbar-right a.btn-sm span {
        display: inline !important;
        font-size: 10px !important;
    }
}

/* 6. Floating Action Buttons (WhatsApp + Back-to-Top) Safe Area */
@media (max-width: 768px) {
    body {
        padding-bottom: 70px !important;
    }
    #cd-wa-float {
        bottom: 14px !important;
        right: 14px !important;
        width: 44px !important;
        height: 44px !important;
        font-size: 22px !important;
        z-index: 99 !important;
    }
    #cd-back-to-top {
        bottom: 66px !important;
        right: 14px !important;
        width: 36px !important;
        height: 36px !important;
        font-size: 13px !important;
        z-index: 99 !important;
    }
}

/* 7. Bulletproof Mobile Table Sliding & Touch Horizontal Scrolling */
.table-wrap, 
.table-responsive, 
.card.table-wrap,
.table-wrap.card,
.cd-scroll-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x pan-y !important;
    position: relative !important;
    display: block !important;
    box-sizing: border-box !important;
}

/* Force inner tables to expand so columns are NEVER squeezed and horizontal sliding ALWAYS works */
.table-wrap > table,
.table-responsive > table,
.cd-scroll-wrap > table,
.card.table-wrap > table,
.table-wrap.card > table,
.card > table {
    width: 100% !important;
    min-width: 660px !important;
    border-collapse: collapse !important;
}

/* Distinct high-contrast green slider scrollbar on mobile so users know they can slide */
.table-wrap::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar,
.card.table-wrap::-webkit-scrollbar,
.table-wrap.card::-webkit-scrollbar,
.cd-scroll-wrap::-webkit-scrollbar {
    height: 7px !important;
    background: #e2e8f0 !important;
    display: block !important;
}
.table-wrap::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb,
.card.table-wrap::-webkit-scrollbar-thumb,
.table-wrap.card::-webkit-scrollbar-thumb,
.cd-scroll-wrap::-webkit-scrollbar-thumb {
    background: #059669 !important;
    border-radius: 9999px !important;
}
.table-wrap,
.table-responsive,
.card.table-wrap,
.table-wrap.card,
.cd-scroll-wrap {
    scrollbar-width: thin !important;
    scrollbar-color: #059669 #e2e8f0 !important;
}

/* Card padding reset when card is also table-wrap */
.table-wrap.card,
.card.table-wrap {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.table-wrap.card th:first-child,
.table-wrap.card td:first-child,
.card.table-wrap th:first-child,
.card.table-wrap td:first-child {
    padding-left: 16px !important;
}
.table-wrap.card th:last-child,
.table-wrap.card td:last-child,
.card.table-wrap th:last-child,
.card.table-wrap td:last-child {
    padding-right: 16px !important;
}

/* 8. Logged-in Portal Mobile Card & Layout Containment */
@media (max-width: 768px) {
    .app-wrap {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    .main {
        width: 100% !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }
    .content {
        width: 100% !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        padding: 12px 10px !important;
        overflow-x: hidden !important;
    }
    /* Cards without tables stay contained */
    .card:not(.table-wrap):not(.table-responsive),
    .radar-card,
    .kpi-card,
    .dash-exec-hero {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }
    /* Cards with tables must scroll internally and NEVER push or bleed outside mobile viewport */
    .card:has(table),
    .card:has(.table-wrap),
    .card:has(.table-responsive),
    .card.table-wrap,
    .table-wrap.card,
    .table-wrap,
    .table-responsive {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-x pan-y !important;
        box-sizing: border-box !important;
        display: block !important;
    }
    .table-wrap table,
    .table-responsive table,
    .card .table-wrap table,
    .card table {
        min-width: 680px !important;
    }
    .card .table-wrap {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-x pan-y !important;
    }
    .card .table-wrap th:first-child,
    .card .table-wrap td:first-child {
        padding-left: 16px !important;
    }
    .card .table-wrap th:last-child,
    .card .table-wrap td:last-child {
        padding-right: 16px !important;
    }
    
    .dash-exec-topbar,
    .dash-exec-identity,
    .dash-exec-greeting,
    .dash-exec-subline,
    .toolbar {
        flex-wrap: wrap !important;
        max-width: 100% !important;
    }
    .dash-exec-greeting span {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }
    .content form.card,
    .content form.card > div,
    .content .form-group {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .content form.card {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .content form.card .form-group {
        min-width: 0 !important;
        width: 100% !important;
    }
}

/* ==========================================================================
   TASTE-SKILL 2.5 — ANTI-SLOP FRONTEND ENHANCEMENT ENGINE FOR VEYHUB
   Crafted to eliminate generic AI-slop & establish high-craft SaaS polish.
   ========================================================================== */

/* 1. Hero Entrance Animation (Rule 5: data-enter) */
@keyframes cdTasteEntrance {
    0% {
        opacity: 0;
        transform: translateY(14px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.cd-hero-content {
    animation: cdTasteEntrance 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.cd-hero-visual {
    animation: cdTasteEntrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

/* 2. Tactile Button Physics (Press feel on click, crisp hover lift) */
.btn {
    transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.16s ease, 
                background-color 0.16s ease, 
                border-color 0.16s ease !important;
    will-change: transform;
}

.btn:hover {
    transform: translateY(-1.5px);
}

.btn:active {
    transform: scale(0.975) translateY(0) !important;
}

/* 3. Card Elevation & Ambient SaaS Glass Shadows (Rule 5: 2px hover lift) */
.cd-feature-card,
.cd-pricing-card,
.cd-pillar-card,
.cd-workbench-card,
.cd-calc-results,
.cd-contact-info-card,
.cd-contact-form-card,
.business-action-card,
.card {
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.22s ease !important;
}

.cd-feature-card:hover,
.cd-pricing-card:hover,
.cd-pillar-card:hover,
.cd-workbench-card:hover,
.business-action-card:hover {
    transform: translateY(-2.5px);
    box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.09), 0 4px 10px -2px rgba(15, 23, 42, 0.04) !important;
}

/* 4. Smooth Frame Zoom on Images (Rule 5: 1.025x hover zoom inside container) */
.cd-teacher-image-wrap,
.cd-hero-media-card,
.cd-preview-media {
    overflow: hidden;
}

.cd-teacher-img {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
    will-change: transform;
}

.cd-hero-media-card:hover .cd-teacher-img {
    transform: scale(1.025);
}

/* 5. Live Pulse Indicator (Rule 7: Pulsing Ring for System Clarity) */
@keyframes cdTastePulseRing {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    }
    70% {
        box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.cd-live-dot, 
.cd-batch-indicator,
.portal-status {
    animation: cdTastePulseRing 2.4s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

/* 6. Subtle Modern Text Underline Transitions */
.cd-footer-col ul li a,
.cd-nav-links a:not(.btn) {
    transition: color 0.18s ease, transform 0.18s ease;
    display: inline-block;
}

.cd-footer-col ul li a:hover {
    transform: translateX(2px);
    color: var(--primary, #10b981) !important;
}

/* 7. Focus-visible Accessibility Rings */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary, #10b981) !important;
    outline-offset: 2px !important;
}

/* ==========================================================================
   TASTE-SKILL 2.5 — CONNECTED WORKFLOW DIAGRAMS & AMBIENT MESH GLOW
   ========================================================================== */

/* Connected Workflow Pipeline Strips (taste-skill Rule 7) */
.cd-flow-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 14px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 12px;
    box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.cd-flow-strip:hover {
    transform: translateY(-1px);
    border-color: rgba(16, 185, 129, 0.4);
}

[data-theme="dark"] .cd-flow-strip {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

.cd-flow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    flex: 1;
}

.cd-flow-node i {
    font-size: 15px;
    transition: transform 0.2s ease;
}

.cd-flow-node:hover i {
    transform: scale(1.15);
}

.cd-flow-node span {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-main, #0f172a);
    line-height: 1.2;
    white-space: nowrap;
}

[data-theme="dark"] .cd-flow-node span {
    color: #e2e8f0;
}

.cd-flow-sep {
    font-size: 10px;
    color: #94a3b8;
    flex-shrink: 0;
}

/* Ambient Radial Mesh Glow on Hero Visual (taste-skill Rule 8) */
.cd-hero-visual {
    position: relative;
}

.cd-hero-visual::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 125%;
    height: 125%;
    background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.18) 0%, rgba(14, 165, 233, 0.08) 50%, transparent 72%);
    z-index: 0;
    pointer-events: none;
    filter: blur(28px);
}

.cd-hero-media-card {
    position: relative;
    z-index: 1;
}


/* =========================================================
   APP-STYLE MOBILE BOTTOM NAVIGATION BAR & SCROLL HINTS
   ========================================================= */
.cd-bottom-nav {
    display: none;
}
.cd-scroll-hint-bar {
    display: none;
}

@media (max-width: 768px) {
    /* Persistent Glassmorphic Mobile Bottom Quick Navigation */
    .cd-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 60px !important;
        background: rgba(13, 21, 39, 0.94) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
        z-index: 9999 !important;
        align-items: center !important;
        justify-content: space-around !important;
        padding: 0 6px !important;
        padding-bottom: env(safe-area-inset-bottom, 0px) !important;
        box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.3) !important;
    }

    [data-theme="light"] .cd-bottom-nav {
        background: rgba(255, 255, 255, 0.96) !important;
        border-top: 1px solid #e2e8f0 !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08) !important;
    }

    .cd-bottom-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 1 !important;
        height: 100% !important;
        color: #94a3b8 !important;
        text-decoration: none !important;
        font-size: 10.5px !important;
        font-weight: 700 !important;
        gap: 3px !important;
        transition: color 0.15s ease, transform 0.15s ease !important;
        -webkit-tap-highlight-color: transparent !important;
        touch-action: manipulation !important;
    }

    [data-theme="light"] .cd-bottom-item {
        color: #64748b !important;
    }

    .cd-bottom-item i {
        font-size: 16px !important;
    }

    .cd-bottom-item:active {
        transform: scale(0.92) !important;
    }

    .cd-bottom-item:hover, .cd-bottom-item.active {
        color: #2563eb !important;
    }

    /* Elevate WhatsApp Float Button and Back-to-Top above Bottom Bar */
    .cd-wa-float-btn {
        bottom: 74px !important;
    }
    #cd-btt {
        bottom: 74px !important;
    }

    /* Prevent page bottom content from being hidden behind bar */
    body.landing-page {
        padding-bottom: 64px !important;
    }
    body.ecosystem-page {
        padding-bottom: 0 !important;
    }

    /* Horizontal Scroll Affordance Badge */
    .cd-scroll-hint-bar {
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        margin-bottom: 10px !important;
        padding: 0 4px !important;
    }

    .cd-scroll-hint-badge {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        font-size: 11px !important;
        font-weight: 800 !important;
        letter-spacing: 0.5px !important;
        color: #2563eb !important;
        background: rgba(37, 99, 235, 0.09) !important;
        border: 1px solid rgba(37, 99, 235, 0.22) !important;
        padding: 4px 10px !important;
        border-radius: 9999px !important;
        text-transform: uppercase !important;
    }

    @keyframes cdBounceX {
        0%, 100% { transform: translateX(0); }
        50% { transform: translateX(4px); }
    }
}

/* =========================================================
   PREMIUM MULTI-OS SEGMENTED BUTTON BAR (UNIVERSAL)
   ========================================================= */
.cd-os-pill-bar-container,
.cd-price-vert-wrap {
    display: flex !important;
    justify-content: flex-start !important;
    margin: 16px 0 36px 0 !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 8px 16px !important;
    box-sizing: border-box !important;
    scrollbar-width: thin !important;
}

.cd-os-pill-bar,
.cd-price-vert-nav {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    background: #f1f5f9 !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 9999px !important;
    padding: 6px 10px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: max-content !important;
    max-width: none !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.05) !important;
}

.cd-os-pill-bar-container::-webkit-scrollbar,
.cd-price-vert-wrap::-webkit-scrollbar {
    height: 5px !important;
}
.cd-os-pill-bar-container::-webkit-scrollbar-thumb,
.cd-price-vert-wrap::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 9999px !important;
}
.cd-os-pill-bar-container::-webkit-scrollbar-track,
.cd-price-vert-wrap::-webkit-scrollbar-track {
    background: transparent !important;
}

.cd-os-pill-bar::-webkit-scrollbar,
.cd-price-vert-nav::-webkit-scrollbar {
    display: none !important;
}

.cd-os-pill-tab,
.cd-pvert-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 18px !important;
    border-radius: 9999px !important;
    text-decoration: none !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    background: transparent !important;
    border: 1.5px solid transparent !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    user-select: none !important;
}

.cd-os-pill-tab:hover,
.cd-pvert-btn:hover {
    color: #0f172a !important;
    background: rgba(255, 255, 255, 0.85) !important;
    transform: translateY(-1px) !important;
}

.cd-os-pill-tab.active,
.cd-pvert-btn.active {
    background: #ffffff !important;
    color: #0f172a !important;
    font-weight: 800 !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1), 0 1px 3px rgba(15, 23, 42, 0.05) !important;
    transform: translateY(-1px) !important;
}

.cd-os-pill-tab i,
.cd-pvert-btn i {
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.cd-os-active-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 2px;
}

@media (max-width: 992px) {
    .cd-os-pill-bar-container,
    .cd-price-vert-wrap {
        padding: 6px 8px !important;
    }
    .cd-os-pill-bar,
    .cd-price-vert-nav {
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 9999px !important;
        padding: 5px 8px !important;
    }
    .cd-os-pill-tab,
    .cd-pvert-btn {
        padding: 9px 15px !important;
        font-size: 13px !important;
    }
}


/* =========================================================================
 * WCAG 2.1 AA & axe-core Contrast & Link Visibility Compliance
 * ========================================================================= */
.cd-policy-meta, .cd-breadcrumbs span, .cd-policy-nav-title {
    color: #475569 !important;
}
.cd-policy-content a {
    text-decoration: underline !important;
    text-underline-offset: 3px;
    font-weight: 600;
}
.cd-policy-content a:hover {
    color: #059669 !important;
}
