/* =========================================
   GoldScrap Calculator — Shared Stylesheet
   ========================================= */

/* === Google Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* === CSS Variables === */
:root {
  --gold: #D4A843;
  --gold-dark: #B8922E;
  --gold-light: #FEF9EC;
  --navy: #1a1a2e;
  --navy-mid: #16213e;
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-600: #4B5563;
  --green: #059669;
  --green-light: #D1FAE5;
  --red: #DC2626;
  --text: #111827;
  --text-muted: #6B7280;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.18);
  --header-h: 64px;
  --transition: 0.18s ease;
}

/* === Base Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* === Skip to Content === */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--navy);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 9999;
  font-size: 14px;
  transition: top 0.2s;
}
.skip-to-content:focus { top: 0; outline: 2px solid var(--gold); }

/* === Focus Visible === */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* =========================================
   HEADER
   ========================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 24px;
  transition: box-shadow 0.2s;
}
.site-header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.10); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo svg { width: 36px; height: 36px; flex-shrink: 0; }
.site-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
  letter-spacing: -0.3px;
}
.site-logo-text span { color: var(--text); font-weight: 600; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.main-nav a:hover { background: var(--gray-100); color: var(--text); }
.main-nav a.active { color: var(--gold-dark); background: var(--gold-light); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 12px 24px 20px;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  animation: slideDown 0.22s ease;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 12px 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--gray-100);
  text-decoration: none;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a.active { color: var(--gold-dark); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* Page offset for fixed header */
main { padding-top: var(--header-h); }

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  min-height: 88vh;
  background: linear-gradient(135deg, var(--navy) 0%, #0f172a 40%, #1e1b4b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(212,168,67,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 48px;
  align-items: center;
}
.hero-text { color: var(--white); }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212,168,67,0.18);
  border: 1px solid rgba(212,168,67,0.35);
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}
.hero h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.8px;
  margin-bottom: 18px;
  color: var(--white);
}
.hero h1 .highlight { color: var(--gold); }
.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.72);
  margin-bottom: 28px;
  line-height: 1.6;
}
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 100px;
}
.pill svg { width: 14px; height: 14px; }

/* =========================================
   CALCULATOR CARD
   ========================================= */
.calc-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 28px 28px 24px;
  position: relative;
}
.calc-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.calc-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-light);
  padding: 3px 10px;
  border-radius: 100px;
}
.live-dot::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
  letter-spacing: 0.2px;
}
.input-row { display: flex; gap: 10px; }
.input-row input[type="number"],
.input-row select,
.form-input,
.form-select {
  flex: 1;
  height: 46px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 0 14px;
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}
.input-row input[type="number"]:focus,
.input-row select:focus,
.form-input:focus,
.form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,168,67,0.15);
  outline: none;
}
.input-row select { flex: 0 0 110px; cursor: pointer; }
/* Remove number input spinners */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; }
input[type=number] { -moz-appearance: textfield; }

.karat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}
.karat-btn {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 9px 6px;
  cursor: pointer;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--white);
  transition: border-color var(--transition), background var(--transition), color var(--transition), transform var(--transition);
  line-height: 1.3;
}
.karat-btn:hover { border-color: var(--gold); color: var(--gold-dark); }
.karat-btn.active {
  border-color: var(--gold);
  background: var(--gold-light);
  color: var(--gold-dark);
}
.karat-btn small { display: block; font-size: 10px; font-weight: 400; color: var(--text-muted); }
.karat-btn.active small { color: var(--gold-dark); opacity: 0.8; }

/* Dealer Slider */
.slider-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.slider-label { font-size: 13px; font-weight: 600; color: var(--text); }
.slider-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-dark);
  background: var(--gold-light);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  min-width: 50px;
  text-align: center;
}
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: var(--gray-200);
  cursor: pointer;
  transition: background var(--transition);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
  transition: transform var(--transition);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: none;
}

/* Currency Row */
.currency-row { display: flex; gap: 8px; flex-wrap: wrap; }
.currency-btn {
  padding: 6px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.currency-btn:hover { border-color: var(--gold); color: var(--gold-dark); }
.currency-btn.active { border-color: var(--gold); background: var(--gold-light); color: var(--gold-dark); }

/* Calculate Button */
.calc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, #D4A843 0%, #B8922E 100%);
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: filter var(--transition), transform var(--transition);
  letter-spacing: 0.2px;
  margin-top: 6px;
}
.calc-btn:hover { filter: brightness(1.06); transform: scale(1.01); }
.calc-btn:active { transform: scale(0.99); }
.calc-btn svg { width: 20px; height: 20px; }

