/* MeroVPS — custom supplemental styles */
/* Primary framework: Tailwind CSS via CDN */

/* Hide Alpine-controlled elements until Alpine boots */
[x-cloak] { display: none !important; }

/* ===========================
   CSS custom properties
   =========================== */
:root {
    /* Radio/toggle inactive border — visible in dark mode (white @ 25% opacity) */
    --radio-inactive-border: rgba(255,255,255,0.25);
}

/* ===========================
   Critical base styles
   (applied immediately before Tailwind CDN runs)
   =========================== */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: #030712;
    color: #f8fafc;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-optical-sizing: auto;
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Ensure the full-height flex layout works before Tailwind */
body > div.flex {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar base — ensures sidebar is visible on desktop without Alpine/Tailwind */
@media (min-width: 1024px) {
    aside {
        position: static !important;
        transform: none !important;
        flex-shrink: 0;
    }
}

/* ===========================
   Global typography scale
   =========================== */
h1, h2, h3, h4, h5, h6 {
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
    text-rendering: optimizeLegibility;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

/* Numeric figures — tabular by default for aligned columns */
.tabular-nums,
[class*="text-3xl"],
[class*="text-2xl"],
[class*="text-xl"] {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "kern" 1, "tnum" 1;
}

/* Small uppercase labels (e.g. section headers like "Resource Usage") */
.uppercase {
    font-feature-settings: "kern" 1, "liga" 0;
}

/* Better paragraph readability */
p {
    line-height: 1.7;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.10);
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.18);
}
/* Light mode scrollbar */
html[data-theme="light"] ::-webkit-scrollbar-track {
    background: #eff4ff;
}
html[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: #c9c4d8;
}
html[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: #787587;
}

/* ===========================
   StablePanel API form resets
   =========================== */
.is-required {
    border-color: rgba(239,68,68,0.5) !important;
}

/* ===========================
   Markdown content
   =========================== */
.markdown-content,
.bb-content {
    line-height: 1.7;
    font-size: 0.875rem;
    color: #cbd5e1;
}
.markdown-content p,
.bb-content p {
    margin-bottom: 0.75rem;
}
.markdown-content code,
.bb-content code {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    padding: 0.1em 0.4em;
    font-size: 0.8em;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}
.markdown-content pre,
.bb-content pre {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    margin: 0.75rem 0;
}
.markdown-content a,
.bb-content a {
    color: #818cf8;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ===========================
   Print styles
   =========================== */
@media print {
    body {
        background: white;
        color: black;
    }
    aside, header, footer, nav {
        display: none !important;
    }
}

/* ===========================
   Gradient text utility
   =========================== */
.gradient-text {
    background: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===========================
   Card glass
   =========================== */
.card-glass {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    backdrop-filter: blur(8px);
}

/* ===========================
   Form elements base
   =========================== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="search"],
textarea,
select {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px; /* Stitch: 0.5rem standard radius */
    padding: 0.625rem 0.875rem;
    color: white;
    font-size: 0.875rem;
    font-family: 'Inter', system-ui, sans-serif;
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
}
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(var(--color-primary-rgb),0.7);
    /* Stitch: 2px outer glow at 20% opacity */
    box-shadow: 0 0 0 2px rgba(var(--color-primary-rgb),0.20);
}
select option {
    background: #0f172a;
    color: white;
}
/* Light mode inputs */
html[data-theme="light"] input[type="text"],
html[data-theme="light"] input[type="email"],
html[data-theme="light"] input[type="password"],
html[data-theme="light"] input[type="tel"],
html[data-theme="light"] input[type="number"],
html[data-theme="light"] input[type="search"],
html[data-theme="light"] textarea,
html[data-theme="light"] select {
    background: #ffffff;
    border-color: #c9c4d8; /* Stitch outline-variant */
    color: #0b1c30;        /* Stitch on-surface */
}
html[data-theme="light"] input:focus,
html[data-theme="light"] textarea:focus,
html[data-theme="light"] select:focus {
    border-color: rgba(var(--color-primary-rgb),0.80);
    box-shadow: 0 0 0 2px rgba(var(--color-primary-rgb),0.20);
}
html[data-theme="light"] select option {
    background: #ffffff;
    color: #0b1c30;
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes merovps-free-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
    50%      { box-shadow: 0 0 18px 3px rgba(16,185,129,0.22); }
}
.free-addon-card {
    animation: merovps-free-glow 3s ease-in-out infinite;
}
html[data-theme="light"] .free-addon-card {
    animation: merovps-free-glow 3s ease-in-out infinite;
    box-shadow: 0 2px 12px rgba(16,185,129,0.12);
}
/* ── Logo image ──
   Dark mode: invert to white (SVG has dark text on transparent bg).
   Light mode: render at natural colours (#2B1708 + #FF6B00 are legible on light canvas).
── */
html:not([data-theme="light"]) .logo-img {
    filter: brightness(0) invert(1);
}
html[data-theme="light"] .logo-img {
    filter: none !important;
}

.animate-fade-in {
    animation: fadeIn 0.25s ease-out;
}

/* ===========================
   Light mode
   Toggled by: html[data-theme="light"]

   Color system:
     Canvas            : #eef2ff → radial gradient (indigo-50 base)
     Glass surface     : rgba(255,255,255,0.68) + blur(18px)
     Glass surface-2   : rgba(255,255,255,0.85) + blur(24px)
     Border glass      : rgba(255,255,255,0.75)
     Border line       : rgba(var(--color-primary-rgb),0.12) — indigo-tinted
     Text-900 primary  : #0f172a  slate-900
     Text-700 secondary: #334155  slate-700
     Text-500 muted    : #475569  slate-600
     Text-400 faint    : #64748b  slate-500
     Text-300 ultra    : #94a3b8  slate-400 (labels only)
     Indigo-accent     : #4f46e5  indigo-600
   =========================== */

/* ── Smooth theme transition on toggle ── */
html[data-theme="light"] *,
html[data-theme="light"] *::before,
html[data-theme="light"] *::after {
    transition:
        background-color 0.25s ease,
        border-color     0.25s ease,
        box-shadow       0.25s ease,
        color            0.2s  ease !important;
}
/* But don't transition transforms/opacity (breaks Alpine x-transition).
   Scope to elements that use Alpine show/transition BUT exclude sidebar
   structural elements that need their own width/transform transitions. */
html[data-theme="light"] [x-show]:not(#sidebar):not(#sidebar *):not(.sidebar-overlay),
html[data-theme="light"] [x-transition]:not(#sidebar):not(#sidebar *):not(.sidebar-overlay) {
    transition: none !important;
}
/* Sidebar overlay: restore opacity fade in light mode */
html[data-theme="light"] .sidebar-overlay[x-show] {
    transition: opacity 300ms ease-linear !important;
}
/* Sidebar: restore width + transform transitions in light mode
   (overrides the global !important transition rule above) */
html[data-theme="light"] #sidebar {
    transition:
        width           300ms ease-in-out,
        transform       300ms ease-in-out,
        background-color 0.25s ease,
        border-color    0.25s ease,
        box-shadow      0.25s ease !important;
}
/* Sidebar children: allow opacity/width transitions for collapse labels */
html[data-theme="light"] #sidebar .transition-all,
html[data-theme="light"] #sidebar .transition-opacity {
    transition:
        opacity          200ms ease,
        width            200ms ease,
        background-color 0.25s ease,
        border-color     0.25s ease,
        color            0.2s ease !important;
}

html[data-theme="light"] {
    color-scheme: light;
    /* Improve font rendering in light mode */
    -webkit-font-smoothing: subpixel-antialiased;
    text-rendering: optimizeLegibility;
    /* Radio/toggle inactive border — visible on light canvas (slate-400) */
    --radio-inactive-border: #94a3b8;
}

/* ═══════════════════════════════════════════════════
   1. CANVAS — gradient background for glass depth
   ═══════════════════════════════════════════════════ */
/* Use class+element specificity (0,1,1) so it beats the .bg-[#030712] class rule (0,1,0) */
html[data-theme="light"] body.bg-\[\#030712\] {
    background-color: #f8f9ff !important;   /* Stitch: surface/background */
    background-image: none !important;
    color: #0b1c30 !important;               /* Stitch: on-surface */
    font-variant-numeric: tabular-nums;
}
html[data-theme="light"] body {
    background-color: #f8f9ff;               /* Stitch: background */
    background-image: none;
    color: #0b1c30;                          /* Stitch: on-surface */
    font-variant-numeric: tabular-nums;
}

/* ── Named dark-bg classes ── */
html[data-theme="light"] .bg-\[\#030712\]     { background-color: transparent !important; }
html[data-theme="light"] .bg-\[\#030712\]\/80 {
    background-color: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
html[data-theme="light"] .bg-\[\#030712\]\/95 {
    background-color: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* ═══════════════════════════════════════════════════
   2. STRUCTURAL GLASS — sidebar, header, dropdowns
   ═══════════════════════════════════════════════════ */

/* Sidebar — frosted glass panel (layout nav sidebar only) */
html[data-theme="light"] #sidebar {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-right: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
}

/* /order page right sidebar cards — light mode */
html[data-theme="light"] .order-sidebar > div {
    background: rgba(255,255,255,0.80) !important;
    border-color: rgba(165,180,252,0.30) !important;
    box-shadow: 0 2px 12px rgba(var(--color-primary-rgb),0.07) !important;
}
html[data-theme="light"] .order-sidebar > div .text-gray-400 {
    color: #475569 !important;
}
html[data-theme="light"] .order-sidebar > div .text-gray-500 {
    color: #64748b !important;
}
html[data-theme="light"] .order-sidebar > div .text-gray-600 {
    color: #64748b !important;
}

/* ── /order page product cards, buttons, period switcher (light mode) ── */
/* Stitch design: solid white cards with clean slate-200 border, no blur */
html[data-theme="light"] .ord-product-card {
    background: #ffffff !important;
    box-shadow: 0 4px 20px -1px rgba(0,0,0,0.05) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
/* Non-popular card hover — subtle border lift only */
html[data-theme="light"] .ord-product-card:not(.border-2):hover {
    border-color: rgba(var(--color-primary-rgb),0.35) !important;
    box-shadow: 0 8px 28px -2px rgba(0,0,0,0.09) !important;
}
/* Popular card (border-2 border-primary) — keep its ring on hover */
html[data-theme="light"] .ord-product-card.border-2:hover {
    box-shadow: 0 8px 32px -2px rgba(var(--color-primary-rgb),0.18) !important;
}
/* Primary CTA button (bg-primary text-white) — solid primary, not gradient */
html[data-theme="light"] .ord-cat-btn-primary {
    background: var(--color-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(var(--color-primary-rgb),0.3) !important;
}
html[data-theme="light"] .ord-cat-btn-primary:hover {
    opacity: 0.95 !important;
}
/* Secondary CTA button — outlined primary, white bg on hover */
html[data-theme="light"] .ord-cat-btn-secondary {
    background: transparent !important;
    color: var(--color-primary) !important;
}
html[data-theme="light"] .ord-cat-btn-secondary:hover {
    background: rgba(var(--color-primary-rgb),0.05) !important;
}
/* Period-switcher pill container */
html[data-theme="light"] .ord-period-bar {
    background: rgba(var(--color-primary-rgb),0.04) !important;
    border-color: rgba(var(--color-primary-rgb),0.16) !important;
}
/* Price divider row — no border in Stitch design, remove override */
html[data-theme="light"] .ord-price-row {
    border-color: transparent !important;
}

/* ═══════════════════════════════════════════════════
   /order page — DARK MODE overrides
   (default theme is dark so no [data-theme] prefix needed;
    these reset the hardcoded Tailwind light classes)
   ═══════════════════════════════════════════════════ */

/* Product cards */
html:not([data-theme="light"]) .ord-product-card {
    background: rgba(255,255,255,0.04) !important;
    border-color: rgba(255,255,255,0.08) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}
html:not([data-theme="light"]) .ord-product-card:hover {
    background: rgba(255,255,255,0.07) !important;
    border-color: rgba(var(--color-primary-rgb),0.35) !important;
    box-shadow: 0 6px 24px rgba(0,0,0,0.35) !important;
}
/* Featured (Most Popular) card */
html:not([data-theme="light"]) .ord-product-card[class*="ring-2"] {
    background: rgba(var(--color-primary-rgb),0.10) !important;
    border-color: rgba(var(--color-primary-rgb),0.30) !important;
    box-shadow: 0 4px 24px rgba(var(--color-primary-rgb),0.20) !important;
}

/* Card text: headings, body, muted */
html:not([data-theme="light"]) .ord-product-card .text-slate-900,
html:not([data-theme="light"]) .ord-product-card .text-on-surface,
html:not([data-theme="light"]) .ord-product-card h3,
html:not([data-theme="light"]) .ord-product-card h4 {
    color: rgba(255,255,255,0.92) !important;
}
html:not([data-theme="light"]) .ord-product-card .text-slate-700,
html:not([data-theme="light"]) .ord-product-card .text-slate-600,
html:not([data-theme="light"]) .ord-product-card .text-slate-500,
html:not([data-theme="light"]) .ord-product-card .text-on-surface-variant,
html:not([data-theme="light"]) .ord-product-card p {
    color: rgba(255,255,255,0.55) !important;
}
html:not([data-theme="light"]) .ord-product-card .text-label-caps,
html:not([data-theme="light"]) .ord-product-card [class*="uppercase"][class*="text-slate"] {
    color: rgba(255,255,255,0.40) !important;
}

/* Price row divider */
html:not([data-theme="light"]) .ord-product-card .border-slate-100,
html:not([data-theme="light"]) .ord-product-card .border-t {
    border-color: rgba(255,255,255,0.08) !important;
}

/* "N/A" unavailable pill */
html:not([data-theme="light"]) .ord-product-card .bg-slate-100 {
    background: rgba(255,255,255,0.07) !important;
    color: rgba(255,255,255,0.35) !important;
}

/* Period switcher */
html:not([data-theme="light"]) .ord-period-bar {
    background: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.10) !important;
}
html:not([data-theme="light"]) .ord-period-bar button {
    color: rgba(255,255,255,0.50) !important;
}
html:not([data-theme="light"]) .ord-period-bar button.bg-white {
    background: rgba(255,255,255,0.10) !important;
    color: rgba(255,255,255,0.92) !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.30) !important;
}

/* Category header block (fallback icon bg) */
html:not([data-theme="light"]) .ord-refined .bg-indigo-500\/10 { background: rgba(99,102,241,0.15) !important; }
html:not([data-theme="light"]) .ord-refined .bg-amber-500\/10  { background: rgba(245,158,11,0.15) !important; }
html:not([data-theme="light"]) .ord-refined .bg-purple-500\/10 { background: rgba(168,85,247,0.15) !important; }
html:not([data-theme="light"]) .ord-refined .bg-emerald-500\/10{ background: rgba(16,185,129,0.15) !important; }
html:not([data-theme="light"]) .ord-refined .bg-blue-500\/10   { background: rgba(59,130,246,0.15) !important; }
html:not([data-theme="light"]) .ord-refined .bg-rose-500\/10   { background: rgba(244,63,94,0.15) !important; }

/* Category header text */
html:not([data-theme="light"]) .ord-refined .text-h2.text-on-surface,
html:not([data-theme="light"]) .ord-refined .text-h3.text-on-surface,
html:not([data-theme="light"]) .ord-refined h2.text-on-surface,
html:not([data-theme="light"]) .ord-refined h3.text-on-surface {
    color: rgba(255,255,255,0.90) !important;
}
html:not([data-theme="light"]) .ord-refined .text-status,
html:not([data-theme="light"]) .ord-refined .text-slate-500 {
    color: rgba(255,255,255,0.45) !important;
}

/* Tab rail */
html:not([data-theme="light"]) .ord-refined .bg-surface-container-low {
    background: rgba(255,255,255,0.05) !important;
}
html:not([data-theme="light"]) .ord-refined .bg-surface-container-low a.bg-white {
    background: rgba(255,255,255,0.10) !important;
}

/* Right sidebar cards (domain search, money-back) */
html:not([data-theme="light"]) .ord-refined aside .bg-white {
    background: rgba(255,255,255,0.04) !important;
    border-color: rgba(255,255,255,0.08) !important;
}
html:not([data-theme="light"]) .ord-refined aside .border-slate-200 {
    border-color: rgba(255,255,255,0.08) !important;
}
html:not([data-theme="light"]) .ord-refined aside .text-slate-900,
html:not([data-theme="light"]) .ord-refined aside h4 {
    color: rgba(255,255,255,0.90) !important;
}
html:not([data-theme="light"]) .ord-refined aside .text-slate-700,
html:not([data-theme="light"]) .ord-refined aside .text-slate-600 {
    color: rgba(255,255,255,0.65) !important;
}
html:not([data-theme="light"]) .ord-refined aside .text-slate-500,
html:not([data-theme="light"]) .ord-refined aside .text-slate-400 {
    color: rgba(255,255,255,0.40) !important;
}
html:not([data-theme="light"]) .ord-refined aside .bg-slate-50 {
    background: rgba(255,255,255,0.04) !important;
}
html:not([data-theme="light"]) .ord-refined aside .border-slate-100 {
    border-color: rgba(255,255,255,0.06) !important;
}
/* Domain search input */
html:not([data-theme="light"]) .ord-refined aside input {
    background: rgba(255,255,255,0.06) !important;
    border-color: rgba(255,255,255,0.10) !important;
    color: rgba(255,255,255,0.85) !important;
}
html:not([data-theme="light"]) .ord-refined aside input::placeholder {
    color: rgba(255,255,255,0.30) !important;
}
/* TLD pills */
html:not([data-theme="light"]) .ord-refined aside .bg-slate-50.border.rounded-xl {
    background: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.08) !important;
}
/* Money-back trust badges */
html:not([data-theme="light"]) .ord-refined aside span.bg-slate-50 {
    background: rgba(255,255,255,0.06) !important;
    border-color: rgba(255,255,255,0.08) !important;
    color: rgba(255,255,255,0.65) !important;
}
/* Payment logo containers */
html:not([data-theme="light"]) .ord-refined aside .bg-slate-50.border-slate-100 {
    background: rgba(255,255,255,0.06) !important;
    border-color: rgba(255,255,255,0.08) !important;
}

/* Money-back card copy — dark mode readability */
html:not([data-theme="light"]) .ord-refined aside .ord-moneyback-card .text-on-surface {
    color: rgba(255,255,255,0.92) !important;
}
html:not([data-theme="light"]) .ord-refined aside .ord-moneyback-card p.text-on-surface {
    color: rgba(255,255,255,0.84) !important;
}

/* "Need help choosing?" bottom banner */
html:not([data-theme="light"]) .ord-refined .bg-surface-container-low.border-surface-container {
    background: rgba(255,255,255,0.04) !important;
    border-color: rgba(255,255,255,0.08) !important;
}
html:not([data-theme="light"]) .ord-refined .bg-surface-container-low.border-surface-container h4 {
    color: rgba(255,255,255,0.90) !important;
}
html:not([data-theme="light"]) .ord-refined .bg-surface-container-low.border-surface-container p {
    color: rgba(255,255,255,0.50) !important;
}
html:not([data-theme="light"]) .ord-refined .bg-surface-container-low.border-surface-container a[style] {
    background: rgba(255,255,255,0.06) !important;
    border-color: rgba(var(--color-primary-rgb),0.50) !important;
}

/* Sticky header — clean Stitch style (scoped to nav topbar only) */
html[data-theme="light"] header#global-topbar {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid #c9c4d8 !important;  /* Stitch outline-variant */
    box-shadow: 0 1px 4px rgba(0,0,0,0.02) !important;
}

/* Footer */
html[data-theme="light"] footer {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-top: 1px solid #c9c4d8 !important;  /* Stitch outline-variant */
}

/* Sidebar collapse toggle pill */
html[data-theme="light"] #sidebar-toggle {
    background: #eff4ff !important;   /* Stitch surface-container-low */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid #c9c4d8 !important;   /* Stitch outline-variant */
    box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
    color: #484555 !important;              /* Stitch on-surface-variant */
    transition: left 300ms ease-in-out, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.2s ease !important;
}
html[data-theme="light"] #sidebar-toggle:hover {
    background: #e5eeff !important;   /* Stitch surface-container */
    border-color: rgba(var(--color-primary-rgb),0.35) !important;
    color: #461dd0 !important;        /* Stitch primary */
    box-shadow: 0 2px 8px rgba(var(--color-primary-rgb),0.12) !important;
}

