/* ================= GoldRateTodayGlobal.live — Theme ================= */
:root {
  --gold: #d4af37;
  --gold-light: #f3d77a;
  --gold-pale: #fbe9b0;
  --gold-dark: #a8862a;
  --bg: #0d0f14;
  --bg-soft: #141824;
  --card: #1a1f2e;
  --card-2: #212839;
  --line: #2b3348;
  --text: #e9ecf3;
  --muted: #9aa3b8;
  --green: #2ecc71;
  --red: #e74c3c;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container { width: min(1160px, 92%); margin-inline: auto; }

.gold-text {
  background: linear-gradient(100deg, #b8860b, #f3d77a 45%, #fff3c4 50%, #f3d77a 55%, #b8860b);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gold-sweep 5s linear infinite;
}
@keyframes gold-sweep { to { background-position: 200% center; } }

/* ================= Ticker ================= */
.ticker-wrap {
  background: #07080c;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 7px 0;
}
.ticker {
  display: flex;
  gap: 42px;
  white-space: nowrap;
  width: max-content;
  animation: scroll-x 32s linear infinite;
  font-size: .82rem;
  letter-spacing: .4px;
  color: var(--muted);
}
.ticker-item b { color: var(--gold-light); font-weight: 600; }
@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ================= Header ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 15, 20, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: .3px;
}
.brand-coin { position: relative; font-size: 1.6rem; line-height: 1; display:flex; align-items:center; color: var(--gold); text-shadow: 0 0 8px rgba(212, 175, 55, .4), 0 2px 4px rgba(0,0,0,.5); filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.brand-coin-g { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -48%); font-size: .54em; font-weight: 900; color: var(--gold); text-shadow: 0 0 4px rgba(0,0,0,.7), 0 0 6px rgba(212,175,55,.4); z-index: 1; }
.brand-text { display:flex; align-items:baseline; }
.brand-name { color: #ffffff; font-weight: 800; }
.brand-name-g { color: var(--gold); font-weight: 900; text-shadow: 0 0 8px rgba(212, 175, 55, .35); }
.brand-name .brand-gold-letter { color: var(--gold); font-weight: 900; text-shadow: 0 0 8px rgba(212, 175, 55, .35); }
.brand-tld { color: rgba(255, 255, 255, .78); font-weight: 600; font-size: .8rem; margin-left: 2px; }

.main-nav { display: flex; gap: 26px; }
.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .93rem;
  font-weight: 500;
  transition: color .2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 1.3rem;
  padding: 4px 12px;
  border-radius: 8px;
  cursor: pointer;
}

/* ================= Hero ================= */
.hero {
  padding: 52px 0 44px;
  text-align: center;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(212, 175, 55, .18), transparent 60%),
    radial-gradient(700px 400px at 0% 110%, rgba(212, 175, 55, .06), transparent 60%),
    var(--bg);
}
.hero h1 {
  font-size: clamp(1.8rem, 4.4vw, 2.9rem);
  line-height: 1.2;
  margin-bottom: 14px;
}
.hero-sub { color: var(--muted); font-size: 1.03rem; max-width: 68ch; margin-inline: auto; }
.hero-sub b { color: var(--text); }

