/* ═══════════════════════════════════════════════════════════
   MENT PAY • PREMIUM DESIGN SYSTEM v6.0
   Philosophy: Purposeful depth. Earned contrast. Zero noise.
   Reference: Revolut, Telegram Wallet, CryptoBot, Linear.app
   ═══════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ─── DESIGN TOKENS ─────────────────────────────────────── */
:root, html.dark {
  /* Blue accent palette */
  --blue:        #2563EB;
  --blue-light:  #60A5FA;
  --blue-mid:    #3B82F6;
  --blue-dim:    rgba(37, 99, 235, 0.14);
  --blue-border: rgba(59, 130, 246, 0.22);
  --blue-glow:   rgba(37, 99, 235, 0.18);

  /* Background depth layers (Dark: deep midnight navy) */
  --bg-0: #080D1B;   /* deep canvas */
  --bg-1: #0D1526;   /* cards / sheets */
  --bg-2: #121E35;   /* elevated surfaces */
  --bg-3: #182540;   /* inputs, pills, hover */
  --bg-4: #1E2D4E;   /* pressed / active */

  /* Borders — always alpha white on dark */
  --border-lo:  rgba(255, 255, 255, 0.05);
  --border:     rgba(255, 255, 255, 0.08);
  --border-med: rgba(255, 255, 255, 0.13);
  --border-hi:  rgba(255, 255, 255, 0.20);

  /* Typography */
  --text-primary:   #F1F5F9;
  --text-secondary: #8B9AB5;
  --text-muted:     #4B638A;

  /* Fonts */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  /* Geometry */
  --r-xs:   8px;
  --r-sm:   12px;
  --r-md:   16px;
  --r-lg:   20px;
  --r-xl:   24px;
  --r-pill: 999px;

  /* Motion */
  --spring:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:  cubic-bezier(0, 0, 0.2, 1);
  --ease-in:   cubic-bezier(0.4, 0, 1, 1);

  /* Shadows */
  --shadow-card:   0 2px 16px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0,0,0,0.3);
  --shadow-modal:  0 -4px 40px rgba(0, 0, 0, 0.6);
  --shadow-toast:  0 8px 32px rgba(0, 0, 0, 0.55);
}

html.light {
  /* Light Theme in Blue Tones ("в синих тонах, но светлее") */
  --blue:        #2563EB;
  --blue-light:  #3B82F6;
  --blue-mid:    #1D4ED8;
  --blue-dim:    rgba(37, 99, 235, 0.08);
  --blue-border: rgba(37, 99, 235, 0.22);
  --blue-glow:   rgba(37, 99, 235, 0.12);

  --bg-0: #EEF4FB;   /* soft ambient ice-blue canvas */
  --bg-1: #FFFFFF;   /* crisp porcelain white cards & sheets with light blue cast */
  --bg-2: #E3EDF9;   /* elevated surfaces: light azure */
  --bg-3: #D7E5F5;   /* inputs, pills, hover: crisp slate ice-blue */
  --bg-4: #C8DCF0;   /* pressed / active */

  --border-lo:  rgba(37, 99, 235, 0.07);
  --border:     rgba(37, 99, 235, 0.13);
  --border-med: rgba(37, 99, 235, 0.20);
  --border-hi:  rgba(37, 99, 235, 0.32);

  --text-primary:   #0A1329;   /* deep midnight navy for 100% legibility */
  --text-secondary: #334E68;   /* cool slate blue */
  --text-muted:     #627D98;   /* soft steel blue */

  --shadow-card:   0 4px 20px rgba(16, 42, 86, 0.07), 0 1px 3px rgba(16, 42, 86, 0.04);
  --shadow-modal:  0 -10px 40px rgba(16, 42, 86, 0.16);
  --shadow-toast:  0 8px 32px rgba(16, 42, 86, 0.14);
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  width: 100%;
  max-width: 100vw;
  background: var(--bg-0);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  min-height: 100%;
  width: 100%;
  max-width: 100vw;
  background: var(--bg-0);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

html.tma-locked, body.tma-locked {
  overflow-y: auto;
  overscroll-behavior-y: none;
  touch-action: pan-y;
}

#root {
  min-height: 100%;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

/* Text selection */
::selection { background: rgba(59, 130, 246, 0.3); color: #fff; }

/* ─── AMBIENT GLOW (Single Layer, Viewport-Clipped) ──────── */
.ambient-glow {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, 100vw);
  height: 380px;
  background: radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.16) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

/* ─── LOGO ───────────────────────────────────────────────── */
.ment-logo {
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: -0.04em;
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}
.ment-logo-ment { color: var(--text-primary); }
.ment-logo-pay  { color: var(--blue-light); margin-left: 1px; }

/* ─── ACCOUNT CARD (card-titanium) ──────────────────────── */
.card-titanium {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--border-med);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease-out);
}

/* Top edge highlight — always present */
.card-titanium::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(255,255,255,0.12) 50%, transparent 95%);
  pointer-events: none;
  z-index: 2;
}

/* Shimmer & glow elements — disabled by default */
.card-shimmer-sheen { display: none; }
.top-glow-strip     { display: none; }

