/*
 * FINXO — Components
 * Ticker, Navbar, Cards, Buttons, Forms, Footer, etc.
 */

/* ============================================================
   TICKER
============================================================ */
.ticker {
  background: #090c12;
  border-bottom: 1px solid var(--bd);
  height: var(--ticker-h);
  overflow: hidden;
  display: flex;
  align-items: center;
  /* Тикер статичный — скроллится вместе со страницей */
  position: static;
  width: 100%;
  z-index: 400;
}
/* WordPress Admin Bar offset — только навбар смещаем вниз */
.admin-bar .nav {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .nav { top: 46px; }
}
.ticker-track {
  display: flex;
  animation: scroll-left 50s linear infinite;
  white-space: nowrap;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 20px;
  font-size: 11.5px;
  border-right: 1px solid var(--bd);
}
.tl { color: var(--text-m); }
.tv { color: var(--text-h); font-weight: 600; }
.tu { color: var(--green); font-size: 10.5px; }
.td { color: var(--red); font-size: 10.5px; }
.tn { color: var(--text-m); font-size: 10.5px; }

/* ============================================================
   NAVBAR
============================================================ */
.nav {
  /* Навбар sticky — прилипает к верху после скролла тикера */
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: rgba(15, 17, 23, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--bd);
}
.nav-in {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text-h);
  margin-right: 24px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo em { color: var(--blue); font-style: normal; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1px;
  flex: 1;
}
.nl {
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-b);
  transition: color var(--t), background var(--t);
  text-decoration: none;
}
.nl:hover { color: var(--text-h); background: rgba(255,255,255,.06); }
.nl.on { color: var(--text-h); background: rgba(255,255,255,.08); }
.nav-r {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.btn-ghost {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-b);
  transition: all var(--t);
}
.btn-ghost:hover { color: var(--text-h); background: rgba(255,255,255,.07); }
.btn-primary {
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  background: var(--blue);
  color: #fff;
  transition: background var(--t);
}
.btn-primary:hover { background: var(--blue-h); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  padding: 6px;
  color: var(--text-b);
  border-radius: 8px;
  transition: all var(--t);
}
.nav-toggle:hover { color: var(--text-h); background: rgba(255,255,255,.06); }
.nav-toggle svg { width: 20px; height: 20px; }

/* Mobile menu */
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--bd);
  gap: 4px;
}
.nav-mobile.open { display: flex; }
.nav-mobile .nl {
  padding: 8px 12px;
  font-size: 14px;
}
.nav-mobile-btns {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.nav-mobile-btns .btn-ghost,
.nav-mobile-btns .btn-primary {
  flex: 1;
  text-align: center;
  padding: 8px;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-r { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
}

/* ============================================================
   PAGE HERO
============================================================ */
.hero {
  background: linear-gradient(160deg, #131a2e 0%, #0f1117 60%);
  border-bottom: 1px solid var(--bd);
  padding: 32px 24px 28px;
}
.hero-in {
  max-width: var(--max-w);
  margin: 0 auto;
}
.bc {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-m);
  margin-bottom: 14px;
}
.bc a { color: var(--text-m); transition: color var(--t); }
.bc a:hover { color: var(--blue); }
.bc-sep { color: var(--bd-card); }
.hero-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.hero-left h1 {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.8px;
  color: var(--text-h);
  margin-bottom: 8px;
  line-height: 1.2;
}
.hero-left p {
  font-size: 14.5px;
  color: var(--text-b);
  max-width: 520px;
  line-height: 1.65;
}
.trust-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--bd-card);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-b);
}
.trust-item .ico { font-size: 14px; }
.trust-item.live {
  background: var(--green-dim);
  border-color: var(--green-bd);
  color: var(--green);
}
.trust-item.live::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: blink 2s infinite;
}