/* 📅 Date & time bar */
.datetime-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 9px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: .95rem;
  color: var(--muted);
}
.dt-item b { color: var(--gold-light); font-weight: 600; }
.dt-dot { color: #8b95b5; }
.live-pill { color: var(--green); font-weight: 700; font-size: .78rem; letter-spacing: 1px; display: inline-flex; align-items: center; gap: 6px; }
.live-pill::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 rgba(46, 204, 113, .6);
  animation: live-pulse 1.8s ease-in-out infinite;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, .45); }
  70% { box-shadow: 0 0 0 6px rgba(46, 204, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* 🇺🇸🇬🇧🇦🇪🇸🇦🇮🇳🇵🇰 Quick country buttons */
.quick-countries {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 22px 0 0;
}
.qc-btn {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .18s, color .18s, transform .18s, box-shadow .18s;
}
.qc-btn:hover, .qc-btn.active {
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(212, 175, 55, .18);
}

/* --- Auto-update settings --- */
.auto-settings {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  flex-wrap: wrap;
}
.as-label { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .7px; }
.auto-settings select {
  background: var(--card-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 6px 9px;
  font-size: .82rem;
  outline: none;
  cursor: pointer;
  flex: 1;
  min-width: 130px;
}
.auto-settings select:focus { border-color: var(--gold); }
.as-countdown {
  font-size: .74rem;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* --- Daily auto update block --- */
.daily-update {
  max-width: 760px;
  margin: 26px auto 0;
  background: linear-gradient(150deg, rgba(212, 175, 55, .09), rgba(26, 31, 46, .9));
  border: 1px solid rgba(212, 175, 55, .35);
  border-radius: var(--radius);
  padding: 18px 22px;
  text-align: left;
  box-shadow: var(--shadow);
}
.du-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.du-badge {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: #0d0f14;
  background-color: var(--gold-light);
  background-image: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.du-title { font-size: 1.02rem; color: var(--gold-light); margin: 0; }
.daily-update p { color: var(--muted); font-size: .92rem; }
.daily-update p b { color: var(--text); }

/* ============ GOLD BAR + COIN SHOWCASE ============ */
.gold-showcase {
  position: relative;
  height: 250px;
  margin: 34px auto 10px;
  max-width: 560px;
  perspective: 900px;
}

.showcase-glow {
  position: absolute;
  left: 50%; bottom: 8px;
  width: 420px; height: 90px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, .35), transparent 70%);
  filter: blur(18px);
  animation: glow-pulse 4s ease-in-out infinite;
}
@keyframes glow-pulse { 50% { opacity: .55; transform: translateX(-50%) scale(1.08); } }

/* --- Gold Bar --- */
.gold-bar {
  position: absolute;
  left: 50%; bottom: 34px;
  width: 300px; height: 104px;
  transform: translateX(-58%) rotateX(16deg);
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .55));
}
.bar-face {
  position: absolute;
  inset: 0;
  clip-path: polygon(13% 0, 87% 0, 100% 100%, 0 100%);
  background:
    linear-gradient(178deg, #fbe9b0 0%, #e8c65c 18%, #c9992c 46%, #f3d77a 62%, #9c7721 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 6px 6px 10px 10px;
}
.bar-face::before {
  content: "";
  position: absolute;
  inset: 7px;
  clip-path: polygon(13% 0, 87% 0, 100% 100%, 0 100%);
  border: 1.5px solid rgba(255, 255, 255, .35);
  border-radius: 4px;
  pointer-events: none;
}
.bar-stamp {
  font-weight: 800;
  letter-spacing: 3px;
  font-size: .82rem;
  color: #6b4f0e;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
}
.bar-weight {
  font-weight: 900;
  font-size: 1.5rem;
  color: #5c420b;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
  letter-spacing: 2px;
}
.bar-shine {
  position: absolute;
  inset: 0;
  clip-path: polygon(13% 0, 87% 0, 100% 100%, 0 100%);
  overflow: hidden;
  border-radius: 6px 6px 10px 10px;
}
.bar-shine::after {
  content: "";
  position: absolute;
  top: -40%; left: -60%;
  width: 45%; height: 190%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent);
  transform: rotate(18deg);
  animation: bar-shine-move 4.2s ease-in-out infinite;
}
@keyframes bar-shine-move {
  0%   { left: -60%; }
  55%  { left: 120%; }
  100% { left: 120%; }
}

/* --- Gold Coins --- */
.gold-coin {
  position: absolute;
  border-radius: 50%;
  background:
    conic-gradient(from 210deg, #8a6a15, #f7e08a 12%, #d4af37 26%, #fff3c4 38%, #d4af37 52%, #8a6a15 66%, #e8c65c 82%, #8a6a15);
  display: grid;
  place-items: center;
  filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .55));
  animation: coin-float 5.5s ease-in-out infinite;
}
.coin-face {
  width: 82%; height: 82%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45);
  box-shadow: inset 0 0 18px rgba(122, 88, 12, .75);
  background: radial-gradient(circle at 32% 28%, #fbe9b0, #d4af37 55%, #a8862a);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}
.coin-logo {
  font-size: 2.3rem;
  font-weight: 900;
  color: #6b4f0e;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
}
.coin-sub {
  font-size: .52rem;
  font-weight: 800;
  letter-spacing: 1.6px;
  color: #6b4f0e;
}
.coin-face > span:not(.coin-logo):not(.coin-sub) { font-size: .7rem; font-weight: 800; color: #6b4f0e; letter-spacing: 1px; }
.coin-shine {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
}
.coin-shine::after {
  content: "";
  position: absolute;
  top: -30%; left: -70%;
  width: 40%; height: 170%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent);
  transform: rotate(25deg);
  animation: coin-shine-move 5s ease-in-out infinite;
}
@keyframes coin-shine-move {
  0%   { left: -70%; }
  50%  { left: 130%; }
  100% { left: 130%; }
}
@keyframes coin-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.coin-back {
  width: 108px; height: 108px;
  right: 96px; bottom: 96px;
  animation-delay: -2.6s;
  opacity: .92;
  z-index: 1;
}
.coin-back .coin-face span { font-size: .8rem; font-weight: 800; color: #6b4f0e; letter-spacing: 1px; }

.coin-front {
  width: 132px; height: 132px;
  right: 40px; bottom: 26px;
  z-index: 3;
}

/* --- Price card --- */
.price-card {
  max-width: 460px;
  margin: 26px auto 0;
  background: linear-gradient(160deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px 26px 18px;
  box-shadow: var(--shadow);
  text-align: left;
}
.price-card-head {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.price-card-head .per { opacity: .7; }
.price-big {
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1.15;
}
.price-sub { color: var(--muted); font-size: .88rem; margin-bottom: 16px; }
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.pg-item { display: flex; flex-direction: column; gap: 2px; }
.pg-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }
.pg-val { font-weight: 700; font-size: 1rem; }
.price-updated { margin-top: 14px; font-size: .76rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }

.dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--muted);
  animation: pulse 1.6s ease-in-out infinite;
  flex: none;
}
.dot.ok { background: var(--green); }
.dot.err { background: var(--red); animation: none; }
@keyframes pulse { 50% { opacity: .35; } }

/* ================= Sections ================= */
.section { padding: 58px 0; }
.section-alt { background: var(--bg-soft); }
.section-title { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 10px; }
.section-title::after {
  content: "";
  display: block;
  width: 64px; height: 3px;
  margin-top: 10px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.section-lead { color: var(--muted); max-width: 76ch; margin-bottom: 26px; }

/* ================= Table ================= */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.gold-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 880px; }
.gold-table th, .gold-table td {
  padding: 14px 18px;
  text-align: left;
  font-size: 16px;              /* 16px — mobile par bhi parhne mein aasaan */
  line-height: 1.6;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.gold-table th {
  background: linear-gradient(180deg, #262d42 0%, var(--card-2) 100%);
  color: var(--gold-light);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .7px;
  position: sticky;
  top: 0;
  z-index: 5;
}

/* Country aur Currency ke columns alag alag — chipke nahi */
.gold-table th:first-child, .gold-table td:first-child { min-width: 185px; }
.gold-table th:nth-child(2), .gold-table td:nth-child(2) { min-width: 100px; }

/* 🦓 alternate light-dark rows — aankh ko aasaan */
.gold-table tbody tr:nth-child(odd) td { background: rgba(255, 255, 255, .035); }
.gold-table tbody tr:nth-child(even) td { background: rgba(0, 0, 0, .25); }
.gold-table tbody tr:hover td { background: rgba(212, 175, 55, .13); }
.gold-table tbody tr.row-highlight { animation: rowFlash 2.6s ease; }
@keyframes rowFlash {
  0%, 100% { background: transparent; }
  15%      { background: rgba(212, 175, 55, .32); }
  45%      { background: rgba(212, 175, 55, .18); }
}

/* pehla column mobile par bhi visible rahe */
.gold-table th:first-child {
  position: sticky; left: 0; z-index: 6;
}
.gold-table td:first-child {
  position: sticky; left: 0; z-index: 4;
  background: #1c2233;
}
.gold-table tbody tr:nth-child(odd) td:first-child { background: #202737; }
.gold-table tbody tr:nth-child(even) td:first-child { background: #1a1f2e; }

.gold-table td.table-loading { text-align: center; color: var(--muted); padding: 34px; white-space: normal; }
.td-flag { margin-right: 7px; }
.td-country { font-weight: 600; }
.td-gold { color: var(--gold-light); font-weight: 600; }

.disclaimer {
  margin-top: 18px;
  font-size: .82rem;
  color: var(--muted);
  background: var(--card);
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
}

/* ================= Chart ================= */
.chart-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.cs-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cs-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }
.cs-val { font-weight: 800; font-size: 1.08rem; }
.cs-val.up { color: var(--green); }
.cs-val.down { color: #ff6f5e; }

.chart-box {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  min-height: 320px;
}
.chart-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--card);
  border-radius: var(--radius);
}
.chart-loading.hidden { display: none; }

/* ================= Calculator ================= */
.calc-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  max-width: 860px;
}
.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.calc-field { display: flex; flex-direction: column; gap: 6px; }
.calc-field label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted);
}
.calc-field input,
.calc-field select {
  padding: 11px 12px;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  font-size: .93rem;
  outline: none;
  transition: border-color .2s;
  width: 100%;
}
.calc-field input:focus,
.calc-field select:focus { border-color: var(--gold); }
.calc-field select { cursor: pointer; }

