/* Shared dark palette. Loaded after the view styles to cover legacy inline rules. */
.ss-theme-toggle {
  width: 36px;
  min-height: 36px;
  padding: 8px;
  flex-shrink: 0;
}
.ss-theme-toggle [data-theme-icon="sun"],
.ss-mobile-label {
  display: none;
}
html.dark .ss-theme-toggle [data-theme-icon="moon"] {
  display: none;
}
html.dark .ss-theme-toggle [data-theme-icon="sun"] {
  display: block;
}
html.dark {
  color-scheme: dark;
  --ss-bg: #15191f;
  --ss-paper: #1d232c;
  --ss-raised: #252e3b;
  --ss-text: #e7ebf3;
  --ss-muted: #a8b2c3;
  --ss-line: #323d4e;
  --ss-selected: #303d59;
  --ss-accent: #b1c2ef;
  --bg: #15191f;
  --surface: #1d232c;
  --surface-2: #252e3b;
  --surface-hover: #2c3748;
  --line: #323d4e;
  --line-strong: #46546a;
  --text: #e7ebf3;
  --text-strong: #f4f6fb;
  --muted: #a8b2c3;
  --faint: #8491a8;
  --accent: #b1c2ef;
  --accent-soft: #303d59;
}
html.dark body.silent-cabinet {
  --ss-bg: #15191f;
  --ss-paper: #1d232c;
  --ss-raised: #252e3b;
  --ss-text: #e7ebf3;
  --ss-muted: #a8b2c3;
  --ss-line: #323d4e;
  --ss-selected: #303d59;
  background: var(--ss-bg) !important;
  border-color: #293341 !important;
  color: var(--ss-text) !important;
}
html.dark:has(body.silent-cabinet) {
  background: #10141b !important;
}
html.dark ::selection {
  background: #546da4 !important;
  color: #fff !important;
}
html.dark ::-webkit-scrollbar-track {
  background: #1b222d;
}
html.dark ::-webkit-scrollbar-thumb {
  background: #46546a;
  border-radius: 10px;
}
html.dark :is(button, a, input, textarea, select, summary):focus-visible {
  outline-color: #9eb5ee !important;
}
html.dark :is(input, textarea, select) {
  color-scheme: dark;
}
html.dark input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #252e3b inset !important;
  -webkit-text-fill-color: #e7ebf3 !important;
  caret-color: #e7ebf3;
}
html.dark .ss-btn:not(.ss-btn--primary) {
  background: var(--ss-raised);
  border-color: #3d4a61;
  color: #d9e2f3;
}
html.dark .ss-btn:not(.ss-btn--primary):hover {
  background: #303d52;
  border-color: #536684;
}
html.dark .ss-wash-blue {
  background:
    radial-gradient(ellipse at 80% 0, #4973a84d, transparent 65%),
    radial-gradient(ellipse at 10% 0, #756ba43b, transparent 65%),
    linear-gradient(#293448, #1d2532);
}
html.dark .ss-wash-mint {
  background:
    radial-gradient(ellipse at 10% 0, #498d8752, transparent 70%),
    radial-gradient(ellipse at 100% 0, #9c7e7440, transparent 65%),
    linear-gradient(#293b3c, #202a32);
}
html.dark .ss-wash-peach {
  background:
    radial-gradient(ellipse at 10% 0, #8e658a52, transparent 70%),
    radial-gradient(ellipse at 100% 0, #9d8d5945, transparent 65%),
    linear-gradient(#3b313c, #272932);
}

/* Storefront */
html.dark body.storefront {
  background: #10141b;
  color: var(--ss-text);
}
html.dark .store-frame {
  background: #181e27;
  border-color: #293341;
  box-shadow: 0 14px 55px #00000025;
}
html.dark .store-nav {
  background: #1b222d;
  border-color: var(--ss-line);
}
html.dark .store-nav__links,
html.dark .store-status,
html.dark .store-hero p,
html.dark .store-hero__note,
html.dark .store-strip,
html.dark .store-heading p,
html.dark .store-product p,
html.dark .store-product__bottom small,
html.dark .store-steps p,
html.dark .store-faq details p,
html.dark .store-cta p,
html.dark .store-footer {
  color: #adb8cc;
}
html.dark .store-nav__links a:hover,
html.dark .store-footer a:hover,
html.dark .store-faq a:hover {
  color: #d7e3ff;
}
html.dark .store-preview {
  background: #1e2632;
  border-color: #3d4b63;
  box-shadow: 0 18px 50px #00000026;
}
html.dark .store-preview__bar {
  background: #202936;
  border-color: #38465c;
  color: #aab7ce;
}
html.dark .preview-dots i {
  background: #53617a;
}
html.dark .store-preview__title {
  color: #e4eaf7;
}
html.dark .preview-stat {
  border-color: #45536c;
}
html.dark .preview-stat small {
  color: #b5c1d6;
}
html.dark .preview-badge {
  background: #293d34;
  border-color: #3e5748;
  color: #b9d4b8;
}
html.dark .preview-table th {
  background: #252f3e;
  border-color: #39475e;
  color: #a8b6ce;
}
html.dark .preview-table td {
  border-color: #354257;
  color: #d7e1f4;
}
html.dark .preview-product i {
  background: #2d3b51;
  border-color: #3d4d69;
  color: #b0c5e8;
}
html.dark .store-strip {
  border-color: var(--ss-line);
}
html.dark .store-strip b {
  color: #b8c5dc;
}
html.dark .store-product {
  background: var(--ss-paper);
  border-color: var(--ss-line);
}
html.dark .store-product__art {
  border-color: #38455a;
}
html.dark .product-glyph {
  background: #a1b6dc14;
  border-color: #7388ad55;
  color: #c0cff0;
  box-shadow: 0 8px 25px #00000015;
}
html.dark .product-glyph + span {
  background: #c0d1f01c;
  border-color: #7d94b655;
  color: #c6d3ed;
}
html.dark .store-workflow {
  background: #1b222d;
  border-color: var(--ss-line);
}
html.dark .store-step__number {
  border-color: #46546a;
  background: #252f3e;
  color: #c4d1e8;
}
html.dark .store-faq,
html.dark .store-faq details,
html.dark .store-footer {
  border-color: var(--ss-line);
}
html.dark .store-faq summary:after {
  color: #adbcd5;
}
html.dark .store-cta {
  border-color: #45536c;
}
html.dark .store-footer .ss-brand {
  color: #e0e8f8;
}
html.dark .store-menu {
  background: var(--ss-raised);
  border-color: #3d4a61;
  color: #d9e2f3;
}

/* Authentication, registration, email verification and recovery */
html.dark body.silent-auth {
  background: #10141b;
  color: var(--ss-text);
}
html.dark body.silent-auth .authpage {
  border-color: #293341 !important;
  background: var(--ss-paper) !important;
  box-shadow: 0 14px 55px #00000025;
}
html.dark body.silent-auth .authpage__hero {
  background: #181f29 !important;
  border-color: var(--ss-line) !important;
}
html.dark body.silent-auth .authpage__cardwrap,
html.dark body.silent-auth .authpage__card {
  background: var(--ss-paper) !important;
  color: var(--ss-text) !important;
}
html.dark body.silent-auth .authpage__title,
html.dark body.silent-auth .authpage__cardhead h2 {
  color: var(--ss-text) !important;
}
html.dark body.silent-auth .authpage__copy,
html.dark body.silent-auth .authpage__cardhead p,
html.dark body.silent-auth .authpage__footer,
html.dark body.silent-auth .authpage__form label > span,
html.dark body.silent-auth .authpage__ghost {
  color: var(--ss-muted) !important;
}
html.dark body.silent-auth .authpage__footer a:hover {
  color: #d9e5ff;
}
html.dark .auth-preview {
  background: #202936;
  border-color: #3b4a61;
  box-shadow: 0 7px 20px #00000018;
  color: #e1e9fa;
}
html.dark .auth-preview__head > span,
html.dark .auth-preview__stats small {
  color: #b0bed7;
}
html.dark .auth-preview__stats > div {
  border-color: #45536c;
}
html.dark .auth-preview__stats > .ss-wash-blue {
  background: linear-gradient(125deg, #394769, #27374b);
}
html.dark .auth-preview__stats > .ss-wash-mint {
  background: linear-gradient(125deg, #31504e, #3f4146);
}
html.dark .auth-preview__row {
  border-color: #35435a;
}
html.dark body.silent-auth .authpage__socialbtn {
  background: #263142 !important;
  border-color: #3b4b64 !important;
  color: #d9e4f7 !important;
}
html.dark body.silent-auth .authpage__socialbtn--tg {
  background: #283b56 !important;
  border-color: #415d82 !important;
  color: #ccdef8 !important;
}
html.dark body.silent-auth .authpage__socialbtn:hover {
  background: #303f56 !important;
}
html.dark body.silent-auth .authpage__divider {
  color: #99a9c3;
}
html.dark body.silent-auth .authpage__divider:before,
html.dark body.silent-auth .authpage__divider:after {
  background: var(--ss-line);
}
html.dark body.silent-auth .authpage__seg {
  background: #151c27 !important;
  border-color: #35435a !important;
}
html.dark body.silent-auth .authpage__seg button {
  color: #aab8d1;
}
html.dark body.silent-auth .authpage__seg button.active {
  background: #34435b !important;
  color: #eef3ff !important;
}
html.dark body.silent-auth .authpage__form input,
html.dark body.silent-auth #authEmailCode,
html.dark body.silent-auth #auth2faCode {
  background: #242e3e !important;
  border-color: #43536e !important;
  color: #edf3ff !important;
  box-shadow: none !important;
}
html.dark body.silent-auth .authpage__form input::placeholder {
  color: #9baac3;
}
html.dark body.silent-auth .authpage__eye {
  color: #acbbd3;
}
html.dark body.silent-auth .authpage__theme {
  background: #293447 !important;
  border-color: #465977 !important;
  color: #cfddf7 !important;
}
html.dark body.silent-auth #toast {
  background: #29364b !important;
  border-color: #485b7c !important;
  color: #edf3ff !important;
}
html.dark body.silent-auth #toastText {
  color: #edf3ff !important;
}
html.dark body.silent-auth .text-\[\#111\],
html.dark body.silent-auth .text-slate-600 {
  color: #d2dff4 !important;
}
html.dark body.silent-auth .text-\[\#2388ff\] {
  color: #bdcefa !important;
}

/* Cabinet shell and catalogue */
html.dark body.silent-cabinet #appSidebar {
  background: var(--ss-paper) !important;
  border-color: var(--ss-line) !important;
}
html.dark body.silent-cabinet #appSidebar .sidebar-link {
  color: #b8c4d8 !important;
}
html.dark body.silent-cabinet #appSidebar .sidebar-link:hover {
  background: #29354a !important;
  color: #e9f0ff !important;
}
html.dark body.silent-cabinet #appSidebar .sidebar-link.active {
  background: #303e59 !important;
  color: #d8e4ff !important;
}
html.dark
  body.silent-cabinet
  #appSidebar
  .sidebar-link.active
  :is(span, i, svg) {
  color: #d8e4ff !important;
}
html.dark body.silent-cabinet #appSidebar .sidebar-link.active .badge-count {
  background: #475a7d !important;
  color: #ecf2ff !important;
  border-color: #5a6e92 !important;
}
html.dark body.silent-cabinet #appSidebar > div:last-child > .glass-card {
  background: #242e3d !important;
  border-color: #36465f !important;
}
html.dark body.silent-cabinet #userAvatar {
  background: #354764 !important;
  color: #dde9ff !important;
}
html.dark body.silent-cabinet #userBalance {
  color: #b3c5e4 !important;
}
html.dark .cabinet-topbar,
html.dark .cabinet-products,
html.dark .cabinet-reward {
  background: var(--ss-paper);
  border-color: var(--ss-line);
}
html.dark .cabinet-search,
html.dark .cabinet-help.ss-btn,
html.dark .cabinet-avatar {
  background: #263244;
  border-color: #3d4d67;
  color: #b9c9e4;
}
html.dark .cabinet-search kbd {
  background: #35455e;
  border-color: #4a5e7f;
  color: #d4e2fb;
}
html.dark .cabinet-stat__bottom,
html.dark .cabinet-stat > .ss-icon {
  color: #b1bfd6;
}
html.dark .cabinet-products-table th {
  background: #202a38;
  color: #aabbd6;
}
html.dark .cabinet-products-table td {
  border-color: var(--ss-line);
  color: #b4c2db;
}
html.dark .cabinet-product-name {
  color: #e1e9fa;
}
html.dark .cabinet-product-icon {
  background: #30425f;
  border-color: #455c83;
  color: #bdd2f5;
}
html.dark .cabinet-product-icon--mint {
  background: #2b453e;
  border-color: #426356;
  color: #b7d8c8;
}
html.dark .cabinet-tag {
  background: #2b3649;
  border-color: #40516d;
  color: #bfcee7;
}
html.dark .cabinet-reward,
html.dark .cabinet-reward > button {
  color: #b0bdd4;
}
html.dark .cabinet-support-card {
  background: #222d3d;
  border-color: #3a4b67;
  box-shadow: none;
}
html.dark .cabinet-support-card strong {
  color: #d1def4;
}
html.dark .cabinet-support-card > span:not([class]) {
  color: #a6b7d3;
}
html.dark body.silent-cabinet .cat-pill {
  background: #232e40 !important;
  border-color: #3b4a64 !important;
  color: #b9c7df !important;
}
html.dark body.silent-cabinet .cat-pill.active {
  background: #354a6f !important;
  border-color: #586f96 !important;
  color: #e5eeff !important;
}
html.dark body.silent-cabinet .cat-pill.active * {
  color: inherit !important;
}
html.dark body.silent-cabinet .sort-btn {
  background: #253043 !important;
  border-color: #3a4b65 !important;
  color: #b8c6e0 !important;
}
html.dark body.silent-cabinet .sort-btn.active {
  background: #405778 !important;
  color: #edf3ff !important;
  border-color: #617b9f !important;
}
html.dark body.silent-cabinet .catalog-list-row {
  background: var(--ss-paper) !important;
  border-color: var(--ss-line) !important;
}
html.dark body.silent-cabinet .catalog-tag-green {
  background: #2b4036 !important;
  color: #bad7bb !important;
  border-color: #405b48 !important;
}
html.dark body.silent-cabinet #catalogSearch {
  background: #232e3e !important;
  color: #e0eafd !important;
  border-color: #405371 !important;
}
html.dark
  body.silent-cabinet
  .h1-container
  :is(
    .text-black,
    .text-slate-900,
    .text-slate-800,
    .text-slate-700,
    .text-zinc-900
  ) {
  color: #dce6f8 !important;
}
html.dark
  body.silent-cabinet
  .h1-container
  :is(.text-slate-500, .text-slate-400, .text-zinc-400, .text-zinc-500) {
  color: #a9b9d2 !important;
}
html.dark
  body.silent-cabinet
  .h1-container
  :is(
    .bg-white,
    .bg-slate-50,
    .bg-slate-100,
    .bg-blue-50,
    [class*="bg-white/5"],
    [class*="bg-white/[0."]
  ) {
  background-color: #253144 !important;
  border-color: #3c4d69 !important;
}
html.dark body.silent-cabinet .glass-card {
  background: var(--ss-paper) !important;
  border-color: var(--ss-line) !important;
}
html.dark body.silent-cabinet :is(input, select, textarea) {
  background-color: #242f41 !important;
  color: #e5edfc !important;
  border-color: #415574 !important;
  accent-color: #9ab3ea;
}
html.dark body.silent-cabinet :is(input, textarea)::placeholder {
  color: #a0b1ce !important;
}
html.dark body.silent-cabinet #toast {
  background: #29374d !important;
  border-color: #485f82 !important;
}
html.dark body.silent-cabinet #toastText {
  color: #e3edff !important;
}
html.dark body.silent-cabinet #productDetailModal {
  background: rgba(9, 13, 20, 0.35) !important;
}
html.dark body.silent-cabinet #productDetailModal > div {
  background: var(--ss-paper) !important;
  border-color: #455674 !important;
}
html.dark
  body.silent-cabinet
  :is(
    #countryVariationModal,
    #virtualNumberBuyModal,
    #virtualNumberCancelModal,
    #passwordModal,
    #changeEmailModal,
    #totpQrModal,
    #tgBindModal,
    #apiKeyModal,
    #downloadChoiceModal,
    #purchBulkDownloadModal,
    #logoutConfirmModal,
    #depositInvoiceModal
  )
  > div {
  background: var(--ss-paper) !important;
  color: var(--ss-text) !important;
  border-color: #455674 !important;
}
html.dark
  body.silent-cabinet
  :is(
    #passwordModal,
    #changeEmailModal,
    #totpQrModal,
    #tgBindModal,
    #apiKeyModal,
    #depositInvoiceModal
  )
  :is(.text-slate-900, .text-slate-800, .text-slate-700, .text-\[\#0f172a\]) {
  color: #e0eafd !important;
}

/* Purchases, transaction history and top-up */
html.dark .finance-summary-card > span,
html.dark .finance-summary-card > i {
  color: #b6c4dc;
}
html.dark .finance-summary-card > strong {
  color: #e5edff;
}
html.dark body.silent-cabinet .finance-table th {
  background: #202a38;
  color: #aebed8;
  border-color: var(--ss-line);
}
html.dark body.silent-cabinet .finance-table td {
  border-color: var(--ss-line);
}
html.dark body.silent-cabinet .finance-money--incoming {
  color: #badabe;
}
html.dark .finance-account-meta,
html.dark .finance-table-help {
  color: #a9bad6;
}
html.dark .finance-product-icon {
  background: #2d405c;
  border-color: #425b82;
  color: #b6cdf1;
}
html.dark body.silent-cabinet .finance-status--paid,
html.dark .profile-delivered {
  background: #2b4033;
  color: #c4debf;
  border-color: #415d44 !important;
}
html.dark body.silent-cabinet .finance-status--pending {
  background: #413a29;
  color: #e1d0a2;
  border-color: #5f5338 !important;
}
html.dark body.silent-cabinet .finance-status--error {
  background: #402d36;
  color: #e6bdc9;
  border-color: #60404d !important;
}
html.dark body.silent-cabinet .finance-status--neutral {
  background: #303a50;
  color: #cad6ee;
  border-color: #455675 !important;
}
html.dark body.silent-cabinet .finance-select-cell > button {
  background: #263348 !important;
  border-color: #536784 !important;
  color: #cadbfb !important;
}
html.dark
  body.silent-cabinet
  .finance-select-cell
  > button[aria-checked="true"] {
  background: #435d8b !important;
  border-color: #7e9fd5 !important;
}
html.dark body.silent-cabinet .finance-select-cell > button i {
  color: #e8f1ff !important;
}
html.dark body.silent-cabinet .finance-filter {
  background: #253044;
  color: #bdcce5;
  border-color: #40516f;
}
html.dark body.silent-cabinet .finance-filter.is-active {
  background: #465e86;
  border-color: #6a85ae;
  color: #eef4ff;
}
html.dark body.silent-cabinet .finance-actions button {
  background: #29364b !important;
  border-color: #445a7d !important;
  color: #c4d4ef !important;
}
html.dark .finance-ledger-note,
html.dark .finance-no-action {
  color: #aebed8;
}
html.dark .finance-panel-title > span,
html.dark .finance-form-footnote,
html.dark .finance-side-help p {
  color: #a9bad4;
}
html.dark body.silent-cabinet #view-deposit .pay-method-card {
  background: #232e40 !important;
  border-color: #3d4d68 !important;
}
html.dark body.silent-cabinet #view-deposit .pay-method-card.active {
  background: #33486c !important;
  border-color: #8aa6d7 !important;
  box-shadow: 0 0 0 1px #8aa6d71a !important;
}
html.dark body.silent-cabinet #view-deposit .pay-method-title {
  color: #e4ecfb !important;
}
html.dark body.silent-cabinet #view-deposit .pay-method-sub {
  color: #adbedb !important;
}
html.dark body.silent-cabinet #view-deposit .paymethod-check {
  color: #c1d8ff !important;
}
html.dark body.silent-cabinet #view-deposit .deposit-chip-btn {
  background: #243146 !important;
  border-color: #405573 !important;
  color: #bdcee9 !important;
}
html.dark body.silent-cabinet #view-deposit .deposit-chip-btn.active {
  background: #40577c !important;
  border-color: #7591be !important;
  color: #edf3ff !important;
}
html.dark body.silent-cabinet #depositAmount {
  background: #243146 !important;
  border-color: #4b6388 !important;
  color: #e9f1ff !important;
}
html.dark body.silent-cabinet #paymentMethodHint {
  background: #202a3a !important;
  border-color: #3b4e6c !important;
  color: #b7c8e3 !important;
}
html.dark .finance-balance > span,
html.dark .finance-balance > i,
html.dark .finance-balance > button {
  color: #b9cbe6;
}
html.dark .finance-balance > button {
  border-color: #465a79;
}
html.dark body.silent-cabinet #depositCurrentBalance {
  color: #e7efff !important;
}
html.dark .finance-side-icon {
  background: #2c3a52;
  color: #bdcff1;
}
html.dark body.silent-cabinet #depositPromoCodeBox {
  background: #232e40 !important;
  border-color: #405371 !important;
}
html.dark body.silent-cabinet .finance-terms a,
html.dark .finance-form-footnote button {
  color: #c0d4fb !important;
}
html.dark
  body.silent-cabinet
  .finance-purchase-details
  :is(.bg-slate-50, .bg-slate-100, .bg-white) {
  background: #253248 !important;
  border-color: #435a7c !important;
}

