/*
 * TURKBANK · Public site overrides
 * Applies on top of style.css (theme)
 * ===================================
 */

/* ── Variables ──────────────────────────────── */
:root {
  --tb-red:     #d70000;
  --tb-red-d:   #a80000;
  --tb-red-50:  #fff1f1;
  --tb-navy:    #0e1c3d;
  --tb-navy-2:  #1a3567;
  --tb-muted:   #6b7280;
  --tb-border:  #e5e7eb;
}

/* ── Body offset for fixed header ───────────── */
body {
  padding-top: 88px !important;
}
/* Ensure our header always sits on top of everything */
.tb-site-header { z-index: 1050 !important; }
.tb-mobile-drawer { z-index: 1049 !important; }
.tb-mob-overlay { z-index: 1048 !important; }

/* ── Hide old theme header elements ─────────── */
.header-top-one,
.header-top.header-top-one { display: none !important; }

/* ═══════════════════════════════════════════════
   CUSTOM SITE HEADER
════════════════════════════════════════════════ */
.tb-site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 88px;
  background: #fff;
  border-bottom: 1px solid var(--tb-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: box-shadow .25s, border-color .25s;
}
.tb-site-header.scrolled {
  box-shadow: 0 6px 28px rgba(0,0,0,.09);
  border-color: transparent;
}

.tb-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
}

/* Brand */
.tb-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.tb-header-brand-icon {
  width: 50px; height: 50px;
  background: var(--tb-red);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.tb-header-brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--tb-navy);
  letter-spacing: -.025em;
}
.tb-header-brand-logo {
  display: block;
  height: 54px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  transition: transform .2s ease;
}
.tb-header-brand:hover .tb-header-brand-logo { transform: scale(1.03); }
@media (max-width: 575px) {
  .tb-header-brand-logo { height: 42px; max-width: 190px; }
}

/* Desktop nav */
.tb-header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.tb-nav-link {
  padding: 10px 20px;
  font-size: .95rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none !important;
  border-radius: 10px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.tb-nav-link:hover,
.tb-nav-link.active {
  color: var(--tb-red) !important;
  background: var(--tb-red-50);
}

/* Actions */
.tb-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.tb-header-login {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--tb-red);
  color: #fff !important;
  padding: 13px 28px;
  border-radius: 11px;
  font-size: .93rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: background .15s, transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.tb-header-login:hover {
  background: var(--tb-red-d);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(215,0,0,.30);
}
.tb-header-account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  color: var(--tb-navy) !important;
  padding: 12px 20px;
  border-radius: 11px;
  font-size: .93rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background .15s;
}
.tb-header-account:hover { background: #e2e8f0; }
.tb-header-signout {
  background: none;
  border: 1.5px solid var(--tb-border);
  border-radius: 11px;
  padding: 11px 14px;
  font-size: 1.15rem;
  color: var(--tb-muted);
  cursor: pointer;
  line-height: 1;
  transition: border-color .15s, color .15s;
}
.tb-header-signout:hover { border-color: var(--tb-red); color: var(--tb-red); }

/* Language switcher */
.tb-lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 4px;
}
.tb-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: .78rem;
  font-weight: 700;
  color: #64748b;
  text-decoration: none !important;
  transition: all .15s;
  white-space: nowrap;
}
.tb-lang-btn:hover { background: #fff; color: var(--tb-navy); }
.tb-lang-btn.active {
  background: #fff;
  color: var(--tb-red);
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.tb-mob-lang {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  border-bottom: 1px solid #f3f4f6;
  flex-wrap: wrap;
}
.tb-mob-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 700;
  color: #374151;
  background: #f1f5f9;
  text-decoration: none !important;
  transition: all .15s;
}
.tb-mob-lang-btn.active { background: var(--tb-red-50); color: var(--tb-red); }

/* Hamburger */
.tb-hamburger {
  display: none;
  background: none;
  border: 1.5px solid var(--tb-border);
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 1.5rem;
  color: var(--tb-navy);
  cursor: pointer;
  line-height: 1;
  transition: border-color .15s;
}
.tb-hamburger:hover { border-color: var(--tb-red); color: var(--tb-red); }

/* Mobile drawer */
.tb-mobile-drawer {
  position: fixed;
  top: 88px; left: 0; right: 0;
  background: #fff;
  border-bottom: 2px solid var(--tb-border);
  z-index: 999;
  transform: translateY(-110%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
}
.tb-mobile-drawer.open { transform: translateY(0); }

.tb-mob-nav {
  padding: 8px 0;
}
.tb-mob-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  font-size: .93rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
  transition: color .15s, background .15s;
}
.tb-mob-nav a:hover,
.tb-mob-nav a.active { color: var(--tb-red); background: var(--tb-red-50); }
.tb-mob-nav a i { width: 20px; text-align: center; color: var(--tb-muted); }
.tb-mob-nav a.active i, .tb-mob-nav a:hover i { color: var(--tb-red); }

.tb-mob-actions {
  padding: 16px 20px 20px;
}
.tb-mob-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--tb-red);
  color: #fff !important;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none !important;
}
.tb-mob-cta-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: #f1f5f9;
  color: var(--tb-navy) !important;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none !important;
}

