/* ============================================================
   Parsan Exchange — Main Stylesheet  v1.1
   RTL/LTR bilingual · mobile-first · full colour audit
   ============================================================ */

/* ── Reset & Custom Properties ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --c-gold:        #C9960C;
  --c-gold-light:  #F5C842;
  --c-gold-dark:   #9A700A;
  --c-navy:        #0B1F3A;
  --c-navy-mid:    #152F58;
  --c-navy-light:  #1E4080;
  --c-green:       #12B76A;
  --c-green-dark:  #0E8F54;
  --c-red:         #F04438;
  --c-bg:          #F8FAFC;
  --c-surface:     #FFFFFF;
  --c-border:      #E2E8F0;
  --c-text:        #0F172A;
  --c-muted:       #475569;   /* ↑ bumped from #64748B for better contrast on white */
  --c-muted-light: #94A3B8;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --shadow-sm:        0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:        0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.07);
  --shadow-lg:        0 12px 40px rgba(0,0,0,.14);
  --shadow-glow-gold: 0 0 24px rgba(201,150,12,.35);

  --transition: .25s ease;
  --font-en:    'Inter', system-ui, sans-serif;
  --font-fa:    'Vazirmatn', 'Tahoma', system-ui, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-en);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.7;
  overflow-x: hidden;
}
body[dir="rtl"], body.lang-fa {
  font-family: var(--font-fa);
  direction: rtl;
  text-align: right;
}

/* ── Typography ─────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { line-height: 1.25; font-weight: 700; color: var(--c-navy); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
p  { color: var(--c-muted); }

/* Links default — neutral dark, never browser-blue */
a  { color: var(--c-navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-gold-dark); }
img { max-width: 100%; display: block; }

/* ── Container ──────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section   { padding: 5rem 0; }

/* ══════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .75rem 1.75rem;
  border: 2px solid transparent; border-radius: 999px;
  font-family: inherit; font-size: .95rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
  white-space: nowrap; text-decoration: none;
  color: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, var(--c-gold), var(--c-gold-dark));
  color: #fff !important; border-color: transparent;
  box-shadow: 0 4px 14px rgba(201,150,12,.4);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--c-gold-light), var(--c-gold));
  box-shadow: 0 6px 20px rgba(201,150,12,.55);
  transform: translateY(-1px); color: #fff !important;
}
.btn-outline { background: transparent; color: var(--c-navy); border-color: var(--c-navy); }
.btn-outline:hover { background: var(--c-navy); color: #fff !important; }
.btn-lg  { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: .55; pointer-events: none; }
.btn-admin {
  background: var(--c-navy-mid); color: var(--c-gold-light) !important;
  border-radius: var(--radius-sm); padding: .4rem 1rem;
}

/* ══════════════════════════════════════════════════════════
   RATE TICKER BAR
══════════════════════════════════════════════════════════ */
.rate-ticker {
  background: linear-gradient(90deg, var(--c-navy) 0%, var(--c-navy-mid) 100%);
  color: #fff; padding: .55rem 0; font-size: .82rem;
  position: sticky; top: 0; z-index: 1000;
  border-bottom: 2px solid var(--c-gold);
}
.ticker-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
}
.ticker-label   { font-weight: 700; color: var(--c-gold-light); letter-spacing: .04em; }
.ticker-item    { display: flex; align-items: center; gap: .35rem; }
.ticker-key     { color: rgba(255,255,255,.8); font-weight: 500; }  /* was #94A3B8 — too dim */
.ticker-val     { font-weight: 800; font-size: 1rem; letter-spacing: .02em; }
.buy-val        { color: #5FE8A4; }          /* bright green — readable on navy */
.sell-val       { color: var(--c-gold-light); }
.ticker-sep     { color: rgba(255,255,255,.4); }
.ticker-unit    { color: rgba(255,255,255,.7); font-size: .75rem; }
.ticker-updated { margin-inline-start: auto; color: rgba(255,255,255,.65); font-size: .78rem; }

/* Ticker contact mode */
.ticker-contact {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  color: rgba(255,255,255,.9); font-weight: 500; font-size: .88rem;
}
/* Phone numbers — always gold, LTR direction so +61 reads correctly even in RTL */
.ticker-contact a,
a[href^="tel"] {
  color: var(--c-gold-light) !important;
  font-weight: 700;
  text-decoration: none;
  direction: ltr;
  unicode-bidi: embed;
  display: inline-block;
}
.ticker-contact a:hover,
a[href^="tel"]:hover { color: #fff !important; text-decoration: underline; }

/* ══════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════ */
.navbar {
  background: rgba(255,255,255,.97); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
  position: sticky; top: 38px; z-index: 999;
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 1rem;
}
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo-icon { font-size: 1.8rem; color: var(--c-gold); }
.logo-text { font-size: 1.15rem; color: var(--c-navy); font-weight: 500; }
.logo-text strong { font-weight: 800; color: var(--c-gold-dark); }

.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; flex-wrap: wrap; }
.nav-link {
  padding: .45rem .8rem; border-radius: var(--radius-sm);
  color: var(--c-navy); font-weight: 500; font-size: .9rem;
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--c-gold-dark); background: rgba(201,150,12,.08);
}
.nav-btn { font-size: .88rem; padding: .5rem 1.2rem; }