/* =========================================
   RESULT BOX
   ========================================= */
.result-box {
  display: none;
  margin-top: 18px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px solid var(--green);
  padding: 24px;
  animation: fadeInUp 0.35s ease;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.result-melt {
  font-size: 38px;
  font-weight: 800;
  color: var(--green);
  line-height: 1.1;
  margin-bottom: 6px;
}
.result-melt span { font-size: 16px; font-weight: 500; color: var(--text-muted); margin-left: 6px; }
.result-dealer {
  font-size: 20px;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 20px;
}
.result-dealer span { font-size: 13px; font-weight: 400; color: var(--text-muted); margin-left: 4px; }
.result-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 14px;
  margin-bottom: 14px;
}
.result-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--gray-100);
}
.result-table tr:last-child td { border-bottom: none; }
.result-table tr:nth-child(even) td { background: var(--gray-50); }
.result-table tr:last-child td { font-weight: 600; color: var(--green); background: var(--green-light); }
.result-note {
  font-size: 12.5px;
  color: var(--text-muted);
  background: var(--gray-50);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold);
}

/* =========================================
   LIVE PRICE STRIP
   ========================================= */
.price-strip {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 11px 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
}
.price-strip strong { color: var(--gold); }
.price-strip [data-spot-display] { color: var(--gold); font-weight: 700; }
.price-strip [data-updated-time] { color: rgba(255,255,255,0.55); font-size: 12px; }

/* =========================================
   SECTIONS & LAYOUT
   ========================================= */
section { padding: 80px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: var(--gold-light);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.section-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.25;
}
.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
}
.section-alt { background: var(--gray-50); }

/* =========================================
   TRUST BADGES
   ========================================= */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  padding: 32px 24px;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
}
.trust-badge svg { width: 18px; height: 18px; color: var(--gold); }
.trust-badge .badge-icon { color: var(--gold); font-size: 18px; }

/* =========================================
   HOW IT WORKS (3 steps)
   ========================================= */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 12px;
}
.step-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  text-align: center;
  position: relative;
}
.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.step-icon {
  width: 56px; height: 56px;
  background: var(--gold-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.step-icon svg { width: 28px; height: 28px; color: var(--gold-dark); }
.step-card h3 { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.step-card p { font-size: 14.5px; color: var(--text-muted); line-height: 1.6; }

/* =========================================
   PRICE TABLE
   ========================================= */
.price-table-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.currency-tabs {
  display: flex;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 8px;
  gap: 6px;
  flex-wrap: wrap;
}
.currency-tab {
  padding: 7px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.currency-tab:hover { color: var(--gold-dark); background: var(--gold-light); }
.currency-tab.active { border-color: var(--gold); background: var(--gold-light); color: var(--gold-dark); }
.price-table {
  width: 100%;
  border-collapse: collapse;
}
.price-table th {
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 13px 16px;
  text-align: left;
  letter-spacing: 0.2px;
}
.price-table th:first-child { border-radius: 0; }
.price-table td {
  padding: 13px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--text);
}
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:nth-child(even) td { background: var(--gray-50); }
.price-table .karat-cell { font-weight: 700; color: var(--gold-dark); }
.price-table .price-cell { font-weight: 600; color: var(--green); }
.price-table .purity-cell { color: var(--text-muted); font-size: 13px; }
.price-table .hallmark-cell {
  font-family: monospace;
  font-size: 13px;
  background: var(--gray-100);
  padding: 2px 7px;
  border-radius: 4px;
}

/* =========================================
   CARD GRID (Internal Links)
   ========================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.link-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1.5px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
}
.link-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--text);
}
.link-card-icon {
  width: 48px; height: 48px;
  background: var(--gold-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.link-card-icon svg { width: 24px; height: 24px; color: var(--gold-dark); }
.link-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.link-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; flex: 1; }
.link-card-arrow {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-dark);
  margin-top: 14px;
}
.link-card-arrow svg { width: 14px; height: 14px; transition: transform var(--transition); }
.link-card:hover .link-card-arrow svg { transform: translateX(3px); }

/* =========================================
   FAQ ACCORDION
   ========================================= */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--gold-dark); }
.faq-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border: 1.5px solid var(--gray-300);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.faq-icon svg { width: 12px; height: 12px; color: var(--text-muted); transition: transform 0.25s; }
.faq-item.open .faq-icon {
  border-color: var(--gold);
  background: var(--gold-light);
}
.faq-item.open .faq-icon svg { transform: rotate(45deg); color: var(--gold-dark); }
.faq-answer {
  display: none;
  padding: 0 0 20px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.75;
}
.faq-item.open .faq-answer { display: block; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
/* Adsense inside FAQ */
.faq-adsense { padding: 16px 0; }

/* =========================================
   ABOUT SECTION / SEO TEXT
   ========================================= */
.about-seo {
  background: var(--gray-50);
  padding: 48px 24px;
}
.about-seo .section-inner { max-width: 820px; }
.about-seo h2 { font-size: 24px; font-weight: 700; margin-bottom: 14px; }
.about-seo p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 14px;
}

/* =========================================
   INFORMATIONAL PAGE CONTENT
   ========================================= */
.info-content { max-width: 820px; margin: 0 auto; }
.info-content h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--text);
  padding-top: 8px;
  border-top: 2px solid var(--gold-light);
}
.info-content h2:first-of-type { margin-top: 0; border-top: none; }
.info-content h3 { font-size: 20px; font-weight: 600; margin: 24px 0 10px; }
.info-content p { font-size: 15.5px; color: var(--gray-600); line-height: 1.8; margin-bottom: 16px; }
.info-content ul, .info-content ol {
  margin: 0 0 16px 24px;
  font-size: 15.5px;
  color: var(--gray-600);
  line-height: 1.8;
}
.info-content li { margin-bottom: 6px; }
.info-content a { color: var(--gold-dark); text-decoration: underline; }

