:root {
  --bg: #07152B; --surface: #FFFFFF; --surface-2: #F0F4F8; --border: #CBD5E1; --border-strong: #94A3B8;
  --text: #0F172A; --muted: #475569; --blue: #0057B7; --gold: #FFD700; --amber: #FFD700;
  --green: #0057B7; --red: #DC2626; --radius: 18px;
  --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px); --tabbar-h: 64px;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #64748B #E2E8F0;
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  overscroll-behavior-x: none;
}
::selection { background: #DBEAFE; color: #1E3A8A; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(120% 70% at 50% 0%, #0E2E5C 0%, #091D3E 55%, #051226 100%) fixed !important;
  background-attachment: fixed;
  color: var(--text); line-height: 1.45; min-height: 100dvh;
  accent-color: var(--blue);
  -webkit-tap-highlight-color: transparent; padding-bottom: var(--safe-bottom);
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  position: relative;
  overscroll-behavior-x: none;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; }
.hidden { display: none !important; }
.text-emerald { color: var(--blue); }
.text-muted { color: var(--muted); }
.rate-zero { color: #0057B7; font-weight: 800; }

/* Header - Crisp White with Ukrainian Gold Accent Border */
.app-header {
  position: sticky; top: 0; z-index: 50; padding-top: var(--safe-top);
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 2.5px solid #FFD700 !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14) !important;
}
.header-container { 
  max-width: 760px; 
  margin: 0 auto; 
  padding: 8px 12px; 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 8px; 
  min-height: 48px;
}
.brand-identity { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  min-width: 0;
  flex: 1 1 auto;
}

/* ==================== DESKTOP HEADER NAVIGATION ==================== */
.desktop-header-nav {
  display: none;
}

@media (min-width: 768px) {
  .brand-identity {
    flex: 0 0 auto;
  }
  .desktop-header-nav {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #F1F5F9;
    border: 1px solid #CBD5E1;
    border-radius: 14px;
    padding: 3px;
    margin: 0 12px;
  }
  .desktop-nav-btn {
    padding: 7px 16px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
    line-height: 1.2;
  }
  .desktop-nav-btn:hover {
    color: #0F172A;
    background: rgba(255, 255, 255, 0.7);
  }
  .desktop-nav-btn.active {
    background: #0057B7;
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 87, 183, 0.35);
  }
}

@media (min-width: 768px) and (max-width: 960px) {
  .desktop-nav {
    margin: 0 6px !important;
  }
  .desktop-nav-btn {
    padding: 6px 10px !important;
    font-size: 12.5px !important;
  }
  .header-actions {
    gap: 4px !important;
  }
}
.brand-logo-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.brand-text { 
  display: flex; 
  flex-direction: column; 
  min-width: 0;
  line-height: 1.15;
}
.brand-title { 
  font-weight: 800; 
  font-size: 16px; 
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #0F172A !important;
}
.badge-247 {
  background: #FFD700 !important;
  color: #07152B !important;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  vertical-align: middle;
  flex-shrink: 0;
}
.brand-sub {
  font-size: 11px;
  color: #475569 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.btn-pwa-header { 
  display: inline-flex; 
  align-items: center; 
  gap: 5px; 
  background: linear-gradient(135deg, #0057B7 0%, #004494 100%) !important; 
  border: 1.5px solid #FFD700 !important; 
  color: #FFFFFF !important;
  padding: 6px 12px; 
  border-radius: 9px; 
  font-size: 12px; 
  font-weight: 700; 
  white-space: nowrap; 
  flex-shrink: 0; 
  box-shadow: 0 4px 12px rgba(0, 87, 183, 0.35) !important;
  transition: all 0.15s ease;
}
.btn-pwa-header:active {
  transform: scale(0.96);
}

/* Ticker */
.market-ticker-bar { overflow: hidden; background: #081B38; border-bottom: 1px solid rgba(255, 215, 0, 0.15); font-size: 12px; color: rgba(255, 255, 255, 0.85); }
.ticker-inner { display: flex; gap: 14px; white-space: nowrap; padding: 8px 0; width: max-content; animation: ticker 28s linear infinite; }
.ticker-separator { opacity: .5; }
.dot-online { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #FFD700; margin-right: 4px; box-shadow: 0 0 6px #FFD700; }
@keyframes ticker { from { transform: translateX(100vw); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .ticker-inner { animation: none; padding-left: 16px; } }

.main-content {
  width: 100% !important;
  max-width: 760px;
  min-width: 0 !important;
  margin: 0 auto;
  padding: 16px;
  display: grid;
  gap: 20px;
  overflow-x: hidden !important;
  box-sizing: border-box;
}
.section-title { font-size: 19px; font-weight: 800; }

/* Calculator */
.calculator-hero-card { background: linear-gradient(160deg, #072044 0%, var(--surface) 55%); border: 1px solid var(--border); border-radius: 20px; padding: 18px; display: grid; gap: 18px; }
.promo-pill { display: inline-flex; gap: 6px; align-items: center; background: rgba(253,224,71,.14); border: 1px solid rgba(253,224,71,.5); color: var(--gold); border-radius: 999px; padding: 6px 12px; font-size: 13px; margin-bottom: 10px; }
.hero-heading { font-size: 23px; line-height: 1.2; font-weight: 800; margin-bottom: 6px; }
.hero-desc { color: #C7D2FE; font-size: 14px; }
.calc-group { display: grid; gap: 8px; }
.calc-label-row { display: flex; justify-content: space-between; align-items: baseline; }
.calc-label { color: var(--muted); font-size: 14px; }
.calc-value-display { font-size: 22px; font-weight: 800; }
.range-slider { width: 100%; height: 28px; accent-color: var(--gold); cursor: pointer; }
.slider-range-limits { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.chips-row { display: flex; gap: 6px; flex-wrap: wrap; }
.amount-chip, .days-chip { background: var(--surface-2); border: 1px solid var(--border); padding: 6px 10px; border-radius: 999px; font-size: 13px; }
.amount-chip.active, .days-chip.active { background: var(--gold); color: #111; border-color: var(--gold); font-weight: 700; }
.calc-result-panel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: rgba(0,0,0,.25); border-radius: 14px; padding: 12px; }
.result-metric { display: flex; flex-direction: column; gap: 2px; }
.res-label { font-size: 11px; color: var(--muted); }
.res-val { font-size: 16px; font-weight: 800; }

/* Multi-apply */
.multi-apply-banner { background: var(--surface); border: 1px dashed var(--amber); border-radius: var(--radius); padding: 14px; display: grid; gap: 12px; }
.multi-apply-content { display: flex; gap: 10px; font-size: 13px; }
.multi-text { display: flex; flex-direction: column; gap: 2px; color: var(--muted); }
.multi-text strong { color: var(--text); }
.multi-icon { font-size: 22px; }
.btn-multi-apply { display: flex; justify-content: center; align-items: center; gap: 6px; background: var(--amber); color: #111; font-weight: 700; padding: 12px; border-radius: 12px; }

/* Filters & Curated Clickbait Hero Section */
.offers-filter-section { 
  display: flex;
  flex-direction: column;
  gap: 10px; 
  margin-bottom: 12px;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
  box-sizing: border-box;
}

.curated-headline-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-bottom: 8px;
  box-sizing: border-box;
}

.curated-hero-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.curated-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.curated-main-title {
  font-size: clamp(19px, 4.9vw, 26px);
  font-weight: 800;
  line-height: 1.15;
  color: #FFFFFF;
  letter-spacing: -0.3px;
  margin: 0;
  white-space: nowrap !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.curated-lime-highlight,
.curated-highlight-gold {
  color: #FFD700 !important;
  text-shadow: 0 0 14px rgba(255, 215, 0, 0.55);
  font-weight: 800;
}

.curated-highlight-green {
  color: #10B981 !important;
  text-shadow: 0 0 14px rgba(16, 185, 129, 0.6);
  font-weight: 800;
}

.curated-highlight-blue {
  color: #38BDF8 !important;
  text-shadow: 0 0 14px rgba(56, 189, 248, 0.6);
  font-weight: 800;
}

.curated-highlight-orange {
  color: #FB923C !important;
  text-shadow: 0 0 14px rgba(251, 146, 60, 0.6);
  font-weight: 800;
}

.curated-main-desc {
  font-size: clamp(11.5px, 3.2vw, 13.5px);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.3;
  margin: 0;
  font-weight: 400;
}

.curated-stats-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
}

.curated-count-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 4px 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.curated-issued-card {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.32) 100%);
  border: 1px solid rgba(52, 211, 153, 0.5);
  border-radius: 10px;
  padding: 4px 8px;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: right;
  transition: transform 0.2s ease;
}

.curated-issued-card:hover {
  transform: translateY(-1px);
}

.curated-issued-card .issued-live-dot {
  color: #34D399;
  font-size: 8px;
  animation: livePulseGreen 1.8s infinite;
  flex-shrink: 0;
}

.curated-issued-card .issued-text-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.curated-issued-card .issued-label {
  font-size: 8.5px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.15;
  white-space: nowrap;
}

.curated-issued-card .issued-val {
  font-size: 11px;
  color: #FFFFFF;
  line-height: 1.2;
  white-space: nowrap;
}

.curated-issued-card .issued-val strong {
  color: #FFD700;
  font-weight: 800;
  font-size: 12.5px;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.35);
}

@keyframes livePulseGreen {
  0% { opacity: 0.5; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0.5; transform: scale(0.85); }
}

.curated-count-num {
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  color: #FFFFFF !important;
  letter-spacing: -0.5px;
}

.curated-count-label {
  font-size: 9.5px;
  line-height: 1.15;
  font-weight: 600;
  color: #FFFFFF !important;
  opacity: 0.9;
  text-align: left;
}

.curated-top-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(9.5px, 2.6vw, 11px);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  margin-top: 3px;
  margin-left: -2px;
}

.curated-top-kicker .kicker-dot {
  display: none !important;
}

/* ==================== ХВИЛЯ СХВАЛЕНЬ / ВАЖЛИВА НОВИНА НАД ФІЛЬТРАМИ ==================== */
.curated-approval-wave-bar {
  display: block;
  font-size: 12.5px !important;
  line-height: 1.08 !important;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.2) 100%);
  border: 1px solid rgba(52, 211, 153, 0.45);
  border-radius: 7px;
  padding: 3px 7px !important;
  margin-bottom: 5px !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
  box-sizing: border-box;
  width: 100%;
}

.curated-approval-wave-bar.wave-bar-hidden,
#approval-wave-bar.wave-bar-hidden,
.curated-approval-wave-bar[style*="display: none"],
#approval-wave-bar[style*="display: none"] {
  display: none !important;
}

.curated-approval-wave-bar::after {
  content: "";
  display: table;
  clear: both;
}

.wave-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(16, 185, 129, 0.25);
  border: 1px solid rgba(52, 211, 153, 0.6);
  color: #34D399;
  font-size: 8px !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 1px 4.5px !important;
  border-radius: 3.5px;
  white-space: nowrap;
  line-height: 1 !important;
  vertical-align: 1.5px !important;
  margin: 0 4.5px 0 0 !important;
}

.wave-pulse-dot {
  color: #34D399;
  font-size: 6.5px;
  animation: livePulseGreen 1.6s infinite;
}

.wave-text {
  font-size: 12.5px !important;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.08 !important;
  margin: 0;
  display: inline !important;
}

.wave-close-btn {
  float: right !important;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
  line-height: 1;
  padding: 0 0 0 6px;
  cursor: pointer;
  transition: color 0.15s ease;
  margin-top: -1px;
}

.wave-close-btn:hover {
  color: #fff;
}

.wave-title-tag {
  color: #A7F3D0;
  font-weight: 800;
}

.wave-city-highlight,
.wave-text strong {
  color: #FFD700;
  font-weight: 700;
}

.wave-offer-highlight {
  color: #6EE7B7 !important;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2.5px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.wave-offer-highlight:hover {
  opacity: 0.85;
}

.wave-time-highlight {
  color: #FDE047 !important;
  font-weight: 800;
}

.offer-card-pulse-highlight {
  animation: cardPulseGlow 2.5s ease-out;
}

@keyframes cardPulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); border-color: #34D399; }
  50% { box-shadow: 0 0 22px 6px rgba(52, 211, 153, 0.55); border-color: #34D399; }
  100% { box-shadow: none; }
}

/* ==================== НІЧНИЙ РЕЖИМ 24/7 (21:00 - 07:00) ==================== */
.night-mode-badge-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.35) 0%, rgba(67, 56, 202, 0.42) 100%);
  border: 1px solid rgba(165, 180, 252, 0.65);
  border-radius: 7px;
  padding: 3.5px 8px !important;
  margin-bottom: 5px !important;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.22);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}

.night-mode-badge-bar.night-bar-hidden,
#night-mode-badge-bar.night-bar-hidden,
.night-mode-badge-bar[style*="display: none"],
#night-mode-badge-bar[style*="display: none"] {
  display: none !important;
}

.night-mode-badge-bar:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(129, 140, 248, 0.35);
  border-color: rgba(199, 210, 254, 0.85);
}

.night-badge-content {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
}

.night-badge-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(99, 102, 241, 0.4);
  border: 1px solid rgba(199, 210, 254, 0.85);
  color: #FFFFFF;
  font-size: 8.5px !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  padding: 1.5px 6px !important;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.night-moon-pulse {
  display: inline-block;
  margin-right: 4.5px;
  font-size: 9px;
  animation: nightMoonGlow 2s infinite ease-in-out;
}