/* ============================================================
   CALCULATOR
============================================================ */
.calc-wrap {
  max-width: var(--max-w);
  margin: 20px auto 0;
  padding: 0 24px;
}
.calc {
  background: var(--bg-panel);
  border: 1px solid var(--bd-card);
  border-radius: var(--r-xl);
  padding: 22px 26px;
}
.calc-ttl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-m);
  margin-bottom: 16px;
}
.calc-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr 1fr auto;
  gap: 12px;
  align-items: end;
}
.cf label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--text-m);
  margin-bottom: 6px;
}
.cf input, .cf select {
  width: 100%;
  height: 44px;
  background: var(--bg-inner);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  color: var(--text-h);
  font-size: 14px;
  font-weight: 600;
  padding: 0 14px;
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
  appearance: none;
  -webkit-appearance: none;
}
.cf input:focus, .cf select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-dim);
}
.cf select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 34px;
  cursor: pointer;
}
.cf option { background: #151822; }
.calc-btn {
  height: 44px;
  padding: 0 28px;
  background: linear-gradient(135deg, #4f8ef7, #3b6fd4);
  color: #fff;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transition: opacity var(--t), transform .1s;
  box-shadow: 0 4px 16px rgba(79,142,247,0.35);
}
.calc-btn:hover { opacity: .9; }
.calc-btn:active { transform: scale(.97); }

/* ============================================================
   SLIDER PANEL
============================================================ */
.slider-wrap {
  max-width: var(--max-w);
  margin: 14px auto 0;
  padding: 0 24px;
}
.slider-panel {
  background: var(--bg-panel);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  padding: 16px 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.sl-field label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-m);
  text-transform: uppercase;
  letter-spacing: .7px;
  margin-bottom: 10px;
}
.sl-field label span { color: var(--text-h); font-size: 15px; font-weight: 800; }
.sl-field input[type=range] {
  width: 100%;
  height: 4px;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(to right, var(--blue) 0%, var(--blue) 40%, rgba(255,255,255,.1) 40%);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.sl-field input[type=range]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid #0f1117;
  box-shadow: 0 0 0 2px var(--blue);
  cursor: pointer;
}
.sl-marks {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
}
.sl-marks span { font-size: 11px; color: var(--text-m); }

/* ============================================================
   SIDEBAR
============================================================ */
.sb-panel {
  background: var(--bg-panel);
  border: 1px solid var(--bd-card);
  border-radius: var(--r-xl);
  padding: 20px 18px;
  margin-bottom: 12px;
}
.sb-ttl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-m);
  margin-bottom: 18px;
}
.fs { margin-bottom: 22px; }
.fs:last-child { margin-bottom: 0; }
.fs-ttl { font-size: 13px; font-weight: 700; color: var(--text-h); margin-bottom: 10px; }

/* Sidebar sliders */
.sb-slider { width: 100%; }
.sb-slider-vals {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.sb-slider-vals span { font-size: 12px; color: var(--text-b); font-weight: 500; }
.sb-slider-vals strong { color: var(--text-h); }
input[type=range].sb-range {
  width: 100%;
  height: 4px;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(to right, var(--blue) 0%, var(--blue) 60%, rgba(255,255,255,.1) 60%);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
input[type=range].sb-range::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue);
  border: 2.5px solid #151822;
  box-shadow: 0 0 0 2px var(--blue);
  cursor: pointer;
}

/* Checkboxes */
.chk-list { display: flex; flex-direction: column; gap: 6px; }
.chk {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  padding: 2px 0;
}
.chk input { display: none; }
.chk-box {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid var(--bd-card);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t);
}
.chk input:checked ~ .chk-box {
  background: var(--blue);
  border-color: var(--blue);
}
.chk input:checked ~ .chk-box::after {
  content: '';
  width: 9px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}
.chk-t { font-size: 13px; color: var(--text-b); }
.chk-n {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-m);
  background: rgba(255,255,255,.05);
  padding: 1px 7px;
  border-radius: 10px;
}
.btn-reset {
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-m);
  border: 1px solid var(--bd);
  background: transparent;
  transition: all var(--t);
  margin-top: 10px;
}
.btn-reset:hover { color: var(--text-b); border-color: var(--bd-card); }

