/* ============================================
   Via Sakan A2A â€” Shared Design System
   Palette: deep purple + red + white + black
   ============================================ */

:root {
  /* Brand â€” Via Sakan */
  --vs-green-900: #1A0A2E;
  --vs-green-800: #2D1B54;
  --vs-green-700: #5B21B6;          /* primary brand purple */
  --vs-green-600: #6D28D9;          /* hover */
  --vs-green-100: #EDE9FE;
  --vs-green-50:  #F5F3FF;

  --vs-gold:      #D4A14B;          /* warm gold accent (eye-comfortable) */
  --vs-gold-600:  #B8862E;
  --vs-gold-100:  #FBEFD6;
  --vs-gold-50:   #FDF8EC;

  --vs-cream:     #F8F8F8;
  --vs-paper:     #FAFAFA;          /* page background */
  --vs-card:      #FFFFFF;

  --vs-ink:       #0A0A0F;
  --vs-ink-soft:  #52525B;
  --vs-line:      #E4E4E7;
  --vs-line-soft: #F4F4F5;

  --vs-success:   #16A34A;
  --vs-warn:      #D97706;
  --vs-danger:    #B91C1C;          /* softer red for destructive actions */
  --vs-hot:       #D97706;          /* amber for hot/highlight */

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --sh-1: 0 1px 2px rgba(26, 10, 46, .05), 0 1px 3px rgba(26, 10, 46, .04);
  --sh-2: 0 4px 12px rgba(26, 10, 46, .07), 0 2px 4px rgba(26, 10, 46, .04);
  --sh-3: 0 16px 40px rgba(26, 10, 46, .12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Cairo', system-ui, -apple-system, sans-serif;
  color: var(--vs-ink);
  background: var(--vs-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[dir="rtl"], html[dir="rtl"] body {
  font-family: 'Cairo', 'Inter', system-ui, sans-serif;
}

/* ============================================
   Brand mark
   ============================================ */
.vs-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--vs-green-900);
  text-decoration: none;
}
.vs-logo .mark {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--vs-green-700);
  color: var(--vs-gold);
  display: grid; place-items: center;
  font-family: 'Cairo', serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.05em;
  border: 1px solid var(--vs-gold);
}
.vs-logo .name { line-height: 1; }
.vs-logo .name small { display:block; font-size: 10px; color: var(--vs-ink-soft); font-weight: 500; letter-spacing: 0.15em; margin-top: 3px; }

/* ============================================
   iPhone frame for mobile mockups
   ============================================ */
.iphone-frame {
  width: 390px;
  height: 844px;
  background: var(--vs-green-900);
  border-radius: 56px;
  padding: 14px;
  box-shadow: var(--sh-3), 0 0 0 2px #1f2a25 inset, 0 0 0 1px var(--vs-green-900);
  position: relative;
  flex-shrink: 0;
}

.iphone-screen {
  width: 100%;
  height: 100%;
  background: var(--vs-paper);
  border-radius: 44px;
  overflow: hidden;
  position: relative;
}

.iphone-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 124px;
  height: 36px;
  background: var(--vs-green-900);
  border-radius: 20px;
  z-index: 50;
  pointer-events: none;
}

.iphone-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--vs-ink);
}

.iphone-status-bar .icons { display: flex; gap: 6px; align-items: center; }

.app-content {
  height: calc(100% - 50px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 100px;
}

.app-content::-webkit-scrollbar { display: none; }

/* ===== Touch / mouse "tap" feel for mobile demo =====
   Detailed press + ripple is added by mobile-shell.js. Here we only
   prevent native text selection on UI chrome inside the iPhone screen
   so the cursor stays as a pointer (not I-beam). Inputs override this. */
.iphone-screen { -webkit-tap-highlight-color: rgba(26,77,58,.15); }

/* ===== Real-mobile mode: drop the iPhone frame on actual phones / installed PWA ===== */
@media (max-width: 480px), (display-mode: standalone) {
  body[data-mpage], body.is-mobile-app {
    background: var(--vs-paper) !important;
    padding: 0 !important;
    display: block !important;
    min-height: 100vh;
  }
  .back-pill, .back-pill-mobile { display: none !important; }
  .iphone-frame {
    width: 100% !important; height: 100vh !important; height: 100dvh !important;
    border-radius: 0 !important; padding: 0 !important;
    box-shadow: none !important; background: var(--vs-paper) !important;
  }
  .iphone-screen { border-radius: 0 !important; height: 100vh !important; height: 100dvh !important; }
  .iphone-notch { display: none !important; }
  /* Use real iOS status bar â€” hide our fake one */
  .iphone-status-bar { display: none !important; }
  .app-content { height: calc(100dvh - 0px) !important; padding-top: env(safe-area-inset-top, 14px); padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)) !important; }
  .tab-bar { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
}