@keyframes nightMoonGlow {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px #A5B4FC); }
  50% { transform: scale(1.15); filter: drop-shadow(0 0 6px #C7D2FE); }
}

.night-badge-text {
  font-size: 12.5px !important;
  line-height: 1.18 !important;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
}

.night-title-highlight {
  color: #FDE047 !important;
  font-weight: 800;
}

.night-no-calls-highlight {
  color: #6EE7B7 !important;
  font-weight: 800;
}

.night-badge-arrow {
  font-size: 10px;
  font-weight: 700;
  color: #C7D2FE;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}

/* Кнопка-фільтр нічного режиму */
.filter-tab.filter-tab-night {
  background: linear-gradient(135deg, rgba(49, 46, 129, 0.85) 0%, rgba(67, 56, 202, 0.9) 100%) !important;
  border: 1px solid rgba(165, 180, 252, 0.75) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
}

.filter-tab.filter-tab-night.active {
  background: linear-gradient(135deg, #4338CA 0%, #3730A3 100%) !important;
  border-color: #C7D2FE !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 14px rgba(129, 140, 248, 0.6) !important;
}

.night-tab-moon {
  display: inline-block;
  margin-right: 6px;
  font-size: 11px;
  vertical-align: -0.5px;
}

.night-tab-label-desktop {
  display: none;
}
.night-tab-label-mobile {
  display: inline;
}

@media (min-width: 641px) {
  .night-tab-label-desktop {
    display: inline;
  }
  .night-tab-label-mobile {
    display: none;
  }
}

/* Бейдж на картках офферів у нічному режимі */
.night-card-badge {
  display: inline-flex;
  align-items: center;
  background: #EEF2FF;
  border: 1px solid #818CF8;
  color: #3730A3;
  font-size: 8.5px;
  font-weight: 800;
  padding: 1.5px 5.5px;
  border-radius: 4px;
  white-space: nowrap;
  line-height: 1.2;
  margin-left: 3px;
  vertical-align: middle;
}
.night-card-moon {
  display: inline-block;
  margin-right: 3px;
  font-size: 8.5px;
}

[data-theme="dark"] .night-card-badge {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(165, 180, 252, 0.6);
  color: #E0E7FF;
}

@media (min-width: 640px) {
  .curated-approval-wave-bar {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 3px 10px 3px 8px !important;
  }
  .wave-live-badge {
    order: 1 !important;
    float: none !important;
    margin: 0 !important;
    font-size: 8px !important;
    padding: 1px 5px !important;
    vertical-align: middle !important;
    flex-shrink: 0;
  }
  .wave-text {
    order: 2 !important;
    font-size: 12.5px !important;
    line-height: 1.15 !important;
    display: inline-block !important;
    flex: 1;
    margin: 0 !important;
  }
  .wave-close-btn {
    order: 3 !important;
    float: none !important;
    margin-left: auto !important;
    flex-shrink: 0;
  }
}

@media (min-width: 768px) {
  .curated-hero-row {
    align-items: center;
  }

  .curated-headline-block {
    margin-bottom: 12px;
    gap: 8px;
  }

  .curated-main-title {
    font-size: 34px;
    letter-spacing: -0.5px;
  }

  .curated-main-desc {
    font-size: 15px;
  }

  .curated-top-kicker {
    font-size: 12px;
    letter-spacing: 0.8px;
    margin-top: 2px;
    margin-left: -2px;
  }

  .curated-stats-stack {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .curated-issued-card {
    padding: 6px 14px;
    border-radius: 12px;
    gap: 8px;
  }

  .curated-issued-card .issued-label {
    font-size: 10.5px;
  }

  .curated-issued-card .issued-val strong {
    font-size: 15px;
  }

  .curated-count-card {
    padding: 6px 14px;
    border-radius: 14px;
    gap: 10px;
  }

  .curated-count-num {
    font-size: 24px;
  }

  .curated-count-label {
    font-size: 11px;
  }
}

/* Trust Pills Strip - horizontal carousel, never wraps, strictly contained */
.trust-pills-scrollable {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding: 2px 2px 4px 2px;
  box-sizing: border-box;
}

.trust-pills-scrollable::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.trust-pill {
  flex: 0 0 auto !important;
  display: inline-flex;
  align-items: center;
  background: #FFFFFF;
  color: #0F172A;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.text-emerald-date {
  color: #0057B7 !important;
  font-weight: 800;
  margin-left: 3px;
}

.trust-pill.trust-pill-nbu {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16) 0%, rgba(6, 78, 59, 0.28) 100%) !important;
  border: 1px solid rgba(52, 211, 153, 0.55) !important;
  color: #ECFDF5 !important;
  font-weight: 700 !important;
}

.nbu-trust-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #34D399;
  font-weight: 700;
  margin-left: 2px;
}

.legal-header-row { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  gap: 12px;
  margin-bottom: 6px;
}

.legal-nbu-badge { 
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px; 
  font-weight: 700;
  color: #F8FAFC !important; 
  background: rgba(255, 255, 255, 0.1) !important; 
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  padding: 5px 12px; 
  border-radius: 999px; 
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  letter-spacing: 0.2px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.legal-nbu-badge::before {
  content: '🏛️';
  font-size: 12px;
  line-height: 1;
}

@media (max-width: 480px) {
  .legal-header-row {
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
  }
  .legal-header-row .section-title {
    font-size: 17px;
    line-height: 1.25;
  }
}

.filter-header-row { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
}

.offers-count { 
  font-size: 12px; 
  color: var(--muted); 
  background: var(--surface); 
  border: 1px solid var(--border);
  padding: 4px 10px; 
  border-radius: 999px; 
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

/* Filter Tabs - horizontal carousel, never wraps, strictly contained */
.filter-tabs-scrollable { 
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px; 
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding: 2px 2px 6px 2px;
  box-sizing: border-box;
}

.filter-tabs-scrollable::-webkit-scrollbar { 
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.filter-tab { 
  flex: 0 0 auto !important; 
  background: #FFFFFF; 
  border: 1px solid #CBD5E1; 
  color: #0F172A;
  padding: 8px 14px; 
  border-radius: 999px; 
  font-size: 13px; 
  font-weight: 600;
  white-space: nowrap !important;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  outline: none !important;
  outline-offset: 0 !important;
}

.filter-tab:focus,
.filter-tab:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
}

.filter-tab:active {
  transform: scale(0.96);
  outline: none !important;
}

.filter-tab.active { 
  background: linear-gradient(135deg, #0057B7 0%, #003F8A 100%) !important; 
  border: 1.5px solid #FFD700 !important; 
  color: #FFFFFF !important;
  font-weight: 800 !important; 
  box-shadow: 0 4px 12px rgba(0, 87, 183, 0.45), 0 0 8px rgba(255, 215, 0, 0.25) !important;
  outline: none !important;
  outline-offset: 0 !important;
}

.fav-count-badge {
  background: #EF4444;
  color: #FFFFFF !important;
  font-size: 10px;
  font-weight: 800;
  border-radius: 10px;
  padding: 1px 6px;
  margin-left: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.empty-favorites-notice {
  grid-column: 1 / -1;
  text-align: center;
  padding: 36px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px dashed rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  margin: 12px 0 24px 0;
  color: #FFFFFF;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.empty-fav-icon {
  font-size: 40px;
  margin-bottom: 8px;
}
.empty-favorites-notice h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: #FFFFFF;
}
.empty-favorites-notice p {
  font-size: 13px;
  color: #94A3B8;
  max-width: 320px;
  margin: 0 auto 16px;
  line-height: 1.45;
}
.btn-show-all-from-empty {
  background: #0057B7;
  color: #FFFFFF !important;
  border: 1px solid #3B82F6;
  border-radius: 10px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 87, 183, 0.35);
  transition: all 0.2s ease;
}
.btn-show-all-from-empty:hover {
  background: #004494;
  transform: translateY(-1px);
}

/* ==================== RESPONSIVE OFFERS GRID ==================== */
/* Mobile (< 768px): 1 column */
.offers-list,
.offers-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start !important;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
}

/* Tablets / Medium Desktops (>= 768px): 2 columns */
@media (min-width: 768px) {
  .main-content {
    max-width: 980px !important;
    padding: 24px 20px;
  }
  .header-container {
    max-width: 980px;
  }
  .offers-list,
  .offers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: start !important;
    gap: 18px !important;
  }
  /* Desktop alignment: strictly single-row carousels, never wrap, scroll horizontally within block */
  .trust-pills-scrollable {
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .filter-tabs-scrollable {
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
}

/* Large Desktops / PC (>= 1140px): 3 columns */
@media (min-width: 1140px) {
  .main-content {
    max-width: 1280px !important;
    padding: 28px 24px;
  }
  .header-container {
    max-width: 1280px;
  }
  .offers-list,
  .offers-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: start !important;
    gap: 20px !important;
  }
}

.offer-card { 
  background: var(--surface); 
  border: 1px solid var(--border); 
  border-radius: var(--radius); 
  padding: 16px; 
  display: flex; 
  flex-direction: column;
  gap: 12px;
  height: 100%;
  box-sizing: border-box;
}

.offer-cta-wrap {
  margin-top: auto;
}

.offer-card.top-card {
  padding-top: 36px !important; /* Space for the top ribbon */
  border: 2.5px solid #FFD700 !important;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.35), 0 12px 30px -8px rgba(245, 158, 11, 0.35) !important;
}

.offer-card-top { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  gap: 10px; 
  flex-wrap: wrap; 
}
.offer-brand { 
  display: flex; 
  gap: 12px; 
  align-items: center; 
  flex: 1 1 200px; 
  min-width: 0; 
}
.brand-meta {
  min-width: 0;
  overflow: hidden;
}
.brand-name {
  font-family: 'Oswald', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.35px !important;
  line-height: 1.15 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-avatar { 
  width: 52px; 
  height: 52px; 
  border-radius: 12px; 
  background: var(--brand-color); 
  display: grid; 
  place-items: center; 
  font-weight: 800; 
  font-size: 20px; 
  color: #fff; 
  flex-shrink: 0;
}
.brand-avatar-img {
  background: #1E293B !important;
  border: 1px solid #334155;
  padding: 4px;
}
.offer-brand-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.offer-tag { 
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px; 
  font-weight: 800; 
  letter-spacing: 0.3px;
  line-height: 1.25;
  padding: 5px 10px; 
  border-radius: 8px; 
  text-align: center; 
  white-space: normal; /* Allow soft wrap if long text */
  max-width: fit-content; 
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.offer-brand { display: flex; gap: 10px; align-items: center; }
.brand-avatar { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-color); display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #fff; }
.brand-title-wrap { display: flex; align-items: center; gap: 4px; }
.brand-name {
  font-family: 'Oswald', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 18.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.35px !important;
  line-height: 1.15 !important;
}
.verified-icon {
  color: #0057B7;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  vertical-align: middle;
}
.verified-icon svg {
  width: 15px;
  height: 15px;
}
.brand-rating { font-size: 12px; color: var(--muted); display: flex; gap: 4px; align-items: center; }
.stars { color: var(--amber); letter-spacing: 1px; }
.rating-val { color: var(--text); font-weight: 700; }

.offer-tag.top { background: var(--gold); color: #111; }
.offer-tag.promo { background: rgba(236,72,153,.18); color: #F9A8D4; }
.offer-tag.success { background: rgba(16,185,129,.18); color: #6EE7B7; }
.offer-tag.fire { background: rgba(239,68,68,.18); color: #FCA5A5; }
.offer-tag.fast { background: rgba(8, 126, 71,.2); color: #93C5FD; }
.offer-metrics-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }

.offer-metrics-grid { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 8px; 
}
.metric-item { 
  background: var(--surface-2); 
  border-radius: 12px; 
  padding: 10px 12px; 
  display: flex; 
  flex-direction: column; 
  min-width: 0;
}
.metric-value { 
  font-size: 16px; 
  font-weight: 800; 
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis; 
}

.metric-item.highlight { background: rgba(253,224,71,.1); border: 1px solid rgba(253,224,71,.4); }
.metric-label { font-size: 11px; color: var(--muted); }
.metric-value { font-size: 17px; font-weight: 800; }
.metric-sub { font-size: 10px; color: var(--muted); }

.trust-pills-row { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 6px; 
  align-items: center; 
}
.pill { 
  display: inline-flex; 
  align-items: center; 
  gap: 5px; 
  font-size: 11px; 
  font-weight: 600;
  padding: 5px 9px; 
  border-radius: 8px; 
  background: var(--surface-2); 
  border: 1px solid var(--border); 
  white-space: nowrap; 
}

.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; padding: 4px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.pill-bankid { color: #93C5FD; }
.pill-diia { color: #fff; }
.diia-badge-sm { background: #000; color: #fff; border-radius: 4px; padding: 0 4px; font-weight: 800; }
.pill-success { color: #6EE7B7; }

.offer-calc-preview { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  flex-wrap: wrap;
  gap: 8px; 
  font-size: 12px; 
  color: var(--muted); 
  background: rgba(0,0,0,.25); 
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 12px; 
  border-radius: 10px; 
}
.calc-preview-text {
  flex: 1 1 200px;
}

.offer-calc-preview strong { color: var(--text); }
.badge-saving { flex: 0 0 auto; color: var(--green); font-weight: 700; font-size: 11px; }
.btn-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  padding: 11px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, #0057B7, #00408B) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px -8px rgba(0, 87, 183, 0.7);
  transition: transform .1s, background .2s ease, box-shadow .2s ease;
  gap: 3px;
}
.btn-cta * { color: #ffffff !important; }
.btn-cta .btn-amount-highlight,
.btn-text .btn-amount-highlight {
  color: #FFD700 !important;
  font-weight: 900 !important;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6), 0 0 8px rgba(255, 215, 0, 0.45);
  display: inline;
  margin: 0 1px;
}
.btn-cta:active { transform: scale(.98); }
.btn-cta:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.btn-text { font-size: 16.5px; font-weight: 800; line-height: 1.25; }
.btn-subtext { font-size: 11.5px; opacity: .95; font-weight: 600; line-height: 1.3; }
.btn-arrow { display: none !important; }

/* Виділений окремий рядок таймера на кнопці */
.btn-timer-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  padding: 3px 12px;
  margin-top: 3px;
  font-size: 11px;
  color: #FFFFFF !important;
  line-height: 1.25;
  white-space: nowrap;
}
.btn-timer-clock {
  font-size: 11.5px;
  line-height: 1;
}
.btn-timer-label {
  font-weight: 500;
  opacity: 0.95;
}
.btn-countdown-val {
  font-weight: 900;
  color: #FDE047 !important;
  letter-spacing: 0.3px;
}

/* Стан кнопки, коли таймер вичерпано (повторний пошук нових офферів) */
.btn-cta.btn-cta-expired {
  background: linear-gradient(135deg, #B45309 0%, #92400E 50%, #78350F 100%) !important;
  border: 1.5px solid #F59E0B !important;
  box-shadow: 0 4px 18px rgba(217, 119, 6, 0.45) !important;
  cursor: pointer;
  animation: pulseExpiredBtn 2.4s infinite ease-in-out;
}
@keyframes pulseExpiredBtn {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 18px rgba(217, 119, 6, 0.45); }
  50% { transform: scale(1.02); box-shadow: 0 6px 24px rgba(245, 158, 11, 0.7); }
}
.btn-cta.btn-cta-expired:hover {
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%) !important;
  transform: translateY(-1px);
}
.btn-timer-expired-line {
  background: rgba(254, 243, 199, 0.2);
  border-color: rgba(245, 158, 11, 0.5);
  color: #FEF3C7 !important;
  font-weight: 700;
}

/* Значок "Тапнути" (рука з вказівним пальцем) — ПОВНІСТЮ ВИДАЛЕНО за запитом */
.btn-tap-icon,
.btn-cash-pack {
  display: none !important;
}

@keyframes tapFingerPulse {
  0%, 100% {
    transform: translateY(-50%) scale(1);
  }
  30% {
    transform: translateY(-50%) scale(1.18) rotate(-4deg);
  }
  50% {
    transform: translateY(-50%) scale(1.05) rotate(0deg);
  }
}

.btn-tap-icon-img,
.btn-cash-pack-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.btn-cta:hover .btn-tap-icon,
.btn-cta:hover .btn-cash-pack {
  transform: translateY(-50%) scale(1.25) rotate(-6deg);
  animation-play-state: paused;
}

.btn-countdown-val {
  font-weight: 800;
  color: #FEF08A !important;
  background: rgba(0, 0, 0, 0.28);
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.2px;
  display: inline-block;
  margin-left: 2px;
}

/* Гейт підписки на пуші */
.push-gate-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.16) 0%, rgba(245, 158, 11, 0.2) 100%);
  border: 1.5px solid #EF4444;
  color: #991B1B;
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  text-align: left;
  font-size: 12px;
  line-height: 1.35;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
  animation: shakeWarning 0.4s ease-in-out;
}
[data-theme="dark"] .push-gate-warning {
  color: #FCA5A5;
  border-color: #F87171;
  background: rgba(239, 68, 68, 0.28);
}
.gate-warn-icon {
  font-size: 18px;
  flex-shrink: 0;
}
.gate-warn-text {
  flex: 1 1 auto;
}
@keyframes shakeWarning {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

/* Accordions */
.accordion-box, .legal-accordion, .faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.08);
}
.accordion-summary, .legal-summary, .faq-summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: #0F172A !important;
  background: var(--surface);
}
.accordion-summary *, .legal-summary *, .faq-summary * {
  color: #0F172A !important;
  font-weight: 700;
}
.accordion-summary::-webkit-details-marker, .legal-summary::-webkit-details-marker, .faq-summary::-webkit-details-marker {
  display: none;
}
.legal-summary-title {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  color: #0F172A !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  text-align: left !important;
}
.acc-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 19px !important;
  width: 26px !important;
  height: 26px !important;
  flex-shrink: 0 !important;
  text-align: center !important;
}
.acc-title-text {
  min-width: 0 !important;
  line-height: 1.35 !important;
  flex: 1 1 auto !important;
}
details[open] .acc-chevron, details[open] .accordion-chevron, details[open] .faq-chevron {
  rotate: 180deg;
}
.acc-chevron, .accordion-chevron, .faq-chevron {
  color: #0057B7 !important;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.accordion-content, .legal-accordion-content, .faq-content {
  padding: 0 16px 16px;
  font-size: 13px;
  color: #334155 !important;
  display: grid;
  gap: 8px;
  background: var(--surface);
}
.accordion-content *, .legal-accordion-content * {
  color: #334155;
}
.accordion-content strong, .legal-accordion-content strong {
  color: #0F172A !important;
}
.faq-content { font-size: 14px; padding: 0 16px 16px; }
.faq-section { display: grid; gap: 8px; }

/* Responsive Grid for Lenders in Legal Accordion */
.lenders-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
  margin-top: 6px;
}
@media (min-width: 640px) {
  .lenders-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .lenders-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.lender-card {
  padding: 12px 14px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  border-left: 3.5px solid #0057B7;
  font-size: 12px;
  line-height: 1.55;
  color: #334155;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.lender-card strong {
  font-size: 13px;
  color: #0F172A !important;
  display: block;
  margin-bottom: 4px;
}


/* Кнопка виклику юридичної інформації на картці оффера */
.btn-card-legal {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 4px;
  outline: none !important;
  box-sizing: border-box;
}
.btn-card-legal:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #0057B7;
}
.btn-card-legal:active {
  transform: scale(0.99);
}
.btn-card-legal .acc-chevron {
  color: #94A3B8;
  transition: transform 0.2s ease;
}
.btn-card-legal:hover .acc-chevron {
  color: #0057B7;
  transform: translateX(2px);
}

/* Модальне вікно юридичної інформації кредитора */
.legal-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: rgba(11, 19, 43, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.legal-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.legal-modal-card {
  background: #FFFFFF;
  border-radius: 20px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: legalModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes legalModalPop {
  0% { transform: scale(0.92) translateY(12px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.legal-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
}
.legal-modal-brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.legal-modal-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.legal-modal-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.legal-modal-avatar .avatar-letter {
  font-size: 18px;
  font-weight: 800;
  color: #0057B7;
}
.legal-modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.25;
}
.legal-modal-nbu-verified {
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  display: block;
  margin-top: 2px;
}
.btn-legal-modal-close {
  background: rgba(0, 0, 0, 0.05);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.btn-legal-modal-close:hover {
  background: #EF4444;
  color: #FFFFFF;
}
.legal-modal-body {
  padding: 18px 20px;
}
.legal-info-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.legal-info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  padding-bottom: 8px;
  border-bottom: 1px solid #F1F5F9;
}
.legal-row-label {
  color: #64748B;
  flex-shrink: 0;
}
.legal-row-val {
  color: #0F172A;
  text-align: right;
  word-break: break-word;
}
.legal-row-val.text-emerald {
  color: #059669;
  font-weight: 800;
}
.legal-modal-disclaimer {
  margin-top: 14px;
  padding: 10px 12px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 10px;
  font-size: 11.5px;
  line-height: 1.4;
  color: #166534;
}
.legal-modal-footer {
  padding: 14px 20px 18px;
  border-top: 1px solid #F1F5F9;
}

/* BankID / Steps */
.bankid-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; }
.bankid-logos { display: flex; gap: 6px; margin-bottom: 8px; }
.logo-diia-pill { background: #000; color: #FFFFFF !important; border: 1px solid rgba(255, 255, 255, 0.6); padding: 4px 12px; border-radius: 8px; font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; }
.logo-bankid-pill { background: #0057B7; color: #FFFFFF !important; border: 1px solid rgba(255, 255, 255, 0.4); padding: 4px 12px; border-radius: 8px; font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; }
.bankid-box h3 { font-size: 16px; }
.bankid-desc { font-size: 13px; color: var(--muted); }
.bankid-benefits-list { list-style: none; display: grid; gap: 8px; font-size: 13px; }
.bankid-benefits-list li { display: flex; gap: 8px; }
.check-icon { color: var(--green); font-weight: 800; }
/* ==================== NATIVE HTML/CSS FEED PROMO BANNERS ==================== */
/* ==================== UNIFIED SPACIOUS FEED BANNER STYLES ==================== */
.native-feed-banner {
  margin: 14px 0 16px;
  border-radius: 18px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.banner-multi-apply {
  background: radial-gradient(120% 100% at 0% 0%, #0F2B5C 0%, #0A1C3E 50%, #061228 100%);
  border: 1.5px solid #2563EB;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45), 0 0 20px rgba(37, 99, 235, 0.25);
}

.banner-atm-cash {
  background: radial-gradient(120% 100% at 0% 0%, #064E3B 0%, #062E25 50%, #031A15 100%);
  border: 1.5px solid #059669;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45), 0 0 20px rgba(5, 150, 105, 0.25);
}

/* Верхняя строка: бейдж слева, иконка в правом углу */
.feed-banner-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.feed-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #FDE047;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 4px 10px;
  border-radius: 12px;
}

.feed-banner-badge.badge-atm {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.5);
  color: #A7F3D0;
}

.feed-banner-corner-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Заголовок на всю ширину карточки: строго в одну строку, не переносится */
.feed-banner-title {
  font-size: clamp(15px, 2.5vw, 17.5px);
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 10px;
  line-height: 1.25;
  width: 100%;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Центральное тело: стилизованная плашка с графикой и описанием */
.feed-banner-body {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  flex: 1 1 auto;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 12px 14px;
  box-sizing: border-box;
}

/* Мобильная vs Десктопная версии контента баннеров */
.feed-banner-mobile {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.feed-banner-desktop {
  display: none;
}

.banner-multi-apply .feed-banner-body {
  background: rgba(30, 58, 138, 0.28);
  border-color: rgba(96, 165, 250, 0.25);
}

.banner-atm-cash .feed-banner-body {
  background: rgba(6, 78, 59, 0.35);
  border-color: rgba(52, 211, 153, 0.25);
}

.feed-banner-visual {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feed-banner-desc {
  font-size: 12.5px;
  color: #BFDBFE;
  line-height: 1.4;
  margin: 0;
  flex: 1 1 auto;
}

.banner-atm-cash .feed-banner-desc {
  color: #A7F3D0;
}

/* Колонки с описанием и банками внутри баннера */
.feed-banner-content-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 auto;
  min-width: 0;
}

.feed-banner-main-text {
  font-size: 13.5px;
  color: #FFFFFF;
  line-height: 1.3;
}

.feed-banner-main-text strong {
  color: #6EE7B7;
}

.feed-banner-sub-text {
  font-size: 11.5px;
  color: #A7F3D0;
  line-height: 1.3;
}

.feed-banner-bank-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
}

.bank-pill-mini {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  color: #FFFFFF;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(52, 211, 153, 0.4);
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

/* Нижний блок: гарантии и безопасность строго в одну аккуратную строку по центру */
.feed-banner-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.feed-banner-trust {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #34D399;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 4px 10px;
  border-radius: 8px;
  white-space: nowrap !important;
  max-width: 100%;
  box-sizing: border-box;
}

.banner-atm-cash .feed-banner-trust {
  color: #FEF08A;
  border-color: rgba(254, 240, 138, 0.3);
}

/* ==================== ДЕСКТОПНАЯ ВЕРСИЯ (>= 768px и >= 1140px) ==================== */
@media (min-width: 768px) {
  .native-feed-banner {
    margin: 0 !important;
    height: 100%;
    min-height: 0 !important;
    padding: 18px 20px !important;
    border-radius: var(--radius);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
  }

  .native-feed-banner:hover {
    transform: translateY(-2px);
  }

  .banner-multi-apply:hover {
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5), 0 0 28px rgba(37, 99, 235, 0.4);
  }

  .banner-atm-cash:hover {
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5), 0 0 28px rgba(5, 150, 105, 0.4);
  }

  .feed-banner-top-row {
    margin-bottom: 10px !important;
  }

  .feed-banner-badge {
    font-size: 11px !important;
    padding: 4.5px 12px !important;
    letter-spacing: 0.3px;
  }

  .feed-banner-corner-icon svg {
    width: 36px !important;
    height: 36px !important;
  }

  /* Заголовок на десктопе: крупный, четкий, строго в одну строку */
  .feed-banner-title {
    font-size: 18px !important;
    line-height: 1.25 !important;
    margin-bottom: 12px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Мобильная vs Десктопная версии контента баннеров */
  .feed-banner-mobile {
    display: none !important;
  }

  .feed-banner-desktop {
    display: block !important;
  }

  /* Центральное тело: блочный контейнер, иконка в верхнем углу с обтеканием */
  .feed-banner-body {
    display: block !important;
    margin-bottom: 10px !important;
    padding: 12px 14px !important;
    overflow: hidden !important;
  }

  .feed-banner-visual {
    float: left !important;
    margin: 0 12px 4px 0 !important;
    width: 52px !important;
    height: 52px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  .feed-banner-visual svg {
    width: 52px !important;
    height: 52px !important;
  }

  .feed-banner-lead {
    font-size: 12.5px !important;
    line-height: 1.38 !important;
    color: #F8FAFC !important;
    margin: 0 0 6px 0 !important;
  }

  .banner-multi-apply .feed-banner-lead strong {
    color: #93C5FD;
  }

  .banner-atm-cash .feed-banner-lead strong {
    color: #6EE7B7;
  }

  .feed-banner-perks {
    list-style: none !important;
    margin: 5px 0 0 0 !important;
    padding: 0 !important;
  }

  .feed-banner-perks li {
    font-size: 11.5px !important;
    line-height: 1.35 !important;
    color: #E2E8F0 !important;
    margin-bottom: 5px !important;
  }

  .feed-banner-perks li strong {
    color: #FFFFFF !important;
  }

  .perk-bullet {
    color: #FDE047 !important;
    font-weight: 900 !important;
    margin-right: 4px;
    font-size: 11.5px;
  }

  .perks-green .perk-bullet {
    color: #34D399 !important;
  }

  .bank-pill-mini {
    font-size: 10px !important;
    padding: 2.5px 7px !important;
  }

  /* Доверительная плашка внизу: аккуратная, в одну строку, не переносится */
  .feed-banner-footer {
    margin-top: auto;
  }

  .feed-banner-trust {
    font-size: 11.5px !important;
    padding: 5px 14px !important;
    border-radius: 8px;
    white-space: nowrap !important;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Широкие экраны ПК (>= 1140px): 3 колонки офферов - солидный десктопный вид */
@media (min-width: 1140px) {
  .native-feed-banner {
    padding: 20px 22px !important;
    min-height: 0 !important;
  }

  .feed-banner-title {
    font-size: 18.5px !important;
    line-height: 1.25 !important;
    margin-bottom: 12px !important;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .feed-banner-corner-icon svg {
    width: 38px !important;
    height: 38px !important;
  }

  .feed-banner-body {
    padding: 14px 16px !important;
    margin-bottom: 10px !important;
  }

  .feed-banner-visual {
    width: 56px !important;
    height: 56px !important;
    margin: 0 14px 5px 0 !important;
  }

  .feed-banner-visual svg {
    width: 56px !important;
    height: 56px !important;
  }

  .feed-banner-lead {
    font-size: 13px !important;
    line-height: 1.4 !important;
  }

  .feed-banner-perks li {
    font-size: 12px !important;
    line-height: 1.35 !important;
    margin-bottom: 5px !important;
  }

  .bank-pill-mini {
    font-size: 10.5px !important;
    padding: 3px 8px !important;
  }

  .feed-banner-trust {
    font-size: 12px !important;
    padding: 6px 16px !important;
    white-space: nowrap !important;
  }
}

.how-it-works-section { display: grid; gap: 12px; }

/* Steps visual banner & step card graphics */
.steps-visual-banner-wrap {
  margin: 16px 0 20px;
  width: 100%;
}

.steps-visual-banner {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 20px rgba(0, 87, 183, 0.25);
  display: block;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (max-width: 330px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.step-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.step-emoji {
  font-size: 20px;
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #DBEAFE;
  color: #0057B7;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.step-number-success {
  background: #10B981 !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.step-card.step-card-payout {
  border: 1.5px solid #A7F3D0;
  background: linear-gradient(180deg, #FFFFFF 0%, #F0FDF4 100%);
  position: relative;
  overflow: hidden;
}

.step-card-visual {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.step-card-visual img {
  max-width: 130px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 87, 183, 0.18));
}

.step-card h4 { margin-bottom: 4px; }
.step-card p { font-size: 13px; color: var(--muted); }

/* Legal footer */
.app-legal-footer { border-top: 1px solid var(--border); background: #070D1F; margin-top: 24px; padding-bottom: 90px; }
.footer-container { max-width: 760px; margin: 0 auto; padding: 20px 16px; }
.legal-disclaimer-box { display: grid; gap: 12px; font-size: 12px; color: var(--muted); }
.legal-heading { display: flex; gap: 6px; align-items: center; color: var(--text); font-size: 14px; }
.legal-text { display: grid; gap: 10px; }
.legal-consequences-list { padding-left: 18px; display: grid; gap: 6px; }
.legal-rates-block, .calculation-example-box, .aggregator-status-notice { background: var(--surface); border-radius: 10px; padding: 10px; display: grid; gap: 6px; }
.legal-rates-block { border-left: 3px solid var(--amber); }
.aggregator-status-notice { border-left: 3px solid var(--red); }
.legal-text strong { color: var(--text); }
.footer-bottom-copy { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid var(--border); padding-top: 12px; }
.bank-logos-row { display: flex; gap: 6px; flex-wrap: wrap; }
.badge-mini { border: 1px solid var(--border); padding: 2px 6px; border-radius: 6px; font-size: 10px; }

/* Install banner */
.pwa-install-banner {
  position: fixed; left: 12px; right: 12px; bottom: calc(72px + var(--safe-bottom)); z-index: 60;
  max-width: 560px; margin: 0 auto; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 16px; padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,.5); translate: 0 160%; transition: translate .3s ease;
}
.pwa-install-banner.visible { translate: 0 0; }
.install-banner-content { display: flex; gap: 10px; align-items: center; flex: 1 1 auto; min-width: 0; }
.install-app-icon { border-radius: 12px; flex-shrink: 0; }
.install-banner-text { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); min-width: 0; }
.install-banner-text strong { color: var(--text); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.install-banner-text span { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #64748B; }
.install-banner-actions { display: flex; gap: 4px; align-items: center; flex-shrink: 0; }
.btn-install-primary {
  background: linear-gradient(135deg, #0057B7 0%, #004494 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 87, 183, 0.35);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.2px;
}
.btn-install-primary:hover {
  background: linear-gradient(135deg, #004494 0%, #003370 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 16px rgba(0, 87, 183, 0.45);
  transform: translateY(-1px);
}
.btn-install-primary:active {
  transform: scale(0.97);
}
.btn-install-dismiss {
  width: 26px;
  height: 26px;
  min-width: 26px;
  padding: 0;
  color: #64748B;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  order: -1;
  margin-right: 2px;
}
.btn-install-dismiss:hover {
  color: #0F172A;
  background: #E2E8F0;
  transform: scale(1.05);
}

/* iOS modal (Інструкція встановлення PWA) */
.ios-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(11, 19, 43, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding-top: calc(44px + env(safe-area-inset-top, 0px));
  box-sizing: border-box;
}
.ios-modal-backdrop.open { display: flex; }
.ios-modal-card {
  width: 100%;
  max-width: 480px;
  max-height: calc(85dvh - env(safe-area-inset-top, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  padding: 18px 18px calc(18px + var(--safe-bottom));
  display: grid;
  gap: 14px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
  margin-top: auto;
}
.ios-modal-header { display: flex; justify-content: space-between; align-items: center; }
.ios-modal-body { display: grid; gap: 12px; }
.ios-step { display: flex; gap: 12px; align-items: center; }
.ios-step-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: #0057B7; flex: 0 0 auto; }
.ios-step-desc { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); }
.ios-step-desc strong { color: var(--text); }
.btn-ios-close { padding: 6px; color: var(--muted); }
.btn-ios-done {
  background: #0057B7;
  color: #FFFFFF !important;
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-ios-done:hover {
  background: #004494;
  color: #FFFFFF !important;
}

/* ============================================================================
   PWA Trust & Security Badges (Apple, Google, Microsoft, SSL)
   ============================================================================ */
.pwa-trust-badge {
  background: #0F172A;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 14px;
  padding: 13px 15px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.18);
}

.pwa-trust-badge.pwa-trust-mac {
  border-color: #475569;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
}

.pwa-trust-badge.pwa-trust-ios {
  border-color: #0284C7;
  background: linear-gradient(135deg, #082F49 0%, #0F172A 100%);
}

.pwa-trust-badge.pwa-trust-android {
  border-color: #10B981;
  background: linear-gradient(135deg, #064E3B 0%, #0F172A 100%);
}

.pwa-trust-badge.pwa-trust-pc {
  border-color: #0284C7;
  background: linear-gradient(135deg, #075985 0%, #0F172A 100%);
}

.trust-badge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.trust-badge-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 800;
  color: #FFFFFF !important;
  letter-spacing: 0.2px;
}

.trust-badge-logo svg {
  flex-shrink: 0;
}

.trust-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #38BDF8 !important;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.trust-badge-pill.green {
  border-color: rgba(52, 168, 83, 0.6);
  color: #4ADE80 !important;
  background: rgba(20, 83, 45, 0.5);
}

.trust-badge-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #FFFFFF !important;
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-badge-desc {
  font-size: 0.8rem;
  color: #E2E8F0 !important;
  line-height: 1.45;
  margin-top: 2px;
  font-weight: 400;
}

.pwa-trust-footer-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 12px;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  margin-top: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.trust-strip-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #1E293B !important;
}

.trust-strip-dot {
  color: #94A3B8;
  font-size: 0.75rem;
}

.pwa-verified-pill {
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.18);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-weight: 700;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Debug drawer */
.debug-floating-btn { position: fixed; right: 12px; bottom: calc(90px + var(--safe-bottom)); z-index: 55; background: #000; border: 1px solid var(--amber); color: var(--amber); padding: 8px 10px; border-radius: 10px; font-size: 12px; font-weight: 700; }
.tracking-debug-drawer { position: fixed; inset: auto 0 0 0; z-index: 80; max-height: 70dvh; overflow: auto; background: #050A18; border-top: 2px solid var(--amber); padding: 16px 16px calc(16px + var(--safe-bottom)); translate: 0 100%; transition: translate .3s; font-size: 12px; }
.tracking-debug-drawer.open { translate: 0 0; }
.debug-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.btn-debug-close { padding: 6px; }
.debug-note { color: var(--muted); margin-bottom: 10px; }
.debug-params-list { display: grid; gap: 4px; font-family: ui-monospace, Menlo, monospace; }
.debug-param-row { display: flex; gap: 8px; }
.debug-param-key { color: var(--amber); }
.debug-param-val { word-break: break-all; }
.debug-preview-section { margin-top: 12px; display: grid; gap: 6px; }
.debug-link-code { font-family: ui-monospace, Menlo, monospace; background: var(--surface); padding: 8px; border-radius: 8px; word-break: break-all; color: #6EE7B7; }

/* Toast */
.app-toast { position: fixed; left: 50%; top: calc(70px + var(--safe-top)); translate: -50% -20px; opacity: 0; z-index: 100000; background: var(--surface-2); border: 1px solid var(--border); padding: 10px 16px; border-radius: 12px; font-size: 13px; pointer-events: none; transition: opacity .25s, translate .25s; max-width: 90vw; text-align: center; }
.app-toast.visible { opacity: 1; translate: -50% 0; }

@media (min-width: 640px) {
  .offer-metrics-grid { grid-template-columns: repeat(4, 1fr); }
  .multi-apply-banner { grid-template-columns: 1fr auto; align-items: center; }
}



/* ==================== MULTI-SCREEN APP ARCHITECTURE ==================== */
.app-screen {
  display: none;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
  box-sizing: border-box;
  animation: fadeInScreen 0.22s ease-out;
}
.app-screen.active {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
@keyframes fadeInScreen {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}


/* Hide cramped quick calc from mobile header (<768px) - available in bottom tab bar */
@media (max-width: 767px) {
  .btn-header-calc {
    display: none !important;
  }
}
/* Header Quick Calc Button */
.btn-header-calc {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--gold);
  font-weight: 800;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 9px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-header-calc:active {
  transform: scale(0.96);
  background: var(--border);
}

/* Offers Summary Card (Screen 1) */
.offers-summary-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 14px;
}
.summary-left {
  display: flex;
  flex-direction: column;
}
.summary-label {
  font-size: 11px;
  color: var(--muted);
}
.summary-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}
.btn-change-params {
  font-size: 12px;
  color: var(--gold);
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(253, 224, 71, 0.12);
  border: 1px solid rgba(253, 224, 71, 0.3);
}

/* Calc Direct Action Button */
.btn-calc-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(135deg, #FBBF24 0%, #FFD700 50%, #D97706 100%) !important;
  color: #0F172A !important;
  border: 2px solid #FEF08A !important;
  font-size: 16px;
  font-weight: 800;
  padding: 14px 20px;
  border-radius: 16px;
  margin-top: 10px;
  box-shadow: 0 10px 25px -4px rgba(217, 119, 6, 0.7), 0 0 16px rgba(251, 191, 36, 0.45) !important;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-calc-cta * {
  color: #0F172A !important;
  font-weight: 800 !important;
}
.btn-calc-cta:active {
  transform: scale(0.98);
}

/* Legal Page Full Card */
.legal-page-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px 16px;
  display: grid;
  gap: 16px;
}

/* ==================== APP BOTTOM TAB BAR ==================== */
body {
  padding-bottom: calc(85px + var(--safe-bottom)) !important;
}
@media (min-width: 768px) {
  body {
    padding-bottom: 24px !important;
  }
}
.app-tab-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  height: calc(64px + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #070D1F;
  border-top: 1px solid #1E293B;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
}
.tab-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 6px 0;
  transition: all 0.15s ease;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.tab-button:active {
  transform: scale(0.92);
}
.tab-button.active {
  color: #FDE047;
}
.tab-button.active .tab-icon-wrap {
  color: #FDE047;
  transform: translateY(-2px);
}
.tab-button.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: #FDE047;
  box-shadow: 0 2px 8px rgba(253, 224, 71, 0.6);
}
.tab-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
}
.tab-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.tab-calc-badge svg {
  stroke-width: 2.2;
}

/* Desktop container adaptation - hide mobile floating bar on desktop */
@media (min-width: 768px) {
  .app-tab-bar {
    display: none !important;
  }
}

/* ==================== SCROLL TO TOP FLOATING BUTTON ==================== */
.btn-scroll-to-top {
  position: fixed;
  bottom: calc(76px + var(--safe-bottom, 0px));
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0057B7 0%, #003E82 100%);
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 18px rgba(0, 87, 183, 0.45), 0 2px 6px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 98;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.92);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.25s ease,
              background 0.15s ease,
              box-shadow 0.15s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.btn-scroll-to-top:hover {
  background: linear-gradient(135deg, #0066D6 0%, #004BA0 100%);
  box-shadow: 0 6px 22px rgba(0, 87, 183, 0.6), 0 2px 8px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px) scale(1.05);
}

.btn-scroll-to-top:active {
  transform: translateY(0) scale(0.92);
  box-shadow: 0 2px 10px rgba(0, 87, 183, 0.35);
}

/* Lift scroll-to-top button when floating bottom banner or reminder is visible to avoid any overlap */
body:has(#pwa-install-banner.visible) .btn-scroll-to-top,
body:has(#app-timed-reminder.visible) .btn-scroll-to-top,
body.has-bottom-banner .btn-scroll-to-top {
  bottom: calc(168px + var(--safe-bottom, 0px)) !important;
}

@media (min-width: 768px) {
  .btn-scroll-to-top {
    bottom: 24px;
    right: 28px;
    width: 48px;
    height: 48px;
  }
}

/* Offer Brand Image Logo */
.brand-avatar-img {
  background: #FFFFFF !important;
  padding: 3px;
  overflow: hidden;
}
.offer-brand-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

/* ==================== HIGH CTR / CONVERSION UI/UX STYLING ==================== */
/* Ribbon for top card */
.offer-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
}
.offer-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.ribbon-popular {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(90deg, #FFD700, #F59E0B);
  color: #07152B !important;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 12px 4px 14px;
  border-radius: 0 0 0 12px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
  z-index: 2;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
  max-width: 85%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Approval Progress Meter */
.approval-meter-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 10px;
  padding: 8px 10px;
}
.approval-meter-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}
.meter-title {
  color: #94A3B8;
  font-weight: 600;
}
.meter-percent {
  color: #0057B7;
  font-weight: 800;
  font-size: 12px;
}
.approval-progress-track {
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}
.approval-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #FFD700, #F59E0B);
  border-radius: 3px;
  transition: width 0.6s ease;
}

/* Pulsing animated CTA Shimmer Button with Desynchronized Waves */
.btn-cta-shimmer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0057B7 0%, #003F8A 100%) !important;
  box-shadow: 0 8px 24px -4px rgba(0, 87, 183, 0.65) !important;
}
.btn-cta-shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: btnShimmer var(--shimmer-dur, 3.6s) infinite ease-in-out;
  animation-delay: var(--shimmer-delay, 0s);
}

/* Fallback desynchronization via nth-child */
.offer-card:nth-child(2n) .btn-cta-shimmer::after {
  animation-delay: 0.9s;
  animation-duration: 3.5s;
}
.offer-card:nth-child(3n) .btn-cta-shimmer::after {
  animation-delay: 1.8s;
  animation-duration: 4.1s;
}
.offer-card:nth-child(4n) .btn-cta-shimmer::after {
  animation-delay: 2.6s;
  animation-duration: 3.8s;
}
.offer-card:nth-child(5n) .btn-cta-shimmer::after {
  animation-delay: 1.3s;
  animation-duration: 4.4s;
}

@keyframes btnShimmer {
  0% { left: -120%; }
  35% { left: 140%; }
  100% { left: 140%; }
}

/* Social Proof FOMO Counter under CTA */
.recent-apps-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: #94A3B8;
  margin-top: 6px;
}
.pulse-green-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0057B7;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Trust Badges enhancement */
.pill-diia {
  background: #000000 !important;
  color: #FFFFFF !important;
  border-color: #334155 !important;
  font-weight: 700;
}
.pill-bankid {
  background: rgba(8, 126, 71, 0.18) !important;
  color: #0057B7 !important;
  border-color: rgba(8, 126, 71, 0.4) !important;
  font-weight: 700;
}

@media (max-width: 480px) {
  .offer-card-top {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
  }
  .offer-brand {
    flex: 1 1 auto;
    min-width: 0;
  }
  .offer-tag {
    font-size: 10px;
    padding: 4px 8px;
    max-width: 140px;
    word-break: normal;
  }
}

/* Dedicated Badge Row - eliminates any overlap with brand title or reviews */
.offer-card-top {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
}
.offer-brand {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  min-width: 0 !important;
}
.brand-meta {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}
.brand-title-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}
.brand-rating {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 12px !important;
  color: var(--muted) !important;
}
.votes-cnt {
  color: #94A3B8 !important;
  font-size: 11px !important;
}

.offer-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 6px 10px;
  margin-top: -2px;
}
.offer-badge-row .offer-tag {
  margin: 0 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  letter-spacing: 0.3px !important;
  box-shadow: none !important;
}
.tag-meta-hint {
  font-size: 11px;
  color: #94A3B8;
  font-weight: 500;
}

/* ==================== STRICT 1-ROW COMPACT HEADER ==================== */
.offer-card-top-compact {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  margin-bottom: 2px !important;
}

.brand-left-group {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

.brand-left-group .brand-avatar {
  width: 44px !important;
  height: 44px !important;
  border-radius: 10px !important;
  flex-shrink: 0 !important;
}

.brand-left-group .brand-meta {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 0 !important;
}

.brand-left-group .brand-name {
  font-family: 'Oswald', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.35px !important;
  line-height: 1.15 !important;
}

.brand-left-group .brand-rating {
  font-size: 11px !important;
  line-height: 1.2 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
  flex-wrap: nowrap !important;
}
.brand-left-group .brand-rating .stars {
  font-size: 12px !important;
  color: var(--amber) !important;
}
.brand-left-group .brand-rating .rating-val {
  font-weight: 800 !important;
  color: var(--text) !important;
}
.brand-left-group .brand-rating .votes-cnt {
  font-size: 10px !important;
  color: var(--muted) !important;
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
}
.brand-left-group .brand-rating .votes-cnt.personal-votes-highlight {
  color: #047857 !important;
  font-weight: 800 !important;
}

.brand-right-badge {
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* Favorite heart button in offer card */
.btn-fav-heart {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #94A3B8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  outline: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.btn-fav-heart svg {
  fill: #94A3B8;
  transition: all 0.2s ease;
}
.btn-fav-heart:hover {
  background: #FEE2E2;
  border-color: #FECACA;
  color: #EF4444;
  transform: scale(1.12);
}
.btn-fav-heart:hover svg {
  fill: #EF4444;
}
.btn-fav-heart.active {
  background: #FEE2E2;
  border-color: #F87171;
  color: #EF4444;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}
.btn-fav-heart.active svg {
  fill: #EF4444;
  animation: heartPop 0.35s ease-out;
}
@keyframes heartPop {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* Live activity stats in offer cards (applications & issued loans) */
.offer-activity-stats {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 10px 0 12px 0;
  padding: 0;
}

.activity-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  line-height: 1.3;
}

.stat-submitted {
  color: #64748B;
  padding: 2px 6px;
}
.stat-submitted .stat-bullet {
  color: #94A3B8;
  font-size: 13px;
  margin-right: 3px;
}
.stat-submitted .stat-count {
  color: #1E293B;
  font-weight: 700;
  font-size: 12px;
}

/* Выделенная строка: сегодня выдано кредитов (после перехода с нашего сайта) */
.stat-approved-highlight {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.14) 100%);
  border: 1px solid rgba(16, 185, 129, 0.32);
  border-radius: 10px;
  padding: 7px 12px;
  color: #065F46;
  box-shadow: 0 1px 4px rgba(16, 185, 129, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.stat-approved-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.stat-approved-title {
  font-size: 13px;
  font-weight: 800;
  color: #047857;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.stat-approved-title .stat-pulse-icon {
  color: #10B981;
  font-size: 9px;
  animation: livePulseGreen 1.8s infinite;
  flex-shrink: 0;
}
.stat-approved-note {
  font-size: 10px;
  color: #059669;
  font-weight: 500;
  opacity: 0.88;
  line-height: 1.2;
  white-space: nowrap;
}
.stat-approved-highlight .stat-count-issued {
  color: #047857;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.3px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 8px;
}

/* Позиція №1: преміальний топ-чемпіон зі схваленням ~98% сьогодні */
.stat-approved-highlight.stat-top-champion {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14) 0%, rgba(254, 240, 138, 0.24) 100%) !important;
  border: 1.5px solid rgba(16, 185, 129, 0.55) !important;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.18) !important;
}
.stat-approved-highlight.stat-top-champion .stat-approved-title {
  white-space: nowrap !important;
  font-size: 12px !important;
  gap: 3px;
}
.stat-approved-highlight.stat-top-champion .stat-approved-note {
  color: #047857 !important;
  font-weight: 700 !important;
  opacity: 1 !important;
  display: flex;
  align-items: center;
}
.stat-today-date {
  font-weight: 700;
  color: #047857;
  font-size: 11.5px;
  letter-spacing: -0.1px;
}

.badge-almost-all {
  display: inline-flex;
  align-items: center;
  background: #FEF08A;
  color: #78350F;
  border: 1px solid #F59E0B;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1.5px 6px;
  border-radius: 5px;
  margin-left: 0;
  margin-top: 1px;
  letter-spacing: 0.1px;
  text-transform: uppercase;
  box-shadow: 0 1px 2px rgba(245, 158, 11, 0.2);
  vertical-align: middle;
  line-height: 1.2;
}

/* М'який теплий жовтий рівень (середина списку офферів) */
.stat-approved-highlight.stat-level-yellow {
  background: linear-gradient(135deg, rgba(254, 240, 138, 0.45) 0%, rgba(253, 224, 71, 0.25) 100%) !important;
  border-color: rgba(234, 179, 8, 0.48) !important;
  box-shadow: 0 1px 4px rgba(234, 179, 8, 0.1) !important;
  color: #854D0E !important;
}
.stat-approved-highlight.stat-level-yellow .stat-approved-title {
  color: #854D0E !important;
}
.stat-approved-highlight.stat-level-yellow .stat-pulse-icon {
  color: #EAB308 !important;
}
.stat-approved-highlight.stat-level-yellow .stat-approved-note {
  color: #A16207 !important;
  opacity: 0.95 !important;
}
.stat-approved-highlight.stat-level-yellow .stat-count-issued {
  color: #854D0E !important;
}

/* М'який рожево-червонуватий рівень (останні 2-3 оффери: 20-25% схвалення) */
.stat-approved-highlight.stat-level-red {
  background: linear-gradient(135deg, rgba(254, 202, 202, 0.45) 0%, rgba(252, 165, 165, 0.25) 100%) !important;
  border-color: rgba(239, 68, 68, 0.42) !important;
  box-shadow: 0 1px 4px rgba(239, 68, 68, 0.1) !important;
  color: #991B1B !important;
}
.stat-approved-highlight.stat-level-red .stat-approved-title {
  color: #991B1B !important;
}
.stat-approved-highlight.stat-level-red .stat-pulse-icon {
  color: #EF4444 !important;
}
.stat-approved-highlight.stat-level-red .stat-approved-note {
  color: #B91C1C !important;
  opacity: 0.95 !important;
}
.stat-approved-highlight.stat-level-red .stat-count-issued {
  color: #991B1B !important;
}

@media (max-width: 480px) {
  .stat-approved-title {
    flex-wrap: wrap;
    white-space: normal;
  }
}

@media (max-width: 360px) {
  .stat-approved-title {
    font-size: 11.5px;
  }
  .stat-approved-highlight.stat-top-champion .stat-approved-title {
    font-size: 10.5px !important;
  }
  .stat-approved-note {
    font-size: 9.5px;
  }
  .stat-approved-highlight .stat-count-issued {
    font-size: 14.5px;
  }
  .badge-almost-all {
    font-size: 9px;
    padding: 1px 4px;
  }
}

.compact-offer-tag {
  display: none !important;
}

.compact-offer-tag.top { background: var(--gold) !important; color: #111 !important; }
.compact-offer-tag.promo { background: rgba(236,72,153,.2) !important; color: #F9A8D4 !important; border: 1px solid rgba(236,72,153,.4) !important; }
.compact-offer-tag.success { background: #EFF6FF !important; color: #1E40AF !important; border: 1px solid #93C5FD !important; }
.compact-offer-tag.fire { background: rgba(239,68,68,.2) !important; color: #FCA5A5 !important; border: 1px solid rgba(239,68,68,.4) !important; }
.compact-offer-tag.fast { background: #FEF9C3 !important; color: #854D0E !important; border: 1px solid #FDE047 !important; }

/* Further reduce size for tiny screens */
@media (max-width: 380px) {
  .compact-offer-tag {
    font-size: 9px !important;
    padding: 3px 6px !important;
    max-width: 125px !important;
  }
  .brand-left-group .brand-name {
    font-size: 18.5px !important;
    letter-spacing: 0.35px !important;
  }
  .brand-left-group .brand-avatar {
    width: 38px !important;
    height: 38px !important;
  }
}

/* ==================== 1. LIVE ACTIVITY TOASTS (macOS STYLE SLIDE-IN FROM RIGHT) ==================== */
.deals-live-ticker-wrap,
.social-proof-container {
  position: fixed;
  top: calc(72px + var(--safe-top, 0px));
  right: 16px;
  left: auto !important;
  max-width: 400px;
  width: auto;
  margin: 0 !important;
  z-index: 990;
  pointer-events: none !important;
  opacity: 0;
  visibility: hidden;
  transform: translateX(calc(100% + 40px));
  transition: opacity 0.35s ease, transform 0.48s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.48s ease;
  overflow: visible;
}

/* ЗАБОРОНА ПОКАЗУ ПЛАШОК НАД МОДАЛЬНИМИ ВІКНАМИ (ТЕЛЕФОН, ПУШІ ТА ІНСТРУКЦІЯ ВСТАНОВЛЕННЯ) */
body:has(#phone-approval-modal.open) .deals-live-ticker-wrap,
body:has(#phone-approval-modal.open) .social-proof-container,
body:has(#push-optin-modal.open) .deals-live-ticker-wrap,
body:has(#push-optin-modal.open) .social-proof-container,
body:has(#ios-install-modal.open) .deals-live-ticker-wrap,
body:has(#ios-install-modal.open) .social-proof-container,
body.has-modal-open .deals-live-ticker-wrap,
body.has-modal-open .social-proof-container,
body.has-install-modal-open .deals-live-ticker-wrap,
body.has-install-modal-open .social-proof-container {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateX(calc(100% + 100px)) !important;
}

/* ПОВНЕ ПРИХОВУВАННЯ ВСІХ СПЛИВАЮЧИХ ЕЛЕМЕНТІВ І ЗНАЧКА ТЕЛЕФОНУ ПІД ЧАС ПЕРЕГЛЯДУ ІНСТРУКЦІЇ ВСТАНОВЛЕННЯ PWA */
body:has(#ios-install-modal.open) #floating-phone-badge,
body.has-install-modal-open #floating-phone-badge {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(-50%) translateX(-150%) !important;
}

body:has(#ios-install-modal.open) #phone-approval-modal,
body.has-install-modal-open #phone-approval-modal {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body:has(#ios-install-modal.open) #push-optin-modal,
body:has(#ios-install-modal.open) #pwa-install-banner,
body:has(#ios-install-modal.open) #pwa-reminder-banner,
body:has(#ios-install-modal.open) #app-update-banner,
body.has-install-modal-open #push-optin-modal,
body.has-install-modal-open #pwa-install-banner,
body.has-install-modal-open #pwa-reminder-banner,
body.has-install-modal-open #app-update-banner {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.deals-live-ticker-wrap.visible,
.social-proof-container.visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(0) !important;
}

/* На комп'ютері (>= 768px) виїжджає справа зверху під шапкою як системне повідомлення macOS */
@media (min-width: 768px) {
  .deals-live-ticker-wrap,
  .social-proof-container {
    top: calc(76px + var(--safe-top, 0px)) !important;
    bottom: auto !important;
    right: 24px !important;
    left: auto !important;
    max-width: 410px !important;
    transform: translateX(calc(100% + 45px));
  }
  .deals-live-ticker-wrap.visible,
  .social-proof-container.visible {
    transform: translateX(0) !important;
  }
}

@media (max-width: 480px) {
  .deals-live-ticker-wrap,
  .social-proof-container {
    top: calc(66px + var(--safe-top, 0px)) !important;
    right: 10px !important;
    left: auto !important;
    max-width: calc(100vw - 20px) !important;
    width: 360px !important;
    transform: translateX(calc(100% + 30px));
  }
  .deals-live-ticker-wrap.visible,
  .social-proof-container.visible {
    transform: translateX(0) !important;
  }
}

.deals-live-ticker-wrap:not(.visible),
.social-proof-container:not(.visible) {
  pointer-events: none !important;
  visibility: hidden !important;
}
.deals-live-ticker-wrap:not(.visible) *,
.social-proof-container:not(.visible) * {
  pointer-events: none !important;
  visibility: hidden !important;
}
.deal-activity-card,
.social-toast-card {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.2), 0 4px 14px rgba(0, 0, 0, 0.08) !important;
  border-radius: 20px !important;
  padding: 10px 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
  box-sizing: border-box;
}
.deal-activity-card:hover,
.social-toast-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px -4px rgba(16, 185, 129, 0.28) !important;
}
.deal-activity-icon,
.social-toast-avatar {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: #0057B7 !important;
  color: #FFFFFF !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 8px rgba(52, 120, 88, 0.35);
}
.deal-activity-icon svg,
.social-toast-avatar svg {
  width: 20px;
  height: 20px;
}
.deal-activity-thumb,
.social-toast-money-img {
  width: 58px !important;
  height: auto !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  display: block;
}
.deal-activity-body,
.social-toast-content {
  display: flex !important;
  flex-direction: column !important;
  gap: 1px !important;
  line-height: 1.25 !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
.deal-user-name,
.social-toast-name {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #14382A !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.deal-action-type,
.social-toast-action {
  font-size: 12.5px !important;
  color: #64748B !important;
  font-weight: 500 !important;
}
.deal-payout-val,
.social-toast-amount {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #14382A !important;
  white-space: nowrap;
}
.deal-lender-brand,
.social-toast-lender {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #0057B7 !important;
}
.deal-dismiss-btn,
.social-toast-close {
  background: #F1F5F9 !important;
  border: 1px solid #CBD5E1 !important;
  color: #64748B !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  order: -1;
  transition: all 0.15s ease;
}
.deal-dismiss-btn:hover,
.social-toast-close:hover {
  color: #0F172A !important;
  background-color: #E2E8F0 !important;
  transform: scale(1.05);
}

/* ==================== 3. PROMO TIMER STRIP ==================== */
.promo-countdown-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.15), rgba(245, 158, 11, 0.15));
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 12px;
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: 12px;
}
.strip-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #CBD5E1;
  font-weight: 600;
}
.pulse-red-badge {
  background: #EF4444;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  animation: pulseBadge 2s infinite;
}
@keyframes pulseBadge {
  0% { transform: scale(0.96); }
  50% { transform: scale(1.04); }
  100% { transform: scale(0.96); }
}
.strip-right {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #94A3B8;
}
.timer-box {
  background: #0F172A;
  color: #FDE047;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 13px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(253, 224, 71, 0.3);
}

/* ==================== 6. PUSH OPT-IN PROMPT BANNER ==================== */
.push-optin-banner {
  position: fixed;
  top: calc(14px + var(--safe-top));
  left: 12px;
  right: 12px;
  max-width: 460px;
  margin: 0 auto;
  z-index: 98;
  background: rgba(19, 29, 59, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid #FFD700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateY(-120%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.push-optin-banner.visible {
  transform: translateY(0);
}
.push-optin-content {
  display: flex;
  gap: 10px;
  align-items: center;
}
.push-optin-icon {
  font-size: 26px;
  flex-shrink: 0;
}
.push-optin-text {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  color: #94A3B8;
}
.push-optin-text strong {
  color: #EEF2FF;
  font-size: 14px;
}
.push-optin-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.btn-push-allow {
  background: #0057B7;
  color: #FFFFFF;
  border: none;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
}
.btn-push-later {
  background: transparent;
  color: #94A3B8;
  border: 1px solid #334155;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}

/* ==================== HERO PARAMETERS SELECTION CARD ==================== */
.offers-params-card-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(8, 126, 71, 0.16) 0%, rgba(30, 41, 59, 0.9) 100%);
  border: 1px solid rgba(8, 126, 71, 0.45);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.5), 0 0 16px rgba(8, 126, 71, 0.15);
  padding: 12px 14px;
  border-radius: 16px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
}
.offers-params-card-hero:active {
  transform: scale(0.98);
  border-color: #0057B7;
  background: linear-gradient(135deg, rgba(8, 126, 71, 0.25) 0%, rgba(30, 41, 59, 0.95) 100%);
}
.params-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0057B7, #072044);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(8, 126, 71, 0.4);
}
.params-content-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.params-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.params-badge-tag {
  font-size: 10px;
  font-weight: 800;
  color: #93C5FD;
  letter-spacing: 0.5px;
}
.params-action-hint {
  font-size: 11px;
  color: #FDE047;
  font-weight: 600;
}
.params-values-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
}
.params-amount-val {
  font-size: 19px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.3px;
}
.params-days-val {
  font-size: 14px;
  font-weight: 700;
  color: #E2E8F0;
}
.params-rate-val {
  font-size: 12px;
  font-weight: 800;
  color: #FDE047;
  background: rgba(253, 224, 71, 0.12);
  border: 1px solid rgba(253, 224, 71, 0.3);
  padding: 1px 6px;
  border-radius: 5px;
}
.params-divider {
  color: #64748B;
  font-size: 12px;
}
.params-arrow-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.offers-params-card-hero:hover .params-arrow-btn {
  transform: translateX(3px);
  color: #FFFFFF;
  background: #0057B7;
}

/* ==================== SCREEN 2: COMPACT CALC + STICKY FIRST-VIEW CTA ==================== */
#screen-calculator {
  padding-bottom: calc(160px + var(--safe-bottom)) !important; /* Plenty of space so results panel is never covered by sticky CTA */
}
#screen-calculator .calculator-hero-card {
  padding: 14px 14px 24px;
  gap: 12px;
  margin-bottom: 24px;
}

/* Hide floating banners and toasts while on calculator screen to prevent overlaps */
body.screen-calculator-active #app-timed-reminder,
body.screen-calculator-active #social-proof-toast-container,
body.screen-calculator-active .timed-reminder-card,
body.screen-calculator-active .pwa-install-bar {
  display: none !important;
}
#screen-calculator .hero-heading {
  font-size: 20px;
  margin-bottom: 2px;
}
#screen-calculator .hero-desc {
  font-size: 13px;
  line-height: 1.35;
}
#screen-calculator .calc-group {
  gap: 6px;
}
#screen-calculator .calc-value-display {
  font-size: 20px;
}
#screen-calculator .chips-row {
  gap: 5px;
}
#screen-calculator .amount-chip, 
#screen-calculator .days-chip {
  padding: 5px 8px;
  font-size: 12px;
}

/* Мобільна оптимізація чипсів калькулятора (горизонтальний скрол з плавною прокруткою без приховування) */
@media (max-width: 600px) {
  .chips-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 6px !important;
    padding-bottom: 4px !important;
    margin-bottom: 2px !important;
  }
  .chips-row::-webkit-scrollbar {
    display: none !important;
  }
  .amount-chip, .days-chip {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    padding: 7px 11px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-align: center !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 360px) {
  .amount-chip, .days-chip {
    font-size: 10.5px !important;
    padding: 6px 1px !important;
  }
}
#screen-calculator .calc-result-panel {
  padding: 10px;
  gap: 6px;
}
#screen-calculator .res-val {
  font-size: 15px;
}

/* Sticky Action Button at the bottom of the viewport above the tab bar */
.calc-sticky-cta-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(78px + var(--safe-bottom));
  z-index: 99 !important;
  padding: 8px 16px;
  background: transparent !important;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
@media (min-width: 768px) {
  .calc-sticky-cta-wrap {
    bottom: 96px;
  }
}
.calc-sticky-cta-wrap > * {
  pointer-events: auto !important;
}
.btn-calc-cta-sticky {
  position: relative;
  z-index: 100 !important;
  max-width: 728px;
  width: 100%;
  margin: 0 !important;
  padding: 14px 24px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #FBBF24 0%, #FFD700 50%, #D97706 100%) !important;
  color: #0F172A !important;
  border: 2px solid #FEF08A !important;
  box-shadow: 0 10px 25px -4px rgba(217, 119, 6, 0.7), 0 0 16px rgba(251, 191, 36, 0.45) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.2px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-calc-cta-sticky * {
  color: #0F172A !important;
  font-weight: 800 !important;
}
.btn-calc-cta-sticky:active {
  transform: scale(0.98);
}




/* ==================== FULLY ADAPTIVE SIMPLE LOAN CARD WITH CUSTOM INPUTS ==================== */
.simple-loan-card {
  background: var(--surface);
  border: 2px solid #0057B7;
  box-shadow: 0 10px 28px -6px rgba(0, 0, 0, 0.65), 0 0 16px rgba(8, 126, 71, 0.2);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.simple-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.simple-question {
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.2px;
}
.simple-promo-tag {
  background: rgba(16, 185, 129, 0.2);
  color: #FFD700;
  border: 1px solid rgba(16, 185, 129, 0.5);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}

/* Custom Amount Input Box */
.custom-input-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}
.custom-field-label {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.edit-badge {
  font-size: 12px;
  font-weight: 700;
  color: #0057B7;
  background: rgba(8, 126, 71, 0.15);
  border: 1px dashed rgba(96, 165, 250, 0.5);
  padding: 3px 10px;
  border-radius: 999px;
  transition: all 0.2s ease;
}
.custom-field-label:hover .edit-badge,
.custom-input-box:focus-within ~ .custom-field-label .edit-badge {
  color: #FDE047;
  border-color: #FDE047;
  background: rgba(253, 224, 71, 0.15);
}
.custom-input-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #080D1F;
  border: 2px solid #FFD700;
  border-radius: 14px;
  padding: 6px 14px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6), 0 0 14px rgba(8, 126, 71, 0.25);
  width: 100%;
  max-width: 290px;
  cursor: text;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.custom-input-box:hover {
  border-color: #0057B7;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6), 0 0 18px rgba(96, 165, 250, 0.35);
}
.custom-input-box:focus-within {
  border-color: #FDE047;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6), 0 0 22px rgba(253, 224, 71, 0.45);
  transform: scale(1.02);
}
.custom-input-icon {
  font-size: 16px;
  margin-right: 6px;
  opacity: 0.8;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.custom-num-input {
  background: transparent !important;
  border: none !important;
  color: #FFFFFF !important;
  font-size: 34px !important;
  font-weight: 900 !important;
  text-align: center !important;
  width: 100% !important;
  padding: 2px 0 !important;
  letter-spacing: -0.5px !important;
  outline: none !important;
  cursor: text !important;
  -moz-appearance: textfield;
}
.custom-num-input::-webkit-outer-spin-button,
.custom-num-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.custom-currency-unit {
  font-size: 26px;
  font-weight: 900;
  color: #FDE047;
  margin-left: 6px;
}
.custom-input-hint {
  font-size: 11px;
  color: #94A3B8;
  font-weight: 500;
  text-align: center;
}

/* Quick Tap Amount Preset Buttons */
.simple-buttons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.simple-buttons-grid .fin-chip {
  background: #1A2650;
  border: 1px solid #24335F;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 2px;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.simple-buttons-grid .fin-chip:active {
  transform: scale(0.95);
}
.simple-buttons-grid .fin-chip.active {
  background: #0057B7;
  border-color: #0057B7;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(8, 126, 71, 0.5);
}

/* Row 2: Term in Days Responsive Block */
.simple-term-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px;
  border-radius: 12px;
}
.term-header-mobile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.simple-term-label {
  font-size: 13px;
  font-weight: 700;
  color: #CBD5E1;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.custom-days-box {
  display: inline-flex;
  align-items: center;
  background: #080D1F;
  border: 2px solid #FFD700;
  border-radius: 10px;
  padding: 4px 10px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
  cursor: text;
  transition: all 0.2s ease;
}
.custom-days-box:hover {
  border-color: #0057B7;
}
.custom-days-box:focus-within {
  border-color: #FDE047;
  box-shadow: 0 0 14px rgba(253, 224, 71, 0.4);
  transform: scale(1.03);
}
.custom-days-icon {
  font-size: 13px;
  margin-right: 4px;
  opacity: 0.8;
}
.custom-days-input {
  background: transparent !important;
  border: none !important;
  color: #FFFFFF !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  width: 44px !important;
  text-align: center !important;
  padding: 0 !important;
  outline: none !important;
  cursor: text !important;
  -moz-appearance: textfield;
}
.custom-days-input::-webkit-outer-spin-button,
.custom-days-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.custom-days-unit {
  font-size: 13px;
  color: #FDE047;
  font-weight: 800;
  margin-left: 2px;
}
.custom-days-hint {
  font-size: 11px;
  color: #94A3B8;
  font-weight: 500;
}

/* 4 Compact Days Chips */
.simple-days-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.term-chip {
  background: #1A2650;
  border: 1px solid #24335F;
  color: #CBD5E1;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 4px;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.term-chip:active {
  transform: scale(0.95);
}
.term-chip.active {
  background: #0057B7;
  border-color: #FFD700;
  color: #FFFFFF;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

/* Super Clear Return Calculation Summary */
.simple-calc-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  color: #CBD5E1;
}
.calc-summary-left {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.calc-summary-right {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
  color: #94A3B8;
}
.simple-gold {
  color: #FDE047;
  font-weight: 800;
  font-size: 16px;
}
.simple-green {
  color: #FFD700;
  font-weight: 800;
}
.summary-dot {
  color: #64748B;
}

/* Mobile & compact header adaptation */
@media (max-width: 480px) {
  .header-container {
    padding: 8px 12px;
    gap: 8px;
  }
  .brand-logo-icon svg {
    width: 26px;
    height: 26px;
  }
  .brand-title {
    font-size: 16px;
    color: #0F172A !important;
  }
  .brand-sub {
    font-size: 11px;
    color: #475569 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
  .badge-247 {
    font-size: 10px;
    padding: 1px 5px;
  }
  .btn-header-calc {
    display: none !important;
  }
  .btn-pwa-header {
    padding: 6px 12px;
    font-size: 12px;
    gap: 5px;
  }
  .btn-pwa-header svg {
    width: 14px;
    height: 14px;
  }
  .btn-header-push {
    width: auto;
    height: auto;
    padding: 6px 11px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
  }
}

/* Very narrow devices (iPhone SE, Galaxy A, 320px - 360px) */
@media (max-width: 360px) {
  .brand-sub {
    font-size: 10.5px;
    color: #475569 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    display: block;
  }
  .brand-title {
    font-size: 14.5px;
    color: #0F172A !important;
  }
  .btn-header-calc span {
    font-size: 11px;
  }
  .btn-pwa-header span {
    display: none; /* Keep icon only on micro screens to avoid crowding */
  }
  .btn-pwa-header {
    padding: 6px 8px;
  }
  /* Компактный PWA баннер для узких экранов */
  .install-banner-text strong {
    font-size: 12.5px !important;
  }
  .install-banner-text span {
    font-size: 10px !important;
  }
  .btn-install-primary {
    padding: 6px 10px !important;
    font-size: 11.5px !important;
  }
}

/* Скрываем иконку в PWA баннере на компактных телефонах <= 420px, чтобы не сжимать текст */
@media (max-width: 420px) {
  .install-app-icon {
    display: none !important;
  }
  .pwa-install-banner {
    padding: 10px 12px !important;
    gap: 8px !important;
  }
  .install-banner-text strong {
    font-size: 13px;
  }
  .install-banner-text span {
    font-size: 10.5px;
  }
  .btn-install-primary {
    padding: 7px 12px !important;
    font-size: 12px !important;
  }
}

/* Small mobile responsiveness (iPhone SE, compact Androids) */
@media (max-width: 380px) {
  .simple-loan-card {
    padding: 12px 10px;
    gap: 10px;
  }
  .custom-num-input {
    font-size: 26px !important;
  }
  .custom-currency-unit {
    font-size: 22px;
  }
  .simple-buttons-grid .fin-chip {
    font-size: 11px;
    padding: 8px 1px;
  }
  .term-chip {
    font-size: 11px;
    padding: 7px 2px;
  }
  .simple-calc-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}


/* ==================== FINTECH LIGHT THEME & INTERACTIVE FEATURES ==================== */
.app-header {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}
.badge-247 {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FFD700;
}
.btn-header-calc {
  background: #ECFDF5;
  border: 1px solid #93C5FD;
  color: #072044;
}
.market-ticker-bar {
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  color: #334155;
  font-weight: 500;
}

/* Promo Countdown & VIP Match Trigger */
.promo-countdown-strip {
  background: linear-gradient(90deg, #FFFBEB 0%, #FEF2F2 100%);
  border: 1px solid #FCD34D;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.08);
  padding: 9px 12px;
  border-radius: 14px;
}
.strip-left {
  color: #1E293B;
}
.timer-box {
  background: #FFFFFF;
  color: #DC2626;
  border: 1px solid #FCA5A5;
  padding: 2px 7px;
  border-radius: 6px;
}
.btn-vip-match-trigger {
  background: linear-gradient(135deg, #0057B7, #4F46E5);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 800;
  padding: 6px 11px;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(8, 126, 71, 0.28);
  transition: transform 0.15s ease;
}
.btn-vip-match-trigger:active {
  transform: scale(0.95);
}

/* Light Loan Calculator Card on Screen 1 */
.simple-loan-card {
  background: #FFFFFF;
  border: 1.5px solid #BFDBFE;
  box-shadow: 0 12px 30px -8px rgba(8, 126, 71, 0.12), 0 2px 8px rgba(15, 23, 42, 0.04);
}
.simple-question {
  color: #0F172A;
  font-size: 15px;
}
.simple-promo-tag {
  background: #ECFDF5;
  color: #0057B7;
  border: 1px solid #6EE7B7;
}
.edit-badge {
  color: #072044;
  background: #ECFDF5;
  border: 1px dashed #0057B7;
}
.custom-field-label:hover .edit-badge,
.custom-input-box:focus-within ~ .custom-field-label .edit-badge {
  color: #B45309;
  border-color: #FFD700;
  background: #FEF3C7;
}
.custom-input-box {
  background: #F8FAFC;
  border: 2px solid #FFD700;
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(8, 126, 71, 0.1);
}
.custom-input-box:focus-within {
  background: #FFFFFF;
  border-color: #0057B7;
  box-shadow: 0 0 0 4px rgba(8, 126, 71, 0.15);
}
.custom-num-input {
  color: #0F172A !important;
}
.custom-currency-unit {
  color: #0057B7;
}
.custom-input-hint,
.custom-days-hint {
  color: #475569;
}
.simple-buttons-grid .fin-chip {
  background: #F1F5F9;
  border: 1px solid #94A3B8;
  color: #1E293B;
}
.simple-buttons-grid .fin-chip.active {
  background: #0057B7;
  border-color: #072044;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(8, 126, 71, 0.3);
}
.simple-term-row {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
}
.simple-term-label {
  color: #1E293B;
}
.custom-days-box {
  background: #FFFFFF;
  border: 1.5px solid #FFD700;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
.custom-days-input {
  color: #0F172A !important;
}
.custom-days-unit {
  color: #0057B7;
}
.term-chip {
  background: #FFFFFF;
  border: 1px solid #94A3B8;
  color: #334155;
}
.term-chip.active {
  background: #0057B7;
  border-color: #0057B7;
  color: #FFFFFF;
}
.simple-calc-summary {
  background: linear-gradient(90deg, #ECFDF5 0%, #ECFDF5 100%);
  border: 1px solid #BFDBFE;
  color: #1E293B;
}
.calc-summary-right {
  color: #334155;
}
.simple-gold {
  color: #072044;
  font-size: 17px;
}
.simple-green {
  color: #0057B7;
}

/* Interactive Approval Radar Card */
.approval-radar-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px -6px rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 10px;
}
.radar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.radar-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.radar-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}
.radar-title {
  font-size: 14px;
  font-weight: 800;
  color: #0F172A;
}
.radar-subtitle {
  font-size: 11.5px;
  color: #475569;
}
.radar-score-pill {
  background: linear-gradient(135deg, #0057B7, #0057B7);
  color: #FFFFFF;
  font-weight: 900;
  font-size: 15px;
  padding: 5px 11px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
  flex-shrink: 0;
}
.radar-gauge-track {
  height: 8px;
  background: #E2E8F0;
  border-radius: 999px;
  overflow: hidden;
}
.radar-gauge-fill {
  height: 100%;
  background: linear-gradient(90deg, #FFD700 0%, #F59E0B 100%);
  border-radius: 999px;
  transition: width 0.35s ease;
}
.radar-toggles-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
}
.radar-toggles-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.radar-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #F8FAFC;
  border: 1px solid #94A3B8;
  color: #334155;
  transition: all 0.15s ease;
}
.radar-toggle.active {
  background: #ECFDF5;
  border-color: #0057B7;
  color: #064E3B;
}
.toggle-check {
  font-weight: 900;
  color: #0057B7;
}
.boost-tag {
  font-size: 10px;
  font-weight: 800;
  background: #DBEAFE;
  color: #072044;
  padding: 1px 5px;
  border-radius: 999px;
}

/* Multi-Apply Booster */
.multi-apply-banner {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border: 1px solid #FFD700;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.1);
  margin-bottom: 18px;
}
.multi-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.multi-progress-pill {
  font-size: 11px;
  font-weight: 800;
  background: #FFFFFF;
  color: #B45309;
  border: 1px solid #FFD700;
  padding: 2px 8px;
  border-radius: 999px;
}
.btn-multi-apply {
  background: linear-gradient(135deg, #0057B7, #072044);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(8, 126, 71, 0.3);
}

/* Offer Cards in Light Mode */
.offer-card {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  box-shadow: 0 6px 20px -6px rgba(15, 23, 42, 0.07), 0 1px 3px rgba(15, 23, 42, 0.04);
}
.offer-card:hover {
  box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.12);
}
.offer-card.top-card,
.offer-card.top-card.offer-applied {
  border: 2.5px solid #FFD700 !important;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.35), 0 12px 30px -8px rgba(245, 158, 11, 0.35) !important;
}
.offer-card.offer-applied {
  border-color: #0057B7;
  background: linear-gradient(180deg, #F0FDF4 0%, #FFFFFF 35%);
}
.offer-card.top-card.offer-applied {
  background: linear-gradient(180deg, #FFFBEB 0%, #FFFFFF 35%);
}
.brand-avatar-img {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
}
.verified-icon {
  color: #0057B7;
}
.compact-offer-tag.top { background: #FEF3C7 !important; color: #92400E !important; border: 1px solid #FFD700 !important; }
.compact-offer-tag.promo { background: #FCE7F3 !important; color: #9D174D !important; border: 1px solid #F472B6 !important; }
.compact-offer-tag.success { background: #EFF6FF !important; color: #1E40AF !important; border: 1px solid #93C5FD !important; }
.compact-offer-tag.fire { background: #FEE2E2 !important; color: #991B1B !important; border: 1px solid #F87171 !important; }
.compact-offer-tag.fast { background: #FEF9C3 !important; color: #854D0E !important; border: 1px solid #FDE047 !important; }

.approval-meter-wrap {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
}
.meter-title {
  color: #065F46;
}
.meter-percent {
  color: #0057B7;
}
.approval-progress-track {
  background: #DBEAFE;
}
.metric-item {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
}
.metric-item.highlight {
  background: #ECFDF5;
  border: 1px solid #6EE7B7;
}
.pill {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  color: #334155;
}
.pill-bankid {
  background: #ECFDF5 !important;
  color: #072044 !important;
  border-color: #93C5FD !important;
}
.pill-success {
  background: #ECFDF5;
  color: #0057B7;
  border-color: #A7F3D0;
}
.pill-applied-status {
  background: #DCFCE7;
  color: #065F46;
  border: 1px solid #FFD700;
  font-weight: 800;
}
.offer-calc-preview {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #475569;
}
.badge-saving {
  color: #0057B7;
  background: #DCFCE7;
  padding: 2px 8px;
  border-radius: 999px;
}
.recent-apps-counter {
  color: #475569;
}
.legal-accordion, .faq-item {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
}

/* Screen 2 Calculator Light Mode */
.calculator-hero-card {
  background: linear-gradient(160deg, #ECFDF5 0%, #FFFFFF 60%);
  border: 1px solid #BFDBFE;
  box-shadow: 0 10px 25px -8px rgba(8, 126, 71, 0.12);
}
.promo-pill {
  background: #FEF3C7;
  border: 1px solid #FFD700;
  color: #92400E;
}
.hero-desc {
  color: #475569;
}
.range-slider {
  accent-color: var(--blue);
}
@supports not (accent-color: #0057B7) {
  .range-slider {
    -webkit-appearance: none;
    appearance: none;
    background: #CBD5E1;
    height: 8px;
    border-radius: 4px;
  }
  .range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0057B7;
  }
}
.amount-chip, .days-chip {
  background: #F1F5F9;
  border: 1px solid #94A3B8;
  color: #1E293B;
}
.amount-chip.active, .days-chip.active {
  background: #0057B7;
  border-color: #072044;
  color: #FFFFFF;
}
/* ==================== КАЛЬКУЛЯТОР: KPI ПРЯМОКУТНИКИ РЕЗУЛЬТАТІВ (НЕ В СТОЛБИК) ==================== */
.calc-results-panel {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px !important;
  margin: 18px 0 16px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.calc-kpi-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 10px 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
  position: relative;
  overflow: hidden;
}

/* Карточка 1: Відсотки (Смарагдово-зелений акцент) */
.calc-kpi-card.calc-card-interest {
  border-top: 3.5px solid #10B981 !important;
  background: linear-gradient(180deg, #F0FDF4 0%, #FFFFFF 65%);
  border-color: #D1FAE5;
}

/* Карточка 2: До повернення (Головний бренд-синій акцент) */
.calc-kpi-card.calc-card-total {
  border-top: 3.5px solid #0057B7 !important;
  background: linear-gradient(180deg, #EFF6FF 0%, #FFFFFF 65%);
  border-color: #DBEAFE;
  box-shadow: 0 4px 12px rgba(0, 87, 183, 0.12);
}

/* Карточка 3: Ваша економія (Теплий бурштиновий/золотий акцент) */
.calc-kpi-card.calc-card-savings {
  border-top: 3.5px solid #F59E0B !important;
  background: linear-gradient(180deg, #FEFCE8 0%, #FFFFFF 65%);
  border-color: #FEF08A;
}

.calc-kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 4px;
}

.calc-kpi-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calc-kpi-badge {
  font-size: 9px;
  font-weight: 800;
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  padding: 2px 4px;
  border-radius: 4px;
  line-height: 1;
  white-space: nowrap;
}

.calc-kpi-badge.badge-save {
  background: rgba(245, 158, 11, 0.15);
  color: #D97706;
}

.calc-kpi-icon {
  font-size: 11px;
}

.calc-kpi-value {
  font-size: clamp(13px, 3.8vw, 17px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.3px;
}

.calc-kpi-value.text-emerald {
  color: #059669 !important;
}

.calc-kpi-value.text-blue {
  color: #0057B7 !important;
}

.calc-kpi-value.text-amber {
  color: #D97706 !important;
}

.calc-kpi-sub {
  font-size: 9.5px;
  color: #94A3B8;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 480px) {
  .calc-results-panel {
    gap: 12px !important;
  }
  .calc-kpi-card {
    padding: 12px 10px;
    border-radius: 14px;
  }
  .calc-kpi-title {
    font-size: 11px;
  }
  .calc-kpi-sub {
    font-size: 10.5px;
  }
}
.calc-sticky-cta-wrap {
  background: transparent !important;
}
.logo-bankid-pill {
  color: #FFFFFF;
}
.step-number {
  background: #DBEAFE;
  color: #072044;
}

/* Bottom Tab Bar in Light Mode with Vibrant Active State */
.app-tab-bar {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid #CBD5E1 !important;
  border-top: 1.5px solid #CBD5E1 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22), 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  padding: 5px 6px calc(5px + var(--safe-bottom)) 6px !important;
  gap: 4px;
}
@media (min-width: 768px) {
  .app-tab-bar {
    display: none !important;
  }
}
.tab-button {
  color: #64748B !important;
  font-weight: 600;
  border-radius: 14px !important;
  padding: 6px 2px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  position: relative;
  background: transparent;
  border: none;
}
.tab-button:hover {
  color: #0F172A !important;
  background: rgba(241, 245, 249, 0.85);
}

/* Яскраве та чітке виділення активної вкладки (Vibrant Emerald Capsule) */
.tab-button.active {
  background: linear-gradient(135deg, #0057B7 0%, #003F8A 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(0, 87, 183, 0.42), 0 1px 3px rgba(0, 0, 0, 0.15) !important;
  transform: translateY(-1px);
}
.tab-button.active * {
  color: #FFFFFF !important;
}
.tab-button.active .tab-icon-wrap {
  color: #FFFFFF !important;
  transform: scale(1.05);
}
.tab-button.active .tab-icon-wrap svg {
  stroke: #FFFFFF !important;
  stroke-width: 2.3 !important;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}
.tab-button.active .tab-title {
  color: #FFFFFF !important;
  font-weight: 800 !important;
  letter-spacing: 0.2px;
}
.tab-button.active::before {
  display: none !important;
}

/* Яскрава промо-кнопка Встановити у нижньому меню */
.tab-btn-install-promo {
  background: linear-gradient(135deg, #FEF08A 0%, #FBBF24 50%, #F59E0B 100%) !important;
  color: #78350F !important;
  border: 1.5px solid #F59E0B !important;
  border-radius: 14px !important;
  padding: 4px 2px !important;
  box-shadow: 0 3px 12px rgba(245, 158, 11, 0.42), 0 1px 3px rgba(0, 0, 0, 0.12) !important;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: installTabGlow 3s infinite ease-in-out;
}
.tab-btn-install-promo:hover {
  background: linear-gradient(135deg, #FFF59D 0%, #F59E0B 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.55) !important;
}
.tab-btn-install-promo .tab-icon-wrap {
  transform: none;
}
.tab-btn-install-promo .tab-icon-wrap svg {
  stroke: #78350F !important;
  stroke-width: 2.4 !important;
  filter: drop-shadow(0 1px 1px rgba(254, 240, 138, 0.4));
}
.tab-btn-install-promo .tab-title {
  color: #78350F !important;
  font-weight: 900 !important;
  font-size: 10px !important;
  letter-spacing: -0.1px;
  line-height: 1.1;
}
.tab-install-device {
  display: inline-block;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(120, 53, 15, 0.14);
  color: #78350F;
  padding: 0.5px 4px;
  border-radius: 4px;
  line-height: 1.1;
  white-space: nowrap;
  letter-spacing: 0.1px;
}

@keyframes installTabGlow {
  0%, 100% {
    box-shadow: 0 3px 12px rgba(245, 158, 11, 0.4);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.7), 0 0 12px rgba(254, 240, 138, 0.85);
    transform: translateY(-1.5px);
  }
}

/* Коли додаток вже встановлено — 3 кнопки посередині, приємно розкинуті */
.app-tab-bar.has-3-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  max-width: 520px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  gap: 16px !important;
}
.app-tab-bar.has-3-tabs .tab-button {
  padding: 7px 6px !important;
}

/* Light Toasts & Banners */
.social-toast-offer-link {
  color: #0057B7 !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color 0.15s ease;
}
.social-toast-offer-link:hover {
  color: #0057B7 !important;
  text-decoration: underline;
}
.push-optin-banner,
.pwa-install-banner,
.app-toast {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #93C5FD;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
  color: #0F172A;
}
.pwa-install-banner .btn-install-primary {
  color: #FFFFFF !important;
}
.push-optin-text {
  color: #475569;
}
.push-optin-text strong {
  color: #0F172A;
}
.btn-push-later {
  color: #475569;
  border-color: #94A3B8;
}

/* Native VIP Matchmaker Dialog */
dialog:modal {
  overscroll-behavior: contain;
}
dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}
.vip-match-dialog[open] {
  margin: auto;
  width: min(92vw, 440px);
  border: 1px solid #BFDBFE;
  border-radius: 22px;
  padding: 20px;
  background: #FFFFFF;
  color: #0F172A;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
}
.vip-dialog-inner {
  display: grid;
  gap: 12px;
}
.vip-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.vip-badge-pill {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FFD700;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}
.btn-vip-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #334155;
  font-weight: 700;
}
.vip-dialog-title {
  font-size: 19px;
  font-weight: 800;
}
.vip-dialog-sub {
  font-size: 13px;
  color: #475569;
}
.vip-match-body {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 10px;
}

@media (forced-colors: active) {
  .offer-card, .simple-loan-card, .approval-radar-card, .btn-cta {
    border: 1px solid CanvasText;
  }
}


/* ==================== MOBILE OVERFLOW & BADGE FIT FIXES ==================== */
.main-content,
.offer-card,
.simple-loan-card,
.approval-radar-card,
.multi-apply-banner,
.calculator-hero-card {
  min-width: 0;
  max-width: 100%;
}

.radar-title-group {
  min-width: 0;
  flex: 1 1 auto;
}
.radar-title,
.radar-subtitle {
  overflow-wrap: break-word;
}

.pill {
  max-width: 100%;
  white-space: normal;
  line-height: 1.25;
}

.calc-summary-left,
.calc-summary-right {
  flex-wrap: wrap;
}

.btn-multi-apply {
  width: 100%;
  text-align: center;
}
@media (min-width: 640px) {
  .btn-multi-apply {
    width: auto;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 6px 12px 14px 12px !important;
    gap: 10px !important;
  }
  .curated-headline-block {
    margin-top: 0 !important;
    margin-bottom: 6px !important;
  }
  .curated-approval-wave-bar {
    display: block;
    padding: 2.5px 6px !important;
    margin-bottom: 5px !important;
    font-size: 12px !important;
    line-height: 1.05 !important;
  }
  .curated-approval-wave-bar::after {
    content: "";
    display: table;
    clear: both;
  }
  .night-mode-badge-bar {
    padding: 3.5px 7px !important;
    gap: 6px !important;
    margin-bottom: 5px !important;
  }
  .night-badge-pill {
    font-size: 8px !important;
    padding: 1.5px 5px !important;
  }
  .night-badge-text {
    font-size: 12px !important;
    line-height: 1.18 !important;
  }
  .night-badge-arrow {
    display: none !important;
  }
  .wave-live-badge {
    display: inline-flex !important;
    float: none !important;
    font-size: 8px !important;
    padding: 1px 4.5px !important;
    line-height: 1 !important;
    vertical-align: 1.5px !important;
    margin: 0 4px 0 0 !important;
  }
  .wave-text {
    font-size: 12px !important;
    line-height: 1.05 !important;
    display: inline !important;
  }
  .curated-top-kicker {
    margin-top: 3px !important;
    margin-left: -2px !important;
  }
  .btn-cta {
    padding: 12px 34px 12px 16px;
  }
  .btn-arrow {
    right: 12px;
  }
  .btn-text {
    font-size: 16px;
  }
  .compact-offer-tag {
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.15 !important;
    max-width: 130px !important;
  }
  .promo-countdown-strip {
    justify-content: space-between;
  }
  .btn-vip-match-trigger {
    flex-shrink: 0;
  }
}

@media (max-width: 380px) {
  .radar-toggles-row {
    gap: 5px;
  }
  .radar-toggle {
    font-size: 11px;
    padding: 5px 8px;
  }
  .promo-countdown-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .btn-vip-match-trigger {
    width: 100%;
    text-align: center;
    padding: 7px 12px;
  }
  .offer-metrics-grid {
    gap: 6px;
  }
  .metric-item {
    padding: 8px 10px;
  }
  .metric-value {
    font-size: 15px;
  }
}

.offer-metrics-grid.offer-metrics-compact {
  grid-template-columns: repeat(3, 1fr);
}

body {
  background: radial-gradient(120% 70% at 50% 0%, #0E2E5C 0%, #091D3E 55%, #051226 100%) fixed !important;
}

.section-title {
  color: #FFFFFF !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.legal-accordion-section > p,
.filter-header-row + p {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* ==================== BRIGHT PWA DEVICE SELECTOR BUTTONS ==================== */
.device-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #F1F5F9;
  border: 2px solid #CBD5E1;
  color: #1E293B;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.device-tab-btn:hover {
  background: #E2E8F0;
  border-color: #94A3B8;
  transform: translateY(-1px);
}
.device-tab-btn.active {
  background: linear-gradient(135deg, #0057B7, #003F8A) !important;
  color: #FFFFFF !important;
  border-color: #0057B7 !important;
  box-shadow: 0 6px 18px rgba(0, 87, 183, 0.45);
}
.device-tab-btn.active * {
  color: #FFFFFF !important;
}
.device-tab-icon {
  font-size: 19px;
  line-height: 1;
}

.btn-other-devices-toggle {
  display: block;
  width: 100%;
  margin: 10px auto 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: #0057B7;
  text-align: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  transition: opacity 0.15s ease;
}
.btn-other-devices-toggle:hover {
  text-decoration: underline;
  opacity: 0.85;
}

/* Header Action Buttons */
.btn-header-push {
  position: relative;
  z-index: 5;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(255, 215, 0, 0.3);
  user-select: none;
  -webkit-user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #FFD700 0%, #D97706 100%) !important;
  color: #FFFFFF !important;
  border: 1.5px solid #FEF08A !important;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800 !important;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-header-push:hover {
  transform: scale(1.04);
}
.btn-header-push.push-active {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  border-color: #6EE7B7 !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.45) !important;
}
.header-bell-icon {
  font-size: 14px;
  display: inline-block;
  animation: bellRing 2.5s infinite;
}
@keyframes bellRing {
  0%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(14deg); }
  20%, 40% { transform: rotate(-14deg); }
  50% { transform: rotate(0); }
}
@media (max-width: 480px) {
  .header-push-text {
    display: inline-block;
    white-space: nowrap;
  }
  .btn-header-push {
    padding: 6px 12px;
    font-size: 12.5px;
  }
}

/* Header Install CTA Button Enhancement */
.btn-pwa-header {
  background: linear-gradient(135deg, #0057B7 0%, #003F8A 100%) !important;
  color: #FFFFFF !important;
  border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.5) !important;
  font-weight: 800 !important;
  letter-spacing: 0.2px;
}
.btn-pwa-header:hover {
  transform: scale(1.03);
}

/* ==================== PUSH OPT-IN PROMPT MODAL ==================== */
.push-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(7, 29, 21, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 16px calc(20px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  animation: fadeIn 0.25s ease;
}
.push-modal-backdrop.open {
  display: flex;
}
.push-modal-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: calc(96dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #FFFFFF;
  border-radius: 20px;
  padding: 12px 14px 12px 14px;
  margin: auto;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(16, 185, 129, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  animation: slideUpModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUpModal {
  from { transform: translateY(24px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes antiReflexCloseFadeIn {
  0% {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.6);
  }
  70% {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.6);
  }
  100% {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
  }
}

.btn-push-modal-close {
  display: none !important;
}

/* ==================== EMERGENCY BADGE & PAIN/SOLUTION CARD ==================== */
.push-emergency-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
  border: 1.5px solid #F87171;
  color: #991B1B;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15);
  margin-bottom: 2px;
}
.pulse-dot-red {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #DC2626;
  animation: pulse 1.4s infinite;
  flex-shrink: 0;
}

.push-pain-card {
  width: 100%;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  box-sizing: border-box;
}
.pain-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11.5px;
  line-height: 1.3;
  color: #334155;
}
.pain-icon {
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}
.pain-item strong {
  color: #0F172A;
}
.pain-item.solution strong {
  color: #047857;
}

.push-purpose-box {
  width: 100%;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border: 1.5px solid #93C5FD;
  border-radius: 10px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  line-height: 1.25;
  color: #1E40AF;
  text-align: left;
  box-sizing: border-box;
}
.purpose-icon {
  font-size: 15px;
  flex-shrink: 0;
}
.purpose-text strong {
  color: #1D4ED8;
}

.btn-push-hero {
  box-shadow: 0 6px 20px rgba(0, 87, 183, 0.45) !important;
  transform: translateY(0);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-push-hero:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 87, 183, 0.55) !important;
}

/* iOS Push Steps Box in Push Modal */
.push-ios-steps-box {
  width: 100%;
  background: rgba(0, 87, 183, 0.06);
  border: 1.5px solid rgba(0, 87, 183, 0.25);
  border-radius: 14px;
  padding: 10px 12px;
  text-align: left;
  box-sizing: border-box;
}
.ios-push-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #0057B7;
  margin-bottom: 6px;
}
.push-ios-step-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.3;
  color: #1E293B;
  margin-bottom: 5px;
}
.push-ios-step-item:last-child {
  margin-bottom: 0;
}
.push-ios-step-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0057B7;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ==================== MULTI-VIEW PUSH MODAL (DENIED & RETENTION) ==================== */
.push-modal-view {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.push-modal-bell-wrap.denied-pulse {
  background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%) !important;
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.35) !important;
}

.push-modal-bell-wrap.retention-pulse {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%) !important;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35) !important;
}

.push-denied-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FEF2F2;
  border: 1.5px solid #F87171;
  color: #991B1B;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.push-retention-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FFFBEB;
  border: 1.5px solid #FBBF24;
  color: #92400E;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.push-denied-fomo-card {
  width: 100%;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  font-size: 11.5px;
  color: #1E3A8A;
  line-height: 1.35;
  box-sizing: border-box;
}
.fomo-fire-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: -1px;
}

.push-unblock-steps-box {
  width: 100%;
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: 14px;
  padding: 10px 12px;
  text-align: left;
  box-sizing: border-box;
}
.unblock-box-title {
  font-size: 12px;
  font-weight: 800;
  color: #0057B7;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.unblock-step-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.35;
  color: #1E293B;
  margin-bottom: 8px;
}
.unblock-step-item:last-child {
  margin-bottom: 0;
}
.unblock-step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0057B7;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.unblock-step-body {
  flex: 1 1 auto;
}

.btn-push-unblock {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  box-shadow: 0 6px 18px -4px rgba(16, 185, 129, 0.5) !important;
}
.btn-push-unblock:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  box-shadow: 0 8px 22px -4px rgba(16, 185, 129, 0.65) !important;
}

.push-retention-card {
  width: 100%;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  font-size: 11.5px;
  line-height: 1.35;
  box-sizing: border-box;
}
.retention-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.retention-item.negative {
  color: #991B1B;
}
.retention-item.positive {
  color: #166534;
}
.retention-icon {
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

@keyframes shakePushCard {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
.push-modal-card.shake {
  animation: shakePushCard 0.4s ease-in-out;
}

.push-modal-bell-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE047 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
  flex-shrink: 0;
}
.push-bell-icon {
  font-size: 22px;
  animation: ringBell 2.5s infinite ease-in-out;
}
@keyframes ringBell {
  0%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(14deg); }
  20%, 40% { transform: rotate(-14deg); }
  50% { transform: rotate(0); }
}
.push-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ECFDF5;
  border: 1.5px solid #0057B7;
  color: #0057B7;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.push-social-proof-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 800;
  color: #92400E;
  margin-top: 0;
}
.push-social-stars {
  color: #B45309;
}
.push-live-ticker {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #F0FDF4;
  border: 1px solid #86EFAC;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #166534;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
}
.push-modal-title {
  font-size: 17px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.25;
  margin: 0;
}
.push-modal-desc {
  display: none !important;
}
.push-benefits-list {
  width: 100%;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
  font-size: 11.5px;
  color: #334155;
}
.push-benefit-item {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
}
.push-benefit-check {
  color: #0057B7;
  font-weight: 900;
  font-size: 13px;
  flex-shrink: 0;
}
.push-modal-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.btn-push-primary {
  width: 100%;
  padding: 10px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0057B7 0%, #003F8A 100%);
  color: #FFFFFF !important;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  box-shadow: 0 6px 18px -4px rgba(0, 87, 183, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.btn-push-title {
  font-size: 14px;
  font-weight: 800;
}
.btn-push-subtitle {
  font-size: 10.5px;
  font-weight: 600;
  color: #D1FAE5;
  opacity: 0.92;
}
.btn-push-primary:hover {
  box-shadow: 0 8px 22px -4px rgba(0, 87, 183, 0.65);
}
.btn-push-primary:active {
  transform: scale(0.98);
}
.btn-push-secondary {
  background: none;
  border: none;
  color: #64748B;
  font-size: 12px;
  font-weight: 600;
  padding: 4px;
  cursor: pointer;
  transition: color 0.15s ease;
}
.btn-push-secondary:hover {
  color: #0F172A;
}
.btn-push-skip {
  display: none !important;
}

/* ==================== TIMED FLOATING REMINDERS (30s & 2m) ==================== */
.timed-reminder-card {
  position: fixed;
  bottom: calc(82px + var(--safe-bottom));
  left: 14px;
  right: 14px;
  max-width: 440px;
  margin: 0 auto;
  z-index: 95;
  background: #FFFFFF;
  border: 2px solid #FFD700;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3), 0 0 18px rgba(245, 158, 11, 0.25);
  border-radius: 18px;
  padding: 14px 16px;
  display: none;
  animation: slideUpReminder 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.timed-reminder-card.visible {
  display: block;
}

/* На комп'ютері (>= 768px) показуємо нагадування та банери встановлення справа внизу */
@media (min-width: 768px) {
  .timed-reminder-card {
    bottom: 24px !important;
    right: 24px !important;
    left: auto !important;
    margin: 0 !important;
    max-width: 400px !important;
  }
  .pwa-install-banner {
    bottom: 24px !important;
    right: 24px !important;
    left: auto !important;
    margin: 0 !important;
    max-width: 420px !important;
  }
}
@keyframes slideUpReminder {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.btn-reminder-close {
  position: absolute;
  top: 10px;
  left: 12px;
  right: auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #64748B;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.15s ease;
}
.btn-reminder-close:hover {
  background: #E2E8F0;
  color: #0F172A;
  transform: scale(1.05);
}
.reminder-badge {
  display: inline-block;
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FCD34D;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  margin-bottom: 6px;
  margin-left: 32px;
}
.reminder-title {
  font-size: 15px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 4px;
  line-height: 1.3;
}
.reminder-desc {
  font-size: 12px;
  color: #475569;
  margin: 0 0 10px;
  line-height: 1.45;
}
.reminder-actions {
  display: flex;
  gap: 8px;
}
.btn-reminder-push {
  flex: 1;
  background: linear-gradient(135deg, #0057B7, #003F8A);
  color: #FFFFFF !important;
  font-size: 12px;
  font-weight: 800;
  padding: 9px 12px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 87, 183, 0.35);
  transition: transform 0.15s ease;
}
.btn-reminder-push:active, .btn-reminder-install:active {
  transform: scale(0.97);
}
.btn-reminder-install {
  flex: 1;
  background: linear-gradient(135deg, #FBBF24, #FFD700);
  color: #0F172A !important;
  font-size: 12px;
  font-weight: 800;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1.5px solid #FEF08A;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.35);
  transition: transform 0.15s ease;
}

/* ==================== HIGH-RES CRISP BRAND APP ICONS ==================== */
.brand-left-group .brand-avatar,
.brand-avatar {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  min-height: 52px !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
}

.brand-avatar-img {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.offer-brand-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 14px !important;
  display: block !important;
}

/* Fix mobile metric value truncation (до 15 0...) */
.offer-metrics-grid .metric-item {
  padding: 8px 6px !important;
  text-align: center !important;
  min-width: 0 !important;
  border-radius: 12px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  min-height: 58px !important;
}

.offer-metrics-grid .metric-value {
  font-size: clamp(11.5px, 3.2vw, 14.5px) !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.offer-metrics-grid .metric-value.metric-stacked {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1.18 !important;
  white-space: normal !important;
  gap: 1px !important;
}

.metric-stacked .metric-time {
  font-size: clamp(12px, 3.3vw, 14px);
  font-weight: 800;
  color: #0F172A;
  line-height: 1.15;
}

.metric-stacked .metric-term {
  font-size: clamp(10.5px, 2.7vw, 12px);
  font-weight: 700;
  color: #0057B7;
  line-height: 1.15;
}

/* Calculator Offer Matching & Filter Bar (Vibrant & High-Contrast) */
.calc-filter-active-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #FEF08A 0%, #FDE047 50%, #FACC15 100%);
  border: 2px solid #F59E0B;
  border-radius: 12px;
  padding: 10px 14px;
  margin: 8px 0 14px 0;
  color: #0F172A;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35), 0 2px 6px rgba(0, 0, 0, 0.12);
  gap: 12px;
  animation: filterBarSlideIn 0.25s ease-out;
}
@keyframes filterBarSlideIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.calc-filter-content {
  min-width: 0;
  flex: 1;
}
.calc-filter-main {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  color: #0F172A;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}
.calc-filter-main strong {
  color: #0F172A;
  background: rgba(0, 0, 0, 0.08);
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 800;
  letter-spacing: -0.2px;
}
.calc-filter-sub {
  font-size: 0.74rem;
  color: #334155;
  margin-top: 3px;
  line-height: 1.25;
  font-weight: 500;
}
.calc-filter-sub strong {
  color: #047857;
  font-weight: 800;
}
.calc-filter-sub.warn {
  color: #9A3412;
  font-weight: 700;
}
.btn-reset-filter {
  background: #0057B7;
  border: 1px solid #004494;
  color: #FFFFFF;
  border-radius: 8px;
  padding: 7px 13px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 87, 183, 0.35);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-reset-filter:hover {
  background: #004494;
  box-shadow: 0 4px 14px rgba(0, 87, 183, 0.5);
  transform: translateY(-1px);
}
.btn-reset-filter:active {
  transform: scale(0.97);
}

@media (max-width: 380px) {
  .calc-filter-active-bar {
    padding: 8px 10px;
    gap: 8px;
    border-radius: 10px;
  }
  .calc-filter-main {
    font-size: 0.78rem;
    gap: 3px;
  }
  .calc-filter-main strong {
    padding: 1px 4px;
  }
  .calc-filter-sub {
    font-size: 0.7rem;
  }
  .btn-reset-filter {
    padding: 6px 9px;
    font-size: 0.72rem;
  }
}
.badge-calc-match {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10B981;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  margin-top: 6px;
}
.badge-calc-mismatch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #F59E0B;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  margin-top: 6px;
}

/* ==================== PHONE PRE-APPROVAL POPUP MODAL ==================== */
.phone-approval-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(4, 10, 24, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.phone-approval-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.phone-approval-dialog {
  width: 100%;
  max-width: 470px;
  max-height: 90vh;
  min-height: auto;
  height: auto;
  background: radial-gradient(120% 80% at 50% 0%, #15264E 0%, #0E1A38 100%);
  border: 1.5px solid rgba(255, 215, 0, 0.45);
  border-radius: 22px;
  padding: 20px 18px 24px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 87, 183, 0.35);
  transform: scale(0.92) translateY(12px);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
  overflow-y: auto;
  position: relative;
  color: #FFFFFF;
  margin: auto;
}

.phone-approval-backdrop.open .phone-approval-dialog {
  transform: scale(1) translateY(0);
}

@media (min-width: 768px) {
  .phone-approval-dialog {
    max-width: 500px;
    padding: 26px 24px 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 45px rgba(0, 87, 183, 0.4);
  }
}

.phone-modal-drag-handle {
  display: none !important;
}

.phone-modal-cash-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
  margin-top: -2px;
}

.phone-cash-img {
  width: 130px;
  height: auto;
  max-height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 15px rgba(255, 215, 0, 0.3));
  animation: floatCash 3.5s ease-in-out infinite alternate;
}

@keyframes floatCash {
  0% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(-4px) scale(1.02);
  }
}

.phone-modal-header {
  text-align: center;
}

.btn-phone-modal-close {
  display: none !important;
}

.phone-modal-later-wrap {
  text-align: center;
  margin-top: 14px;
}
.btn-phone-later-link {
  background: transparent;
  border: none !important;
  color: #64748B !important;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none !important;
  border-bottom: none !important;
  padding: 6px 14px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease, color 0.2s ease;
}
.btn-phone-later-link.visible {
  opacity: 0.55;
  pointer-events: auto;
  visibility: visible;
}
.btn-phone-later-link:hover {
  color: #94A3B8 !important;
  opacity: 0.9;
  text-decoration: none !important;
}

/* ==================== ЗАКРІПЛЕНИЙ ЗНАЧОК ТЕЛЕФОНУ ЗЛІВА ПОСЕРЕДИНІ ==================== */
.floating-phone-badge {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%) translateX(0);
  z-index: 998;
  display: flex;
  align-items: center;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  filter: drop-shadow(2px 6px 18px rgba(0, 0, 0, 0.35));
  will-change: transform, opacity;
}

.floating-phone-badge.badge-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-50%) translateX(-120%) !important;
}

/* При прокручуванні лістингу плашка плавно від'їжджає за лівий край екрану */
.floating-phone-badge.badge-scrolling-out {
  transform: translateY(-50%) translateX(-110%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.28s ease !important;
}

.floating-phone-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0057B7 0%, #003F8A 100%);
  border: 1.5px solid #F59E0B;
  border-left: none;
  border-radius: 0 16px 16px 0;
  padding: 10px 14px 10px 10px;
  color: #FFFFFF !important;
  cursor: pointer;
  position: relative;
  overflow: visible;
  box-shadow: 0 6px 20px rgba(0, 87, 183, 0.45);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, box-shadow 0.2s ease;
}

.floating-phone-btn:hover {
  transform: translateX(4px);
  background: linear-gradient(135deg, #0066D6 0%, #004BA6 100%);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

.floating-phone-btn:active {
  transform: scale(0.96) translateX(2px);
}

.floating-phone-icon {
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: phoneBadgeJiggle 3.2s ease-in-out infinite;
}

@keyframes phoneBadgeJiggle {
  0%, 80%, 100% {
    transform: rotate(0deg) scale(1);
  }
  85% {
    transform: rotate(-12deg) scale(1.14);
  }
  90% {
    transform: rotate(10deg) scale(1.14);
  }
  95% {
    transform: rotate(-6deg) scale(1.08);
  }
}

.floating-phone-label {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.floating-phone-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #FDE047 !important;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.floating-phone-sub {
  font-size: 9.5px;
  font-weight: 600;
  color: #E2E8F0 !important;
  opacity: 0.9;
  white-space: nowrap;
}

.floating-phone-pulse {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 9px;
  height: 9px;
  background: #10B981;
  border: 1.5px solid #FFFFFF;
  border-radius: 50%;
  animation: pulseDot 2s infinite;
}

@media (max-width: 480px) {
  .floating-phone-btn {
    padding: 8px 10px 8px 8px;
    border-radius: 0 14px 14px 0;
  }
  .floating-phone-icon {
    font-size: 20px;
  }
  .floating-phone-title {
    font-size: 10.5px;
  }
  .floating-phone-sub {
    font-size: 8.5px;
  }
}

.phone-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 215, 0, 0.14);
  border: 1px solid rgba(255, 215, 0, 0.35);
  color: #FDE047;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: pulseGlow 1.5s infinite;
}

.phone-modal-title {
  font-size: clamp(16px, 4vw, 20px);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
  margin: 0 0 8px;
}

.phone-modal-subtitle {
  font-size: 13px;
  color: #94A3C4;
  line-height: 1.45;
  margin: 0 0 16px;
}

.phone-input-wrap {
  display: flex;
  align-items: center;
  background: #081226;
  border: 1.5px solid #2563EB;
  border-radius: 14px;
  padding: 4px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 6px;
}

.phone-input-wrap:focus-within {
  border-color: #FFD700;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.25);
}

.phone-flag-prefix {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 17px;
  color: #FFFFFF;
  padding-right: 4px;
  border-right: none;
  flex-shrink: 0;
  user-select: none;
}

.phone-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 17px;
  font-weight: 700;
  color: #FFFFFF;
  padding: 12px 2px;
  letter-spacing: 0.5px;
  min-width: 0;
}

.phone-input::placeholder {
  color: #64748B;
  font-weight: 500;
}

.phone-input-error {
  font-size: 11px;
  color: #F87171;
  margin-bottom: 10px;
  font-weight: 600;
}

.phone-guarantee-banner,
.phone-ssl-security-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(6, 78, 59, 0.22) 100%);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 10px 0 14px;
  text-align: left;
}

.phone-guarantee-icon,
.phone-ssl-icon {
  font-size: 16px;
  color: #10B981;
  flex-shrink: 0;
  line-height: 1.3;
}

.phone-guarantee-text,
.phone-ssl-text {
  font-size: 12px;
  color: #E2E8F0;
  line-height: 1.42;
}

.phone-guarantee-text strong,
.phone-ssl-text strong {
  color: #34D399;
  font-weight: 700;
}

.btn-phone-submit {
  width: 100%;
  background: linear-gradient(135deg, #FFD700 0%, #F59E0B 100%);
  color: #0A1633 !important;
  font-size: 14.5px;
  font-weight: 900;
  padding: 14px 18px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  margin-top: 6px;
}

.btn-phone-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6);
}

.btn-phone-submit:active {
  transform: scale(0.98);
}

.phone-trust-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
  color: #94A3B8;
  font-weight: 600;
}
.phone-trust-strip .trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap !important;
  color: #10B981;
  background: rgba(255, 255, 255, 0.04);
  padding: 7px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.phone-trust-strip .trust-item span {
  color: #CBD5E1;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap !important;
}

@media (min-width: 480px) {
  .phone-trust-strip {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
}

/* SCAN ANIMATION */
.scan-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 12px;
}

.scan-pulse-ring {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(0, 87, 183, 0.2);
  border: 2px solid #FFD700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  animation: pulseRing 1.2s infinite ease-in-out;
}
.scan-icon-center {
  font-size: 28px;
}
@keyframes pulseRing {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.6); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 16px rgba(255, 215, 0, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

.scan-title {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 14px;
}

.scan-progress-bar {
  width: 100%;
  max-width: 320px;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.scan-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2563EB, #10B981, #FFD700);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.scan-subtext {
  font-size: 12px;
  color: #94A3B8;
  margin: 0;
}

.scan-live-feed {
  width: 100%;
  max-width: 340px;
  max-height: 195px;
  overflow-y: auto;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
.scan-live-feed::-webkit-scrollbar {
  width: 4px;
}
.scan-live-feed::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}

.scan-feed-item {
  font-size: 11.5px;
  color: #CBD5E1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  animation: fadeInScanItem 0.2s ease-out forwards;
  transition: all 0.2s ease;
}

.scan-feed-item .feed-lender-name {
  font-weight: 700;
  color: #FFFFFF;
}

.scan-feed-item .feed-status-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

.scan-feed-item.status-pending {
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.08);
}
.scan-feed-item.status-pending .feed-status-badge {
  color: #93C5FD;
  background: rgba(59, 130, 246, 0.2);
}

.scan-feed-item.status-approved {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.07);
}
.scan-feed-item.status-approved .feed-status-badge {
  color: #34D399;
  background: rgba(16, 185, 129, 0.2);
}

.scan-feed-item.highlight-100 {
  border-color: rgba(255, 215, 0, 0.5);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.12) 0%, rgba(16, 185, 129, 0.08) 100%);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.15);
}
.scan-feed-item.highlight-100 .feed-status-badge {
  color: #FDE047;
  background: rgba(255, 215, 0, 0.25);
  font-weight: 800;
}

.scan-feed-item.status-rejected {
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.06);
  opacity: 0.75;
}
.scan-feed-item.status-rejected .feed-lender-name {
  color: #94A3B8;
  text-decoration: line-through;
}
.scan-feed-item.status-rejected .feed-status-badge {
  color: #F87171;
  background: rgba(239, 68, 68, 0.2);
}

@keyframes fadeInScanItem {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* RESULTS SCREEN */
.results-header {
  text-align: center;
  margin-bottom: 10px;
}
.results-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.22) 0%, rgba(16, 185, 129, 0.25) 100%);
  border: 1.5px solid #FFD700;
  color: #FFD700;
  font-size: 11.5px;
  font-weight: 900;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 8px;
  letter-spacing: 0.4px;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.35);
  animation: pulseGoldBadge 2.2s infinite ease-in-out;
}
@keyframes pulseGoldBadge {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }
  50% { box-shadow: 0 0 18px rgba(255, 215, 0, 0.65); transform: scale(1.02); }
}
.results-title {
  font-size: clamp(18px, 4.2vw, 22px);
  font-weight: 900;
  color: #FFFFFF;
  margin: 0 0 6px;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.results-advice {
  font-size: 13px;
  color: #E2E8F0;
  line-height: 1.45;
  margin: 0 0 8px;
}
.results-advice strong {
  color: #34D399;
}
.results-timer-strip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px dashed #F59E0B;
  color: #FCD34D;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  margin-bottom: 4px;
}

/* ==================== SUMMARY TABLE IN RESULTS MODAL ==================== */
.modal-summary-table-wrap {
  margin-top: 10px;
  background: rgba(10, 18, 36, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 8px 8px 10px;
}

.modal-summary-table-header {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.95fr;
  align-items: center;
  padding: 4px 8px 6px;
  font-size: 10.5px;
  font-weight: 800;
  color: #94A3C4;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 6px;
}
.modal-summary-table-header .col-limit {
  text-align: center;
}
.modal-summary-table-header .col-status {
  text-align: right;
}

.modal-summary-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 44vh;
  overflow-y: auto;
  padding-right: 2px;
}

.modal-summary-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.95fr;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 9px;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.modal-summary-row:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(255, 215, 0, 0.4);
  transform: translateY(-1px);
}
.modal-summary-row.row-winner {
  border: 1.5px solid #FFD700 !important;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.18) 0%, rgba(16, 185, 129, 0.12) 100%) !important;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.25) !important;
}

.cell-partner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.summary-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #FFFFFF;
}
.summary-logo-placeholder {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #0057B7;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.partner-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.partner-name {
  font-size: 13px;
  font-weight: 900;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.partner-tag {
  font-size: 9.5px;
  color: #94A3C4;
  font-weight: 600;
}
.row-winner .partner-tag {
  color: #FCD34D;
  font-weight: 800;
}

.cell-limit {
  display: flex;
  flex-direction: column;
  text-align: center;
  min-width: 0;
}
.limit-amount {
  font-size: 12px;
  font-weight: 800;
  color: #FCD34D;
  white-space: nowrap;
}
.limit-rate {
  font-size: 10px;
  color: #34D399;
  font-weight: 700;
  white-space: nowrap;
}

.cell-status {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}
.summary-status-pill {
  font-size: 10px;
  font-weight: 900;
  padding: 3px 7px;
  border-radius: 6px;
  white-space: nowrap;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.summary-status-pill.chance-100 {
  background: linear-gradient(135deg, #FFD700 0%, #F59E0B 100%);
  color: #07152B;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.45);
}
.summary-status-pill.chance-99 {
  background: rgba(16, 185, 129, 0.22);
  border: 1px solid #10B981;
  color: #34D399;
}
.summary-status-pill.chance-97 {
  background: rgba(59, 130, 246, 0.22);
  border: 1px solid #3B82F6;
  color: #60A5FA;
}
@keyframes pulseGoldBtn {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 16px rgba(245, 158, 11, 0.6); }
  50% { transform: scale(1.03); box-shadow: 0 6px 22px rgba(255, 215, 0, 0.85); }
}

.results-guarantee-note {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 10px;
  padding: 8px 12px;
  margin-top: 10px;
  font-size: 11.5px;
  color: #D1FAE5;
  line-height: 1.4;
  text-align: center;
}

.results-footer-actions {
  margin-top: 12px;
  text-align: center;
}

/* ==================== СВЯТКОВИЙ САЛЮТ ТА PWA-ГЕЙТ В МОДАЛЦІ ==================== */
.fireworks-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  border-radius: 20px;
}

.results-congrats-wrap {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4px 0;
}

.results-title-congrats {
  font-size: clamp(17px, 4.2vw, 21px);
  font-weight: 900;
  color: #FFFFFF;
  margin: 0 0 8px;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.results-sub-congrats {
  font-size: 13px;
  color: #E2E8F0;
  line-height: 1.45;
  margin: 0 0 14px;
}
.results-sub-congrats strong {
  color: #FCD34D;
}

/* ДВІ НЕЙТРАЛЬНІ СХВАЛЕНІ ОРГАНІЗАЦІЇ */
.approved-partners-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.approved-partner-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  text-align: left;
}
.approved-partner-chip.chip-gold {
  border-color: #F59E0B;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(217, 119, 6, 0.08) 100%);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}
.approved-partner-chip.chip-emerald {
  border-color: #10B981;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16) 0%, rgba(5, 150, 105, 0.08) 100%);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.approved-partner-chip .chip-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.approved-partner-chip .chip-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.approved-partner-chip .chip-title {
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.approved-partner-chip .chip-sub {
  font-size: 11px;
  color: #CBD5E1;
  font-weight: 600;
}
.approved-partner-chip .chip-status {
  font-size: 10.5px;
  font-weight: 900;
  color: #07152B;
  background: linear-gradient(135deg, #FFD700 0%, #F59E0B 100%);
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

/* БЛОК ОБОВ'ЯЗКОВОГО ВСТАНОВЛЕННЯ ДОДАТКУ (PWA GATE) */
.pwa-install-gate-block {
  background: rgba(10, 20, 42, 0.75);
  border: 1.5px solid rgba(59, 130, 246, 0.35);
  border-radius: 16px;
  padding: 14px 14px 12px;
  text-align: center;
}

.gate-notice-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 10px;
  padding: 9px 12px;
  margin-bottom: 12px;
  text-align: left;
}
.gate-notice-icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1.2;
}
.gate-notice-text {
  font-size: 12px;
  color: #E2E8F0;
  line-height: 1.45;
}
.gate-notice-text strong {
  color: #60A5FA;
}

.btn-gate-install-pwa {
  width: 100%;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 50%, #1E40AF 100%) !important;
  color: #FFFFFF !important;
  border: 2px solid #60A5FA !important;
  border-radius: 14px !important;
  padding: 13px 16px !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5) !important;
  transition: all 0.2s ease;
  animation: pulseInstallBtn 2.2s infinite ease-in-out;
}
@keyframes pulseInstallBtn {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 16px rgba(37, 99, 235, 0.5); }
  50% { transform: scale(1.02); box-shadow: 0 8px 24px rgba(96, 165, 250, 0.7); }
}

.btn-gate-install-pwa:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(37, 99, 235, 0.7) !important;
}
.btn-gate-install-pwa:active {
  transform: scale(0.98);
}

/* Коли додаток вже встановлено — зелена кнопка прямого переходу до схвалених офферів */
.btn-gate-install-pwa.btn-gate-installed-ready {
  background: linear-gradient(135deg, #10B981 0%, #059669 50%, #047857 100%) !important;
  border-color: #34D399 !important;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.5) !important;
}
.btn-gate-install-pwa.btn-gate-installed-ready:hover {
  background: linear-gradient(135deg, #34D399 0%, #10B981 100%) !important;
  box-shadow: 0 8px 28px rgba(16, 185, 129, 0.75) !important;
}

.btn-gate-icon {
  font-size: 22px;
  flex-shrink: 0;
}
.btn-gate-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.btn-gate-title {
  font-size: 14px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: 0.2px;
  line-height: 1.2;
}
.btn-gate-sub {
  font-size: 10.5px;
  font-weight: 600;
  color: #BFDBFE;
  opacity: 0.95;
  margin-top: 2px;
}

.gate-security-badge {
  margin-top: 9px;
  font-size: 11px;
  color: #94A3C4;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* Кнопка підтвердження встановлення в інструкції iOS */
.btn-ios-installed-confirm {
  width: 100%;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  color: #FFFFFF !important;
  border: 1.5px solid #34D399 !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  cursor: pointer;
  margin-top: 10px;
  margin-bottom: 6px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  transition: all 0.25s ease;
}

.btn-ios-installed-confirm.locked {
  background: #334155 !important;
  border-color: #475569 !important;
  color: #94A3B8 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  opacity: 0.85;
}

.btn-ios-installed-confirm.ready {
  animation: pulseGreenReady 2s infinite ease-in-out;
}

@keyframes pulseGreenReady {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4); }
  50% { transform: scale(1.02); box-shadow: 0 6px 20px rgba(52, 211, 153, 0.65); }
}

.btn-ios-installed-confirm.shake {
  animation: buttonShake 0.4s ease-in-out !important;
}

@keyframes buttonShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.btn-ios-installed-confirm:not(.locked):hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  transform: translateY(-1px);
}

.btn-claim-my-offers {
  width: 100%;
  background: linear-gradient(135deg, #10B981 0%, #059669 50%, #047857 100%) !important;
  color: #FFFFFF !important;
  padding: 14px 20px !important;
  border-radius: 16px !important;
  border: 2px solid #34D399 !important;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: all 0.2s ease;
}
.btn-claim-my-offers:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.7) !important;
}
.btn-claim-my-offers:active {
  transform: scale(0.98);
}
.btn-claim-title {
  font-size: 16px !important;
  font-weight: 900 !important;
  letter-spacing: 0.3px !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.btn-claim-subtitle {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #D1FAE5 !important;
  opacity: 0.95;
}

.filter-tab.filter-tab-approved {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.5);
  color: #34D399;
  font-weight: 800;
}
.filter-tab.filter-tab-approved.active {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  color: #FFFFFF !important;
  border-color: #10B981 !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.offer-card .btn-cta.btn-cta-approved-mode {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
}
.offer-card .btn-cta.btn-cta-approved-mode:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.55);
}
.personal-guarantee-100 {
  background: #FEF3C7 !important;
  color: #92400E !important;
  border: 1px solid #F59E0B !important;
  padding: 1px 5px !important;
  border-radius: 4px !important;
  font-weight: 800 !important;
  font-size: 10px !important;
  letter-spacing: 0.1px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  line-height: 1.2 !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.personal-chance-pill {
  background: #ECFDF5 !important;
  color: #065F46 !important;
  border: 1px solid #10B981 !important;
  padding: 1px 5px !important;
  border-radius: 4px !important;
  font-weight: 800 !important;
  font-size: 10px !important;
  letter-spacing: 0.1px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  line-height: 1.2 !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

[data-theme="dark"] .personal-guarantee-100 {
  background: rgba(255, 215, 0, 0.2) !important;
  color: #FDE047 !important;
  border-color: rgba(255, 215, 0, 0.45) !important;
}

[data-theme="dark"] .personal-chance-pill {
  background: rgba(16, 185, 129, 0.2) !important;
  color: #34D399 !important;
  border-color: rgba(16, 185, 129, 0.45) !important;
}

@media (max-width: 480px) {
  .offer-card {
    padding: 12px 14px !important;
  }
  .offer-card.top-card {
    padding-top: 34px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .offer-card-top-compact {
    gap: 6px !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
  }
  .brand-left-group {
    gap: 8px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
  }
  .brand-left-group .brand-avatar {
    width: 38px !important;
    height: 38px !important;
    flex-shrink: 0 !important;
  }
  .brand-left-group .brand-name {
    font-family: 'Oswald', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.35px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .brand-left-group .brand-rating {
    font-size: 10.5px !important;
    gap: 3px !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .brand-left-group .brand-rating .votes-cnt {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .compact-offer-tag {
    font-size: 9.5px !important;
    padding: 2.5px 6px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    line-height: 1.2 !important;
    max-width: 105px !important;
  }
  .btn-fav-heart {
    width: 26px !important;
    height: 26px !important;
    flex-shrink: 0 !important;
  }
  .brand-right-badge {
    gap: 5px !important;
    flex-shrink: 0 !important;
  }
  .btn-tap-icon,
  .btn-cash-pack {
    right: 10px !important;
  }
  .btn-tap-icon-img,
  .btn-cash-pack-img {
    width: 32px !important;
    height: 32px !important;
  }
}




/* ==================== CALCULATOR & MOBILE RESPONSIVENESS FIX ==================== */
.calc-group,
#screen-calculator .calc-group {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.calc-label-row,
#screen-calculator .calc-label-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: baseline !important;
  width: 100% !important;
  min-width: 0 !important;
  gap: 8px !important;
  box-sizing: border-box !important;
}

.calc-value-display,
#screen-calculator .calc-value-display {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  text-align: right !important;
  color: #0057B7 !important;
  letter-spacing: -0.01em !important;
}

.calc-label,
#screen-calculator .calc-label {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #1E293B !important;
  white-space: nowrap !important;
  flex-shrink: 1 !important;
}

.calc-chips-grid-4 {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 6px !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  margin-top: 6px !important;
}

.calc-chips-grid-4 .amount-chip,
.calc-chips-grid-4 .days-chip {
  width: 100% !important;
  min-width: 0 !important;
  padding: 8px 2px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-align: center !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  border-radius: 8px !important;
}

@media (max-width: 480px) {
  .header-actions {
    gap: 4px !important;
  }
  .btn-pwa-header {
    padding: 5px 8px !important;
    font-size: 11px !important;
  }
  .promo-filter-btn {
    padding: 5px 7px !important;
    font-size: 11px !important;
  }
  .brand-identity {
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }
  .brand-title {
    font-size: 15px !important;
  }
}


/* Header logo fit fix for mobile */
@media (max-width: 480px) {
  .header-actions {
    gap: 4px !important;
    flex-shrink: 0 !important;
  }
  .btn-header-push {
    padding: 5px 7px !important;
    font-size: 11px !important;
  }
  .btn-pwa-header {
    padding: 5px 8px !important;
    font-size: 11px !important;
  }
  .brand-identity {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    gap: 6px !important;
  }
  .brand-title {
    font-size: 14.5px !important;
    letter-spacing: -0.3px !important;
  }
  .badge-247 {
    font-size: 9px !important;
    padding: 1px 4px !important;
  }
}
@media (max-width: 395px) {
  .header-push-text {
    font-size: 10px !important;
  }
  .btn-header-push {
    padding: 4px 6px !important;
  }
  .btn-pwa-header {
    padding: 4px 6px !important;
  }
  .brand-title {
    font-size: 14px !important;
  }
}


/* Final micro-polish for < 400px mobile */
@media (max-width: 400px) {
  .btn-header-push {
    padding: 3px 5px !important;
    font-size: 10px !important;
  }
  .btn-pwa-header {
    padding: 3px 6px !important;
    font-size: 10.5px !important;
  }
  .badge-247 {
    font-size: 8px !important;
    padding: 1px 3px !important;
    margin-left: 1px !important;
  }
  .brand-title {
    font-size: 13.5px !important;
  }
  .calc-kpi-title {
    font-size: 8.5px !important;
    letter-spacing: 0 !important;
  }
  .calc-kpi-badge {
    font-size: 8px !important;
    padding: 1px 3px !important;
  }
}


/* Ultra-clean mobile KPI cards & header room */
@media (max-width: 450px) {
  .header-push-text {
    display: none !important;
  }
  .btn-header-push {
    padding: 5px 8px !important;
  }
  .btn-pwa-header span {
    display: inline !important;
    font-size: 11px !important;
  }
  .brand-title {
    font-size: 14.5px !important;
  }
  .badge-247 {
    font-size: 9px !important;
    padding: 1px 4px !important;
  }
  .calc-kpi-header {
    flex-wrap: wrap !important;
    gap: 2px !important;
    margin-bottom: 2px !important;
  }
  .calc-kpi-title {
    font-size: 9.5px !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
  .calc-kpi-badge {
    font-size: 8px !important;
    padding: 1px 3px !important;
  }
}


/* Unified Calculator CTA inside card (eliminates detached dark gap on tall phones) */
.calc-sticky-cta-wrap,
#screen-calculator .calc-sticky-cta-wrap {
  position: static !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  z-index: 10 !important;
  padding: 0 !important;
  margin-top: 14px !important;
  width: 100% !important;
  display: block !important;
  pointer-events: auto !important;
}

.btn-calc-cta-sticky,
#screen-calculator .btn-calc-cta-sticky {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

#screen-calculator {
  padding-bottom: 30px !important;
}


/* ==================== CALCULATOR RESPONSIVE STYLING ==================== */
/* Mobile: massive centered amount, compact side-by-side term */
@media (max-width: 768px) {
  #screen-calculator .calculator-hero-card {
    padding: 12px 14px 14px !important;
    gap: 8px !important;
  }

  #screen-calculator .hero-top-info {
    margin-bottom: 4px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  #screen-calculator .promo-pill {
    margin-bottom: 2px !important;
    padding: 4px 10px !important;
    font-size: 11.5px !important;
  }

  #screen-calculator .hero-heading {
    font-size: 20px !important;
    font-weight: 900 !important;
    margin: 2px 0 0 !important;
    line-height: 1.35 !important;
    padding-bottom: 4px !important;
    text-align: center !important;
  }

  /* Amount: Centered, 2x huge, fits 100 000 ₴ edge to edge */
  #screen-calculator .calc-group-amount .calc-label-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    margin-bottom: 0 !important;
  }

  #screen-calculator .calc-group-amount .calc-label {
    display: none !important;
  }

  #screen-calculator .calc-group-amount .quick-calc-value-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
  }

  #screen-calculator .calc-group-amount .quick-calc-optimal-badge {
    display: inline-flex !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    padding: 3px 12px !important;
    border-radius: 999px !important;
    margin: 4px 0 10px !important;
    align-self: center !important;
  }

  #screen-calculator .calc-group {
    gap: 5px !important;
  }

  #screen-calculator #display-amount {
    font-size: clamp(52px, 14.5vw, 68px) !important;
    font-weight: 900 !important;
    color: #0057B7 !important;
    line-height: 0.92 !important;
    text-align: center !important;
    letter-spacing: -0.04em !important;
    white-space: nowrap !important;
    margin: 2px 0 8px !important;
    display: block !important;
    width: 100% !important;
    transform: scaleY(1.32) !important;
    transform-origin: center center !important;
    text-shadow: 0 4px 18px rgba(0, 87, 183, 0.22) !important;
  }

  #screen-calculator .chips-row {
    gap: 4px !important;
    margin-top: 2px !important;
  }

  #screen-calculator .chips-row button {
    padding: 5px 8px !important;
    font-size: 12.5px !important;
  }

  #screen-calculator .calc-results-panel {
    margin: 8px 0 10px !important;
    gap: 6px !important;
  }

  #screen-calculator .calc-sticky-cta-wrap {
    margin-top: 4px !important;
  }

  #screen-calculator .btn-calc-cta {
    padding: 13px 16px !important;
    font-size: 15px !important;
  }

  /* Term: Compact size on the side, exactly as before */
  #screen-calculator .calc-group-days .calc-label-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    text-align: left !important;
    width: 100% !important;
    margin-bottom: 6px !important;
  }

  #screen-calculator .calc-group-days .calc-label {
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    color: #1E293B !important;
    text-align: left !important;
    margin: 0 !important;
  }

  #screen-calculator #display-days {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #0057B7 !important;
    text-align: right !important;
    margin: 0 !important;
    display: inline-block !important;
    width: auto !important;
    letter-spacing: -0.01em !important;
    text-shadow: none !important;
  }
}

