:root {
  --bg-deep: #010410;
  --bg: #000018;
  --bg2: #04102e;
  --navy: #001860;
  --navy-bright: #001878;
  --navy-mid: #003060;
  --gold: #F0D878;
  --gold-soft: #ffe9a8;
  --gold-dim: #C0A860;
  --gold-deep: #8a6d1f;
  --text: #F0F0F0;
  --muted: #A9B4CC;
  --green: #60D890;
  --green-deep: #179a52;
  --red: #FF5A5A;
  --red-deep: #c02626;
  --white: #F7F9FF;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  position: relative;
  margin: 0;
  color: var(--text);
  overflow-x: hidden;
  background:
    linear-gradient(132deg, transparent 0 9%, rgba(0, 65, 184, .25) 9.2% 13%, transparent 13.2% 100%),
    linear-gradient(314deg, transparent 0 10%, rgba(0, 53, 149, .20) 10.2% 15%, transparent 15.2% 100%),
    radial-gradient(circle at 50% 0%, #06357c 0, #031b43 26%, #020e24 58%, #010817 100%);
  font-family: "Montserrat", Arial, sans-serif;
  background-attachment: fixed;
}

body::before,
body::after {
  position: fixed;
  z-index: 0;
  content: "";
  pointer-events: none;
  opacity: .35;
  background: linear-gradient(90deg, transparent, rgba(0, 75, 210, .35), transparent);
}

body::before { width: 520px; height: 900px; top: -380px; right: -160px; transform: rotate(42deg); }
body::after { width: 520px; height: 900px; bottom: -420px; left: -200px; }

a { color: inherit; }

.page-frame {
  position: relative;
  z-index: 1;
  isolation: isolate;
  width: 100%;
  max-width: 1120px;
  min-height: 0;
  margin: 0 auto;
  padding: 100px 18px 0;
}

/* ---------------- Site header ---------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  isolation: isolate;
  padding: 12px 0;
  background: linear-gradient(180deg, rgba(1, 4, 22, .98) 0%, rgba(1, 4, 22, .95) 60%, transparent 100%);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex: 1;
}

.navbar-toggler {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 40px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 1001;
}

.navbar-toggler span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}

.navbar-toggler[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(12.5px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.navbar-toggler[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-12.5px) rotate(-45deg);
}

.navbar-collapse {
  display: flex;
  flex: 1;
  justify-content: center;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 8px;
  background: linear-gradient(180deg, rgba(0, 16, 64, .92), rgba(0, 8, 32, .96));
  border: 2px solid rgba(240, 216, 120, .55);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .45);
  overflow: visible;
}

.brand-copy .rule {
  width: 85%;
  height: 2px;
  margin: 9px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold-dim) 12% 88%, transparent);
}

/* ---------------- Main navigation ---------------- */

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 22px;
  margin-bottom: 26px;
  padding: 11px 8px;
  background: linear-gradient(180deg, rgba(0, 16, 64, .92), rgba(0, 8, 32, .96));
  border: 2px solid rgba(240, 216, 120, .55);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .45);
  overflow: visible;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  color: var(--white);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .4px;
  line-height: 1;
  text-decoration: none;
  border: 0;
  border-radius: 11px;
  background: transparent;
  transition: color .2s ease, background .2s ease, transform .2s ease;
  cursor: pointer;
}

.nav-pill i { color: var(--gold); font-size: 15px; }

.nav-pill:hover { color: var(--gold-soft); background: rgba(0, 24, 96, .65); transform: translateY(-1px); }

.nav-pill.active {
  color: #221a02;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold) 45%, var(--gold-dim));
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
}

.nav-pill.active i { color: #221a02; }

.nav-drop { position: relative; }

.nav-drop-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1000;
  min-width: 210px;
  padding: 8px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  background: #010416;
  background: linear-gradient(180deg, #02164a, #000410);
  border: 2px solid rgba(240, 216, 120, .55);
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .6);
}

.nav-drop:hover .nav-drop-menu,
.nav-drop.open .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu { visibility: visible; opacity: 1; transform: translateY(0); }

.nav-drop > .nav-pill .fa-caret-down:last-child {
  transition: transform .24s cubic-bezier(.16, 1, .3, 1);
}

