/* ============================================================
   PomocDrogowa24 - Dark Neon Theme (v.2.0)
   Ciemny motyw z neonowymi akcentami
   ============================================================ */

:root {
  --neon-yellow: #DFFF00;
  --neon-orange: #FF6B00;
  --neon-red: #FF003C;
  --neon-cyan: #00E5FF;
  --bg-body: #08080d;
  --bg-surface: #0e0e15;
  --bg-card: #13131c;
  --bg-elevated: #1a1a26;
  --bg-input: #111119;
  --bg-hover: #1f1f30;
  --text-primary: #f0f0f8;
  --text-secondary: #b0b0c0;
  --text-muted: #8888a0;
  --border-subtle: rgba(255,255,255,0.06);
  --border-medium: rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.18);
  --glow-yellow: 0 0 15px rgba(223,255,0,0.25), 0 0 40px rgba(223,255,0,0.08);
  --glow-orange: 0 0 15px rgba(255,107,0,0.30), 0 0 40px rgba(255,107,0,0.10);
  --glow-red: 0 0 15px rgba(255,0,60,0.30), 0 0 40px rgba(255,0,60,0.10);
  --glow-cyan: 0 0 15px rgba(0,229,255,0.25), 0 0 40px rgba(0,229,255,0.08);
  --brand-orange: #FF6B00;
  --brand-yellow: #DFFF00;
  --brand-red: #FF003C;
  --brand-black: #0e0e15;
  --brand-dark: #08080d;
  --brand-gray: #0e0e15;
}

/* === GLOBAL BASE === */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg-body) !important;
  color: var(--text-primary);
}

