/* ============================================================
   Ministry App — Modern Light Theme
   Light-first contemporary design sharing the same design
   language as Modern Dark: DM Sans typography, warm amber-rose
   accents, pill-shaped elements, gradient buttons.
   Activated via: <html data-theme="modern-light">
   ============================================================ */

/* --- Color Palette Override --- */
[data-theme="modern-light"] {
    /* Primary: deep charcoal for headings on light bg */
    --m-primary: #1a1a2e;
    --m-primary-light: #2d2d4a;
    --m-primary-dark: #0f0f1c;

    /* Accent: warm amber-rose (same as modern dark) */
    --m-gold: #d4915c;
    --m-gold-light: #e8a87c;
    --m-gold-dark: #b87545;

    /* Surfaces — warm, off-white layered */
    --m-cream: #f7f5f2;
    --m-sand: #eeebe6;
    --m-stone: #ddd9d2;

    /* Spiritual accent — soft rose */
    --m-wine: #b06ba4;
    --m-wine-light: #c77dba;

    /* Text — high contrast on light */
    --m-text: #1a1a2e;
    --m-text-muted: #6b6880;
    --m-text-light: #9895a8;

    /* Functional */
    --m-success: #22a867;
    --m-danger: #dc4545;
    --m-warning: #d49a15;
    --m-info: #2b8fd6;

    /* Typography — same modern stack */
    --m-font-heading: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --m-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing & Radius — generous, pill-like (same as modern dark) */
    --m-radius: 16px;
    --m-radius-lg: 24px;
    --m-radius-sm: 12px;

    /* Shadows — soft, warm-tinted */
    --m-shadow: 0 2px 8px rgba(26, 26, 46, 0.06), 0 1px 3px rgba(26, 26, 46, 0.04);
    --m-shadow-lg: 0 8px 32px rgba(26, 26, 46, 0.08), 0 2px 8px rgba(26, 26, 46, 0.04);
    --m-shadow-hover: 0 16px 48px rgba(26, 26, 46, 0.1), 0 4px 12px rgba(26, 26, 46, 0.06);

    /* Modern-light-specific variables */
    --ml-surface-1: #ffffff;
    --ml-surface-2: #faf9f7;
    --ml-surface-3: #f2f0ec;
    --ml-border: rgba(26, 26, 46, 0.08);
    --ml-border-hover: rgba(26, 26, 46, 0.15);
    --ml-glow-primary: rgba(212, 145, 92, 0.12);
    --ml-glow-accent: rgba(176, 107, 164, 0.08);
    --ml-gradient-warm: linear-gradient(135deg, #d4915c 0%, #b06ba4 100%);
    --ml-gradient-surface: linear-gradient(180deg, #ffffff 0%, #faf9f7 100%);

    /* Gradients — warm, light */
    --m-gradient-nav: linear-gradient(180deg, #ffffff 0%, #faf9f7 100%);
    --m-gradient-hero: linear-gradient(160deg, #1a1a2e 0%, #252540 30%, #2d2d4a 60%, #3a2d52 100%);
    --m-gradient-gold: linear-gradient(135deg, #b87545 0%, #d4915c 50%, #e8a87c 100%);
    --m-gradient-card: none;
}

/* --- Body: warm light canvas with subtle gradient mesh --- */
[data-theme="modern-light"] body {
    background:
        radial-gradient(ellipse at 15% 15%, rgba(212, 145, 92, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 85%, rgba(176, 107, 164, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(43, 143, 214, 0.02) 0%, transparent 60%),
        var(--m-cream);
    background-attachment: fixed;
    color: var(--m-text);
    font-weight: 400;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
[data-theme="modern-light"] h1,
[data-theme="modern-light"] h2,
[data-theme="modern-light"] h3,
[data-theme="modern-light"] h4,
[data-theme="modern-light"] h5,
[data-theme="modern-light"] h6,
[data-theme="modern-light"] .h1,
[data-theme="modern-light"] .h2,
[data-theme="modern-light"] .h3,
[data-theme="modern-light"] .h4,
[data-theme="modern-light"] .h5,
[data-theme="modern-light"] .h6 {
    color: var(--m-primary);
    font-family: var(--m-font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
}

[data-theme="modern-light"] a {
    color: var(--m-gold-dark);
    transition: color 0.2s ease, opacity 0.2s ease;
}

[data-theme="modern-light"] a:hover {
    color: var(--m-gold);
}

[data-theme="modern-light"] ::selection {
    background: rgba(212, 145, 92, 0.2);
    color: var(--m-primary);
}

/* --- Navbar: clean white bar with warm bottom accent --- */
[data-theme="modern-light"] .ministry-navbar {
    background: var(--m-gradient-nav) !important;
    border-bottom: 1px solid var(--ml-border) !important;
    box-shadow: 0 1px 0 rgba(212, 145, 92, 0.06), 0 2px 12px rgba(26, 26, 46, 0.04);
}

[data-theme="modern-light"] .ministry-navbar .navbar-brand {
    font-family: var(--m-font-heading);
    font-weight: 700;
    color: var(--m-primary) !important;
    letter-spacing: -0.01em;
}

[data-theme="modern-light"] .ministry-navbar .navbar-brand .brand-icon-inline {
    color: var(--m-gold);
}

[data-theme="modern-light"] .ministry-navbar .nav-link {
    color: var(--m-text-muted) !important;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.01em;
    border-radius: var(--m-radius-sm);
    transition: all 0.2s ease;
}

[data-theme="modern-light"] .ministry-navbar .nav-link:hover,
[data-theme="modern-light"] .ministry-navbar .nav-link.active {
    color: var(--m-primary) !important;
    background: rgba(26, 26, 46, 0.04);
}

[data-theme="modern-light"] .ministry-navbar .dropdown-menu {
    background: var(--ml-surface-1);
    border: 1px solid var(--ml-border);
    border-radius: var(--m-radius);
    box-shadow: var(--m-shadow-lg);
    padding: 0.5rem;
}

[data-theme="modern-light"] .ministry-navbar .dropdown-item {
    color: var(--m-text-muted);
    border-radius: var(--m-radius-sm);
    transition: all 0.15s ease;
}

[data-theme="modern-light"] .ministry-navbar .dropdown-item:hover {
    background: rgba(212, 145, 92, 0.06);
    color: var(--m-primary);
}

[data-theme="modern-light"] .ministry-navbar .dropdown-divider {
    border-color: var(--ml-border);
}

/* --- Footer --- */
[data-theme="modern-light"] .ministry-footer {
    background: var(--ml-surface-2) !important;
    border-top: 1px solid var(--ml-border) !important;
    color: var(--m-text-muted);
}

[data-theme="modern-light"] .ministry-footer a {
    color: var(--m-gold-dark);
}

/* --- Cards: crisp white panels with subtle shadows --- */
[data-theme="modern-light"] .card,
[data-theme="modern-light"] .auth-card {
    background: var(--ml-surface-1) !important;
    border: 1px solid var(--ml-border) !important;
    box-shadow: var(--m-shadow);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-theme="modern-light"] .card:hover {
    border-color: var(--ml-border-hover) !important;
    box-shadow: var(--m-shadow-hover);
    transform: translateY(-3px);
}

[data-theme="modern-light"] .card-header {
    background: var(--ml-surface-3);
    border-bottom: 1px solid var(--ml-border);
    color: var(--m-primary);
    font-family: var(--m-font-heading);
}

/* --- Dashboard Cards: warm hover glow --- */
[data-theme="modern-light"] .dashboard-card {
    background: var(--ml-surface-1) !important;
    border: 1px solid var(--ml-border) !important;
    border-radius: var(--m-radius-lg);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-theme="modern-light"] .dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--ml-gradient-warm);
    opacity: 0;
    transition: opacity 0.35s ease;
}

[data-theme="modern-light"] .dashboard-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse at 50% 0%, var(--ml-glow-primary) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

[data-theme="modern-light"] .dashboard-card:hover {
    border-color: rgba(212, 145, 92, 0.2) !important;
    box-shadow: var(--m-shadow-hover), 0 0 40px rgba(212, 145, 92, 0.06);
    transform: translateY(-5px);
}

[data-theme="modern-light"] .dashboard-card:hover::before {
    opacity: 1;
}

[data-theme="modern-light"] .dashboard-card:hover::after {
    opacity: 1;
}

[data-theme="modern-light"] .dashboard-card .card-title {
    color: var(--m-primary);
    font-family: var(--m-font-heading);
}

[data-theme="modern-light"] .dashboard-card .card-text {
    color: var(--m-text-muted);
}

/* Dashboard icon variants — modern tinted on light */
[data-theme="modern-light"] .icon-navy {
    background: rgba(43, 143, 214, 0.08);
    color: var(--m-info);
    border: 1px solid rgba(43, 143, 214, 0.1);
}

[data-theme="modern-light"] .icon-gold {
    background: rgba(212, 145, 92, 0.1);
    color: var(--m-gold-dark);
    border: 1px solid rgba(212, 145, 92, 0.12);
}

[data-theme="modern-light"] .icon-wine {
    background: rgba(176, 107, 164, 0.08);
    color: var(--m-wine);
    border: 1px solid rgba(176, 107, 164, 0.1);
}

[data-theme="modern-light"] .icon-sage {
    background: rgba(34, 168, 103, 0.08);
    color: var(--m-success);
    border: 1px solid rgba(34, 168, 103, 0.1);
}

[data-theme="modern-light"] .icon-sky {
    background: rgba(43, 143, 214, 0.08);
    color: var(--m-info);
    border: 1px solid rgba(43, 143, 214, 0.1);
}

[data-theme="modern-light"] .dashboard-card .card-icon {
    border-radius: 14px;
    transition: all 0.35s ease;
}

[data-theme="modern-light"] .dashboard-card:hover .card-icon {
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(26, 26, 46, 0.1);
}

/* --- Buttons: refined, pill-like --- */
[data-theme="modern-light"] .btn {
    border-radius: var(--m-radius-sm);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-theme="modern-light"] .btn-primary {
    background: var(--ml-gradient-warm);
    border: none;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(212, 145, 92, 0.2);
}

[data-theme="modern-light"] .btn-primary:hover,
[data-theme="modern-light"] .btn-primary:focus {
    background: var(--ml-gradient-warm);
    filter: brightness(1.05) saturate(1.1);
    box-shadow: 0 6px 24px rgba(212, 145, 92, 0.3);
    transform: translateY(-1px);
    color: #fff;
}

[data-theme="modern-light"] .btn-accent {
    background: var(--ml-gradient-warm);
    border: none;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(212, 145, 92, 0.2);
}

[data-theme="modern-light"] .btn-accent:hover {
    filter: brightness(1.05) saturate(1.1);
    box-shadow: 0 6px 24px rgba(212, 145, 92, 0.35);
    transform: translateY(-2px);
    color: #fff;
}

[data-theme="modern-light"] .btn-outline-primary {
    color: var(--m-gold-dark);
    border-color: rgba(212, 145, 92, 0.35);
    background: transparent;
}

[data-theme="modern-light"] .btn-outline-primary:hover {
    background: rgba(212, 145, 92, 0.08);
    border-color: var(--m-gold);
    color: var(--m-gold-dark);
    box-shadow: 0 4px 16px rgba(212, 145, 92, 0.12);
}

[data-theme="modern-light"] .btn-outline-secondary {
    border-color: var(--ml-border);
    color: var(--m-text-muted);
    background: transparent;
}

[data-theme="modern-light"] .btn-outline-secondary:hover {
    background: var(--ml-surface-3);
    border-color: var(--ml-border-hover);
    color: var(--m-text);
}

[data-theme="modern-light"] .btn-danger {
    background: linear-gradient(135deg, #c33, #dc4545);
    border: none;
    color: #fff;
}

[data-theme="modern-light"] .btn-success {
    background: linear-gradient(135deg, #1a8f55, #22a867);
    border: none;
    color: #fff;
}

[data-theme="modern-light"] .btn-lg {
    border-radius: var(--m-radius);
}

/* --- Forms: clean white inputs with warm focus --- */
[data-theme="modern-light"] .form-control,
[data-theme="modern-light"] .form-select {
    background: var(--ml-surface-1);
    border: 1.5px solid var(--ml-border);
    border-radius: var(--m-radius-sm);
    color: var(--m-text);
    transition: all 0.25s ease;
}

[data-theme="modern-light"] .form-control:focus,
[data-theme="modern-light"] .form-select:focus {
    background: var(--ml-surface-1);
    border-color: var(--m-gold);
    box-shadow: 0 0 0 3px rgba(212, 145, 92, 0.12), 0 2px 8px rgba(212, 145, 92, 0.06);
    color: var(--m-text);
}

[data-theme="modern-light"] .form-control::placeholder {
    color: var(--m-text-light);
}

[data-theme="modern-light"] .form-label {
    color: var(--m-primary);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

[data-theme="modern-light"] .form-check-input {
    background-color: var(--ml-surface-1);
    border-color: var(--m-stone);
}

[data-theme="modern-light"] .form-check-input:checked {
    background-color: var(--m-gold);
    border-color: var(--m-gold);
}

/* --- Alerts: white panels with accent border --- */
[data-theme="modern-light"] .ministry-alert {
    background: var(--ml-surface-1) !important;
    border: 1px solid var(--ml-border) !important;
    border-left: 4px solid transparent !important;
    color: var(--m-text);
}

[data-theme="modern-light"] .ministry-alert.alert-success {
    border-left-color: var(--m-success) !important;
    background: rgba(34, 168, 103, 0.05) !important;
}

[data-theme="modern-light"] .ministry-alert.alert-danger {
    border-left-color: var(--m-danger) !important;
    background: rgba(220, 69, 69, 0.05) !important;
}

[data-theme="modern-light"] .ministry-alert.alert-warning {
    border-left-color: var(--m-warning) !important;
    background: rgba(212, 154, 21, 0.05) !important;
}

[data-theme="modern-light"] .ministry-alert.alert-info {
    border-left-color: var(--m-info) !important;
    background: rgba(43, 143, 214, 0.05) !important;
}

/* --- Tables: clean light rows --- */
[data-theme="modern-light"] .table {
    color: var(--m-text);
}

[data-theme="modern-light"] .table thead th {
    background: var(--ml-surface-3);
    border-bottom: 1px solid rgba(212, 145, 92, 0.2);
    color: var(--m-text-muted);
    font-family: var(--m-font-heading);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.78rem;
    font-weight: 600;
}

[data-theme="modern-light"] .table tbody td {
    border-bottom: 1px solid var(--ml-border);
    color: var(--m-text);
}

[data-theme="modern-light"] .table tbody tr:hover {
    background: rgba(212, 145, 92, 0.04);
}

/* DataTables overrides */
[data-theme="modern-light"] .dataTables_wrapper .dataTables_filter input {
    background: var(--ml-surface-1) !important;
    border: 1.5px solid var(--ml-border) !important;
    border-radius: var(--m-radius-sm) !important;
}

[data-theme="modern-light"] .dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--m-gold) !important;
    box-shadow: 0 0 0 3px rgba(212, 145, 92, 0.12) !important;
}

[data-theme="modern-light"] .dataTables_wrapper .dataTables_length select {
    background: var(--ml-surface-1) !important;
    border: 1.5px solid var(--ml-border) !important;
}

[data-theme="modern-light"] .page-item.active .page-link {
    background: var(--ml-gradient-warm);
    border-color: transparent;
    color: #fff;
}

[data-theme="modern-light"] .page-link {
    color: var(--m-gold-dark);
    background: var(--ml-surface-1);
    border-color: var(--ml-border);
}

[data-theme="modern-light"] .page-link:hover {
    background: var(--ml-surface-3);
    color: var(--m-gold-dark);
}

/* --- Badges: pill-shaped, tinted --- */
[data-theme="modern-light"] .badge {
    font-weight: 500;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

[data-theme="modern-light"] .badge.bg-primary {
    background: rgba(212, 145, 92, 0.12) !important;
    color: var(--m-gold-dark);
}

[data-theme="modern-light"] .badge.bg-success {
    background: rgba(34, 168, 103, 0.1) !important;
    color: var(--m-success);
}

[data-theme="modern-light"] .badge.bg-danger {
    background: rgba(220, 69, 69, 0.1) !important;
    color: var(--m-danger);
}

[data-theme="modern-light"] .badge.bg-warning {
    background: rgba(212, 154, 21, 0.1) !important;
    color: #8b6914;
}

[data-theme="modern-light"] .badge.bg-info {
    background: rgba(43, 143, 214, 0.1) !important;
    color: var(--m-info);
}

[data-theme="modern-light"] .badge.bg-secondary {
    background: rgba(26, 26, 46, 0.06) !important;
    color: var(--m-text-muted);
}

/* --- Auth pages: clean card --- */
[data-theme="modern-light"] .auth-card {
    max-width: 440px;
    border: 1px solid var(--ml-border) !important;
    overflow: hidden;
}

[data-theme="modern-light"] .auth-card .auth-header {
    background: var(--m-gradient-hero);
    position: relative;
}

[data-theme="modern-light"] .auth-card .auth-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--ml-gradient-warm);
    opacity: 0.4;
}

[data-theme="modern-light"] .auth-card .auth-header .auth-icon {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--m-gold-light);
}

[data-theme="modern-light"] .auth-card .card-body {
    background: var(--ml-surface-1);
}

/* --- Hero section --- */
[data-theme="modern-light"] .hero-section {
    background: var(--m-gradient-hero);
    position: relative;
}

[data-theme="modern-light"] .hero-section::before {
    background:
        radial-gradient(ellipse at 30% 40%, rgba(212, 145, 92, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(176, 107, 164, 0.07) 0%, transparent 50%);
}

[data-theme="modern-light"] .hero-section .hero-cross {
    color: var(--m-gold-light);
    text-shadow: 0 0 40px rgba(212, 145, 92, 0.3);
}

[data-theme="modern-light"] .hero-section .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* --- Dashboard welcome: dark gradient banner (same as dark) --- */
[data-theme="modern-light"] .dashboard-welcome {
    background: var(--m-gradient-hero);
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

[data-theme="modern-light"] .dashboard-welcome::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--ml-gradient-warm);
    opacity: 0.4;
}

[data-theme="modern-light"] .dashboard-welcome::after {
    color: var(--m-gold-light);
    opacity: 0.05;
}

[data-theme="modern-light"] .dashboard-welcome h1 {
    color: #fff;
}

[data-theme="modern-light"] .dashboard-welcome p {
    color: rgba(255, 255, 255, 0.65);
}

/* --- Scripture popover: light --- */
[data-theme="modern-light"] .scripture-popover {
    background: var(--ml-surface-1);
    border: 1px solid var(--ml-border);
    box-shadow: var(--m-shadow-lg);
    color: var(--m-text);
}

[data-theme="modern-light"] .scripture-popover-title {
    color: var(--m-gold-dark);
}

[data-theme="modern-light"] .scripture-popover-verse-num {
    color: var(--m-gold);
}

/* --- Bible styles: light --- */
[data-theme="modern-light"] .bible-book-link {
    color: var(--m-text);
    border-color: var(--ml-border);
}

[data-theme="modern-light"] .bible-book-link:hover {
    background: var(--ml-surface-3);
    border-color: rgba(212, 145, 92, 0.3);
    color: var(--m-gold-dark);
}

[data-theme="modern-light"] .bible-verse-num {
    color: var(--m-gold);
}

[data-theme="modern-light"] .bible-verse:target {
    background: rgba(212, 145, 92, 0.12);
}

[data-theme="modern-light"] .bible-text {
    color: var(--m-text);
}

/* --- Bible chapter buttons --- */
[data-theme="modern-light"] .bible-chapter-btn {
    color: var(--m-text-muted);
    border-color: var(--ml-border);
    background: var(--ml-surface-1);
}

[data-theme="modern-light"] .bible-chapter-btn:hover,
[data-theme="modern-light"] .bible-chapter-btn.active {
    background: rgba(212, 145, 92, 0.1);
    border-color: rgba(212, 145, 92, 0.3);
    color: var(--m-gold-dark);
}

/* --- Scripture hover badges --- */
[data-theme="modern-light"] .scripture-hover {
    background-color: var(--ml-surface-3) !important;
    border-color: var(--ml-border) !important;
    color: var(--m-text) !important;
}

[data-theme="modern-light"] .scripture-hover:hover {
    background-color: rgba(212, 145, 92, 0.06) !important;
    border-color: rgba(212, 145, 92, 0.2) !important;
}

/* --- Scripture Accordion: modern light --- */
[data-theme="modern-light"] #scriptureAccordion .accordion-item {
    border-color: var(--ml-border);
    background: var(--ml-surface-1);
}

[data-theme="modern-light"] #scriptureAccordion .accordion-button {
    background: var(--ml-surface-3);
    color: var(--m-text);
    font-family: var(--m-font-heading);
}

[data-theme="modern-light"] #scriptureAccordion .accordion-button:not(.collapsed) {
    background: rgba(212, 145, 92, 0.1);
    color: var(--m-gold-dark);
}

[data-theme="modern-light"] #scriptureAccordion .accordion-button:not(.collapsed) .text-primary {
    color: var(--m-gold-dark) !important;
}

[data-theme="modern-light"] #scriptureAccordion .accordion-body {
    background: var(--ml-surface-1);
    color: var(--m-text);
}

[data-theme="modern-light"] #scriptureAccordion .accordion-body blockquote {
    border-left-color: var(--m-gold);
}