.nav-drop.open > .nav-pill .fa-caret-down:last-child { transform: rotate(180deg); }

.nav-drop-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: var(--white);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 9px;
}

.nav-drop-menu a i { width: 22px; color: var(--gold); text-align: center; font-size: 14px; }
.nav-drop-menu a:hover { color: var(--gold-soft); background: rgba(0, 24, 96, .6); }

.nav-drop-menu a.active { color: var(--gold-soft); background: rgba(240, 216, 120, .14); }

/* ---------------- Gold panel / cards ---------------- */

.gold-panel {
  position: relative;
  border: 3px solid var(--gold);
  border-radius: 26px;
  background: linear-gradient(110deg, rgba(2, 17, 41, .94), rgba(5, 47, 130, .78) 52%, rgba(2, 15, 37, .94));
  box-shadow: inset 0 0 35px rgba(2, 46, 124, .45), 0 9px 20px rgba(0, 0, 0, .20);
}

.card {
  border: 2px solid rgba(240, 216, 120, .45);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(0, 24, 96, .55), rgba(0, 8, 32, .75));
  color: var(--text);
}

.card-body { color: var(--text); }

.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 30px 0 18px;
}

.section-head i { color: var(--gold); font-size: 30px; }

.section-head h2 {
  margin: 0;
  color: var(--gold-soft);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 28px;
  font-weight: 800;
}

.section-head .head-rule {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dim), transparent);
}

.lead-text {
  color: #dbe4f5;
  font-size: 16px;
  line-height: 1.85;
}

/* ---------------- Buttons ---------------- */

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  color: #221a02;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold) 45%, var(--gold-dim));
  box-shadow: 0 6px 16px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .7);
  transition: transform .15s ease, filter .2s ease;
  cursor: pointer;
}

.btn-gold:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn-gold:active { transform: translateY(0); }

.btn-gold i { animation: glow 3s ease-in-out infinite; }

.btn-buy, .btn-sell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1;
  padding: 16px 0;
  font-weight: 800;
  font-size: 20px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  cursor: pointer;
  transition: transform .15s ease, filter .2s ease;
}