/* Overlay */
.tb-mob-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 998;
}
.tb-mob-overlay.open { display: block; }

/* ── Pre-title ──────────────────────────────── */
.pre-title {
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: var(--tb-red) !important;
}

/* ── Section headings ───────────────────────── */
.rts-title-area .title {
  font-weight: 800 !important;
  letter-spacing: -.02em !important;
  line-height: 1.2 !important;
}

/* ── Buttons ────────────────────────────────── */
.rts-btn.btn-primary,
a.rts-btn.btn-primary {
  border-radius: 8px !important;
  font-weight: 700 !important;
  letter-spacing: .3px !important;
  transition: all .18s ease !important;
}
.rts-btn.btn-primary:hover,
a.rts-btn.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(215,0,0,.32) !important;
  transform: translateY(-1px) !important;
}

/* ── Trust bar below hero ───────────────────── */
.tb-trust-bar {
  background: #fff;
  border-top: 1px solid var(--tb-border);
  border-bottom: 1px solid var(--tb-border);
  padding: 20px 0;
  position: relative;
  z-index: 2;
}
.tb-trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.tb-trust-items li {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-weight: 600 !important;
  color: #374151 !important;
  list-style: none !important;
}
.tb-trust-items li i {
  font-size: 1.2rem !important;
  color: var(--tb-red) !important;
}

/* ── Counter section ────────────────────────── */
.tb-counter-section {
  background: var(--tb-navy);
  padding: 80px 0;
  position: relative;
  z-index: 2;
}
.tb-counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.tb-counter-item {
  text-align: center;
  padding: 40px 24px;
  border-right: 1px solid rgba(255,255,255,.1);
  position: relative;
}
.tb-counter-item:last-child { border-right: none; }
.tb-counter-num {
  font-size: 3.4rem !important;
  font-weight: 800 !important;
  color: #fff !important;
  letter-spacing: -.04em !important;
  line-height: 1 !important;
  margin-bottom: 12px !important;
  display: block !important;
  font-family: inherit !important;
}
.tb-counter-accent { color: var(--tb-red) !important; }
.tb-counter-label {
  font-size: .82rem !important;
  color: rgba(255,255,255,.5) !important;
  font-weight: 600 !important;
  letter-spacing: 1.2px !important;
  text-transform: uppercase !important;
}

/* ── Why choose us section ──────────────────── */
.tb-why-section {
  background: #fff;
  position: relative;
  z-index: 2;
  padding: 96px 0 100px;
}
.tb-why-section .pre-title {
  margin-bottom: 10px !important;
}
.tb-why-section .title {
  font-size: 2.6rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin-bottom: 0 !important;
}