.lang-switch { display: flex; align-items: center; gap: .4rem; margin-inline-start: .5rem; }
.lang-btn {
  padding: .25rem .55rem; border-radius: 4px;
  font-size: .82rem; font-weight: 600; color: var(--c-navy);  /* was --c-muted */
  border: 1px solid var(--c-border); transition: all var(--transition);
}
.lang-btn.active, .lang-btn:hover {
  background: var(--c-navy); color: #fff !important; border-color: var(--c-navy);
}

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: .4rem;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--c-navy); transition: all .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 68px;
    inset-inline-start: 0; width: 100%;
    background: #fff; flex-direction: column; align-items: flex-start;
    padding: 1rem 1.5rem 1.5rem; box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--c-border); gap: .35rem; z-index: 998;
  }
  .nav-links.open { display: flex; }
}

/* ══════════════════════════════════════════════════════════
   SITE BANNER
══════════════════════════════════════════════════════════ */
.site-banner {
  background: linear-gradient(90deg,var(--c-gold),var(--c-gold-dark));
  color: #fff; padding: .7rem 3rem .7rem 1.5rem;
  font-weight: 600; font-size: .9rem; position: relative;
}
.banner-close {
  position: absolute; top: 50%; right: 1rem; transform: translateY(-50%);
  background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer;
}
[dir="rtl"] .banner-close { right: auto; left: 1rem; }

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.hero-section {
  background: linear-gradient(145deg, var(--c-navy) 0%, var(--c-navy-mid) 60%, #1a3a6e 100%);
  color: #fff; min-height: 92vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center; position: relative; overflow: hidden;
  padding-top: 3rem;
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape { position: absolute; border-radius: 50%; background: radial-gradient(circle,rgba(201,150,12,.18) 0%,transparent 70%); }
.shape-1 { width: 600px; height: 600px; top: -200px; right: -150px; }
.shape-2 { width: 400px; height: 400px; bottom: -100px; left: -100px; }
.shape-3 { width: 200px; height: 200px; top: 40%; left: 30%; background: radial-gradient(circle,rgba(255,255,255,.05) 0%,transparent 70%); }

.hero-content  { position: relative; z-index: 1; max-width: 800px; }
.hero-tagline  {
  display: inline-block; background: rgba(201,150,12,.2);
  border: 1px solid rgba(201,150,12,.5); color: var(--c-gold-light);
  padding: .3rem 1rem; border-radius: 999px; font-size: .85rem;
  font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.hero-title    { color: #fff !important; margin-bottom: 1.2rem; }
.hero-subtitle { color: rgba(255,255,255,.88); font-size: 1.1rem; max-width: 620px; margin: 0 auto 2rem; }
.hero-actions  { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-section .btn-outline       { color: #fff !important; border-color: rgba(255,255,255,.6); }
.hero-section .btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff !important; }

/* Hero logo */
.hero-logo-wrap {
  display: flex; justify-content: center;
  margin-bottom: 1.5rem; position: relative; z-index: 1;
}
.hero-logo-wrap img {
  width: 110px; height: 110px; max-width: 110px;
  object-fit: contain; mix-blend-mode: screen;
  filter: brightness(1.05); border-radius: 50%; display: block;
}

/* Hero Rate Cards */
.hero-rates {
  display: flex; gap: 1rem; justify-content: center;
  align-items: center; flex-wrap: wrap; position: relative; z-index: 1;
}
.rate-card {
  background: rgba(255,255,255,.09); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-lg);
  padding: 1.5rem 2rem; text-align: center; min-width: 200px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.rate-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow-gold); }
.rate-card-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.75); margin-bottom: .4rem; }
.rate-card-flag  { font-size: 2rem; margin-bottom: .5rem; }
.rate-card-value { font-size: 2rem; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.rate-card-unit  { font-size: .72rem; color: rgba(255,255,255,.65); margin-top: .3rem; }
.rate-card-badge {
  display: inline-block; margin-top: .8rem; padding: .2rem .8rem;
  border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
}
.buy-badge  { background: rgba(18,183,106,.3);  color: #5FE8A4; }
.sell-badge { background: rgba(201,150,12,.3);  color: var(--c-gold-light); }
.buy-card  .rate-card-value { color: #5FE8A4; }
.sell-card .rate-card-value { color: var(--c-gold-light); }

.rate-divider {
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  color: rgba(255,255,255,.6); font-size: .8rem;
}
.rate-arrows     { font-size: 1.5rem; color: var(--c-gold-light); }
.rate-spread-label { font-size: .75rem; color: rgba(255,255,255,.65); }
.rate-spread-val { font-weight: 700; color: rgba(255,255,255,.85); }

/* Hero contact card (contact-us mode) */
.rate-contact-card {
  background: rgba(255,255,255,.09); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-xl);
  padding: 2.5rem 3rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
}
.rcc-icon  { font-size: 2.5rem; }
.rcc-title { font-size: 1.1rem; font-weight: 700; color: var(--c-gold-light); }
.rcc-msg   { color: rgba(255,255,255,.85); font-size: .95rem; max-width: 360px; }
.rcc-phone {
  margin-top: .5rem; color: var(--c-gold-light) !important;
  font-size: 1.3rem; font-weight: 700; letter-spacing: .02em;
  direction: ltr; unicode-bidi: embed; display: inline-block;
}
.rcc-phone:hover { color: #fff !important; }

/* ══════════════════════════════════════════════════════════
   STATS BAR
══════════════════════════════════════════════════════════ */
.stats-bar { background: var(--c-navy); padding: 2.5rem 0; border-top: 3px solid var(--c-gold); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.stat-item  { text-align: center; }
.stat-num   { display: block; font-size: 2.2rem; font-weight: 800; color: var(--c-gold-light); line-height: 1; }
.stat-label { font-size: .82rem; color: rgba(255,255,255,.8); margin-top: .4rem; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 600px) { .stats-grid { grid-template-columns: repeat(2,1fr); } }

/* ══════════════════════════════════════════════════════════
   SECTION HEADERS
══════════════════════════════════════════════════════════ */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-title  { margin-bottom: .75rem; }
.section-title::after {
  content: ''; display: block; width: 60px; height: 4px;
  background: linear-gradient(90deg,var(--c-gold),var(--c-gold-light));
  border-radius: 2px; margin: .75rem auto 0;
}
[dir="rtl"] .section-title::after { margin: .75rem auto 0; }
/* Sub-text on dark sections needs override */
.rates-section .section-sub,
.stats-bar .section-sub { color: rgba(255,255,255,.8); }
.section-sub { color: var(--c-muted); max-width: 580px; margin: 0 auto; }

/* ══════════════════════════════════════════════════════════
   SERVICES
══════════════════════════════════════════════════════════ */
.services-section { background: var(--c-surface); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 1.5rem; }
.service-card {
  background: var(--c-bg); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); padding: 2rem 1.5rem;
  text-align: center; transition: all var(--transition);
}
.service-card:hover { transform: translateY(-6px); border-color: var(--c-gold); box-shadow: var(--shadow-md); }
.svc-icon      { font-size: 2.4rem; margin-bottom: 1rem; display: block; }
.service-card h3 { margin-bottom: .5rem; font-size: 1.1rem; color: var(--c-navy); }
.service-card p  { font-size: .9rem; color: var(--c-muted); }

/* ══════════════════════════════════════════════════════════
   EXCHANGE RATES SECTION
══════════════════════════════════════════════════════════ */
.rates-section { background: linear-gradient(180deg,var(--c-navy) 0%,#0d2548 100%); color: #fff; }
.rates-section .section-title { color: #fff; }
.rates-section .section-sub   { color: rgba(255,255,255,.8); }

.rates-display {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  margin-bottom: 3rem;
}
.live-rate-block {
  background: rgba(255,255,255,.08); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius-xl);
  padding: 2.5rem 2rem; text-align: center; transition: transform var(--transition);
}
.live-rate-block:hover { transform: translateY(-4px); }
.lrb-direction { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.65); margin-bottom: .8rem; }
.lrb-flag-pair { font-size: 2rem; margin-bottom: .8rem; letter-spacing: .3em; }
.arr           { font-size: 1rem; vertical-align: middle; }
.lrb-label     { font-size: .88rem; color: rgba(255,255,255,.8); margin-bottom: .5rem; font-weight: 500; }
.lrb-value     { margin-bottom: .4rem; }
.rate-num {
  font-size: clamp(2rem,5vw,3.2rem); font-weight: 800;
  letter-spacing: -.02em; display: inline-block; transition: all .4s;
}
.buy-block  .rate-num { color: #5FE8A4; }
.sell-block .rate-num { color: var(--c-gold-light); }
.rate-num.flash-up   { color: #5FE8A4;  text-shadow: 0 0 16px rgba(95,232,164,.6); }
.rate-num.flash-down { color: #F87171; text-shadow: 0 0 16px rgba(248,113,113,.6); }
.lrb-unit { font-size: .8rem; color: rgba(255,255,255,.65); }                         /* was .45 */
.lrb-note { margin-top: .8rem; font-size: .82rem; color: rgba(255,255,255,.7); font-style: italic; } /* was .5 */

.rate-meta-strip {
  grid-column: 1 / -1; display: flex; align-items: center; gap: .8rem;
  justify-content: center; padding: .75rem 1.5rem;
  background: rgba(255,255,255,.07); border-radius: var(--radius-md);
  font-size: .85rem; color: rgba(255,255,255,.8);   /* was .6 */
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-green); flex-shrink: 0;
  animation: pulse-ring 1.8s infinite;
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(18,183,106,.6); }
  70%  { box-shadow: 0 0 0 8px rgba(18,183,106,0); }
  100% { box-shadow: 0 0 0 0 rgba(18,183,106,0); }
}
.btn-refresh {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  color: #fff; border-radius: 50%; width: 32px; height: 32px;
  cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.btn-refresh:hover { background: var(--c-gold); transform: rotate(180deg); }

@media (max-width: 640px) {
  .rates-display { grid-template-columns: 1fr; }
  .rate-meta-strip { grid-column: 1; }
}

/* ── Rate Calculator ─────────────────────────────────────── */
.rate-calculator {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-xl); padding: 2rem; margin-bottom: 2.5rem;
}
.calc-title { color: #fff; margin-bottom: 1.5rem; font-size: 1.1rem; text-align: center; font-weight: 700; }
.calc-grid  { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1rem; }
.calc-field { flex: 1; min-width: 180px; }
.calc-field label { display: block; font-size: .85rem; color: rgba(255,255,255,.85); margin-bottom: .4rem; font-weight: 500; }
.calc-input-wrap { display: flex; border-radius: var(--radius-md); overflow: hidden; }
.calc-currency {
  background: rgba(255,255,255,.15); color: var(--c-gold-light);
  padding: .75rem 1rem; font-weight: 700; font-size: .9rem;
  border: 1px solid rgba(255,255,255,.2); border-right: none; white-space: nowrap;
}
[dir="rtl"] .calc-currency { border-right: 1px solid rgba(255,255,255,.2); border-left: none; }
.calc-input-wrap input {
  flex: 1; padding: .75rem 1rem;
  background: rgba(255,255,255,.1); color: #fff;
  border: 1px solid rgba(255,255,255,.2); font-size: 1rem;
  font-family: inherit; outline: none;
}
.calc-input-wrap input[readonly] { cursor: default; color: var(--c-gold-light); font-weight: 700; }
.calc-input-wrap input::placeholder { color: rgba(255,255,255,.4); }
.calc-equals { font-size: 1.5rem; color: var(--c-gold-light); font-weight: 700; align-self: center; }
.calc-note   { font-size: .8rem; color: rgba(255,255,255,.65); text-align: center; font-style: italic; }

/* ── Rate History Chart ─────────────────────────────────── */
.rate-chart-wrap {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl); padding: 2rem;
}
.chart-title     { color: rgba(255,255,255,.9); font-size: 1rem; margin-bottom: 1.2rem; text-align: center; font-weight: 600; }
.chart-container { position: relative; height: 260px; }

/* ── Rates "Please Contact Us" mode ────────────────────── */
.rates-contact-mode {
  grid-column: 1 / -1;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-xl); padding: 3rem 2rem;
  text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: 1rem;
}
.rcm-flags   { font-size: 2.5rem; letter-spacing: .4em; }
.rcm-title   { color: #fff !important; font-size: 1.6rem; font-weight: 700; }
.rcm-msg     { color: rgba(255,255,255,.82) !important; max-width: 520px; font-size: 1rem; }
.rcm-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: .5rem; }
.rcm-hours   { color: rgba(255,255,255,.65); font-size: .88rem; margin-top: .25rem; }
.rcm-actions .btn-outline { color: #fff !important; border-color: rgba(255,255,255,.5); }
.rcm-actions .btn-outline:hover { background: rgba(255,255,255,.12); color: #fff !important; }

/* ══════════════════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════════════════ */
.about-section { background: var(--c-bg); }
.about-grid    { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 3rem; align-items: start; }
.about-text .section-title { text-align: start; }
.about-text .section-title::after { margin: .75rem 0 0; }
[dir="rtl"] .about-text .section-title::after { margin: .75rem 0 0; }
.about-text p  { margin-bottom: 1rem; color: var(--c-muted); }
.about-why h3  { margin-bottom: 1.2rem; color: var(--c-navy); }
.why-list { list-style: none; display: flex; flex-direction: column; gap: .75rem; }
.why-item { display: flex; align-items: flex-start; gap: .75rem; color: var(--c-muted); }
.why-check { color: var(--c-green); font-size: 1rem; font-weight: 700; flex-shrink: 0; margin-top: .15rem; }
.about-logo-wrap { display: flex; justify-content: center; align-items: center; padding: 2rem; }
.about-logo-wrap img { width: 220px; max-width: 100%; filter: drop-shadow(0 8px 24px rgba(0,0,0,.15)); transition: transform .3s; }
.about-logo-wrap img:hover { transform: scale(1.04); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 600px)  { .about-grid { grid-template-columns: 1fr; gap: 2rem; } .about-logo-wrap { order: -1; } }

/* ══════════════════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════════════════ */
.contact-section { background: var(--c-surface); }
.contact-grid    { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
.contact-info .section-title { text-align: start; }
.contact-info .section-title::after { margin: .75rem 0 0; }
[dir="rtl"] .contact-info .section-title::after { margin: .75rem 0 0; }
.contact-info p  { margin-bottom: 1.5rem; color: var(--c-muted); }
.contact-list    { list-style: none; display: flex; flex-direction: column; gap: 1.2rem; }
.contact-list li { display: flex; align-items: flex-start; gap: 1rem; }
.ci-icon         { font-size: 1.3rem; flex-shrink: 0; margin-top: .1rem; }
.contact-list div { display: flex; flex-direction: column; gap: .15rem; }
.contact-list strong { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); }
.contact-list a, .contact-list span { color: var(--c-navy); font-weight: 600; }
.contact-list a:hover { color: var(--c-gold-dark); }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ══════════════════════════════════════════════════════════
   FORMS
══════════════════════════════════════════════════════════ */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: .8rem; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--c-navy); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: .72rem 1rem; border: 1.5px solid var(--c-border);
  border-radius: var(--radius-md); font-family: inherit; font-size: .95rem;
  color: var(--c-text); background: var(--c-bg);
  transition: border-color var(--transition), box-shadow var(--transition); width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--c-gold);
  box-shadow: 0 0 0 3px rgba(201,150,12,.15);
}
.form-group input.invalid { border-color: var(--c-red); }
.form-group textarea { resize: vertical; min-height: 130px; }
.field-hint { font-size: .78rem; color: var(--c-muted); margin-top: .2rem; }
.form-check { flex-direction: row !important; align-items: flex-start; gap: .6rem; }
.form-check input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; margin-top: .2rem; }
.form-check label { font-weight: 400; font-size: .85rem; color: var(--c-text); }

.pass-wrap { position: relative; }
.toggle-pass {
  position: absolute; right: 12px; bottom: 10px;
  background: none; border: none; cursor: pointer; font-size: .95rem; opacity: .6;
  transition: opacity var(--transition);
}
[dir="rtl"] .toggle-pass { right: auto; left: 12px; }
.toggle-pass:hover { opacity: 1; }

.form-alert {
  padding: .65rem 1rem; border-radius: var(--radius-sm);
  font-size: .88rem; font-weight: 600; margin-bottom: .75rem; display: none;
}
.form-alert.error   { background: rgba(240,68,56,.1);  color: #b42318; display: block; }
.form-alert.success { background: rgba(18,183,106,.1); color: #0E8F54; display: block; }

.contact-form { background: var(--c-bg); padding: 2rem; border-radius: var(--radius-xl); border: 1px solid var(--c-border); }

/* ══════════════════════════════════════════════════════════
   DASHBOARD
══════════════════════════════════════════════════════════ */
.dashboard-section { background: var(--c-bg); }
.dash-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.dash-header h2 { font-size: 1.6rem; color: var(--c-navy); }
.badge { padding: .3rem .9rem; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.badge-pending  { background: rgba(245,196,66,.2);  color: #7c4f00; }
.badge-verified { background: rgba(18,183,106,.15); color: var(--c-green-dark); }

.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .dash-grid { grid-template-columns: 1fr; } }

.dash-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-xl); padding: 2rem; }
.dash-card h3 { margin-bottom: 1.5rem; font-size: 1.1rem; color: var(--c-navy); border-bottom: 1px solid var(--c-border); padding-bottom: .75rem; }

.file-drop-zone {
  border: 2px dashed var(--c-border); border-radius: var(--radius-md);
  padding: 2rem 1rem; text-align: center; cursor: pointer;
  transition: all var(--transition); position: relative;
}
.file-drop-zone:hover, .file-drop-zone.dragover { border-color: var(--c-gold); background: rgba(201,150,12,.04); }
.file-drop-icon { font-size: 2rem; display: block; margin-bottom: .5rem; }
.file-drop-text { font-size: .85rem; color: var(--c-muted); font-weight: 500; }
.file-input-hidden { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.file-preview { margin-top: .75rem; font-size: .82rem; color: var(--c-navy); font-weight: 600; }

.docs-list, .transfers-list { margin-top: 1.5rem; }
.doc-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 0; border-bottom: 1px solid var(--c-border); gap: .5rem; flex-wrap: wrap;
}
.doc-item:last-child { border-bottom: none; }
.doc-name { font-size: .88rem; font-weight: 600; color: var(--c-navy); }
.doc-meta { font-size: .78rem; color: var(--c-muted); }
.status-badge { padding: .2rem .7rem; border-radius: 999px; font-size: .73rem; font-weight: 700; white-space: nowrap; }
.status-pending    { background: rgba(245,196,66,.2);  color: #7c4f00; }
.status-approved   { background: rgba(18,183,106,.15); color: var(--c-green-dark); }
.status-rejected   { background: rgba(240,68,56,.15);  color: #b42318; }
.status-processing { background: rgba(99,102,241,.15); color: #3730a3; }
.status-completed  { background: rgba(18,183,106,.15); color: var(--c-green-dark); }
.status-cancelled  { background: rgba(100,116,139,.15);color: #334155; }
.status-failed     { background: rgba(240,68,56,.15);  color: #b42318; }

.loading-spinner {
  width: 36px; height: 36px; margin: 2rem auto;
  border: 3px solid var(--c-border); border-top-color: var(--c-gold);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════════════
   MODAL
══════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(11,31,58,.78);
  backdrop-filter: blur(4px); z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; animation: fadeIn .2s;
}
.modal-overlay[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--c-surface); border-radius: var(--radius-xl);
  padding: 2.5rem; width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto; position: relative;
  box-shadow: var(--shadow-lg); animation: slideUp .25s ease;
}
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--c-bg); border: 1px solid var(--c-border);
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 1.2rem; cursor: pointer; color: var(--c-text);  /* was --c-muted */
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); line-height: 1;
}
[dir="rtl"] .modal-close { right: auto; left: 1rem; }
.modal-close:hover { background: var(--c-red); color: #fff; border-color: var(--c-red); }
.modal-title  { font-size: 1.4rem; margin-bottom: 1.5rem; color: var(--c-navy); }
.modal-switch { text-align: center; margin-top: 1rem; font-size: .88rem; color: var(--c-muted); }
.link-btn { background: none; border: none; color: var(--c-gold-dark); font-weight: 700; cursor: pointer; font-size: inherit; text-decoration: underline; }
.modal-tab.hidden { display: none; }

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.site-footer { background: var(--c-navy); padding: 4rem 0 0; }
.footer-inner {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand p      { margin-top: .8rem; font-size: .9rem; color: rgba(255,255,255,.8); }  /* was .75 */
.austrac-note        { font-size: .78rem; color: rgba(255,255,255,.55); margin-top: .4rem; }
.footer-links, .footer-legal { display: flex; flex-direction: column; gap: .6rem; padding-top: .4rem; }
.footer-links a, .footer-legal a { color: rgba(255,255,255,.75); font-size: .9rem; transition: color var(--transition); }  /* was .65 */
.footer-links a:hover, .footer-legal a:hover { color: var(--c-gold-light); }
.footer-logo-img { width: 110px; height: 110px; object-fit: contain; mix-blend-mode: screen; filter: brightness(1.1); margin-bottom: .75rem; }
.footer-bottom   { padding: 1.2rem 0; text-align: center; font-size: .82rem; color: rgba(255,255,255,.55); }
@media (max-width: 768px) { .footer-inner { grid-template-columns: 1fr; gap: 2rem; } }

/* ══════════════════════════════════════════════════════════
   NAVBAR LOGO
══════════════════════════════════════════════════════════ */
.nav-logo-img {
  width: 36px; height: 36px; object-fit: contain;
  mix-blend-mode: multiply; border-radius: 4px; flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   ADMIN PANEL
══════════════════════════════════════════════════════════ */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px; background: var(--c-navy); flex-shrink: 0;
  padding: 2rem 0; display: flex; flex-direction: column;
  position: fixed; top: 0; bottom: 0; left: 0; overflow-y: auto;
}
[dir="rtl"] .admin-sidebar { left: auto; right: 0; }
.admin-nav { flex: 1; }
.admin-nav a {
  display: flex; align-items: center; gap: .75rem;
  padding: .8rem 1.5rem; color: rgba(255,255,255,.75);  /* was .65 */
  font-size: .9rem; transition: all var(--transition);
  border-inline-start: 3px solid transparent;
}
.admin-nav a:hover, .admin-nav a.active {
  background: rgba(255,255,255,.09); color: #fff;
  border-inline-start-color: var(--c-gold);
}
.admin-main { flex: 1; margin-inline-start: 260px; padding: 2rem; background: var(--c-bg); }
.admin-topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--c-border);
}
.admin-topbar h1 { font-size: 1.5rem; color: var(--c-navy); }
.admin-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); padding: 1.75rem; margin-bottom: 1.5rem;
}
.admin-card h2 { font-size: 1.1rem; margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 1px solid var(--c-border); color: var(--c-navy); }
.admin-table   { width: 100%; border-collapse: collapse; font-size: .88rem; }
.admin-table th {
  text-align: start; padding: .7rem 1rem; background: var(--c-bg);
  border-bottom: 2px solid var(--c-border); font-weight: 700;
  color: var(--c-navy); text-transform: uppercase; font-size: .75rem; letter-spacing: .05em;
}
.admin-table td    { padding: .7rem 1rem; border-bottom: 1px solid var(--c-border); color: var(--c-text); }
.admin-table tr:hover td { background: rgba(201,150,12,.04); }
.admin-stat-grid   { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 1rem; margin-bottom: 2rem; }
.admin-stat {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); padding: 1.5rem; text-align: center;
  border-top: 4px solid var(--c-gold);
}
.admin-stat-num   { font-size: 2rem; font-weight: 800; color: var(--c-navy); }
.admin-stat-label { font-size: .8rem; color: var(--c-muted); margin-top: .3rem; text-transform: uppercase; font-weight: 600; }

.rate-update-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.rate-current-display {
  grid-column: 1/-1; display: flex; gap: 1.5rem; flex-wrap: wrap;
  background: linear-gradient(135deg,var(--c-navy),var(--c-navy-mid));
  border-radius: var(--radius-md); padding: 1.5rem; margin-bottom: 1rem;
}
.rc-block   { flex: 1; text-align: center; }
.rc-label   { font-size: .75rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .08em; }  /* was .55 */
.rc-value   { font-size: 1.8rem; font-weight: 800; margin: .3rem 0; }
.rc-value.buy  { color: #5FE8A4; }
.rc-value.sell { color: var(--c-gold-light); }
.rc-updated { font-size: .75rem; color: rgba(255,255,255,.6); }   /* was .4 */

/* Rate mode toggle */
.rate-mode-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: .5rem; }
.mode-option {
  display: flex; flex-direction: column; gap: .25rem; padding: 1.2rem 1rem;
  border: 2px solid var(--c-border); border-radius: var(--radius-md);
  cursor: pointer; transition: all .2s; position: relative;
}
.mode-option input { position: absolute; opacity: 0; pointer-events: none; }
.mode-option:hover  { border-color: var(--c-gold); background: rgba(201,150,12,.04); }
.mode-option.active { border-color: var(--c-gold); background: rgba(201,150,12,.08); }
.mode-icon  { font-size: 1.5rem; }
.mode-label { font-weight: 700; color: var(--c-navy); font-size: .95rem; }
.mode-desc  { font-size: .78rem; color: var(--c-muted); }
@media (max-width: 500px) { .rate-mode-toggle { grid-template-columns: 1fr; } }

/* Admin extra status badges */
.badge-rejected   { background: rgba(240,68,56,.12);  color: #b42318; }
.badge-processing { background: rgba(99,102,241,.12);  color: #3730a3; }
.badge-cancelled  { background: rgba(100,116,139,.12); color: #334155; }

@media (max-width: 900px) {
  .admin-sidebar { position: relative; width: 100%; height: auto; bottom: auto; flex-direction: row; flex-wrap: wrap; padding: 1rem; }
  .admin-main    { margin-inline-start: 0; padding: 1rem; }
  .admin-wrap    { flex-direction: column; }
  .rate-update-form { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════
   UTILITIES
══════════════════════════════════════════════════════════ */
.hidden      { display: none !important; }
.text-center { text-align: center; }

[data-aos] { opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .5s; }
[data-aos].aos-animate { opacity: 1; transform: none; }

::-webkit-scrollbar       { width: 8px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: var(--c-muted-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--c-muted); }

:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 2px; }

@media print {
  .navbar, .rate-ticker, .site-footer, .modal-overlay, .nav-toggle { display: none !important; }
  .section { padding: 1rem 0; }
}