.btn-buy { background: linear-gradient(180deg, #7beeb0, var(--green) 45%, var(--green-deep)); box-shadow: 0 8px 18px rgba(24, 180, 90, .35); }
.btn-buy:hover { filter: brightness(1.1); transform: translateY(-2px); }
.btn-sell { background: linear-gradient(180deg, #ff8a8a, var(--red) 45%, var(--red-deep)); box-shadow: 0 8px 18px rgba(200, 40, 40, .35); }
.btn-sell:hover { filter: brightness(1.08); transform: translateY(-2px); }

/* ---------------- Forms ---------------- */

.form-label {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.form-control, .form-select {
  color: var(--white);
  background-color: rgba(0, 12, 40, .85);
  border: 1.5px solid rgba(192, 168, 96, .5);
  border-radius: 12px;
  padding: 11px 14px;
  font-weight: 600;
}

.form-control:focus, .form-select:focus {
  color: var(--white);
  background-color: rgba(0, 16, 56, .95);
  border-color: var(--gold);
  box-shadow: 0 0 0 .2rem rgba(240, 216, 120, .18);
}

.form-control::placeholder { color: #7c8aa8; opacity: 1; }

.form-check-input { background-color: rgba(0, 12, 40, .9); border-color: var(--gold-dim); }
.form-check-input:checked { background-color: var(--gold); border-color: var(--gold); }
.form-check-label { color: var(--text); font-weight: 600; }

/* ---------------- Tables ---------------- */

.data-table {
  width: 100%;
  margin: 0;
  color: var(--text);
  --bs-table-bg: transparent;
  --bs-table-color: var(--text);
  --bs-table-border-color: rgba(0, 24, 120, .65);
}

.data-table th, .data-table td {
  padding: 14px 16px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(0, 40, 140, .55);
}

.data-table thead th {
  color: var(--gold);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--gold);
  background: rgba(0, 22, 84, .35);
}

.data-table tbody tr:hover td { background: rgba(0, 24, 96, .25); }
.data-table tbody tr:last-child td { border-bottom: 0; }

.price-up { color: var(--green); }
.price-down { color: var(--red); }

.badge-side {
  display: inline-block;
  min-width: 46px;
  padding: 4px 10px;
  font-weight: 800;
  font-size: 12px;
  text-align: center;
  border-radius: 8px;
}

.badge-side.buy { color: #10250f; background: var(--green); }
.badge-side.sell { color: #ffffff; background: var(--red); }

/* ---------------- Footer ---------------- */

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 60px;
  padding-top: 28px;
}

.footer-main {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(240, 216, 120, .55);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(4, 22, 74, .98), rgba(0, 4, 16, .99) 55%, rgba(1, 8, 26, .99));
  box-shadow: 0 20px 40px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 245, 210, .08);
  overflow: hidden;
}

.footer-main::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 0%, rgba(31, 103, 230, .18), transparent 35%),
    linear-gradient(110deg, transparent 35%, rgba(240, 216, 120, .05) 50%, transparent 65%);
}

.footer-brand {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 28px;
  border-right: 1px solid rgba(240, 216, 120, .18);
  background: linear-gradient(180deg, rgba(8, 38, 102, .6), transparent 70%);
}

.footer-brand .brand-mini {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.footer-brand .brand-mini .emblem-sm {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  background: radial-gradient(circle, #071f46 0 50%, #020a19 51% 100%);
  font-size: 22px;
  box-shadow: 0 0 0 3px #0b2660, 0 0 16px rgba(8, 88, 230, .45);
}

.footer-brand .brand-mini h4 {
  margin: 0;
  color: var(--gold-soft);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .5px;
}

.footer-brand .tagline {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: .3px;
}

.footer-menu-col {
  position: relative;
  z-index: 1;
  padding: 28px 20px;
  border-right: 1px solid rgba(240, 216, 120, .18);
}

.footer-menu-col:last-child { border-right: 0; }

.footer-menu-title {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li { margin-bottom: 10px; }

.footer-menu li:last-child { margin-bottom: 0; }

.footer-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #dce5f5;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: .3px;
  border-radius: 8px;
  padding: 6px 8px;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.footer-menu a i {
  color: var(--gold);
  font-size: 14px;
  width: 18px;
  text-align: center;
  transition: transform .25s cubic-bezier(.16, 1, .3, 1), color .2s ease;
}

.footer-menu a:hover {
  color: var(--gold-soft);
  background: rgba(0, 24, 96, .5);
  transform: translateX(4px);
}

.footer-menu a:hover i {
  color: var(--gold-soft);
  transform: translateX(3px) scale(1.1);
}

.footer-menu a.active {
  color: var(--gold);
  background: rgba(240, 216, 120, .12);
}

.footer-menu a.active i { color: var(--gold); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding: 18px 24px;
  color: var(--muted);
  font-size: 12.5px;
  border-top: 1px solid rgba(192, 168, 96, .22);
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
}

.footer-bottom-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s ease;
}

.footer-bottom-links a:hover { color: var(--gold-soft); }

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--muted);
  font-size: 16px;
  border: 1px solid rgba(240, 216, 120, .25);
  border-radius: 50%;
  background: rgba(0, 12, 40, .6);
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.footer-social a:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(240, 216, 120, .1);
  transform: translateY(-2px);
}

@media (max-width: 1024px) {
  .footer-main { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid rgba(240, 216, 120, .18); }
  .footer-menu-col:nth-child(odd) { border-right: 1px solid rgba(240, 216, 120, .18); }
  .footer-menu-col:nth-child(even) { border-right: 0; }
  .footer-menu-col:nth-last-child(-n + 2) { border-bottom: 0; }
}

@media (max-width: 640px) {
  .navbar-toggler { display: flex; }
  .navbar-collapse {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(1, 4, 22, .98);
    backdrop-filter: blur(12px);
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s ease, visibility .3s ease;
    padding: 80px 20px 40px;
  }
  .navbar-collapse.show { visibility: visible; opacity: 1; }
  .main-nav {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    border-radius: 16px;
    padding: 20px;
    gap: 8px;
  }
  .nav-pill { width: 100%; justify-content: center; }
  .nav-drop { width: 100%; }
  .nav-drop-menu {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 8px 0 0;
    margin-top: 8px;
    border-top: 1px solid rgba(240, 216, 120, .2);
    border-radius: 12px;
  }
  .nav-drop-menu a { justify-content: center; }
  .brand-emblem { width: 104px; height: 104px; flex-basis: 104px; }
  .brand-emblem .scale-symbol { font-size: 46px; }
  .brand-copy h1 { font-size: 24px; }
  .brand-copy p { font-size: 14px; letter-spacing: 2px; }
  .section-head h2 { font-size: 22px; }
  .page-frame { padding-top: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  .footer-menu a, .footer-menu a i, .footer-social a { transition: none; }
}

/* ---------------- WhatsApp float ---------------- */

.float-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 85;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  color: #fff;
  font-size: 34px;
  text-decoration: none;
  background: radial-gradient(circle at 35% 30%, #3ce27f, #0b9d4c 62%, #054a24 100%);
  border: 3px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(30, 220, 110, .5);
}

.float-whatsapp i { animation: footerIconPulse 3s ease-in-out infinite; }

/* ---------------- Animations ---------------- */

@keyframes breathe {
  0%, 100% { text-shadow: 0 0 2px rgba(240, 216, 120, .2); }
  50% { text-shadow: 0 0 14px rgba(240, 216, 120, .9); }
}

@keyframes glow {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(240, 216, 120, .25)); }
  50% { filter: drop-shadow(0 0 10px rgba(240, 216, 120, .85)); }
}

@keyframes ring {
  0%, 100% { transform: rotate(0); }
  12% { transform: rotate(-16deg); }
  24% { transform: rotate(14deg); }
  36% { transform: rotate(-10deg); }
  48% { transform: rotate(8deg); }
  60% { transform: rotate(0); }
}

@keyframes spinSlow { to { transform: rotate(360deg); } }

@keyframes bounceSoft {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(-7px); }
}