/* Formula Box */
.formula-box {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 24px 0;
  border-left: 4px solid var(--gold);
}
.formula-box .formula-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.formula-box .formula-text {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.7;
  font-family: 'Courier New', monospace;
  color: rgba(255,255,255,0.92);
}
.formula-box .formula-text .var { color: var(--gold); }

/* Numbered Steps */
.steps-numbered { margin: 20px 0; list-style: none; padding: 0; }
.steps-numbered li {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.step-n {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.step-n-text { flex: 1; font-size: 15.5px; color: var(--gray-600); line-height: 1.75; }
.step-n-text strong { color: var(--text); display: block; font-size: 16px; margin-bottom: 4px; }

/* Info Box */
.info-box {
  background: var(--gold-light);
  border: 1px solid rgba(212,168,67,0.35);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.7;
}
.info-box strong { color: var(--gold-dark); }

/* Comparison Table */
.comparison-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin: 20px 0;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.comparison-table th {
  background: var(--navy);
  color: var(--white);
  padding: 12px 14px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
.comparison-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--gray-100);
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:nth-child(even) td { background: var(--gray-50); }
.comparison-table .highlight-row td {
  background: var(--gold-light) !important;
  font-weight: 600;
  color: var(--gold-dark);
}

/* Hallmark Tags */
.hallmark-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.hallmark-tag {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  letter-spacing: 1px;
}

/* Mini Price Grid */
.mini-price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0;
}
.mini-price-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}
.mini-price-card .mpc-currency {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.mini-price-card .mpc-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--green);
}
.mini-price-card .mpc-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* =========================================
   COUNTRY PAGE SECTIONS
   ========================================= */
.country-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0f172a 100%);
  padding: 64px 24px 52px;
  color: var(--white);
  text-align: center;
}
.country-hero h1 { font-size: 42px; font-weight: 700; margin-bottom: 14px; letter-spacing: -0.5px; }
.country-hero p { font-size: 18px; color: rgba(255,255,255,0.72); max-width: 560px; margin: 0 auto; }

/* =========================================
   GOLD KARAT CHART PAGE
   ========================================= */
.karat-chart-full {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.karat-chart-full table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.karat-chart-full th {
  background: linear-gradient(135deg, #D4A843, #B8922E);
  color: var(--white);
  padding: 13px 16px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
.karat-chart-full td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
}
.karat-chart-full tr:last-child td { border-bottom: none; }
.karat-chart-full tr:nth-child(even) td { background: var(--gray-50); }
.karat-popular { font-size: 11px; background: var(--gold-light); color: var(--gold-dark); font-weight: 600; padding: 2px 8px; border-radius: 100px; }

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.72);
  padding: 60px 24px 0;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .site-logo { margin-bottom: 16px; }
.footer-brand .site-logo-text { color: var(--gold); }
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--gold); text-decoration: none; }
.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}
.footer-adsense { text-align: center; padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.08); }