/* Desktop: restored exactly as was originally */
@media (min-width: 769px) {
  #screen-calculator .hero-top-info {
    text-align: left !important;
    align-items: flex-start !important;
    margin-bottom: 12px !important;
    display: block !important;
  }

  #screen-calculator .hero-heading {
    text-align: left !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    margin: 0 0 6px !important;
  }

  #screen-calculator .calc-label-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    text-align: left !important;
    width: 100% !important;
    margin-bottom: 6px !important;
  }

  #screen-calculator .calc-group-amount .calc-label-row {
    align-items: center !important;
  }

  #screen-calculator .calc-group-amount .calc-label {
    display: inline-block !important;
  }

  #screen-calculator .calc-group-amount .quick-calc-value-wrap {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    width: auto !important;
  }

  #screen-calculator .calc-group-amount .quick-calc-optimal-badge {
    margin: 0 !important;
    font-size: 11px !important;
    padding: 2.5px 8px !important;
  }

  #screen-calculator .calc-label {
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    color: #1E293B !important;
    text-align: left !important;
    margin: 0 !important;
  }

  #screen-calculator #display-amount,
  #screen-calculator #display-days {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #0057B7 !important;
    text-align: right !important;
    margin: 0 !important;
    display: inline-block !important;
    width: auto !important;
    letter-spacing: -0.01em !important;
    text-shadow: none !important;
    line-height: normal !important;
  }
}