/* ============================================
   Bottom tab bar (mobile)
   ============================================ */
.tab-bar {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--vs-line);
  border-radius: 28px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: var(--sh-2);
  z-index: 40;
}

.tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  border-radius: 14px;
  cursor: pointer;
  color: var(--vs-ink-soft);
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s;
}
.tab-btn.active {
  color: var(--vs-green-700);
  background: var(--vs-green-50);
}
.tab-btn svg { width: 22px; height: 22px; }

/* ============================================
   Generic UI atoms
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--vs-green-700); color: #fff; }
.btn-primary:hover { background: var(--vs-green-600); }
.btn-gold { background: var(--vs-gold); color: var(--vs-green-900); }
.btn-gold:hover { background: var(--vs-gold-600); color: #fff; }
.btn-dark { background: var(--vs-green-900); color: var(--vs-gold); border: 1px solid var(--vs-gold); }
.btn-dark:hover { background: var(--vs-green-800); }
.btn-ghost { background: transparent; color: var(--vs-ink); }
.btn-ghost:hover { background: var(--vs-line-soft); }
.btn-outline { background: #fff; color: var(--vs-green-900); border: 1px solid var(--vs-line); }
.btn-outline:hover { border-color: var(--vs-green-700); color: var(--vs-green-700); }
.btn-icon {
  width: 40px; height: 40px; padding: 0; border-radius: 50%;
  background: #fff; border: 1px solid var(--vs-line); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--vs-line-soft);
  color: var(--vs-ink);
}
.chip-primary { background: var(--vs-green-50); color: var(--vs-green-700); border: 1px solid var(--vs-green-100); }
.chip-gold    { background: var(--vs-gold-50); color: var(--vs-gold-600); border: 1px solid var(--vs-gold-100); }
.chip-success { background: #E6F4ED; color: var(--vs-success); }
.chip-hot     { background: var(--vs-green-900); color: var(--vs-gold); }
.chip-dark    { background: var(--vs-green-900); color: var(--vs-gold); }

.card {
  background: var(--vs-card);
  border-radius: var(--r-lg);
  border: 1px solid var(--vs-line);
  box-shadow: var(--sh-1);
}

/* Match score ring */
.score-ring {
  --score: 85;
  --color: var(--vs-green-700);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: conic-gradient(var(--color) calc(var(--score) * 1%), var(--vs-line) 0);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.score-ring::before {
  content: '';
  position: absolute;
  inset: 4px;
  background: #fff;
  border-radius: 50%;
}
.score-ring span {
  position: relative;
  font-weight: 700;
  font-size: 13px;
  color: var(--vs-green-900);
}

/* Image placeholder fallback (neutral) */
.img-cover { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Scrollbar hide for horizontal sliders */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

/* RTL helpers */
html[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* ============================================
   App shell â€” shared sidebar/topbar for all
   web app pages (dashboard, listings, etc.)
   ============================================ */
.app-shell { display: flex; min-height: 100vh; background: var(--vs-paper); }

.app-side {
  width: 240px; background: var(--vs-green-900); color: #fff;
  display: flex; flex-direction: column;
  padding: 18px 14px; position: sticky; top: 0; height: 100vh; flex-shrink: 0;
  overflow-y: auto;
}
.app-side .brand {
  display: flex; align-items: center; gap: 10px; padding: 4px 6px 18px;
  text-decoration: none; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 14px;
}
.app-side .brand .mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--vs-green-700); border: 1px solid var(--vs-gold);
  color: var(--vs-gold); font-weight: 800; display: grid; place-items: center;
  font-size: 13px; flex-shrink: 0;
}
.app-side .brand .label { display: flex; flex-direction: column; line-height: 1.1; }
.app-side .brand .label b { font-size: 14px; font-weight: 800; letter-spacing: .02em; }
.app-side .brand .label small { font-size: 9.5px; color: rgba(255,255,255,.5); letter-spacing: .14em; margin-top: 2px; }

.app-side .nav-section {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.35); padding: 14px 10px 6px; font-weight: 700;
}
.app-side nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.app-side a.nav-item {
  height: 40px; border-radius: 10px; padding: 0 12px;
  display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.7);
  position: relative; transition: all .15s; text-decoration: none;
  font-size: 13.5px; font-weight: 500;
}
.app-side a.nav-item i { flex-shrink: 0; color: rgba(255,255,255,.55); }
.app-side a.nav-item span.label { flex: 1; }
.app-side a.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.app-side a.nav-item:hover i { color: var(--vs-gold); }
.app-side a.nav-item.active {
  background: var(--vs-green-700); color: #fff;
  border: 1px solid rgba(201,169,97,.4); font-weight: 600;
}
.app-side a.nav-item.active i { color: var(--vs-gold); }
.app-side a.nav-item .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--vs-gold); flex-shrink: 0;
}
.app-side a.nav-item .badge {
  min-width: 22px; height: 20px; padding: 0 7px;
  border-radius: 10px; background: var(--vs-gold-50); color: var(--vs-gold-600);
  font-size: 11px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0;
}
.app-side .side-foot { border-top: 1px solid rgba(255,255,255,.08); padding-top: 10px; margin-top: 10px; }
.app-side .side-foot .me {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border-radius: 10px; text-decoration: none; color: #fff;
}
.app-side .side-foot .me:hover { background: rgba(255,255,255,.06); }
.app-side .side-foot .me img { width: 32px; height: 32px; border-radius: 50%; }
.app-side .side-foot .me .who { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.app-side .side-foot .me .who b { font-size: 12.5px; }
.app-side .side-foot .me .who small { font-size: 10.5px; color: rgba(255,255,255,.5); }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.app-top {
  height: 64px; background: #fff; border-bottom: 1px solid var(--vs-line);
  padding: 0 24px; display: flex; align-items: center; gap: 16px;
  position: sticky; top: 0; z-index: 30;
}
.app-top .crumb { font-size: 13px; color: var(--vs-ink-soft); }
.app-top .crumb b { color: var(--vs-ink); }
.app-top .search {
  flex: 1; max-width: 480px; position: relative;
}
.app-top .search input {
  width: 100%; padding: 9px 14px 9px 38px;
  background: var(--vs-paper); border: 1px solid var(--vs-line);
  border-radius: 12px; font-size: 13px; outline: none;
}
.app-top .search input:focus { border-color: var(--vs-green-700); background: #fff; }
.app-top .search svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--vs-ink-soft);
}

