/* GOLDCLUB design system — financial news community */
:root {
  --navy-950: #071629;
  --navy-900: #0A2540;
  --navy-800: #103356;
  --navy-700: #1A4373;
  --navy-600: #2C5B92;
  --navy-100: #E7EEF6;
  --navy-50:  #F4F7FB;

  --ink-900: #0B1220;
  --ink-700: #2B3A4F;
  --ink-500: #55657B;
  --ink-400: #7C8BA0;
  --ink-300: #A9B4C4;
  --ink-200: #CFD6E1;
  --ink-100: #E5EAF1;
  --ink-50:  #F4F6FA;
  --white:   #FFFFFF;

  --accent: #0E7CFF;        /* link / CTA */
  --accent-700: #0A5DC2;
  --gold: #B8892B;          /* subtle gold hint */
  --up:   #0F8A4D;
  --down: #D42B2B;
  --warn: #C17F15;

  --border: #DBE2EC;
  --border-strong: #BFC9D8;

  --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.06);
  --shadow-md: 0 4px 14px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 16px 40px rgba(10, 37, 64, 0.14);

  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 10px;

  --font-sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "Source Serif 4", "Noto Serif", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --maxw: 1280px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--ink-50);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--ink-900); text-decoration: none; }
a:hover { color: var(--accent-700); }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ======= TICKER ======= */
.ticker {
  background: var(--navy-950);
  color: #D8E3F0;
  border-bottom: 1px solid #142a44;
  overflow: hidden;
  font-size: 13px;
  letter-spacing: 0.01em;
}
.ticker-inner {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  padding: 9px 0;
  animation: tickerscroll 80s linear infinite;
  width: max-content;
}
.ticker:hover .ticker-inner { animation-play-state: paused; }
.ticker-item { display: inline-flex; gap: 8px; align-items: baseline; }
.ticker-item .sym { color: #9FB6D1; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 11px; }
.ticker-item .px { color: #fff; font-variant-numeric: tabular-nums; font-weight: 500; }
.ticker-item .ch { font-variant-numeric: tabular-nums; font-size: 12px; }
.ticker-item .up { color: #49D07E; }
.ticker-item .down { color: #FF6B6B; }
@keyframes tickerscroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ======= TOP UTILITY BAR ======= */
.utilbar {
  background: var(--navy-900);
  color: #C9D5E6;
  font-size: 12.5px;
  border-bottom: 1px solid #0d2a48;
}
.utilbar .container { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.utilbar a { color: #C9D5E6; }
.utilbar a:hover { color: #fff; }
.utilbar .util-l, .utilbar .util-r { display: flex; gap: 20px; align-items: center; }
.utilbar .sep { width: 1px; height: 14px; background: #1e3e63; }
.util-date { color: #8DA4BF; }

/* ======= SPONSOR BAR (broker banners under utility) ======= */
.sponsorbar {
  background: #ffffff;
  border-bottom: 1px solid #e6ebf2;
  padding: 12px 0;
}
.sponsorbar .container { display: flex; align-items: center; gap: 18px; }
.sponsorbar .sp-label {
  font: 700 9.5px/1.25 var(--font-sans);
  letter-spacing: 0.14em;
  color: #6E84A3;
  text-transform: uppercase;
  flex-shrink: 0;
  border-right: 1px solid #e6ebf2;
  padding-right: 18px;
}
.sponsorbar .sp-label span { color: #b0bccd; font-weight: 600; letter-spacing: 0.1em; }

.sp-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; flex: 1; }
.sp-slot {
  position: relative;
  display: block;
  height: 76px;
  border: 1px solid #e6ebf2;
  background: #f5f7fa;
  overflow: hidden;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.sp-slot::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--brand, var(--gold));
  z-index: 2;
}
.sp-slot:hover {
  transform: translateY(-1px);
  border-color: var(--brand);
  box-shadow: 0 4px 14px -6px rgba(10,37,64,0.18), 0 0 0 1px var(--brand);
}
.sp-reel {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  animation: spReel 16s cubic-bezier(.7,.05,.3,.95) infinite;
  animation-delay: 0s;
  will-change: transform;
}
.sp-reel img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sp-slot:hover .sp-reel { animation-play-state: paused; }
@keyframes spReel {
  0%, 22%   { transform: translateY(0); }
  25%, 47%  { transform: translateY(-100%); }
  50%, 72%  { transform: translateY(-200%); }
  75%, 100% { transform: translateY(-300%); }
}
.sp-badge {
  position: absolute;
  top: 0; right: 0;
  z-index: 3;
  font: 700 8.5px var(--font-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(10, 37, 64, 0.72);
  backdrop-filter: blur(4px);
  padding: 4px 7px;
  white-space: nowrap;
  line-height: 1;
}
@media (prefers-reduced-motion: reduce) {
  .sp-reel { animation: none; }
}

@media (max-width: 1080px) {
  .sp-strip { grid-template-columns: repeat(2, 1fr); }
  .sp-slot:nth-child(n+3) { display: none; }
}
@media (max-width: 760px) {
  .sponsorbar .sp-label { display: none; }
  .sp-strip { grid-template-columns: 1fr; }
  .sp-slot:nth-child(n+2) { display: none; }
}

/* ======= HEADER ======= */
.siteheader {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.siteheader .container { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; gap: 32px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans);
  font-weight: 800; font-size: 26px; letter-spacing: 0.02em;
  color: var(--navy-900);
}
.logo .mark {
  width: 30px; height: 30px;
  background: var(--navy-900);
  color: #fff;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 800; letter-spacing: 0.04em;
  border-radius: 3px;
  position: relative;
}
.logo .mark::after {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: 4px;
  height: 2px; background: var(--gold);
}
.logo .mark-img {
  width: 36px; height: 36px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
}
.logo .dot { color: var(--gold); }
.logo .sub { font-size: 11px; color: var(--ink-500); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; margin-left: 4px; }

.searchbox {
  flex: 1; max-width: 420px;
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  background: var(--ink-50);
}
.searchbox input { border: 0; background: transparent; outline: none; flex: 1; font-size: 14px; color: var(--ink-900); }
.searchbox .ico { color: var(--ink-400); }

.header-cta { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius);
  font-weight: 600; font-size: 14px;
  border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--navy-900); color: #fff; }
.btn-primary:hover { background: var(--navy-800); color: #fff; }
.btn-outline { border-color: var(--border-strong); color: var(--ink-900); background: #fff; }
.btn-outline:hover { border-color: var(--navy-900); color: var(--navy-900); }
.btn-ghost { color: var(--ink-700); }
.btn-ghost:hover { color: var(--navy-900); background: var(--ink-100); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #9a7120; color: #fff; }

/* ======= NAV ======= */
.mainnav {
  background: var(--navy-900);
  color: #fff;
  position: sticky; top: 0; z-index: 40;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset;
}
.mainnav .container { display: flex; align-items: stretch; height: 48px; }
.mainnav ul { list-style: none; display: flex; margin: 0; padding: 0; }
.mainnav li { display: flex; position: relative; }
.mainnav .has-sub > a::after { content: "▾"; margin-left: 6px; font-size: 11px; opacity: 0.7; }
.mainnav .submenu {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--navy-800); border: 1px solid var(--navy-700);
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
  list-style: none; margin: 0; padding: 6px 0; display: none; z-index: 50;
}
.mainnav .has-sub:hover .submenu, .mainnav .has-sub:focus-within .submenu { display: block; }
.mainnav .submenu li { display: block; }
.mainnav .submenu a {
  height: auto; padding: 10px 16px; border-bottom: none; color: #DCE6F2;
  font-weight: 500; font-size: 13.5px; white-space: nowrap;
}
.mainnav .submenu a:hover { background: var(--navy-700); color: #fff; }
.mainnav a {
  color: #DCE6F2; padding: 0 18px; display: flex; align-items: center;
  font-size: 14px; font-weight: 500; letter-spacing: 0.01em;
  border-bottom: 2px solid transparent;
  height: 100%;
}
.mainnav a:hover { color: #fff; background: rgba(255,255,255,0.04); }
.mainnav a.active { color: #fff; border-bottom-color: var(--gold); }
.mainnav .live {
  display: inline-flex; align-items: center; gap: 6px;
  color: #fff; font-weight: 600;
}
.mainnav .live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--down);
  box-shadow: 0 0 0 0 rgba(212,43,43,0.8);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(212,43,43,0.6); } 70% { box-shadow: 0 0 0 8px rgba(212,43,43,0); } 100% { box-shadow: 0 0 0 0 rgba(212,43,43,0); } }
.mainnav .spacer { flex: 1; }
.mainnav .nav-right { display: flex; align-items: center; gap: 14px; padding-right: 0; color: #9FB6D1; font-size: 13px; }

/* ======= SECTION TITLES ======= */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 10px; margin-bottom: 20px;
  border-bottom: 2px solid var(--navy-900);
}
.section-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 22px; font-weight: 700; color: var(--navy-900);
  letter-spacing: -0.005em;
}
.section-head .more { font-size: 13px; color: var(--ink-500); font-weight: 500; }
.section-head .more:hover { color: var(--accent-700); }

.eyebrow {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-700);
}

/* ======= ARTICLE CARD ======= */
.article { display: block; }
.article .thumb {
  aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-200); border-radius: var(--radius);
  position: relative;
}
.article .thumb .ph {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.12) 0 10px, rgba(255,255,255,0) 10px 20px),
    linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: #D6E3F4;
  display: grid; place-items: center;
  font: 600 11px var(--font-mono);
  letter-spacing: 0.08em;
}
.article .meta {
  display: flex; gap: 8px; align-items: center; margin: 12px 0 6px;
  font-size: 12px;
}
.article .cat {
  color: var(--accent-700); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 11px;
}
.article .time { color: var(--ink-500); }
.article h3 {
  margin: 0; font-family: var(--font-serif); font-weight: 700;
  font-size: 18px; line-height: 1.3; color: var(--ink-900);
  letter-spacing: -0.005em;
}
.article:hover h3 { color: var(--accent-700); }
.article .lede { margin: 8px 0 0; color: var(--ink-500); font-size: 13.5px; line-height: 1.5; }
.article .byline { font-size: 12px; color: var(--ink-500); margin-top: 8px; }

.article-lg h3 { font-size: 30px; line-height: 1.18; }
.article-md h3 { font-size: 20px; }
.article-sm h3 { font-size: 15px; line-height: 1.35; }
.article-sm .thumb { aspect-ratio: 4 / 3; }

/* compact list */
.ranklist { list-style: none; margin: 0; padding: 0; }
.ranklist li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.ranklist li:last-child { border-bottom: 0; }
.ranklist .n {
  font-family: var(--font-serif); color: var(--gold);
  font-size: 22px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
}
.ranklist a { font-size: 14px; font-weight: 600; color: var(--ink-900); line-height: 1.35; display: block; }
.ranklist a:hover { color: var(--accent-700); }
.ranklist .m { font-size: 11.5px; color: var(--ink-500); margin-top: 4px; }

/* ======= SIDEBAR CARDS ======= */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.card-head {
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.card-head h3 {
  margin: 0; font-size: 14px; font-weight: 700; color: var(--navy-900);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.card-body { padding: 16px 18px; }

.fx-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.fx-table th, .fx-table td { text-align: right; padding: 9px 6px; font-size: 13px; border-bottom: 1px solid var(--ink-100); }
.fx-table th { color: var(--ink-500); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.fx-table td:first-child, .fx-table th:first-child { text-align: left; }
.fx-table .sym { font-weight: 700; color: var(--navy-900); }
.fx-table .flag { display: inline-block; width: 20px; height: 14px; border-radius: 2px; margin-right: 8px; vertical-align: -2px; background: var(--ink-200); border: 1px solid rgba(0,0,0,0.08); }
.fx-table tr:last-child td { border-bottom: 0; }
.fx-table .up { color: var(--up); font-weight: 600; }
.fx-table .down { color: var(--down); font-weight: 600; }

/* ======= FOOTER ======= */
.footer {
  background: var(--navy-950);
  color: #B9C8DC;
  padding: 56px 0 0;
  margin-top: 64px;
  font-size: 13.5px;
}
.footer a { color: #B9C8DC; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 16px; font-weight: 700; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer .brand { max-width: 320px; }
.footer .brand p { color: #8FA3BE; line-height: 1.6; }
.footer .bottom {
  border-top: 1px solid #102844; margin-top: 48px; padding: 20px 0;
  display: flex; justify-content: space-between; color: #7E93B0; font-size: 12.5px;
}
.footer .socials { display: flex; gap: 8px; }
.footer .socials a {
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid #1a3557; border-radius: 4px;
}
.footer .socials a:hover { background: var(--navy-800); border-color: var(--navy-700); }

/* ======= BADGES & CHIPS ======= */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 3px;
}
.badge-hot { background: #fbecec; color: var(--down); }
.badge-new { background: #e6f3ec; color: var(--up); }
.badge-pro { background: #fff4dd; color: var(--warn); }
.badge-live { background: var(--down); color: #fff; }
.badge-vip { background: var(--navy-900); color: var(--gold); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border);
  font-size: 12.5px; color: var(--ink-700); background: #fff;
}
.chip:hover { border-color: var(--navy-900); color: var(--navy-900); }
.chip.active { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }

/* ======= BREADCRUMBS ======= */
.crumbs { font-size: 12.5px; color: var(--ink-500); padding: 14px 0; }
.crumbs a { color: var(--ink-500); }
.crumbs a:hover { color: var(--accent-700); }
.crumbs .sep { margin: 0 8px; color: var(--ink-300); }

/* ======= FORMS ======= */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--ink-700); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff;
  outline: none;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14,124,255,0.15); }

/* icon helper */
.ico { width: 16px; height: 16px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* utility */
.row { display: flex; gap: 12px; align-items: center; }
.muted { color: var(--ink-500); }
.divider { height: 1px; background: var(--border); margin: 24px 0; }

/* page banner */
.pagebanner {
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  color: #fff; padding: 44px 0; margin-bottom: 28px;
  position: relative; overflow: hidden;
}
.pagebanner::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(184,137,43,0.18), transparent 40%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 14px);
  pointer-events: none;
}
.pagebanner .container { position: relative; }
.pagebanner .eyebrow { color: var(--gold); }
.pagebanner h1 {
  margin: 10px 0 8px; font-family: var(--font-serif); font-weight: 700;
  font-size: 42px; letter-spacing: -0.01em; line-height: 1.1;
}
.pagebanner p { color: #C9D5E6; max-width: 640px; margin: 0; }

/* ============ Loading skeletons (replace hardcoded fallback HTML) ============ */
@keyframes gc-skeleton-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--ink-100) 25%, var(--ink-200) 50%, var(--ink-100) 75%);
  background-size: 200% 100%;
  animation: gc-skeleton-shimmer 1.4s infinite;
  border-radius: var(--radius);
  display: block;
}
.skeleton-thumb { aspect-ratio: 16/10; width: 100%; }
.skeleton-thumb.sq { aspect-ratio: 4/3; }
.skeleton-thumb.wide { aspect-ratio: 16/9; }
.skeleton-line { height: 12px; margin: 8px 0; width: 100%; }
.skeleton-line.lg { height: 18px; }
.skeleton-line.sm { height: 10px; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-80 { width: 80%; }
.skeleton-line.w-40 { width: 40%; }
.skeleton-line.w-30 { width: 30%; }
.skeleton-card { padding: 0; }
.skeleton-card .lines { padding: 10px 0 0; }
.skeleton-chip {
  display: inline-block; width: 70px; height: 26px; border-radius: 999px;
  margin: 0;
}
.skeleton-chip.w-1 { width: 56px; }
.skeleton-chip.w-2 { width: 84px; }
.skeleton-chip.w-3 { width: 96px; }
.skeleton-circle { border-radius: 50%; }
.skeleton-list-item {
  display: grid; grid-template-columns: 36px 1fr; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--ink-100); align-items: center;
}
.skeleton-list-item:last-child { border-bottom: 0; }
.skeleton-rank-item {
  display: grid; grid-template-columns: 28px 1fr; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--ink-100);
}
.skeleton-rank-item:last-child { border-bottom: 0; }