/* ==================== ЕКРАН ДОЖИМУ ПІСЛЯ КЛІКУ (OFFER WALL 2.0) ==================== */
.reserve-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(6, 11, 25, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.reserve-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.reserve-modal-card {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #0F1D32 0%, #0A1322 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(16, 185, 129, 0.15);
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.reserve-modal-backdrop.open .reserve-modal-card {
  transform: translateY(0) scale(1);
}
.btn-reserve-modal-close {
  position: absolute;
  top: 14px;
  left: 14px;
  right: auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94A3B8;
  font-size: 1rem;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.reserve-modal-backdrop.open .btn-reserve-modal-close {
  animation: reserveAntiReflexClose 5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes reserveAntiReflexClose {
  0%, 75% {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.6);
  }
  100% {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
  }
}
.btn-reserve-modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #EF4444;
  border-color: #EF4444;
}
.reserve-modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding-left: 36px;
}
.reserve-icon-burst {
  font-size: 2.2rem;
  flex-shrink: 0;
  animation: bounceBurst 1.8s infinite ease-in-out;
}
@keyframes bounceBurst {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.1); }
}
.reserve-badge {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34D399;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 4px;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.reserve-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
}
.reserve-alert-box {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  color: #FEF3C7;
  font-size: 0.82rem;
  line-height: 1.45;
}
.reserve-alert-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}
.reserve-offers-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.reserve-card-item {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s ease;
}
.reserve-card-item:hover {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(15, 23, 42, 0.95);
  transform: translateY(-1px);
}
.reserve-card-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.reserve-card-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #FFFFFF;
  padding: 4px;
  object-fit: contain;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.reserve-card-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.reserve-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.reserve-card-name {
  font-weight: 800;
  color: #FFFFFF;
  font-size: 0.96rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reserve-card-tag {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34D399;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
}
.reserve-card-sub {
  font-size: 0.74rem;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.reserve-card-approval {
  color: #10B981;
  font-weight: 700;
}
.reserve-card-dot {
  color: #475569;
}
.btn-reserve-apply {
  padding: 10px 16px;
  background: linear-gradient(135deg, #059669 0%, #10B981 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 9px;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-reserve-apply:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5);
}
.btn-reserve-arrow {
  font-size: 1rem;
  transition: transform 0.2s ease;
}
.btn-reserve-apply:hover .btn-reserve-arrow {
  transform: translateX(2px);
}
.reserve-modal-footer {
  text-align: center;
}
.btn-reserve-back {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94A3B8;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s ease;
}
.btn-reserve-back:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Адаптив для iPhone та Android (Samsung Galaxy тощо) */
@media (max-width: 520px) {
  .reserve-modal-backdrop {
    padding: 12px;
  }
  .reserve-modal-card {
    padding: 18px 14px 14px;
    border-radius: 16px;
    max-height: 92vh;
  }
  .reserve-modal-header {
    gap: 10px;
    margin-bottom: 12px;
    padding-left: 34px;
    padding-right: 0;
  }
  .reserve-icon-burst {
    font-size: 1.8rem;
  }
  .reserve-title {
    font-size: 1.05rem;
    line-height: 1.3;
  }
  .btn-reserve-modal-close {
    top: 10px;
    left: 10px;
    right: auto;
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }
  .reserve-alert-box {
    padding: 10px 12px;
    font-size: 0.76rem;
    gap: 8px;
    margin-bottom: 12px;
    border-radius: 10px;
    line-height: 1.4;
  }
  .reserve-offers-list {
    gap: 10px;
    margin-bottom: 12px;
  }
  .reserve-card-item {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
  }
  .reserve-card-info {
    width: 100%;
    gap: 10px;
  }
  .reserve-card-logo {
    width: 38px;
    height: 38px;
    border-radius: 8px;
  }
  .reserve-card-name {
    font-size: 0.95rem;
  }
  .reserve-card-sub {
    font-size: 0.72rem;
  }
  .btn-reserve-apply {
    width: 100%;
    justify-content: center;
    padding: 11px 16px;
    font-size: 0.88rem;
    border-radius: 10px;
    box-sizing: border-box;
  }
  .btn-reserve-back {
    padding: 10px 14px;
    font-size: 0.82rem;
  }
}

/* ==================== ПЛАВАЮЧА ПЛАШКА МУЛЬТИ-ЗАЯВКИ (MULTI-APPLY STICKY BAR) ==================== */
.multi-apply-sticky-banner {
  margin: 12px 0 16px;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.85) 0%, rgba(13, 148, 136, 0.85) 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.multi-apply-content {
  display: flex;
  align-items: center;
  gap: 12px;
}
.multi-apply-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}
.multi-apply-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 2px;
}
.multi-apply-desc {
  font-size: 0.78rem;
  color: #BAE6FD;
}
.btn-multi-apply-action {
  padding: 10px 18px;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
  transition: transform 0.15s ease;
}
.btn-multi-apply-action:hover {
  transform: scale(1.04);
}
@media (max-width: 640px) {
  .multi-apply-sticky-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    padding: 12px;
  }
  .btn-multi-apply-action {
    width: 100%;
    text-align: center;
  }
}

