/* ================================================================
   СТИЛИ ЦЕНТРАЛЬНОГО БАНКА — добавь в конец app.css
   ================================================================ */

/* ── Герой-шапка ── */
.bank-hero {
  margin: 0 12px 12px;
  background: linear-gradient(145deg, #0a0a1a 0%, #0f1f3d 50%, #0a0a1a 100%);
  border-radius: 16px;
  padding: 24px 20px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(100,140,255,0.2);
  box-shadow: 0 8px 32px rgba(0,0,50,0.3);
}

/* Звёздный фон — чисто CSS, нет нагрузки */
.bank-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 20%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 50%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 10% 60%, rgba(255,255,255,0.2) 0%, transparent 100%);
  pointer-events: none;
}

/* Голубое свечение снизу */
.bank-hero::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 60px;
  background: rgba(80,120,255,0.15);
  border-radius: 50%;
  filter: blur(20px);
  pointer-events: none;
}

.bank-hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.bank-seal {
  font-size: 28px;
  filter: drop-shadow(0 0 8px rgba(150,180,255,0.5));
}

.bank-hero-txt {
  text-align: left;
}

.bank-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.bank-sub {
  font-size: 10px;
  color: rgba(150,180,255,0.7);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

.bank-decree {
  font-size: 10px;
  font-weight: 700;
  color: rgba(150,180,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.bank-rate-big {
  font-size: 64px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 12px;
  text-shadow: 0 0 30px rgba(100,160,255,0.4);
  position: relative;
  z-index: 1;
}

.bank-rate-pct {
  font-size: 28px;
  font-weight: 600;
  color: rgba(150,180,255,0.8);
  vertical-align: super;
}

.bank-zone-pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid;
  position: relative;
  z-index: 1;
}

/* ── Блок объяснения ── */
.bank-explain-card {
  margin: 0 12px 8px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.bank-explain-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 1px;
}

.bank-explain-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.bank-explain-body {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Заголовок секции ── */
.bank-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 12px;
  margin: 12px 0 6px;
}

/* ── Строка дрейфа цен ── */
.bank-effect-row {
  margin: 0 12px 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.bank-effect-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.bank-effect-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--txt);
  margin-bottom: 2px;
}

.bank-effect-sub {
  font-size: 11px;
  color: var(--muted);
}

.bank-effect-badge {
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}

/* ── Шкала ставки ── */
.bank-scale-card {
  margin: 0 12px 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.bank-scale-track {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-bottom: 10px;
}

.bank-scale-zone {
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
}

.bank-scale-zone span {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.8;
}

.green-z   { background: rgba(76,175,80,0.12); color: var(--green); }
.neutral-z { background: rgba(255,200,0,0.12); color: var(--gold); }
.red-z     { background: rgba(244,67,54,0.12); color: var(--red); }

.bank-scale-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  position: relative;
  margin-bottom: 6px;
}

.bank-scale-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease, background 0.4s ease;
}

.bank-scale-thumb {
  position: absolute;
  top: -6px;
  width: 20px;
  height: 20px;
  background: var(--white);
  border: 3px solid;
  border-radius: 50%;
  transition: left 0.6s ease, border-color 0.4s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.bank-scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  margin-top: 10px;
}

/* ── Шаги как работает комиссия ── */
.bank-info-card {
  margin: 0 12px 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.bank-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.bank-step:last-child { margin-bottom: 0; }

.bank-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue-bg, #e8f0ff);
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.bank-step-txt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Пример расчёта ── */
.bank-example-card {
  margin: 0 12px 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.bank-calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--muted);
}

.bank-calc-val { font-weight: 700; color: var(--txt); }
.red-val       { color: var(--red) !important; }

.bank-calc-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}