/* === DARK BACKGROUND OVERRIDES === */
.bg-white       { background-color: var(--bg-card) !important; }
.bg-gray-50     { background-color: var(--bg-surface) !important; }
.bg-gray-100    { background-color: var(--bg-elevated) !important; }
.bg-gray-200    { background-color: #22222e !important; }

/* === DARK TEXT OVERRIDES === */
.text-gray-900  { color: var(--text-primary) !important; }
.text-gray-800  { color: #e0e0ec !important; }
.text-gray-700  { color: #d0d0e0 !important; }
.text-gray-600  { color: #b8b8cc !important; }
.text-gray-500  { color: var(--text-secondary) !important; }
.text-gray-400  { color: #9898b0 !important; }
.text-gray-300  { color: #8888a4 !important; }

/* === DARK BORDER OVERRIDES === */
.border-gray-50  { border-color: rgba(255,255,255,0.03) !important; }
.border-gray-100 { border-color: var(--border-subtle) !important; }
.border-gray-200 { border-color: var(--border-medium) !important; }
.border-gray-300 { border-color: var(--border-strong) !important; }
.border-t        { border-color: var(--border-subtle); }
.border-b        { border-color: var(--border-subtle); }
.border-r        { border-color: var(--border-subtle); }
.divide-gray-50 > * + *  { border-color: rgba(255,255,255,0.03) !important; }
.divide-y > * + *        { border-color: var(--border-subtle) !important; }

/* === SOFT COLORED BGs → DARK TRANSLUCENT NEON === */
.bg-amber-50, .bg-amber-100   { background-color: rgba(255,170,0,0.08) !important; }
.bg-red-50, .bg-red-100       { background-color: rgba(255,0,60,0.08) !important; }
.bg-blue-50, .bg-blue-100     { background-color: rgba(0,140,255,0.08) !important; }
.bg-green-50, .bg-green-100   { background-color: rgba(0,255,120,0.08) !important; }
.bg-purple-50, .bg-purple-100 { background-color: rgba(160,0,255,0.08) !important; }
.bg-indigo-50, .bg-indigo-100 { background-color: rgba(80,60,255,0.08) !important; }
.bg-violet-50   { background-color: rgba(140,0,255,0.08) !important; }
.bg-brand-50    { background-color: rgba(255,107,0,0.06) !important; }

/* Colored border overrides */
.border-amber-100, .border-amber-200, .border-amber-300 { border-color: rgba(255,170,0,0.20) !important; }
.border-red-100, .border-red-200   { border-color: rgba(255,0,60,0.20) !important; }
.border-brand-100, .border-brand-200, .border-brand-300 { border-color: rgba(255,107,0,0.20) !important; }
.border-violet-100 { border-color: rgba(140,0,255,0.15) !important; }
.border-white\/10  { border-color: rgba(255,255,255,0.06) !important; }
.border-white\/5   { border-color: rgba(255,255,255,0.03) !important; }

/* === TEXT COLOR ACCENTS — NEON === */
.text-amber-600, .text-amber-700  { color: #ffaa00 !important; }
.text-red-500, .text-red-600, .text-red-700 { color: #ff4466 !important; }
.text-blue-600, .text-blue-700   { color: #4499ff !important; }
.text-green-600, .text-green-700 { color: #00ff88 !important; }
.text-purple-600, .text-purple-700 { color: #cc66ff !important; }
.text-indigo-600, .text-indigo-700 { color: #8888ff !important; }
.text-violet-400 { color: #aa77ff !important; }
.text-brand-500  { color: var(--neon-orange) !important; }
.text-brand-600  { color: #FF8C00 !important; text-shadow: 0 0 8px rgba(255,107,0,0.3); }
.text-brand-700  { color: var(--neon-yellow) !important; }
.text-brand-800  { color: var(--text-primary) !important; }

/* === NEON BUTTONS === */
.btn-primary {
  background: linear-gradient(135deg, var(--neon-orange) 0%, #FF8C00 50%, var(--neon-yellow) 100%) !important;
  color: #000 !important;
  font-weight: 700;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--glow-orange);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(255,107,0,0.5), 0 0 50px rgba(255,107,0,0.2);
  filter: brightness(1.15);
}
.btn-primary:active { transform: scale(0.95); }

.bg-brand-500 { background-color: var(--neon-orange) !important; box-shadow: var(--glow-orange); }
.bg-brand-600 { background-color: #FF8C00 !important; }
.hover\:bg-brand-600:hover { background-color: #FF9500 !important; box-shadow: 0 0 25px rgba(255,107,0,0.4); }
.bg-brand-100 { background-color: rgba(255,107,0,0.12) !important; }
.shadow-lg.shadow-brand-500\/20, .shadow-brand-500\/20 { box-shadow: var(--glow-orange) !important; }
.shadow-brand-500\/30 { box-shadow: 0 0 20px rgba(255,107,0,0.3), 0 0 50px rgba(255,107,0,0.1) !important; }

/* === CARDS — DARK GLASSMORPHISM === */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  transition: all 0.3s ease;
}
.service-card:hover {
  border-color: rgba(255,107,0,0.3);
  box-shadow: 0 0 20px rgba(255,107,0,0.1), 0 10px 30px rgba(0,0,0,0.3);
  transform: translateY(-4px);
}

.admin-card {
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  border: 1px solid var(--border-subtle);
}

/* === HEADER — NEON ACCENT LINE === */
.header-modern {
  background: var(--bg-surface);
  color: white;
  position: relative;
  overflow: hidden;
}
.header-modern::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-orange), var(--neon-yellow), var(--neon-red));
  box-shadow: 0 0 15px rgba(255,107,0,0.5);
}

/* === INPUTS — DARK + NEON FOCUS === */
input, select, textarea {
  background-color: var(--bg-input) !important;
  border-color: var(--border-medium) !important;
  color: var(--text-primary) !important;
}
input::placeholder, textarea::placeholder { color: var(--text-muted) !important; }
input:focus, select:focus, textarea:focus, button:focus-visible {
  outline: 2px solid var(--neon-orange) !important;
  outline-offset: 2px;
  box-shadow: 0 0 10px rgba(255,107,0,0.2);
}
.focus\:ring-2:focus, .focus\:ring-brand-500:focus { --tw-ring-color: var(--neon-orange) !important; }

/* === ANIMATIONS === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeIn 0.4s ease-out forwards; }

@keyframes neonPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(255,107,0,0.3); }
  50% { box-shadow: 0 0 25px rgba(255,107,0,0.6), 0 0 50px rgba(255,107,0,0.2); }
}
@keyframes neonGlow {
  0%, 100% { text-shadow: 0 0 5px rgba(223,255,0,0.3); }
  50% { text-shadow: 0 0 15px rgba(223,255,0,0.6), 0 0 30px rgba(223,255,0,0.3); }
}

[id^="view-"], [id^="dview-"], [id^="aview-"] { animation: fadeIn 0.25s ease-out; }

/* === SCROLLBAR — DARK NEON === */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: #333345; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--neon-orange); box-shadow: 0 0 8px rgba(255,107,0,0.5); }

/* === SKELETON — DARK === */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-elevated) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

/* === PWA SAFE AREA === */
@supports (padding: env(safe-area-inset-bottom)) {
  nav { padding-bottom: calc(0.75rem + env(safe-area-inset-bottom)); }
}

#app-screen > nav { background-color: #0e0e15 !important; border-top: 1px solid rgba(255,107,0,0.15) !important; }
#driver-app > nav { background-color: #0e0e15 !important; border-top: 1px solid rgba(255,107,0,0.15) !important; }

.transition-view { transition: opacity 0.2s ease, transform 0.2s ease; }

@media (max-width: 640px) {
  button, a, input, select, textarea { min-height: 44px; }
  #availability-toggle { min-height: auto; height: 1.5rem; }
}

/* === TABLE — DARK === */
table { color: var(--text-primary); }
thead { background-color: var(--bg-elevated) !important; }
thead th { color: var(--text-secondary) !important; }
tbody tr { border-color: var(--border-subtle) !important; }
.hover\:bg-gray-50:hover { background-color: var(--bg-hover) !important; }

/* === MODALS — DARK === */
.bg-black\/50 { background-color: rgba(0,0,0,0.7) !important; backdrop-filter: blur(4px); }

/* === STATUS BADGE GLOW === */
.bg-amber-100 { box-shadow: 0 0 8px rgba(255,170,0,0.15); }
.bg-green-100 { box-shadow: 0 0 8px rgba(0,255,100,0.15); }
.bg-red-100 { box-shadow: 0 0 8px rgba(255,0,60,0.15); }
.bg-blue-100 { box-shadow: 0 0 8px rgba(0,140,255,0.15); }

/* === HOVER OVERRIDES === */
.hover\:bg-gray-100:hover  { background-color: #22222e !important; }
.hover\:bg-red-100:hover   { background-color: rgba(255,0,60,0.12) !important; }

.ring-2.ring-amber-200 { --tw-ring-color: rgba(255,170,0,0.3) !important; }

select option { background-color: var(--bg-card); color: var(--text-primary); }

/* === ADMIN SIDEBAR LINKS === */
.sidebar-link { transition: all 0.2s; border-radius: 12px; margin-bottom: 4px; color: #9898b0; }
.sidebar-link.active { background: linear-gradient(135deg, var(--neon-orange), #FF8C00) !important; color: #000 !important; box-shadow: var(--glow-orange); }
.sidebar-link.active i { color: #000 !important; }
.sidebar-link:hover:not(.active) { background: rgba(255,107,0,0.1); color: var(--text-primary); }
.sidebar-link i { color: #7777a0; transition: color 0.2s; }
.sidebar-link:hover i { color: var(--neon-orange); }

/* === NEON ACCENT DECORATIONS === */
.bg-brand-500.rounded-xl, .bg-brand-500.rounded-full { box-shadow: var(--glow-orange); }
.bg-green-500.rounded-full.animate-pulse { box-shadow: 0 0 8px rgba(0,255,100,0.5); }
.bg-red-500 { box-shadow: 0 0 10px rgba(255,0,60,0.3); }

/* Auth card */
.bg-white.rounded-\[2rem\] { background-color: var(--bg-card) !important; border: 1px solid var(--border-medium) !important; }

.bg-accent-red { background-color: var(--neon-red) !important; box-shadow: 0 0 8px rgba(255,0,60,0.5); }

/* Admin pricing table scroll */
#pricing-table { -webkit-overflow-scrolling: touch; }
#pricing-table::-webkit-scrollbar { height: 6px; }
#pricing-table::-webkit-scrollbar-track { background: var(--bg-body); border-radius: 3px; }
#pricing-table::-webkit-scrollbar-thumb { background: #333345; border-radius: 3px; }
#pricing-table::-webkit-scrollbar-thumb:hover { background: var(--neon-orange); }

@media (max-width: 1023px) {
  #admin-sidebar { position: fixed; left: -100%; top: 0; bottom: 0; z-index: 50; transition: left 0.3s ease; width: 280px; }
  #admin-sidebar.open { left: 0; }
  #sidebar-overlay { display: none; }
  #sidebar-overlay.open { display: block; }
}

input[type="checkbox"] { accent-color: var(--neon-orange); }

/* === TABLET / LARGER MOBILE FULLSCREEN === */
@media (min-width: 768px) {
  /* Main client app container */
  #app-screen {
    max-width: 100% !important;
  }
  /* Driver app container */
  #driver-app {
    max-width: 100% !important;
  }
  /* Bottom navigation bars */
  #app-screen > nav,
  #driver-app > nav {
    max-width: 100% !important;
  }
  /* Modals that slide from bottom */
  #modal-order-details > div,
  #modal-notifications > div {
    max-width: 100% !important;
  }
  /* Auth screen container */
  #auth-screen > div:first-child {
    max-width: 480px;
  }
  /* Wider service grid on tablets */
  #services-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  /* Larger map on tablets */
  #order-map {
    height: 300px !important;
  }
  #driver-map {
    height: 350px !important;
  }
}

/* ================================================================
   LIGHT THEME — @media (prefers-color-scheme: light)
   Automatyczne przełączanie na jasny motyw gdy system użytkownika
   jest ustawiony na jasny motyw.
   ================================================================ */
@media (prefers-color-scheme: light) {
  :root {
    --bg-body: #f5f7fa;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-elevated: #f3f4f6;
    --bg-input: #f9fafb;
    --bg-hover: #f3f4f6;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --border-subtle: rgba(0,0,0,0.06);
    --border-medium: rgba(0,0,0,0.12);
    --border-strong: rgba(0,0,0,0.20);
    --glow-yellow: none;
    --glow-orange: 0 2px 8px rgba(255,107,0,0.15);
    --glow-red: none;
    --glow-cyan: none;
    --brand-black: #111827;
    --brand-dark: #f5f7fa;
    --brand-gray: #ffffff;
  }

  body {
    background-color: var(--bg-body) !important;
    color: var(--text-primary) !important;
  }

  /* --- Background resets --- */
  .bg-white       { background-color: #ffffff !important; }
  .bg-gray-50     { background-color: #f9fafb !important; }
  .bg-gray-100    { background-color: #f3f4f6 !important; }
  .bg-gray-200    { background-color: #e5e7eb !important; }

  /* Hardcoded dark backgrounds → light */
  .bg-\[\#08080d\] { background-color: var(--bg-body) !important; }
  .bg-\[\#0e0e15\] { background-color: var(--bg-surface) !important; }
  .bg-\[\#13131c\] { background-color: var(--bg-card) !important; border: 1px solid rgba(0,0,0,0.08); }
  .bg-\[\#111119\] { background-color: var(--bg-input) !important; }

  /* --- Text resets to dark for light backgrounds --- */
  .text-gray-900  { color: #111827 !important; }
  .text-gray-800  { color: #1f2937 !important; }
  .text-gray-700  { color: #374151 !important; }
  .text-gray-600  { color: #4b5563 !important; }
  .text-gray-500  { color: #6b7280 !important; }
  .text-gray-400  { color: #9ca3af !important; }
  .text-gray-300  { color: #d1d5db !important; }
  .text-black     { color: #000000 !important; }

  /* White text on containers that become light → dark text */
  .bg-\[\#08080d\] .text-white,
  .bg-\[\#0e0e15\] .text-white,
  .bg-\[\#13131c\] .text-white {
    color: var(--text-primary) !important;
  }
  /* But preserve white text on colored/brand backgrounds */
  .bg-brand-500 .text-white,
  .bg-brand-600 .text-white,
  .bg-red-500 .text-white,
  .bg-red-600 .text-white,
  .bg-green-500 .text-white,
  .bg-green-600 .text-white,
  .bg-amber-500 .text-white,
  .bg-blue-700 .text-white,
  button.text-white,
  a.text-white,
  [class*="bg-brand-500"].text-white,
  [class*="bg-red-6"].text-white {
    color: #ffffff !important;
  }

  /* --- Colored accent texts (toned down for light bg) --- */
  .text-amber-600, .text-amber-700  { color: #d97706 !important; }
  .text-red-400   { color: #f87171 !important; }
  .text-red-500, .text-red-600, .text-red-700 { color: #dc2626 !important; }
  .text-blue-600, .text-blue-700   { color: #2563eb !important; }
  .text-green-600, .text-green-700 { color: #16a34a !important; }
  .text-purple-600, .text-purple-700 { color: #9333ea !important; }
  .text-indigo-600, .text-indigo-700 { color: #4f46e5 !important; }
  .text-violet-400 { color: #8b5cf6 !important; }
  .text-brand-500  { color: #ea580c !important; }
  .text-brand-600  { color: #c2410c !important; text-shadow: none !important; }
  .text-brand-700  { color: #9a3412 !important; }
  .text-brand-800  { color: #111827 !important; }

  /* --- Colored backgrounds reset to proper light tints --- */
  .bg-amber-50, .bg-amber-100   { background-color: #fffbeb !important; box-shadow: none !important; }
  .bg-red-50, .bg-red-100       { background-color: #fef2f2 !important; box-shadow: none !important; }
  .bg-blue-50, .bg-blue-100     { background-color: #eff6ff !important; box-shadow: none !important; }
  .bg-green-50, .bg-green-100   { background-color: #f0fdf4 !important; box-shadow: none !important; }
  .bg-purple-50, .bg-purple-100 { background-color: #faf5ff !important; box-shadow: none !important; }
  .bg-indigo-50, .bg-indigo-100 { background-color: #eef2ff !important; box-shadow: none !important; }
  .bg-violet-50   { background-color: #f5f3ff !important; }
  .bg-brand-50    { background-color: #fff7ed !important; }
  .bg-brand-100   { background-color: rgba(255,107,0,0.08) !important; }

  /* --- Border resets --- */
  .border-gray-50  { border-color: rgba(0,0,0,0.03) !important; }
  .border-gray-100 { border-color: rgba(0,0,0,0.06) !important; }
  .border-gray-200 { border-color: rgba(0,0,0,0.10) !important; }
  .border-gray-300 { border-color: rgba(0,0,0,0.15) !important; }
  .border-t        { border-color: rgba(0,0,0,0.08); }
  .border-b        { border-color: rgba(0,0,0,0.08); }
  .border-r        { border-color: rgba(0,0,0,0.08); }
  .divide-gray-50 > * + *  { border-color: rgba(0,0,0,0.03) !important; }
  .divide-y > * + *        { border-color: rgba(0,0,0,0.06) !important; }
  .border-white\/10  { border-color: rgba(0,0,0,0.08) !important; }
  .border-white\/5   { border-color: rgba(0,0,0,0.05) !important; }
  .border-amber-100, .border-amber-200, .border-amber-300 { border-color: #fcd34d !important; }
  .border-red-100, .border-red-200   { border-color: #fca5a5 !important; }
  .border-brand-100, .border-brand-200, .border-brand-300 { border-color: rgba(255,107,0,0.20) !important; }
  .border-violet-100 { border-color: #ddd6fe !important; }

  /* --- Input resets --- */
  input, select, textarea {
    background-color: var(--bg-input) !important;
    border-color: #d1d5db !important;
    color: var(--text-primary) !important;
  }
  input::placeholder, textarea::placeholder { color: var(--text-muted) !important; }
  select option { background-color: #ffffff; color: #111827; }

  /* --- Table resets --- */
  table { color: var(--text-primary) !important; }
  thead { background-color: #f9fafb !important; }
  thead th { color: #4b5563 !important; }
  tbody tr { border-color: rgba(0,0,0,0.06) !important; }

  /* --- Card resets --- */
  .service-card {
    background: #ffffff !important;
    border-color: rgba(0,0,0,0.08) !important;
  }
  .service-card:hover {
    border-color: rgba(224,85,0,0.3) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
  }
  .admin-card {
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
    border-color: rgba(0,0,0,0.06) !important;
  }

  /* --- Header resets --- */
  .header-modern {
    background: #ffffff !important;
    color: var(--text-primary) !important;
  }
  .header-modern::after {
    box-shadow: none !important;
  }

  /* --- Buttons --- */
  .btn-primary {
    box-shadow: 0 2px 8px rgba(224,85,0,0.2) !important;
  }
  .btn-primary:hover {
    box-shadow: 0 4px 15px rgba(224,85,0,0.3) !important;
  }
  .bg-brand-500 { box-shadow: 0 2px 8px rgba(255,107,0,0.2) !important; }
  .shadow-lg.shadow-brand-500\/20, .shadow-brand-500\/20 { box-shadow: 0 2px 8px rgba(255,107,0,0.15) !important; }
  .shadow-brand-500\/30 { box-shadow: 0 4px 15px rgba(255,107,0,0.2) !important; }

  /* --- Modal backdrop --- */
  .bg-black\/50 { background-color: rgba(0,0,0,0.4) !important; backdrop-filter: blur(4px); }

  /* --- Status badges - remove dark glow --- */
  .bg-amber-100 { box-shadow: none !important; }
  .bg-green-100 { box-shadow: none !important; }
  .bg-red-100   { box-shadow: none !important; }
  .bg-blue-100  { box-shadow: none !important; }

  /* --- Hover overrides --- */
  .hover\:bg-gray-50:hover  { background-color: #f9fafb !important; }
  .hover\:bg-gray-100:hover { background-color: #f3f4f6 !important; }
  .hover\:bg-red-100:hover  { background-color: #fee2e2 !important; }
  .hover\:bg-white\/5:hover { background-color: rgba(0,0,0,0.03) !important; }

  /* --- Navigation bars --- */
  #app-screen > nav { background-color: #ffffff !important; border-top: 1px solid rgba(0,0,0,0.08) !important; }
  #driver-app > nav { background-color: #ffffff !important; border-top: 1px solid rgba(0,0,0,0.08) !important; }

  /* --- Sidebar --- */
  .sidebar-link { color: #6b7280 !important; }
  .sidebar-link.active { background: linear-gradient(135deg, #ea580c, #FF8C00) !important; color: #ffffff !important; }
  .sidebar-link.active i { color: #ffffff !important; }
  .sidebar-link:hover:not(.active) { background: rgba(234,88,12,0.06) !important; color: #111827 !important; }
  .sidebar-link i { color: #9ca3af !important; }
  .sidebar-link:hover i { color: #ea580c !important; }

  /* --- Scrollbar --- */
  ::-webkit-scrollbar-track { background: #f5f7fa; }
  ::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 10px; }
  ::-webkit-scrollbar-thumb:hover { background: #ea580c; box-shadow: none; }

  /* --- Semi-transparent white bg → semi-transparent black bg --- */
  .bg-white\/5  { background-color: rgba(0,0,0,0.03) !important; }
  .bg-white\/10 { background-color: rgba(0,0,0,0.05) !important; }
  .bg-white\/20 { background-color: rgba(0,0,0,0.08) !important; }

  /* --- Auth card --- */
  .bg-white.rounded-\[2rem\] { background-color: #ffffff !important; border: 1px solid rgba(0,0,0,0.08) !important; }

  /* --- Neon accent decorations - tone down --- */
  .bg-brand-500.rounded-xl, .bg-brand-500.rounded-full { box-shadow: 0 2px 8px rgba(255,107,0,0.2); }
  .bg-green-500.rounded-full.animate-pulse { box-shadow: 0 0 6px rgba(22,163,74,0.4); }
  .bg-red-500 { box-shadow: 0 2px 6px rgba(220,38,38,0.2); }
  .bg-accent-red { box-shadow: 0 2px 6px rgba(220,38,38,0.3); }

  /* --- Red/green/amber semi-transparent bgs --- */
  .bg-red-500\/10 { background-color: rgba(220,38,38,0.06) !important; }
  .border-red-500\/20 { border-color: rgba(220,38,38,0.15) !important; }
  .bg-green-500\/10 { background-color: rgba(22,163,74,0.06) !important; }

  /* --- Checkbox --- */
  input[type="checkbox"] { accent-color: #ea580c !important; }

  /* --- Skeleton --- */
  .skeleton {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%) !important;
    background-size: 200% 100%;
  }

  /* --- Pricing table scrollbar --- */
  #pricing-table::-webkit-scrollbar-track { background: #f5f7fa; }
  #pricing-table::-webkit-scrollbar-thumb { background: #d1d5db; }
  #pricing-table::-webkit-scrollbar-thumb:hover { background: #ea580c; }

  /* --- Admin sidebar mobile --- */
  @media (max-width: 1023px) {
    #admin-sidebar { background-color: #ffffff !important; }
  }

  /* --- JS-generated hardcoded dark backgrounds → light --- */
  [class*="bg-\[#13131c\]"] { background-color: #ffffff !important; border: 1px solid rgba(0,0,0,0.08) !important; }
  [class*="bg-\[#0e0e15\]"] { background-color: #ffffff !important; }
  [class*="bg-\[#08080d\]"] { background-color: var(--bg-body) !important; }

  /* --- JS-generated hardcoded text colors → adapt for light --- */
  [class*="text-\[\#FF8C00\]"] { color: #c2410c !important; text-shadow: none !important; }
  [class*="text-\[\#FF6B00\]"] { color: #ea580c !important; text-shadow: none !important; }
  [style*="text-shadow"] { text-shadow: none !important; }

  /* --- JS-generated inline style colors for brand text --- */
  [style*="color:#FF8C00"], [style*="color: #FF8C00"] { color: #c2410c !important; }
  [style*="color:#FF6B00"], [style*="color: #FF6B00"] { color: #ea580c !important; }

  /* --- JS hover borders --- */
  [class*="hover\:border-\[\#FF6B00\]"]:hover { border-color: rgba(234,88,12,0.3) !important; }
  [class*="shadow-\[0_0_15px"] { box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important; }
  [class*="shadow-\[0_0_12px"] { box-shadow: 0 2px 6px rgba(0,0,0,0.06) !important; }
  [class*="shadow-\[0_0_10px"] { box-shadow: 0 2px 6px rgba(0,0,0,0.06) !important; }

  /* --- JS-generated rgba backgrounds → light equivalents --- */
  [class*="bg-\[rgba(255,107,0,0.06)\]"] { background-color: rgba(234,88,12,0.04) !important; }
  [class*="bg-\[rgba(255,107,0,0.08)\]"] { background-color: rgba(234,88,12,0.06) !important; }
  [class*="bg-\[rgba(255,107,0,0.12)\]"] { background-color: rgba(234,88,12,0.08) !important; }
  [class*="bg-\[rgba(255,170,0,0.08)\]"] { background-color: rgba(217,119,6,0.06) !important; }
  [class*="border-\[rgba(255,170,0,0.2)\]"] { border-color: rgba(217,119,6,0.15) !important; }
  [class*="border-\[rgba(255,107,0,0.15)\]"] { border-color: rgba(234,88,12,0.12) !important; }

  /* --- Preserve white text on colored button/link backgrounds in JS content --- */
  .bg-brand-500.text-white,
  .bg-brand-600.text-white,
  .bg-red-600.text-white,
  .bg-green-600.text-white,
  .bg-amber-500.text-white,
  .bg-blue-600.text-white { color: #ffffff !important; }

  /* --- Ring overrides for light --- */
  [class*="ring-amber-500"] { --tw-ring-color: rgba(217,119,6,0.2) !important; }

  /* --- brand-500/10 type opacity backgrounds --- */
  .bg-brand-500\/10 { background-color: rgba(234,88,12,0.06) !important; }
  .border-brand-500\/20 { border-color: rgba(234,88,12,0.12) !important; }
  .bg-amber-500\/10 { background-color: rgba(217,119,6,0.06) !important; }
  .border-amber-500\/20 { border-color: rgba(217,119,6,0.12) !important; }
  .border-amber-500\/40 { border-color: rgba(217,119,6,0.25) !important; }

  /* --- Focus ring for light theme --- */
  input:focus, select:focus, textarea:focus, button:focus-visible {
    outline: 2px solid #ea580c !important;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(234,88,12,0.1) !important;
  }
}