/* ==================== SHOWCASE QUICK CALC BAR (SCREEN 1) ==================== */
.showcase-quick-calc-bar {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 12px 14px;
  margin: 10px 12px 14px 12px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 87, 183, 0.12);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-sizing: border-box;
  animation: fadeIn 0.3s ease;
}
[data-theme="dark"] .showcase-quick-calc-bar {
  background: #1E293B;
  border-color: #334155;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
}
.quick-calc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.quick-calc-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #1E293B;
}
[data-theme="dark"] .quick-calc-title {
  color: #F8FAFC;
}
.quick-calc-icon {
  font-size: 16px;
}
.quick-calc-value-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.quick-calc-val {
  font-size: 17px;
  font-weight: 900;
  color: #0057B7;
  letter-spacing: -0.4px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
[data-theme="dark"] .quick-calc-val {
  color: #38BDF8;
}
.quick-calc-optimal-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2.5px 8px;
  border-radius: 6px;
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
}
.quick-calc-optimal-badge.optimal-max {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}
.quick-calc-optimal-badge.optimal-high {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
}
.quick-calc-optimal-badge.optimal-limit {
  background: #FFF7ED;
  color: #C2410C;
  border: 1px solid #FFEDD5;
}
.quick-calc-slider-wrap {
  width: 100%;
  margin-bottom: 10px;
}
.showcase-range-slider {
  width: 100%;
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(90deg, #10B981 0%, #0057B7 100%);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  margin: 6px 0;
}
.showcase-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid #0057B7;
  box-shadow: 0 2px 8px rgba(0, 87, 183, 0.45);
  cursor: grab;
  transition: transform 0.1s ease;
}
.showcase-range-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.15);
}
.showcase-range-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid #0057B7;
  box-shadow: 0 2px 8px rgba(0, 87, 183, 0.45);
  cursor: grab;
}
.quick-calc-label-desktop {
  display: none;
}
.quick-calc-label-mobile {
  display: inline;
}
.quick-chip[data-desktop-only="true"] {
  display: none;
}
.quick-calc-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}
.quick-chip {
  padding: 7px 2px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 9px;
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
  color: #334155;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
@media (min-width: 641px) {
  .quick-calc-label-desktop {
    display: inline;
  }
  .quick-calc-label-mobile {
    display: none;
  }
  .quick-chip[data-desktop-only="true"] {
    display: block;
  }
  .quick-calc-chips {
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
  }
  .quick-chip {
    padding: 8px 4px;
    font-size: 13px;
  }
}
[data-theme="dark"] .quick-chip {
  background: #0F172A;
  border-color: #334155;
  color: #CBD5E1;
}
.quick-chip:hover {
  border-color: #0057B7;
  color: #0057B7;
}
.quick-chip:active {
  transform: scale(0.96);
}
.quick-chip.active {
  background: #0057B7 !important;
  color: #FFFFFF !important;
  border-color: #0057B7 !important;
  box-shadow: 0 2px 8px rgba(0, 87, 183, 0.35);
}

/* ==================== CARD APPROVAL GAUGE ==================== */
.card-approval-gauge {
  margin: 8px 0 6px 0;
  padding: 8px 12px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background 0.2s ease;
}
[data-theme="dark"] .card-approval-gauge {
  background: #0F172A;
  border-color: #1E293B;
}
.gauge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
}
.gauge-label-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #1E293B;
}
[data-theme="dark"] .gauge-label-wrap {
  color: #F1F5F9;
}
.gauge-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
  animation: gaugePulse 1.8s infinite ease-in-out;
}
@keyframes gaugePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.3); }
}
.gauge-label {
  font-size: 12px;
  font-weight: 700;
}
.gauge-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.gauge-badge .gauge-pct {
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.gauge-badge .gauge-desc {
  font-weight: 700;
  font-size: 11px;
}
.gauge-status-max {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}
.gauge-status-high {
  background: #F0FDF4;
  color: #15803D;
  border: 1px solid #BBF7D0;
}
.gauge-status-good {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
}
.gauge-status-limit {
  background: #FFF7ED;
  color: #C2410C;
  border: 1px solid #FFEDD5;
}
.gauge-track {
  width: 100%;
  height: 7px;
  background: #E2E8F0;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
[data-theme="dark"] .gauge-track {
  background: #334155;
}
.gauge-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
  position: relative;
  overflow: hidden;
}
.gauge-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
  animation: gaugeTrackShimmer 2.5s infinite linear;
}
@keyframes gaugeTrackShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