/* AI panel in sidebar */
.ai-panel {
  background: linear-gradient(135deg, rgba(79,142,247,0.1), rgba(168,85,247,0.08));
  border: 1px solid rgba(79,142,247,0.25);
  border-radius: var(--r-xl);
  padding: 18px;
}
.ai-icon { font-size: 24px; margin-bottom: 8px; }
.ai-ttl { font-size: 14px; font-weight: 700; color: var(--text-h); margin-bottom: 6px; }
.ai-txt { font-size: 12.5px; color: var(--text-b); line-height: 1.6; margin-bottom: 14px; }
.ai-btn {
  width: 100%;
  padding: 9px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  transition: opacity var(--t);
}
.ai-btn:hover { opacity: .88; }

/* ============================================================
   TAGS & SORT
============================================================ */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.tag {
  padding: 6px 15px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid var(--bd);
  color: var(--text-b);
  background: transparent;
  transition: all var(--t);
  cursor: pointer;
}
.tag:hover { border-color: var(--bd-card); color: var(--text-h); background: rgba(255,255,255,.04); }
.tag.on { background: var(--blue-dim); border-color: var(--blue-bd); color: var(--blue); }
.cat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}
.cnt { font-size: 13px; color: var(--text-b); }
.cnt strong { color: var(--text-h); font-weight: 700; }
.sort-row { display: flex; align-items: center; gap: 4px; }
.sort-lbl { font-size: 12px; color: var(--text-m); margin-right: 4px; }
.sort-btn {
  padding: 5px 11px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-b);
  border: 1px solid transparent;
  transition: all var(--t);
}
.sort-btn:hover { color: var(--text-h); background: rgba(255,255,255,.05); }
.sort-btn.on { color: var(--blue); background: var(--blue-dim); border-color: var(--blue-bd); }

