/* ===== Luxe, Dramatic, Gold-Forward Theme ===== */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

:root {
  --ink: #0e0e0e;
  --muted: #6b7280;
  --line: #e7e3da;
  --bg: #fffdf9; /* warm backdrop */
  --panel: #ffffff;

  --gold-900: #5e430a;
  --gold-700: #8b6a1a;
  --gold-600: #b9922a;
  --gold-500: #d4af37; /* signature */
  --gold-300: #eddba0;
  --gold-100: #fff7e6;

  --r: 18px;
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  color: var(--ink);
  background: radial-gradient(
      1000px 600px at 10% -10%,
      rgba(212, 175, 55, 0.12),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 110% 0%,
      rgba(237, 219, 160, 0.18),
      transparent 55%
    ),
    var(--bg);
}

/* Header hero with subtle gradient and animated gold hairline */
.header-hero {
  background: linear-gradient(180deg, #fff, rgba(255, 247, 230, 0.45));
  border-bottom: 1px solid var(--line);
  position: relative;
}
.gold-sheen {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  bottom: 0;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
  transform: translateX(-30%);
  animation: sheen 3.5s linear infinite;
}
.gold-sheen.bottom {
  position: static;
  height: 2px;
  animation: sheen 4.5s linear infinite;
}
@keyframes sheen {
  0% {
    transform: translateX(-30%);
  }
  100% {
    transform: translateX(30%);
  }
}

.brand-ring {
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 999px;
}
.nav-slim .nav-link {
  padding: 0.7rem 0.95rem !important;
  color: #2e2e2e;
  font-weight: 600;
  border-radius: 999px;
}
.nav-slim .nav-link:hover {
  color: #1f1f1f;
  background: linear-gradient(0deg, #fff, #fff7e6);
  border: 1px solid rgba(212, 175, 55, 0.35);
}

/* Ticker */
.ticker-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 6px 0;
  margin: 16px 0 10px;
}
.ticker {
  display: flex;
  gap: 28px;
  white-space: nowrap;
  animation: scroll 28s linear infinite;
  padding: 0 10px;
}
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.tick {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 2px 0;
}
.tick-name {
  font-weight: 700;
  color: #2a2a2a;
}
.tick-sell,
.tick-buy {
  color: #444;
  font-size: 0.95rem;
}
.delta {
  font-weight: 700;
  color: #6b7280;
}
.delta.up {
  color: #15803d;
} /* green */
.delta.down {
  color: #b91c1c;
} /* red */

/* Dashboard control bar */
.dash-bar {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 10px;
  box-shadow: var(--shadow);
}
.chip {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.32);
  background: #fff;
  color: #7a621a;
  font-weight: 600;
}

/* Buttons */
.btn {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.btn.btn-jw {
  /* kept for legacy calls */
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-300));
  color: #1c1c1c;
  border: none;
  padding: 0.5rem 0.9rem;
  box-shadow: var(--shadow);
}
.btn-gold:hover {
  filter: saturate(1.06);
}
.btn-outline {
  background: #fff;
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #2e2e2e;
  padding: 0.5rem 0.9rem;
}
.btn-outline:hover {
  background: #fff7e6;
}

/* Cards */
.card-gold {
  background: linear-gradient(180deg, #fff, rgba(255, 247, 230, 0.65));
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.card-gold::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(
    closest-side,
    rgba(212, 175, 55, 0.25),
    transparent 70%
  );
  filter: blur(8px);
}
.card-top .item-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.muted {
  color: #6b7280;
}

/* Tiles */
.tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 10px;
}
.tile.alt {
  background: linear-gradient(180deg, #fff, #fffaf0);
  border-color: #eadfbf;
}
.label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  color: #7a621a;
  font-weight: 800;
}
.value {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1c1c1c;
  margin-top: 4px;
}
.trend {
  font-weight: 800;
  font-size: 0.9rem;
  margin-top: 3px;
  color: #6b7280;
}
.trend.up {
  color: #15803d;
}
.trend.down {
  color: #b91c1c;
}
.pct {
  color: #6b7280;
  font-weight: 700;
}

/* Table */
.gold-table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  box-shadow: var(--shadow);
}
.gold-table thead th {
  background: linear-gradient(0deg, #fff7e6, #fff);
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 1px solid var(--line);
}
.gold-table tbody tr:hover {
  background: #fffef6;
}
.gold-table th,
.gold-table td {
  border-color: var(--line);
}
.t-up {
  color: #15803d;
  font-weight: 800;
}
.t-down {
  color: #b91c1c;
  font-weight: 800;
}
.t-flat {
  color: #6b7280;
  font-weight: 700;
}

/* News */
.section-divider {
  height: 1px;
  background: var(--line);
}
.news-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, #fff, rgba(255, 247, 230, 0.6));
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--r);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
}
.news-head .news-title {
  font-weight: 800;
}
.news-head .news-date {
  color: #7a621a;
  font-weight: 700;
}
.news-teaser {
  color: #3b3b3b;
  margin-top: 6px;
}
.news-cta {
  color: #7a621a;
  font-weight: 800;
}

/* About */
.about-blend {
  background: linear-gradient(180deg, #fff, rgba(255, 247, 230, 0.65));
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--r);
  padding: 18px;
  box-shadow: var(--shadow);
}

/* Footer */
.footer-rich {
  margin-top: 40px;
  background: linear-gradient(180deg, #fff, rgba(255, 247, 230, 0.5));
  border-top: 1px solid var(--line);
  padding: 16px 0;
  position: relative;
}

.text-muted {
  color: var(--muted) !important;
}
.link-gold {
  color: #7a621a;
}
.link-gold:hover {
  color: #5e430a;
}