.calc-result {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 20px;
  align-items: center;
  background: linear-gradient(150deg, var(--card-2), #171b28);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
}
.calc-result-main { display: flex; flex-direction: column; gap: 4px; }
.calc-result-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}
.calc-result-price {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
}
.calc-breakdown { display: grid; gap: 6px; }
.calc-note {
  margin-top: 16px;
  font-size: .8rem;
  color: var(--muted);
}

/* ================= Search & Country cards ================= */
.search-box { margin-bottom: 24px; }
.search-box input {
  width: 100%;
  max-width: 480px;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-size: .95rem;
  outline: none;
  transition: border-color .2s;
}
.search-box input:focus { border-color: var(--gold); }

.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 16px;
}
.country-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 14px;
  transition: transform .18s, border-color .18s;
}
.country-card:hover { transform: translateY(-3px); border-color: var(--gold-dark); }
.cc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}
.cc-name { font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.cc-flag { font-size: 1.3rem; }
.cc-cur { font-size: .78rem; color: var(--muted); border: 1px solid var(--line); padding: 2px 8px; border-radius: 999px; flex: none; }
.cc-main { font-size: 1.45rem; font-weight: 800; color: var(--gold-light); }
.cc-main small { font-size: .8rem; color: var(--muted); font-weight: 500; margin-left: 4px; }
.cc-rows { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 6px; }
.cc-row { display: flex; justify-content: space-between; font-size: .95rem; color: var(--muted); }
.cc-row b { color: var(--text); font-weight: 600; }

.empty-state { text-align: center; color: var(--muted); padding: 40px 0; }

/* ================= Article & FAQ ================= */
.article h3, .article h2 { margin: 26px 0 8px; font-size: 1.12rem; color: var(--gold-light); }
.article p { color: var(--muted); margin-bottom: 6px; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.faq-item summary::after { content: "+"; color: var(--gold); font-size: 1.2rem; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin-top: 10px; color: var(--muted); font-size: .92rem; }

/* (Ad slots removed) */

/* ================= Footer ================= */
.site-footer {
  background: #08090d;
  border-top: 1px solid var(--line);
  margin-top: 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
  padding: 42px 0 30px;
}
.footer-brand { font-size: 1.1rem; margin-bottom: 10px; display: flex; align-items: center; gap: 9px; }
.footer-about { color: var(--muted); font-size: .9rem; max-width: 42ch; }
.site-footer h4 { color: var(--gold-light); font-size: 1rem; margin-bottom: 12px; }
.site-footer a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: .9rem;
  padding: 4px 0;
  transition: color .2s;
}
.site-footer a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  font-size: .88rem;
  color: var(--muted);
  text-align: center;
}

