:root {
  --ui-surface: #ffffff;
  --ui-surface-soft: #f8fafc;
  --ui-border: rgba(15, 23, 42, 0.08);
  --ui-border-strong: rgba(15, 23, 42, 0.14);
  --ui-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --ui-shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.06);
  --ui-radius: 20px;
  --ui-radius-sm: 14px;
  --ui-text: #0f172a;
  --ui-muted: #64748b;
}

body {
  color: var(--ui-text);
  background: #f8fafc;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

p,
span,
li,
label,
.table td,
.table th {
  color: inherit;
}

img {
  max-width: 100%;
}

.section-heading,
.section-title,
.banner-title,
h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: -0.02em;
}

.header {
  position: sticky;
  top: 0;
  z-index: 99;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--ui-border);
}

.header-bottom {
  background: transparent !important;
}

.header-bottom-area {
  min-height: 82px;
}

.logo img {
  max-height: 42px;
}

.menu li a {
  font-weight: 500;
  color: #334155;
  transition: all .2s ease;
}

.menu li a:hover,
.menu li a.active {
  color: hsl(var(--base));
}

.btn,
.btn-sm,
.btn--base,
.btn--outline-base {
  border-radius: 999px !important;
  font-weight: 600;
  padding-inline: 1rem;
  box-shadow: none;
}

.btn--base {
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
}

.btn--outline-base {
  border-width: 1px;
}

.banner-section {
  position: relative;
  overflow: hidden;
  padding-top: 72px;
  padding-bottom: 72px;
}

.banner-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,.58), rgba(15,23,42,.35));
  pointer-events: none;
}

.banner-bg img {
  object-fit: cover;
  filter: saturate(.95);
}

.banner-section > .container {
  position: relative;
  z-index: 1;
}

.banner-title {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
  margin-bottom: 1.5rem;
}

.custom-widget,
.exchange-rate,
.reserve-currencies,
.tracking-form,
.latest-exchange,
.custom--card,
.faq-item,
.contact-form,
.blog-card,
.policy-wrapper,
.auth-wrapper .form-wrapper,
.user-dashboard,
.dashboard-widget,
.form--card,
.card {
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius) !important;
  box-shadow: var(--ui-shadow-sm);
}

.custom-widget,
.exchange-rate,
.reserve-currencies,
.tracking-form,
.latest-exchange,
.contact-form,
.policy-wrapper,
.auth-wrapper .form-wrapper,
.form--card {
  padding: 1.25rem;
}

.custom-widget,
.tracking-form,
.exchange-rate,
.reserve-currencies,
.latest-exchange {
  backdrop-filter: blur(4px);
}

.banner-section .custom-widget,
.banner-section .tracking-form,
.banner-section .exchange-rate,
.banner-section .reserve-currencies,
.banner-section .latest-exchange {
  border-color: rgba(255,255,255,.12);
  box-shadow: var(--ui-shadow);
}

.form-group label,
.form-label {
  font-size: .92rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: .5rem;
}

.form--control,
.form-control,
.form-select,
.select2-container--default .select2-selection--single {
  min-height: 50px;
  border-radius: 14px !important;
  border: 1px solid var(--ui-border-strong) !important;
  background: #fff !important;
  box-shadow: none !important;
}

.form--control:focus,
.form-control:focus,
.form-select:focus {
  border-color: rgba(249, 115, 22, .45) !important;
  box-shadow: 0 0 0 4px rgba(249,115,22,.10) !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
  line-height: 48px !important;
  padding-left: 14px !important;
}

.select2-container .select2-selection--single .select2-selection__arrow {
  height: 48px !important;
  right: 10px !important;
}

.input-group-text {
  border-radius: 14px;
}

.rate--txt,
.rate--txt-received,
.gate-rate-alert,
.text--small,
small,
.text-muted {
  color: var(--ui-muted) !important;
}

.best-rate-slide {
  background: transparent !important;
}

.best-rate-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .75rem;
  padding-left: 0;
  list-style: none;
}

.best-rate-list li {
  background: var(--ui-surface-soft);
  border: 1px solid var(--ui-border);
  border-radius: 14px;
  padding: .85rem 1rem;
}

.currency-list__item,
.exchange-item,
.reserve-item {
  border-bottom: 1px solid rgba(148,163,184,.18);
}

.currency-list__item:last-child,
.exchange-item:last-child,
.reserve-item:last-child {
  border-bottom: 0;
}

.footer {
  margin-top: 80px;
  background: #0f172a !important;
}

.footer .social-links a,
.footer-links a {
  transition: all .2s ease;
}

.footer-links a:hover,
.footer .social-links a:hover {
  opacity: .9;
  transform: translateY(-1px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
}

.section--bg,
.bg--section,
[class*="section"] {
  scroll-margin-top: 100px;
}

.breadcrumb {
  background: transparent;
}

.modal-content {
  border: 1px solid var(--ui-border);
  border-radius: 24px;
  box-shadow: var(--ui-shadow);
}

.table {
  --bs-table-bg: transparent;
}

.table thead th {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #64748b;
  border-bottom-width: 1px;
}

.table tbody tr {
  border-color: rgba(148,163,184,.18);
}

.blog-card,
.faq-item {
  overflow: hidden;
}

@media (max-width: 991.98px) {
  .header {
    background: rgba(255,255,255,.95);
  }

  .menu {
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid var(--ui-border);
    box-shadow: var(--ui-shadow);
  }

  .banner-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .banner-title {
    margin-bottom: 1rem;
  }
}

@media (max-width: 575.98px) {
  .custom-widget,
  .exchange-rate,
  .reserve-currencies,
  .tracking-form,
  .latest-exchange,
  .contact-form,
  .policy-wrapper,
  .auth-wrapper .form-wrapper,
  .form--card {
    padding: 1rem;
    border-radius: 18px !important;
  }

  .banner-title {
    font-size: 1.9rem;
  }
}
