/*
 * Oweru Works — Light (glass) and Dark themes for the website and admin.
 *
 * The theme is set on <html data-bs-theme="light|dark"> before the page
 * paints (partials/theme-head), so Bootstrap 5.3's own dark mode and the
 * tokens below switch together. Loaded after each layout's own styles so
 * these tokens win. Brand: navy #0F172A, gold #C89128 (→ #F6C049).
 */

/* ── Tokens ─────────────────────────────────────────────────────────── */
:root,
[data-bs-theme="light"] {
  --ow-page: #F6F4EF;
  --ow-surface: #F6F4EF;
  --ow-surface-2: #F6F4EF;
  --ow-ink: #0F172A;
  --ow-ink-2: #475569;
  --ow-muted: #64748B;
  --ow-line: #E5E5E5;
  --ow-line-strong: #D9D9D9;
  --ow-navy: #0F172A;            /* brand navy panels — stays navy */
  --ow-gold: #C89128;
  --ow-gold-light: #F6C049;
  --ow-ok: #146C2E;   --ow-ok-soft: #E3F6EA;
  --ow-bad: #B42318;  --ow-bad-soft: #FDECEA;
  --ow-warn: #8A5A08; --ow-warn-soft: #F7EEDF;
  --ow-info: #1D4E89; --ow-info-soft: #E8EEF9;
  --ow-shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --ow-radius: 14px;
  --ow-ease: 180ms ease;
  /* Glass */
  --ow-glass: rgba(246, 244, 239, .98);
  --ow-glass-strong: rgba(246, 244, 239, 1);
  --ow-glass-rim: rgba(228, 224, 214, .9);
  --ow-glass-blur: 16px;
  --brand-navy: #0F172A;
}

[data-bs-theme="dark"] {
  color-scheme: dark;
  --ow-page: #0B1120;
  --ow-surface: #131C2E;
  --ow-surface-2: #1A2438;
  --ow-ink: #E8ECF3;
  --ow-ink-2: #C2CBDA;
  --ow-muted: #9AA7BD;
  --ow-line: #263247;
  --ow-line-strong: #33415A;
  --ow-navy: #1B2A47;
  --ow-ok: #5FD08A;   --ow-ok-soft: #11291C;
  --ow-bad: #FF8A80;  --ow-bad-soft: #3A1A1C;
  --ow-warn: #F2C46B; --ow-warn-soft: #33270F;
  --ow-info: #8DB4F5; --ow-info-soft: #15233D;
  --ow-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --ow-glass: #131C2E;           /* no glass in dark: solid surfaces */
  --ow-glass-strong: #131C2E;
  --ow-glass-rim: #263247;
  --ow-glass-blur: 0px;
  --brand-navy: #1B2A47;

  /* Bootstrap */
  --bs-body-bg: #0B1120;
  --bs-body-bg-rgb: 11, 17, 32;
  --bs-body-color: #E8ECF3;
  --bs-body-color-rgb: 232, 236, 243;
  --bs-emphasis-color: #FFFFFF;
  --bs-secondary-color: #9AA7BD;
  --bs-tertiary-color: #7C8AA3;
  --bs-secondary-bg: #131C2E;
  --bs-tertiary-bg: #1A2438;
  --bs-border-color: #263247;
  --bs-border-color-translucent: rgba(255, 255, 255, .1);
  --bs-heading-color: #F1F4F9;
  --bs-link-color: #F6C049;
  --bs-link-color-rgb: 246, 192, 73;
  --bs-link-hover-color: #FFD27A;
  --bs-link-hover-color-rgb: 255, 210, 122;
  --bs-primary: #F6C049;
  --bs-primary-rgb: 246, 192, 73;
  --bs-success-text-emphasis: #5FD08A;
  --bs-danger-text-emphasis: #FF8A80;
  --bs-warning-text-emphasis: #F2C46B;
  --bs-success-bg-subtle: #11291C;
  --bs-danger-bg-subtle: #3A1A1C;
  --bs-warning-bg-subtle: #33270F;
  --bs-info-bg-subtle: #15233D;
  --bs-focus-ring-color: rgba(246, 192, 73, .4);

  /* Public layout (layouts/app) */
  --white: #131C2E;
  --brand-dark: #E8ECF3;          /* used for text there; fills use --brand-navy */
  --gray-50: #0B1120;
  --gray-100: #1A2438;
  --gray-200: #263247;
  --gray-300: #33415A;
  --gray-400: #8A97AD;
  --gray-500: #9AA7BD;
  --gray-600: #C2CBDA;
  --gray-700: #D5DCE7;
  --gray-800: #E3E8F0;
  --gray-900: #F1F4F9;

  /* Admin layout */
  --bg: #0B1120;
  --surface: #131C2E;
  --surface-2: #1A2438;
  --line: #263247;
  --ink: #E8ECF3;
  --ink-2: #C2CBDA;
  --muted: #9AA7BD;
  --side-bg: #070C18;
  --ok: #5FD08A;   --ok-soft: #11291C;
  --warn: #F2C46B; --warn-soft: #33270F;
  --bad: #FF8A80;  --bad-soft: #3A1A1C;
  --info: #8DB4F5; --info-soft: #15233D;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 2px 8px rgba(0, 0, 0, .25);
}