/* ============================================================
   CREDIT CARD v5
============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--bd-card);
  border-radius: var(--r-xl);
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
  transition: border-color var(--t-med), box-shadow var(--t-med), transform .15s;
}
.card:hover {
  border-color: var(--bd-hover);
  box-shadow: 0 4px 0 0 rgba(255,255,255,.04), 0 16px 48px rgba(0,0,0,.55);
  transform: translateY(-1px);
}
.card-top-bar {
  height: 3px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.bar-green { background: linear-gradient(90deg, var(--green), rgba(34,197,94,0)); }
.bar-blue  { background: linear-gradient(90deg, var(--blue),  rgba(79,142,247,0)); }
.bar-red   { background: linear-gradient(90deg, #ef4444, rgba(239,68,68,0)); }
.bar-amber { background: linear-gradient(90deg, var(--amber), rgba(245,158,11,0)); }
.card-body { padding: 24px 26px 20px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}
.b-best  { background: var(--green-dim); color: var(--green); border: 1px solid var(--green-bd); }
.b-new   { background: var(--blue-dim);  color: var(--blue);  border: 1px solid var(--blue-bd); }
.b-hot   { background: var(--red-dim);   color: var(--red);   border: 1px solid var(--red-bd); }
.b-fast  { background: rgba(168,85,247,.1); color: var(--purple); border: 1px solid rgba(168,85,247,.25); }
.card-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.bank-ava {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  flex-shrink: 0;
}
.ava-green { background: var(--green-dim); border: 1px solid var(--green-bd); color: var(--green); }
.ava-blue  { background: var(--blue-dim);  border: 1px solid var(--blue-bd);  color: var(--blue); }
.ava-red   { background: var(--red-dim);   border: 1px solid var(--red-bd);   color: var(--red); }
.ava-amber { background: var(--amber-dim); border: 1px solid var(--amber-bd); color: var(--amber); }
.ava-purple { background: rgba(168,85,247,.1); border: 1px solid rgba(168,85,247,.25); color: var(--purple); }
.bank-name { font-size: 16px; font-weight: 800; color: var(--text-h); margin-bottom: 3px; }
.bank-prod { font-size: 12.5px; color: var(--text-b); margin-bottom: 6px; }
.bank-stars { display: flex; align-items: center; gap: 6px; }
.stars { color: var(--amber); font-size: 13px; }
.star-v { font-size: 13px; font-weight: 700; color: var(--text-h); }
.star-c { font-size: 12px; color: var(--text-m); }
.card-main {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  margin-bottom: 20px;
  align-items: start;
}
.rate-block {
  background: var(--green-dim);
  border: 1px solid var(--green-bd);
  border-radius: var(--r-lg);
  padding: 16px 22px;
  text-align: center;
  min-width: 140px;
}
.rate-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--green); margin-bottom: 4px; }
.rate-val { font-size: 38px; font-weight: 900; color: var(--green); line-height: 1; letter-spacing: -1px; }
.rate-unit { font-size: 14px; font-weight: 600; color: var(--green); opacity: .8; margin-top: 2px; }
.rate-block.blue-rate { background: var(--blue-dim); border-color: var(--blue-bd); }
.rate-block.blue-rate .rate-lbl,
.rate-block.blue-rate .rate-val,
.rate-block.blue-rate .rate-unit { color: var(--blue); }
.rate-block.amber-rate { background: var(--amber-dim); border-color: var(--amber-bd); }
.rate-block.amber-rate .rate-lbl,
.rate-block.amber-rate .rate-val,
.rate-block.amber-rate .rate-unit { color: var(--amber); }
.params-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.param {
  background: var(--bg-inner);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  padding: 12px 14px;
}
.p-l { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--text-m); margin-bottom: 4px; }
.p-v { font-size: 16px; font-weight: 800; color: var(--text-h); line-height: 1.2; }
.p-s { font-size: 11px; color: var(--text-m); margin-top: 2px; }
.p-v.blue { color: var(--blue); }
.p-v.green { color: var(--green); }
.card-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.card-left { flex: 1; min-width: 0; }
.card-desc { font-size: 13.5px; color: var(--text-b); line-height: 1.65; margin-bottom: 12px; }
.feat-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.ft {
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid;
}
.ft-blue   { background: var(--blue-dim);  color: var(--blue);  border-color: var(--blue-bd); }
.ft-green  { background: var(--green-dim); color: var(--green); border-color: var(--green-bd); }
.ft-gray   { background: rgba(255,255,255,.05); color: var(--text-b); border-color: var(--bd); }
.ft-amber  { background: var(--amber-dim); color: var(--amber); border-color: var(--amber-bd); }
.ft-purple { background: rgba(168,85,247,.08); color: var(--purple); border-color: rgba(168,85,247,.2); }
.appr { display: flex; align-items: center; gap: 8px; }
.appr-l { font-size: 12px; color: var(--text-m); }
.appr-bar { width: 72px; height: 3px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; }
.appr-fill { height: 100%; border-radius: 2px; background: var(--green); }
.appr-t { font-size: 12px; font-weight: 600; color: var(--green); }
.mini-chart { flex-shrink: 0; width: 160px; }
.mc-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--text-m); margin-bottom: 6px; text-align: center; }
.mc-svg { display: block; width: 100%; }
.mc-payment { text-align: center; margin-top: 4px; }
.mc-payment strong { font-size: 15px; font-weight: 800; color: var(--text-h); }
.mc-payment span { font-size: 11px; color: var(--text-m); display: block; }
.card-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; min-width: 150px; }
.btn-apply {
  padding: 11px 24px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(135deg, #4f8ef7, #3b6fd4);
  color: #fff;
  transition: opacity var(--t), transform .1s;
  box-shadow: 0 4px 14px rgba(79,142,247,0.3);
  text-align: center;
}
.btn-apply:hover { opacity: .9; }
.btn-apply:active { transform: scale(.97); }
.btn-detail {
  padding: 9px 24px;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-b);
  border: 1px solid var(--bd-card);
  background: transparent;
  transition: all var(--t);
  text-align: center;
}
.btn-detail:hover { color: var(--text-h); border-color: var(--bd-hover); background: rgba(255,255,255,.04); }
.card-divider { height: 1px; background: var(--bd); margin: 0 26px; }
.card-facts {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 12px 26px;
}
.fact {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text-b);
  border-right: 1px solid var(--bd);
  padding: 0 16px;
}
.fact:first-child { padding-left: 0; }
.fact:last-child { border-right: none; }
.fact-ico { font-size: 14px; }
.fact strong { color: var(--text-h); font-weight: 600; }

/* ============================================================
   PAGINATION
============================================================ */
.pag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 32px;
}
.pg {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 500;
  border: 1px solid var(--bd);
  color: var(--text-b);
  background: transparent;
  transition: all var(--t);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pg:hover { color: var(--text-h); border-color: var(--bd-card); background: rgba(255,255,255,.05); }
.pg.on { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
.pg.dots { border: none; color: var(--text-m); cursor: default; }

/* ============================================================
   DARK CARDS (React-style)
============================================================ */
.dark-card {
  background: rgba(26, 31, 46, 0.8);
  border: 1px solid var(--bd-card);
  border-radius: var(--r-xl);
  padding: 20px;
  transition: border-color var(--t-med), transform .15s;
}
.dark-card:hover {
  border-color: var(--bd-hover);
  transform: translateY(-2px);
}
.dark-card-sm {
  background: rgba(26, 31, 46, 0.8);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-lg);
  padding: 16px;
}

/* Bank avatar (React-style) */
.bank-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  flex-shrink: 0;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: #00D4FF;
}
.bank-logo.green {
  background: rgba(0, 255, 136, 0.1);
  border-color: rgba(0, 255, 136, 0.2);
  color: #00FF88;
}
.bank-logo.purple {
  background: rgba(123, 94, 167, 0.1);
  border-color: rgba(123, 94, 167, 0.2);
  color: #7B5EA7;
}

