/* Roshdino · Dark mode lighter (slate / charcoal) — v1
   Lifts the near-black dark theme to a softer slate-charcoal, keeps orange accents.
   Only colours change; layout and logic are untouched. Light mode is not affected. */

html.dark {
  --background: #232a36;
  --foreground: #f0f2f6;
  --card: #2a3240;
  --card-foreground: #f0f2f6;
  --popover: #2f3848;
  --popover-foreground: #f0f2f6;
  --muted: #333c4c;
  --muted-foreground: #aab1bf;
  --border: #3a4456;
  --input: #46516299;
  --sidebar: #202734;
  --sidebar-foreground: #b4bac6;
  --sidebar-border: #3a4456;
  --secondary: #313b4a;
  --accent: #303a48;
  --sidebar-accent: #313b4a;
  --rd-tint: #343d4c;
  --rd-order-card: color-mix(in srgb, #2a3240 94%, #f97316 6%);

  /* internal surface tokens used by the panel, auth, footer, pages and assistant */
  --rd-list-bg: #232a36;
  --rd-list-surface: #2a3240;
  --rp-bg: #232a36;
  --rp-surface: #2a3240;
  --sf-bg: #232a36;
  --sf-bg2: #262e3a;
  --ai-bg: #252c38;
  --of-bg: #252c38;
  --auth-bg: #232a36;
  --auth-surface: #2a3240;

  color-scheme: dark;
}

/* hard-coded dark surfaces */
html.dark .balance-card,
html.dark .wallet-main-card {
  background: #2c3443;
}

html.dark .wallet-overview {
  background:
    radial-gradient(at 0 0, rgba(255, 140, 64, 0.14), transparent 70%),
    linear-gradient(130deg, #343b48, #2b323d);
  border-color: rgba(255, 140, 64, 0.22);
}

/* boot loader (shown before the app mounts) */
html.dark .rd-boot-loader,
html.dark body .rd-boot-loader {
  background: #232a36;
}

@media (prefers-color-scheme: dark) {
  .rd-boot-loader {
    background: #232a36;
    color-scheme: dark;
  }
}

/* ===== Boxes / cards: neutral slate with a subtle orange accent (was brown/orange-tinted) ===== */
html.dark .rd-order-v4 { --ord-soft: #2b3341; --ord-line: #3a4353; }
html.dark .rd-order-v4-avatar,
html.dark .rd-order-v4-add button,
html.dark .rd-order-v4-quote,
html.dark .rd-of-coupon-input button,
html.dark .rd-of-payment-icon,
html.dark .rd-of-total-card > i { background: #373f4e !important; }
html.dark .rd-of-overline { background: #2e3645 !important; border-color: rgba(255, 140, 64, 0.2) !important; }
html.dark .rd-of-stage-icon { background: linear-gradient(145deg, #3a4454, #2e3644) !important; }
html.dark .rd-of-alert { background: #343a47 !important; border-color: rgba(255, 120, 80, 0.35) !important; }
html.dark .rd-of-alert-icon,
html.dark .rd-of-alert > button { background: #434a58 !important; }
html.dark .rd-of-channel-capture { background: linear-gradient(135deg, #2c3340, #29303c) !important; }
html.dark .rd-of-channel-input { border-color: #46505f !important; }
html.dark .rd-of-channel-avatar,
html.dark .rd-channel-avatar.is-preview,
html.dark .rd-support-ticket-v2-avatar,
html.dark .rd-support-thread-avatar,
html.dark .rdt-review-avatar { background: linear-gradient(145deg, #3a4353, #2e3541) !important; }
html.dark .rd-of-quantity-hero { background: radial-gradient(circle at 50% 18%, #343d4c 0, #2a3240 60%, #232a36 100%) !important; }
html.dark .rd-of-pack-grid > button.is-selected { background: linear-gradient(160deg, #343d4d, #2b3340) !important; }
html.dark .rd-of-total-card { background: linear-gradient(135deg, #313a49, #2a3240) !important; }
html.dark .rd-of-total-card > span { background: #2e3645 !important; }
html.dark .rd-of-pay-total { background: radial-gradient(circle at 50% 0, #343d4c, #2a3240 65%, #232a36) !important; }
html.dark .rd-of-range { background: linear-gradient(90deg, var(--of-orange) 0, var(--of-orange) var(--rd-fill), #434b59 var(--rd-fill), #434b59 100%) !important; }
html.dark .rd7-pkg.rd8-pkg .rd7-pkg-feats i { background: linear-gradient(145deg, #3a4353, #2e3541) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important; }
html.dark .wallet-overview {
  background: radial-gradient(circle at 100% 0, rgba(255, 140, 64, 0.14), transparent 38%), linear-gradient(145deg, #343b48, #2b323d) !important;
  border-color: rgba(255, 140, 64, 0.22);
}
html.dark .route-growth {
  --rd-order-card: color-mix(in srgb, #2a3240 94%, #f97316 6%);
  --rd-order-inner: color-mix(in srgb, #232a36 88%, #f97316 6%);
  --rd-order-line: color-mix(in srgb, #46505f 80%, #f97316 20%);
}
html.dark .rd-order-v4-error { background: #343a47 !important; border-color: rgba(255, 120, 80, 0.35) !important; }