.app-body { padding: 28px; }
.app-body h1.page-title {
  font-family: 'Playfair Display', 'Cairo', serif;
  font-size: 30px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 4px;
}
.app-body .page-sub { color: var(--vs-ink-soft); font-size: 14px; margin: 0 0 22px; }

/* Form atoms */
.field { display: block; margin-bottom: 14px; }
.field > label {
  display: block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--vs-ink-soft); margin-bottom: 6px;
}
.input, .select, textarea.input {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--vs-line); border-radius: 12px;
  background: #fff; font-size: 14px; outline: none;
  font-family: inherit; color: var(--vs-ink);
}
.input:focus, .select:focus, textarea.input:focus { border-color: var(--vs-green-700); }
textarea.input { min-height: 100px; resize: vertical; }

.kpi {
  background: #fff; border: 1px solid var(--vs-line);
  border-radius: 16px; padding: 18px;
}
.kpi .label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--vs-ink-soft); }
.kpi .value { font-size: 28px; font-weight: 800; margin-top: 6px; line-height: 1; }
.kpi .delta { font-size: 12px; margin-top: 6px; color: var(--vs-success); display: inline-flex; align-items: center; gap: 4px; }

/* Section heading inside body */
.sec-head {
  display: flex; align-items: end; justify-content: space-between;
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--vs-line);
}
.sec-head h2 {
  font-family: 'Playfair Display','Cairo',serif;
  font-size: 22px; font-weight: 800; margin: 0; letter-spacing: -.01em;
}

/* Generic table */
.tbl { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--vs-line); }
.tbl th, .tbl td { padding: 12px 14px; text-align: left; font-size: 13px; vertical-align: middle; }
.tbl thead th { background: var(--vs-paper); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--vs-ink-soft); border-bottom: 1px solid var(--vs-line); }
.tbl tbody tr + tr td { border-top: 1px solid var(--vs-line-soft); }
.tbl tbody tr:hover { background: var(--vs-paper); }

/* Floating "back to showcase" pill â€” reused on every page */
.back-pill {
  position: fixed; top: 14px; right: 14px; z-index: 100;
  background: var(--vs-green-900); color: var(--vs-gold);
  border: 1px solid var(--vs-gold); border-radius: 999px;
  padding: 8px 14px; font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; box-shadow: var(--sh-2);
}
.back-pill:hover { background: var(--vs-green-800); }