/* ============================================================
   SEO BLOCK
============================================================ */
.seo { max-width: var(--max-w); margin: 0 auto 64px; padding: 0 24px; }
.seo-card {
  background: var(--bg-card);
  border: 1px solid var(--bd-card);
  border-radius: var(--r-xl);
  padding: 32px 36px;
}
.seo-card h2 { font-size: 19px; font-weight: 800; color: var(--text-h); margin-bottom: 14px; }
.seo-card p { font-size: 14px; color: var(--text-b); line-height: 1.8; margin-bottom: 12px; }
.seo-card p:last-child { margin-bottom: 0; }

/* ============================================================
   FOOTER
============================================================ */
footer {
  background: #090c12;
  border-top: 1px solid var(--bd);
  padding: 52px 24px 32px;
}
.ft-in { max-width: var(--max-w); margin: 0 auto; }
.ft-grid {
  display: grid;
  grid-template-columns: 300px 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 44px;
}
.ft-logo { font-size: 22px; font-weight: 900; color: var(--text-h); margin-bottom: 12px; }
.ft-logo em { color: var(--blue); font-style: normal; }
.ft-brand p { font-size: 13px; color: var(--text-b); line-height: 1.7; margin-bottom: 18px; }
.ft-trust-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.ftb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--bd-card);
  font-size: 11.5px;
  color: var(--text-b);
}
.ft-col h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-m);
  margin-bottom: 14px;
}
.ft-col a {
  display: block;
  font-size: 13px;
  color: var(--text-b);
  margin-bottom: 9px;
  transition: color var(--t);
}
.ft-col a:hover { color: var(--text-h); }
.ft-bottom {
  padding-top: 22px;
  border-top: 1px solid var(--bd);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ft-bottom p { font-size: 12px; color: var(--text-m); }
.ft-legal { display: flex; gap: 20px; }
.ft-legal a { font-size: 12px; color: var(--text-m); transition: color var(--t); }
.ft-legal a:hover { color: var(--text-b); }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1100px) {
  .calc-row { grid-template-columns: 1fr 1fr; }
  .calc-btn { grid-column: span 2; }
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .slider-panel { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .card-main { grid-template-columns: 1fr; }
  .card-foot { flex-direction: column; align-items: flex-start; }
  .mini-chart { width: 100%; }
  .card-actions { flex-direction: row; width: 100%; }
  .btn-apply, .btn-detail { flex: 1; }
  .card-facts { flex-wrap: wrap; }
  .ft-grid { grid-template-columns: 1fr; gap: 32px; }
}