/* --- Identity Page: modern light --- */
[data-theme="modern-light"] .id-hero {
    background: var(--m-gradient-hero);
}

[data-theme="modern-light"] .id-hero-bg {
    background:
        radial-gradient(ellipse at 30% 30%, rgba(212, 145, 92, 0.1) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 70%, rgba(176, 107, 164, 0.07) 0%, transparent 50%);
}

[data-theme="modern-light"] .id-hero-accent {
    background: var(--ml-gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="modern-light"] .id-hero-cross {
    color: var(--m-gold-light);
    text-shadow: 0 0 40px rgba(212, 145, 92, 0.3);
}

[data-theme="modern-light"] .id-hero-verse cite {
    color: var(--m-gold-light);
}

[data-theme="modern-light"] .id-segments {
    background: var(--m-cream);
}

[data-theme="modern-light"] .id-segment-visual {
    box-shadow: var(--m-shadow);
}

[data-theme="modern-light"] .id-segment-visual:hover {
    box-shadow: var(--m-shadow-hover);
}

[data-theme="modern-light"] .id-segment-badge {
    background: var(--ml-surface-1);
    border-color: var(--ml-border);
    color: var(--m-gold-dark);
}

[data-theme="modern-light"] .id-segment-label {
    background: rgba(212, 145, 92, 0.1);
    color: var(--m-gold-dark);
}

[data-theme="modern-light"] .id-segment-title {
    color: var(--m-primary);
}

[data-theme="modern-light"] .id-segment-body {
    color: var(--m-text-muted);
}

[data-theme="modern-light"] .id-segment-quote {
    border-left-color: var(--m-gold);
    background: rgba(212, 145, 92, 0.04);
    color: var(--m-text-muted);
}

[data-theme="modern-light"] .id-segment-quote cite {
    color: var(--m-gold-dark);
}

[data-theme="modern-light"] .id-segment-features li i {
    color: var(--m-gold);
}

[data-theme="modern-light"] .id-divider {
    border-top-color: var(--ml-border);
}

[data-theme="modern-light"] .id-cta {
    background: var(--m-gradient-hero);
}

[data-theme="modern-light"] .id-cta-bg {
    background: radial-gradient(ellipse at 50% 50%, rgba(212, 145, 92, 0.06) 0%, transparent 60%);
}

[data-theme="modern-light"] .id-cta-cross {
    color: var(--m-gold-light);
}

[data-theme="modern-light"] .id-cta .btn-outline-light {
    color: var(--m-gold-light);
    border-color: var(--m-gold-light);
}

[data-theme="modern-light"] .id-cta .btn-outline-light:hover {
    background: rgba(212, 145, 92, 0.12);
    border-color: var(--m-gold-light);
    color: #fff;
}

[data-theme="modern-light"] .id-cta-footer cite {
    color: var(--m-gold-light);
}

/* --- Landing Page: modern light --- */
[data-theme="modern-light"] .landing-hero {
    background: var(--m-gradient-hero);
}

[data-theme="modern-light"] .landing-hero-bg {
    background:
        radial-gradient(ellipse at 25% 40%, rgba(212, 145, 92, 0.1) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 70%, rgba(176, 107, 164, 0.07) 0%, transparent 50%);
}

[data-theme="modern-light"] .landing-hero-accent {
    background: var(--ml-gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="modern-light"] .landing-hero .hero-cross {
    color: var(--m-gold-light);
    text-shadow: 0 0 40px rgba(212, 145, 92, 0.3);
}

[data-theme="modern-light"] .landing-orb-1 {
    background: radial-gradient(circle, rgba(212, 145, 92, 0.2), transparent 70%);
}

[data-theme="modern-light"] .landing-orb-2 {
    background: radial-gradient(circle, rgba(176, 107, 164, 0.18), transparent 70%);
}

[data-theme="modern-light"] .landing-orb-3 {
    background: radial-gradient(circle, rgba(43, 143, 214, 0.15), transparent 70%);
}

[data-theme="modern-light"] .landing-hero-icon {
    color: rgba(255, 255, 255, 0.12);
}

[data-theme="modern-light"] .landing-features {
    background: var(--m-cream);
}

[data-theme="modern-light"] .landing-section-title {
    color: var(--m-primary);
}

[data-theme="modern-light"] .landing-section-subtitle {
    color: var(--m-text-muted);
}

[data-theme="modern-light"] .landing-feature-card {
    background: var(--ml-surface-1) !important;
    border: 1px solid var(--ml-border) !important;
    box-shadow: var(--m-shadow);
}

[data-theme="modern-light"] .landing-feature-card:hover {
    box-shadow: var(--m-shadow-hover);
    border-color: var(--ml-border-hover) !important;
}

[data-theme="modern-light"] .landing-feature-card h5 {
    color: var(--m-primary);
}

[data-theme="modern-light"] .landing-feature-card p {
    color: var(--m-text-muted);
}

[data-theme="modern-light"] .landing-scripture {
    background: var(--m-gradient-hero);
}

[data-theme="modern-light"] .landing-scripture::before {
    background: radial-gradient(ellipse at 50% 50%, rgba(212, 145, 92, 0.06) 0%, transparent 60%);
}

[data-theme="modern-light"] .landing-quote-icon {
    color: var(--m-gold-light);
}

[data-theme="modern-light"] .landing-verse cite {
    color: var(--m-gold-light);
}

[data-theme="modern-light"] .landing-cta {
    background: var(--m-cream);
}

[data-theme="modern-light"] .landing-cta-title {
    color: var(--m-primary);
}

[data-theme="modern-light"] .landing-cta-subtitle {
    color: var(--m-text-muted);
}

[data-theme="modern-light"] .landing-cta .btn-outline-light {
    color: var(--m-gold-dark);
    border-color: var(--m-gold-dark);
}

[data-theme="modern-light"] .landing-cta .btn-outline-light:hover {
    background: rgba(212, 145, 92, 0.08);
    border-color: var(--m-gold);
    color: var(--m-gold-dark);
}

/* --- Theme toggle button --- */
[data-theme="modern-light"] .theme-toggle {
    background: rgba(212, 145, 92, 0.08);
    border: 1px solid rgba(212, 145, 92, 0.2);
    color: var(--m-gold-dark);
}

[data-theme="modern-light"] .theme-toggle:hover {
    background: rgba(212, 145, 92, 0.15);
    box-shadow: 0 0 16px rgba(212, 145, 92, 0.15);
    transform: scale(1.1);
}

/* --- Utility overrides --- */
[data-theme="modern-light"] .text-gold { color: var(--m-gold-dark) !important; }
[data-theme="modern-light"] .text-wine { color: var(--m-wine) !important; }
[data-theme="modern-light"] .text-muted { color: var(--m-text-muted) !important; }
[data-theme="modern-light"] .bg-cream  { background-color: var(--m-cream) !important; }
[data-theme="modern-light"] .bg-sand   { background-color: var(--m-sand) !important; }

[data-theme="modern-light"] .divider-gold {
    background: var(--ml-gradient-warm);
}

/* --- Scrollbar: modern slim, warm tint --- */
[data-theme="modern-light"] ::-webkit-scrollbar {
    width: 6px;
}

[data-theme="modern-light"] ::-webkit-scrollbar-track {
    background: transparent;
}

[data-theme="modern-light"] ::-webkit-scrollbar-thumb {
    background: rgba(212, 145, 92, 0.2);
    border-radius: 3px;
}

[data-theme="modern-light"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 145, 92, 0.35);
}

/* --- Smooth theme transition --- */
[data-theme="modern-light"] *,
[data-theme="modern-light"] *::before,
[data-theme="modern-light"] *::after {
    transition-property: background-color, background, border-color, color, box-shadow;
    transition-duration: 0.3s;
    transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-theme="modern-light"] .btn,
[data-theme="modern-light"] .nav-link,
[data-theme="modern-light"] .form-control,
[data-theme="modern-light"] .form-select,
[data-theme="modern-light"] .dashboard-card {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Sticky headers: light --- */
[data-theme="modern-light"] .bible-sticky-header,
[data-theme="modern-light"] .study-sticky-header {
    background: rgba(247, 245, 242, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--ml-border);
}

/* --- Modal overrides --- */
[data-theme="modern-light"] .modal-content {
    background: var(--ml-surface-1);
    border: 1px solid var(--ml-border);
    color: var(--m-text);
}

[data-theme="modern-light"] .modal-header {
    border-bottom-color: var(--ml-border);
}

[data-theme="modern-light"] .modal-footer {
    border-top-color: var(--ml-border);
}

/* --- Dropdown overrides --- */
[data-theme="modern-light"] .dropdown-menu {
    background: var(--ml-surface-1);
    border: 1px solid var(--ml-border);
    box-shadow: var(--m-shadow-lg);
}

[data-theme="modern-light"] .dropdown-item {
    color: var(--m-text-muted);
}

[data-theme="modern-light"] .dropdown-item:hover,
[data-theme="modern-light"] .dropdown-item:focus {
    background: rgba(212, 145, 92, 0.06);
    color: var(--m-primary);
}

[data-theme="modern-light"] .dropdown-divider {
    border-color: var(--ml-border);
}

/* --- List group --- */
[data-theme="modern-light"] .list-group-item {
    background: var(--ml-surface-1);
    border-color: var(--ml-border);
    color: var(--m-text);
}

[data-theme="modern-light"] .list-group-item.active {
    background: rgba(212, 145, 92, 0.08);
    border-color: rgba(212, 145, 92, 0.2);
    color: var(--m-gold-dark);
}

/* --- Nav tabs --- */
[data-theme="modern-light"] .nav-tabs {
    border-bottom-color: var(--ml-border);
}

[data-theme="modern-light"] .nav-tabs .nav-link {
    color: var(--m-text-muted);
}

[data-theme="modern-light"] .nav-tabs .nav-link:hover {
    border-color: var(--ml-border-hover);
    color: var(--m-primary);
}

[data-theme="modern-light"] .nav-tabs .nav-link.active {
    background: var(--ml-surface-1);
    border-color: var(--ml-border) var(--ml-border) var(--ml-surface-1);
    color: var(--m-gold-dark);
}

/* --- Accordion general --- */
[data-theme="modern-light"] .accordion-item {
    background: var(--ml-surface-1);
    border-color: var(--ml-border);
}

[data-theme="modern-light"] .accordion-button {
    background: var(--ml-surface-3);
    color: var(--m-text);
}

[data-theme="modern-light"] .accordion-button:not(.collapsed) {
    background: rgba(212, 145, 92, 0.08);
    color: var(--m-gold-dark);
}

[data-theme="modern-light"] .accordion-body {
    background: var(--ml-surface-1);
    color: var(--m-text);
}

/* --- Responsive: modern light mobile nav --- */
@media (max-width: 991.98px) {
    [data-theme="modern-light"] .ministry-navbar .navbar-collapse {
        background: var(--ml-surface-1);
        border: 1px solid var(--ml-border);
        border-radius: var(--m-radius);
        box-shadow: var(--m-shadow-lg);
    }

    /* Light app dock */
    [data-theme="modern-light"] .mobile-dock {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid var(--ml-border);
        box-shadow: 0 -2px 16px rgba(26, 26, 46, 0.06);
    }

    [data-theme="modern-light"] .mobile-dock-icon.active .mobile-dock-bubble {
        box-shadow: 0 0 0 2px var(--m-gold), 0 2px 8px rgba(212, 145, 92, 0.2);
    }

    [data-theme="modern-light"] .mobile-dock-icon.active .mobile-dock-label {
        color: var(--m-gold-dark);
    }

    [data-theme="modern-light"] .mobile-dock-label {
        color: var(--m-text-light);
    }

    [data-theme="modern-light"] .mobile-dock-bubble {
        color: var(--m-text-muted);
    }

    /* Light More drawer */
    [data-theme="modern-light"] .mobile-more-drawer {
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid var(--ml-border);
    }

    [data-theme="modern-light"] .mobile-more-drawer-header {
        color: var(--m-primary);
    }

    [data-theme="modern-light"] .mobile-grid-label {
        color: var(--m-text-muted);
    }

    [data-theme="modern-light"] .mobile-grid-section {
        color: var(--m-text-light);
        border-top-color: var(--ml-border);
    }

    [data-theme="modern-light"] .mobile-grid-icon:active {
        background: rgba(212, 145, 92, 0.06);
    }

    /* Light dashboard mobile grid */
    [data-theme="modern-light"] .dashboard-card {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    [data-theme="modern-light"] .dashboard-card::before,
    [data-theme="modern-light"] .dashboard-card::after {
        display: none !important;
    }
    
    [data-theme="modern-light"] .dashboard-card .card-title {
        color: var(--m-primary);
    }
}

/* --- Admin table-cards light override --- */
@media (max-width: 991.98px) {
    [data-theme="modern-light"] .table-cards tbody tr {
        background: var(--ml-surface-1);
        border-color: var(--ml-border);
    }

    [data-theme="modern-light"] .table-cards tbody td:first-child {
        border-bottom-color: var(--ml-border);
    }

    [data-theme="modern-light"] .table-cards tbody td:last-child {
        border-top-color: var(--ml-border);
    }
}

/* --- Misc overrides --- */
[data-theme="modern-light"] hr {
    border-color: var(--ml-border);
    opacity: 1;
}

[data-theme="modern-light"] .breadcrumb-item a {
    color: var(--m-gold-dark);
}

[data-theme="modern-light"] .breadcrumb-item.active {
    color: var(--m-text-muted);
}

[data-theme="modern-light"] blockquote {
    border-left-color: var(--m-gold);
    color: var(--m-text-muted);
}

[data-theme="modern-light"] code {
    color: var(--m-gold-dark);
    background: rgba(212, 145, 92, 0.06);
    padding: 0.15em 0.4em;
    border-radius: 4px;
}

[data-theme="modern-light"] pre {
    background: var(--ml-surface-3);
    border: 1px solid var(--ml-border);
    border-radius: var(--m-radius-sm);
    color: var(--m-text);
}