html { background: var(--ow-page); }
body { transition: background-color var(--ow-ease), color var(--ow-ease); }
/* One page colour for the whole site in light mode */
[data-bs-theme="light"] body { background-color: var(--ow-page) !important; }
[data-bs-theme="light"] .bg-light, [data-bs-theme="light"] .bg-white { background-color: var(--ow-page) !important; }
[data-bs-theme="light"] { --bs-card-bg: var(--ow-page); --bs-card-cap-bg: var(--ow-page); --bs-modal-bg: var(--ow-page); --bs-dropdown-bg: var(--ow-page); --bs-list-group-bg: var(--ow-page); --bs-table-bg: var(--ow-page); --bs-offcanvas-bg: var(--ow-page); --bs-pagination-bg: var(--ow-page); --bs-secondary-bg: var(--ow-page); --bs-tertiary-bg: var(--ow-page); }
[data-bs-theme="light"] .form-control, [data-bs-theme="light"] .form-select, [data-bs-theme="light"] .input-group-text { background-color: var(--ow-page); }

/* The menu under the profile icon: solid, with a border, and one arrow beside the name */
[data-bs-theme="light"] .dropdown-menu { background: var(--ow-page) !important; border: 1px solid #E4E0D6 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.user-dropdown.dropdown-toggle::after { display: none; }

/* The site always uses its light look, so the Appearance switch is hidden */
.ow-theme-toggle, .ow-theme-float { display: none !important; }

/* ── Light mode: the whole system in one cream, only the site footer stays navy ───────
   Surfaces lose their white and dark panels become cream with dark text. Everything
   is scoped to light mode, so dark mode and the footer are untouched. */
[data-bs-theme="light"] :is(.as-card, .fw-card, .mcard, .pcard, .scard, .jcard, .card, .task-tile, .table-responsive, table, textarea, select, .modal-content, .dropdown-menu, .navbar, .oai-panel) { background-color: var(--ow-page) !important; }
[data-bs-theme="light"] :is(table, thead, tbody, tr, th, td) { --bs-table-bg: var(--ow-page); }
[data-bs-theme="light"] :is(.as-card, .fw-card, .mcard, .jcard, .task-tile) { border-color: #E4E0D6; }

[data-bs-theme="light"] :is(.cream-panel, .mk-plan, .po-hero, .po-money, .tips-card, .ptotal, .oai-head, .hero-right, .cta-banner, .enterprise-page .hero) {
  background: var(--ow-page) !important; color: #13203A !important; border: 1px solid #E4E0D6; box-shadow: none;
}
[data-bs-theme="light"] :is(.cream-panel, .mk-plan, .po-hero, .po-money, .tips-card, .ptotal, .oai-head, .hero-right, .cta-banner, .enterprise-page .hero)::before { display: none; }
[data-bs-theme="light"] :is(.cream-panel, .mk-plan, .po-hero, .po-money, .tips-card, .ptotal, .oai-head, .hero-right, .cta-banner, .enterprise-page .hero) :is(h1, h2, h3, h4, h5, h6, p, span, small, strong, b, li, label, a, i, div):not([class*="btn"], [class*="btn"] *, .badge, .oai-logo, .lang a) {
  color: #13203A !important; border-color: #E4E0D6 !important;
}
[data-bs-theme="light"] :is(.cream-panel, .mk-plan, .po-hero, .tips-card, .hero-right, .cta-banner, .enterprise-page .hero) :is(.btn-outline-light, .btn-light) { background: transparent !important; color: #13203A !important; border-color: #CFC9BB !important; }
[data-bs-theme="light"] .enterprise-page .hero .cta-row .btn-outline { color: #13203A; border-color: #CFC9BB; }
[data-bs-theme="light"] .cream-panel .btn[style*="transparent"] { color: #13203A !important; border-color: #CFC9BB !important; }
[data-bs-theme="light"] :is(.as-navy strong.gold, .ptotal strong) { color: #8A6410 !important; }
[data-bs-theme="light"] .po-hero { border-radius: 20px; }

/* Photo banners keep their photo: the dark wash becomes a cream one and the text turns dark */
[data-bs-theme="light"] .pbanner { background-color: var(--ow-page) !important; color: #13203A; border: 1px solid #E4E0D6; }
[data-bs-theme="light"] .pbanner::before { background: linear-gradient(100deg, rgba(246,244,239,.98) 0%, rgba(246,244,239,.92) 45%, rgba(246,244,239,.2) 100%); }
[data-bs-theme="light"] .pbanner :is(h1, p) { color: #13203A; }
[data-bs-theme="light"] .pbanner .eyebrow-l { color: #8A6410; }
[data-bs-theme="light"] .pbanner-glass span { background: rgba(246,244,239,.92); color: #13203A; border-color: #E4E0D6; }
[data-bs-theme="light"] .pbanner-glass i { color: #8A6410; }

/* ── Dark: Bootstrap pieces and common hard-coded light colours ─────── */
[data-bs-theme="dark"] body { background-color: var(--bs-body-bg) !important; color: var(--bs-body-color); }
[data-bs-theme="dark"] .bg-white,
[data-bs-theme="dark"] .bg-light,
[data-bs-theme="dark"] .bg-body,
[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .list-group-item,
[data-bs-theme="dark"] .modal-content,
[data-bs-theme="dark"] .dropdown-menu,
[data-bs-theme="dark"] .offcanvas,
[data-bs-theme="dark"] .accordion-item,
[data-bs-theme="dark"] .accordion-button,
[data-bs-theme="dark"] .card-header,
[data-bs-theme="dark"] .card-footer { background-color: var(--ow-surface) !important; color: var(--ow-ink); border-color: var(--ow-line); }
[data-bs-theme="dark"] .card-header,
[data-bs-theme="dark"] .card-footer,
[data-bs-theme="dark"] .bg-light { background-color: var(--ow-surface-2) !important; }
[data-bs-theme="dark"] .text-dark,
[data-bs-theme="dark"] .text-body,
[data-bs-theme="dark"] .text-black { color: var(--ow-ink) !important; }
[data-bs-theme="dark"] .text-muted,
[data-bs-theme="dark"] .text-secondary { color: var(--ow-muted) !important; }
[data-bs-theme="dark"] .text-primary { color: #F6C049 !important; }
[data-bs-theme="dark"] .border,
[data-bs-theme="dark"] .border-top,
[data-bs-theme="dark"] .border-bottom,
[data-bs-theme="dark"] .border-start,
[data-bs-theme="dark"] .border-end,
[data-bs-theme="dark"] hr { border-color: var(--ow-line) !important; }
[data-bs-theme="dark"] .table { --bs-table-bg: var(--ow-surface); --bs-table-color: var(--ow-ink); --bs-table-border-color: var(--ow-line); --bs-table-striped-bg: rgba(255, 255, 255, .03); --bs-table-hover-bg: rgba(255, 255, 255, .05); }
[data-bs-theme="dark"] .table-light,
[data-bs-theme="dark"] thead.table-light th,
[data-bs-theme="dark"] .table thead th { --bs-table-bg: var(--ow-surface-2); background-color: var(--ow-surface-2) !important; color: var(--ow-muted) !important; }
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select,
[data-bs-theme="dark"] .input-group-text { background-color: var(--ow-surface-2); color: var(--ow-ink); border-color: var(--ow-line-strong); }
[data-bs-theme="dark"] .form-control::placeholder { color: #7C8AA3; }
[data-bs-theme="dark"] .form-control:disabled,
[data-bs-theme="dark"] .form-control[readonly] { background-color: #111827; }
[data-bs-theme="dark"] .btn-primary { --bs-btn-bg: #24365A; --bs-btn-border-color: #33415A; --bs-btn-hover-bg: #2E446E; --bs-btn-hover-border-color: #3E5585; --bs-btn-active-bg: #2E446E; --bs-btn-color: #fff; }
[data-bs-theme="dark"] .btn-outline-primary { --bs-btn-color: #E8ECF3; --bs-btn-border-color: #4A5B78; --bs-btn-hover-bg: #24365A; --bs-btn-hover-border-color: #4A5B78; }
[data-bs-theme="dark"] .btn-light { --bs-btn-bg: #1A2438; --bs-btn-border-color: #263247; --bs-btn-color: #E8ECF3; --bs-btn-hover-bg: #24365A; --bs-btn-hover-color: #fff; }
[data-bs-theme="dark"] .btn-outline-secondary,
[data-bs-theme="dark"] .btn-outline-dark { --bs-btn-color: #C2CBDA; --bs-btn-border-color: #33415A; --bs-btn-hover-bg: #1A2438; --bs-btn-hover-color: #fff; }
[data-bs-theme="dark"] .btn-dark { --bs-btn-bg: #24365A; --bs-btn-border-color: #33415A; }
[data-bs-theme="dark"] .badge.bg-light { color: var(--ow-ink) !important; }
[data-bs-theme="dark"] .alert-success { background: var(--ow-ok-soft); color: var(--ow-ok); border-color: #1D4A31; }
[data-bs-theme="dark"] .alert-danger { background: var(--ow-bad-soft); color: var(--ow-bad); border-color: #5A2629; }
[data-bs-theme="dark"] .alert-warning { background: var(--ow-warn-soft); color: var(--ow-warn); border-color: #5A4418; }
[data-bs-theme="dark"] .alert-info { background: var(--ow-info-soft); color: var(--ow-info); border-color: #24365A; }
[data-bs-theme="dark"] .page-link { background: var(--ow-surface); color: var(--ow-ink); border-color: var(--ow-line); }
[data-bs-theme="dark"] .active > .page-link, [data-bs-theme="dark"] .page-link.active { background: #C89128; border-color: #C89128; color: #0F172A; }
[data-bs-theme="dark"] .nav-tabs .nav-link.active { background: var(--ow-surface); color: var(--ow-ink); border-color: var(--ow-line) var(--ow-line) var(--ow-surface); }
[data-bs-theme="dark"] .nav-pills .nav-link.active { background: #24365A; }
[data-bs-theme="dark"] .navbar { background-color: var(--ow-surface) !important; border-color: var(--ow-line) !important; }
[data-bs-theme="dark"] .navbar::before { background: var(--ow-surface) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
[data-bs-theme="dark"] .navbar .nav-link { color: var(--ow-ink-2); }
[data-bs-theme="dark"] .navbar .nav-link:hover, [data-bs-theme="dark"] .navbar .nav-link.active { color: #F6C049; }
[data-bs-theme="dark"] .navbar-toggler-icon { filter: invert(1) brightness(1.4); }
[data-bs-theme="dark"] .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }
[data-bs-theme="dark"] img.logo, [data-bs-theme="dark"] .navbar-brand img { background: transparent; }
/* Charts drawn on canvas keep their colours; give them a calm frame */
[data-bs-theme="dark"] canvas { background: transparent; }

/* Inline styles in older views: the usual light fills and navy/grey text */
[data-bs-theme="dark"] [style*="background:#fff"],
[data-bs-theme="dark"] [style*="background: #fff"],
[data-bs-theme="dark"] [style*="background:#FFF"],
[data-bs-theme="dark"] [style*="background: #FFF"],
[data-bs-theme="dark"] [style*="background:white"],
[data-bs-theme="dark"] [style*="background: white"],
[data-bs-theme="dark"] [style*="background-color:#fff"],
[data-bs-theme="dark"] [style*="background-color: #fff"],
[data-bs-theme="dark"] [style*="background-color: #FFF"],
[data-bs-theme="dark"] [style*="background-color: white"],
[data-bs-theme="dark"] [style*="background:#ffffff"],
[data-bs-theme="dark"] [style*="background: #ffffff"],
[data-bs-theme="dark"] [style*="background: #FFFFFF"],
[data-bs-theme="dark"] [style*="background-color: #ffffff"],
[data-bs-theme="dark"] [style*="background-color: #FFFFFF"] { background: var(--ow-surface) !important; }
[data-bs-theme="dark"] [style*="background:#F6F4EF"], [data-bs-theme="dark"] [style*="background: #F6F4EF"], [data-bs-theme="dark"] [style*="background-color: #F6F4EF"], [data-bs-theme="dark"] [style*="background-color:#F6F4EF"],
[data-bs-theme="dark"] [style*="background:#F8F8F9"], [data-bs-theme="dark"] [style*="background: #F8F8F9"],
[data-bs-theme="dark"] [style*="background:#f8f9fa"], [data-bs-theme="dark"] [style*="background: #f8f9fa"],
[data-bs-theme="dark"] [style*="background: #F8F9FA"], [data-bs-theme="dark"] [style*="background:#F1F1F3"],
[data-bs-theme="dark"] [style*="background: #F1F1F3"], [data-bs-theme="dark"] [style*="background:#f1f5f9"],
[data-bs-theme="dark"] [style*="background: #f1f5f9"], [data-bs-theme="dark"] [style*="background: #F1F5F9"],
[data-bs-theme="dark"] [style*="background-color: #f8f9fa"], [data-bs-theme="dark"] [style*="background-color: #F8F8F9"] { background: var(--ow-surface-2) !important; }
[data-bs-theme="dark"] [style*="color:#0F172A"], [data-bs-theme="dark"] [style*="color: #0F172A"],
[data-bs-theme="dark"] [style*="color:#0f172a"], [data-bs-theme="dark"] [style*="color: #0f172a"],
[data-bs-theme="dark"] [style*="color:#1E293B"], [data-bs-theme="dark"] [style*="color: #1E293B"],
[data-bs-theme="dark"] [style*="color:#334155"], [data-bs-theme="dark"] [style*="color: #334155"],
[data-bs-theme="dark"] [style*="color:#111827"], [data-bs-theme="dark"] [style*="color: #111827"],
[data-bs-theme="dark"] [style*="color:#333"], [data-bs-theme="dark"] [style*="color: #333"] { color: var(--ow-ink) !important; }
[data-bs-theme="dark"] [style*="color:#64748B"], [data-bs-theme="dark"] [style*="color: #64748B"],
[data-bs-theme="dark"] [style*="color:#64748b"], [data-bs-theme="dark"] [style*="color: #64748b"],
[data-bs-theme="dark"] [style*="color:#6B7280"], [data-bs-theme="dark"] [style*="color: #6B7280"],
[data-bs-theme="dark"] [style*="color:#475569"], [data-bs-theme="dark"] [style*="color: #475569"],
[data-bs-theme="dark"] [style*="color:#666"], [data-bs-theme="dark"] [style*="color: #666"] { color: var(--ow-muted) !important; }
[data-bs-theme="dark"] [style*="border:1px solid #E5E5E5"], [data-bs-theme="dark"] [style*="border: 1px solid #E5E5E5"],
[data-bs-theme="dark"] [style*="border:1px solid #e5e7eb"], [data-bs-theme="dark"] [style*="border: 1px solid #e5e7eb"],
[data-bs-theme="dark"] [style*="border: 1px solid #E5E7EB"] { border-color: var(--ow-line) !important; }

/* Common component classes across the dashboards */
[data-bs-theme="dark"] :is(.stat-card, .stats-card, .stat-item, .filter-bar, .section-card, .content-card, .panel, .widget, .info-card, .profile-card, .job-card, .product-card, .store-card, .pro-card, .team-card, .wallet-card) {
  background-color: var(--ow-surface) !important; color: var(--ow-ink); border-color: var(--ow-line) !important;
}
[data-bs-theme="dark"] :is(.stat-label, .stat-sub, .stat-key) { color: var(--ow-muted) !important; }
[data-bs-theme="dark"] :is(.stat-value, .stat-number, .stat-val, .stat-value-lg) { color: var(--ow-ink) !important; }

/* Status colours stay distinct */
[data-bs-theme="dark"] .text-success { color: var(--ow-ok) !important; }
[data-bs-theme="dark"] .text-danger { color: var(--ow-bad) !important; }
[data-bs-theme="dark"] .text-warning { color: var(--ow-warn) !important; }
[data-bs-theme="dark"] .bg-success-subtle { background: var(--ow-ok-soft) !important; }
[data-bs-theme="dark"] .bg-danger-subtle { background: var(--ow-bad-soft) !important; }
[data-bs-theme="dark"] .bg-warning-subtle { background: var(--ow-warn-soft) !important; }

/* ── Light: glass on chosen surfaces ────────────────────────────────── */
/* Summary cards, menus, dialogs, side panels and filter bars: translucent
   white, thin bright rim, soft shadow and blur. Tables, long text and big
   forms stay solid (see below) so they are easy to read. */
[data-bs-theme="light"] body:not(.ow-solid) {
  background-image:
    radial-gradient(900px 500px at 100% -10%, rgba(200, 145, 40, .10), transparent 60%),
    radial-gradient(800px 600px at -10% 30%, rgba(15, 23, 42, .06), transparent 60%);
  background-attachment: fixed;
}
[data-bs-theme="light"] :is(.dropdown-menu, .modal-content, .offcanvas, .popover, .toast,
  .stat-card, .stats-card, .stat-item, .filter-bar, .glass, .wallet-card, .team-card) {
  background-color: var(--ow-glass) !important;
  border: 1px solid var(--ow-glass-rim) !important;
  box-shadow: var(--ow-shadow);
  -webkit-backdrop-filter: blur(var(--ow-glass-blur)) saturate(150%);
  backdrop-filter: blur(var(--ow-glass-blur)) saturate(150%);
  transition: background-color var(--ow-ease), box-shadow var(--ow-ease), transform var(--ow-ease);
}
[data-bs-theme="light"] :is(.dropdown-menu, .modal-content, .offcanvas, .popover) { background-color: var(--ow-glass-strong) !important; }
[data-bs-theme="light"] :is(.stat-card, .stats-card, .wallet-card, .team-card):hover { box-shadow: 0 14px 34px rgba(15, 23, 42, .12); }
/* Keep reading surfaces solid */
[data-bs-theme="light"] :is(.table, .table-responsive, table, textarea, .form-control, .form-select, .prose, article) { background-color: #FFFFFF; }

/* No backdrop-filter support, or less transparency wanted: solid */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  [data-bs-theme="light"] :is(.dropdown-menu, .modal-content, .offcanvas, .popover, .toast, .stat-card, .stats-card, .stat-item, .filter-bar, .glass, .wallet-card, .team-card) { background-color: #FFFFFF !important; }
}
@media (prefers-reduced-transparency: reduce) {
  [data-bs-theme="light"] :is(.dropdown-menu, .modal-content, .offcanvas, .popover, .toast, .stat-card, .stats-card, .stat-item, .filter-bar, .glass, .wallet-card, .team-card) { background-color: #FFFFFF !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}
html[data-reduce-transparency] :is(.dropdown-menu, .modal-content, .offcanvas, .popover, .toast, .stat-card, .stats-card, .stat-item, .filter-bar, .glass, .wallet-card, .team-card, .navbar::before) {
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
html[data-reduce-transparency][data-bs-theme="light"] :is(.dropdown-menu, .modal-content, .offcanvas, .popover, .toast, .stat-card, .stats-card, .stat-item, .filter-bar, .glass, .wallet-card, .team-card) { background-color: #FFFFFF !important; }
html[data-reduce-transparency][data-bs-theme="light"] body { background-image: none; }
/* Small screens: lighter blur keeps scrolling smooth */
@media (max-width: 576px) {
  [data-bs-theme="light"] { --ow-glass-blur: 10px; }
}

/* ── Motion and focus ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  body, [data-bs-theme] * { transition: none !important; }
}
:focus-visible { outline: 2px solid #C89128; outline-offset: 2px; }

/* ── The switcher ───────────────────────────────────────────────────── */
.ow-theme-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 999px;
  border: 1px solid var(--ow-line); background: var(--ow-surface); color: var(--ow-ink);
  transition: background-color var(--ow-ease), border-color var(--ow-ease);
}
.ow-theme-btn:hover { border-color: #C89128; }
.ow-theme-menu .dropdown-item[aria-checked="true"] { font-weight: 700; color: #C89128; }
.ow-theme-menu .dropdown-item[aria-checked="true"]::after { content: "\2713"; float: right; margin-left: 12px; }
.ow-theme-float { position: fixed; left: 16px; bottom: 16px; z-index: 1080; }
@media print { .ow-theme-toggle, .ow-theme-float { display: none !important; } }

/* ── Sign-in, register and reset pages ──────────────────────────────── */
[data-bs-theme="dark"] :is(.login-card, .register-card, .reset-card) {
  background: var(--ow-surface) !important; color: var(--ow-ink); border: 1px solid var(--ow-line); box-shadow: var(--ow-shadow);
}
[data-bs-theme="dark"] :is(.login-card, .register-card, .reset-card) :is(.form-label, label, h1, h2, h3, .forgot-link, .register-link a) { color: var(--ow-ink) !important; }
[data-bs-theme="dark"] :is(.login-card, .register-card, .reset-card) :is(.social-btn, .file-input-wrapper) { background: var(--ow-surface-2) !important; color: var(--ow-ink) !important; border-color: var(--ow-line-strong) !important; }
[data-bs-theme="dark"] :is(.login-card, .register-card, .reset-card) .btn-signin { background: #C89128 !important; color: #0F172A !important; }
[data-bs-theme="dark"] :is(.login-card, .register-card, .reset-card) :is(.divider-line) { background: var(--ow-line) !important; }
[data-bs-theme="dark"] :is(.login-card, .register-card, .reset-card) .logo-img { filter: drop-shadow(0 0 0 transparent); background: transparent; }
[data-bs-theme="light"] :is(.login-card, .register-card, .reset-card) {
  background: var(--ow-glass-strong) !important; border: 1px solid var(--ow-glass-rim);
  -webkit-backdrop-filter: blur(var(--ow-glass-blur)); backdrop-filter: blur(var(--ow-glass-blur));
}
[data-bs-theme="dark"] :is(.login-card, .register-card, .reset-card) :is(button[type="submit"], .btn-register, .btn-submit, .btn-primary) {
  background: #C89128 !important; border-color: #C89128 !important; color: #0F172A !important;
}
[data-bs-theme="dark"] :is(.login-card, .register-card, .reset-card) a:not(.social-btn):not(.btn) { color: #F6C049 !important; }
/* The logo's navy strokes need a light plate on dark backgrounds */
[data-bs-theme="dark"] :is(.logo-img, .navbar-brand img, .brand-logo, img[alt*="Oweru"], img[src*="logo"]) {
  background: #F8F8F9; border-radius: 10px; padding: 4px;
}
