/* Loaded last so the two themes share the existing page layout. */
.theme-toggle{flex:none;display:grid;place-items:center;width:38px;height:38px;padding:0;border:1px solid #dce6f1;border-radius:10px;background:#f7faff;color:#263d5d}
.theme-toggle:hover,.theme-toggle:focus-visible{background:#eaf2ff;outline:2px solid transparent;box-shadow:0 0 0 3px #2563eb25}
.theme-icon{width:19px;height:19px}
.sun-icon{display:none}
html[data-theme=dark] .moon-icon{display:none}
html[data-theme=dark] .sun-icon{display:block}

html[data-theme=dark]{color-scheme:dark;--ink:#eaf0fb;--muted:#b1bfd2;--line:#34445c;--bg:#0c1422;--brand:#8bb5ff;--dark:#f2f6fd;--surface:#162238;--surface-raised:#1c2b43;--surface-soft:#22344e;--success:#69e3aa;--danger:#ff929c}
html[data-theme=dark] body{background:var(--bg);color:var(--ink)}
html[data-theme=dark] :is(.home-page,.rental-page){background:radial-gradient(circle at 78% 0%,#173052 0,transparent 35%),radial-gradient(circle at 7% 78%,#123329 0,transparent 32%),var(--bg)}
html[data-theme=dark] :is(body>header,.rental-page header,.rental-page footer){background:#121e31e8;border-color:var(--line)}
html[data-theme=dark] :is(.brand,nav a,.link){color:var(--ink)}
html[data-theme=dark] .brand span{color:var(--brand)}
html[data-theme=dark] :is(body>header nav a:hover,.rental-page header nav a:hover){color:#afd0ff}
html[data-theme=dark] body>header .link:hover{color:var(--danger)}
html[data-theme=dark] :is(.button.ghost,.grid article,.card,.stats article,.conversation .reply){background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] .button.ghost{color:var(--brand)}
html[data-theme=dark] :is(.button:not(.ghost):not(.danger),.catalog-name-form button,.service-name-list button){background:#2e67d6;color:#fff}
html[data-theme=dark] :is(.form input,.form textarea,.form select,input[type=search]){background:var(--surface-raised);border-color:var(--line);color:var(--ink)}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#a7b8d0;opacity:1}
html[data-theme=dark] :is(input,textarea,select,button,a):focus-visible{outline:2px solid #8bb5ff;outline-offset:2px}
html[data-theme=dark] :is(.theme-toggle,.language-picker summary){background:var(--surface-raised);border-color:var(--line);color:var(--ink)}
html[data-theme=dark] :is(.theme-toggle:hover,.language-picker[open] summary){background:var(--surface-soft)}
html[data-theme=dark] .language-options{background:var(--surface);border-color:var(--line)}
html[data-theme=dark] .language-options a{color:var(--ink)}
html[data-theme=dark] :is(.language-options a:hover,.language-options a[aria-current=true]){background:var(--surface-soft);color:var(--brand)}
html[data-theme=dark] :is(.flash.success,.portal-toast.success){background:#123b2c;border-color:#276b4c;color:#b8f7d4}
html[data-theme=dark] :is(.flash.error,.portal-toast.error){background:#44242e;border-color:#89505a;color:#ffd0d4}

/* Public storefront. */
html[data-theme=dark] .store-hero-copy h1{color:var(--ink)}
html[data-theme=dark] :is(.store-hero-copy p,.store-hero-meta,.store-preview-top,.store-preview p,.store-section-head p,.store-card-country,.store-guide-grid p,.guest-catalog-intro p,.guest-service-detail p,.guest-service-price span,.guest-info-grid p){color:var(--muted)}
html[data-theme=dark] :is(.store-preview,.store-service-card,.store-guide-grid article,.guest-catalog-intro,.guest-service-detail,.guest-info-grid article){background:#162238ed;border-color:var(--line);color:var(--ink)}
html[data-theme=dark] :is(.store-preview-search,.store-preview-row,.guest-catalog-facts span){background:var(--surface-raised);border-color:var(--line);color:var(--muted)}
html[data-theme=dark] .store-preview-row{color:var(--ink)}
html[data-theme=dark] :is(.store-section,.store-preview-search){border-color:var(--line)}
html[data-theme=dark] :is(.store-service-card strong,.store-preview-row strong,.guest-service-price strong){color:var(--success)}
html[data-theme=dark] :is(.store-card-icon,.store-preview-icon){background:var(--surface-soft);color:var(--brand)}
html[data-theme=dark] .store-card-icon:has(img){background:#e7edf7}
html[data-theme=dark] :is(.store-card-link,.store-preview-bottom,.store-guide-grid article>span,.guest-info-number,.guest-catalog-facts strong){color:var(--brand)}
html[data-theme=dark] :is(.store-disclosure,.guest-catalog-note){background:#1b3147;border-color:#35536b;color:#c7d7e8}
html[data-theme=dark] .store-hero-meta span:before{background:#184533;color:var(--success)}

/* Country/service catalog and rental workspace. */
html[data-theme=dark] :is(.rental-sidebar,.rental-sidebar-footer){background:#142137ed;border-color:var(--line)}
html[data-theme=dark] :is(.rental-sidebar-heading,.rental-filters){border-color:var(--line)}
html[data-theme=dark] :is(.sidebar-toggle,.copy-button,.rental-empty-icon,.store-card-icon){background:var(--surface-soft);border-color:var(--line);color:var(--brand)}
html[data-theme=dark] :is(.sidebar-toggle:hover,.copy-button:hover){background:#304868}
html[data-theme=dark] .sidebar-resizer{background:#263750}
html[data-theme=dark] .sidebar-resizer:after{background:#6983a4}
html[data-theme=dark] :is(.sidebar-resizer:hover,.sidebar-resizer:focus){background:#34506f}
html[data-theme=dark] :is(.rental-filters .filter-label,.rental-card-kicker,.field-caption){color:#b7c6d8}
html[data-theme=dark] :is(.country-picker summary,.country-picker-menu,.country-picker-menu input,.rental-filters #service-search,.catalog-filter select,.catalog-filter input[type=search]){background:var(--surface-raised);border-color:var(--line);color:var(--ink)}
html[data-theme=dark] :is(.country-picker summary,.country-picker-menu){box-shadow:0 12px 28px #0207124d}
html[data-theme=dark] .country-options a{color:var(--ink)}
html[data-theme=dark] :is(.country-options a:hover,.country-options a:focus,.country-options a[aria-current=true]){background:var(--surface-soft)}
html[data-theme=dark] :is(.rental-service-row:hover,.rental-service-row.is-selected){background:#243b5b;border-color:#46638a}
html[data-theme=dark] .rental-service-icon:not(.has-icon){background:var(--surface-soft);color:#d5e6ff}
html[data-theme=dark] .rental-service-icon.has-icon{background:#e7edf7;border-color:#afbdd0}
html[data-theme=dark] :is(.rental-service-price,.rental-selection strong,.header-balance strong){color:var(--success)}
html[data-theme=dark] .header-balance{background:#163c2d;border-color:#2e7854;color:#d0e9da}
html[data-theme=dark] :is(.rental-overview,.rental-order-card,.rental-card,.rental-empty){background:#162238ed;border-color:var(--line)}
html[data-theme=dark] .rental-order-card.waiting{border-inline-start-color:#79aaff}
html[data-theme=dark] .rental-order-card.received{border-inline-start-color:var(--success)}
html[data-theme=dark] .rental-order-card.cancelled{border-inline-start-color:var(--danger)}
html[data-theme=dark] .rental-metrics>div{background:var(--surface-raised);border-color:var(--line)}
html[data-theme=dark] .rental-metrics strong{color:#a9c8ff}
html[data-theme=dark] .rental-metrics>div:nth-child(2) strong{color:var(--success)}
html[data-theme=dark] :is(.rental-metrics span,.rental-orders-heading span,.rental-selection,.rental-card-actions){color:var(--muted)}
html[data-theme=dark] :is(.rental-data-panel,.copy-field,.otp-pending){background:var(--surface-raised);border-color:var(--line);color:var(--ink)}
html[data-theme=dark] .rental-order-card .status.waiting,html[data-theme=dark] .detail-waiting-status{background:#213d62;color:#d1e3ff}
html[data-theme=dark] .otp-pending{background:#1c3657;border-color:#355579;color:#d1e3ff}
html[data-theme=dark] .indeterminate-spinner{border-color:#54739a;border-top-color:#b2d0ff;border-right-color:transparent}
html[data-theme=dark] :is(.otp-field strong,.otp-field.is-revealed strong){color:var(--success)}
html[data-theme=dark] .otp-field.is-revealed{background:#183f31;border-color:#357455}
html[data-theme=dark] .rental-credit{background:#153b2c;border-color:#326b4f;color:#cef3dc}
html[data-theme=dark] :is(.rental-empty-icon,.guest-catalog-facts span){border-color:var(--line)}
html[data-theme=dark] .rental-total,html[data-theme=dark] .pill{background:var(--surface-raised);border-color:var(--line);color:#c7dbfa}
html[data-theme=dark] .wallet-chip{background:var(--surface);border-color:var(--line);color:var(--muted)}
html[data-theme=dark] .wallet-chip strong{color:var(--ink)}
html[data-theme=dark] .status.waiting{background:#4c3820;color:#ffe0a3}
html[data-theme=dark] .status.received{background:#174331;color:#b8f7d4}
html[data-theme=dark] .status.cancelled{background:#4b2731;color:#ffd0d4}
html[data-theme=dark] .otp-display{background:#174331;color:#b8f7d4}
html[data-theme=dark] .number-display{color:#c6ddff}
html[data-theme=dark] :is(.catalog-source-note,.guest-catalog-facts span){color:var(--muted)}
html[data-theme=dark] :is(.catalog-name-form input,.catalog-name-form select,.service-name-list input){background:var(--surface-raised);border-color:var(--line);color:var(--ink)}
html[data-theme=dark] .service-icon{background:var(--surface-soft);color:var(--brand)}

@media(max-width:720px){.theme-toggle{width:35px;height:35px}}
.google-finish{display:grid;place-content:center;gap:10px;text-align:center}