/* All profile tabs and generated 2FA controls */
html.dark body.silent-cabinet #view-profile .profile-tab {
  color: #b7c7e0;
}
html.dark body.silent-cabinet #view-profile .profile-tab.active {
  background: #2c3b54;
  border-color: #495f82;
  color: #e3edff;
}
html.dark body.silent-cabinet #view-profile .profile-tab > i {
  color: #b6c9eb !important;
}
html.dark .profile-field > span,
html.dark .profile-field > label {
  color: #b5c5df;
}
html.dark body.silent-cabinet #view-profile .profile-input {
  background: #253248 !important;
  border-color: #4a6084 !important;
  color: #e9f1ff !important;
}
html.dark body.silent-cabinet #view-profile .profile-input::placeholder {
  color: #a6badb;
}
html.dark body.silent-cabinet #view-profile #btnChangeEmail {
  background: #2c3d58 !important;
  border-color: #526d95 !important;
  color: #dfebff !important;
}
html.dark .profile-setting-icon,
html.dark .profile-api-icon {
  background: #2d3d57;
  border-color: #445d84;
  color: #c0d4f7;
}
html.dark body.silent-cabinet #profAvatarCircle {
  background: #33496a !important;
  border-color: #4d6893 !important;
  color: #dae8ff !important;
}
html.dark .profile-soft-badge {
  background: #27374e;
  border-color: #405979;
  color: #bacce8;
}
html.dark body.silent-cabinet #view-profile .profile-text-button,
html.dark .profile-security-link,
html.dark body.silent-cabinet #profTelegramCopyBtn,
html.dark body.silent-cabinet #profTelegramBindAction {
  color: #bdd0ef !important;
}
html.dark .profile-access-list dd > a,
html.dark .profile-access-list dd > button:not(.profile-text-button) {
  color: #bfd4f8;
}
html.dark .profile-table-scroll,
html.dark .profile-recent-table th {
  background: #202b3c;
}
html.dark .profile-recent-table th {
  color: #aebfdb;
}
html.dark .profile-recent-table td {
  background: var(--ss-paper);
  color: #b4c6e1;
}
html.dark .profile-billing-stat > i,
html.dark .profile-billing-stat > span {
  color: #b7c8e2;
}
html.dark body.silent-cabinet #profAccountBalance,
html.dark body.silent-cabinet #profStatPurchasesCount,
html.dark body.silent-cabinet #profStatSpentTotal {
  color: #e7efff !important;
}
html.dark .profile-toggle-track {
  background: #39495f;
  border-color: #526987;
}
html.dark .profile-toggle-track:after {
  background: #bacbe5;
}
html.dark .profile-toggle:checked + .profile-toggle-track {
  background: #83a2d9;
  border-color: #9ebbed;
}
html.dark .profile-toggle:checked + .profile-toggle-track:after {
  background: #f3f7ff;
}
html.dark body.silent-cabinet #app2faBadge,
html.dark body.silent-cabinet #tg2faBadge {
  background: #2b3b53 !important;
  border-color: #435b7d !important;
  color: #bfcee6 !important;
}
html.dark body.silent-cabinet #app2faBadge[class*="bg-emerald"],
html.dark body.silent-cabinet #tg2faBadge[class*="bg-emerald"] {
  background: #2b4033 !important;
  border-color: #415d44 !important;
  color: #c4debf !important;
}
html.dark body.silent-cabinet .profile-2fa-controls > button {
  background: #293951 !important;
  border-color: #445f86 !important;
  color: #cbddf7 !important;
}
html.dark body.silent-cabinet .profile-2fa-controls > div {
  background: #263b35 !important;
  border-color: #3d5a4e !important;
  color: #b9d4c4 !important;
}
html.dark body.silent-cabinet .profile-2fa-controls > button[class*="bg-red-"] {
  background: #3d2b35 !important;
  border-color: #654350 !important;
  color: #e5b9c8 !important;
}