@keyframes slideIn {
  0% { opacity: 0; transform: translateX(-26px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(22px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.fade-up { animation: fadeUp .6s ease both; }
.fade-up.d1 { animation-delay: .12s; }
.fade-up.d2 { animation-delay: .24s; }
.fade-up.d3 { animation-delay: .36s; }
.fade-up.d4 { animation-delay: .48s; }

/* ---------------- Rate ticker ---------------- */

.ticker-wrap {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
  margin-bottom: 20px;
}

.ticker-track {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 26s linear infinite;
}

.ticker-track:hover { animation-play-state: paused; }

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: 42px;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
}

.ticker-item::before { content: "\2022"; color: var(--gold); margin-right: 10px; }

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 46px 20px;
  overflow: hidden;
  text-align: center;
}

.hero h2 {
  position: relative;
  z-index: 2;
  margin: 0 0 10px;
  color: var(--gold-soft);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  font-weight: 800;
  text-shadow: 0 3px 10px #000;
}

.hero p { position: relative; z-index: 2; margin: 0 auto 22px; max-width: 640px; color: #dce6f7; font-size: 17px; line-height: 1.8; }

.hero .hero-icons { position: relative; z-index: 2; display: flex; justify-content: center; gap: 26px; margin-bottom: 20px; color: var(--gold); font-size: 44px; }

.hero .hero-icons i { animation: floatIcon 3.6s ease-in-out infinite; }
.hero .hero-icons i:nth-child(2) { animation-delay: .6s; }
.hero .hero-icons i:nth-child(3) { animation-delay: 1.2s; }

@keyframes floatIcon {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-14px) rotate(4deg); }
}

.icon-coin { color: var(--gold); }
.icon-bar { color: #e9e2c8; }

/* ---------------- Misc ---------------- */

.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

.info-card { padding: 22px 18px; text-align: center; }

.info-card .info-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 0 auto 14px;
  color: var(--gold);
  font-size: 30px;
  border: 2px solid rgba(240, 216, 120, .5);
  border-radius: 50%;
  background: rgba(0, 24, 96, .5);
}

.info-card .info-icon i { animation: glow 3s ease-in-out infinite; }

.info-card h5 { color: var(--gold-soft); font-weight: 800; letter-spacing: .5px; }
.info-card p { color: var(--muted); font-size: 13.5px; line-height: 1.7; margin: 0; }

.list-check { padding-left: 0; list-style: none; }
.list-check li { display: flex; gap: 12px; align-items: flex-start; padding: 7px 0; color: #dce6f7; line-height: 1.7; }
.list-check li i { margin-top: 5px; color: var(--gold); font-size: 16px; }

.msg-card { padding: 16px 20px; margin-bottom: 14px; }
.msg-card .msg-date { color: var(--gold); font-size: 12.5px; font-weight: 700; letter-spacing: 1px; }
.msg-card h5 { color: var(--gold-soft); font-weight: 800; }
.msg-card p { color: #d6e0f2; font-size: 14.5px; line-height: 1.75; margin: 0; }
.msg-card i.lead-icon { font-size: 26px; color: var(--gold); }

.bnk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.bnk-grid .bnk-cell { padding: 16px 18px; border: 1px solid rgba(192, 168, 96, .35); border-radius: 14px; background: rgba(0, 12, 44, .5); }
.bnk-grid .bnk-cell .k { color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: 1.6px; }
.bnk-grid .bnk-cell .v { color: var(--white); font-size: 17px; font-weight: 700; word-break: break-word; }

.content-sync-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.content-sync-bar .trade-status { flex: 1; margin: 0; }
.content-refresh-button { flex: 0 0 auto; min-height: 44px; padding: 9px 18px; font-size: 13px; }

.bank-live-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(240, 216, 120, .4);
  border-radius: 18px;
  background: rgba(0, 12, 44, .55);
}

.bank-live-label {
  margin-bottom: 7px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.bank-live-copy {
  color: var(--white);
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 650;
  line-height: 1.75;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.content-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 28px 18px;
  color: var(--muted);
  text-align: center;
}

.content-empty i { color: var(--gold); font-size: 28px; }
.content-empty p { max-width: 620px; margin: 0; line-height: 1.7; }

@media (max-width: 575px) {
  .content-sync-bar { align-items: stretch; flex-direction: column; }
  .content-refresh-button { width: 100%; }
  .bank-live-card { flex-direction: column; padding: 18px; }
}

.list-icon { padding-left: 0; list-style: none; }
.list-icon li { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; color: #d6e0f2; line-height: 1.75; }
.list-icon li i { margin-top: 4px; color: var(--gold); font-size: 18px; }

.booking-ico {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--gold);
  font-size: 24px;
  border: 2px solid rgba(240, 216, 120, .5);
  border-radius: 50%;
  background: rgba(0, 24, 96, .6);
}

.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-cell { text-align: center; padding: 18px 8px; }
.stat-cell .k { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 1.6px; }
.stat-cell .v { color: var(--text); font-size: 26px; font-weight: 800; }

.toast-msg { color: var(--white); }

.modal-content {
  background: linear-gradient(180deg, #051d50, #020b24);
  border: 2px solid var(--gold);
  border-radius: 20px;
  color: var(--text);
}

.modal-title { color: var(--gold); font-weight: 800; }
.btn-close { filter: invert(1); }

@media (max-width: 640px) {
  .site-header { padding-top: 12px; padding-bottom: 6px; }
  .brand-emblem { width: 104px; height: 104px; flex-basis: 104px; }
  .brand-emblem .scale-symbol { font-size: 46px; }
  .brand-copy h1 { font-size: 24px; }
  .brand-copy p { font-size: 14px; letter-spacing: 2px; }
  .section-head h2 { font-size: 22px; }
  .main-nav { gap: 4px; padding: 8px 4px; }
  .nav-pill { font-size: 12px; padding: 8px 9px; }
  .page-frame { padding-top: 140px; }
}


/* ---------------- Login ---------------- */
.login-page-frame {
  display: block;
  min-height: 0;
  padding-bottom: 0;
}

.login-brand-logo {
  display: block;
  width: min(576px, calc(100% - 24px));
  height: auto;
  max-height: 138px;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .42));
}

.login-shell {
  display: block;
  padding: 12px 0 24px;
}

.login-card {
  width: min(460px, 100%);
  margin: 0 auto;
  overflow: hidden;
}

.login-card-head {
  padding: 18px 20px;
  color: #221a02;
  text-align: center;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold) 52%, var(--gold-dim));
}