@media (max-width: 480px) {
  .showcase-quick-calc-bar {
    margin: 8px 10px 10px 10px;
    padding: 12px 12px;
  }
  .quick-calc-val {
    font-size: 17px;
  }
  .quick-calc-optimal-badge {
    font-size: 10px;
    padding: 2px 6px;
  }
  .quick-chip {
    padding: 5px 9px;
    font-size: 11px;
  }
  .card-approval-gauge {
    padding: 6px 10px;
  }
  .gauge-label {
    font-size: 11.5px;
  }
  .gauge-badge {
    font-size: 11px;
    padding: 1px 6px;
  }
}


/* ==================== EXIT-INTENT MODAL ==================== */
.exit-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10005;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  animation: fadeIn 0.25s ease;
}
.exit-modal-backdrop.open {
  display: flex !important;
}
.exit-modal-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #FFFFFF;
  border-radius: 22px;
  padding: 22px 20px 18px 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  animation: exitModalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  text-align: left;
}
@keyframes exitModalPop {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.btn-exit-modal-close {
  position: absolute;
  top: 14px;
  left: 14px;
  right: auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #475569;
  font-size: 15px;
  font-weight: 700;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.exit-modal-backdrop.open .btn-exit-modal-close {
  animation: exitAntiReflexClose 5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.exit-modal-backdrop.open .btn-exit-dismiss {
  animation: exitAntiReflexClose 5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes exitAntiReflexClose {
  0%, 75% {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.6);
  }
  100% {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
  }
}
.btn-exit-modal-close:hover {
  background: #E2E8F0;
  color: #0F172A;
  transform: scale(1.06);
}
.exit-alert-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ECFDF5;
  border: 1.5px solid #86EFAC;
  color: #047857;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  margin-left: 36px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}
.exit-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: exitPulseDotGreen 1.6s infinite;
}
@keyframes exitPulseDotGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}
.exit-modal-title {
  font-size: 16.5px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.35;
  margin: 0 0 14px 0;
}
.exit-highlight-amt {
  color: #0057B7;
  font-weight: 900;
}
.exit-highlight-rate {
  color: #16A34A;
  font-weight: 900;
}
.exit-highlight-name {
  color: #B45309;
  font-weight: 900;
}
.exit-highlight-guarantee {
  color: #DC2626;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.2px;
}
.exit-highlight-prob {
  color: #059669;
  font-weight: 900;
}
.exit-offer-card-preview {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.exit-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.exit-brand-avatar {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.exit-brand-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  box-sizing: border-box;
}
.exit-avatar-letter {
  font-size: 22px;
  font-weight: 900;
  color: #0057B7;
}
.exit-brand-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.exit-brand-name-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.exit-brand-name {
  font-size: 15px;
  font-weight: 800;
  color: #0F172A;
  white-space: nowrap;
}
.exit-verified-check {
  font-size: 11px;
  font-weight: 700;
  color: #16A34A;
  background: #DCFCE7;
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
}
.exit-status-pill {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 800;
  color: #B45309;
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  padding: 2px 8px;
  border-radius: 6px;
  width: fit-content;
  letter-spacing: 0.3px;
}
.exit-timer-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border: 1.5px dashed #F59E0B;
  border-radius: 12px;
  padding: 8px 12px;
}
.exit-timer-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #92400E;
}
.exit-timer-icon {
  font-size: 15px;
}
.exit-timer-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 18px;
  font-weight: 900;
  color: #047857;
  letter-spacing: 1px;
}
.exit-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}
.btn-exit-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: linear-gradient(135deg, #0057B7 0%, #0077EE 50%, #2563EB 100%);
  color: #FFFFFF !important;
  padding: 12px 16px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 87, 183, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
  cursor: pointer;
}
.btn-exit-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 87, 183, 0.5);
}
.btn-exit-text {
  font-size: 15.5px;
  font-weight: 900;
  letter-spacing: 0.2px;
  color: #FFFFFF;
}
.btn-exit-sub {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 2px;
}
.btn-exit-dismiss {
  background: none;
  border: none;
  color: #64748B;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 10px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
  text-align: center;
}
.btn-exit-dismiss:hover {
  color: #334155;
}