/* ── Why choose us cards ────────────────────── */
.tb-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.tb-why-card {
  background: #fff !important;
  border: 1.5px solid var(--tb-border) !important;
  border-radius: 20px !important;
  padding: 40px 36px !important;
  transition: box-shadow .22s, transform .22s, border-color .22s;
  position: relative;
}
.tb-why-card:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,.10) !important;
  transform: translateY(-5px) !important;
  border-color: #d1d5db !important;
}
.tb-why-icon {
  width: 68px !important;
  height: 68px !important;
  background: var(--tb-red-50) !important;
  border-radius: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.75rem !important;
  color: var(--tb-red) !important;
  margin-bottom: 24px !important;
}
.tb-why-title {
  font-weight: 700 !important;
  color: #111827 !important;
  margin-bottom: 12px !important;
  line-height: 1.3 !important;
}
.tb-why-desc {
  color: #6b7280 !important;
  line-height: 1.75 !important;
  margin: 0 !important;
}

/* ── Service cards hover ────────────────────── */
.service-one-inner {
  transition: transform .2s, box-shadow .2s !important;
  border-radius: 16px !important;
}
.service-one-inner:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 40px rgba(0,0,0,.1) !important;
}

/* ── CTA banner ─────────────────────────────── */
.tb-cta-section {
  background: linear-gradient(135deg, var(--tb-navy) 0%, var(--tb-navy-2) 100%);
  padding: 96px 0;
  text-align: center;
  position: relative;
  z-index: 2;
}
.tb-cta-section h2 {
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 2.6rem !important;
  letter-spacing: -.03em !important;
  margin-bottom: 16px !important;
}
.tb-cta-section p {
  color: rgba(255,255,255,.65) !important;
  margin-bottom: 40px !important;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.tb-cta-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.tb-btn-white {
  background: #fff;
  color: var(--tb-navy) !important;
  border: none;
  border-radius: 10px;
  padding: 14px 32px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .18s;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.tb-btn-white:hover { background: #f1f5f9; transform: translateY(-2px); }
.tb-btn-outline-white {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,.35);
  border-radius: 10px;
  padding: 14px 32px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .18s;
}
.tb-btn-outline-white:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.7);
  transform: translateY(-2px);
}

/* ── Security badges strip ──────────────────── */
.tb-security-strip {
  background: #f9fafb;
  border-top: 1px solid var(--tb-border);
  border-bottom: 1px solid var(--tb-border);
  padding: 22px 0;
}
.tb-security-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.tb-security-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.tb-security-item i {
  color: #16a34a;
}


/* ── FAQ page intro ─────────────────────────── */
.tb-faq-intro {
  background: var(--tb-navy);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}
.tb-faq-intro h1 {
  color: #fff;
  font-weight: 800;
  font-size: 2.8rem;
  margin-bottom: 14px;
  letter-spacing: -.03em;
}
.tb-faq-intro p {
  color: rgba(255,255,255,.6);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ── Footer ─────────────────────────────────── */
.tb-footer {
  background: var(--tb-navy);
  color: rgba(255,255,255,.7);
}
.tb-footer-top {
  padding: 72px 0 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.tb-footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 56px;
}
.tb-footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 16px;
}
.tb-footer-logo-icon {
  width: 38px; height: 38px;
  background: var(--tb-red);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}