.login-card-head i { margin-right: 8px; }
.login-card-head h1 { margin: 0; font-size: 1.35rem; font-weight: 800; }
.login-card-head p { margin: 4px 0 0; font-size: .78rem; font-weight: 700; }
.login-card-body { padding: 22px; }
.login-field { margin-bottom: 15px; }
.login-field .form-label { margin-bottom: 6px; }
.login-action { width: 100%; min-height: 46px; }
.login-status { min-height: 22px; margin-top: 12px; color: var(--muted); font-size: .82rem; font-weight: 600; text-align: center; }
.login-status.success { color: var(--green); }
.login-status.error { color: #ff9999; }
.login-help { margin: 13px 0 0; color: var(--muted); font-size: .73rem; line-height: 1.45; text-align: center; }
.otp-step[hidden], .login-form[hidden], .logout-panel[hidden] { display: none !important; }
.logout-panel { padding: 8px 0; text-align: center; }
.logout-user { margin: 0 0 18px; color: var(--gold-soft); font-size: 1.05rem; font-weight: 700; word-break: break-word; }

@media (max-width: 640px) {
  .login-page-frame { padding-right: 10px; padding-left: 10px; }
  .login-brand-logo { max-height: 98px; }
  .login-shell { padding-top: 6px; }
  .login-card { border-radius: 18px; }
  .login-card-body { padding: 18px 15px; }
}


/* ===== Shared site chrome: matches liverates.html dimensions ===== */
.shared-site-chrome .page-frame {
  min-height: 0;
  padding-top: 12px;
  padding-bottom: 0;
}

.shared-brand-link {
  display: block;
  line-height: 0;
  text-decoration: none;
}

.shared-brand-logo,
.login-brand-logo {
  display: block;
  width: min(576px, 100%);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35));
}