/* Primary actions invert to a light surface with dark text, including old ID rules. */
html.dark .ss-btn--primary,
html.dark body.silent-auth .authpage__primary,
html.dark body.silent-cabinet #view-profile .ss-btn--primary,
html.dark body.silent-cabinet #depositSubmitBtn,
html.dark body.silent-cabinet #modalBuyDirectBtn,
html.dark body.silent-cabinet .finance-actions a,
html.dark
  body.silent-cabinet
  .profile-2fa-controls
  > button[class*="bg-brandBlue"] {
  background: linear-gradient(#e4ebf8, #cbd8ef) !important;
  border: 1px solid #e4ecfc !important;
  color: #172338 !important;
  box-shadow:
    inset 0 1px 0 #ffffff70,
    0 2px 5px #00000012 !important;
}
html.dark .ss-btn--primary *,
html.dark body.silent-auth .authpage__primary *,
html.dark body.silent-cabinet #view-profile .ss-btn--primary *,
html.dark body.silent-cabinet #depositSubmitBtn *,
html.dark body.silent-cabinet #modalBuyDirectBtn *,
html.dark body.silent-cabinet .finance-actions a *,
html.dark
  body.silent-cabinet
  .profile-2fa-controls
  > button[class*="bg-brandBlue"]
  * {
  color: #172338 !important;
}
html.dark .ss-btn--primary:hover,
html.dark body.silent-auth .authpage__primary:hover:not(:disabled) {
  background: #edf3ff !important;
  color: #172338 !important;
}
@media (max-width: 760px) {
  .store-nav {
    gap: 12px;
  }
  .store-nav__actions {
    gap: 7px;
  }
  .ss-desktop-label {
    display: none;
  }
  .ss-mobile-label {
    display: inline;
  }
  .store-nav__actions > a.ss-btn--primary {
    font-size: 11px;
    padding: 9px 12px;
    min-height: 36px;
  }
  .ss-theme-toggle {
    width: 34px;
    min-height: 36px;
    padding: 7px;
  }
}
@media (max-width: 380px) {
  .store-nav__actions > a.ss-btn--primary {
    display: none;
  }
  .store-nav .ss-brand {
    font-size: 16px;
  }
  .store-nav .ss-brand img {
    width: 29px;
    height: 29px;
  }
}

/* Older purchase/security actions still use utility primary-button classes. */
html.dark
  body.silent-cabinet
  :is(button, a):is(
    .bg-brandBlue,
    .bg-brand,
    .btn-brand,
    .bg-blue-600,
    [class*="bg-[#2563eb]"]
  ) {
  background: linear-gradient(#e4ebf8, #cbd8ef) !important;
  border-color: #e4ecfc !important;
  color: #172338 !important;
  box-shadow: none !important;
}
html.dark
  body.silent-cabinet
  :is(button, a):is(
    .bg-brandBlue,
    .bg-brand,
    .btn-brand,
    .bg-blue-600,
    [class*="bg-[#2563eb]"]
  )
  * {
  color: #172338 !important;
}
html.dark body.silent-cabinet #productDetailModal #modalBuyDirectBtn,
html.dark body.silent-cabinet #productDetailModal #modalBuyDirectBtn * {
  color: #172338 !important;
}
html.dark
  body.silent-cabinet
  #depositInvoiceModal
  :is(#sbpPayPageLink, #otherPayBtn, #tonDeeplinkBtn, #sbpBankAppBtn) {
  background: linear-gradient(#e4ebf8, #cbd8ef) !important;
  border-color: #e4ecfc !important;
  color: #172338 !important;
  box-shadow: none !important;
}
html.dark
  body.silent-cabinet
  #depositInvoiceModal
  :is(#sbpPayPageLink, #otherPayBtn, #tonDeeplinkBtn, #sbpBankAppBtn)
  * {
  color: #172338 !important;
}
