/*
  Theme reinforcement layer
  Keeps the authored light experience crisp while making every primary surface,
  input, menu and data view intentionally readable in dark mode.
*/
html { background:var(--subtler); }
body,
.landing-refresh,
.premium-shell,
.premium-shell .app-sidebar,
.premium-shell .app-header,
.premium-shell .surface,
.premium-shell .section-card,
.modal,
.toast,
.currency-menu,
.profile-menu {
  transition:background-color .22s ease,background .22s ease,color .18s ease,border-color .22s ease,box-shadow .22s ease;
}

[data-theme="dark"] {
  color-scheme:dark;
  background:#07111f;
}
[data-theme="dark"] body {
  color:#edf4ff;
  background:linear-gradient(145deg,#07111f 0%,#0a1628 58%,#0b1530 100%);
}
[data-theme="dark"] .landing-refresh,
[data-theme="dark"] .landing-rebuild {
  color:#edf4ff;
  background:radial-gradient(circle at 80% 4%,rgba(79,127,255,.10),transparent 29rem),#091425;
}
[data-theme="dark"] .landing-refresh :is(h1,h2,h3,h4,strong,b) {
  color:#f3f7ff;
}
[data-theme="dark"] .landing-refresh :is(p,small,.muted,.route-copy > p,.section-heading > p:not(.eyebrow),.faq-answer) {
  color:#aebed5;
}
[data-theme="dark"] .landing-refresh .landing-nav,
[data-theme="dark"] .landing-rebuild .landing-nav-rebuild {
  border-color:rgba(107,135,181,.24);
  background:rgba(8,18,33,.88);
  box-shadow:0 10px 32px rgba(0,0,0,.18);
}
[data-theme="dark"] .landing-refresh .landing-nav :is(.brand,.nav-links a,.locale-current,.landing-theme) {
  color:#e9f1ff;
}
[data-theme="dark"] .landing-refresh .nav-links a:hover,
[data-theme="dark"] .landing-refresh .locale-current:hover,
[data-theme="dark"] .landing-refresh .landing-theme:hover {
  color:#fff;
  background:#132640;
}
[data-theme="dark"] .landing-refresh .locale-menu {
  border-color:#294361;
  background:#0e1d31;
  box-shadow:0 20px 50px rgba(0,0,0,.42);
}
[data-theme="dark"] .landing-refresh .locale-menu :is(p,small) { color:#9cafca; }
[data-theme="dark"] .landing-refresh .locale-menu button {
  color:#e5eeff;
  background:transparent;
}
[data-theme="dark"] .landing-refresh .locale-menu button:hover { background:#172c48; }
[data-theme="dark"] .landing-refresh :is(.section,.route-section,.confidence-section,.platforms-section,.faq-section,.ready-section,.landing-footer) {
  background:transparent;
}
[data-theme="dark"] .landing-refresh :is(.how-card,.flow-card,.route-card,.benefit-card,.faq-item,.landing-card,.service-snapshot,.delivery-snapshot,.catalog-visual) {
  border-color:#28425f;
  background:linear-gradient(145deg,#102039,#0c182b);
  box-shadow:0 16px 42px rgba(0,0,0,.22);
}
[data-theme="dark"] .landing-refresh :is(.catalog-table,.catalog-tabs,.service-picker-preview,.link-chip,.mini-ledger,.route-path > div,.platform-pill) {
  border-color:#29425f;
  background:#0c1a2d;
}
[data-theme="dark"] .landing-refresh :is(.catalog-table-head,.catalog-row) { border-color:#273f5c; }
[data-theme="dark"] .landing-refresh :is(.catalog-row strong,.catalog-row b,.service-picker-preview span,.route-card header,.platform-pill) { color:#e8f0ff; }
[data-theme="dark"] .landing-refresh :is(.catalog-row small,.catalog-row > span,.route-card header span,.mini-ledger span,.route-path > div,.platform-pill small) { color:#a9bbd5; }
[data-theme="dark"] .landing-refresh .route-card-old { background:linear-gradient(145deg,#211925,#151524); }
[data-theme="dark"] .landing-refresh .route-card-old .route-fee { border-color:#683d51; background:#2b1a2b; color:#f2b7c3; }
[data-theme="dark"] .landing-refresh .route-versus { color:#c9d8f1; border-color:#314a6d; background:#12233a; }
[data-theme="dark"] .landing-refresh .cta-panel,
[data-theme="dark"] .landing-refresh .cta-panel-rebuild {
  border-color:#325a92;
  background:radial-gradient(circle at 85% 9%,rgba(117,103,255,.34),transparent 27%),linear-gradient(135deg,#112f57,#101d43 68%,#1d1952);
}
[data-theme="dark"] .landing-refresh .landing-footer { border-color:#263f5c; }
[data-theme="dark"] .landing-refresh .landing-footer :is(a,p,span) { color:#aebed3; }
[data-theme="dark"] .landing-refresh .btn-secondary {
  color:#eaf2ff;
  border-color:#385270;
  background:#14263e;
}
[data-theme="dark"] .landing-refresh .btn-secondary:hover { background:#1a3151; }

[data-theme="dark"] .premium-shell {
  --shell-surface:rgba(13,28,49,.94);
  --shell-line:rgba(75,103,146,.58);
  background:radial-gradient(circle at 75% -10%,rgba(83,125,239,.18),transparent 31rem),radial-gradient(circle at 6% 34%,rgba(147,101,255,.11),transparent 29rem),#071322;
}
[data-theme="dark"] .premium-shell :is(.app-sidebar,.app-header) {
  border-color:#27415e;
  background:rgba(8,20,36,.86);
}
[data-theme="dark"] .premium-shell .app-sidebar {
  background:linear-gradient(180deg,#0b1b30,#091627);
}
[data-theme="dark"] .premium-shell .side-nav a { color:#b8c8df; }
[data-theme="dark"] .premium-shell .side-nav a:hover { color:#eff5ff; border-color:#294562; background:#142945; }
[data-theme="dark"] .premium-shell .side-nav a.active { color:#fff; border-color:#4a91ff; background:linear-gradient(125deg,#125cdd,#3d80f0); }
[data-theme="dark"] .premium-shell .mini-user,
[data-theme="dark"] .premium-shell .profile-menu,
[data-theme="dark"] .premium-shell .currency-menu {
  color:#eaf2ff;
  border-color:#29445f;
  background:#0d1d33;
  box-shadow:0 18px 42px rgba(0,0,0,.38);
}
[data-theme="dark"] .premium-shell .profile-menu :is(a,button),
[data-theme="dark"] .premium-shell .currency-menu button { color:#d7e4f6; }
[data-theme="dark"] .premium-shell .profile-menu :is(a,button):hover,
[data-theme="dark"] .premium-shell .currency-menu button:hover { background:#172e4c; }
[data-theme="dark"] .premium-shell .surface,
[data-theme="dark"] .premium-shell .section-card,
[data-theme="dark"] .premium-shell .quick-card,
[data-theme="dark"] .premium-shell .modal,
[data-theme="dark"] .modal {
  color:#eaf2ff;
  border-color:#29445f;
  background:linear-gradient(145deg,rgba(15,31,53,.98),rgba(10,23,40,.98));
  box-shadow:0 18px 46px rgba(0,0,0,.27);
}
[data-theme="dark"] .premium-shell :is(.page-title p,.section-card > p,.surface > p,.field-note,.settings-section > p,.modal-sub,.modal-footer) {
  color:#aabbd2;
}
[data-theme="dark"] .premium-shell :is(.page-title h2,.section-card h3,.surface h3,.surface h4,.profile-card h3,.modal-heading) { color:#f2f6ff; }
[data-theme="dark"] .premium-shell :is(.form-control,.static-field,.input-with-icon,.receipt) {
  color:#ecf4ff;
  border-color:#304b6c;
  background:#091a2e;
}
[data-theme="dark"] .premium-shell :is(.form-control::placeholder,.input-with-icon .svg-icon,.receipt) { color:#8094b1; }
[data-theme="dark"] .premium-shell :is(select.form-control,option) { color:#eaf2ff; background-color:#0b1b30; }
[data-theme="dark"] .premium-shell .tabs { border-color:#263f5d; background:#0b1a2d; }
[data-theme="dark"] .premium-shell .tabs button { color:#a9bad0; }
[data-theme="dark"] .premium-shell .tabs button.active { color:#eaf3ff; background:#1a385d; box-shadow:inset 0 0 0 1px #356095; }
[data-theme="dark"] .premium-shell :is(.data-table th,.data-table td,.order-mobile-row,.ticket-row,.service-row,.activity-row) { border-color:#28425e; }
[data-theme="dark"] .premium-shell .data-table th { color:#8ea4c1; background:#0c1c31; }
[data-theme="dark"] .premium-shell .data-table td { color:#dbe8fb; }
[data-theme="dark"] .premium-shell .data-table small,
[data-theme="dark"] .premium-shell :is(.service-meta,.activity-row small,.order-mobile-row small,.profile-card p) { color:#9db0cb; }
[data-theme="dark"] .premium-shell :is(.service-row:hover,.activity-row:hover,.order-mobile-row:hover) { background:#10243e; }
[data-theme="dark"] .premium-shell .balance-pill { color:#cde0ff; border-color:#345b92; background:linear-gradient(135deg,#112d54,#152847); }
[data-theme="dark"] .premium-shell .balance-card {
  color:#eff5ff;
  border-color:#345a8c;
  background:radial-gradient(circle at 82% 16%,rgba(125,103,255,.26),transparent 26%),linear-gradient(130deg,#102d52,#0d1d34 62%,#171a47);
}
[data-theme="dark"] .premium-shell :is(.payment-method,.profile-mini > div,.brief-data > div,.payment-details > div,.info-callout,.order-safety,.drip-options) {
  color:#dce9fb;
  border-color:#2d4969;
  background:#0b1b30;
}
[data-theme="dark"] .premium-shell .payment-method.selected,
[data-theme="dark"] .premium-shell .platform-tile.active { border-color:#468aff; background:linear-gradient(145deg,#11335f,#102747); }
[data-theme="dark"] .premium-shell .settings-guide,
[data-theme="dark"] .premium-shell .catalog-control-strip,
[data-theme="dark"] .premium-shell .admin-banner {
  color:#dceaff;
  border-color:#31588e;
  background:radial-gradient(circle at 86% -20%,rgba(114,91,245,.22),transparent 40%),linear-gradient(130deg,#102b4d,#0d1e38);
}
[data-theme="dark"] .premium-shell .settings-guide :is(ol,span,p),
[data-theme="dark"] .premium-shell .catalog-control-strip small { color:#a9bdd9; }
[data-theme="dark"] .premium-shell .admin-metric,
[data-theme="dark"] .premium-shell .admin-panel,
[data-theme="dark"] .premium-shell .chart-card {
  border-color:#294560;
  background:linear-gradient(145deg,#0f2037,#0c1a2e);
}
[data-theme="dark"] .premium-shell .admin-metric small { color:#8fa6c3; }
[data-theme="dark"] .premium-shell .broadcast-preview,
[data-theme="dark"] .premium-shell .news-library article,
[data-theme="dark"] .premium-shell .campaign-card { border-color:#2b4867; background:#0c1c30; }
[data-theme="dark"] .premium-shell .empty { color:#aabbd1; }
[data-theme="dark"] .premium-shell .toast { color:#eaf2ff; background:#10223a; }
[data-theme="dark"] .premium-shell .auth-switch { background:#09192c; }
[data-theme="dark"] .premium-shell .auth-switch button.active { color:#dce9ff; background:#183052; box-shadow:0 6px 15px rgba(0,0,0,.22); }
[data-theme="dark"] .premium-shell .modal-success { color:#aaf1ce; border-color:#2b6a58; background:#10382f; }
[data-theme="dark"] #toast-region .toast { color:#eaf2ff; border-color:#2d496b; background:#10213a; }
[data-theme="dark"] #toast-region .toast span { color:#aabbd1; }

@media (max-width:760px) {
  [data-theme="dark"] .premium-shell .app-mobile-nav {
    border-color:#3d7ee1;
    background:linear-gradient(125deg,#104dbb,#236bd5);
    box-shadow:0 13px 31px rgba(0,0,0,.36);
  }
  [data-theme="dark"] .landing-refresh .hero-actions .btn-secondary { border-color:#5a77a5; }
}