.site-header .main-nav {
  width: min(1120px, calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
}

.site-footer,
.footer-main,
.footer-bottom {
  width: 100%;
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto;
}

.footer-info h5 i,
.footer-bar i {
  color: var(--gold);
}

@media (min-width: 970px) {
  .site-header {
    padding: 3px 0 0;
  }

  .site-header .header-inner {
    flex-direction: column;
    justify-content: center;
    gap: 0;
    max-width: 1120px;
  }

  .site-header .brand {
    width: 100%;
    flex: 0 0 auto;
    justify-content: center;
  }

  .site-header .navbar-collapse {
    width: 100%;
    flex: 0 0 auto;
    justify-content: center;
  }

  .shared-brand-logo,
  .login-brand-logo {
    width: 330px;
    max-height: none;
  }

  .site-header .main-nav {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: clamp(1px, .2vw, 3px);
    margin-top: 3px;
    margin-bottom: 4px;
    padding: 4px 12px;
    border-width: 1px;
    border-radius: 24px;
    box-shadow: 0 5px 13px rgba(0, 0, 0, .35);
  }

  .site-header .nav-pill {
    flex: 0 1 auto;
    min-width: 0;
    gap: clamp(3px, .4vw, 5px);
    padding: 6px clamp(5px, .6vw, 9px);
    font-size: clamp(11px, .82vw, 11.5px);
    white-space: nowrap;
  }

  .site-header .main-nav > .nav-drop {
    min-width: 0;
    flex: 0 1 auto;
  }

  .site-header .nav-drop-menu a {
    padding: 7px 10px;
  }

  .footer-main {
    grid-template-columns: 1.5fr repeat(4, 1fr);
  }
  
  .footer-menu-col {
    padding: 32px 24px;
  }
  
  .footer-bottom {
    padding: 20px 28px;
    font-size: 13px;
  }
}

@media (max-width: 969px) {
  .shared-site-chrome .page-frame { padding-top: 8px; }

  .shared-brand-logo,
  .login-brand-logo {
    width: min(460px, calc(100% - 20px));
  }

  .site-header .main-nav {
    width: calc(100% - 16px);
  }
}

@media (max-width: 640px) {
  .shared-brand-logo,
  .login-brand-logo {
    width: min(310px, calc(100% - 12px));
  }

  .footer-main {
    grid-template-columns: 1fr;
  }
  
  .footer-menu-col {
    padding: 22px 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(240, 216, 120, .15);
  }
  
  .footer-menu-col:last-child {
    border-bottom: 0;
  }
  
  .footer-brand {
    border-right: 0;
    border-bottom: 1px solid rgba(240, 216, 120, .18);
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 16px 18px;
  }
  
  .footer-bottom-links {
    justify-content: center;
  }
  
  .footer-social {
    justify-content: center;
  }
}

/* ===== Reference-theme background and standard footer navigation ===== */
body.shared-site-chrome {
  background:
    linear-gradient(132deg, transparent 0 7%, rgba(6, 55, 145, .32) 7.2% 9.5%, rgba(1, 10, 32, .08) 9.7% 100%),
    linear-gradient(312deg, transparent 0 8%, rgba(7, 52, 137, .24) 8.2% 11%, transparent 11.2% 100%),
    radial-gradient(ellipse at 54% -8%, #073b89 0, #06265c 18%, #031737 45%, #010817 72%, #00040e 100%);
  background-attachment: fixed;
}

body.shared-site-chrome::before,
body.shared-site-chrome::after {
  width: 44vw;
  height: 130vh;
  opacity: .4;
  background: linear-gradient(90deg, transparent 0 24%, rgba(2, 49, 139, .48) 42%, rgba(11, 85, 210, .22) 62%, transparent 82%);
}

body.shared-site-chrome::before { top: -50vh; right: -18vw; transform: rotate(38deg); }
body.shared-site-chrome::after { bottom: -62vh; left: -20vw; transform: rotate(38deg); }

.gold-spiral-net {
  position: fixed;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .62;
  mix-blend-mode: screen;
}

.shared-site-chrome .site-header,
.shared-site-chrome .page-frame,
.shared-site-chrome .page-shell,
.shared-site-chrome > main {
  position: relative;
}

.ticker-track-static { animation: none; }
.ticker-wrap:has(.ticker-track-static) { white-space: normal; }
.ticker-track-static { display: block; white-space: normal; }
.stat-note { margin-top: 3px; color: var(--muted); font-size: 12px; }

/* Live trading feedback and pending-order editor */
.trade-status {
  min-height: 24px;
  margin-bottom: 14px;
  padding: 9px 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  background: rgba(4, 18, 43, .62);
  border: 1px solid rgba(232, 193, 69, .16);
  border-radius: 10px;
}

.trade-status:empty { display: none; }
.trade-status a { color: var(--gold-soft); font-weight: 700; }
.trade-status.is-loading { color: #cbd8ec; }
.trade-status.is-success { color: #75eca2; border-color: rgba(54, 211, 115, .28); }
.trade-status.is-warning { color: #ffd978; border-color: rgba(255, 205, 66, .32); }
.trade-status.is-error { color: #ff9c9c; border-color: rgba(255, 80, 80, .34); }
.order-loading { color: var(--muted); }

.trade-action:disabled,
.trade-action.is-busy {
  cursor: wait;
  opacity: .58;
  transform: none;
}

.order-row-action {
  min-width: 38px;
  min-height: 38px;
  display: inline-grid;
  place-items: center;
}

.order-dialog {
  width: min(92vw, 480px);
  padding: 0;
  color: #f7f4e8;
  background: linear-gradient(155deg, #071c41, #020c20 74%);
  border: 1px solid rgba(242, 206, 91, .72);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .7), 0 0 34px rgba(221, 171, 42, .14);
}

.order-dialog::backdrop {
  background: rgba(0, 4, 15, .78);
  backdrop-filter: blur(5px);
}

.order-dialog-form { padding: 24px; }
.order-dialog-head { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.order-dialog-head h3 { margin: 2px 0 3px; color: var(--gold-soft); font-weight: 800; }
.order-dialog-head p { margin: 0; color: #d6e0f2; }
.order-dialog-kicker { color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.order-dialog-close { width: 40px; height: 40px; flex: 0 0 auto; color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: 50%; }
.order-dialog .form-control { color: #fff; background: rgba(0, 7, 22, .72); border-color: rgba(232, 193, 69, .34); }
.order-dialog .form-control:focus { color: #fff; background: #03122c; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232, 193, 69, .14); }
.order-dialog .trade-status { margin: 14px 0 0; }
.order-dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }

@media (max-width: 575.98px) {
  .order-dialog-form { padding: 20px 16px; }
  .order-dialog-actions { flex-direction: column-reverse; }
  .order-dialog-actions .btn,
  .order-dialog-actions .btn-gold { width: 100%; justify-content: center; }
}

/* Responsive header drawer used by the live-rates surface */
@media (max-width: 969px) {
  body.nav-open { overflow: hidden; }

  .site-header {
    padding: max(7px, env(safe-area-inset-top)) 0 7px;
    background: rgba(1, 4, 22, .97);
    backdrop-filter: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .36);
  }

  .site-header .header-inner {
    position: relative;
    min-height: 58px;
    justify-content: center;
    padding: 0 58px;
  }

  .site-header .brand {
    min-width: 0;
    width: 100%;
    justify-content: center;
  }

  .site-header .shared-brand-logo {
    width: min(420px, 100%);
    max-height: 72px;
  }

  .site-header .navbar-toggler {
    position: absolute;
    top: 50%;
    right: max(12px, env(safe-area-inset-right));
    z-index: 1110;
    display: inline-flex;
    width: 44px;
    height: 44px;
    padding: 10px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid rgba(240, 216, 120, .58);
    border-radius: 12px;
    background: rgba(5, 28, 75, .9);
    box-shadow: 0 5px 16px rgba(0, 0, 0, .34);
    transform: translateY(-50%);
  }

  .site-header .navbar-toggler span {
    width: 22px;
    height: 2px;
    flex: 0 0 2px;
  }

  .site-header .navbar-toggler[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header .navbar-toggler[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-header .navbar-collapse {
    position: fixed;
    inset: 0;
    z-index: 1090;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: calc(76px + env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(0, 4, 17, .82);
    backdrop-filter: blur(8px);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s ease, visibility 0s linear .24s;
  }

  .site-header .navbar-collapse.show {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .site-header .navbar-collapse .main-nav {
    width: min(380px, 100%);
    max-height: calc(100dvh - 98px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    margin: 0;
    padding: 12px;
    flex: 0 0 auto;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 3px;
    overflow-y: auto;
    border-width: 1px;
    border-radius: 16px;
    background: linear-gradient(180deg, #061f52, #010716 72%);
    box-shadow: -12px 18px 44px rgba(0, 0, 0, .62);
    transform: translateX(24px);
    transition: transform .32s cubic-bezier(.16, 1, .3, 1);
  }

  .site-header .navbar-collapse.show .main-nav { transform: translateX(0); }

  .site-header .navbar-collapse .nav-pill {
    width: 100%;
    min-height: 44px;
    justify-content: flex-start;
    padding: 11px 13px;
    font-size: 13px;
    text-align: left;
  }

  .site-header .navbar-collapse .nav-pill i:first-child {
    width: 22px;
    text-align: center;
  }

  .site-header .navbar-collapse .nav-drop { width: 100%; }

  .site-header .navbar-collapse .nav-drop:not(.open) .nav-drop-menu {
    display: none;
    visibility: hidden;
    opacity: 0;
  }

  .site-header .navbar-collapse .nav-drop.open .nav-drop-menu {
    position: static;
    display: block;
    min-width: 0;
    margin: 3px 0 6px 34px;
    padding: 5px;
    visibility: visible;
    opacity: 1;
    transform: none;
    border-width: 1px;
    border-radius: 11px;
    box-shadow: none;
    background: rgba(0, 7, 24, .68);
  }

  .site-header .navbar-collapse .nav-drop-menu a {
    min-height: 42px;
    justify-content: flex-start;
    padding: 9px 10px;
  }
}

@media (max-width: 420px) {
  .site-header .header-inner { min-height: 54px; padding-right: 54px; padding-left: 10px; }
  .site-header .brand { justify-content: flex-start; }
  .site-header .shared-brand-logo { width: min(278px, 100%); max-height: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header .navbar-collapse,
  .site-header .navbar-collapse .main-nav { transition: none; }
}