/* Dark mode for exit-intent modal */
[data-theme="dark"] .exit-modal-card {
  background: #1E293B;
  border-color: #334155;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
}
[data-theme="dark"] .btn-exit-modal-close {
  background: #334155;
  border-color: #475569;
  color: #E2E8F0;
}
[data-theme="dark"] .exit-modal-title {
  color: #F8FAFC;
}
[data-theme="dark"] .exit-highlight-guarantee {
  color: #F87171;
}
[data-theme="dark"] .exit-highlight-prob {
  color: #34D399;
}
[data-theme="dark"] .exit-offer-card-preview {
  background: #0F172A;
  border-color: #334155;
}
[data-theme="dark"] .exit-brand-avatar {
  background: #1E293B;
  border-color: #475569;
}
[data-theme="dark"] .exit-brand-name {
  color: #F8FAFC;
}
[data-theme="dark"] .exit-timer-box {
  background: rgba(245, 158, 11, 0.12);
  border-color: #D97706;
}
[data-theme="dark"] .exit-timer-left {
  color: #FDE68A;
}
[data-theme="dark"] .exit-alert-badge {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.45);
  color: #34D399;
}
[data-theme="dark"] .exit-timer-val {
  color: #34D399;
}
[data-theme="dark"] .btn-exit-dismiss {
  color: #94A3B8;
}
[data-theme="dark"] .btn-exit-dismiss:hover {
  color: #CBD5E1;
}

[data-theme="dark"] .push-emergency-badge {
  background: rgba(239, 68, 68, 0.15);
  border-color: #EF4444;
  color: #FCA5A5;
}
[data-theme="dark"] .push-pain-card {
  background: #0F172A;
  border-color: #334155;
}
[data-theme="dark"] .pain-item {
  color: #CBD5E1;
}
[data-theme="dark"] .pain-item strong {
  color: #F8FAFC;
}
[data-theme="dark"] .pain-item.solution strong {
  color: #34D399;
}
[data-theme="dark"] .push-purpose-box {
  background: rgba(30, 58, 138, 0.25);
  border-color: #3B82F6;
  color: #BFDBFE;
}
[data-theme="dark"] .purpose-text strong {
  color: #60A5FA;
}