.tb-footer-logo-name {
  font-weight: 700;
  color: #fff;
}
.auth-brand-logo {
  display: block;
  max-width: 240px;
  height: 58px;
  width: auto;
  object-fit: contain;
  margin: 0 auto 14px;
}
.tb-footer-logo-img {
  display: block;
  height: 56px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  background: #fff;
  padding: 8px 14px;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(215,0,0,.22);
}
.tb-footer-desc {
  line-height: 1.75;
  color: rgba(255,255,255,.45);
  margin-bottom: 22px;
  max-width: 290px;
}
.tb-footer-contacts a {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color .15s;
}
.tb-footer-contacts a:hover { color: #fff; }
.tb-footer-contacts i { color: var(--tb-red); font-size: .85rem; }

.tb-footer-col h6 {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 20px;
}
.tb-footer-col ul {
  list-style: none;
  padding: 0; margin: 0;
}
.tb-footer-col ul li { margin-bottom: 12px; }
.tb-footer-col ul li a {
  color: rgba(255,255,255,.5) !important;
  text-decoration: none;
  transition: color .15s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tb-footer-col ul li a:hover { color: #fff; }
.tb-footer-col ul li a i { font-size: .7rem; opacity: .6; }

.tb-footer-bottom {
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.tb-footer-copy {
  font-size: .76rem;
  color: rgba(255,255,255,.28);
}
.tb-footer-legal {
  display: flex;
  gap: 22px;
}
.tb-footer-legal a {
  font-size: .76rem;
  color: rgba(255,255,255,.28);
  text-decoration: none;
  transition: color .15s;
}
.tb-footer-legal a:hover { color: rgba(255,255,255,.55); }

/* ── Remove old footer from appearing ──────── */
.rts-footer-area,
.rts-map-area,
.rts-copyright-area { display: none !important; }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 1200px) {
  .tb-header-nav { gap: 2px; }
  .tb-nav-link { padding: 10px 14px; font-size: .93rem; }
}

@media (max-width: 960px) {
  .tb-header-nav { display: none; }
  .tb-hamburger { display: flex; align-items: center; }
  .tb-header-account span,
  .tb-header-login span { display: none; }
  .tb-header-account,
  .tb-header-login { padding: 12px 14px; }
}

@media (max-width: 992px) {
  .tb-counter-grid { grid-template-columns: repeat(2, 1fr); }
  .tb-counter-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .tb-counter-item:nth-child(2n) { border-right: none; }
  .tb-counter-item:last-child { border-bottom: none; }
  .tb-why-section { padding: 72px 0 76px; }
  .tb-why-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .tb-footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 600px) {
  .tb-trust-items { gap: 14px; }
  .tb-counter-grid { grid-template-columns: 1fr 1fr; }
  .tb-counter-num { font-size: 2.6rem !important; }
  .tb-why-section { padding: 56px 0 60px; }
  .tb-why-grid { grid-template-columns: 1fr; gap: 16px; }
  .tb-why-card { padding: 32px 24px !important; }
  .tb-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .tb-cta-section { padding: 64px 0; }
  .tb-cta-section h2 { font-size: 1.7rem !important; }
  .tb-footer-bottom { flex-direction: column; text-align: center; }
  .tb-faq-intro h1 { font-size: 2.1rem !important; }
}

/* ═══════════════════════════════════════════════════
   EXCHANGE RATES PAGE
════════════════════════════════════════════════════ */
.xr-page-hdr {
  text-align: center;
  margin-bottom: 40px;
}
.xr-page-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--tb-navy);
  letter-spacing: -.03em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.xr-page-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--tb-red), #a00000);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.xr-page-sub {
  color: var(--tb-muted);
  font-size: 1rem;
  margin-bottom: 0;
}

.xr-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}

/* Rates grid */
.xr-rates-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
  overflow: hidden;
}
.xr-rates-head {
  background: linear-gradient(135deg, var(--tb-navy), var(--tb-navy-2));
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.xr-rates-base {
  color: rgba(255,255,255,.7);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.xr-rates-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.xr-rate-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  border-right: 1px solid #f1f5f9;
  transition: background .15s;
}
.xr-rate-item:hover { background: var(--tb-red-50, #fff1f1); }
.xr-rate-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.xr-rate-flag {
  font-size: 1.65rem;
  line-height: 1;
}
.xr-rate-code {
  font-size: .93rem;
  font-weight: 700;
  color: var(--tb-navy);
  display: block;
}
.xr-rate-name {
  font-size: .72rem;
  color: var(--tb-muted);
  display: block;
}
.xr-rate-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--tb-navy);
  font-family: 'SF Mono', ui-monospace, Consolas, monospace;
}

/* Converter card */
.xr-conv-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  overflow: hidden;
  position: sticky;
  top: 104px;
}
.xr-conv-head {
  background: linear-gradient(135deg, var(--tb-red), #a00000);
  padding: 18px 24px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.xr-conv-form {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.xr-conv-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--tb-muted);
  margin-bottom: 6px;
}
.xr-conv-input-wrap {
  display: flex;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .15s;
}
.xr-conv-input-wrap:focus-within { border-color: var(--tb-red); }
.xr-conv-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 14px;
  font-size: .97rem;
  font-weight: 600;
  background: transparent;
  color: var(--tb-navy);
  min-width: 0;
}
.xr-conv-input.xr-result {
  background: #f8fafc;
  color: var(--tb-red);
}
.xr-conv-select {
  border: none;
  border-left: 1.5px solid #e2e8f0;
  outline: none;
  background: #f8fafc;
  padding: 10px 12px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--tb-navy);
  cursor: pointer;
  min-width: 72px;
}
.xr-swap-btn {
  align-self: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--tb-border);
  background: #fff;
  color: var(--tb-muted);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -4px auto;
  transition: all .15s;
  flex-shrink: 0;
}
.xr-swap-btn:hover {
  border-color: var(--tb-red);
  color: var(--tb-red);
  transform: rotate(180deg);
}
.xr-conv-info {
  text-align: center;
  font-size: .82rem;
  color: var(--tb-muted);
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: 8px;
  font-weight: 500;
}