/* ================= Responsive ================= */
@media (max-width: 900px) {
  .chart-stats { grid-template-columns: repeat(2, 1fr); }
  .calc-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gold-showcase { height: 220px; transform: scale(.85); margin-top: 20px; }
}
@media (max-width: 720px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 5%; }
  .nav-toggle { display: block; }
  .price-grid { grid-template-columns: 1fr 1fr; }
  .calc-grid { grid-template-columns: 1fr 1fr; }
  .calc-result { grid-template-columns: 1fr; }
  .gold-table { min-width: 680px; }
  .gold-table th, .gold-table td { font-size: 15px; padding: 11px 12px; }
  .datetime-bar { font-size: .88rem; padding: 8px 14px; }
  .quick-countries { gap: 8px; }
  .qc-btn { font-size: .88rem; padding: 7px 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .hero { padding-top: 36px; }
  .gold-showcase { height: 190px; transform: scale(.7); margin: 10px auto -20px; }
}

/* ================= Mobile table (phone par poori table fit, scroll nahi) =================
   Ye rules sabse neeche hain taake upar ke responsive rules ko override karein */
@media (max-width: 640px) {
  .gold-table { min-width: 0; width: 100%; }
  .gold-table th, .gold-table td {
    font-size: 15px;
    padding: 10px 6px;
    white-space: normal;      /* lambi value agli line par — horizontal scroll nahi */
    line-height: 1.45;
  }
  .gold-table th:first-child, .gold-table td:first-child {
    position: static;          /* sticky column mobile par off */
    min-width: 0;
    max-width: 120px;
    white-space: normal;
  }
  /* chhupaye gaye columns: Currency, 24K/Ounce, 21K/Tola, 18K/Gram */
  .gold-table th:nth-child(2), .gold-table td:nth-child(2),
  .gold-table th:nth-child(5), .gold-table td:nth-child(5),
  .gold-table th:nth-child(7), .gold-table td:nth-child(7),
  .gold-table th:nth-child(8), .gold-table td:nth-child(8) { display: none; }
  .td-flag { display: block; margin: 0 0 2px; font-size: 1.1rem; }
  .td-country { white-space: normal; font-size: 14px; }
}
@media (max-width: 420px) {
  .gold-table th:nth-child(6), .gold-table td:nth-child(6) { display: none; }
  .gold-table th, .gold-table td { padding: 9px 5px; font-size: 14px; }
  .td-flag { font-size: 1rem; }
  .brand { font-size: 1rem; }
  .brand-coin { font-size: 1.2rem; }
}