/* ─── CARD THEMES ────────────────────────────────────────── */
.card-titanium.theme-titanium {
  background: linear-gradient(160deg, #0E1E3F 0%, #0A1428 40%, #060D1C 100%);
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: var(--shadow-card);
}
.card-titanium.theme-titanium::before {
  background: linear-gradient(90deg, transparent 5%, rgba(96, 165, 250, 0.15) 50%, transparent 95%);
}

.card-titanium.theme-gold {
  background: linear-gradient(160deg, #2C1E06 0%, #1C1205 50%, #0F0A03 100%);
  border-color: rgba(245, 158, 11, 0.25);
  box-shadow: var(--shadow-card);
}
.card-titanium.theme-gold::before {
  background: linear-gradient(90deg, transparent 5%, rgba(251, 191, 36, 0.15) 50%, transparent 95%);
}

.card-titanium.theme-emerald {
  background: linear-gradient(160deg, #0C2B1E 0%, #071A12 50%, #03100A 100%);
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: var(--shadow-card);
}
.card-titanium.theme-emerald::before {
  background: linear-gradient(90deg, transparent 5%, rgba(52, 211, 153, 0.15) 50%, transparent 95%);
}

.card-titanium.theme-obsidian {
  background: linear-gradient(160deg, #181C28 0%, #0E1018 50%, #06080F 100%);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-card);
}
.card-titanium.theme-obsidian::before {
  background: linear-gradient(90deg, transparent 5%, rgba(255,255,255,0.12) 50%, transparent 95%);
}

.card-titanium.theme-amethyst {
  background: linear-gradient(160deg, #250A42 0%, #160528 50%, #0A0214 100%);
  border-color: rgba(168, 85, 247, 0.25);
  box-shadow: var(--shadow-card);
}
.card-titanium.theme-amethyst::before {
  background: linear-gradient(90deg, transparent 5%, rgba(192, 132, 252, 0.15) 50%, transparent 95%);
}

.card-titanium.theme-cyberpunk {
  background: linear-gradient(160deg, #28053E 0%, #071428 60%, #020A16 100%);
  border-color: rgba(236, 72, 153, 0.25);
  box-shadow: var(--shadow-card);
}
.card-titanium.theme-cyberpunk::before {
  background: linear-gradient(90deg, transparent 5%, rgba(236, 72, 153, 0.18) 40%, rgba(6, 182, 212, 0.18) 65%, transparent 95%);
}

/* ─── ASSET PILLS ────────────────────────────────────────── */
.t-asset-pill {
  position: relative;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.14s var(--ease-out),
              border-color 0.14s var(--ease-out),
              transform 0.14s var(--spring);
}
.t-asset-pill:active {
  transform: scale(0.94);
  background: var(--bg-3);
  border-color: var(--blue-border);
}

/* ─── ACTION SQUIRCLE ───────────────────────────────────── */
.t-action-squircle {
  border-radius: var(--r-md);
  background: var(--bg-2);
  border: 1px solid var(--border-med);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.14s var(--ease-out),
              transform 0.14s var(--spring);
}
.t-action-squircle:active {
  transform: scale(0.90);
  background: var(--bg-3);
}
.t-action-squircle.blue {
  background: var(--blue);
  border-color: rgba(37, 99, 235, 0.5);
  color: #fff;
  box-shadow: 0 4px 16px -4px rgba(37, 99, 235, 0.45);
}
.t-action-squircle.blue:active {
  transform: scale(0.90);
  opacity: 0.88;
}

/* ─── SURFACE TILES ─────────────────────────────────────── */
.t-tile {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color 0.14s ease,
              transform 0.14s var(--spring),
              background 0.14s ease;
}
.t-tile:active {
  transform: scale(0.986);
  border-color: var(--border-med);
  background: var(--bg-2);
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.t-btn-blue {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; width: 100%;
  padding: 15px 20px;
  border-radius: var(--r-md);
  font-size: 15px; font-weight: 700;
  letter-spacing: -0.2px;
  color: #fff;
  background: linear-gradient(180deg, #3B82F6 0%, #2563EB 100%);
  border: 1px solid rgba(96, 165, 250, 0.35);
  cursor: pointer;
  font-family: var(--font);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 22px -4px rgba(37, 99, 235, 0.55);
  transition: opacity 0.14s ease, transform 0.14s var(--spring), box-shadow 0.14s ease, filter 0.14s ease;
}
.t-btn-blue:hover:not(:disabled) { filter: brightness(1.06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 26px -4px rgba(37, 99, 235, 0.65); }
.t-btn-blue:active { opacity: 0.9; transform: scale(0.97); }
.t-btn-blue:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.t-btn-dark {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; width: 100%;
  padding: 15px 20px;
  border-radius: var(--r-md);
  font-size: 15px; font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-2);
  border: 1px solid var(--border-med);
  cursor: pointer; font-family: var(--font);
  transition: background 0.14s ease, transform 0.14s var(--spring);
}
.t-btn-dark:active { background: var(--bg-3); transform: scale(0.97); }

/* ─── AMOUNT CHIPS ──────────────────────────────────────── */
.chip-amount {
  padding: 7px 14px;
  border-radius: var(--r-xs);
  font-size: 11px; font-weight: 600;
  font-family: var(--mono);
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.13s ease;
}
.chip-amount:active {
  background: var(--blue-dim);
  border-color: var(--blue-border);
  color: var(--blue-light);
  transform: scale(0.95);
}

/* ─── SEGMENTED CONTROL ─────────────────────────────────── */
.t-segment-control {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: 3px;
  border-radius: 14px;
  background: rgba(11, 19, 38, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.16);
  gap: 3px;
}
.t-segment-btn {
  min-width: 0;
  padding: 8px 4px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  border: none;
  background: transparent;
  color: #64748B;
  cursor: pointer;
  transition: all 0.18s var(--spring);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font);
}
.t-segment-btn svg,
.t-segment-btn img {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
}
.t-segment-btn.active {
  background: linear-gradient(180deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.t-segment-btn:active { transform: scale(0.95); }

/* ─── INPUTS ─────────────────────────────────────────────── */
.t-input {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border-med);
  border-radius: var(--r-md);
  padding: 14px 16px;
  color: var(--text-primary);
  font-size: 15px; font-weight: 500;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.t-input:focus {
  border-color: var(--blue-mid);
  background: var(--bg-3);
}
.t-input::placeholder { color: var(--text-muted); font-weight: 400; }

input[type="date"].t-input,
input[type="time"].t-input,
input[type="datetime-local"].t-input,
select.t-input,
textarea.t-input {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  -webkit-appearance: none;
  appearance: none;
  color-scheme: dark;
}

select.t-input {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238B9AB5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 14px;
}

/* ─── STORIES ROW ────────────────────────────────────────── */
.t-stories-container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 20px 14px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.t-stories-container::-webkit-scrollbar { display: none; }

.t-story-item {
  flex: 0 0 108px;
  height: 100px;
  border-radius: var(--r-md);
  padding: 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s var(--spring), opacity 0.15s ease;
  touch-action: pan-x;
}
.t-story-item:active { transform: scale(0.92); opacity: 0.82; }

/* ─── STORY VIEWER ───────────────────────────────────────── */
.story-viewer-backdrop {
  position: fixed; inset: 0;
  background: #000;
  z-index: 99999;
  animation: fadeIn 0.18s ease-out;
}
.story-progress-bar {
  display: flex; gap: 4px;
  padding: 12px 16px 4px;
  position: absolute; top: 0; inset-x: 0;
  z-index: 100000;
}
.story-progress-seg {
  height: 2px; flex: 1;
  background: rgba(255,255,255,0.25);
  border-radius: 999px; overflow: hidden;
}
.story-progress-fill {
  height: 100%; background: #fff;
  transition: width 0.1s linear;
}

/* ─── MODAL / BOTTOM SHEET ───────────────────────────────── */
.modal-backdrop, .modal-overlay {
  position: fixed; inset: 0;
  margin: 0 !important;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 50;
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn 0.2s ease-out;
}

.space-y-4 > .fixed.inset-0,
.space-y-3 > .fixed.inset-0,
.space-y-2 > .fixed.inset-0 {
  margin-top: 0 !important;
}

.modal-sheet, .modal-bottom-sheet {
  width: 100%;
  max-width: min(520px, 100vw);
  background: linear-gradient(180deg, #0E172E 0%, #091020 100%);
  border-top: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 26px 26px 0 0;
  padding: 16px 18px max(24px, env(safe-area-inset-bottom, 24px));
  box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.68), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: slideUp 0.28s var(--spring);
  max-height: 92dvh;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}

/* Top edge of modal */
.modal-sheet::before, .modal-bottom-sheet::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(255,255,255,0.1) 50%, transparent 95%);
  pointer-events: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
@keyframes animate-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.animate-fade-in { animation: animate-fade-in 0.18s ease-out; }

/* ─── TOAST ──────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: max(14px, env(safe-area-inset-top, 14px));
  left: 0; right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 999999;
  pointer-events: none;
  padding: 0 16px;
}

.toast-pill {
  pointer-events: auto;
  display: flex; align-items: center;
  gap: 10px; padding: 10px 16px;
  max-width: 96%;
  border-radius: var(--r-pill);
  background: var(--bg-2);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-med);
  box-shadow: var(--shadow-toast);
  color: var(--text-primary);
  font-size: 13px; font-weight: 500;
  animation: toastSlideDown 0.28s var(--spring) forwards;
  cursor: pointer;
}
.toast-pill.success { border-color: rgba(52, 211, 153, 0.4); }
.toast-pill.error   { border-color: rgba(248, 113, 113, 0.4); }
.toast-pill.warning { border-color: rgba(251, 191, 36, 0.4); }
.toast-pill.info    { border-color: rgba(96, 165, 250, 0.35); }
.toast-pill.copied  { border-color: rgba(52, 211, 153, 0.4); }

@keyframes toastSlideDown {
  from { opacity: 0; transform: translateY(-14px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── BOTTOM NAV ─────────────────────────────────────────── */
.t-bottom-nav {
  position: fixed; bottom: 0;
  left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  background: rgba(8, 13, 26, 0.92);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 8px 10px max(14px, env(safe-area-inset-bottom, 14px));
  z-index: 40;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.t-nav-item {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  flex: 1; padding: 6px 4px 4px;
  border-radius: 14px;
  background: transparent; border: none;
  color: #64748B;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.15s var(--spring);
  position: relative;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.t-nav-item:hover { color: #CBD5E1; }
.t-nav-item:active { transform: scale(0.90); }
.t-nav-item.active {
  color: #60A5FA;
  background: rgba(59, 130, 246, 0.08);
}
.t-nav-item.active .t-nav-icon-wrap {
  transform: translateY(-1px);
}
.t-nav-item.active .t-nav-dot {
  position: absolute; bottom: 2px;
  width: 12px; height: 2px;
  border-radius: 999px;
  background: #3B82F6;
}
.t-nav-icon-wrap { transition: transform 0.2s var(--spring); }
.t-nav-label {
  font-size: 10px; font-weight: 600;
  margin-top: 3px; transition: color 0.2s ease;
  letter-spacing: 0.01em;
}

/* ─── STATUS BADGES ──────────────────────────────────────── */
.status-badge {
  display: inline-flex; align-items: center;
  gap: 3px; padding: 2px 7px;
  border-radius: var(--r-xs);
  font-size: 10px; font-weight: 600;
  font-family: var(--font);
}
.status-badge.success, .bg-emerald-500\/15.text-emerald-400 {
  background: rgba(52, 211, 153, 0.11);
  color: #34D399;
}
.status-badge.pending, .bg-amber-500\/15.text-amber-400 {
  background: rgba(251, 191, 36, 0.11);
  color: #FBB824;
}
.status-badge.error, .bg-rose-500\/15.text-rose-400 {
  background: rgba(248, 113, 113, 0.11);
  color: #F87171;
}

/* ─── SECTION LABEL ──────────────────────────────────────── */
.section-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}

/* ─── DRAG HANDLE ────────────────────────────────────────── */
.drag-handle {
  width: 36px; height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  margin: 0 auto;
}

/* ─── SCANNER LASER ──────────────────────────────────────── */
@keyframes scanLaser {
  0%   { top: 8%; }
  50%  { top: 91%; }
  100% { top: 8%; }
}
.scanner-laser {
  position: absolute; left: 5%; right: 5%; height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(96,165,250,0.9), transparent);
  animation: scanLaser 2.4s ease-in-out infinite;
  border-radius: 999px; pointer-events: none;
}

/* ─── PULSE DOT ──────────────────────────────────────────── */
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}
.pulse-dot { animation: pulseDot 2.4s ease-in-out infinite; }

/* ─── SCAN CORNERS ───────────────────────────────────────── */
.scan-corner {
  position: absolute; width: 22px; height: 22px;
  border-color: var(--blue-light); border-style: solid; opacity: 0.75;
}
.scan-corner.tl { top: 0; left: 0; border-width: 2px 0 0 2px; border-radius: 5px 0 0 0; }
.scan-corner.tr { top: 0; right: 0; border-width: 2px 2px 0 0; border-radius: 0 5px 0 0; }
.scan-corner.bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; border-radius: 0 0 0 5px; }
.scan-corner.br { bottom: 0; right: 0; border-width: 0 2px 2px 0; border-radius: 0 0 5px 0; }

/* ─── EMV CHIP ───────────────────────────────────────────── */
.emv-chip {
  width: 36px; height: 26px;
  border-radius: 5px;
  background: linear-gradient(135deg, #E8C66A 0%, #C89B2A 100%);
  border: 1px solid rgba(255,255,255,0.3);
  position: relative; overflow: hidden;
}
.emv-chip::before {
  content: ''; position: absolute;
  top: 50%; left: 0; right: 0; height: 1px;
  background: rgba(0,0,0,0.2);
}
.emv-chip::after {
  content: ''; position: absolute;
  top: 0; bottom: 0; left: 36%; width: 28%;
  border-left: 1px solid rgba(0,0,0,0.2);
  border-right: 1px solid rgba(0,0,0,0.2);
}

/* ─── CONTACTLESS WAVES ──────────────────────────────────── */
.contactless-waves { display: flex; align-items: center; gap: 2.5px; opacity: 0.55; }
.contactless-waves span { display: block; width: 2px; border-radius: 2px; background: #fff; }

/* ─── LANDING PAGE ───────────────────────────────────────── */
.shimmer-btn-primary {
  background: var(--blue);
  transition: opacity 0.15s ease, transform 0.15s var(--spring);
}
.shimmer-btn-primary:active { opacity: 0.85; transform: scale(0.97); }

.landing-grid-bg {
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 30px 30px;
}

/* ─── GLASS CARD ─────────────────────────────────────────── */
.glass-card-pro {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  transition: border-color 0.15s ease, transform 0.15s var(--spring);
}
.glass-card-pro:active { border-color: var(--border-med); transform: scale(0.985); }

/* ─── BANK TAGS ──────────────────────────────────────────── */
.bank-tag-tbank  { background: #FFDD2D; color: #000; }
.bank-tag-sber   { background: #21A038; color: #fff; }
.bank-tag-alfa   { background: #EF3124; color: #fff; }
.bank-tag-vtb    { background: #002882; color: #fff; }
.bank-tag-raiff  { background: #FEE600; color: #000; }
.bank-tag-ozon   { background: #005BFF; color: #fff; }
.bank-tag-other  { background: var(--blue); color: #fff; }

/* ─── FILTER CHIPS ───────────────────────────────────────── */
.t-req-filter-chip {
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer; white-space: nowrap;
  transition: all 0.15s ease;
  font-family: var(--font);
}
.t-req-filter-chip.active { background: var(--blue); border-color: transparent; color: #fff; }
.t-req-filter-chip:active { transform: scale(0.95); }

/* ─── PICKER OPTIONS ─────────────────────────────────────── */
.t-picker-option {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 14px;
  border-radius: var(--r-md);
  background: var(--bg-2); border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.13s ease, border-color 0.13s ease, transform 0.13s var(--spring);
}
.t-picker-option:active {
  background: var(--bg-3);
  border-color: var(--blue-border);
  transform: scale(0.98);
}

/* ─── BANNER REQUISITES ──────────────────────────────────── */
.t-banner-requisites {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--blue-border);
  border-radius: var(--r-xl); padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s var(--spring);
}
.t-banner-requisites:active {
  transform: scale(0.984);
  border-color: rgba(59, 130, 246, 0.4);
}

/* ─── REQUISITE CARDS ────────────────────────────────────── */
.t-req-card {
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 16px;
  transition: border-color 0.15s ease;
}
.t-req-card:hover { border-color: var(--border-med); }
.t-req-card.favorite { border-color: rgba(234, 179, 8, 0.3); }

/* ─── TX ICON WRAPPERS ───────────────────────────────────── */
.tx-icon-plus     { background: rgba(52, 211, 153, 0.09); border: 1px solid rgba(52, 211, 153, 0.18); color: #34D399; }
.tx-icon-minus    { background: rgba(96, 165, 250, 0.09); border: 1px solid rgba(96, 165, 250, 0.15); color: #60A5FA; }
.tx-icon-swap     { background: rgba(59, 130, 246, 0.09); border: 1px solid rgba(59, 130, 246, 0.18); color: #60A5FA; }
.tx-icon-transfer { background: rgba(167, 139, 250, 0.09); border: 1px solid rgba(167, 139, 250, 0.18); color: #A78BFA; }

/* ─── SCROLLBARS ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 999px; }
::-webkit-scrollbar-track { background: transparent; }

/* ─── GLOW LINE UTILITY ──────────────────────────────────── */
.glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.4), transparent);
}

/* ─── VAULT CARD ─────────────────────────────────────────── */
.t-vault-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 16px;
  transition: border-color 0.15s ease, transform 0.15s var(--spring);
}
.t-vault-card:active { transform: scale(0.984); border-color: var(--border-med); }
.t-vault-card.locked { border-color: rgba(251, 191, 36, 0.2); }

/* ─── PROGRESS BAR ───────────────────────────────────────── */
.t-progress-track {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
}
.t-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--blue-mid);
  transition: width 0.6s var(--spring);
}
.t-progress-fill.emerald { background: #10B981; }
.t-progress-fill.gold    { background: #F59E0B; }
.t-progress-fill.purple  { background: #8B5CF6; }

/* ─── ACCOUNT CARD INNER BORDER ─────────────────────────── */
.card-inner-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
}

/* ─── UTILITY ────────────────────────────────────────────── */
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

.text-gradient-blue {
  background: linear-gradient(135deg, #F1F5F9 0%, #93C5FD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.inset-top-line::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(255,255,255,0.1) 50%, transparent 90%);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   T-BANK STYLE MODERN DISPLAY MODES (FOCUS & COMPACT)
   ═══════════════════════════════════════════════════════════ */

/* Mode Switcher Header Pill */
.tbank-mode-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.tbank-mode-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.tbank-mode-switcher {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  gap: 4px;
}
.tbank-mode-btn {
  padding: 6px 18px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
  background: transparent;
}
.tbank-mode-btn.active {
  background: #FFFFFF;
  color: #111827;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

/* T-Bank Phone Canvas */
.tbank-canvas {
  background: #F4F5F7;
  color: #111827;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}
.dark .tbank-canvas {
  background: radial-gradient(120% 55% at 50% 0%, rgba(37, 99, 235, 0.14) 0%, rgba(15, 22, 38, 0.98) 55%, #0B101E 100%);
  color: #F8FAFC;
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Dynamic Island / Curved Top Notch */
.tbank-notch {
  background: rgba(17, 24, 39, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #FFFFFF;
  border-radius: 0 0 22px 22px;
  padding: 6px 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-top: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.tbank-notch:hover {
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 4px 20px rgba(0, 152, 234, 0.2);
}
.tbank-notch:active {
  transform: scale(0.96);
  background: #1F2937;
}

/* Top Action Row (Avatar, Search, Gift) */
.tbank-top-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 12px;
}

.tbank-avatar-btn {
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  position: relative;
  padding: 2px;
  background: linear-gradient(135deg, #3B82F6 0%, #06B6D4 55%, #6366F1 100%);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tbank-avatar-btn:hover {
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.45);
}
.tbank-avatar-btn:active {
  transform: scale(0.92);
}
.tbank-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  overflow: hidden;
  background: #0F172A;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tbank-search-bar {
  flex: 1;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.03);
  cursor: pointer;
  transition: all 0.18s ease;
}
.dark .tbank-search-bar {
  background: rgba(22, 32, 54, 0.75);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.dark .tbank-search-bar:hover {
  background: rgba(28, 41, 68, 0.9);
  border-color: rgba(96, 165, 250, 0.25);
}
.tbank-search-text {
  font-size: 13px;
  font-weight: 500;
  color: #9CA3AF;
}

/* Dedicated Purple Gift Button (Referral Program) */
.tbank-gift-btn {
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: #EDE9FE;
  color: #7C3AED;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(124, 58, 237, 0.16);
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.15s ease;
  position: relative;
}
.dark .tbank-gift-btn {
  background: rgba(124, 58, 237, 0.22);
  color: #C4B5FD;
  border: 1px solid rgba(139, 92, 246, 0.3);
}
.tbank-gift-btn:active {
  transform: scale(0.90);
}
.tbank-gift-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 8.5px;
  font-weight: 900;
  padding: 1px 4.5px;
  border-radius: 9999px;
  border: 1.5px solid #FFFFFF;
}

/* Dots pagination */
.tbank-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 4px 0 10px;
}
.tbank-dot {
  width: 5px;
  height: 5px;
  border-radius: 9999px;
  background: #D1D5DB;
  transition: all 0.25s ease;
  cursor: pointer;
}
.dark .tbank-dot {
  background: #374151;
}
.tbank-dot.active {
  width: 14px;
  background: #111827;
}
.dark .tbank-dot.active {
  background: #60A5FA;
}

/* Crown / Bonus pill badge */
.tbank-crown-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #1F2937;
  color: #FFFFFF;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.dark .tbank-crown-badge {
  background: #1E293B;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.tbank-crown-badge:active {
  transform: scale(0.94);
}

/* Hero Balance Typography */
.tbank-balance-num {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: #111827;
  margin: 4px 0 12px;
  font-variant-numeric: tabular-nums;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
}
.dark .tbank-balance-num {
  background: linear-gradient(180deg, #FFFFFF 20%, #CBD5E1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.35));
}

/* Swipable Accounts Carousel (Focus Mode & PC Navigation) */
.tbank-card-carousel-wrap {
  width: 100%;
  max-width: 416px;
  margin: 0 auto;
  position: relative;
}
.tbank-card-carousel {
  position: relative;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  gap: 18px;
  padding: 6px 18px 14px 18px;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}
.tbank-card-carousel.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}
.tbank-card-carousel::-webkit-scrollbar {
  display: none;
}

/* Desktop Carousel Arrow Buttons (Hidden on touch/mobile so they never overlap card edges) */
.tbank-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(12, 21, 42, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(96, 165, 250, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: #FFFFFF;
}
.tbank-carousel-arrow:hover {
  background: rgba(24, 40, 74, 0.96);
  border-color: rgba(96, 165, 250, 0.5);
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 16px rgba(59, 130, 246, 0.3);
}
.tbank-carousel-arrow:active {
  transform: translateY(-50%) scale(0.94);
}
.tbank-carousel-arrow.prev {
  left: 4px;
}
.tbank-carousel-arrow.next {
  right: 4px;
}
@media (max-width: 520px) {
  .tbank-carousel-arrow {
    display: none;
  }
}

.tbank-card-slide {
  flex: 0 0 100%;
  max-width: 100%;
  margin: 0;
  scroll-snap-align: center;
  border-radius: 26px;
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}
.tbank-card-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(147, 197, 253, 0.45), transparent);
  pointer-events: none;
  z-index: 3;
}
.tbank-card-slide:active {
  transform: scale(0.985);
}
.tbank-card-black {
  background: linear-gradient(140deg, #112246 0%, #0A152E 54%, #060C1B 100%);
  border: 1px solid rgba(96, 165, 250, 0.28);
  box-shadow: 0 16px 38px rgba(4, 9, 24, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
}
.tbank-card-platinum {
  background: linear-gradient(140deg, #183E88 0%, #0E285C 52%, #081738 100%);
  border: 1px solid rgba(96, 165, 250, 0.45);
  box-shadow: 0 16px 38px rgba(15, 38, 92, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}
.tbank-card-purple {
  background: linear-gradient(140deg, #0B467C 0%, #07305A 52%, #041B36 100%);
  border: 1px solid rgba(56, 189, 248, 0.44);
  box-shadow: 0 16px 38px rgba(7, 48, 90, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

/* Brushed Platinum Silver-Blue Banking EMV Chip */
.tbank-card-chip {
  width: 38px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, #E2E8F0 0%, #94A3B8 48%, #F8FAFC 100%);
  border: 1px solid rgba(15, 23, 42, 0.3);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.7), 0 2px 5px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}
.tbank-card-chip::after {
  content: '';
  position: absolute;
  inset: 4px 6px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}
.tbank-card-chip-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.25);
}

/* Curved highlight line on card */
.tbank-card-line {
  position: absolute;
  right: -20px;
  top: -20px;
  width: 200px;
  height: 200px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

/* T-Bank Expenses / Spending Button Widget */
.tbank-expenses-widget {
  margin: 10px 16px 14px 16px;
  background: #FFFFFF;
  border-radius: 24px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.15s ease;
}
.dark .tbank-expenses-widget {
  background: linear-gradient(135deg, rgba(20, 29, 48, 0.9) 0%, rgba(13, 20, 36, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.dark .tbank-expenses-widget:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}
.tbank-expenses-widget:active {
  transform: scale(0.98);
}

/* Compact 2x2 Grid Tiles */
.tbank-grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 4px 16px 14px;
}
.tbank-grid-tile {
  background: #FFFFFF;
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.035), 0 1px 3px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.035);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 126px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.dark .tbank-grid-tile {
  background: #141B2D;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.tbank-grid-tile:active {
  transform: scale(0.96);
}

/* Mini realistic card graphic inside tile */
.tbank-mini-card {
  width: 36px;
  height: 23px;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}
.tbank-mini-card::after {
  content: '';
  position: absolute;
  top: -10px;
  right: -10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.tbank-mini-card.black {
  background: linear-gradient(135deg, #102042 0%, #1E3A8A 100%);
  border: 0.5px solid rgba(96, 165, 250, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 11px;
}
.tbank-mini-card.platinum {
  background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 50%, #1E3A8A 100%);
  border: 0.5px solid rgba(96, 165, 250, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 11px;
}
.tbank-mini-card.purple {
  background: linear-gradient(135deg, #0088CC 0%, #0098EA 50%, #005580 100%);
  border: 0.5px solid rgba(56, 189, 248, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}
.tbank-mini-card.accounts {
  background: linear-gradient(135deg, #E2E8F0 0%, #CBD5E1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
}
.dark .tbank-mini-card.accounts {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  color: #94A3B8;
}

/* Badge inside tile */
.tbank-tile-badge {
  font-size: 10px;
  font-weight: 700;
  color: #6B7280;
  background: #F3F4F6;
  padding: 2px 7px;
  border-radius: 9999px;
}
.dark .tbank-tile-badge {
  background: #1F293D;
  color: #9CA3AF;
}

/* Circular Bottom Quick Action Bar */
.tbank-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 10px 14px 16px;
  width: 100%;
}
.tbank-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: transparent;
  border: none;
  outline: none;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.tbank-action-item:active {
  transform: scale(0.90);
}
.tbank-circle-btn {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  line-height: 1;
  color: #1F2937;
  font-size: 22px;
  font-weight: 500;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}
.tbank-circle-btn svg {
  display: block;
  margin: auto;
  flex-shrink: 0;
}
.dark .tbank-circle-btn {
  background: linear-gradient(180deg, rgba(30, 42, 66, 0.9) 0%, rgba(17, 25, 42, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 6px 18px rgba(0, 0, 0, 0.36);
  color: #F8FAFC;
}
.dark .tbank-circle-btn.accent-blue {
  background: linear-gradient(180deg, #3B82F6 0%, #2563EB 100%);
  border-color: rgba(147, 197, 253, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 8px 20px rgba(37, 99, 235, 0.42);
}
.dark .tbank-circle-btn:hover {
  background: linear-gradient(180deg, rgba(40, 56, 88, 0.95) 0%, rgba(22, 33, 56, 0.98) 100%);
  border-color: rgba(96, 165, 250, 0.35);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 24px rgba(0, 0, 0, 0.48), 0 0 16px rgba(59, 130, 246, 0.18);
}
.tbank-action-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #4B5563;
}
.dark .tbank-action-label {
  color: #CBD5E1;
}

/* ─── PIN SQUIRCLE KEYPAD & SHAKE ANIMATION ──────────────── */
.pin-key-squircle {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 6px 16px rgba(0, 0, 0, 0.32);
  -webkit-tap-highlight-color: transparent;
}
.pin-key-squircle:active:not(:disabled) {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
@keyframes pinErrorShake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-8px); }
  40%      { transform: translateX(8px); }
  60%      { transform: translateX(-5px); }
  80%      { transform: translateX(5px); }
}
.pin-error-shake {
  animation: pinErrorShake 0.36s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* ─── RESPONSIVE COMPACT VIEWPORT HEIGHT FIT (600px–720px) ── */
@media (max-height: 700px) {
  .tbank-top-row {
    padding: 6px 14px 6px;
  }
  .tbank-dots {
    margin: 2px 0 4px;
  }
  .tbank-balance-num {
    font-size: 33px;
    margin: 2px 0 8px;
  }
  .tbank-card-carousel {
    padding: 4px 16px 8px 16px;
  }
  .tbank-card-slide {
    padding: 15px 18px;
    border-radius: 22px;
  }
  .tbank-expenses-widget {
    margin: 6px 16px 8px 16px;
    padding: 10px 14px;
    border-radius: 20px;
  }
  .tbank-action-bar {
    padding: 4px 12px 12px;
  }
  .tbank-circle-btn {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }
}

/* ═══════════════════════════════════════════════════════════
   MENT PAY • LIGHT THEME IN BLUE TONES ("Светлая в синих тонах")
   ═══════════════════════════════════════════════════════════ */

/* Light Theme Core Canvas & Elements */
html.light body,
html.light {
  background-color: var(--bg-0) !important;
  color: var(--text-primary) !important;
}

html.light .ambient-glow {
  background: radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.12) 0%, transparent 68%) !important;
}

html.light .tbank-canvas {
  background: radial-gradient(120% 55% at 50% 0%, #FFFFFF 0%, #F1F6FD 60%, #E3EDF9 100%) !important;
  border-color: rgba(37, 99, 235, 0.18) !important;
  color: #0A1329 !important;
  box-shadow: 0 14px 44px rgba(37, 99, 235, 0.10), inset 0 1px 0 #FFFFFF !important;
}

html.light .tbank-notch {
  background: #FFFFFF !important;
  color: #0A1329 !important;
  border: 1px solid rgba(37, 99, 235, 0.16) !important;
  border-top: none !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08) !important;
}
html.light .tbank-notch span {
  color: #0A1329 !important;
}
html.light .tbank-notch:hover {
  border-color: rgba(37, 99, 235, 0.35) !important;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.14) !important;
}

html.light .tbank-search-bar {
  background: #FFFFFF !important;
  border: 1px solid rgba(37, 99, 235, 0.18) !important;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.05) !important;
}
html.light .tbank-search-bar:hover {
  border-color: rgba(37, 99, 235, 0.35) !important;
}
html.light .tbank-search-text {
  color: #627D98 !important;
}

html.light .tbank-balance-num {
  color: #0A1329 !important;
  -webkit-text-fill-color: #0A1329 !important;
  filter: none !important;
}

html.light .tbank-expenses-widget {
  background: linear-gradient(135deg, #FFFFFF 0%, #F1F7FD 100%) !important;
  border: 1px solid rgba(37, 99, 235, 0.18) !important;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.08), 0 1px 2px rgba(37, 99, 235, 0.04) !important;
}
html.light .tbank-expenses-widget:hover {
  border-color: rgba(37, 99, 235, 0.35) !important;
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.12) !important;
}

html.light .tbank-grid-tile {
  background: #FFFFFF !important;
  border-color: rgba(37, 99, 235, 0.16) !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.06) !important;
}

html.light .tbank-tile-badge {
  background: #E3EDF9 !important;
  color: #2563EB !important;
  border-color: rgba(37, 99, 235, 0.22) !important;
}

/* Home Quick Action Circle Buttons */
html.light .tbank-circle-btn {
  background: #FFFFFF !important;
  border: 1px solid rgba(37, 99, 235, 0.18) !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08), inset 0 1px 0 #FFFFFF !important;
  color: #2563EB !important;
}
html.light .tbank-circle-btn svg {
  color: #2563EB !important;
}
html.light .tbank-circle-btn:hover {
  background: #E3EDF9 !important;
  border-color: rgba(37, 99, 235, 0.35) !important;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.14) !important;
}
html.light .tbank-circle-btn.accent-blue {
  background: linear-gradient(180deg, #3B82F6 0%, #2563EB 100%) !important;
  color: #FFFFFF !important;
  border-color: rgba(37, 99, 235, 0.4) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 8px 20px rgba(37, 99, 235, 0.35) !important;
}
html.light .tbank-circle-btn.accent-blue svg {
  color: #FFFFFF !important;
}

html.light .tbank-action-label {
  color: #334E68 !important;
}

html.light .tbank-dot {
  background: rgba(37, 99, 235, 0.22) !important;
}
html.light .tbank-dot.active {
  background: #2563EB !important;
}

/* Light Theme Segmented Controls */
html.light .t-segment-control {
  background: #E3EDF9 !important;
  border: 1px solid rgba(37, 99, 235, 0.20) !important;
  box-shadow: inset 0 1px 3px rgba(37, 99, 235, 0.08) !important;
}
html.light .t-segment-btn {
  color: #334E68 !important;
  font-weight: 700 !important;
}
html.light .t-segment-btn:hover {
  color: #0A1329 !important;
  background: rgba(37, 99, 235, 0.08) !important;
}
html.light .t-segment-btn.active {
  background: linear-gradient(180deg, #2563EB 0%, #1D4ED8 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 3px 12px rgba(37, 99, 235, 0.35) !important;
}
html.light .t-segment-btn.active * {
  color: #FFFFFF !important;
}

/* Secondary & Dark Buttons (.t-btn-dark & option buttons) */
html.light .t-btn-dark {
  background: #FFFFFF !important;
  border: 1px solid rgba(37, 99, 235, 0.22) !important;
  color: #0A1329 !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06) !important;
  font-weight: 700 !important;
}
html.light .t-btn-dark:hover {
  background: #F0F6FD !important;
  border-color: rgba(37, 99, 235, 0.35) !important;
}
html.light .t-btn-dark:active {
  background: #E3EDF9 !important;
  transform: scale(0.97);
}

/* Option / Selection Buttons inside modals */
html.light button.bg-\[\#131E3A\],
html.light button.bg-\[\#0F172A\],
html.light button.bg-\[\#0A1020\],
html.light button.bg-\[\#091124\],
html.light button.bg-slate-800,
html.light button.bg-slate-900,
html.light button.bg-gray-800,
html.light button.bg-zinc-800,
html.light button.bg-black\/40,
html.light button.bg-black\/30,
html.light button.bg-black\/20,
html.light button.bg-white\/\[0\.04\],
html.light button.bg-white\/\[0\.05\],
html.light button.bg-white\/\[0\.07\],
html.light button.bg-white\/\[0\.08\],
html.light button.bg-white\/5,
html.light button.bg-white\/10 {
  background-color: #FFFFFF !important;
  border: 1px solid rgba(37, 99, 235, 0.18) !important;
  color: #0A1329 !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.05) !important;
}
html.light button.bg-\[\#131E3A\]:hover,
html.light button.bg-white\/\[0\.04\]:hover,
html.light button.bg-slate-800:hover {
  background-color: #F0F6FD !important;
  border-color: rgba(37, 99, 235, 0.30) !important;
}

/* Selected state of option buttons */
html.light button.bg-\[\#142A5C\],
html.light button.bg-blue-600\/25,
html.light button.bg-blue-600\/20,
html.light button.bg-blue-500\/25,
html.light button.bg-blue-500\/20 {
  background-color: #E3EDF9 !important;
  border: 1px solid #2563EB !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.16) !important;
}

/* Amount preset chips */
html.light .chip-amount {
  background: #FFFFFF !important;
  border: 1px solid rgba(37, 99, 235, 0.18) !important;
  color: #2563EB !important;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.06) !important;
  font-weight: 700 !important;
}
html.light .chip-amount:hover {
  background: #F0F6FD !important;
  border-color: #2563EB !important;
}
html.light .chip-amount:active {
  background: #E3EDF9 !important;
  color: #1D4ED8 !important;
}

/* Modal Close ('X') button */
html.light .modal-sheet button.absolute,
html.light .modal-bottom-sheet button.absolute {
  background: rgba(37, 99, 235, 0.08) !important;
  border: 1px solid rgba(37, 99, 235, 0.18) !important;
  color: #0A1329 !important;
}
html.light .modal-sheet button.absolute svg,
html.light .modal-bottom-sheet button.absolute svg {
  stroke: #0A1329 !important;
  color: #0A1329 !important;
}

/* Modal drag handle */
html.light .drag-handle {
  background: rgba(37, 99, 235, 0.28) !important;
}

/* Light Theme Navigation Bar */
html.light .t-bottom-nav {
  background: rgba(238, 244, 251, 0.94) !important;
  border-top: 1px solid rgba(37, 99, 235, 0.16) !important;
  box-shadow: 0 -8px 32px rgba(16, 42, 86, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}
html.light .t-nav-item {
  color: #486581 !important;
}
html.light .t-nav-item:hover {
  color: #0A1329 !important;
}
html.light .t-nav-item.active {
  color: #2563EB !important;
  background: rgba(37, 99, 235, 0.10) !important;
}
html.light .t-nav-item.active .t-nav-dot {
  background: #2563EB !important;
}

/* Light Theme Modals and Bottom Sheets */
html.light .modal-sheet,
html.light .modal-bottom-sheet {
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F6FD 100%) !important;
  border-top: 1px solid rgba(37, 99, 235, 0.22) !important;
  box-shadow: 0 -12px 48px rgba(16, 42, 86, 0.18), inset 0 1px 0 #FFFFFF !important;
  color: #0A1329 !important;
}
html.light .modal-backdrop,
html.light .modal-overlay,
html.light .bg-black\/80,
html.light .bg-black\/70 {
  background: rgba(10, 19, 41, 0.48) !important;
}

/* Light Theme Surface Cards & Tiles */
html.light .t-tile,
html.light .t-card {
  background-color: var(--bg-1) !important;
  border-color: var(--border) !important;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.06) !important;
}

/* Light Theme Hardcoded Dark Tailwind Containers */
html.light .bg-\[\#0A0F1E\],
html.light .bg-\[\#080D1B\],
html.light .bg-\[\#091024\],
html.light .bg-\[\#090F1F\] {
  background-color: var(--bg-0) !important;
  border-color: var(--border) !important;
}

html.light .bg-\[\#0D1526\],
html.light .bg-\[\#131E3A\],
html.light .bg-\[\#0F172A\],
html.light .bg-\[\#121E35\],
html.light .bg-\[\#091124\],
html.light .bg-\[\#0A1020\],
html.light .bg-\[\#0E1528\],
html.light .bg-\[\#0E172E\] {
  background-color: var(--bg-1) !important;
  border-color: var(--border) !important;
  color: var(--text-primary) !important;
}

html.light .bg-\[\#142A5C\],
html.light .bg-\[\#162036\] {
  background-color: var(--bg-2) !important;
  border-color: var(--border-med) !important;
  color: var(--text-primary) !important;
}

html.light .bg-\[\#08101E\]\/95,
html.light .bg-\[\#091124\]\/95 {
  background-color: rgba(255, 255, 255, 0.95) !important;
}

/* Dark gradient tiles in Settings & Services */
html.light .from-\[\#061820\],
html.light .via-\[\#0A1A28\],
html.light .to-\[\#040E18\],
html.light .from-indigo-950\/30,
html.light .via-\[\#131238\],
html.light .to-\[\#0D1836\] {
  background: linear-gradient(135deg, #FFFFFF 0%, #EEF4FB 100%) !important;
  border: 1px solid rgba(37, 99, 235, 0.16) !important;
}

/* Light Theme Alpha Borders & Backgrounds */
html.light .border-white\/5,
html.light .border-white\/10,
html.light .border-white\/15,
html.light .border-white\/20,
html.light .border-white\/\[0\.08\] {
  border-color: var(--border) !important;
}

html.light .bg-white\/\[0\.04\],
html.light .bg-white\/\[0\.05\],
html.light .bg-white\/\[0\.06\],
html.light .bg-white\/\[0\.07\],
html.light .bg-white\/\[0\.08\],
html.light .bg-white\/\[0\.1\],
html.light .bg-white\/5,
html.light .bg-white\/10 {
  background-color: rgba(37, 99, 235, 0.05) !important;
  border-color: rgba(37, 99, 235, 0.14) !important;
}

html.light .hover\:bg-white\/\[0\.07\]:hover,
html.light .hover\:bg-white\/\[0\.08\]:hover,
html.light .hover\:bg-white\/\[0\.14\]:hover {
  background-color: rgba(37, 99, 235, 0.09) !important;
}

/* Light Theme Inputs */
html.light .t-input,
html.light input:not([type="checkbox"]):not([type="radio"]),
html.light select,
html.light textarea {
  background-color: #FFFFFF !important;
  color: #0A1329 !important;
  border-color: rgba(37, 99, 235, 0.22) !important;
  color-scheme: light !important;
}
html.light .t-input:focus,
html.light input:focus,
html.light select:focus,
html.light textarea:focus {
  border-color: #2563EB !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18) !important;
}
html.light input::placeholder,
html.light textarea::placeholder {
  color: #627D98 !important;
}

/* Light Theme PIN Pad Squircles */
html.light .pin-key-squircle {
  background: #FFFFFF !important;
  color: #0A1329 !important;
  border: 1px solid rgba(37, 99, 235, 0.18) !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08) !important;
}
html.light .pin-key-squircle:active:not(:disabled) {
  background: #E3EDF9 !important;
}

/* ─── TYPOGRAPHY MAPPING (ZERO WHITE-ON-WHITE) ─── */
html.light .text-white,
html.light .text-slate-100,
html.light .text-slate-200,
html.light .text-gray-100,
html.light .text-gray-200,
html.light .text-neutral-100,
html.light .text-neutral-200,
html.light .text-zinc-100,
html.light .text-zinc-200 {
  color: var(--text-primary) !important;
}

html.light .text-slate-300,
html.light .text-slate-400,
html.light .text-gray-300,
html.light .text-gray-400,
html.light .text-neutral-300,
html.light .text-neutral-400 {
  color: var(--text-secondary) !important;
}

html.light .text-slate-500,
html.light .text-gray-500 {
  color: var(--text-muted) !important;
}

/* Ensure text inside pastel / translucent colored containers in body content is dark and readable (excluding banking cards) */
html.light body > div:not(.tbank-card-slide) [class*="bg-blue-500/"]:not(.tbank-card-slide *):not(.tbank-card-black *):not(.tbank-card-platinum *):not(.tbank-card-purple *) .text-white,
html.light body > div:not(.tbank-card-slide) [class*="bg-blue-600/"]:not(.tbank-card-slide *):not(.tbank-card-black *):not(.tbank-card-platinum *):not(.tbank-card-purple *) .text-white,
html.light body > div:not(.tbank-card-slide) [class*="bg-sky-500/"]:not(.tbank-card-slide *):not(.tbank-card-black *):not(.tbank-card-platinum *):not(.tbank-card-purple *) .text-white,
html.light body > div:not(.tbank-card-slide) [class*="bg-indigo-"]:not(.tbank-card-slide *):not(.tbank-card-black *):not(.tbank-card-platinum *):not(.tbank-card-purple *) .text-white {
  color: var(--text-primary) !important;
}

/* STRICT Whitelist: ONLY truly solid, dark, or saturated elements keep white text */
html.light .t-btn-blue,
html.light .t-btn-blue *,
html.light .t-segment-btn.active,
html.light .t-segment-btn.active *,
html.light button.bg-blue-600:not([class*="/"]),
html.light button.bg-blue-600:not([class*="/"]) *,
html.light a[class*="from-blue-600"],
html.light a[class*="from-blue-600"] *,
html.light button[class*="from-blue-600"],
html.light button[class*="from-blue-600"] *,
html.light .tbank-circle-btn.accent-blue,
html.light .tbank-circle-btn.accent-blue *,
html.light .bg-blue-600.text-white:not([class*="/"]),
html.light .bg-blue-600.text-white:not([class*="/"]) *,
html.light .bg-emerald-600.text-white:not([class*="/"]),
html.light .bg-emerald-600.text-white:not([class*="/"]) *,
html.light .bg-rose-600.text-white:not([class*="/"]),
html.light .bg-rose-600.text-white:not([class*="/"]) *,
html.light .bg-amber-500.text-white,
html.light .bg-amber-500.text-white *,
html.light .btn-primary,
html.light .btn-primary * {
  color: #FFFFFF !important;
}

/* Banking Account Cards (RUB, USDT, TON) - ALWAYS Pure White in ALL Themes */
.tbank-card-slide,
.tbank-card-slide *,
.tbank-card-slide span,
.tbank-card-slide div,
.tbank-card-slide [class*="bg-"] *,
.tbank-card-black,
.tbank-card-black *,
.tbank-card-black [class*="bg-"] *,
.tbank-card-platinum,
.tbank-card-platinum *,
.tbank-card-platinum [class*="bg-"] *,
.tbank-card-purple,
.tbank-card-purple *,
.tbank-card-purple [class*="bg-"] *,
html.light .tbank-card-slide,
html.light .tbank-card-slide *,
html.light .tbank-card-slide span,
html.light .tbank-card-slide div,
html.light .tbank-card-slide [class*="bg-"] *,
html.light .tbank-card-slide .text-white,
html.light .tbank-card-slide [class*="text-"],
html.light .tbank-card-black,
html.light .tbank-card-black *,
html.light .tbank-card-black [class*="bg-"] *,
html.light .tbank-card-black .text-white,
html.light .tbank-card-black [class*="text-"],
html.light .tbank-card-platinum,
html.light .tbank-card-platinum *,
html.light .tbank-card-platinum [class*="bg-"] *,
html.light .tbank-card-platinum .text-white,
html.light .tbank-card-platinum [class*="text-"],
html.light .tbank-card-purple,
html.light .tbank-card-purple *,
html.light .tbank-card-purple [class*="bg-"] *,
html.light .tbank-card-purple .text-white,
html.light .tbank-card-purple [class*="text-"] {
  color: #FFFFFF !important;
}

html.light .tbank-card-slide [class*="text-white/80"],
html.light .tbank-card-slide .text-slate-300,
html.light .tbank-card-slide .text-slate-400,
html.light .tbank-card-black .text-slate-300,
html.light .tbank-card-platinum .text-slate-300,
html.light .tbank-card-purple .text-slate-300 {
  color: rgba(255, 255, 255, 0.82) !important;
}

html.light .tbank-card-slide svg,
html.light .tbank-card-black svg,
html.light .tbank-card-platinum svg,
html.light .tbank-card-purple svg {
  color: #FFFFFF !important;
  stroke: currentColor;
}

/* Universal Light Theme Card & Container Overrides (Deposit, Profile, Services, OrderSheet) */
html.light .bg-black\/60,
html.light .bg-black\/50,
html.light .bg-black\/40,
html.light .bg-black\/30,
html.light .bg-black\/20 {
  background-color: #EEF4FB !important;
  border-color: rgba(37, 99, 235, 0.16) !important;
}

html.light .bg-slate-900,
html.light .bg-slate-900\/90,
html.light .bg-slate-900\/80,
html.light .bg-slate-900\/70,
html.light .bg-slate-900\/60,
html.light .bg-slate-950,
html.light .bg-\[\#0F1E3D\],
html.light .hover\:bg-\[\#152852\]:hover,
html.light .bg-\[\#091122\],
html.light .bg-\[\#091124\],
html.light .bg-\[\#091024\],
html.light .bg-\[\#090F1F\],
html.light .bg-\[\#0A1022\],
html.light .bg-\[\#08101E\],
html.light .bg-\[\#08101E\]\/95,
html.light .bg-\[\#0d1c33\],
html.light .bg-\[\#0d1c33\]\/80,
html.light .bg-\[\#1A274E\],
html.light .bg-\[\#0B1226\],
html.light .bg-\[\#0C1529\]\/90,
html.light .bg-\[\#091829\]\/90,
html.light .bg-\[\#0F142A\]\/90,
html.light .bg-\[\#0B1728\]\/90,
html.light .bg-\[\#131E3A\],
html.light .bg-\[\#101935\],
html.light .bg-\[\#0B1528\],
html.light .bg-\[\#0D182E\],
html.light .bg-\[\#0F172A\],
html.light .bg-\[\#0A1020\],
html.light .bg-\[\#0B172E\],
html.light .bg-\[\#070F1E\],
html.light .t-tile {
  background: #FFFFFF !important;
  border-color: rgba(37, 99, 235, 0.16) !important;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.06) !important;
}

/* Gradients used across Vaults, Cheques, Invoices, Giveaways, Profile, and Modals */
html.light [class*="from-[#0E224A]"],
html.light [class*="via-[#091632]"],
html.light [class*="to-[#050C1C]"],
html.light [class*="from-[#0B1528]"],
html.light [class*="to-[#080D1A]"],
html.light [class*="via-[#091222]"],
html.light [class*="to-[#060D1A]"],
html.light [class*="from-[#1A1305]"],
html.light [class*="via-[#0E1528]"],
html.light [class*="to-[#0A0E1A]"],
html.light [class*="from-[#0D1A36]"],
html.light [class*="via-[#0A1328]"],
html.light [class*="to-[#080E1E]"],
html.light [class*="from-[#09152C]"],
html.light [class*="via-[#0B1A38]"],
html.light [class*="to-[#071022]"],
html.light [class*="from-[#061820]"],
html.light [class*="via-[#0A1A28]"],
html.light [class*="to-[#040E18]"],
html.light [class*="from-[#0D1E42]"],
html.light [class*="via-[#0E1530]"],
html.light [class*="to-[#080D1A]"],
html.light [class*="from-[#120F2E]"],
html.light [class*="to-[#0A071E]"],
html.light [class*="from-[#0D1833]"],
html.light [class*="via-[#091124]"],
html.light [class*="to-[#060B18]"],
html.light [class*="from-blue-950"],
html.light [class*="via-[#0E1B38]"],
html.light [class*="to-[#0A1328]"],
html.light [class*="via-[#101935]"],
html.light [class*="to-[#101935]"],
html.light [class*="from-indigo-950"],
html.light [class*="to-slate-900"],
html.light [class*="from-[#0B172E]"],
html.light [class*="to-[#070F1E]"] {
  background: #FFFFFF !important;
  border-color: rgba(37, 99, 235, 0.16) !important;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.06) !important;
}

/* Active setting items (bg-[#142A5C]) in light theme */
html.light [class*="bg-[#142A5C]"] {
  background: #DCEAFE !important;
  border-color: #2563EB !important;
  color: #1D4ED8 !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.14) !important;
}
html.light [class*="bg-[#142A5C]"] * {
  color: #1D4ED8 !important;
}

/* Pastel Text High Contrast in Light Theme */
html.light .text-sky-200,
html.light .text-sky-300 {
  color: #1D4ED8 !important;
}
html.light .text-sky-400 {
  color: #2563EB !important;
}
html.light .text-blue-300 {
  color: #1D4ED8 !important;
}
html.light .text-blue-400 {
  color: #2563EB !important;
}
html.light .text-emerald-300 {
  color: #047857 !important;
}
html.light .text-amber-300 {
  color: #B45309 !important;
}

/* Modal Sheet & Backdrops in Light Theme */
html.light .modal-sheet,
html.light .modal-bottom-sheet {
  background: #FFFFFF !important;
  border-color: rgba(37, 99, 235, 0.18) !important;
  box-shadow: 0 -12px 38px rgba(16, 42, 86, 0.14) !important;
  color: #0A1329 !important;
}

html.light .drag-handle {
  background-color: rgba(37, 99, 235, 0.25) !important;
}

html.light .t-btn-dark {
  background: #E8F1FC !important;
  color: #0A1329 !important;
  border: 1px solid rgba(37, 99, 235, 0.2) !important;
}
html.light .t-btn-dark:hover {
  background: #D9E8F9 !important;
}

/* Light Theme Toast Pill */
html.light .toast-pill {
  background: rgba(255, 255, 255, 0.96) !important;
  color: #0A1329 !important;
  border-color: rgba(37, 99, 235, 0.25) !important;
  box-shadow: 0 10px 32px rgba(16, 42, 86, 0.16) !important;
}
html.light .toast-pill .text-white {
  color: #0A1329 !important;
}
html.light .toast-pill .text-slate-300 {
  color: #334E68 !important;
}

/* ─── NOTIFICATIONS & MODALS (THEMED) ─────────────────────── */
.notif-modal-sheet {
  background: #0A1024;
  border-color: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}
.notif-header {
  border-color: rgba(255, 255, 255, 0.1);
}
.notif-title {
  color: #FFFFFF;
}
.notif-subtitle {
  color: #94A3B8;
}
.notif-close-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #CBD5E1;
}
.notif-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
.notif-tab {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: #94A3B8;
}
.notif-tab.active {
  background: #2563EB;
  border-color: #60A5FA;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
.notif-badge-inactive {
  background: rgba(255, 255, 255, 0.1);
  color: #94A3B8;
}
.notif-card {
  border-color: rgba(255, 255, 255, 0.08);
}
.notif-card-read {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.07);
}
.notif-card-unread {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.35) 0%, rgba(16, 27, 58, 0.95) 100%);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 4px 16px rgba(30, 58, 138, 0.25);
}
.notif-item-title {
  color: #FFFFFF;
}
.notif-item-msg {
  color: #CBD5E1;
}
.notif-item-time {
  color: #94A3B8;
}
.notif-card-footer {
  border-color: rgba(255, 255, 255, 0.06);
}
.notif-amount-neutral {
  color: #E2E8F0;
}
.notif-footer {
  border-color: rgba(255, 255, 255, 0.1);
}
.notif-footer-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #E2E8F0;
}

/* ─── LIGHT MODE OVERRIDES FOR NOTIFICATIONS & MODALS ──────── */
html.light .notif-modal-sheet {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  color: #0F172A !important;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.15), 0 0 0 1px #E2E8F0 !important;
}
html.light .notif-header {
  border-color: #E2E8F0 !important;
}
html.light .notif-title {
  color: #0F172A !important;
}
html.light .notif-subtitle {
  color: #64748B !important;
}
html.light .notif-close-btn {
  background: #F1F5F9 !important;
  color: #334155 !important;
}
html.light .notif-close-btn:hover {
  background: #E2E8F0 !important;
}
html.light .notif-tab {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
  color: #64748B !important;
}
html.light .notif-tab.active {
  background: #2563EB !important;
  border-color: #3B82F6 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25) !important;
}
html.light .notif-badge-inactive {
  background: #E2E8F0 !important;
  color: #475569 !important;
}
html.light .notif-card-read {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}
html.light .notif-card-unread {
  background: linear-gradient(135deg, #EFF6FF 0%, #F0F9FF 100%) !important;
  border-color: #BFDBFE !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08) !important;
}
html.light .notif-item-title {
  color: #0F172A !important;
}
html.light .notif-item-msg {
  color: #334155 !important;
}
html.light .notif-item-time {
  color: #64748B !important;
}
html.light .notif-card-footer {
  border-color: #F1F5F9 !important;
}
html.light .notif-amount-neutral {
  color: #1E293B !important;
}
html.light .notif-footer {
  border-color: #E2E8F0 !important;
}
html.light .notif-footer-btn {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
  color: #1E293B !important;
}
html.light .theme-customizer-sheet {
  background: #FFFFFF !important;
}
html.light .theme-customizer-sheet .notif-header {
  background: #FFFFFF !important;
}
html.light .theme-customizer-sheet .text-white {
  color: #0F172A !important;
}
html.light .theme-customizer-sheet .text-slate-400 {
  color: #64748B !important;
}