/* Presets */
.xr-presets {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.xr-presets-lbl {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--tb-muted);
  margin-right: 4px;
}
.xr-preset {
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--tb-navy);
  cursor: pointer;
  transition: all .15s;
}
.xr-preset:hover {
  background: var(--tb-red-50, #fff1f1);
  border-color: var(--tb-red);
  color: var(--tb-red);
}

/* Dashboard mini-ticker (in topbar or sidebar) */
.dash-rates-ticker {
  display: flex;
  gap: 20px;
  overflow: hidden;
  max-width: 460px;
  padding: 0 4px;
}
.dash-rates-ticker .ticker-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.dash-rates-ticker .ticker-code { font-weight: 700; color: var(--ink); }
.dash-rates-ticker .ticker-val  { font-family: monospace; }

/* Currency widget in dashboard */
.xr-dash-widget {
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 28px;
}
.xr-dash-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.xr-dash-widget-title {
  font-size: .85rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.xr-dash-widget-link {
  font-size: .75rem;
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}
.xr-dash-widget-body {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}
.xr-dash-rate-cell {
  padding: 14px 16px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.xr-dash-rate-cell:nth-child(3n) { border-right: none; }
.xr-dash-rate-flag { font-size: 1.3rem; line-height: 1; }
.xr-dash-rate-info {}
.xr-dash-rate-code { font-size: .78rem; font-weight: 700; color: var(--ink); }
.xr-dash-rate-val  { font-size: .85rem; font-weight: 600; color: var(--muted); font-family: monospace; }

/* Mini-converter in dashboard */
.xr-dash-conv {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  background: #fafbfc;
}
.xr-dash-conv label {
  font-size: .72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .8px;
}
.xr-dash-conv-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.xr-dash-conv-inp {
  width: 90px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: .85rem;
  font-weight: 600;
  outline: none;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s;
}
.xr-dash-conv-inp:focus { border-color: var(--red); }
.xr-dash-conv-sel {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: .85rem;
  font-weight: 600;
  background: #fff;
  outline: none;
  color: var(--ink);
  cursor: pointer;
}
.xr-dash-conv-arrow { color: var(--muted); font-size: .9rem; }
.xr-dash-conv-result {
  font-size: 1rem;
  font-weight: 700;
  color: var(--red);
  min-width: 110px;
  white-space: nowrap;
}

@media (max-width: 991px) {
  .xr-layout { grid-template-columns: 1fr; }
  .xr-conv-card { position: static; }
}
@media (max-width: 575px) {
  .xr-rates-grid { grid-template-columns: 1fr; }
  .xr-rate-item { border-right: none; }
  .xr-page-title { font-size: 1.6rem; flex-direction: column; gap: 10px; }
  .xr-dash-widget-body { grid-template-columns: 1fr 1fr; }
  .xr-dash-rate-cell:nth-child(2n) { border-right: none; }
  .xr-dash-rate-cell:nth-child(3n) { border-right: 1px solid var(--border); }
}