/* ================= ARTICLES PAGE ================= */
.art-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 14px;
}
.art-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.art-chip {
  font: inherit;
  font-size: .84rem;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
  cursor: pointer;
  transition: border-color .18s, color .18s, background .18s;
}
.art-chip:hover { border-color: var(--gold-dark); color: var(--text); }
.art-chip.active {
  border-color: var(--gold);
  background: rgba(212, 175, 55, .14);
  color: var(--gold-light);
  font-weight: 600;
}
.art-search input {
  font: inherit;
  font-size: .9rem;
  padding: 9px 14px;
  min-width: 210px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
}
.art-search input:focus { outline: none; border-color: var(--gold); }

.art-countbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: .88rem;
}
.art-write-btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--gold);
  background: rgba(212, 175, 55, .12);
  color: var(--gold-light);
  text-decoration: none;
  font-weight: 600;
  font-size: .88rem;
  transition: background .18s, transform .18s;
}
.art-write-btn:hover { background: rgba(212, 175, 55, .22); transform: translateY(-1px); }

.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}
.art-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.art-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-dark);
  box-shadow: var(--shadow);
}
.art-thumb {
  width: 100%;
  height: 185px;
  object-fit: cover;
  display: block;
  background: var(--bg-soft);
}
.art-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}
.art-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}
.art-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--gold-dark);
  color: var(--gold);
  font-size: .74rem;
  letter-spacing: .3px;
}
.art-date { font-size: .78rem; color: var(--muted); }
.art-body h2 { font-size: 1.12rem; line-height: 1.35; margin: 0; }
.art-body h2 a { color: var(--text); text-decoration: none; }
.art-body h2 a:hover { color: var(--gold-light); }
.art-excerpt {
  margin: 0;
  flex: 1;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.5;
}
.art-more { color: var(--gold); font-weight: 600; text-decoration: none; font-size: .9rem; }
.art-more:hover { color: var(--gold-light); }
.art-empty { text-align: center; color: var(--muted); padding: 44px 10px; }

/* ================= WRITER TOOL (write.html) ================= */
.writer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.wf-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.wf-card h2 { margin: 0 0 14px; font-size: 1.05rem; }
.wf { display: flex; flex-direction: column; gap: 12px; }
.wf label {
  display: block;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--muted);
  margin-bottom: 5px;
}
.wf input, .wf select, .wf textarea {
  width: 100%;
  font: inherit;
  font-size: .93rem;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
}
.wf input:focus, .wf select:focus, .wf textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.wf textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
.wf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wf-hint { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.wf-btn {
  font: inherit;
  font-size: .92rem;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #131313;
  cursor: pointer;
}
.wf-btn:hover { background: var(--gold-light); }
.wf-btn.ghost { background: transparent; color: var(--gold); }
.wf-btn.ghost:hover { background: rgba(212, 175, 55, .14); }
.wf-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.wf-out {
  width: 100%;
  min-height: 260px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: .78rem;
  line-height: 1.5;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0b0d12;
  color: #cfd6e4;
  resize: vertical;
  white-space: pre;
}
.wf-preview { width: 100%; max-height: 200px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: none; }
.wf-status { font-size: .8rem; color: var(--green); min-height: 18px; }

body.locked { overflow: hidden; }
/* lock screen removed */

@media (max-width: 900px) {
  .writer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .wf-row { grid-template-columns: 1fr; }
  .art-search input { min-width: 0; width: 100%; }
  .art-toolbar { flex-direction: column; align-items: stretch; }
}