/* Demo banner used across pages so they look "live" */
.demo-banner {
  background: linear-gradient(90deg, var(--vs-green-900), var(--vs-green-700));
  color: #fff; font-size: 12px; padding: 6px 16px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.demo-banner b { color: var(--vs-gold); }

/* Avatar circle */
.avatar { border-radius: 50%; object-fit: cover; }

/* Headings serif by default in app body */
.app-body h2, .app-body h3 { font-family: 'Playfair Display','Cairo',serif; letter-spacing: -.01em; }


/* -- Dark mode (opt-in via data-theme="dark" on <html>) ----------- */
html[data-theme="dark"]{
  --vs-paper:#0f1117;
  --vs-ink:#e6e8ec;
  --vs-ink-soft:#9aa3b2;
  --vs-line:#2a2f3a;
  --vs-line-soft:#1d2230;
  --vs-green-50:#1d1330;
  --vs-green-100:#2a1a44;
  --vs-paper-2:#10131c;
  color-scheme: dark;
}
html[data-theme="dark"] body{background:var(--vs-paper) !important;color:var(--vs-ink)}
html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .card,
html[data-theme="dark"] header,
html[data-theme="dark"] footer,
html[data-theme="dark"] .input,
html[data-theme="dark"] .select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] dialog,
html[data-theme="dark"] .modal{background:#171a23 !important;color:var(--vs-ink) !important;border-color:var(--vs-line) !important}
html[data-theme="dark"] .bg-gray-50,
html[data-theme="dark"] .bg-gray-100,
html[data-theme="dark"] .bg-slate-50,
html[data-theme="dark"] .bg-slate-100,
html[data-theme="dark"] .bg-\[var\(--vs-paper\)\]{background:#1d2230 !important;color:var(--vs-ink) !important}
html[data-theme="dark"] .text-gray-700,
html[data-theme="dark"] .text-gray-800,
html[data-theme="dark"] .text-gray-900,
html[data-theme="dark"] .text-slate-700,
html[data-theme="dark"] .text-slate-800,
html[data-theme="dark"] .text-slate-900,
html[data-theme="dark"] .text-black{color:var(--vs-ink) !important}
html[data-theme="dark"] .text-gray-500,
html[data-theme="dark"] .text-gray-600,
html[data-theme="dark"] .text-slate-500,
html[data-theme="dark"] .text-slate-600{color:var(--vs-ink-soft) !important}
html[data-theme="dark"] .border,
html[data-theme="dark"] .border-gray-200,
html[data-theme="dark"] .border-gray-300,
html[data-theme="dark"] .border-slate-200{border-color:var(--vs-line) !important}
html[data-theme="dark"] .tbl{background:#171a23}
html[data-theme="dark"] .tbl th{background:#1d2230;color:var(--vs-ink-soft)}
html[data-theme="dark"] .tbl tbody tr:hover{background:#1d2230}
html[data-theme="dark"] .input:focus,
html[data-theme="dark"] textarea:focus{background:#10131c !important}
html[data-theme="dark"] img.bg-white{background:transparent !important}

/* -- Dark mode: brand color overrides for text/badges --------------- */
html[data-theme="dark"] .text-\[var\(--vs-green-900\)\]{color:var(--vs-gold,#D4A24C) !important}
html[data-theme="dark"] .text-\[var\(--vs-green-800\)\]{color:#c4b5fd !important}
html[data-theme="dark"] .text-\[var\(--vs-green-700\)\]{color:#a78bfa !important}
html[data-theme="dark"] .bg-\[var\(--vs-paper\)\]{background:#1d2230 !important;color:var(--vs-ink-soft) !important}
html[data-theme="dark"] .border-\[var\(--vs-line\)\],
html[data-theme="dark"] .border-\[var\(--vs-line-soft\)\]{border-color:var(--vs-line) !important}
html[data-theme="dark"] .hover\:bg-\[var\(--vs-paper\)\]:hover{background:#1d2230 !important}
html[data-theme="dark"] .bg-amber-50{background:#3a2a10 !important;color:#fbbf24 !important;border-color:#5a3d18 !important}
html[data-theme="dark"] .bg-emerald-50{background:#0f2e22 !important;color:#34d399 !important;border-color:#1a4a36 !important}
html[data-theme="dark"] .text-amber-700{color:#fbbf24 !important}
html[data-theme="dark"] .text-emerald-700{color:#34d399 !important}
html[data-theme="dark"] .text-sky-700{color:#38bdf8 !important}
html[data-theme="dark"] .border-emerald-100,
html[data-theme="dark"] .border-amber-100,
html[data-theme="dark"] .border-sky-100{border-color:var(--vs-line) !important}
/* Inputs in dark mode (covers Tailwind bg-white inputs too) */
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="password"],
html[data-theme="dark"] input[type="number"],
html[data-theme="dark"] input[type="search"],
html[data-theme="dark"] input[type="tel"],
html[data-theme="dark"] input[type="url"],
html[data-theme="dark"] input[type="date"],
html[data-theme="dark"] select{background:#10131c !important;color:var(--vs-ink) !important;border-color:var(--vs-line) !important}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder{color:#6b7280 !important}
/* Common Tailwind bg colors that may appear */
html[data-theme="dark"] .bg-gray-50,
html[data-theme="dark"] .bg-gray-100,
html[data-theme="dark"] .bg-slate-50,
html[data-theme="dark"] .bg-slate-100,
html[data-theme="dark"] .bg-neutral-50,
html[data-theme="dark"] .bg-neutral-100,
html[data-theme="dark"] .bg-stone-50,
html[data-theme="dark"] .bg-stone-100,
html[data-theme="dark"] .bg-zinc-50,
html[data-theme="dark"] .bg-zinc-100{background:#1d2230 !important;color:var(--vs-ink) !important}
/* Divider lines */
html[data-theme="dark"] hr,
html[data-theme="dark"] .divide-y > * + *{border-color:var(--vs-line) !important}
/* Anchors that inherit (#1A0A2E) – keep readable */
html[data-theme="dark"] a{color:inherit}
html[data-theme="dark"] a.text-\[var\(--vs-green-900\)\]{color:var(--vs-gold,#D4A24C) !important}

/* -- Dark mode: component overrides (.btn-*, .card, .chip) ---------- */
html[data-theme="dark"]{
  --vs-card: #171a23;
}
html[data-theme="dark"] .card{background:var(--vs-card);color:var(--vs-ink);border-color:var(--vs-line)}
html[data-theme="dark"] .btn-outline{background:#171a23 !important;color:var(--vs-ink) !important;border-color:var(--vs-line) !important}
html[data-theme="dark"] .btn-outline:hover{background:#1d2230 !important;border-color:#a78bfa !important;color:#a78bfa !important}
html[data-theme="dark"] .btn-icon{background:#171a23 !important;border-color:var(--vs-line) !important;color:var(--vs-ink) !important}
html[data-theme="dark"] .btn-icon:hover{background:#1d2230 !important;border-color:#a78bfa !important}
html[data-theme="dark"] .btn-ghost{color:var(--vs-ink)}
html[data-theme="dark"] .btn-ghost:hover{background:#1d2230}
html[data-theme="dark"] .chip{background:#1d2230;color:var(--vs-ink);border-color:var(--vs-line)}
html[data-theme="dark"] .chip-primary{background:#2a1a44;color:#c4b5fd;border-color:#3b2a5e}
html[data-theme="dark"] .chip-gold{background:#3a2a10;color:#fbbf24;border-color:#5a3d18}
html[data-theme="dark"] .chip-success{background:#0f2e22;color:#34d399}
/* slate variants used in support tickets */
html[data-theme="dark"] .bg-slate-100.text-slate-700{background:#1d2230 !important;color:var(--vs-ink-soft) !important}
/* Tailwind text gradients: anything text-[var(--vs-green-900)] explicitly on button */
html[data-theme="dark"] button.text-\[var\(--vs-green-900\)\],
html[data-theme="dark"] a.text-\[var\(--vs-green-900\)\]{color:var(--vs-gold,#D4A24C) !important}
/* Property header / hero white panels — common in welcome.blade */
html[data-theme="dark"] section.bg-white,
html[data-theme="dark"] div.bg-white,
html[data-theme="dark"] nav.bg-white,
html[data-theme="dark"] aside.bg-white{background:#171a23 !important;color:var(--vs-ink) !important}
/* shadow utilities lose effect on dark – soften */
html[data-theme="dark"] .shadow,
html[data-theme="dark"] .shadow-sm,
html[data-theme="dark"] .shadow-md,
html[data-theme="dark"] .shadow-lg{box-shadow:0 4px 14px rgba(0,0,0,.45) !important}
/* Tailwind ring/divider colors */
html[data-theme="dark"] .ring-1,
html[data-theme="dark"] .ring-2{--tw-ring-color:var(--vs-line) !important}
/* Modal overlay backdrops */
html[data-theme="dark"] .bg-black\/50,
html[data-theme="dark"] .bg-black\/40,
html[data-theme="dark"] .bg-black\/30{background-color:rgba(0,0,0,.7) !important}
/* Header/topbar of app shell */
html[data-theme="dark"] .app-shell,
html[data-theme="dark"] .app-body{background:var(--vs-paper) !important;color:var(--vs-ink)}