/* =========================================
   PAGE-SPECIFIC HERO VARIANTS
   ========================================= */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0f172a 60%, #1e1b4b 100%);
  padding: 72px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(212,168,67,0.1) 0%, transparent 60%);
}
.page-hero-content { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.page-hero h1 {
  font-size: 44px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.6px;
  line-height: 1.18;
  margin-bottom: 16px;
}
.page-hero h1 .gold { color: var(--gold); }
.page-hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin: 0 auto 24px;
  line-height: 1.6;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 22px;
  justify-content: center;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,0.55); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb svg { width: 12px; height: 12px; }

/* Live Price Mini Display */
.live-price-display {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  margin-top: 20px;
}
.live-price-display .lpd-label { font-size: 13px; color: rgba(255,255,255,0.55); }
.live-price-display .lpd-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--gold);
}
.live-price-display .lpd-unit { font-size: 12px; color: rgba(255,255,255,0.4); }

/* =========================================
   STICKY MOBILE CTA
   ========================================= */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 12px 16px;
  z-index: 900;
  display: none;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
}
.sticky-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #D4A843 0%, #B8922E 100%);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
}

/* =========================================
   ADSENSE SLOTS
   ========================================= */
.ad-slot {
  background: var(--gray-50);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-slot-right { margin: 0 0 20px 0; }
.ad-slot-below { margin: 20px 0; }
.ad-slot-inline { margin: 20px 0; }

/* =========================================
   UTILITIES
   ========================================= */
.text-center { text-align: center; }
.text-gold { color: var(--gold-dark); }
.text-green { color: var(--green); }
.text-muted { color: var(--text-muted); }
.fw-700 { font-weight: 700; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }
.divider {
  height: 1px;
  background: var(--gray-200);
  margin: 40px 0;
}

/* =========================================
   RESPONSIVE — TABLET (≤1024px)
   ========================================= */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-text { text-align: center; }
  .hero-pills { justify-content: center; }
  .hero h1 { font-size: 38px; }
  .hero-sub { font-size: 16px; }
  .calc-card { max-width: 560px; margin: 0 auto; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* =========================================
   RESPONSIVE — MOBILE (≤768px)
   ========================================= */
@media (max-width: 768px) {
  :root { --header-h: 58px; }
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 40px 16px 52px; min-height: auto; }
  .hero h1 { font-size: 30px; letter-spacing: -0.3px; }
  .hero-sub { font-size: 15px; }
  section { padding: 48px 16px; }
  .section-title { font-size: 26px; }
  .calc-card { padding: 20px 16px; }
  .karat-grid { grid-template-columns: repeat(5, 1fr); gap: 5px; }
  .karat-btn { padding: 8px 4px; font-size: 11.5px; }
  .result-melt { font-size: 28px; }
  .steps-grid { grid-template-columns: 1fr; gap: 16px; }
  .cards-grid { grid-template-columns: 1fr; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { padding: 0; }
  .mini-price-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero h1 { font-size: 28px; }
  .page-hero p { font-size: 15px; }
  .sticky-cta { display: block; }
  .trust-badges { padding: 20px 16px; gap: 10px; }
  .trust-badge { font-size: 12.5px; padding: 8px 12px; }
  .comparison-table-wrap { overflow-x: auto; }
  .info-content h2 { font-size: 22px; }
  .currency-tabs { padding: 6px; }
  .currency-tab { padding: 6px 12px; font-size: 12px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-inner { grid-template-columns: 1fr; }
  .price-strip { font-size: 12.5px; padding: 9px 16px; }
  .input-row { flex-wrap: wrap; }
  .input-row select { flex: 0 0 90px; }
}

@media (max-width: 480px) {
  .karat-grid { grid-template-columns: repeat(5, 1fr); }
  .karat-btn { font-size: 10.5px; padding: 7px 3px; }
  .currency-row { gap: 6px; }
  .currency-btn { padding: 5px 10px; font-size: 12px; }
  .mini-price-grid { grid-template-columns: 1fr 1fr; }
}