/* Dropdowns (bg-[#0d1424]) and sidebar-bg (bg-[#0a0f1e]) */
html[data-theme="light"] .bg-\[\#0d1424\],
html[data-theme="light"] .bg-\[\#0a0f1e\] {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid #c9c4d8 !important;   /* Stitch outline-variant */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
}

/* TLD selector dropdown (bg-gray-900/95) */
html[data-theme="light"] .bg-gray-900\/95 {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-color: #c9c4d8 !important;   /* Stitch outline-variant */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
}

/* ═══════════════════════════════════════════════════
   3. TYPOGRAPHY — 5-level hierarchy
   ═══════════════════════════════════════════════════ */

/* News post hero — keep headings white over dark gradient in light mode */
html[data-theme="light"] .news-post-hero h1,
html[data-theme="light"] .news-post-hero h2,
html[data-theme="light"] .news-post-hero h3 { color: #ffffff !important; }

/* Level 1 — Headings, primary labels (Stitch on-surface #0b1c30) */
html[data-theme="light"] .text-white,
html[data-theme="light"] h1, html[data-theme="light"] h2, html[data-theme="light"] h3 {
    color: #0b1c30 !important;     /* Stitch on-surface */
    letter-spacing: -0.01em;
}
/* Level 2 — Body text, card content */
html[data-theme="light"] .text-gray-100,
html[data-theme="light"] .text-gray-200 { color: #0b1c30 !important; }
/* Level 3 — Supporting text */
html[data-theme="light"] .text-gray-300  { color: #213145 !important; }  /* Stitch inverse-surface */
/* Level 4 — Muted/secondary */
html[data-theme="light"] .text-gray-400  { color: #484555 !important; }  /* Stitch on-surface-variant */
/* Level 5 — Faint / metadata */
html[data-theme="light"] .text-gray-500  { color: #787587 !important; }  /* Stitch outline */
/* Level 5b — Ultra-muted labels */
html[data-theme="light"] .text-gray-600  { color: #787587 !important; }
html[data-theme="light"] .text-gray-700  { color: #484555 !important; }

/* Hover states */
html[data-theme="light"] .hover\:text-white:hover       { color: #1e1b4b !important; }
html[data-theme="light"] .hover\:text-gray-400:hover    { color: #334155 !important; }
html[data-theme="light"] .hover\:text-gray-300:hover    { color: #1e293b !important; }

/* Uppercase section labels — best readability with tracking */
html[data-theme="light"] .uppercase.tracking-wider,
html[data-theme="light"] .uppercase.tracking-widest,
html[data-theme="light"] .uppercase.tracking-wide {
    letter-spacing: 0.08em !important;
    font-weight: 600 !important;
}

/* ── Mono text (IPs, hostnames, usernames) ── */
html[data-theme="light"] .font-mono { color: #1e293b !important; }

/* ── Accent colors: indigo-600 level (fully saturated on light bg) ── */
html[data-theme="light"] .text-indigo-400               { color: #4f46e5 !important; }
html[data-theme="light"] .text-indigo-300               { color: #4f46e5 !important; }
html[data-theme="light"] .text-indigo-200               { color: var(--color-primary) !important; }
html[data-theme="light"] .text-indigo-500               { color: #4338ca !important; }
html[data-theme="light"] .hover\:text-indigo-400:hover  { color: #4338ca !important; }
html[data-theme="light"] .hover\:text-indigo-300:hover  { color: #4f46e5 !important; }

/* ── Status shades: fully saturated deep tones ── */
html[data-theme="light"] .text-green-400   { color: #15803d !important; }
html[data-theme="light"] .text-green-300   { color: #166534 !important; }
html[data-theme="light"] .text-emerald-400 { color: #047857 !important; }
html[data-theme="light"] .text-emerald-300 { color: #065f46 !important; }
html[data-theme="light"] .text-amber-400   { color: #92400e !important; }
html[data-theme="light"] .text-amber-300   { color: #78350f !important; }
html[data-theme="light"] .text-red-400     { color: #b91c1c !important; }
html[data-theme="light"] .text-red-300     { color: #991b1b !important; }
html[data-theme="light"] .hover\:text-red-400:hover  { color: #b91c1c !important; }
html[data-theme="light"] .hover\:text-red-300:hover  { color: #991b1b !important; }
html[data-theme="light"] .text-sky-400     { color: #0369a1 !important; }
html[data-theme="light"] .text-blue-400    { color: #1d4ed8 !important; }
html[data-theme="light"] .text-violet-400  { color: #6d28d9 !important; }
html[data-theme="light"] .text-pink-400    { color: #be185d !important; }
html[data-theme="light"] .text-teal-400    { color: #0f766e !important; }
html[data-theme="light"] .text-orange-400  { color: #c2410c !important; }

/* Opacity-variant accent text used in addon cards and billing notes */
html[data-theme="light"] .text-emerald-500\/70    { color: rgba(5,150,105,0.90)   !important; }
html[data-theme="light"] .text-indigo-300\/60     { color: rgba(79,70,229,0.80)   !important; }
/* Markdown bold text inside [&_strong]:text-gray-300 containers */
html[data-theme="light"] .\[\&_strong\]\:text-gray-300 strong { color: #334155 !important; }

/* ═══════════════════════════════════════════════════
   4. GLASS CARDS — main content surfaces
   ═══════════════════════════════════════════════════ */

/* Tailwind translucent classes — become glass panels */
html[data-theme="light"] .bg-white\/\[0\.015\] { background: #f8faff !important; }
html[data-theme="light"] .bg-white\/\[0\.02\]  { background: #f8faff !important; }
html[data-theme="light"] .bg-white\/\[0\.025\] {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-color: #e2e8f0 !important;
}
html[data-theme="light"] .bg-white\/\[0\.03\] {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-color: #e2e8f0 !important;
}
html[data-theme="light"] .bg-white\/\[0\.04\]  { background: #ffffff !important; }
html[data-theme="light"] .bg-white\/\[0\.05\]  { background: #f8faff !important; }
html[data-theme="light"] .bg-white\/\[0\.06\]  { background: #eef2ff !important; }
html[data-theme="light"] .bg-white\/\[0\.07\]  { background: #f1f5f9 !important; }
html[data-theme="light"] .bg-white\/\[0\.10\]  { background: #e0e7ff !important; }
html[data-theme="light"] .bg-white\/5          { background: #f1f5f9 !important; }

/* Hover backgrounds — Stitch clean hover states */
html[data-theme="light"] .hover\:bg-white\/5:hover           { background: #eef2ff !important; }
html[data-theme="light"] .hover\:bg-white\/\[0\.02\]:hover   { background: #f1f5f9 !important; }
html[data-theme="light"] .hover\:bg-white\/\[0\.03\]:hover   { background: #eef2ff !important; }
html[data-theme="light"] .hover\:bg-white\/\[0\.04\]:hover   { background: #eef2ff !important; }
html[data-theme="light"] .hover\:bg-white\/\[0\.05\]:hover   { background: #eef2ff !important; }
html[data-theme="light"] .hover\:bg-white\/\[0\.06\]:hover   { background: #eef2ff !important; }
html[data-theme="light"] .hover\:bg-white\/\[0\.08\]:hover   { background: #e0e7ff !important; }
html[data-theme="light"] .hover\:bg-white\/\[0\.015\]:hover  { background: #f1f5f9 !important; }

/* Inline-style cards: rgba(255,255,255,0.02), 0.025 and 0.03 — glass panels */
html[data-theme="light"] [style*="rgba(255,255,255,0.025)"],
html[data-theme="light"] [style*="rgba(255,255,255,0.02)"],
html[data-theme="light"] [style*="rgba(255,255,255,0.03)"] {
    background: rgba(255,255,255,0.68) !important;
    border-color: rgba(165,180,252,0.32) !important;
    backdrop-filter: blur(18px) saturate(1.9) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.9) !important;
}
/* Chip/pill inner items — lighter glass */
html[data-theme="light"] [style*="rgba(255,255,255,0.04)"] {
    background: rgba(255,255,255,0.48) !important;
    border-color: rgba(165,180,252,0.15) !important;
}
/* Addon icon badge / domain-selector pill (0.05) */
html[data-theme="light"] [style*="rgba(255,255,255,0.05)"] {
    background: rgba(255,255,255,0.58) !important;
    border-color: rgba(165,180,252,0.22) !important;
}
/* ── Pricing card CTA buttons ── */
.pricing-btn-secondary {
    color: rgba(255,255,255,0.90);
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
}
.pricing-btn-secondary:hover {
    background: rgba(255,255,255,0.13);
}
.pricing-btn-primary {
    color: #ffffff;
}
.pricing-btn-primary:hover {
    filter: brightness(1.1);
}
html[data-theme="light"] .pricing-btn-secondary {
    background: rgba(var(--color-primary-rgb),0.08) !important;
    border-color: rgba(var(--color-primary-rgb),0.25) !important;
    color: rgb(var(--color-primary-rgb)) !important;
}
html[data-theme="light"] .pricing-btn-secondary:hover {
    background: rgba(var(--color-primary-rgb),0.14) !important;
}
html[data-theme="light"] .pricing-btn-primary {
    color: #ffffff !important;
}

/* ── Button hover: accordion rows, nav items ── */
html[data-theme="light"] .hover\:bg-white\/\[0\.015\] {
    background: transparent !important;
}
/* ── Stat card: status badge default surface ── */
html[data-theme="light"] .bg-white\/\[0\.07\]   { background: #f1f5f9 !important; border-color: #e2e8f0 !important; }

/* ═══════════════════════════════════════════════════
   4b. SIDEBAR INTERACTIVE STATES — light mode specifics
   ═══════════════════════════════════════════════════ */

/* Sidebar nav hover text — Stitch on-surface color */
html[data-theme="light"] #sidebar .hover\:text-white:hover {
    color: #1e1b4b !important;
}

/* Sidebar sub-nav hover — Stitch surface-container tint */
html[data-theme="light"] #sidebar nav .hover\:bg-white\/5:hover {
    background: #eef2ff !important;
}

/* Guest login/signup button border — visible on white sidebar */
html[data-theme="light"] #sidebar .border-white\/10 {
    border-color: rgba(var(--color-primary-rgb),0.30) !important;
}
html[data-theme="light"] #sidebar .hover\:border-indigo-500\/40:hover {
    border-color: rgba(var(--color-primary-rgb),0.50) !important;
}

/* Sign-up button: preserve white text on solid indigo background */
html[data-theme="light"] .bg-indigo-600\/80,
html[data-theme="light"] .bg-indigo-600 {
    color: #ffffff !important;
}

/* Header/footer dropdowns hover rows — visible indigo tint */
html[data-theme="light"] .bg-\[\#0d1424\] .hover\:bg-white\/\[0\.04\]:hover,
html[data-theme="light"] .bg-\[\#0a0f1e\] .hover\:bg-white\/\[0\.04\]:hover {
    background: rgba(var(--color-primary-rgb),0.07) !important;
}

/* TLD badge (div.text-white with gradient bg in results) — keep white */
html[data-theme="light"] .results-container .result-row div.text-white {
    color: #ffffff !important;
}

/* "Add to cart" / "Register" button — keep white text when on a solid primary background */
html[data-theme="light"] .results-container .result-row button.text-white:not(.bg-primary) {
    color: #1e293b !important;
}

/* ═══════════════════════════════════════════════════
   5. BORDERS
   ═══════════════════════════════════════════════════ */
html[data-theme="light"] .border-white\/5          { border-color: #e2e8f0 !important; }
html[data-theme="light"] .border-white\/10         { border-color: #e2e8f0 !important; }
html[data-theme="light"] .border-white\/15         { border-color: #e2e8f0 !important; }
html[data-theme="light"] .border-white\/25         { border-color: #cbd5e1 !important; }
html[data-theme="light"] .border-white\/\[0\.04\]  { border-color: #f1f5f9 !important; }
html[data-theme="light"] .border-white\/\[0\.05\]  { border-color: #e2e8f0 !important; }
html[data-theme="light"] .border-white\/\[0\.06\]  { border-color: #e2e8f0 !important; }
html[data-theme="light"] .border-white\/\[0\.07\]  { border-color: #e2e8f0 !important; }
html[data-theme="light"] .border-white\/\[0\.08\]  { border-color: #e2e8f0 !important; }
html[data-theme="light"] .border-white\/\[0\.10\]  { border-color: #e2e8f0 !important; }
html[data-theme="light"] .border-white\/\[0\.20\]  { border-color: #cbd5e1 !important; }
html[data-theme="light"] .hover\:border-white\/\[0\.20\]:hover { border-color: #cbd5e1 !important; }
html[data-theme="light"] .border-white\/\[0\.12\]  { border-color: #cbd5e1 !important; }
html[data-theme="light"] .border-white\/\[0\.25\]  { border-color: #cbd5e1 !important; }
html[data-theme="light"] .border-white\/\[0\.28\]  { border-color: #cbd5e1 !important; }
html[data-theme="light"] .divide-white\/\[0\.04\] > * + * { border-color: #f1f5f9 !important; }
html[data-theme="light"] .divide-white\/\[0\.05\] > * + * { border-color: #e2e8f0 !important; }
html[data-theme="light"] .divide-white\/\[0\.06\] > * + * { border-color: #e2e8f0 !important; }
html[data-theme="light"] .border-l.border-white\/10      { border-color: #e2e8f0 !important; }
/* Avatar ring borders */
html[data-theme="light"] .border-\[\#0f172a\]      { border-color: #ffffff !important; }
html[data-theme="light"] .border-\[\#030712\]      { border-color: #ffffff !important; }

/* Accent-tinted borders */
html[data-theme="light"] .border-indigo-500\/30 { border-color: rgba(var(--color-primary-rgb),0.28) !important; }
html[data-theme="light"] .border-indigo-500\/40 { border-color: rgba(var(--color-primary-rgb),0.35) !important; }
html[data-theme="light"] .border-green-500\/30  { border-color: rgba(22,163,74,0.28)  !important; }
html[data-theme="light"] .border-green-500\/10  { border-color: rgba(22,163,74,0.14)  !important; }

/* ═══════════════════════════════════════════════════
   6. ACTIVE / SELECTED STATE SURFACES
   ═══════════════════════════════════════════════════ */
html[data-theme="light"] .bg-indigo-500\/20         { background: rgba(var(--color-primary-rgb),0.10) !important; }
html[data-theme="light"] .bg-indigo-500\/15         { background: rgba(var(--color-primary-rgb),0.09) !important; }
html[data-theme="light"] .bg-indigo-500\/10         { background: rgba(var(--color-primary-rgb),0.07) !important; }
html[data-theme="light"] .hover\:bg-indigo-500\/10:hover { background: rgba(var(--color-primary-rgb),0.10) !important; }

/* Emerald / green category tiles in the sidebar */
html[data-theme="light"] .bg-emerald-500\/10  { background: rgba(5,150,105,0.08)  !important; }
html[data-theme="light"] .bg-amber-500\/10    { background: rgba(180,83,9,0.08)   !important; }

/* Status badge surfaces */
html[data-theme="light"] .bg-green-500\/10   { background: rgba(22,163,74,0.09)  !important; }
html[data-theme="light"] .bg-red-500\/10     { background: rgba(220,38,38,0.08)  !important; }
html[data-theme="light"] .hover\:bg-red-500\/10:hover { background: rgba(220,38,38,0.10) !important; }

/* ── Avatar border on stacked avatars ── */
html[data-theme="light"] .border-\[\#0f172a\] { border-color: #f8faff !important; }

/* ── Dashboard action buttons ── */
html[data-theme="light"] .dashboard-btn-cpanel {
    background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
    color: #fff !important;
    box-shadow: 0 1px 3px rgba(14,165,233,0.25) !important;
}
html[data-theme="light"] .dashboard-btn-cpanel:hover {
    opacity: 0.92 !important;
    box-shadow: 0 2px 8px rgba(14,165,233,0.35) !important;
}
html[data-theme="light"] .dashboard-btn-manage {
    background: rgba(255,255,255,0.65) !important;
    border-color: rgba(var(--color-primary-rgb),0.18) !important;
    color: #374151 !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06) !important;
}
html[data-theme="light"] .dashboard-btn-manage:hover {
    background: rgba(255,255,255,0.85) !important;
    border-color: rgba(var(--color-primary-rgb),0.28) !important;
    color: #111827 !important;
}

/* ═══════════════════════════════════════════════════
   7. HERO CARDS & SPECIAL INLINE STYLES
   ═══════════════════════════════════════════════════ */

/* Full-width page hero banners (domain-transfer, domain-registration etc.) */
html[data-theme="light"] [data-hero] {
    background-color: transparent !important;
    background-image:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(var(--color-primary-rgb),0.14) 0%, transparent 65%),
        radial-gradient(ellipse 55% 40% at 20% 100%, rgba(165,180,252,0.22) 0%, transparent 60%),
        linear-gradient(180deg, rgba(238,242,255,0.92) 0%, rgba(224,231,255,0.70) 100%) !important;
    border-bottom-color: rgba(165,180,252,0.28) !important;
    backdrop-filter: blur(0px) !important;
    -webkit-backdrop-filter: blur(0px) !important;
    box-shadow: 0 4px 24px rgba(var(--color-primary-rgb),0.08) !important;
}
/* Keep glow blobs visible but softer */
html[data-theme="light"] [data-hero] .opacity-20 { opacity: 0.12 !important; }
html[data-theme="light"] [data-hero] .opacity-10 { opacity: 0.08 !important; }

/* Hero card dark gradient → soft glass with indigo aurora */
html[data-theme="light"] [style*="rgba(55,48,163"],
html[data-theme="light"] [style*="rgba(67,56,202"],
html[data-theme="light"] [style*="rgba(79,70,229"] {
    background:
        linear-gradient(135deg,
            rgba(var(--color-primary-rgb),0.12) 0%,
            rgba(165,180,252,0.07) 60%,
            rgba(238,242,255,0) 100%) !important;
    backdrop-filter: blur(20px) saturate(1.8) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.8) !important;
    border-color: rgba(var(--color-primary-rgb),0.22) !important;
    box-shadow: 0 4px 20px rgba(var(--color-primary-rgb),0.10), inset 0 1px 0 rgba(255,255,255,0.7) !important;
}
/* Hero bottom bar (rgba(0,0,0,0.15)) */
html[data-theme="light"] [style*="rgba(0,0,0,0.15)"] {
    background: rgba(var(--color-primary-rgb),0.05) !important;
    border-top-color: rgba(var(--color-primary-rgb),0.12) !important;
}
/* Footer inline `style="background: #030712;"` */
html[data-theme="light"] [style*="background: #030712"],
html[data-theme="light"] [style*="background:#030712"] {
    background: rgba(238,242,255,0.6) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
}
/* Gradient buttons — keep indigo gradient, ensure white text */
html[data-theme="light"] [style*="linear-gradient(135deg, var(--color-primary)"],
html[data-theme="light"] [style*="linear-gradient(135deg,var(--color-primary)"],
html[data-theme="light"] [style*="background: linear-gradient(135deg, var(--color-primary)"],
html[data-theme="light"] [style*="background:linear-gradient(135deg,var(--color-primary)"] {
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(var(--color-primary-rgb),0.30) !important;
}

/* ── Webhosting / VPS "Recommended" plan card (dark gradient bg) ── */
html[data-theme="light"] [style*="rgba(30,41,59"],
html[data-theme="light"] [style*="rgba(23,31,50"] {
    background: rgba(255,255,255,0.80) !important;
    backdrop-filter: blur(20px) saturate(1.9) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.9) !important;
    border-color: rgba(59,130,246,0.35) !important;
    box-shadow:
        0 0 0 2px rgba(59,130,246,0.30),
        0 8px 32px rgba(59,130,246,0.14),
        inset 0 1px 0 rgba(255,255,255,0.95) !important;
}
/* "Recommended" banner strip */
html[data-theme="light"] [style*="rgba(59,130,246,0.12)"] {
    background: rgba(59,130,246,0.09) !important;
    border-bottom-color: rgba(59,130,246,0.18) !important;
}
html[data-theme="light"] .text-blue-300 { color: #1d4ed8 !important; }
/* Blue CTA button */
html[data-theme="light"] [style*="linear-gradient(90deg, #3b82f6"],
html[data-theme="light"] [style*="background: linear-gradient(90deg, #3b82f6"] {
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(59,130,246,0.30) !important;
}
/* ring-blue-500 → stay visible on light bg */
html[data-theme="light"] .ring-blue-500 {
    --tw-ring-color: rgba(59,130,246,0.55) !important;
}
/* ring-indigo-500 → indigo ring visible on light */
html[data-theme="light"] .ring-indigo-500 {
    --tw-ring-color: rgba(var(--color-primary-rgb),0.50) !important;
}
/* Blue shadow glow on recommended card */
html[data-theme="light"] .shadow-\[0_0_40px_-8px_rgba\(59\,130\,246\,0\.4\)\] {
    box-shadow: 0 0 28px -6px rgba(59,130,246,0.22) !important;
}

/* ═══════════════════════════════════════════════════
   8. FORM INPUTS — clean glass style
   ═══════════════════════════════════════════════════ */
html[data-theme="light"] input[type="text"],
html[data-theme="light"] input[type="email"],
html[data-theme="light"] input[type="password"],
html[data-theme="light"] input[type="tel"],
html[data-theme="light"] input[type="number"],
html[data-theme="light"] input[type="search"],
html[data-theme="light"] textarea,
html[data-theme="light"] select {
    background:   #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border:       1px solid #e2e8f0 !important;
    color:        #1e1b4b !important;
    box-shadow:   0 1px 2px rgba(0,0,0,0.04) !important;
}
html[data-theme="light"] input:focus,
html[data-theme="light"] textarea:focus,
html[data-theme="light"] select:focus {
    background:   #ffffff !important;
    border-color: rgba(var(--color-primary-rgb),0.55) !important;
    box-shadow:   0 0 0 3px rgba(var(--color-primary-rgb),0.14) !important;
}
html[data-theme="light"] select option          { background: #ffffff; color: #0f172a; }
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder  { color: #94a3b8 !important; opacity: 1 !important; }

/* ═══════════════════════════════════════════════════
   9. SCROLLBARS — matching glass palette
   ═══════════════════════════════════════════════════ */
html[data-theme="light"] ::-webkit-scrollbar-track { background: #f8faff; }
html[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
html[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ═══════════════════════════════════════════════════
   10. EMAIL VERIFICATION BANNER
   ═══════════════════════════════════════════════════ */
html[data-theme="light"] .email-verify-banner {
    background: rgba(37,99,235,0.07) !important;
    border-color: rgba(37,99,235,0.25) !important;
    color: #1e40af !important;
    box-shadow: 0 1px 4px rgba(37,99,235,0.08), inset 0 1px 0 rgba(255,255,255,0.60) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}
html[data-theme="light"] .email-verify-banner p,
html[data-theme="light"] .email-verify-banner svg {
    color: #1e40af !important;
}
html[data-theme="light"] .email-verify-banner .text-blue-200 {
    color: #1e3a8a !important;
    font-weight: 600 !important;
}
html[data-theme="light"] .email-verify-banner strong {
    color: #1e3a8a !important;
}
html[data-theme="light"] .email-verify-banner .evb-resend-btn {
    background: rgba(37,99,235,0.12) !important;
    border: 1px solid rgba(37,99,235,0.25) !important;
    color: #1d4ed8 !important;
}
html[data-theme="light"] .email-verify-banner .evb-resend-btn:hover:not(:disabled) {
    background: rgba(37,99,235,0.20) !important;
    border-color: rgba(37,99,235,0.40) !important;
}
html[data-theme="light"] .email-verify-banner .evb-dismiss-btn {
    color: #3b82f6 !important;
}
html[data-theme="light"] .email-verify-banner .evb-dismiss-btn:hover {
    color: #1d4ed8 !important;
}

/* ═══════════════════════════════════════════════════
   11. NOTIFICATION TOASTS
   ═══════════════════════════════════════════════════ */
html[data-theme="light"] #merovps-notif > div {
    background:        #ffffff !important;
    backdrop-filter:   none !important;
    -webkit-backdrop-filter: none !important;
    border:            1px solid #e2e8f0 !important;
    color:             #1e1b4b !important;
    box-shadow:        0 4px 16px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05) !important;
}

/* ═══════════════════════════════════════════════════
   11. MARKDOWN / RICH CONTENT
   ═══════════════════════════════════════════════════ */
html[data-theme="light"] .markdown-content,
html[data-theme="light"] .bb-content       { color: #334155 !important; line-height: 1.75 !important; }
html[data-theme="light"] .markdown-content a,
html[data-theme="light"] .bb-content a     { color: #4f46e5 !important; }
html[data-theme="light"] .markdown-content code,
html[data-theme="light"] .bb-content code  {
    background:   rgba(var(--color-primary-rgb),0.08) !important;
    border:       1px solid rgba(var(--color-primary-rgb),0.16) !important;
    color:        #3730a3 !important;
}
html[data-theme="light"] .markdown-content pre,
html[data-theme="light"] .bb-content pre   {
    background:   rgba(255,255,255,0.70) !important;
    backdrop-filter: blur(10px) !important;
    border:       1px solid rgba(165,180,252,0.22) !important;
}

/* ═══════════════════════════════════════════════════
   12. UTILITY CLASSES
   ═══════════════════════════════════════════════════ */
html[data-theme="light"] .card-glass {
    background:        #ffffff !important;
    backdrop-filter:   none !important;
    -webkit-backdrop-filter: none !important;
    border:            1px solid #e2e8f0 !important;
    box-shadow:        0 2px 8px rgba(0,0,0,0.04) !important;
}
html[data-theme="light"] .gradient-text {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
html[data-theme="light"] .is-required { border-color: rgba(185,28,28,0.40) !important; }

/* ── Animate-pulse adjustment (status dot) ── */
html[data-theme="light"] .bg-green-400             { background-color: #16a34a !important; }
html[data-theme="light"] .animate-pulse.bg-green-400 { background-color: #16a34a !important; }

/* ── Contact role toggle — inactive state (bg-gray-700 is too dark on light canvas) ── */
html[data-theme="light"] .contact-role-toggle.bg-gray-700 {
    background-color: rgba(148,163,184,0.40) !important;
    border-color: rgba(165,180,252,0.25) !important;
}

/* ── Shadows — clean subtle for Stitch light mode ── */
html[data-theme="light"] .shadow-lg          { box-shadow: 0 4px 16px rgba(0,0,0,0.06) !important; }
html[data-theme="light"] .shadow-2xl         { box-shadow: 0 8px 32px rgba(0,0,0,0.08) !important; }
html[data-theme="light"] .shadow-black\/60   { --tw-shadow-color: rgba(0,0,0,0.06) !important; }
html[data-theme="light"] .shadow-indigo-500\/20 { box-shadow: 0 4px 16px rgba(var(--color-primary-rgb),0.15) !important; }
html[data-theme="light"] .shadow-indigo-500\/30 { box-shadow: 0 4px 20px rgba(var(--color-primary-rgb),0.20) !important; }

/* ═══════════════════════════════════════════════════
   13. RENEW MODAL — light-mode overrides
   ═══════════════════════════════════════════════════ */
html[data-theme="light"] .renew-modal-overlay {
    background: rgba(15,23,42,0.50) !important;
    backdrop-filter: blur(8px) saturate(1.5) !important;
    -webkit-backdrop-filter: blur(8px) saturate(1.5) !important;
}
html[data-theme="light"] .renew-modal-card {
    background: rgba(255,255,255,0.94) !important;
    backdrop-filter: blur(24px) saturate(2) !important;
    -webkit-backdrop-filter: blur(24px) saturate(2) !important;
    border-color: rgba(165,180,252,0.30) !important;
    box-shadow:
        0 20px 60px rgba(var(--color-primary-rgb),0.15),
        0 4px 16px rgba(15,23,42,0.10),
        inset 0 1px 0 rgba(255,255,255,1) !important;
}
html[data-theme="light"] .renew-modal-card .border-white\/\[0\.06\] {
    border-color: rgba(165,180,252,0.18) !important;
}
html[data-theme="light"] .renew-modal-card select option {
    background: #ffffff;
    color: #0f172a;
}
/* Text colors */
html[data-theme="light"] .renew-modal-card .text-white { color: #0f172a !important; }
html[data-theme="light"] .renew-modal-card .text-gray-400 { color: #475569 !important; }
html[data-theme="light"] .renew-modal-card .text-gray-500 { color: #64748b !important; }
html[data-theme="light"] .renew-modal-card .text-gray-600 { color: #64748b !important; }
html[data-theme="light"] .renew-modal-card .hover\:text-white:hover { color: #0f172a !important; }
/* Inputs, textareas, selects */
html[data-theme="light"] .renew-modal-card input[type="text"],
html[data-theme="light"] .renew-modal-card textarea,
html[data-theme="light"] .renew-modal-card select {
    background: #f1f5f9 !important;
    border-color: rgba(99,102,241,0.25) !important;
    color: #0f172a !important;
}
html[data-theme="light"] .renew-modal-card input::placeholder,
html[data-theme="light"] .renew-modal-card textarea::placeholder { color: #94a3b8 !important; }
/* bg-white/5 select & semi-transparent info rows become invisible on white */
html[data-theme="light"] .renew-modal-card .bg-white\/5 { background: #f1f5f9 !important; }
html[data-theme="light"] .renew-modal-card .border-white\/10 { border-color: #e2e8f0 !important; }
html[data-theme="light"] .renew-modal-card [style*="rgba(255,255,255,0.02)"] { background: #f1f5f9 !important; }

/* ═══════════════════════════════════════════════════
   14. EPP / OTP MODAL — light-mode overrides
   ═══════════════════════════════════════════════════ */
html[data-theme="light"] .epp-modal-overlay {
    background: rgba(15,23,42,0.50) !important;
    backdrop-filter: blur(8px) saturate(1.5) !important;
    -webkit-backdrop-filter: blur(8px) saturate(1.5) !important;
}
html[data-theme="light"] .epp-modal-card {
    background: rgba(255,255,255,0.94) !important;
    backdrop-filter: blur(24px) saturate(2) !important;
    -webkit-backdrop-filter: blur(24px) saturate(2) !important;
    border-color: rgba(165,180,252,0.30) !important;
    box-shadow:
        0 20px 60px rgba(var(--color-primary-rgb),0.15),
        0 4px 16px rgba(15,23,42,0.10),
        inset 0 1px 0 rgba(255,255,255,1) !important;
}
/* Header divider */
html[data-theme="light"] .epp-modal-card .border-white\/\[0\.06\] {
    border-color: rgba(165,180,252,0.18) !important;
}
/* Description text */
html[data-theme="light"] .epp-modal-card .text-gray-400 { color: #475569 !important; }
/* Countdown label */
html[data-theme="light"] .epp-modal-card .text-gray-500 { color: #64748b !important; }
/* OTP input */
html[data-theme="light"] .epp-modal-card input[type="text"] {
    background:   rgba(255,255,255,0.80) !important;
    border-color: rgba(var(--color-primary-rgb),0.22)  !important;
    color:        #0f172a !important;
}
html[data-theme="light"] .epp-modal-card input::placeholder { color: #94a3b8 !important; }
/* Close button */
html[data-theme="light"] .epp-modal-card .text-gray-500.hover\:text-white:hover,
html[data-theme="light"] .epp-modal-card button.text-gray-500          { color: #64748b !important; }
html[data-theme="light"] .epp-modal-card button.text-gray-500:hover     { color: #0f172a !important; }

/* ═══════════════════════════════════════════════════
   15. BUTTONS — preserve white text on solid backgrounds
   ═══════════════════════════════════════════════════
   The blanket `.text-white → #0f172a` override in §3 is correct
   for headings and body text, but buttons/badges with opaque
   colored backgrounds still need legible white text.
   ═══════════════════════════════════════════════════ */

/* ── Solid Tailwind bg-{color}-{shade} + text-white ── */
html[data-theme="light"] .bg-primary.text-white,
html[data-theme="light"] .bg-indigo-500.text-white,
html[data-theme="light"] .bg-indigo-600.text-white,
html[data-theme="light"] .bg-indigo-600\/80.text-white,
html[data-theme="light"] .bg-blue-500.text-white,
html[data-theme="light"] .bg-blue-600.text-white,
html[data-theme="light"] .bg-emerald-500.text-white,
html[data-theme="light"] .bg-emerald-600.text-white,
html[data-theme="light"] .bg-green-500.text-white,
html[data-theme="light"] .bg-green-600.text-white,
html[data-theme="light"] .bg-violet-500.text-white,
html[data-theme="light"] .bg-violet-600.text-white,
html[data-theme="light"] .bg-red-500.text-white,
html[data-theme="light"] .bg-red-600.text-white,
html[data-theme="light"] .bg-purple-500.text-white,
html[data-theme="light"] .bg-purple-600.text-white,
html[data-theme="light"] .bg-teal-500.text-white,
html[data-theme="light"] .bg-teal-600.text-white,
html[data-theme="light"] .bg-amber-500.text-white,
html[data-theme="light"] .bg-amber-600.text-white {
    color: #ffffff !important;
}

/* ── Inline-style gradient/solid backgrounds with .text-white class ── */
/* Green gradient CTA (contact-us, dashboard) */
html[data-theme="light"] [style*="linear-gradient(135deg, #10b981"].text-white,
html[data-theme="light"] [style*="linear-gradient(135deg,#10b981"].text-white {
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(16,185,129,0.30) !important;
}
/* Lime-green sale badge */
html[data-theme="light"] [style*="background: #65a30d"].text-white,
html[data-theme="light"] [style*="background:#65a30d"].text-white {
    color: #ffffff !important;
}

/* ── Children of solid-bg buttons that inherit .text-white ── */
html[data-theme="light"] .bg-indigo-500 .text-white,
html[data-theme="light"] .bg-indigo-600 .text-white,
html[data-theme="light"] .bg-blue-500 .text-white,
html[data-theme="light"] .bg-blue-600 .text-white,
html[data-theme="light"] .bg-emerald-500 .text-white,
html[data-theme="light"] .bg-green-500 .text-white,
html[data-theme="light"] .bg-violet-500 .text-white,
html[data-theme="light"] .bg-red-500 .text-white,
html[data-theme="light"] .bg-purple-500 .text-white {
    color: #ffffff !important;
}

/* ── Pagination active page (bg-indigo-500 text-white) ── */
html[data-theme="light"] a.bg-indigo-500.text-white,
html[data-theme="light"] span.bg-indigo-500.text-white,
html[data-theme="light"] div.bg-indigo-500.text-white {
    color: #ffffff !important;
}

/* ── Inline var(--color-primary) background buttons (e.g. domain Check button) ── */
html[data-theme="light"] [style*="var(--color-primary"].text-white,
html[data-theme="light"] [style*="var(--color-primary"] .text-white {
    color: #ffffff !important;
}
/* ── Counter-rule: semi-transparent rgba(var(--color-primary-rgb), low-opacity) backgrounds
   (e.g. selected billing-cycle rows at 0.07 opacity) must keep text dark, not white.
   Excludes elements that also have a linear-gradient (those are solid-bg gradient buttons
   whose box-shadow happens to contain the same rgba() string). ── */
html[data-theme="light"] [style*="rgba(var(--color-primary-rgb)"]:not([style*="linear-gradient"]):not(.ord-cta-primary):not(.ord-cta-secondary).text-white,
html[data-theme="light"] [style*="rgba(var(--color-primary-rgb)"]:not([style*="linear-gradient"]):not(.ord-cta-primary):not(.ord-cta-secondary) .text-white:not(.ord-cta-primary):not(.ord-cta-secondary) {
    color: #0f172a !important;
}
/* ── Gradient buttons always white text ── */
html[data-theme="light"] [style*="linear-gradient(135deg, var(--color-primary)"].text-white,
html[data-theme="light"] [style*="linear-gradient(135deg, var(--color-primary)"] .text-white,
html[data-theme="light"] [style*="linear-gradient(135deg,var(--color-primary)"].text-white,
html[data-theme="light"] [style*="linear-gradient(135deg,var(--color-primary)"] .text-white,
html[data-theme="light"] [style*="linear-gradient(90deg, var(--color-primary)"].text-white,
html[data-theme="light"] [style*="linear-gradient(90deg,var(--color-primary)"].text-white,
html[data-theme="light"] .btn-primary-gradient,
html[data-theme="light"] .btn-primary-gradient .text-white {
    color: #ffffff !important;
}

/* §16 ── Compact payment method buttons (light mode) ── */
html[data-theme="light"] .text-emerald-400 {
    color: #059669 !important;
}
html[data-theme="light"] .text-indigo-300 {
    color: #4338ca !important;
}
html[data-theme="light"] .text-indigo-400\/70 {
    color: rgba(79, 70, 229, 0.7) !important;
}

/* §18 ── VPS / Server manage panel ── */
/* Spec pill chips and SSH quick-connect block use rgba(0,0,0,0.18) inner bg — becomes an
   indigo-tinted glass chip on the light canvas so it stays visually inset without going dark */
html[data-theme="light"] [style*="rgba(0,0,0,0.18)"] {
    background: rgba(var(--color-primary-rgb),0.06) !important;
    border-color: rgba(165,180,252,0.20) !important;
}
/* Opacity-variant white text used for hero-card metadata (location, "Next Due" label, days-left) */
html[data-theme="light"] .text-white\/40 { color: #94a3b8 !important; }
html[data-theme="light"] .text-white\/50 { color: #64748b !important; }
html[data-theme="light"] .text-white\/60 { color: #475569 !important; }

/* §17 ── Login modal (light mode) ── */
html[data-theme="light"] .login-modal {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) !important;
}
html[data-theme="light"] .login-modal-title {
    color: #111827 !important;
}
html[data-theme="light"] .login-modal-label {
    color: #4b5563 !important;
}
html[data-theme="light"] .login-modal-input {
    background: #f9fafb !important;
    border-color: #d1d5db !important;
    color: #111827 !important;
}
html[data-theme="light"] .login-modal-input::placeholder {
    color: #9ca3af !important;
}
html[data-theme="light"] .login-modal-input:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 2px rgba(var(--color-primary-rgb), 0.15) !important;
}

/* ── Category description rich-text rendering ──────────────────────────── */
.category-description h1 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 8px;
    line-height: 1.4;
}
.category-description h2 {
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 12px 0 6px;
}
.category-description h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #cbd5e1;
    margin: 10px 0 4px;
}
.category-description p {
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.65;
    margin: 0 0 8px;
}
.category-description ul,
.category-description ol {
    margin: 0 0 10px 0;
    padding-left: 1.25rem;
}
.category-description li {
    font-size: 0.8125rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 3px;
}
.category-description ul li {
    list-style-type: disc;
}
.category-description ol li {
    list-style-type: decimal;
}
.category-description strong, .category-description b {
    color: #e2e8f0;
    font-weight: 600;
}
.category-description blockquote {
    border-left: 3px solid rgba(99, 102, 241, 0.4);
    padding: 6px 0 6px 14px;
    margin: 0 0 10px;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 0 6px 6px 0;
}
.category-description blockquote h1,
.category-description blockquote h2,
.category-description blockquote h3 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #a5b4fc;
    margin: 0;
}
.category-description blockquote p {
    font-size: 0.8125rem;
    color: #94a3b8;
    margin: 0;
}
.category-description a {
    color: #818cf8;
    text-decoration: none;
}
.category-description a:hover {
    text-decoration: underline;
}
/* Light mode overrides */
html[data-theme="light"] .category-description h1 { color: #1e293b; }
html[data-theme="light"] .category-description h2 { color: #334155; }
html[data-theme="light"] .category-description h3 { color: #475569; }
html[data-theme="light"] .category-description p  { color: #475569; }
html[data-theme="light"] .category-description li { color: #475569; }
html[data-theme="light"] .category-description strong,
html[data-theme="light"] .category-description b  { color: #1e293b; }
html[data-theme="light"] .category-description blockquote {
    border-left-color: rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.06);
}
html[data-theme="light"] .category-description blockquote h1,
html[data-theme="light"] .category-description blockquote h2,
html[data-theme="light"] .category-description blockquote h3 {
    color: #4338ca;
}
html[data-theme="light"] .category-description blockquote p {
    color: #475569;
}

/* ═══════════════════════════════════════════════════
   Help & Support slide-in panel — dark mode base + light overrides
   =========================== */
.help-panel {
    background: rgba(8, 12, 24, 0.88);
    backdrop-filter: blur(24px) saturate(1.6);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
    border-right: 1px solid rgba(255,255,255,0.09);
    box-shadow: 6px 0 32px rgba(0,0,0,0.35), inset -1px 0 0 rgba(255,255,255,0.04);
}
.help-panel-header {
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb),0.14), rgba(var(--color-secondary-rgb),0.07));
}
.help-panel-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
}
.help-panel-footer {
    background: rgba(16,185,129,0.05);
}

/* Help panel: staggered content entry animation */
@keyframes help-item-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.help-panel.hp-anim .help-panel-header {
    animation: help-item-in 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) 0.12s both;
}
.help-panel.hp-anim .help-scroll-body {
    animation: help-item-in 0.3s ease-out 0.20s both;
}
.help-panel.hp-anim .help-panel-footer {
    animation: help-item-in 0.28s ease-out 0.30s both;
}
/* Help trigger button: glow pulse when panel is open */
@keyframes help-btn-glow {
    0%   { box-shadow: 0 0 0 0 rgba(99,102,241,0.5); }
    70%  { box-shadow: 0 0 0 6px rgba(99,102,241,0); }
    100% { box-shadow: 0 0 0 0 rgba(99,102,241,0); }
}
.help-btn-active {
    animation: help-btn-glow 1.2s ease-out 1;
}

/* Mobile: full-width panel anchored to left edge, max 18rem wide */
@media (max-width: 1023px) {
    .help-panel {
        left: 0 !important;
        width: min(18rem, 85vw) !important;
    }
}

/* Desktop: panel left tracks sidebar width via data-sb on <html> */
/* Default (expanded sidebar = 16rem) */
@media (min-width: 1024px) {
    #help-panel {
        left: 16rem;
        transition: left 300ms ease-in-out;
    }
    html[data-sb="collapsed"] #help-panel {
        left: 4rem;
    }
}

html[data-theme="light"] .help-panel {
    background: rgba(255,255,255,0.92) !important;
    backdrop-filter: blur(28px) saturate(2) !important;
    -webkit-backdrop-filter: blur(28px) saturate(2) !important;
    border-right: 1px solid rgba(165,180,252,0.28) !important;
    box-shadow: 4px 0 32px rgba(var(--color-primary-rgb),0.10) !important;
}
html[data-theme="light"] .help-panel-header {
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb),0.08), rgba(var(--color-secondary-rgb),0.05)) !important;
    border-bottom-color: rgba(165,180,252,0.22) !important;
}
html[data-theme="light"] .help-panel-card {
    background: rgba(238,242,255,0.55) !important;
    border-color: rgba(165,180,252,0.25) !important;
}
html[data-theme="light"] .help-panel-footer {
    background: rgba(5,150,105,0.06) !important;
    border-top-color: rgba(165,180,252,0.20) !important;
}
/* Restore Alpine slide transition on the help panel (suppressed by global x-show rule) */
html[data-theme="light"] .help-panel[x-show],
html[data-theme="light"] .help-panel[x-transition] {
    transition: transform 300ms ease !important;
}
/* Restore backdrop fade transition in light mode */
html[data-theme="light"] .bg-black\/20[x-show] {
    transition: opacity 200ms ease-linear !important;
}

/* ═══════════════════════════════════════════════════
   FORMBUILDER — light mode
   ═══════════════════════════════════════════════════ */
/* Checkbox & radio borders — visible on light background */
html[data-theme="light"] .formbuilder-check,
html[data-theme="light"] .formbuilder-radio {
    border-color: rgba(var(--color-primary-rgb),0.25) !important;
    background: rgba(255,255,255,0.80) !important;
}
html[data-theme="light"] .formbuilder-check:checked,
html[data-theme="light"] .formbuilder-radio:checked {
    background-color: #4f46e5 !important;
    border-color: #4f46e5 !important;
}
/* Select dropdown — legible on light */
html[data-theme="light"] select[style*="rgba(255,255,255,0.03)"] {
    background: rgba(255,255,255,0.80) !important;
    border-color: rgba(165,180,252,0.30) !important;
    color: #0f172a !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%23475569' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E") !important;
    background-position: right 0.75rem center !important;
    background-repeat: no-repeat !important;
    background-size: 1.25em 1.25em !important;
}
html[data-theme="light"] select option {
    background: #fff !important;
    color: #0f172a !important;
}
/* Required asterisk */
html[data-theme="light"] .text-red-400\/80 { color: rgba(185,28,28,0.90) !important; }

/* ═══════════════════════════════════════════════════
   AUTH MODALS (checkout login/signup) — light mode
   ═══════════════════════════════════════════════════ */
html[data-theme="light"] [style*="rgba(15,15,25,0.95)"] {
    background: rgba(255,255,255,0.95) !important;
    border-color: rgba(165,180,252,0.30) !important;
    backdrop-filter: blur(24px) saturate(2) !important;
    -webkit-backdrop-filter: blur(24px) saturate(2) !important;
    box-shadow:
        0 20px 60px rgba(var(--color-primary-rgb),0.12),
        0 4px 16px rgba(15,23,42,0.08),
        inset 0 1px 0 rgba(255,255,255,1) !important;
}
/* Modal input fields — override inline style bg+border */
html[data-theme="light"] [style*="rgba(15,15,25,0.95)"] input[type="email"],
html[data-theme="light"] [style*="rgba(15,15,25,0.95)"] input[type="password"],
html[data-theme="light"] [style*="rgba(15,15,25,0.95)"] input[type="text"] {
    background: rgba(248,250,252,0.90) !important;
    border: 1px solid rgba(148,163,184,0.35) !important;
    color: #0f172a !important;
    box-shadow: inset 0 1px 3px rgba(15,23,42,0.06) !important;
}
html[data-theme="light"] [style*="rgba(15,15,25,0.95)"] input[type="email"]:focus,
html[data-theme="light"] [style*="rgba(15,15,25,0.95)"] input[type="password"]:focus,
html[data-theme="light"] [style*="rgba(15,15,25,0.95)"] input[type="text"]:focus {
    border-color: rgba(99,102,241,0.60) !important;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12), inset 0 1px 3px rgba(15,23,42,0.04) !important;
}
html[data-theme="light"] [style*="rgba(15,15,25,0.95)"] input::placeholder {
    color: #94a3b8 !important;
}
/* Modal text overrides in light mode */
html[data-theme="light"] [style*="rgba(15,15,25,0.95)"] h2,
html[data-theme="light"] [style*="rgba(15,15,25,0.95)"] label {
    color: #0f172a !important;
}
html[data-theme="light"] [style*="rgba(15,15,25,0.95)"] .text-gray-300,
html[data-theme="light"] [style*="rgba(15,15,25,0.95)"] .text-gray-400 {
    color: #334155 !important;
}
html[data-theme="light"] [style*="rgba(15,15,25,0.95)"] .text-gray-500 {
    color: #64748b !important;
}

/* ═══════════════════════════════════════════════════
   LOGIN PAGE — split-panel dark/light fixes
   ═══════════════════════════════════════════════════ */

/* reCAPTCHA widget: scale to fit on narrow screens */
.login-right-panel .g-recaptcha {
    transform-origin: top left;
}
@media (max-width: 360px) {
    .login-right-panel .g-recaptcha {
        transform: scale(0.85);
    }
}

/* ── LEFT PANEL (always-dark brand canvas) ────────────────────────
   Both light and dark mode global rules can bleed in.
   Scope overrides for each theme to keep white text on gradient. */

/* SHARED: gradient + white text base for both themes */
.login-left-panel {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%) !important;
    color: #ffffff !important;
}
.login-left-panel h1, .login-left-panel h2, .login-left-panel h3 {
    color: #ffffff !important;
}
.login-left-panel .text-white { color: rgba(255,255,255,1)   !important; }
.login-left-panel p            { color: rgba(255,255,255,.70) !important; }
.login-left-panel a            { color: rgba(165,180,252,1)   !important; }
.login-left-panel svg          { color: inherit               !important; }
.login-left-panel .hover\:text-white:hover { color: rgba(255,255,255,.85) !important; }

/* LIGHT MODE: same rules — global light overrides are higher specificity
   so we need the [data-theme] prefix to win */
html[data-theme="light"] .login-left-panel {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%) !important;
    color: #ffffff !important;
}
html[data-theme="light"] .login-left-panel h1,
html[data-theme="light"] .login-left-panel h2,
html[data-theme="light"] .login-left-panel h3 { color: #ffffff !important; }
html[data-theme="light"] .login-left-panel .text-white { color: rgba(255,255,255,1) !important; }
html[data-theme="light"] .login-left-panel .hover\:text-white:hover { color: rgba(255,255,255,.85) !important; }
html[data-theme="light"] .login-left-panel p   { color: rgba(255,255,255,.70) !important; }
html[data-theme="light"] .login-left-panel a   { color: rgba(165,180,252,1)   !important; }
html[data-theme="light"] .login-left-panel svg { color: inherit !important; }

/* ── RIGHT PANEL — adapts to dark / light ─────────────────────────
   Dark mode: dark glass panel with light-on-dark text
   Light mode: always-white clean card                              */

/* DARK MODE (default theme) */
.login-right-panel {
    background: rgba(18, 18, 30, 0.98) !important;
    border-left: 1px solid rgba(255,255,255,.06) !important;
}
.login-right-panel h1 { color: #f1f5f9 !important; }
.login-right-panel .text-gray-900 { color: #f1f5f9 !important; }
.login-right-panel .text-gray-700 { color: #cbd5e1 !important; }
.login-right-panel .text-gray-500 { color: #94a3b8 !important; }
.login-right-panel .text-gray-400 { color: #64748b !important; }
.login-right-panel label.text-sm  { color: #cbd5e1 !important; }

/* Right panel inputs — dark mode */
.login-right-panel input[type="email"],
.login-right-panel input[type="password"],
.login-right-panel input[type="text"],
.login-right-panel input[type="tel"],
.login-right-panel input[type="date"] {
    background:              rgba(255,255,255,.06) !important;
    color:                   #f1f5f9              !important;
    border:                  1px solid rgba(255,255,255,.12) !important;
    border-radius:           12px    !important;
    backdrop-filter:         none    !important;
    -webkit-backdrop-filter: none    !important;
    box-shadow:              none    !important;
}
.login-right-panel select {
    background:   #1a1a2e !important;
    color:        #f1f5f9 !important;
    border:       1px solid rgba(255,255,255,.12) !important;
    border-radius: 12px   !important;
    box-shadow:   none    !important;
}
.login-right-panel input[type="email"]::placeholder,
.login-right-panel input[type="password"]::placeholder,
.login-right-panel input[type="text"]::placeholder,
.login-right-panel input[type="tel"]::placeholder {
    color: rgba(255,255,255,.30) !important;
    opacity: 1 !important;
}
.login-right-panel input[type="email"]:focus,
.login-right-panel input[type="password"]:focus,
.login-right-panel input[type="text"]:focus,
.login-right-panel input[type="tel"]:focus,
.login-right-panel input[type="date"]:focus,
.login-right-panel select:focus {
    background:   rgba(255,255,255,.09) !important;
    border-color: rgba(var(--color-primary-rgb), 0.60) !important;
    box-shadow:   0 0 0 3px rgba(var(--color-primary-rgb), 0.14) !important;
}
.login-right-panel select:focus { background: #1a1a2e !important; }
.login-right-panel input[type="checkbox"] {
    background:   transparent !important;
    border-color: rgba(255,255,255,.25) !important;
    width:  1rem; height: 1rem;
}
/* Divider line */
.login-right-panel .border-t { border-color: rgba(255,255,255,.08) !important; }
/* Trust badge */
.login-right-panel .text-green-500 { color: #4ade80 !important; }

/* LIGHT MODE: classic white card */
html[data-theme="light"] .login-right-panel {
    background:  #ffffff !important;
    border-left: 1px solid #f0f0f0 !important;
}
html[data-theme="light"] .login-right-panel h1               { color: #111827 !important; }
html[data-theme="light"] .login-right-panel .text-gray-900   { color: #111827 !important; }
html[data-theme="light"] .login-right-panel .text-gray-700   { color: #374151 !important; }
html[data-theme="light"] .login-right-panel .text-gray-500   { color: #6b7280 !important; }
html[data-theme="light"] .login-right-panel .text-gray-400   { color: #9ca3af !important; }
html[data-theme="light"] .login-right-panel label.text-sm    { color: #374151 !important; }
html[data-theme="light"] .login-right-panel input[type="email"],
html[data-theme="light"] .login-right-panel input[type="password"],
html[data-theme="light"] .login-right-panel input[type="text"],
html[data-theme="light"] .login-right-panel input[type="tel"],
html[data-theme="light"] .login-right-panel input[type="date"] {
    background:   #ffffff         !important;
    color:        #111827         !important;
    border:       1px solid #e5e7eb !important;
}
html[data-theme="light"] .login-right-panel select {
    background:   #ffffff         !important;
    color:        #111827         !important;
    border:       1px solid #e5e7eb !important;
}
html[data-theme="light"] .login-right-panel input[type="email"]::placeholder,
html[data-theme="light"] .login-right-panel input[type="password"]::placeholder,
html[data-theme="light"] .login-right-panel input[type="text"]::placeholder,
html[data-theme="light"] .login-right-panel input[type="tel"]::placeholder {
    color: #9ca3af !important;
}
html[data-theme="light"] .login-right-panel input[type="email"]:focus,
html[data-theme="light"] .login-right-panel input[type="password"]:focus,
html[data-theme="light"] .login-right-panel input[type="text"]:focus,
html[data-theme="light"] .login-right-panel input[type="tel"]:focus,
html[data-theme="light"] .login-right-panel input[type="date"]:focus,
html[data-theme="light"] .login-right-panel select:focus {
    background:   #ffffff !important;
    border-color: rgba(var(--color-primary-rgb), 0.60) !important;
    box-shadow:   0 0 0 3px rgba(var(--color-primary-rgb), 0.14) !important;
}
html[data-theme="light"] .login-right-panel input[type="checkbox"] {
    background:   transparent !important;
    border-color: #d1d5db     !important;
}
html[data-theme="light"] .login-right-panel .border-t     { border-color: #f0f0f0 !important; }
html[data-theme="light"] .login-right-panel .text-green-500 { color: #16a34a !important; }

/* ===========================
   Header / Nav – yoho-aligned styles
   =========================== */
/* header-bar bg handled inline, transition on light mode */
.nav-link { transition: color 0.15s, background 0.15s; }

/* Dropdown panel */
.dropdown-panel {
    background: #0d1424;
    transition: background 0.3s, border-color 0.3s;
}
.dropdown-link {
    color: #cbd5e1;
}
.dropdown-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.04);
}

/* Light mode overrides */
html[data-theme="light"] .header-bar {
    background: rgba(255,255,255,0.88) !important;
    border-bottom-color: rgba(0,0,0,0.06);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    backdrop-filter: blur(16px) saturate(1.4);
}
html[data-theme="light"] .header-bar .nav-link {
    color: #475569;
}
html[data-theme="light"] .header-bar .nav-link:hover {
    color: #1e293b;
    background: rgba(0,0,0,0.04);
}
html[data-theme="light"] .header-bar .theme-toggle-btn {
    color: #64748b;
}
html[data-theme="light"] .header-bar .theme-toggle-btn:hover {
    color: #1e293b;
    background: rgba(0,0,0,0.05);
}
html[data-theme="light"] .dropdown-panel {
    background: #fff;
    border-color: rgba(0,0,0,0.08) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06) !important;
}
html[data-theme="light"] .dropdown-link {
    color: #374151;
}
html[data-theme="light"] .dropdown-link:hover {
    color: #111827;
    background: rgba(var(--color-primary-rgb),0.06);
}
/* Icon badge tints in light mode */
html[data-theme="light"] .dropdown-panel .bg-violet-500\/10  { background: rgba(139,92,246,0.10); }
html[data-theme="light"] .dropdown-panel .bg-amber-500\/10   { background: rgba(245,158,11,0.10); }
html[data-theme="light"] .dropdown-panel .bg-emerald-500\/10 { background: rgba(16,185,129,0.10); }
html[data-theme="light"] .dropdown-panel .bg-indigo-500\/10  { background: rgba(99,102,241,0.10); }
/* Icon colours in light mode — keep them vibrant */
html[data-theme="light"] .dropdown-panel .text-violet-400  { color: #7c3aed; }
html[data-theme="light"] .dropdown-panel .text-amber-400   { color: #d97706; }
html[data-theme="light"] .dropdown-panel .text-emerald-400 { color: #059669; }
html[data-theme="light"] .dropdown-panel .text-indigo-400  { color: #4338ca; }
/* Bottom links inside panel */
html[data-theme="light"] .dropdown-panel .border-white\/\[0\.05\] { border-color: rgba(0,0,0,0.07) !important; }
html[data-theme="light"] .dropdown-panel .text-indigo-400 { color: #4338ca; }
html[data-theme="light"] .dropdown-panel .hover\:text-indigo-300:hover { color: #4f46e5; }
html[data-theme="light"] .dropdown-panel .text-gray-500 { color: #6b7280; }
html[data-theme="light"] .dropdown-panel .hover\:text-gray-300:hover { color: #374151; }
html[data-theme="light"] .dropdown-panel .hover\:bg-white\/\[0\.04\]:hover { background: rgba(0,0,0,0.04); }

/* ===========================
   Footer – yoho-aligned styles
   =========================== */
/* footer-bar background handled inline */
.footer-heading { color: #fff; }
.footer-col-title { color: #cbd5e1; }
.footer-link { color: #94a3b8; transition: color 0.15s; }
.footer-link:hover { color: #fff; }

/* Payment logos */
.payment-logo {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 0.375rem 0.625rem;
    height: 2.25rem;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.payment-logo:hover { opacity: 1; }

/* Gradient CTA button */
.btn-primary-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    box-shadow: 0 4px 14px rgba(var(--color-primary-rgb),0.35);
    color: white;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.btn-primary-gradient:hover {
    box-shadow: 0 8px 25px rgba(var(--color-primary-rgb),0.4);
    transform: translateY(-2px);
    color: white;
}

/* Outline button */
.btn-outline {
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    font-weight: 600;
    background: transparent;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.btn-outline:hover {
    border-color: rgba(var(--color-primary-rgb),0.5);
    background: rgba(var(--color-primary-rgb),0.08);
    color: white;
}

/* Light mode overrides */
html[data-theme="light"] .footer-bar {
    background: #fff !important;
    border-top-color: rgba(0,0,0,0.06);
}
html[data-theme="light"] .footer-heading { color: #1e293b; }
html[data-theme="light"] .footer-col-title { color: #334155; }
html[data-theme="light"] .footer-link { color: #64748b; }
html[data-theme="light"] .footer-link:hover { color: #1e293b; }
html[data-theme="light"] .payment-logo {
    border-color: rgba(0,0,0,0.12);
    opacity: 0.85;
}
html[data-theme="light"] .payment-logo:hover { opacity: 1; }
html[data-theme="light"] .btn-outline {
    border-color: rgba(0,0,0,0.15);
    color: #0f172a;
}
html[data-theme="light"] .btn-outline:hover {
    border-color: rgba(var(--color-primary-rgb),0.5);
    background: rgba(var(--color-primary-rgb),0.06);
    color: #4f46e5;
}
html[data-theme="light"] .btn-primary-gradient { color: #fff !important; }

/* ─── reCAPTCHA badge positioning ─────────────────────────────────────────── */
/* Lift the v3 Enterprise floating badge above the page footer / scroll bar   */
.grecaptcha-badge {
    bottom: 100px !important;
    transition: right 0.3s ease !important;
}
/* v2 inline checkbox widget — breathing room from the element above */
.g-recaptcha {
    margin-top: 0.75rem;
}

/* ===========================
   UI consistency and accessibility polish
   =========================== */

/* Consistent keyboard visibility across links, buttons, controls and custom toggles. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid rgba(var(--color-primary-rgb), 0.9);
    outline-offset: 2px;
}

/* Prevent heavy browser outlines when focus is not keyboard-driven. */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
    outline: none;
}

/* Stronger disabled affordance for readability and interaction clarity. */
button:disabled,
input:disabled,
select:disabled,
textarea:disabled,
.disabled\:opacity-40:disabled,
.disabled\:opacity-50:disabled,
.disabled\:opacity-60:disabled {
    opacity: 0.55 !important;
    cursor: not-allowed;
    filter: saturate(0.75);
}

/* Improve helper and placeholder readability on dark canvas. */
::placeholder {
    color: #94a3b8;
    opacity: 1;
}
.text-gray-600 {
    color: #94a3b8;
}

/* Keep table headers and row separation consistent across invoices/list screens. */
table {
    border-collapse: collapse;
}
table th {
    font-weight: 600;
    letter-spacing: 0.02em;
}
table th,
table td {
    vertical-align: middle;
}

/* Better error-state visibility for native or API-driven validation states. */
input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"],
input:invalid,
select:invalid,
textarea:invalid {
    border-color: rgba(239, 68, 68, 0.7) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14) !important;
}

/* Increase badge and metadata chip legibility where tiny text is used. */
.text-\[9px\],
.text-\[10px\] {
    line-height: 1.25;
}

/* Ensure long modal/card content remains scrollable on shorter viewports. */
[class*="max-h-\[90vh\]"],
[class*="max-h-\[80vh\]"] {
    overscroll-behavior: contain;
}

/* Mobile rhythm tweaks for better scanability and tap confidence. */
@media (max-width: 640px) {
    h1 {
        line-height: 1.2;
    }
    h2,
    h3 {
        line-height: 1.28;
    }
    .rounded-2xl {
        border-radius: 0.875rem;
    }
    .p-6,
    .px-6 {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    .p-6,
    .py-6 {
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
    }
}

/* Light mode: strengthen muted text and borders for WCAG-friendly contrast. */
html[data-theme="light"] .text-gray-500 {
    color: #64748b !important;
}
html[data-theme="light"] .text-gray-600 {
    color: #475569 !important;
}
html[data-theme="light"] .border-white\/10,
html[data-theme="light"] .border-white\/\[0\.08\],
html[data-theme="light"] .border-white\/\[0\.07\],
html[data-theme="light"] .border-white\/\[0\.06\],
html[data-theme="light"] .border-white\/\[0\.05\] {
    border-color: rgba(148, 163, 184, 0.34) !important;
}
html[data-theme="light"] table thead tr {
    background: rgba(248, 250, 252, 0.92) !important;
}
html[data-theme="light"] table tbody tr:hover {
    background: rgba(var(--color-primary-rgb), 0.045) !important;
}

/* ═══════════════════════════════════════════════════════════════
   PASSWORD GENERATOR MODAL — dark-surface overrides for light mode
   The modal panel always uses a hardcoded dark gradient background,
   so all its child text/border tokens must stay in their dark-theme
   values regardless of the active colour-scheme.
   ═══════════════════════════════════════════════════════════════ */

/* 1. Restore open/close fade transition (the global [x-show] rule
      sets transition:none on all Alpine x-show elements in light mode) */
html[data-theme="light"] .pwd-gen-modal[x-show] {
    transition: opacity 0.2s ease-out !important;
}

/* 2. Headings & white text — keep white on dark panel */
html[data-theme="light"] .pwd-gen-modal-panel .text-white,
html[data-theme="light"] .pwd-gen-modal-panel h3 {
    color: #ffffff !important;
    letter-spacing: inherit;
}

/* 3. Body / button text */
html[data-theme="light"] .pwd-gen-modal-panel .text-gray-100,
html[data-theme="light"] .pwd-gen-modal-panel .text-gray-200 { color: #f1f5f9 !important; }
html[data-theme="light"] .pwd-gen-modal-panel .text-gray-300  { color: #cbd5e1 !important; }
html[data-theme="light"] .pwd-gen-modal-panel .text-gray-400  { color: #94a3b8 !important; }
html[data-theme="light"] .pwd-gen-modal-panel .text-gray-500  { color: #64748b !important; }

/* 4. Monospace input (generated password) */
html[data-theme="light"] .pwd-gen-modal-panel .font-mono  { color: #f1f5f9 !important; }
html[data-theme="light"] .pwd-gen-modal-panel input       { color: #ffffff  !important; }

/* 5. Hover states inside the panel */
html[data-theme="light"] .pwd-gen-modal-panel .hover\:text-gray-300:hover { color: #e2e8f0 !important; }

/* 6. "Copied!" success state — emerald on dark panel */
html[data-theme="light"] .pwd-gen-modal-panel .text-emerald-300 { color: #6ee7b7 !important; }

/* 7. Toast — dark-green background with light emerald text */
html[data-theme="light"] .pwd-gen-modal .text-emerald-300 { color: #6ee7b7 !important; }

/* 8. Borders — keep white-tinted dividers readable against dark bg */
html[data-theme="light"] .pwd-gen-modal-panel .border-white\/\[0\.08\]  { border-color: rgba(255,255,255,0.10) !important; }
html[data-theme="light"] .pwd-gen-modal-panel .border-white\/\[0\.12\]  { border-color: rgba(255,255,255,0.16) !important; }
html[data-theme="light"] .pwd-gen-modal-panel .border-white\/\[0\.15\]  { border-color: rgba(255,255,255,0.22) !important; }

/* 9. Input / button tile backgrounds — keep subtle white-glass on dark panel */
html[data-theme="light"] .pwd-gen-modal-panel .bg-white\/\[0\.06\]  { background: rgba(255,255,255,0.07) !important; }
html[data-theme="light"] .pwd-gen-modal-panel .bg-white\/\[0\.10\]  { background: rgba(255,255,255,0.11) !important; }
html[data-theme="light"] .pwd-gen-modal-panel .hover\:bg-white\/\[0\.10\]:hover {
    background: rgba(255,255,255,0.11) !important;
}

/* ============================================================
   SUPPORT TICKETS LIST PAGE  (.st-*)
   Dark-mode base + light-mode overrides
   ============================================================ */

/* ── Stats bar ── */
.st-stats-bar {
    background: #16162a;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 1px 6px rgba(0,0,0,0.14);
}
.st-stats-dividers { divide-x: 0; }
.st-stats-bar > .st-stats-dividers > div + div {
    border-left: 1px solid rgba(255,255,255,0.05);
}
.st-stat-label { font-size: 0.7rem; color: #6b7280; margin-bottom: 0.15rem; text-transform: uppercase; letter-spacing: 0.04em; }
.st-stat-value { font-size: 1.5rem; font-weight: 700; color: #f1f5f9; line-height: 1.15; }

/* ── Need Assistance notice ── */
.st-notice {
    background: rgba(var(--color-primary-rgb), 0.05);
    border-left: 3px solid rgba(var(--color-primary-rgb), 0.35);
    border-radius: 0.75rem;
}
.st-notice-icon { color: var(--color-primary); opacity: 0.8; }
.st-notice-text { color: #9ca3af; }
.st-notice-strong { color: #cbd5e1; font-weight: 600; }

/* ── Search bar ── */
.st-search-bar {
    background: #16162a;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}
.st-search-icon { color: #4b5563; }
.st-search-input { color: #e2e8f0; }
.st-search-input::placeholder { color: #4b5563; }
.st-filter-btn {
    background: #16162a;
    border: 1px solid rgba(255,255,255,0.05);
    color: #9ca3af;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}
.st-filter-btn:hover { color: #e2e8f0; }

/* ── Tabs + ticket list card ── */
.st-list-card {
    background: #16162a;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 2px 10px rgba(0,0,0,0.14);
}
.st-tab-bar {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.st-tab-dividers > button + button {
    border-left: 1px solid rgba(255,255,255,0.04);
}
.st-tab-active { color: #f1f5f9; font-weight: 600; box-shadow: inset 0 -2px 0 var(--color-primary); }
.st-tab-inactive { color: #6b7280; }
.st-tab-inactive:hover { color: #cbd5e1; }

/* ── Ticket rows ── */
.st-ticket-list {}
.st-ticket-row + .st-ticket-row {
    border-top: 1px solid rgba(255,255,255,0.04);
}
.st-ticket-row:hover { background: rgba(255,255,255,0.02); }
.st-ticket-subject { color: #e2e8f0; }
.st-ticket-row:hover .st-ticket-subject { color: #fff; }
.st-ticket-id { color: #6b7280; }
.st-ticket-time { color: #4b5563; }
.st-dot-closed { background: #374151; }

/* ── Light-mode overrides ── */
html[data-theme="light"] .st-stats-bar {
    background: #ffffff;
    border-color: #f1f5f9;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
html[data-theme="light"] .st-stats-bar > .st-stats-dividers > div + div { border-color: #f1f5f9; }
html[data-theme="light"] .st-stat-label { color: #9ca3af; }
html[data-theme="light"] .st-stat-value { color: #111827 !important; }

html[data-theme="light"] .st-notice {
    background: rgba(var(--color-primary-rgb), 0.04);
    border-left-color: rgba(var(--color-primary-rgb), 0.30);
}
html[data-theme="light"] .st-notice-text { color: #6b7280; }
html[data-theme="light"] .st-notice-strong { color: #374151; }

html[data-theme="light"] .st-search-bar {
    background: #ffffff;
    border-color: #f1f5f9;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
html[data-theme="light"] .st-search-icon { color: #9ca3af; }
html[data-theme="light"] .st-search-input { color: #111827; }
html[data-theme="light"] .st-search-input::placeholder { color: #9ca3af; }
html[data-theme="light"] .st-filter-btn {
    background: #ffffff;
    border-color: #f1f5f9;
    color: #6b7280;
}
html[data-theme="light"] .st-filter-btn:hover { color: #111827; background: #f8fafc; }

html[data-theme="light"] .st-list-card {
    background: #ffffff;
    border-color: #f1f5f9;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}
html[data-theme="light"] .st-tab-bar { border-color: #f1f5f9; }
html[data-theme="light"] .st-tab-dividers > button + button { border-color: #f1f5f9; }
html[data-theme="light"] .st-tab-active { color: #111827; }
html[data-theme="light"] .st-tab-inactive { color: #9ca3af; }
html[data-theme="light"] .st-tab-inactive:hover { color: #374151; }
html[data-theme="light"] .st-ticket-row + .st-ticket-row { border-color: #f8fafc; }
html[data-theme="light"] .st-ticket-row:hover { background: #fafbfc; }
html[data-theme="light"] .st-ticket-subject { color: #1e293b !important; }
html[data-theme="light"] .st-ticket-row:hover .st-ticket-subject { color: #0f172a !important; }
html[data-theme="light"] .st-ticket-id { color: #9ca3af !important; }
html[data-theme="light"] .st-ticket-time { color: #9ca3af !important; }
html[data-theme="light"] .st-dot-closed { background: #d1d5db; }

/* ============================================================
   SUPPORT TICKET PAGE  (.ticket-* / .ctm-*)
   Dark-mode base + light-mode overrides
   ============================================================ */

/* ── Title bar ── */
.ticket-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}
.ticket-title-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin: 0;
}
.ticket-manage-btn {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #ffffff !important;
    transition: background 0.15s;
    flex-shrink: 0;
}
.ticket-manage-btn:hover { background: rgba(255,255,255,0.25); }
html[data-theme="light"] .ticket-manage-btn { color: #ffffff !important; }
.ticket-manage-dropdown {
    background: #1e1e2e;
    border: 1px solid rgba(255,255,255,0.08);
}
.ticket-manage-dropdown a,
.ticket-manage-dropdown button {
    color: #c4c4d4;
}
.ticket-manage-dropdown a:hover,
.ticket-manage-dropdown button:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

/* ── Layout ── */
.ticket-detail-view {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}
.ticket-sidebar { width: 280px; }

/* ── Mobile: stack columns vertically ── */
@media (max-width: 767px) {
    .ticket-detail-view {
        flex-direction: column;
    }
    .ticket-sidebar {
        width: 100%;
        order: -1; /* show details card above reply/messages on mobile */
    }
    .ticket-title-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .ticket-manage-dropdown {
        right: auto;
        left: 0;
    }
}

/* ── Cards ── */
.ticket-card {
    background: #16162a;
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

/* ── Reply textarea ── */
.ticket-textarea {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    color: #e2e8f0;
    font-family: inherit;
}
.ticket-textarea::placeholder { color: #6b7280; }
.ticket-textarea:focus {
    border-color: rgba(var(--color-primary-rgb), 0.5);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.12);
}

/* ── Tab bar ── */
.ticket-tab-bar {
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.ticket-tab-active {
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.06);
}
.ticket-tab-inactive { color: #9ca3af; }
.ticket-tab-inactive:hover { color: #e2e8f0; background: rgba(255,255,255,0.04); }
.ticket-tab-border { border-left: 1px solid rgba(255,255,255,0.07); }

/* ── Message thread ── */
.ticket-messages {}
.ticket-message-row + .ticket-message-row {
    border-top: 1px solid rgba(255,255,255,0.05);
}
.ticket-avatar { background: rgba(var(--color-primary-rgb), 0.18); color: var(--color-primary); }
.ticket-avatar[data-staff="1"] { background: rgba(16,185,129,0.18); color: #10b981; }
.ticket-msg-name { color: #f1f5f9; }
.ticket-msg-badge {
    background: rgba(16,185,129,0.15);
    color: #34d399;
    border: 1px solid rgba(16,185,129,0.25);
}
.ticket-msg-time { color: #6b7280; }
.ticket-msg-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
}
.ticket-msg-body { color: #cbd5e1; }
.ticket-msg-body p { margin: 0 0 0.5rem; }
.ticket-msg-body p:last-child { margin-bottom: 0; }

/* ── Ticket details sidebar ── */
.ticket-detail-header { background: transparent; }
.ticket-detail-header:hover { background: rgba(255,255,255,0.03); }
.ticket-detail-header-open { border-bottom: 1px solid rgba(255,255,255,0.07); }
.ticket-details-rows {}
.ticket-detail-row + .ticket-detail-row {
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ── Close Ticket modal (.ctm-*) ── */
.ctm-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.ctm-card {
    background: #1e1e2e;
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 1.25rem;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
    padding: 2rem 2rem 1.75rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
}
.ctm-icon-wrap {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: rgba(var(--color-primary-rgb), 0.15);
    border: 1px solid rgba(var(--color-primary-rgb), 0.30);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}
.ctm-icon { width: 1.75rem; height: 1.75rem; color: var(--color-primary); }
.ctm-title { font-size: 1.1rem; font-weight: 700; color: #f1f5f9; margin: 0 0 0.5rem; }
.ctm-desc  { font-size: 0.875rem; color: #9ca3af; margin: 0 0 1.5rem; line-height: 1.6; }
.ctm-actions { display: flex; gap: 0.75rem; justify-content: center; }
.ctm-btn-cancel {
    flex: 1;
    padding: 0.6rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: #cbd5e1;
    transition: all 0.15s;
    cursor: pointer;
}
.ctm-btn-cancel:hover { background: rgba(255,255,255,0.10); color: #fff; }
.ctm-btn-confirm {
    flex: 1;
    padding: 0.6rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: opacity 0.15s;
    cursor: pointer;
}
.ctm-btn-confirm:hover { opacity: 0.88; }
.ctm-btn-confirm:disabled { opacity: 0.55; cursor: not-allowed; }

/* ── Light-mode overrides ── */
html[data-theme="light"] .ticket-title-text { color: #ffffff !important; }
html[data-theme="light"] .ticket-manage-dropdown {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}
html[data-theme="light"] .ticket-manage-dropdown a,
html[data-theme="light"] .ticket-manage-dropdown button { color: #374151; }
html[data-theme="light"] .ticket-manage-dropdown a:hover,
html[data-theme="light"] .ticket-manage-dropdown button:hover {
    background: #f8fafc;
    color: #111827;
}
html[data-theme="light"] .ticket-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
html[data-theme="light"] .ticket-textarea {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #111827;
}
html[data-theme="light"] .ticket-textarea:focus {
    border-color: rgba(var(--color-primary-rgb), 0.5);
    background: #fff;
}
html[data-theme="light"] .ticket-tab-bar { border-color: #e2e8f0; }
html[data-theme="light"] .ticket-tab-inactive { color: #6b7280; }
html[data-theme="light"] .ticket-tab-inactive:hover { color: #111827; background: #f8fafc; }
html[data-theme="light"] .ticket-tab-border { border-color: #e2e8f0; }
html[data-theme="light"] .ticket-message-row + .ticket-message-row { border-color: #f1f5f9; }
html[data-theme="light"] .ticket-avatar { background: rgba(var(--color-primary-rgb),0.10); }
html[data-theme="light"] .ticket-msg-name { color: #111827 !important; }
html[data-theme="light"] .ticket-msg-time { color: #9ca3af !important; }
html[data-theme="light"] .ticket-msg-card { background: #f8fafc; border-color: #e9ecef; }
html[data-theme="light"] .ticket-msg-body { color: #374151 !important; }
html[data-theme="light"] .ticket-detail-header:hover { background: #f8fafc; }
html[data-theme="light"] .ticket-detail-header-open { border-color: #e2e8f0; }
html[data-theme="light"] .ticket-detail-row + .ticket-detail-row { border-color: #f1f5f9; }
html[data-theme="light"] .ctm-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 24px 60px rgba(0,0,0,0.15);
}
html[data-theme="light"] .ctm-title { color: #111827; }
html[data-theme="light"] .ctm-desc  { color: #6b7280; }
html[data-theme="light"] .ctm-btn-cancel {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #374151;
}
html[data-theme="light"] .ctm-btn-cancel:hover { background: #e2e8f0; color: #111827; }

/* ═══════════════════════════════════════════════════
   STITCH EXACT MATCH — additional light-mode polishes
   ═══════════════════════════════════════════════════ */

/* 1. DASHBOARD CARD SHADOWS
   Stitch uses shadow-[0_4px_20px_rgba(0,0,0,0.02)].
   Our templates use rgba(0,0,0,0.12) which is far too dark on light canvas.
   Target all dashboard/content cards in light mode. */
html[data-theme="light"] .rounded-xl.border.overflow-hidden,
html[data-theme="light"] a.rounded-xl.border,
html[data-theme="light"] .group.rounded-xl.border {
    box-shadow: 0 4px 20px rgba(0,0,0,0.02) !important;
}

/* 2. NAV INACTIVE HOVER — TEXT SHOULD BE PRIMARY (Stitch: hover:text-primary)
   Currently hover:text-white → #1e1b4b via global rule. Override to primary in sidebar/header. */
html[data-theme="light"] #sidebar nav a.hover\:text-white:hover,
html[data-theme="light"] #sidebar nav button.hover\:text-white:hover,
html[data-theme="light"] #sidebar .hover\:text-white:hover:not(.login-left-panel):not(.help-panel) {
    color: var(--color-primary) !important;
}
html[data-theme="light"] header .hover\:text-white:hover {
    color: var(--color-primary) !important;
}

/* 3. ACTIVE SIDEBAR NAV — STITCH LEFT-BORDER ACCENT
   Stitch: background #f5f3ff, left border 3px solid primary, no all-around border.
   Our templates use bg-indigo-500/20 + border border-indigo-500/30 (all sides). */
html[data-theme="light"] #sidebar a.border-indigo-500\/30,
html[data-theme="light"] #sidebar button.border-indigo-500\/30 {
    background-color: #f5f3ff !important;
    border-width: 0 !important;
    border-left: 3px solid var(--color-primary) !important;
    border-radius: 0 0.5rem 0.5rem 0 !important;
    padding-left: 10px !important;
    color: var(--color-primary) !important;
}
html[data-theme="light"] #sidebar a.border-indigo-500\/30 svg,
html[data-theme="light"] #sidebar button.border-indigo-500\/30 svg,
html[data-theme="light"] #sidebar a.border-indigo-500\/30 .text-indigo-400,
html[data-theme="light"] #sidebar button.border-indigo-500\/30 .text-indigo-400 {
    color: var(--color-primary) !important;
}
/* Sub-nav active items */
html[data-theme="light"] #sidebar .ml-4 a.text-indigo-400 {
    color: var(--color-primary) !important;
    background: rgba(var(--color-primary-rgb), 0.07) !important;
}

/* 4. SIDEBAR SECTION LABELS ("Account" etc.) — Stitch: text-slate-400 = #94a3b8 */
html[data-theme="light"] #sidebar nav .text-gray-600.uppercase,
html[data-theme="light"] #sidebar .text-xs.font-semibold.text-gray-600.uppercase {
    color: #94a3b8 !important;
}

/* 5. SIDEBAR NAV HOVER BACKGROUND — Stitch: hover:bg-surface-container-low = #f5f3ff */
html[data-theme="light"] #sidebar nav a.hover\:bg-white\/5:hover,
html[data-theme="light"] #sidebar nav button.hover\:bg-white\/5:hover {
    background: #f5f3ff !important;
}

/* 6. SIDEBAR FOOTER AREA — Stitch: bg-slate-50/50 */
html[data-theme="light"] #sidebar > div.border-t {
    background-color: rgba(248, 250, 252, 0.5) !important;
}

/* 7. SIDEBAR FOOTER HELP BUTTON — Stitch: text-slate-500 hover:text-primary */
html[data-theme="light"] #sidebar .help-btn,
html[data-theme="light"] #sidebar [title="Help & Support"] {
    color: #64748b !important;
}
html[data-theme="light"] #sidebar [title="Help & Support"]:hover {
    color: var(--color-primary) !important;
    background: #f5f3ff !important;
}

/* 8. HEADER ICON BUTTONS — Stitch: text-outline hover:bg-surface-container-low hover:text-primary */
html[data-theme="light"] header a.hover\:text-white:hover,
html[data-theme="light"] header button.hover\:text-white:hover {
    color: var(--color-primary) !important;
}
html[data-theme="light"] header .hover\:bg-white\/5:hover {
    background: #f5f3ff !important;
}

/* 9. DASHBOARD STAT CARD ICON BG — Stitch: bg-surface-container = #eef2ff */
html[data-theme="light"] .bg-white\/\[0\.06\] {
    background: #eef2ff !important;
}

/* 10. INVOICE TABLE DIVIDERS — Stitch: divide-slate-100 = #f1f5f9 */
html[data-theme="light"] .divide-white\/\[0\.05\] > * + * {
    border-color: #f1f5f9 !important;
}

/* 11. TABLE SECTION HEADER — Stitch: bg-slate-50/50 */
html[data-theme="light"] .bg-white\/\[0\.02\] {
    background: rgba(248, 250, 252, 0.5) !important;
}

/* 12. TICKET FOOTER IN DASHBOARD — Stitch: bg-slate-50/50 border-slate-100 */
html[data-theme="light"] .border-t.border-white\/\[0\.06\].bg-white\/\[0\.02\] {
    background: rgba(248, 250, 252, 0.5) !important;
    border-color: #f1f5f9 !important;
}

/* 13. TICKET CARD BORDERS IN DASHBOARD — Stitch: border-slate-100 */
html[data-theme="light"] .border-white\/\[0\.07\] {
    border-color: #e2e8f0 !important;
}

/* 14. TICKET HOVER IN DASHBOARD — Stitch: hover:bg-surface-container-low */
html[data-theme="light"] a.hover\:bg-white\/\[0\.03\]:hover {
    background: #f5f3ff !important;
}

/* 15. "OPEN NEW TICKET" BUTTON — Stitch: clean white border slate button */
html[data-theme="light"] .border-white\/\[0\.08\].hover\:border-indigo-500\/25 {
    border-color: #e2e8f0 !important;
    color: #374151 !important;
    background: #ffffff !important;
}
html[data-theme="light"] .border-white\/\[0\.08\].hover\:border-indigo-500\/25:hover {
    border-color: rgba(var(--color-primary-rgb), 0.30) !important;
    color: var(--color-primary) !important;
}

/* 16. ACTIVE SERVICES SECTION HEADER */
html[data-theme="light"] .bg-white\/\[0\.04\] .border-b.border-white\/\[0\.06\].bg-white\/\[0\.02\],
html[data-theme="light"] .overflow-hidden .border-b.border-white\/\[0\.06\].flex.items-center {
    background: #ffffff !important;
    border-bottom-color: #e2e8f0 !important;
}

/* 17. SIDEBAR COLLAPSE TOGGLE — Match Stitch's sidebar-collapse-btn */
html[data-theme="light"] #sidebar-toggle {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #94a3b8 !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
}
html[data-theme="light"] #sidebar-toggle:hover {
    color: var(--color-primary) !important;
    border-color: rgba(var(--color-primary-rgb), 0.35) !important;
    background: #f5f3ff !important;
}

/* 18. STITCH ACTIVE-SERVICES DIVIDERS — between categories */
html[data-theme="light"] .mx-6.h-px.bg-white\/\[0\.06\] {
    background-color: #f1f5f9 !important;
}

/* 19. ACTIVE-SERVICES CATEGORY ACCORDION HOVER */
html[data-theme="light"] .hover\:bg-white\/\[0\.02\]:hover {
    background: rgba(248, 250, 252, 0.8) !important;
}

/* 20. SERVICE MANAGE BUTTON */
html[data-theme="light"] .dashboard-btn-manage {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #374151 !important;
}
html[data-theme="light"] .dashboard-btn-manage:hover {
    border-color: rgba(var(--color-primary-rgb), 0.30) !important;
    color: var(--color-primary) !important;
    background: #f5f3ff !important;
}

/* 21. FOOTER PORTAL LINKS — Stitch: text-link style */
html[data-theme="light"] footer nav a.hover\:text-gray-300 {
    color: #64748b !important;
}
html[data-theme="light"] footer nav a.hover\:text-gray-300:hover {
    color: var(--color-primary) !important;
    background: rgba(var(--color-primary-rgb), 0.05) !important;
}

/* 22. NOTIFICATION BADGE — keep white text on gradient bg */
html[data-theme="light"] #cart-badge-topbar {
    color: #ffffff !important;
}

/* 23. STITCH FONT: Use Inter for clean light appearance */
html[data-theme="light"] body {
    font-family: 'Inter', system-ui, ui-sans-serif, sans-serif;
}

/* ═══════════════════════════════════════════════════════════════
   DARK MODE OVERRIDES
   Templates are now light-first (white/slate hardcoded). These
   html[data-theme="dark"] rules restore the original dark design.
   ═══════════════════════════════════════════════════════════════ */

/* ── BASE ── */
html[data-theme="dark"] body {
    background-color: #030712 !important;
    color: #ffffff !important;
}

/* ── LAYOUT SHELL ── */
html[data-theme="dark"] .bg-\[\#f8faff\],
html[data-theme="dark"] .bg-\[\#f8f9ff\] {
    background-color: #030712 !important;
}

/* ── SIDEBAR ── */
html[data-theme="dark"] #sidebar {
    background-color: #0a0f1e !important;
    border-right-color: rgba(255,255,255,0.05) !important;
}
/* Logo row border */
html[data-theme="dark"] #sidebar > div:first-child,
html[data-theme="dark"] #sidebar .border-b.border-slate-200 {
    border-bottom-color: rgba(255,255,255,0.05) !important;
}
/* Active nav indicator — restore dark mode style */
html[data-theme="dark"] #sidebar nav a.bg-\[\#f5f3ff\],
html[data-theme="dark"] #sidebar nav button.bg-\[\#f5f3ff\],
html[data-theme="dark"] #sidebar nav div.bg-\[\#f5f3ff\] {
    background-color: rgba(99,102,241,0.15) !important;
    color: #a5b4fc !important;
    border-left-color: rgba(99,102,241,0.6) !important;
}
/* All nav links — inactive */
html[data-theme="dark"] #sidebar nav a.text-slate-500,
html[data-theme="dark"] #sidebar nav button.text-slate-500 {
    color: #9ca3af !important;
}
html[data-theme="dark"] #sidebar nav a.hover\:bg-\[\#f5f3ff\]:hover,
html[data-theme="dark"] #sidebar nav button.hover\:bg-\[\#f5f3ff\]:hover {
    background-color: rgba(255,255,255,0.05) !important;
    color: #ffffff !important;
}
/* Sub-nav left border */
html[data-theme="dark"] #sidebar .border-l.border-slate-200 {
    border-left-color: rgba(255,255,255,0.10) !important;
}
/* Sub-nav items */
html[data-theme="dark"] #sidebar .ml-4 a.hover\:text-\[\#6366f1\]:hover,
html[data-theme="dark"] #sidebar .ml-4 a.text-slate-400 {
    color: #6b7280 !important;
}
html[data-theme="dark"] #sidebar .ml-4 a.hover\:text-\[\#6366f1\]:hover {
    color: #ffffff !important;
    background-color: rgba(255,255,255,0.05) !important;
}
/* Section labels ("Account") */
html[data-theme="dark"] #sidebar .text-slate-400.uppercase {
    color: #6b7280 !important;
}
html[data-theme="dark"] #sidebar .border-t.border-slate-100 {
    border-top-color: rgba(255,255,255,0.05) !important;
}
/* Help button */
html[data-theme="dark"] #sidebar .text-slate-500.hover\:bg-\[\#f5f3ff\] {
    color: #9ca3af !important;
}
html[data-theme="dark"] #sidebar .text-slate-500.hover\:bg-\[\#f5f3ff\]:hover {
    background-color: rgba(255,255,255,0.05) !important;
    color: #ffffff !important;
}
/* Sidebar footer */
html[data-theme="dark"] #sidebar > div.border-t.border-slate-100,
html[data-theme="dark"] #sidebar > div.border-t {
    border-top-color: rgba(255,255,255,0.05) !important;
    background-color: transparent !important;
}
/* Sidebar footer user name — restore white in dark mode */
html[data-theme="dark"] #sidebar .text-slate-900 {
    color: #ffffff !important;
}
html[data-theme="dark"] #sidebar .text-slate-500 {
    color: #6b7280 !important;
}
/* Avatar status badge border */
html[data-theme="dark"] #sidebar .border-white.bg-emerald-500 {
    border-color: #030712 !important;
}
/* Sidebar toggle pill */
html[data-theme="dark"] #sidebar-toggle {
    background-color: #0f172a !important;
    border-color: rgba(255,255,255,0.08) !important;
    color: #9ca3af !important;
    box-shadow: none !important;
}
html[data-theme="dark"] #sidebar-toggle:hover {
    background-color: rgba(255,255,255,0.05) !important;
    border-color: rgba(99,102,241,0.30) !important;
    color: #a5b4fc !important;
}

/* ── HEADER ── */
html[data-theme="dark"] header.bg-white {
    background-color: rgba(3,7,18,0.80) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom-color: rgba(255,255,255,0.05) !important;
}
html[data-theme="dark"] header .border-slate-200 {
    border-color: rgba(255,255,255,0.05) !important;
}
html[data-theme="dark"] header h1.text-slate-900 {
    color: #ffffff !important;
}
/* Header icon buttons */
html[data-theme="dark"] header .text-slate-400 {
    color: #9ca3af !important;
}
html[data-theme="dark"] header .text-slate-800 {
    color: #f1f5f9 !important;
}
html[data-theme="dark"] header .hover\:text-\[\#6366f1\]:hover {
    color: #ffffff !important;
}
html[data-theme="dark"] header .hover\:bg-\[\#f5f3ff\]:hover {
    background-color: rgba(255,255,255,0.05) !important;
}
/* Currency badge */
html[data-theme="dark"] header .text-slate-500 {
    color: #6b7280 !important;
}
/* Account dropdown name span */
html[data-theme="dark"] header .text-slate-500.max-w-\[72px\] {
    color: #d1d5db !important;
}

/* ── ACCOUNT DROPDOWN ── */
html[data-theme="dark"] header .absolute.bg-white.border-slate-200 {
    background-color: #0d1424 !important;
    border-color: rgba(255,255,255,0.08) !important;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.60) !important;
}
html[data-theme="dark"] header .absolute.bg-white .border-b.border-slate-100 {
    border-bottom-color: rgba(255,255,255,0.06) !important;
}
html[data-theme="dark"] header .absolute.bg-white p.text-slate-900 {
    color: #ffffff !important;
}
html[data-theme="dark"] header .absolute.bg-white p.text-slate-400 {
    color: #6b7280 !important;
}
html[data-theme="dark"] header .absolute.bg-white a.text-slate-600,
html[data-theme="dark"] header .absolute.bg-white button.text-slate-600 {
    color: #d1d5db !important;
}
html[data-theme="dark"] header .absolute.bg-white a.hover\:text-\[\#6366f1\]:hover {
    color: #ffffff !important;
    background-color: rgba(255,255,255,0.04) !important;
}
html[data-theme="dark"] header .absolute.bg-white .border-t.border-slate-100 {
    border-top-color: rgba(255,255,255,0.06) !important;
}
html[data-theme="dark"] header .absolute.bg-white a.text-red-500 {
    color: #f87171 !important;
}
html[data-theme="dark"] header .absolute.bg-white a.text-red-500:hover {
    color: #fca5a5 !important;
    background-color: rgba(255,255,255,0.04) !important;
}
/* Currency dropdown */
html[data-theme="dark"] header .absolute.bg-white.border-slate-200.w-44 {
    background-color: #0d1424 !important;
    border-color: rgba(255,255,255,0.08) !important;
}
html[data-theme="dark"] header .absolute .text-gray-600.uppercase {
    color: #4b5563 !important;
}
html[data-theme="dark"] header .absolute button.text-slate-600 {
    color: #9ca3af !important;
}
html[data-theme="dark"] header .absolute button.text-slate-600:hover {
    color: #ffffff !important;
    background-color: rgba(255,255,255,0.04) !important;
}

/* ── FOOTER ── */
html[data-theme="dark"] footer.border-t.border-slate-100 {
    border-top-color: rgba(255,255,255,0.05) !important;
}
html[data-theme="dark"] footer .text-slate-400 {
    color: #4b5563 !important;
}
html[data-theme="dark"] footer a.hover\:text-\[\#6366f1\]:hover {
    color: #d1d5db !important;
    background-color: rgba(255,255,255,0.04) !important;
}
html[data-theme="dark"] footer .text-slate-200 {
    color: rgba(255,255,255,0.10) !important;
}

/* ── MAIN CONTENT AREA ── */
html[data-theme="dark"] main {
    background-color: transparent !important;
}

/* ── DASHBOARD: GREETING ── */
html[data-theme="dark"] h2.text-slate-900 {
    color: #ffffff !important;
}
html[data-theme="dark"] .text-slate-500 {
    color: #6b7280 !important;
}

/* ── DASHBOARD: STAT CARDS ── */
html[data-theme="dark"] a.rounded-lg.bg-white.border-slate-200,
html[data-theme="dark"] div.rounded-lg.bg-white.border-slate-200 {
    background-color: rgba(255,255,255,0.04) !important;
    border-color: rgba(255,255,255,0.08) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12) !important;
}
html[data-theme="dark"] a.rounded-lg.bg-white.border-slate-200:hover,
html[data-theme="dark"] div.rounded-lg.bg-white.border-slate-200:hover {
    background-color: rgba(255,255,255,0.06) !important;
    border-color: rgba(99,102,241,0.30) !important;
}
/* Stat card icon bg */
html[data-theme="dark"] .bg-\[\#eef2ff\].border-indigo-100 {
    background-color: rgba(255,255,255,0.06) !important;
    border-color: rgba(255,255,255,0.08) !important;
}
html[data-theme="dark"] .bg-\[\#eef2ff\].border-indigo-100 svg {
    color: #818cf8 !important;
}
/* Stat card icon container (bg-surface-container = #e5eeff in light mode) */
html[data-theme="dark"] .bg-surface-container {
    background-color: rgba(99,102,241,0.12) !important;
}
/* Card stat labels */
html[data-theme="dark"] .text-slate-400.uppercase {
    color: #6b7280 !important;
}
html[data-theme="dark"] p.text-slate-900.tabular-nums,
html[data-theme="dark"] p.text-slate-900 {
    color: #ffffff !important;
}

/* ── DASHBOARD: RECENT INVOICES ── */
html[data-theme="dark"] .rounded-lg.bg-white.border-slate-200.overflow-hidden {
    background-color: rgba(255,255,255,0.04) !important;
    border-color: rgba(255,255,255,0.08) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12) !important;
}
html[data-theme="dark"] .border-b.border-slate-100 {
    border-bottom-color: rgba(255,255,255,0.06) !important;
}
html[data-theme="dark"] h3.text-slate-900 {
    color: #ffffff !important;
}
html[data-theme="dark"] h4.text-slate-900 {
    color: #ffffff !important;
}
html[data-theme="dark"] a.text-indigo-500.hover\:text-indigo-600 {
    color: #818cf8 !important;
}
html[data-theme="dark"] a.text-indigo-500.hover\:text-indigo-600:hover {
    color: #a5b4fc !important;
}
/* Table head */
html[data-theme="dark"] thead.bg-slate-50,
html[data-theme="dark"] thead.bg-slate-50\/50,
html[data-theme="dark"] thead .bg-slate-50 {
    background-color: rgba(255,255,255,0.02) !important;
}
html[data-theme="dark"] th.text-slate-400 {
    color: #6b7280 !important;
}
/* Table body */
html[data-theme="dark"] tbody.divide-y.divide-slate-100 > tr + tr {
    border-top-color: rgba(255,255,255,0.05) !important;
}
html[data-theme="dark"] tr.hover\:bg-slate-50\/70:hover {
    background-color: rgba(255,255,255,0.02) !important;
}
html[data-theme="dark"] td a.text-slate-900 {
    color: #ffffff !important;
}
html[data-theme="dark"] td a.text-slate-900:hover {
    color: #818cf8 !important;
}
html[data-theme="dark"] td.text-slate-900,
html[data-theme="dark"] td p.text-slate-900 {
    color: #ffffff !important;
}
html[data-theme="dark"] td.text-slate-400 {
    color: #6b7280 !important;
}
html[data-theme="dark"] span.bg-slate-100.text-slate-500 {
    background-color: rgba(255,255,255,0.07) !important;
    color: #9ca3af !important;
}
html[data-theme="dark"] td a.text-slate-400 {
    color: #6b7280 !important;
}
html[data-theme="dark"] td a.text-slate-400:hover,
html[data-theme="dark"] td a.hover\:text-indigo-500:hover {
    color: #818cf8 !important;
}
html[data-theme="dark"] .text-slate-400.text-sm.mb-3,
html[data-theme="dark"] .text-slate-400.text-sm {
    color: #4b5563 !important;
}

/* ── EMAILS & NEWS CARDS ── */
html[data-theme="dark"] .bg-slate-50\/50 {
    background-color: rgba(255,255,255,0.02) !important;
}
/* Section labels now use text-slate-900 in light mode — dark mode override */
html[data-theme="dark"] h3.text-slate-900.uppercase,
html[data-theme="dark"] h3.text-slate-400 {
    color: #6b7280 !important;
}
/* Status badges — solid light-mode colors → dark mode tinted versions */
html[data-theme="dark"] .bg-emerald-100.text-emerald-800 {
    background-color: rgba(16,185,129,0.12) !important;
    color: #6ee7b7 !important;
}
html[data-theme="dark"] .bg-emerald-100.text-emerald-800 > span.bg-emerald-500 {
    background-color: #10b981 !important;
}
html[data-theme="dark"] .bg-amber-100.text-amber-800 {
    background-color: rgba(245,158,11,0.12) !important;
    color: #fcd34d !important;
}
html[data-theme="dark"] .bg-amber-100.text-amber-800 > span.bg-amber-500 {
    background-color: #f59e0b !important;
}
html[data-theme="dark"] .bg-red-100.text-red-800 {
    background-color: rgba(239,68,68,0.12) !important;
    color: #fca5a5 !important;
}
html[data-theme="dark"] .bg-red-100.text-red-800 > span.bg-red-500 {
    background-color: #ef4444 !important;
}
/* Hover on emails/news items (was hover:bg-[#f5f3ff], now hover:bg-slate-50) */
html[data-theme="dark"] a.hover\:bg-slate-50:hover,
html[data-theme="dark"] div.hover\:bg-slate-50:hover,
html[data-theme="dark"] tr.hover\:bg-slate-50:hover {
    background-color: rgba(255,255,255,0.04) !important;
}
html[data-theme="dark"] .divide-y.divide-slate-100 > * + * {
    border-top-color: rgba(255,255,255,0.05) !important;
}
html[data-theme="dark"] a.hover\:bg-\[\#f5f3ff\]:hover,
html[data-theme="dark"] div.hover\:bg-\[\#f5f3ff\]:hover {
    background-color: rgba(255,255,255,0.02) !important;
}
html[data-theme="dark"] span.text-slate-900.group-hover\:text-indigo-500 {
    color: #ffffff !important;
}
html[data-theme="dark"] .group:hover span.text-slate-900.group-hover\:text-indigo-500 {
    color: #818cf8 !important;
}
html[data-theme="dark"] span.text-slate-400.mt-0\.5 {
    color: #6b7280 !important;
}
html[data-theme="dark"] svg.text-slate-300 {
    color: #374151 !important;
}
/* News icon bgs */
html[data-theme="dark"] .bg-indigo-50 {
    background-color: rgba(99,102,241,0.10) !important;
}
html[data-theme="dark"] .bg-violet-50 {
    background-color: rgba(139,92,246,0.10) !important;
}
html[data-theme="dark"] .text-indigo-500:not(button):not(a) {
    color: #818cf8 !important;
}
html[data-theme="dark"] .text-violet-500 {
    color: #a78bfa !important;
}
html[data-theme="dark"] a.text-slate-900.hover\:text-indigo-500 {
    color: #ffffff !important;
}
html[data-theme="dark"] a.text-slate-900.hover\:text-indigo-500:hover {
    color: #818cf8 !important;
}
html[data-theme="dark"] p.text-slate-400.line-clamp-1 {
    color: #4b5563 !important;
}

/* ── TICKETS PANEL ── */
html[data-theme="dark"] a.border-slate-200.rounded-lg {
    border-color: rgba(255,255,255,0.07) !important;
}
html[data-theme="dark"] a.border-slate-200.rounded-lg:hover {
    border-color: rgba(99,102,241,0.20) !important;
    background-color: rgba(255,255,255,0.03) !important;
}
html[data-theme="dark"] span.bg-indigo-50.text-indigo-500 {
    background-color: rgba(99,102,241,0.15) !important;
    color: #818cf8 !important;
}
html[data-theme="dark"] span.bg-violet-50.text-violet-500 {
    background-color: rgba(139,92,246,0.15) !important;
    color: #c4b5fd !important;
}
html[data-theme="dark"] span.text-slate-400:not(.uppercase) {
    color: #4b5563 !important;
}
html[data-theme="dark"] p.text-slate-400.line-clamp-2 {
    color: #6b7280 !important;
}
/* Ticket avatars */
html[data-theme="dark"] .bg-slate-100.border-white.text-slate-500 {
    background-color: rgba(255,255,255,0.10) !important;
    border-color: #0f172a !important;
    color: #d1d5db !important;
}
html[data-theme="dark"] .bg-indigo-100.border-white.text-indigo-600 {
    background-color: rgba(99,102,241,0.20) !important;
    border-color: #0f172a !important;
    color: #a5b4fc !important;
}
html[data-theme="dark"] span.text-\[10px\].font-bold.text-slate-400 {
    color: #4b5563 !important;
}
/* Empty state + open ticket button */
html[data-theme="dark"] a.bg-indigo-50.text-indigo-500.hover\:bg-indigo-100 {
    background-color: rgba(99,102,241,0.15) !important;
    color: #818cf8 !important;
}
html[data-theme="dark"] a.bg-indigo-50.text-indigo-500.hover\:bg-indigo-100:hover {
    background-color: rgba(99,102,241,0.25) !important;
}
/* New ticket footer */
html[data-theme="dark"] .p-4.border-t.border-slate-100 {
    border-top-color: rgba(255,255,255,0.06) !important;
    background-color: rgba(255,255,255,0.02) !important;
}
html[data-theme="dark"] a.text-slate-500.hover\:text-indigo-500.border-slate-200 {
    color: #9ca3af !important;
    border-color: rgba(255,255,255,0.08) !important;
    background-color: rgba(255,255,255,0.02) !important;
}
html[data-theme="dark"] a.text-slate-500.hover\:text-indigo-500.border-slate-200:hover {
    color: #818cf8 !important;
    border-color: rgba(99,102,241,0.25) !important;
    background-color: rgba(255,255,255,0.04) !important;
}

/* ── ACTIVE SERVICES ── */
html[data-theme="dark"] .hover\:bg-slate-50\/80:hover {
    background-color: rgba(255,255,255,0.02) !important;
}
html[data-theme="dark"] span.text-slate-900:not(h1):not(h2):not(h3):not(h4) {
    color: #ffffff !important;
}
html[data-theme="dark"] .text-slate-400.font-normal {
    color: #6b7280 !important;
}
html[data-theme="dark"] svg.text-slate-400.transition-transform {
    color: #6b7280 !important;
}
html[data-theme="dark"] .divide-y.divide-slate-100 > div + div {
    border-top-color: rgba(255,255,255,0.06) !important;
}
html[data-theme="dark"] p.text-slate-900.leading-snug {
    color: #ffffff !important;
}
html[data-theme="dark"] p.text-slate-400.mt-0\.5 {
    color: #6b7280 !important;
}
/* Manage button */
html[data-theme="dark"] a.dashboard-btn-manage {
    color: #d1d5db !important;
    border-color: rgba(255,255,255,0.12) !important;
    background-color: rgba(255,255,255,0.04) !important;
}
html[data-theme="dark"] a.dashboard-btn-manage:hover {
    background-color: rgba(255,255,255,0.08) !important;
    color: #ffffff !important;
    border-color: rgba(255,255,255,0.18) !important;
}
/* Service category divider hr */
html[data-theme="dark"] .mx-6.h-px.bg-slate-100 {
    background-color: rgba(255,255,255,0.06) !important;
}
/* Empty services icon container */
html[data-theme="dark"] .bg-indigo-50.border-indigo-100 {
    background-color: rgba(99,102,241,0.10) !important;
    border-color: rgba(99,102,241,0.20) !important;
}
html[data-theme="dark"] .bg-indigo-50.border-indigo-100 svg {
    color: #818cf8 !important;
}

/* ── NEW ELEMENTS (screenshot update) ── */

/* Sidebar user name subtitle */
html[data-theme="dark"] #sidebar .text-\[11px\].font-semibold.text-slate-900 {
    color: #e2e8f0 !important;
}
html[data-theme="dark"] #sidebar .text-\[10px\].text-slate-400 {
    color: #4b5563 !important;
}
/* + New Request button — keep gradient, darken shadow */
html[data-theme="dark"] #sidebar a.shadow-indigo-500\/20 {
    box-shadow: 0 2px 8px rgba(99,102,241,0.15) !important;
}
/* Notification bell in header */
html[data-theme="dark"] header a[href*="support"].relative.p-2 {
    color: #9ca3af !important;
}
html[data-theme="dark"] header a[href*="support"].relative.p-2:hover {
    background-color: rgba(255,255,255,0.05) !important;
    color: #ffffff !important;
}
/* Calendar date chip in header */
html[data-theme="dark"] header .hidden.md\:flex.items-center.gap-1\.5.ml-1 {
    background-color: rgba(255,255,255,0.04) !important;
    border-color: rgba(255,255,255,0.08) !important;
}
html[data-theme="dark"] header .hidden.md\:flex.items-center.gap-1\.5.ml-1 span {
    color: #9ca3af !important;
}
/* Account Verification Required banner (red/pink) */
html[data-theme="dark"] .bg-red-50.border-red-200 {
    background-color: rgba(239,68,68,0.08) !important;
    border-color: rgba(239,68,68,0.20) !important;
}
html[data-theme="dark"] .bg-red-100.border-red-300 {
    background-color: rgba(239,68,68,0.12) !important;
    border-color: rgba(239,68,68,0.25) !important;
}
html[data-theme="dark"] .text-red-500.fill-none {
    color: #f87171 !important;
}
html[data-theme="dark"] .text-red-700 {
    color: #fca5a5 !important;
}
html[data-theme="dark"] .text-red-500:not(svg) {
    color: #f87171 !important;
}
html[data-theme="dark"] .text-red-400 {
    color: #f87171 !important;
}
html[data-theme="dark"] .hover\:bg-red-100:hover {
    background-color: rgba(239,68,68,0.12) !important;
}
html[data-theme="dark"] .hover\:bg-red-50:hover {
    background-color: rgba(239,68,68,0.08) !important;
}

/* ── TEXT-SLATE-800: used for email subjects, news/ticket titles ── */
html[data-theme="dark"] .text-slate-800 {
    color: #f1f5f9 !important;
}
html[data-theme="dark"] .hover\:text-indigo-600:hover,
html[data-theme="dark"] .group:hover .group-hover\:text-indigo-600 {
    color: #818cf8 !important;
}

/* ── TEXT-SLATE-600: invoice dates, td body text ── */
html[data-theme="dark"] .text-slate-600,
html[data-theme="dark"] td.text-slate-600,
html[data-theme="dark"] td p.text-slate-600 {
    color: #94a3b8 !important;
}

/* ── TICKET CARD INNER SURFACE (bg-slate-50/30) ── */
html[data-theme="dark"] .bg-slate-50\/30 {
    background-color: rgba(255,255,255,0.03) !important;
}
html[data-theme="dark"] a.bg-slate-50\/30,
html[data-theme="dark"] div.bg-slate-50\/30 {
    background-color: rgba(255,255,255,0.03) !important;
    border-color: rgba(255,255,255,0.07) !important;
}

/* ── EMAILS/NEWS/TICKETS wrapper cards (div.bg-white.rounded-lg.border-slate-200) ── */
html[data-theme="dark"] .bg-white.rounded-lg.border-slate-200 {
    background-color: rgba(255,255,255,0.04) !important;
    border-color: rgba(255,255,255,0.08) !important;
}

/* ── SECTION HEADER inside cards (px-6 py-4 border-b border-slate-100) ── */
html[data-theme="dark"] .bg-slate-50\/50 {
    background-color: rgba(255,255,255,0.02) !important;
}

/* ── OPEN NEW TICKET BUTTON ── */
html[data-theme="dark"] a.bg-white.rounded-lg.border-slate-200 {
    background-color: rgba(255,255,255,0.04) !important;
    border-color: rgba(255,255,255,0.08) !important;
}

/* ── HOVER:BG-[#f5f3ff] on New Ticket button ── */
html[data-theme="dark"] a.hover\:bg-\[\#f5f3ff\]:hover {
    background-color: rgba(99,102,241,0.10) !important;
}

/* ── MY SERVICES PAGE — service cards ── */
/* Action bar (white search + sort container) */
html[data-theme="dark"] .bg-white.border.border-slate-200.rounded-xl.shadow-sm {
    background-color: rgba(255,255,255,0.04) !important;
    border-color: rgba(255,255,255,0.08) !important;
}
/* Status filter pill group background */
html[data-theme="dark"] .bg-slate-100.p-1.rounded-lg {
    background-color: rgba(255,255,255,0.06) !important;
}
/* Active status pill */
html[data-theme="dark"] .bg-white.shadow-sm.rounded-md {
    background-color: rgba(255,255,255,0.10) !important;
}
/* Service cards */
html[data-theme="dark"] .svc-card {
    background-color: rgba(255,255,255,0.04) !important;
    border-color: rgba(255,255,255,0.08) !important;
}
html[data-theme="dark"] .svc-card:hover {
    border-color: rgba(var(--color-primary-rgb),0.30) !important;
    background-color: rgba(255,255,255,0.06) !important;
}
/* Card detail divider */
html[data-theme="dark"] .svc-card .border-t.border-slate-100 {
    border-color: rgba(255,255,255,0.06) !important;
}
/* Ref badge */
html[data-theme="dark"] .svc-card .bg-slate-100.text-slate-500 {
    background-color: rgba(255,255,255,0.08) !important;
    color: #94a3b8 !important;
}
/* CTA button */
html[data-theme="dark"] .svc-card-cta {
    border-color: rgba(var(--color-primary-rgb),0.25) !important;
}
html[data-theme="dark"] .svc-card-cta:hover {
    background-color: rgba(var(--color-primary-rgb),0.10) !important;
}
/* Promo "Add new service" dashed card */
html[data-theme="dark"] .bg-slate-50.border-dashed.border-slate-200.rounded-xl {
    background-color: rgba(255,255,255,0.02) !important;
    border-color: rgba(255,255,255,0.10) !important;
}
/* Circle icon in promo card */
html[data-theme="dark"] .bg-white.rounded-full.border.border-slate-200.shadow-sm {
    background-color: rgba(255,255,255,0.08) !important;
    border-color: rgba(255,255,255,0.10) !important;
}
/* "Add a new service" heading in promo card */
html[data-theme="dark"] .svc-card + div h4,
html[data-theme="dark"] .text-slate-700 {
    color: #e2e8f0 !important;
}
/* Search input inside action bar */
html[data-theme="dark"] #order-search {
    background: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.10) !important;
    color: #f1f5f9 !important;
}
html[data-theme="dark"] #order-search::placeholder {
    color: #64748b !important;
}
/* Select dropdown inside action bar */
html[data-theme="dark"] #order-sort {
    background: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.10) !important;
    color: #94a3b8 !important;
}
/* Product type tab active/hover */
html[data-theme="dark"] .border-b-2.border-transparent.text-slate-500:hover {
    color: #94a3b8 !important;
}
/* Category pill (bg-white) */
html[data-theme="dark"] a.bg-white.border-slate-200.rounded-full {
    background-color: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.10) !important;
}
/* Empty state light bg */
html[data-theme="dark"] .rounded-2xl.border-dashed.bg-slate-50 {
    background-color: rgba(255,255,255,0.02) !important;
    border-color: rgba(255,255,255,0.10) !important;
}
/* Status badge overrides for service cards */
html[data-theme="dark"] .svc-card .bg-emerald-50 {
    background-color: rgba(16,185,129,0.12) !important;
    border-color: rgba(16,185,129,0.20) !important;
}
html[data-theme="dark"] .svc-card .bg-amber-50 {
    background-color: rgba(245,158,11,0.12) !important;
    border-color: rgba(245,158,11,0.20) !important;
}
html[data-theme="dark"] .svc-card .bg-red-50 {
    background-color: rgba(239,68,68,0.12) !important;
    border-color: rgba(239,68,68,0.20) !important;
}
html[data-theme="dark"] .svc-card .bg-slate-100.text-slate-500.border-slate-200 {
    background-color: rgba(255,255,255,0.06) !important;
    border-color: rgba(255,255,255,0.10) !important;
    color: #94a3b8 !important;
}
/* Icon containers inside service cards */
html[data-theme="dark"] .svc-card .bg-amber-50 svg,
html[data-theme="dark"] .svc-card .bg-amber-50 { color: #fbbf24 !important; }
html[data-theme="dark"] .svc-card .bg-red-50 svg,
html[data-theme="dark"] .svc-card .bg-red-50 { color: #f87171 !important; }
html[data-theme="dark"] .svc-card .bg-slate-100 svg,
html[data-theme="dark"] .svc-card .bg-slate-100 { color: #64748b !important; }

/* ── Hosting Manage Page (hm-*) dark mode overrides ── */
html[data-theme="dark"] .hm-card {
    background-color: rgba(255,255,255,0.03) !important;
    border-color: rgba(255,255,255,0.08) !important;
}
html[data-theme="dark"] .hm-card-hdr {
    background-color: rgba(255,255,255,0.03) !important;
    border-color: rgba(255,255,255,0.06) !important;
}
html[data-theme="dark"] .hm-card-hdr h3 { color: #94a3b8 !important; }
html[data-theme="dark"] .hm-row { border-color: rgba(255,255,255,0.04) !important; }
html[data-theme="dark"] .hm-row .text-slate-500 { color: #94a3b8 !important; }
html[data-theme="dark"] .hm-val { color: #e2e8f0 !important; }
html[data-theme="dark"] .hm-title { color: #f1f5f9 !important; }
html[data-theme="dark"] .hm-stat {
    background-color: rgba(255,255,255,0.03) !important;
    border-color: rgba(255,255,255,0.08) !important;
}
html[data-theme="dark"] .hm-stat p:first-child { color: #64748b !important; }
html[data-theme="dark"] .hm-mono {
    background-color: rgba(255,255,255,0.06) !important;
    color: #cbd5e1 !important;
}
html[data-theme="dark"] .hm-progress-bg { background-color: rgba(255,255,255,0.07) !important; }
html[data-theme="dark"] .hm-mini-stat { background-color: rgba(255,255,255,0.04) !important; }
html[data-theme="dark"] .hm-mini-stat p:first-child { color: #64748b !important; }
html[data-theme="dark"] .hm-icon-circle {
    background-color: rgba(255,255,255,0.07) !important;
    color: #94a3b8 !important;
}
html[data-theme="dark"] .hm-mgmt-title { color: #e2e8f0 !important; }
html[data-theme="dark"] .hm-mgmt-desc { color: #64748b !important; }
html[data-theme="dark"] .hm-input {
    background-color: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.10) !important;
    color: #e2e8f0 !important;
}
html[data-theme="dark"] .hm-btn-outline {
    border-color: rgba(255,255,255,0.10) !important;
    color: #94a3b8 !important;
}
html[data-theme="dark"] .hm-btn-outline:hover {
    background-color: rgba(255,255,255,0.05) !important;
}
html[data-theme="dark"] .divide-y.divide-slate-100 > div { border-color: rgba(255,255,255,0.05) !important; }
html[data-theme="dark"] button.hover\:bg-slate-50:hover { background-color: rgba(255,255,255,0.04) !important; }
html[data-theme="dark"] .bg-slate-50\/50 { background-color: rgba(255,255,255,0.02) !important; }

/* ═══════════════════════════════════════════════════
   SIDEBAR ACCORDION — smooth height reveal
   Uses CSS grid-template-rows animation so the height
   transitions smoothly without knowing the content height.
   ═══════════════════════════════════════════════════ */
.sidebar-nav-accordion {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition:
        grid-template-rows 230ms cubic-bezier(0.4, 0, 0.2, 1),
        opacity 180ms ease-out;
    overflow: hidden;
}
.sidebar-nav-accordion.snav-open {
    grid-template-rows: 1fr;
    opacity: 1;
}
/* Direct child acts as the collapsible cell — must have min-height:0 */
.sidebar-nav-accordion > div {
    min-height: 0;
    overflow: hidden;
}
/* Stagger each nav child item on open */
@keyframes snav-item-slide-in {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
}
.sidebar-nav-accordion.snav-open > div > div > a,
.sidebar-nav-accordion.snav-open > div > div > div {
    animation: snav-item-slide-in 0.18s ease-out both;
}
.sidebar-nav-accordion.snav-open > div > div > :nth-child(1) { animation-delay: 0.05s; }
.sidebar-nav-accordion.snav-open > div > div > :nth-child(2) { animation-delay: 0.09s; }
.sidebar-nav-accordion.snav-open > div > div > :nth-child(3) { animation-delay: 0.13s; }
.sidebar-nav-accordion.snav-open > div > div > :nth-child(4) { animation-delay: 0.17s; }
.sidebar-nav-accordion.snav-open > div > div > :nth-child(5) { animation-delay: 0.20s; }
.sidebar-nav-accordion.snav-open > div > div > :nth-child(6) { animation-delay: 0.23s; }
.sidebar-nav-accordion.snav-open > div > div > :nth-child(7) { animation-delay: 0.26s; }
.sidebar-nav-accordion.snav-open > div > div > :nth-child(n+8) { animation-delay: 0.28s; }

/* ================================================================
   /order page — Page-head dark mode + popular card icon light mode
   ================================================================ */

/* Page header "Order New Services" — dark mode text */
html:not([data-theme="light"]) .ord-page-head h1 {
    color: rgba(255,255,255,0.92) !important;
}
html:not([data-theme="light"]) .ord-page-head p {
    color: rgba(255,255,255,0.50) !important;
}
html:not([data-theme="light"]) .ord-page-head nav a {
    color: rgba(255,255,255,0.45) !important;
}
html:not([data-theme="light"]) .ord-page-head nav a:hover {
    color: rgba(255,255,255,0.80) !important;
}
html:not([data-theme="light"]) .ord-page-head nav span {
    color: rgba(255,255,255,0.55) !important;
}

/* Popular card icon box — keep SVG icon white in light mode
   (global .text-white override flips it dark otherwise) */
html[data-theme="light"] .ord-icon-primary,
html[data-theme="light"] .ord-icon-primary svg {
    color: #ffffff !important;
}

/* Non-featured card icon boxes in dark mode — replace light pastels with dark glass tints */
html:not([data-theme="light"]) .ord-product-card .bg-indigo-100 {
    background: rgba(99,102,241,0.18) !important;
}
html:not([data-theme="light"]) .ord-product-card .bg-blue-100 {
    background: rgba(59,130,246,0.18) !important;
}

/* /order sidebar sticky behavior on desktop */
@media (min-width: 1024px) {
    .ord-refined .ord-sidebar-sticky {
        position: sticky;
        top: 80px;
        align-self: start;
    }
}

/* ================================================================
   /order/{category} page — Stitch refined card design
   ================================================================ */

/* Pricing card drop shadow (used on both light and dark cards) */
.pricing-card-shadow {
    box-shadow: 0 4px 20px -1px rgba(0, 0, 0, 0.05);
}

/* Most popular card: reference-style purple frame + top strip */
.ord-plan-popular {
    border: 2px solid var(--color-primary) !important;
    box-shadow: 0 10px 30px -8px rgba(var(--color-primary-rgb), 0.28) !important;
}

/* Stitch parity pass for /order/vps */
.ord-vps-hero {
    background: linear-gradient(135deg, #4f36e9 0%, #3f2bcf 52%, #3425af 100%);
    box-shadow: 0 18px 42px -22px rgba(55, 36, 170, 0.55);
}

.ord-vps-badge {
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.ord-vps-subtext {
    color: rgba(224, 231, 255, 0.92);
}

.ord-vps-btn-primary {
    background: #ffffff;
    color: #4733dc;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.ord-vps-btn-primary:hover {
    opacity: 0.94;
}

.ord-vps-btn-secondary {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.ord-vps-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.22);
}

.ord-vps-terminal {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
}

.ord-vps-hero-grid {
    display: block;
}

@media (min-width: 700px) {
    .ord-vps-hero-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        align-items: center;
        gap: 24px;
    }

    .ord-vps-hero-side {
        display: block;
    }

    .ord-vps-terminal {
        max-width: 420px;
        margin-left: auto;
    }
}

@media (max-width: 699px) {
    .ord-vps-hero-side {
        display: none;
    }
}

.ord-vps-card {
    border-color: rgba(148, 163, 184, 0.35);
    box-shadow: 0 3px 14px rgba(15, 23, 42, 0.08);
}

.ord-vps-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.12);
}

.ord-vps-card-popular {
    border: 2px solid #5a44ea;
    box-shadow: 0 14px 30px rgba(88, 69, 226, 0.28);
}

.ord-vps-popular-pill {
    color: #ffffff;
    background: linear-gradient(120deg, #3e2dc5, #5e4df1);
}

.ord-vps-plan-btn {
    min-height: 50px;
}

.ord-vps-plan-btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #4f36e9 0%, #6152ef 100%);
}

.ord-vps-plan-btn-secondary {
    color: #4f3ce6;
    border: 2px solid #5c48ea;
    background: #ffffff;
}

.ord-vps-period-shell {
    position: relative;
}

.ord-vps-period-label {
    letter-spacing: 0.01em;
}

.ord-vps-period-select {
    font-weight: 600;
    letter-spacing: 0.01em;
}

.ord-vps-period-select:focus {
    border-color: rgba(var(--color-primary-rgb), 0.8);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.18);
}

.ord-vps-feature {
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.ord-vps-feature:hover {
    border-color: rgba(var(--color-primary-rgb), 0.45);
}

.ord-vps-feature:hover .w-11 {
    background: var(--color-primary);
    color: #ffffff;
}

.ord-vps-compare {
    background: #eef2ff;
}

.ord-vps-compare-head {
    padding: 0.25rem 0 0.15rem;
}

.ord-vps-compare-title {
    letter-spacing: -0.015em;
}

.ord-vps-compare-subtext {
    max-width: 54ch;
    line-height: 1.55;
}

.ord-vps-compare-meta-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.26rem 0.62rem;
    border-radius: 999px;
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
    color: #4f46e5;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.18);
}

.ord-vps-compare-scroll-note {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #64748b;
}

.ord-vps-compare-scroll-note::before {
    content: "\2194";
    font-size: 0.82rem;
    opacity: 0.8;
}

.ord-vps-compare-btn {
    background: linear-gradient(135deg, #4f36e9 0%, #6152ef 100%);
    box-shadow: 0 8px 24px rgba(79, 54, 233, 0.22);
}

.ord-vps-compare-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(79, 54, 233, 0.28);
}

html[data-theme="light"] .ord-vps-hero .text-white,
html[data-theme="light"] .ord-vps-hero .text-indigo-100,
html[data-theme="light"] .ord-vps-hero .text-indigo-200,
html[data-theme="light"] .ord-vps-hero .text-emerald-300,
html[data-theme="light"] .ord-vps-hero .text-indigo-100\/80 {
    color: #ffffff !important;
}

html[data-theme="light"] .ord-vps-hero p,
html[data-theme="light"] .ord-vps-hero h2,
html[data-theme="light"] .ord-vps-hero span,
html[data-theme="light"] .ord-vps-hero a {
    text-shadow: 0 1px 2px rgba(2, 6, 23, 0.22);
}

html[data-theme="light"] .ord-vps-compare-btn,
html[data-theme="light"] .ord-vps-compare-btn span {
    color: #ffffff !important;
}

/* Sticky Feature column — applies in both themes */
.ord-vps-compare-table .ord-vps-compare-sticky {
    position: sticky;
    left: 0;
    z-index: 4;
    background: #ffffff;
    border-right: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 2px 0 6px -2px rgba(15, 23, 42, 0.08);
}

html:not([data-theme="light"]) .ord-vps-compare-table .ord-vps-compare-sticky {
    background: #1e293b;
    border-right-color: rgba(255, 255, 255, 0.12);
    box-shadow: 2px 0 8px -2px rgba(0, 0, 0, 0.35);
}

/* Sticky header cell (th) needs slightly higher z-index so it layers over sticky td cells */
.ord-vps-compare-table thead .ord-vps-compare-sticky {
    z-index: 6;
    background: #f8fafc;
}

.ord-vps-compare-table {
    border-collapse: separate;
    border-spacing: 0;
    letter-spacing: 0.005em;
    line-height: 1.45;
}

.ord-vps-compare-table-wrap {
    scrollbar-gutter: stable both-edges;
}

.ord-vps-compare-table thead th {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ord-vps-compare-feature-head {
    font-weight: 800;
}

.ord-vps-compare-plan-head {
    vertical-align: top;
}

.ord-vps-compare-plan-title {
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    font-weight: 700;
    text-transform: none;
}

.ord-vps-compare-row-label {
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
}

.ord-vps-compare-price-cell {
    font-size: 0.95rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.ord-vps-compare-price-amount {
    display: block;
    font-size: 1.02rem;
    font-weight: 800;
    color: #0f172a;
}

.ord-vps-compare-price-unit {
    display: inline-block;
    margin-top: 0.14rem;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #475569;
}

.ord-vps-compare-billing-cell,
.ord-vps-compare-value {
    font-size: 0.84rem;
    font-weight: 600;
}

.ord-vps-compare-desc {
    font-size: 0.82rem;
    line-height: 1.55;
}

.ord-vps-compare-desc-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.35rem;
}

.ord-vps-compare-desc-list li {
    position: relative;
    padding-left: 0.7rem;
}

.ord-vps-compare-desc-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.54em;
    width: 0.28rem;
    height: 0.28rem;
    border-radius: 999px;
    background: rgba(var(--color-primary-rgb), 0.75);
}

.ord-vps-compare-empty {
    color: #64748b;
    font-style: italic;
}

.ord-vps-compare-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.58rem;
    border-radius: 999px;
    font-size: 0.67rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
    border: 1px solid transparent;
    line-height: 1.2;
}

.ord-vps-compare-badge-neutral {
    color: #334155;
    background: #eef2ff;
    border-color: rgba(99, 102, 241, 0.22);
}

.ord-vps-compare-badge-success {
    color: #065f46;
    background: #ecfdf5;
    border-color: rgba(16, 185, 129, 0.3);
}

.ord-vps-compare-badge-free {
    color: #166534;
    background: #f0fdf4;
    border-color: rgba(34, 197, 94, 0.35);
}

.ord-vps-compare-table td:not(.ord-vps-compare-sticky),
.ord-vps-compare-table th:not(.ord-vps-compare-sticky) {
    position: relative;
    z-index: 1;
}

html:not([data-theme="light"]) .ord-vps-compare-table thead .ord-vps-compare-sticky {
    background: #1a2742;
}

html[data-theme="light"] .ord-vps-compare-table td,
html[data-theme="light"] .ord-vps-compare-table th {
    vertical-align: top;
}

html[data-theme="light"] .ord-vps-compare-table tbody tr:nth-child(even) {
    background: rgba(99, 102, 241, 0.03);
}

html[data-theme="light"] .ord-vps-compare-table tbody tr:hover {
    background: rgba(79, 70, 229, 0.06);
}

/* Sticky td inside striped row must re-declare its own bg so it matches the row */
html[data-theme="light"] .ord-vps-compare-table tbody tr:nth-child(even) .ord-vps-compare-sticky {
    background: rgba(99, 102, 241, 0.03);
}

html[data-theme="light"] .ord-vps-hero h2,
html[data-theme="light"] .ord-vps-hero .ord-vps-subtext,
html[data-theme="light"] .ord-vps-hero .ord-vps-btn-secondary,
html[data-theme="light"] .ord-vps-hero .ord-vps-badge {
    color: #ffffff !important;
}

html:not([data-theme="light"]) .ord-vps-card {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(148, 163, 184, 0.34);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

html:not([data-theme="light"]) .ord-vps-card h4,
html:not([data-theme="light"]) .ord-vps-card .text-on-surface {
    color: rgba(255, 255, 255, 0.9) !important;
}

html:not([data-theme="light"]) .ord-vps-card .text-slate-700,
html:not([data-theme="light"]) .ord-vps-card .text-slate-500 {
    color: rgba(255, 255, 255, 0.66) !important;
}

html:not([data-theme="light"]) .ord-vps-card .border-slate-100,
html:not([data-theme="light"]) .ord-vps-card .border-t {
    border-color: rgba(148, 163, 184, 0.24) !important;
}

html:not([data-theme="light"]) .ord-vps-feature {
    background: rgba(15, 23, 42, 0.68);
    border-color: rgba(148, 163, 184, 0.26);
}

html:not([data-theme="light"]) .ord-vps-feature .bg-indigo-50 {
    background: rgba(99, 102, 241, 0.22) !important;
}

/* ── Custom services category dark mode ── */
html:not([data-theme="light"]) [data-custom-pricing-card] {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(148, 163, 184, 0.34);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

html:not([data-theme="light"]) [data-custom-pricing-card] h3,
html:not([data-theme="light"]) [data-custom-pricing-card] .text-on-surface {
    color: rgba(255, 255, 255, 0.9) !important;
}

html:not([data-theme="light"]) [data-custom-pricing-card] .text-slate-700,
html:not([data-theme="light"]) [data-custom-pricing-card] .text-slate-500 {
    color: rgba(255, 255, 255, 0.66) !important;
}

html:not([data-theme="light"]) [data-custom-pricing-card] .border-slate-200 {
    border-color: rgba(148, 163, 184, 0.24) !important;
}

html:not([data-theme="light"]) .ord-vps-compare {
    background: rgba(30, 41, 59, 0.72);
}

html:not([data-theme="light"]) .ord-vps-compare-subtext {
    color: rgba(255, 255, 255, 0.72) !important;
}

html:not([data-theme="light"]) .ord-vps-compare-meta-pill {
    color: rgba(191, 219, 254, 0.95);
    background: rgba(59, 130, 246, 0.16);
    border-color: rgba(96, 165, 250, 0.28);
}

html:not([data-theme="light"]) .ord-vps-compare-scroll-note {
    color: rgba(255, 255, 255, 0.62);
}

/* Compare table scroll wrapper dark mode */
html:not([data-theme="light"]) .ord-vps-compare-table-wrap {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255,255,255,0.10);
}

html:not([data-theme="light"]) .ord-vps-compare-table thead {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(255,255,255,0.10);
}

html:not([data-theme="light"]) .ord-vps-compare-table td,
html:not([data-theme="light"]) .ord-vps-compare-table th {
    color: rgba(255,255,255,0.75);
    vertical-align: top;
}

html:not([data-theme="light"]) .ord-vps-compare-price-amount {
    color: rgba(255, 255, 255, 0.95);
}

html:not([data-theme="light"]) .ord-vps-compare-price-unit,
html:not([data-theme="light"]) .ord-vps-compare-empty {
    color: rgba(255, 255, 255, 0.65);
}

html:not([data-theme="light"]) .ord-vps-compare-badge-neutral {
    color: rgba(224, 231, 255, 0.94);
    background: rgba(79, 70, 229, 0.24);
    border-color: rgba(129, 140, 248, 0.38);
}

html:not([data-theme="light"]) .ord-vps-compare-badge-success {
    color: rgba(167, 243, 208, 0.95);
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(52, 211, 153, 0.34);
}

html:not([data-theme="light"]) .ord-vps-compare-badge-free {
    color: rgba(187, 247, 208, 0.95);
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(74, 222, 128, 0.34);
}

html:not([data-theme="light"]) .ord-vps-compare-table tbody tr:hover {
    background: rgba(129, 140, 248, 0.1);
}

html:not([data-theme="light"]) .ord-vps-period-label {
    color: rgba(255,255,255,0.85);
}

html:not([data-theme="light"]) .ord-vps-period-select {
    background: rgba(15, 23, 42, 0.84) !important;
    border-color: rgba(148, 163, 184, 0.35) !important;
    color: rgba(255,255,255,0.9) !important;
}

html:not([data-theme="light"]) .ord-vps-period-select:focus {
    border-color: rgba(var(--color-primary-rgb), 0.75) !important;
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.2) !important;
}

html:not([data-theme="light"]) .ord-vps-compare-table th {
    color: rgba(255,255,255,0.92);
}

html:not([data-theme="light"]) .ord-vps-compare-table .divide-y > * {
    border-color: rgba(255,255,255,0.07);
}

html:not([data-theme="light"]) .ord-vps-compare-table tbody tr:nth-child(even) {
    background: rgba(99, 102, 241, 0.05);
}

html:not([data-theme="light"]) .ord-vps-compare-table tbody tr:nth-child(even) .ord-vps-compare-sticky {
    background: #1e293b;
}

.ord-plan-popular-ribbon {
    background: linear-gradient(135deg, var(--color-primary) 0%, #7c6cf8 100%) !important;
    height: 46px;
    border-top-left-radius: calc(0.875rem - 2px);
    border-top-right-radius: calc(0.875rem - 2px);
}

.ord-plan-popular-body {
    position: relative;
    margin-top: 8px;
    border-top-left-radius: calc(0.875rem - 4px);
    border-top-right-radius: calc(0.875rem - 4px);
    overflow: hidden;
    background: #ffffff;
}

html:not([data-theme="light"]) .ord-plan-popular-body {
    background: transparent;
}

/* Pricing slider arrows */
.ord-cat-scroll-btn {
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #334155;
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.12);
}
.ord-cat-scroll-btn:hover {
    background: #f8fafc;
    color: #0f172a;
}

/* ── Category page dark mode overrides ── */

/* Hero banner must keep light text in light mode too.
   Global light-theme typography remaps .text-white and h1-h3 to dark colors. */
html[data-theme="light"] .ord-cat-header h1 {
    color: #ffffff !important;
}
html[data-theme="light"] .ord-cat-header h2,
html[data-theme="light"] .ord-cat-header h3 {
    color: #ffffff !important;
}
html[data-theme="light"] .ord-cat-header p {
    color: rgba(224, 231, 255, 0.92) !important;
}
html[data-theme="light"] .ord-cat-header span {
    color: rgba(255, 255, 255, 0.92) !important;
}
html[data-theme="light"] .ord-cat-header .ord-cat-hero-points .ord-cat-hero-point {
    color: rgba(255, 255, 255, 0.90) !important;
}
html[data-theme="light"] .ord-cat-header .ord-cat-hero-points .text-emerald-300 {
    color: #6ee7b7 !important;
}
html[data-theme="light"] .ord-cat-header a:not(.ord-cat-btn-primary):not(.ord-cat-btn-secondary) {
    color: rgba(255, 255, 255, 0.92) !important;
}
html[data-theme="light"] .ord-cat-header a.bg-white {
    color: var(--color-primary) !important;
}
html[data-theme="light"] .ord-cat-header .ord-cat-hero-primary {
    color: var(--color-primary) !important;
}
html[data-theme="light"] .ord-cat-header a:not(.ord-cat-btn-primary):not(.ord-cat-btn-secondary):hover {
    color: #ffffff !important;
}

/* Hero banner — always dark gradient, links inside are white */
html:not([data-theme="light"]) .ord-cat-header a:not(.ord-cat-btn-primary):not(.ord-cat-btn-secondary) {
    color: rgba(255,255,255,0.70) !important;
}
html:not([data-theme="light"]) .ord-cat-header a:not(.ord-cat-btn-primary):not(.ord-cat-btn-secondary):hover {
    color: rgba(255,255,255,0.95) !important;
}
html:not([data-theme="light"]) .ord-cat-header .ord-cat-hero-points {
    background: rgba(2, 6, 23, 0.22) !important;
    border-color: rgba(148, 163, 184, 0.30) !important;
}

html:not([data-theme="light"]) .ord-plan-popular {
    border-color: rgba(var(--color-primary-rgb), 0.8) !important;
    box-shadow: 0 12px 34px -10px rgba(var(--color-primary-rgb), 0.36) !important;
}

html:not([data-theme="light"]) .ord-plan-popular-body {
    background: rgba(15, 23, 42, 0.92) !important;
}

/* Always keep ribbon text white regardless of light/dark mode */
html[data-theme="light"] .ord-plan-popular-ribbon,
html[data-theme="light"] .ord-plan-popular-ribbon .text-white,
.ord-plan-popular-ribbon {
    color: #ffffff !important;
}
html:not([data-theme="light"]) .ord-cat-header .ord-cat-hero-points .ord-cat-hero-point {
    color: rgba(255,255,255,0.88) !important;
}
/* "Choose Your Growth Path" section heading in dark mode */
html:not([data-theme="light"]) #ord-plans h2 {
    color: rgba(255,255,255,0.92) !important;
}
html:not([data-theme="light"]) #ord-plans p {
    color: rgba(255,255,255,0.55) !important;
}
/* "Why Choose Us" section dark mode */
html:not([data-theme="light"]) .ord-cat-page .bg-surface-container-low .text-on-surface {
    color: rgba(255,255,255,0.88) !important;
}
html:not([data-theme="light"]) .ord-cat-page .bg-surface-container-low .text-tertiary {
    color: rgba(255,255,255,0.55) !important;
}
html:not([data-theme="light"]) .ord-cat-page .bg-surface-container-low .bg-white {
    background: rgba(255,255,255,0.06) !important;
    border-color: rgba(255,255,255,0.08) !important;
}
html[data-theme="light"] .ord-why-card {
    background: rgba(255, 255, 255, 0.70);
    border-color: rgba(148, 163, 184, 0.22);
}
html:not([data-theme="light"]) .ord-why-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(148, 163, 184, 0.20);
}
html:not([data-theme="light"]) .ord-why-surface {
    background: rgba(15, 23, 42, 0.58) !important;
    border: 1px solid rgba(148, 163, 184, 0.24) !important;
}
html:not([data-theme="light"]) .ord-why-surface .text-primary {
    color: rgba(129, 140, 248, 0.95) !important;
}
html:not([data-theme="light"]) .ord-why-surface .text-on-surface {
    color: rgba(248, 250, 252, 0.94) !important;
}
html:not([data-theme="light"]) .ord-why-surface .text-tertiary {
    color: rgba(226, 232, 240, 0.72) !important;
}
html:not([data-theme="light"]) .ord-why-icon-box {
    background: rgba(255,255,255,0.08) !important;
    border-color: rgba(148, 163, 184, 0.25) !important;
}

/* Primary CTA button (bg-primary) — keep white text in both modes */
html:not([data-theme="light"]) .ord-cat-btn-primary {
    background: var(--color-primary) !important;
    color: #ffffff !important;
}
html[data-theme="light"] .ord-cat-btn-primary {
    color: #ffffff !important;
}

/* Secondary CTA button — in dark mode, invert to gradient */
html:not([data-theme="light"]) .ord-cat-btn-secondary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)) !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

/* Renewal guarantee banner dark mode */
html:not([data-theme="light"]) .ord-product-card .bg-\[\#f0fff4\] {
    background: rgba(26,138,71,0.15) !important;
    border-color: rgba(26,138,71,0.25) !important;
    color: rgba(74,222,128,0.90) !important;
}

/* Feature list item text */
html:not([data-theme="light"]) .ord-product-card .ord-price-row .text-slate-700 {
    color: rgba(255,255,255,0.72) !important;
}

/* Carousel scroll arrow buttons */
html:not([data-theme="light"]) .ord-cat-scroll-btn {
    background: rgba(255,255,255,0.07) !important;
    border-color: rgba(255,255,255,0.12) !important;
    color: rgba(255,255,255,0.75) !important;
}
html:not([data-theme="light"]) .ord-cat-scroll-btn:hover {
    background: rgba(255,255,255,0.12) !important;
    border-color: rgba(var(--color-primary-rgb),0.40) !important;
}
