/* ============================================================================
   AURICA Jewellery Trading L.L.C — Design System
   Palette follows the Aurica Live Rates board: dark olive, metallic gold,
   warm cream, emerald positive / ruby negative.
   ========================================================================== */

:root {
  --au-gold: #b39521;
  --au-gold-light: #e4c160;
  --au-gold-pale: #f0d481;
  --au-gold-deep: #9d741a;
  --au-olive: #272600;
  --au-dark: #171700;
  --au-olive-2: #3e3900;
  --au-cream: #fbf4f0;
  --au-paper: #fffdf9;
  --au-green: #1ca24a;
  --au-red: #c94b40;
  --au-text: #151515;
  --au-muted: #77704c;
  --au-faint: #b5ab85;
  --au-line: rgba(73, 70, 45, 0.35);
  --au-soft: rgba(73, 70, 45, 0.14);
  --au-gold-grad: linear-gradient(90deg, #d6ac46, #f0d481, #d6ac46);
  --au-dark-grad: linear-gradient(90deg, #181800, #333000 50%, #181800);
  --au-shadow: 0 12px 30px rgba(72, 54, 0, 0.13);
  --au-radius: 14px;
  --au-serif: Georgia, "Times New Roman", serif;
  --au-sans: "Segoe UI", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html, body { min-width: 320px; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  isolation: isolate;
  color: var(--au-text);
  background:
    radial-gradient(circle at 14% 22%, rgba(202, 170, 92, 0.14), transparent 26%),
    radial-gradient(circle at 86% 70%, rgba(179, 149, 33, 0.12), transparent 26%),
    linear-gradient(135deg, #fff 0%, #fbf3ee 52%, #fff 100%);
  background-attachment: fixed;
  font-family: var(--au-sans);
  line-height: 1.5;
}

/* Scroll-linked bullion watermark. The element is injected by ma-common.js so
   every portal page shares the same quiet, theme-specific background motion. */
.aurica-scroll-pattern {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.72;
  contain: strict;
}
.aurica-scroll-pattern__layer {
  position: absolute;
  inset: -18vh -10vw;
  will-change: transform;
}
.aurica-scroll-pattern__layer--far {
  transform: translate3d(0, var(--au-pattern-far-shift, 0px), 0)
    rotate(var(--au-pattern-far-rotate, 0deg));
}
.aurica-scroll-pattern__layer--near {
  transform: translate3d(0, var(--au-pattern-near-shift, 0px), 0)
    rotate(var(--au-pattern-near-rotate, 0deg));
}
.aurica-pattern-coin,
.aurica-pattern-ingot {
  position: absolute;
  display: block;
  color: rgba(157, 116, 26, 0.1);
}
.aurica-pattern-coin {
  width: clamp(110px, 13vw, 190px);
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 11px rgba(179, 149, 33, 0.025),
    inset 0 0 0 12px currentColor;
}
.aurica-pattern-coin::before,
.aurica-pattern-coin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
  border: 1px solid currentColor;
}
.aurica-pattern-coin::before {
  width: 29%;
  height: 44%;
  border-width: 0 1px 1px 0;
}
.aurica-pattern-coin::after {
  width: 48%;
  height: 1px;
  border-width: 1px 0 0;
  box-shadow: 0 -9px 0 rgba(157, 116, 26, 0.07), 0 9px 0 rgba(157, 116, 26, 0.07);
}
.aurica-pattern-ingot {
  width: clamp(130px, 16vw, 230px);
  height: clamp(64px, 8vw, 116px);
  border: 1px solid currentColor;
  border-radius: 42% 42% 18% 18% / 32% 32% 18% 18%;
  transform: skewX(-10deg) rotate(var(--ingot-angle, -12deg));
}
.aurica-pattern-ingot::after {
  content: "999.9";
  position: absolute;
  inset: 22% 15%;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  color: rgba(157, 116, 26, 0.09);
  font-size: clamp(11px, 1.1vw, 16px);
  font-weight: 800;
  letter-spacing: 0.18em;
}
.aurica-pattern-coin:nth-child(1) { top: 9%; left: 5%; }
.aurica-pattern-coin:nth-child(2) { top: 54%; right: 9%; transform: scale(0.72); }
.aurica-pattern-coin:nth-child(3) { bottom: 3%; left: 36%; transform: scale(0.48); }
.aurica-pattern-ingot:nth-child(1) { top: 18%; right: 7%; --ingot-angle: -14deg; }
.aurica-pattern-ingot:nth-child(2) { bottom: 13%; left: 8%; --ingot-angle: 11deg; transform: skewX(-10deg) rotate(var(--ingot-angle)) scale(0.76); }
.aurica-pattern-ingot:nth-child(3) { top: 57%; left: 44%; --ingot-angle: -7deg; transform: skewX(-10deg) rotate(var(--ingot-angle)) scale(0.52); }

.ticker,
main,
.site-footer { position: relative; z-index: 1; }

h1, h2, h3 { line-height: 1.15; }
a { color: var(--au-gold-deep); }
img { max-width: 100%; }

.hidden { display: none !important; }

/* ---- Scrollbar ---------------------------------------------------------- */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #efe7da; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #d6ac46, #9d741a);
  border-radius: 8px;
  border: 3px solid #efe7da;
}

/* ============================================================================
   Header
   ========================================================================== */
.site-header { position: relative; z-index: 20; }

.logo-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 20px 18px;
}

.aurica-logo {
  position: relative;
  width: 300px;
  max-width: 72vw;
  animation: floatLogo 7s ease-in-out infinite;
  filter: drop-shadow(0 10px 22px rgba(93, 72, 8, 0.28));
}
.aurica-logo img { display: block; width: 100%; height: auto; }

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

/* ============================================================================
   Navigation
   ========================================================================== */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--au-dark-grad);
  border-bottom: 2px solid rgba(228, 193, 96, 0.55);
  box-shadow: 0 8px 24px rgba(46, 38, 0, 0.22);
}
.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 10px;
  overflow: visible;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 4px;
  color: var(--au-gold-light);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 14px;
}
.nav-brand small { display: block; color: var(--au-faint); font-weight: 600; letter-spacing: 0.08em; font-size: 9px; }
.nav-brand img { height: 34px; width: auto; border-radius: 6px; background: #fff; padding: 2px; }

.nav-links { display: flex; align-items: stretch; list-style: none; margin: 0; padding: 0; }

.nav-links .nav-item { position: relative; }

.nav-links .nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 76px;
  padding: 10px 12px 9px;
  color: #dfc686;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-bottom: 3px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.nav-links .nav-link i { font-size: 22px; color: #f4e5bd; transition: transform 0.3s ease; }
.nav-links .nav-link:hover { color: #fff; background: rgba(228, 193, 96, 0.08); border-bottom-color: var(--au-gold-light); }
.nav-links .nav-link:hover i { transform: translateY(-2px); }
.nav-links .nav-link.active,
.nav-links .nav-link[aria-current="page"] {
  color: #fff;
  background: rgba(228, 193, 96, 0.14);
  border-bottom-color: var(--au-gold-light);
}
.nav-links .nav-link.active i { color: var(--au-gold-pale); }

.nav-hamburger {
  display: none;
  margin-left: auto;
  padding: 12px 16px;
  color: #f4e5bd;
  background: transparent;
  border: 0;
  font-size: 26px;
  cursor: pointer;
}
.nav-hamburger:hover { color: #fff; }

/* Mobile drawer */
@media (max-width: 991px) {
  /* The drawer is a fixed child of .main-nav, so it is painted inside that
     element's stacking context. Lift the whole nav while the drawer is open,
     otherwise the ticker, main and footer paint over the menu. */
  body.nav-open .main-nav { z-index: 95; }
  body.nav-open { overflow: hidden; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -320px;
    width: min(300px, 86vw);
    height: 100vh;
    height: 100dvh;
    display: block;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 18px;
    background: linear-gradient(180deg, #191900, #2b2900);
    box-shadow: -18px 0 40px rgba(0, 0, 0, 0.35);
    transition: right 0.28s ease;
    z-index: 60;
  }
  body.nav-open .nav-links { right: 0; }
  .nav-links .nav-item { border-bottom: 1px solid rgba(228, 193, 96, 0.18); }
  .nav-links .nav-link {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    min-width: 0;
    padding: 13px 14px;
    border-bottom: 0;
  }
  .nav-links .nav-link i { font-size: 17px; width: 24px; text-align: center; }
  .nav-hamburger { display: block; }
  .nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(20, 18, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
  }
  body.nav-open .nav-scrim { opacity: 1; pointer-events: auto; }
}

/* ============================================================================
   Ticker
   ========================================================================== */
.ticker {
  overflow: hidden;
  background: linear-gradient(90deg, #c49a32, #e4c160 50%, #c49a32);
  border-bottom: 1px solid rgba(23, 23, 0, 0.35);
}
.ticker-track {
  display: inline-flex;
  gap: 26px;
  white-space: nowrap;
  padding: 7px 0;
  animation: tickerScroll 38s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2c2600;
  font-size: 13px;
  font-weight: 800;
}
.ticker-chip .sym { opacity: 0.75; }
.ticker-chip .px { padding: 1px 9px; background: rgba(255, 255, 255, 0.55); border-radius: 20px; font-variant-numeric: tabular-nums; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================================
   Layout
   ========================================================================== */
.content-width {
  width: 100%;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

.page-wrap { min-height: 100vh; }

main.app-content { padding: 30px 0 44px; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 28px 0 22px; }
.page-head h1 { margin: 0; color: #302e05; font-size: 30px; font-weight: 800; letter-spacing: 0.4px; }
.page-head h1 small { display: block; color: var(--au-muted); font-size: 13px; font-weight: 700; margin-top: 6px; }
.page-head p { margin: 7px 0 0; color: var(--au-muted); font-size: 14px; }

.eyebrow {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--au-gold-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading { margin: 32px 0 16px; text-align: center; }
.section-heading h1 { margin: 0; color: #302e05; font-size: 30px; font-weight: 800; letter-spacing: 0.5px; }
.section-heading p { margin: 5px 0 0; color: var(--au-muted); font-size: 15px; }

/* ---- Panels ------------------------------------------------------------- */
.glass,
.panel {
  background: var(--au-paper);
  border: 1px solid #d9c98f;
  border-radius: var(--au-radius);
  box-shadow: var(--au-shadow);
}
.panel-pad { padding: 22px; }

.feature-note {
  padding: 12px 16px;
  color: #554b1b;
  background: rgba(228, 193, 96, 0.22);
  border: 1px solid rgba(196, 154, 50, 0.5);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.calc-error { color: var(--au-red); font-weight: 800; font-size: 13px; min-height: 18px; margin: 8px 0 0; }

/* ---- Buttons & pills ---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  padding: 11px 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ece1c0, #ddcc96);
  color: #2c2600;
  box-shadow: 0 4px 10px rgba(72, 54, 0, 0.18);
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(72, 54, 0, 0.24); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn.primary {
  background: var(--au-gold-grad);
  color: #241f00;
}
.btn.buy { background: linear-gradient(180deg, #23b85a, #0f8a3e); color: #fff; }
.btn.sell { background: linear-gradient(180deg, #d95f52, #b53a30); color: #fff; }
.btn.danger { background: linear-gradient(180deg, #d95f52, #b53a30); color: #fff; }
.btn.block { display: flex; width: 100%; }
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 2px solid #9d741a;
  background: rgba(255, 255, 255, 0.5);
  color: #554b1b;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.pill-btn:hover { transform: translateY(-2px); background: #fff; box-shadow: 0 6px 14px rgba(72, 54, 0, 0.2); }
.pill-btn.accent { background: var(--au-dark); border-color: var(--au-dark); color: var(--au-gold-light); }
.pill-btn.accent:hover { background: var(--au-olive); color: #fff; }

.tax-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.btn-row { display: flex; gap: 12px; margin-top: 16px; }
.btn-row .btn { flex: 1; }

/* ---- Fields ------------------------------------------------------------- */
.field { display: block; margin-bottom: 14px; }
.field > span {
  display: block;
  margin-bottom: 6px;
  color: #4a4216;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #d9c98f;
  border-radius: 10px;
  background: #fff;
  color: var(--au-text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--au-gold);
  box-shadow: 0 0 0 3px rgba(179, 149, 33, 0.18);
}
.field input[readonly] { background: #f4efdf; color: #6a6236; }
.field textarea { min-height: 96px; resize: vertical; }
.field.field-comment textarea { min-height: 62px; }
.field-comment em { color: var(--au-muted); font-style: normal; font-weight: 600; }
.trade-note { color: #5c5433 !important; margin-top: 6px !important; white-space: normal; }
.trade-note i { margin-right: 5px; color: #8a7c3f; }

.field-help { color: var(--au-muted); font-size: 12px; margin: 6px 0 10px; }

/* ============================================================================
   Tables
   ========================================================================== */
.rates-table,
.data-table {
  border-collapse: separate;
  border-spacing: 0 10px;
  width: 100%;
  table-layout: fixed;
}

.data-table thead th {
  position: sticky;
  top: 0;
  padding: 14px 16px;
  color: #292500;
  background: Var(--au-gold-grad);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: left;
  border-bottom: 2px solid #8f6f1d;
}
.data-table thead th:first-child { border-radius: 11px 0 0 0; }
.data-table thead th:last-child { border-radius: 0 11px 0 0; }

.data-table tbody td,
.data-table tbody th {
  padding: 14px 16px;
  background: rgba(255, 250, 247, 0.94);
  border-top: 2px solid #49462d;
  border-bottom: 2px solid #49462d;
  font-size: 14px;
  vertical-align: middle;
}
.data-table tbody th { font-weight: 800; color: #3a3208; text-align: left; }
.data-table tbody td small,
.data-table tbody th small { display: block; color: var(--au-muted); font-size: 11px; font-weight: 600; margin-top: 3px; }
.data-table tbody tr:first-child td:first-child,
.data-table tbody tr:first-child th:first-child { border-left: 2px solid #49462d; border-radius: 12px 0 0 12px; }
.data-table tbody tr:first-child td:last-child { border-right: 2px solid #49462d; border-radius: 0 12px 12px 0; }
.data-table tbody tr { filter: drop-shadow(0 4px 5px rgba(58, 47, 14, 0.07)); transition: background 0.2s ease; }
.data-table tbody tr:hover { filter: drop-shadow(0 6px 8px rgba(58, 47, 14, 0.13)); }

.empty-state { text-align: center; color: var(--au-muted); font-weight: 700; font-size: 14px; }
.empty-state a { font-weight: 800; }

.table-scroll { overflow: auto; max-height: 640px; }

/* Side labels / pills */
.side-label { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.side-label.buy { background: rgba(28, 162, 74, 0.16); color: #0b7a37; }
.side-label.sell { background: rgba(201, 75, 64, 0.16); color: #a0372e; }

.order-rate-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f0e8cf;
  color: #3a3208;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  transition: background 0.35s ease, color 0.35s ease;
}
.order-rate-pill.is-up { background: rgba(28, 162, 74, 0.18); color: #0b7a37; animation: upFlash 0.6s ease; }
.order-rate-pill.is-down { background: rgba(201, 75, 64, 0.18); color: #a0372e; animation: downFlash 0.6s ease; }
@keyframes upFlash { 0% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes downFlash { 0% { transform: scale(1.12); } 100% { transform: scale(1); } }

.order-actions { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.order-actions .btn { padding: 7px 14px; font-size: 12px; }
.order-actions-cell { text-align: right; }

/* ============================================================================
   Read-out grids (buy/sell)
   ========================================================================== */
.readout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.readout {
  padding: 12px;
  text-align: center;
  border: 1px solid #d9c98f;
  border-radius: 12px;
  background: var(--au-dark);
  color: #fff;
}
.readout .lbl { display: block; color: #d5b252; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.readout .val { display: block; margin-top: 4px; font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; }
.readout .val.up { color: var(--au-green); }
.readout .val.down { color: var(--au-red); }

.glass.panel-pad { position: relative; isolation: isolate; }
.segmented {
  position: relative;
  z-index: 20;
  display: flex;
  gap: 8px;
  padding: 6px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(73, 70, 45, 0.12);
  pointer-events: auto !important;
  isolation: isolate;
}
.segmented .order-mode-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  opacity: 0;
  pointer-events: none;
}
.segmented .mode-option {
  position: relative;
  z-index: 21;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 46px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--au-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  pointer-events: auto !important;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: rgba(179, 149, 33, 0.22);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.segmented .order-mode-radio:checked + .mode-option { background: var(--au-gold-grad); color: #241f00; box-shadow: 0 4px 12px rgba(72, 54, 0, 0.24); }
.segmented .order-mode-radio:focus-visible + .mode-option { outline: 3px solid rgba(179, 149, 33, 0.38); outline-offset: 2px; }
.segmented .mode-option i { margin-right: 6px; }

.order-scrip-name { text-align: center; color: #4a4216; font-weight: 800; font-size: 16px; margin: 2px 0 12px; }

.order-gate { margin: 0 0 14px; color: var(--au-gold-deep); font-size: 13px; font-weight: 700; }
.order-gate:empty { display: none; }

/* ============================================================================
   Home
   ========================================================================== */
.home-hero { margin-top: 26px; }
.home-slider {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #d9c98f;
  background:
    radial-gradient(circle at 12% 18%, rgba(228, 193, 96, 0.16), transparent 34%),
    radial-gradient(circle at 92% 80%, rgba(228, 193, 96, 0.14), transparent 34%),
    linear-gradient(135deg, #fffdf9, #f7edda);
  box-shadow: var(--au-shadow);
}
.home-slide { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; align-items: center; padding: 40px 42px; min-height: 340px; }
.home-slide[hidden] { display: none; }
.home-script {
  margin: 0 0 8px;
  color: var(--au-gold-deep);
  font-family: var(--au-serif);
  font-style: italic;
  font-size: 17px;
}
.home-slide h1, .home-slide h2 { margin: 0 0 12px; color: #2c2a03; font-size: 38px; font-weight: 900; letter-spacing: -0.02em; }
.home-slide p { margin: 0 0 20px; color: #5f5733; font-size: 16px; max-width: 480px; }
.home-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.home-text-link { color: var(--au-gold-deep); font-weight: 800; text-decoration: none; border-bottom: 2px solid rgba(157, 116, 26, 0.35); padding-bottom: 3px; }
.home-text-link:hover { border-bottom-color: var(--au-gold-deep); }
.home-metal-art { position: relative; height: 220px; }
.home-metal-art img { position: absolute; width: 150px; filter: drop-shadow(0 14px 18px rgba(93, 72, 8, 0.3)); }
.home-metal-art img:nth-child(1) { top: 22px; left: 6%; animation: floatCoin 6s ease-in-out infinite; }
.home-metal-art img:nth-child(2) { bottom: 20px; right: 4%; width: 130px; animation: floatCoin 7s ease-in-out infinite 0.8s; }
@keyframes floatCoin {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-12px) rotate(4deg); }
}
.home-slider-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 42px;
  border-top: 1px solid #e3d6ac;
}
.home-slider-controls button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #9d741a;
  background: #fff;
  color: #554b1b;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.home-slider-controls button:hover { background: var(--au-gold-grad); transform: scale(1.06); }
#homeSlideCount { font-weight: 900; color: #4a4216; letter-spacing: 0.1em; }
.home-slide-hint { margin-left: auto; color: var(--au-muted); font-size: 12px; font-weight: 700; }

.home-section-nav { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 26px 0 10px; }
.home-section-nav a {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid #d9c98f;
  color: #5a511f;
  background: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}
.home-section-nav a:hover, .home-section-nav a[aria-current="true"] { background: var(--au-dark); color: var(--au-gold-light); }

.home-section { padding: 34px 0; border-bottom: 1px dashed #d9c98f; }
.home-section:last-child { border-bottom: 0; }
.home-about, .home-visit, .home-services, .home-bullion { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.home-section h2 { margin: 0 0 10px; color: #2c2a03; font-size: 28px; font-weight: 900; }
.home-lead { font-size: 17px; color: #4a4216; font-weight: 700; }
.home-facts { display: flex; gap: 14px; flex-wrap: wrap; margin: 20px 0 0; }
.home-facts div { padding: 12px 16px; border-left: 4px solid var(--au-gold); background: rgba(228, 193, 96, 0.16); border-radius: 0 10px 10px 0; }
.home-facts dt { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--au-muted); }
.home-facts dd { margin: 2px 0 0; font-weight: 800; color: #3a3208; }
.home-bullion-art { text-align: center; }
.home-bullion-art img { width: 210px; filter: drop-shadow(0 16px 22px rgba(93, 72, 8, 0.3)); animation: floatCoin 7s ease-in-out infinite; }
.home-service-links { display: grid; gap: 12px; }
.home-service-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid #d9c98f;
  border-radius: 12px;
  background: #fffdf9;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(72, 54, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.home-service-links a:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(72, 54, 0, 0.16); border-color: var(--au-gold); }
.home-service-links strong { display: block; color: #3a3208; }
.home-service-links small { color: var(--au-muted); font-size: 12px; }
.home-service-links span:last-child { color: var(--au-gold-deep); font-size: 20px; }

.home-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; margin: 4px 0 0; padding: 0; }
.home-steps li { padding: 20px; border: 1px solid #d9c98f; border-radius: 14px; background: #fffdf9; box-shadow: 0 6px 14px rgba(72, 54, 0, 0.08); }
.home-steps li::before {
  content: counter(step);
  counter-increment: step;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--au-gold-grad);
  color: #241f00;
  font-weight: 900;
}
.home-steps { counter-reset: step; }
.home-steps h3 { margin: 0 0 6px; color: #3a3208; font-size: 17px; }
.home-steps p { margin: 0 0 10px; color: var(--au-muted); font-size: 13px; }
.home-steps a { font-weight: 800; font-size: 13px; }
.home-visit address { font-style: normal; color: #4a4216; font-size: 16px; font-weight: 600; line-height: 1.8; margin: 0 0 18px; }

/* Reveal on scroll */
[data-home-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-home-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-home-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ============================================================================
   Contact page
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 22px; }
.panel-title { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; color: #3a3208; font-size: 18px; }
.panel-title .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--au-gold-grad); box-shadow: 0 0 0 4px rgba(228, 193, 96, 0.3); animation: pulseGlow 2.6s ease-in-out infinite; }
.contact-row { display: flex; gap: 14px; margin-bottom: 15px; }
.contact-row .glyph { flex: 0 0 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--au-dark); color: var(--au-gold-light); font-size: 19px; box-shadow: 0 0 0 3px rgba(228, 193, 96, 0.25); }
.contact-row strong { display: block; color: #3a3208; }
.contact-row p, .contact-row a { margin: 2px 0 0; color: #5f5733; font-size: 14px; text-decoration: none; }
.contact-row a:hover { color: var(--au-gold-deep); }
.contact-map { width: 100%; height: 240px; margin-top: 8px; border: 0; border-radius: 12px; filter: saturate(0.85); }

.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
  padding: 12px 22px;
  color: #fff;
  border: 7px solid #fff;
  border-radius: 40px;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.18);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-button:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.22); }
.contact-button i { font-size: 26px; }
.contact-button.call { background: linear-gradient(180deg, #8f7f00, #6b5f00); }
.contact-button.whatsapp { background: linear-gradient(180deg, #1fb04e, #0e6f2c); }
.contact-row-buttons { display: flex; justify-content: center; gap: 26px; margin: 30px 0 8px; flex-wrap: wrap; }

/* ============================================================================
   Messages / bank cards
   ========================================================================== */
.stagger-wrap { display: grid; gap: 14px; }
.bank-card {
  padding: 20px 22px;
  border: 1px solid #d9c98f;
  border-radius: 14px;
  background: #fffdf9;
  box-shadow: 0 6px 14px rgba(72, 54, 0, 0.08);
}
.bank-card p { margin: 8px 0 0; color: var(--au-muted); font-size: 12px; }
.bank-card h3 { margin: 0 0 6px; color: #3a3208; }
.bank-card hr { border: 0; border-top: 1px dashed #d9c98f; margin: 12px 0; }
.bank-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

/* ============================================================================
   Gold trend
   ========================================================================== */
.trend-card { max-width: 100%; overflow: hidden; }
.trend-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "title price time" "title change time";
  align-items: center;
  gap: 2px 18px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid #49462d;
}
.trend-title { grid-area: title; display: inline-flex; align-items: center; gap: 9px; color: var(--au-muted); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; white-space: nowrap; }
.trend-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--au-green); box-shadow: 0 0 0 0 rgba(28, 162, 74, 0.55); animation: trendPulse 1.7s ease-out infinite; }
.trend-price { grid-area: price; color: #302e05; font-size: 34px; font-weight: 900; line-height: 1; text-align: right; font-variant-numeric: tabular-nums; }
.trend-change { grid-area: change; font-size: 14px; font-weight: 800; text-align: right; white-space: nowrap; }
.trend-change.is-up { color: var(--au-green); }
.trend-change.is-down { color: var(--au-red); }
.trend-change.is-flat { color: var(--au-muted); }
.trend-time { grid-area: time; color: var(--au-muted); font-size: 12px; font-weight: 700; text-align: right; white-space: nowrap; }
.trend-chart-wrap { position: relative; width: 100%; height: 340px; }
.trend-chart-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.trend-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--au-muted); font-size: 14px; font-weight: 800; pointer-events: none; }
.trend-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 2px solid #49462d; }
.trend-stats > div { border: 1px solid #e2cfa2; border-radius: 10px; padding: 12px 14px; background: #f6efdd; text-align: center; }
.trend-stats span { display: block; color: var(--au-muted); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.trend-stats strong { display: block; margin-top: 4px; color: #302e05; font-size: 19px; font-weight: 900; font-variant-numeric: tabular-nums; }
@keyframes trendPulse {
  0% { box-shadow: 0 0 0 0 rgba(28, 162, 74, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(28, 162, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(28, 162, 74, 0); }
}

/* ============================================================================
   KYC
   ========================================================================== */
.kyc-form fieldset { margin: 0 0 18px; padding: 18px; border: 1px solid #d9c98f; border-radius: 12px; background: rgba(255, 255, 255, 0.55); }
.kyc-form legend { padding: 0 10px; color: #4a4216; font-weight: 800; font-size: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 16px; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 14px; color: #4a4216; font-size: 13px; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--au-gold-deep); }
.kyc-review { margin-top: 20px; padding: 22px; border: 1px solid #b39521; border-radius: 14px; background: rgba(228, 193, 96, 0.14); }
.kyc-review h2 { margin: 0 0 14px; color: #3a3208; }
.review-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; margin: 0 0 12px; }
.review-details div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; background: #fffdf9; border-radius: 8px; }
.review-details dt { color: var(--au-muted); font-size: 12px; font-weight: 800; }
.review-details dd { margin: 0; font-size: 13px; font-weight: 800; text-align: right; word-break: break-word; }

/* ============================================================================
   Login
   ========================================================================== */
.auth-card { max-width: 440px; margin: 26px auto 0; padding: 26px; }
.auth-demo-note {
  max-width: 440px;
  margin: 14px auto 0;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px dashed #9d741a;
  background: rgba(228, 193, 96, 0.18);
  color: #554b1b;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.action-status { text-align: center; color: #5a511f; font-weight: 800; font-size: 13px; min-height: 18px; margin: 14px 0 0; }

/* ============================================================================
   Toolbar
   ========================================================================== */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 6px; }
.toolbar p { margin: 0; color: var(--au-muted); font-size: 13px; font-weight: 700; }
.toolbar .btn { padding: 8px 16px; font-size: 12px; }

/* ============================================================================
   Dialog
   ========================================================================== */
dialog {
  border: 1px solid #9d741a;
  border-radius: 16px;
  background: #fffdf9;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  padding: 0;
  width: min(440px, calc(100vw - 32px));
}
dialog::backdrop { background: rgba(20, 18, 0, 0.55); }
dialog form { padding: 24px; }
dialog h2 { margin: 0 0 6px; color: #3a3208; font-size: 20px; }
dialog p { color: var(--au-muted); font-size: 13px; }

/* ============================================================================
   Footer
   ========================================================================== */
.footer-welcome {
  position: relative;
  overflow: hidden;
  padding: 12px 20px;
  color: #2c2600;
  background: linear-gradient(90deg, #c49a32, #e4c160 50%, #9d741a);
  text-align: center;
  font-size: 18px;
  font-weight: 800;
}
.footer-welcome i { margin-left: 8px; animation: fa-spin 8s linear infinite; }
.footer-nav { background: var(--au-dark-grad); border-top: 1px solid rgba(228, 193, 96, 0.55); }
.footer-nav-inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 10px;
}
.footer-nav .nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 18px 11px;
  color: #dfc686;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  border-bottom: 3px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-nav .nav-link i { font-size: 22px; color: #f4e5bd; }
.footer-nav .nav-link:hover, .footer-nav .nav-link.active { color: #fff; border-bottom-color: var(--au-gold-light); }
.footer-company { padding: 22px 16px 8px; color: #cfc488; background: var(--au-dark); text-align: center; font-size: 13px; }
.footer-company strong { color: var(--au-gold-light); }
.copyright { padding: 10px 20px 14px; color: #d7d7d7; background: #050505; font-size: 12px; text-align: center; }
.copyright a { color: var(--au-gold-light); }

/* ============================================================================
   Reveal + entrance animations
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .aurica-logo, .ticker-track {
    animation: none !important;
  }
  .reveal, [data-home-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .home-slide { grid-template-columns: 1fr; padding: 30px 26px; min-height: 0; }
  .home-metal-art { height: 160px; }
  .home-about, .home-visit, .home-services, .home-bullion { grid-template-columns: 1fr; gap: 18px; }
  .home-steps { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-grid, .review-details, .bank-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .trend-head { grid-template-columns: 1fr auto; grid-template-areas: "title time" "price price" "change change"; gap: 6px 10px; }
  .trend-title, .trend-time { white-space: normal; }
  .trend-price { text-align: left; }
  .trend-change { text-align: left; }
  .trend-chart-wrap { height: 260px; }
  .trend-stats { grid-template-columns: 1fr; gap: 8px; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .readout-grid, .btn-row { grid-template-columns: 1fr; }
  .data-table { min-width: 760px; }
}

/* ============================================================================
   Supplementary: header compact layout, footer grid, utility + page extras
   ========================================================================== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--au-dark);
  color: var(--au-gold-light);
  font-weight: 800;
}
.skip-link:focus { left: 8px; top: 8px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 14px 16px;
}
.logo-area { position: relative; flex-direction: row; gap: 14px; padding: 0; }
.aurica-logo { width: 64px; max-width: none; margin: 0; animation: none; }
.logo-name { display: flex; flex-direction: column; min-width: 0; margin: 0; line-height: 1.25; text-align: left; }
.logo-name strong {
  font-family: var(--au-serif);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--au-gold-deep);
  text-shadow: none;
}
.logo-name span {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--au-gold-deep);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .logo-name strong {
    background-image: linear-gradient(92deg, #6f5209 0%, #8a6410 22%, #b39521 50%, #8a6410 78%, #6f5209 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .logo-name span {
    background-image: linear-gradient(90deg, #6f5209, #8a6410 50%, #6f5209);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
.nav-inner { overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.nav-inner::-webkit-scrollbar { display: none; }

/* Footer grid */
.site-footer { background: var(--au-dark); color: #d8d2b6; }
.footer-welcome { position: relative; overflow: hidden; padding: 12px 20px; color: #2c2600; background: linear-gradient(90deg, #c49a32, #e4c160 50%, #9d741a); text-align: center; font-size: 18px; font-weight: 800; }
.footer-welcome i { margin-left: 8px; animation: fa-spin 8s linear infinite; }
.footer-grid { display: grid; grid-template-columns: 1.25fr 1fr 1.1fr; gap: 26px; padding: 30px 16px 18px; }
.footer-brief p { margin: 0 0 10px; font-size: 13px; line-height: 1.6; color: #b9b294; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--au-serif); font-size: 22px; color: var(--au-gold-light); }
.footer-brand img { height: 34px; width: auto; border-radius: 8px; background: #fff; padding: 2px; }
.footer-brand small { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; color: var(--au-faint); }
.footer-legal { color: var(--au-gold-light) !important; font-weight: 700; margin-top: 4px !important; }
.footer-title { margin: 0 0 10px; color: var(--au-gold-light); font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.footer-nav {
  background: none;
  border-top: 0;
}
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-nav .nav-link {
  flex-direction: row;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  font-size: 13px;
}
.footer-nav .nav-link i { font-size: 15px; width: 20px; text-align: center; }
.footer-contact p { margin: 0 0 8px; font-size: 13px; line-height: 1.6; color: #b9b294; }
.footer-contact i { color: var(--au-gold-light); margin-right: 6px; }
.footer-contact a { color: #f0d58e; font-weight: 700; text-decoration: none; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; align-items: center; padding: 14px 16px; border-top: 1px solid rgba(228, 193, 96, 0.25); font-size: 12px; color: #a89f7d; }
.footer-status { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; }
.footer-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #28b463; box-shadow: 0 0 0 0 rgba(40, 180, 99, 0.5); animation: statusPulse 2s ease-out infinite; }
.footer-status.feed-error::before { background: #c94b40; box-shadow: 0 0 0 0 rgba(201, 75, 64, 0.5); }
@keyframes statusPulse {
  0% { box-shadow: 0 0 0 0 rgba(40, 180, 99, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(40, 180, 99, 0); }
  100% { box-shadow: 0 0 0 0 rgba(40, 180, 99, 0); }
}

/* Form extras */
.field-span { grid-column: 1 / -1; }
.form-error { min-height: 18px; margin: 4px 0; color: var(--au-red); font-weight: 800; font-size: 13px; }
.form-error.is-visible { padding: 10px 12px; border-radius: 10px; background: rgba(201, 75, 64, 0.1); border: 1px solid rgba(201, 75, 64, 0.4); }

/* Home spot cards */
.pill-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 6px; }
#spotCards .pill-btn {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #fffdf9;
  box-shadow: 0 6px 16px rgba(72, 54, 0, 0.1);
}
#spotCards .pill-btn strong { font-size: 26px; font-weight: 900; color: #2c2a03; font-variant-numeric: tabular-nums; }
#spotCards .pill-btn small { color: var(--au-muted); font-weight: 700; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.pill-head { display: flex; align-items: center; gap: 8px; color: var(--au-gold-deep); font-size: 15px; font-weight: 800; }
.pill-head i { font-size: 19px; animation: floatCoin 5s ease-in-out infinite; }

/* General info banner (buysell / trades / contact) */
.gt-info { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 20px 22px; border: 1px solid #d9c98f; border-radius: 14px; background: rgba(255, 255, 255, 0.55); }
.gt-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--au-gold-grad); color: #241f00; font-size: 22px; }
.gt-info h2 { margin: 0 0 6px; color: #3a3208; font-size: 18px; }
.gt-info p { margin: 0; color: var(--au-muted); font-size: 14px; line-height: 1.6; }

/* Feature list (login page) */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.feature-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(228, 193, 96, 0.14); font-weight: 700; color: #4a4216; font-size: 14px; }
.feature-list i { color: var(--au-gold-deep); }

/* Login pages */
.login-page .login-card { margin-bottom: 18px; }
.login-card { max-width: 720px; }

/* Trades page extras */
.panel-head-actions { justify-content: space-between; margin: 0 0 14px; }

/* Messages page */
.messages-layout { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 20px; align-items: start; }
.message-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 480px; overflow-y: auto; }
.message-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid #d9c98f;
  border-radius: 10px;
  background: #fffdf9;
  cursor: pointer;
  font-weight: 800;
  color: #3a3208;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.message-item:hover, .message-item:focus, .message-item.is-active { background: var(--au-dark); border-color: var(--au-dark); color: var(--au-gold-light); }
.message-item .message-subject { min-width: 0; }
.message-item .message-date { flex: 0 0 auto; color: var(--au-muted); font-size: 11px; font-weight: 700; }
.message-item.is-active .message-date { color: var(--au-faint); }
.message-detail .message-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.message-detail .message-head h2 { margin: 0; color: #3a3208; font-size: 20px; }
.message-detail .message-head time { flex: 0 0 auto; color: var(--au-muted); font-size: 12px; font-weight: 700; }
.message-body { margin: 0; color: #4a4216; font-size: 15px; line-height: 1.7; white-space: pre-wrap; }
.message-loader { display: grid; place-items: center; padding: 40px 0; }
.message-loader .ring { width: 34px; height: 34px; border: 3px solid #e0d2a6; border-top-color: var(--au-gold); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Dialog extras */
.dialog { border: 1px solid #9d741a; border-radius: 16px; background: #fffdf9; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4); padding: 0; width: min(440px, calc(100vw - 32px)); }
.dialog::backdrop { background: rgba(20, 18, 0, 0.55); }
.dialog-form { position: relative; padding: 24px !important; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 4px; }
.dialog-head h2 { margin: 0 !important; color: #3a3208; font-size: 20px; }
.dialog-close { border: 0; background: transparent; color: var(--au-muted); font-size: 22px; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.dialog-close:hover { color: var(--au-red); background: rgba(201, 75, 64, 0.1); }
.dialog-sub { margin: 2px 0 14px !important; color: var(--au-muted) !important; font-size: 13px; font-weight: 700; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .pill-row { grid-template-columns: 1fr; }
  .messages-layout { grid-template-columns: 1fr; }
  .gt-info { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .logo-name strong { font-size: clamp(15px, 3.4vw, 20px); }
  .logo-name span { font-size: 8px; letter-spacing: 0.16em; }
}

/* Privacy / legal + contact form card */
.legal-section { padding: 4px 0 18px; }
.legal-section h2 { margin: 0 0 8px; color: #3a3208; font-size: 19px; }
.legal-section p { margin: 0 0 10px; color: #4a4216; font-size: 14.5px; line-height: 1.75; }
.legal-date { margin-bottom: 0 !important; padding: 10px 14px; border-radius: 10px; background: rgba(228, 193, 96, 0.16); font-weight: 800; color: #554b1b !important; }
.form-card { border: 1px dashed #d9c98f; }

/* Bank detail rows */
.bank-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  border-bottom: 1px solid #e3d6ac;
}
.bank-detail-row:last-child { border-bottom: 0; }
.bank-label { color: var(--au-muted); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.bank-value { font-weight: 800; color: #3a3208; text-align: right; word-break: break-word; }

/* ============================================================================
   Layout polish — compact header, wrapping nav, slim footer (no overlap)
   ========================================================================== */
.site-header { padding: 0; }
.header-inner { min-height: 124px; padding: 8px 16px; gap: 16px; justify-content: center; }
.aurica-logo { width: auto; height: 96px; }
.aurica-logo img { width: auto; height: 100%; }
.logo-name strong { font-size: clamp(18px, 2.1vw, 26px); }

.nav-inner { gap: 0; padding: 0 12px; max-width: 1360px; }
.nav-brand { display: flex; align-items: center; gap: 0; padding: 4px 14px 4px 4px; }
.nav-brand img { height: 36px; width: auto; }
.nav-links { flex-wrap: wrap; }
.nav-links .nav-link {
  flex-direction: row;
  min-width: 0;
  white-space: nowrap;
  padding: 10px 12px;
  gap: 6px;
  font-size: 12px;
}
.nav-links .nav-link i { display: none; }
@media (min-width: 1200px) {
  .nav-links { flex: 1; flex-wrap: nowrap; justify-content: space-between; }
  .nav-links .nav-link { padding: 10px 12px; font-size: 12.5px; }
}
@media (max-width: 1199px) {
  .nav-links { justify-content: center; }
}
.nav-brand { padding: 4px 12px 4px 4px; }
.nav-brand img { height: 36px; }

.ticker { border-bottom-width: 1px; }

/* Slim footer */
.site-footer .footer-welcome { padding: 9px 16px; font-size: 15px; }
.footer-main {
  max-width: 1360px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
}
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { height: 46px; border-radius: 10px; background: #fff; padding: 2px; }
.footer-brand span { display: flex; flex-direction: column; }
.footer-brand strong { font-family: var(--au-serif); font-size: 22px; color: var(--au-gold-light); line-height: 1.1; }
.footer-brand small { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--au-faint); }
.footer-quick { width: 100%; }
.footer-quick ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.footer-quick .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid rgba(228, 193, 96, 0.34);
  border-radius: 999px;
  color: #dfc686;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
}
@media (min-width: 1280px) {
  .footer-quick ul { flex-wrap: nowrap; justify-content: space-between; }
  .footer-quick .nav-link { flex: 1 1 0; }
}
.footer-quick .nav-link i { font-size: 13px; color: var(--au-gold-light); }
.footer-quick .nav-link:hover,
.footer-quick .nav-link.active,
.footer-quick .nav-link[aria-current="page"] { color: #fff; border-color: var(--au-gold-light); }
.footer-call { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.footer-call span { display: inline-flex; align-items: center; gap: 7px; }
.footer-call i { color: var(--au-gold-light); }
.footer-call a { color: #f0d58e; font-weight: 700; text-decoration: none; }
.footer-bottom { max-width: 1360px; padding: 10px 16px; font-size: 11.5px; }

@media (max-width: 900px) {
  .footer-main { align-items: center; text-align: center; }
  .footer-bar { justify-content: center; }
  .footer-quick ul { justify-content: center; }
  .footer-call { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
}
@media (max-width: 700px) {
  .logo-name strong { font-size: clamp(15px, 3.4vw, 20px); }
  .logo-name span { font-size: 8px; letter-spacing: 0.16em; }
  .header-inner { min-height: 100px; padding: 6px 12px; }
  .aurica-logo { height: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  .aurica-scroll-pattern__layer { transform: none; will-change: auto; }
}

/* csstech.co.in live marquee (ticker only) */
.ticker-track > * { color: #2c2600; font-weight: 800; white-space: nowrap; vertical-align: middle; }
