/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --gold-primary: #d4af37;
    --gold-dark: #b8860b;
    --gold-light: #f4d03f;
    --gold-pale: #fff8e1;
    --gold-gradient: linear-gradient(135deg, #f4d03f 0%, #d4af37 50%, #b8860b 100%);
    --dark: #1a1a2e;
    --dark-2: #16213e;
    --gray-900: #1a1a1a;
    --gray-700: #424242;
    --gray-500: #757575;
    --gray-300: #e0e0e0;
    --gray-100: #f5f5f5;
    --gray-50: #fafafa;
    --white: #ffffff;
    --green: #16a34a;
    --green-light: #dcfce7;
    --red: #dc2626;
    --red-light: #fee2e2;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
    --shadow-gold: 0 10px 30px rgba(212, 175, 55, 0.25);
    --radius: 12px;
    --radius-lg: 16px;
    --container-width: 1200px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-900);
    background: var(--gray-50);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: all 0.2s; }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.2; color: var(--dark); }
h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.75rem; }
h4 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; }

/* ===== HEADER ===== */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon { display: flex; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo-sub { font-size: 0.7rem; color: var(--gray-500); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }

.main-nav ul {
    display: flex;
    gap: 8px;
}
.main-nav a {
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--gray-700);
}
.main-nav a:hover, .main-nav a.active {
    background: var(--gold-pale);
    color: var(--gold-dark);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}
.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: 0.3s;
}

.date-strip {
    background: var(--gold-gradient);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
    font-weight: 500;
}
.date-strip .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.live-dot {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.25);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.live-dot::before {
    content: '';
    width: 7px;
    height: 7px;
    background: #ff3b3b;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}
.live-dot { display: inline-block; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f1a30 100%);
    color: var(--white);
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(244, 208, 63, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}
.hero .container { position: relative; z-index: 1; }
.hero-content { display: grid; grid-template-columns: 1fr; gap: 50px; align-items: center; max-width: 820px; margin: 0 auto; text-align: center; }

.hero h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1rem;
}
.hero h1 .gold-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-tagline { font-size: 1.15rem; color: rgba(255,255,255,0.8); margin-bottom: 2rem; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 30px;
}
.hero-stat {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 18px;
    border-radius: var(--radius);
    text-align: center;
}
.hero-stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.hero-stat-value { font-size: 1.4rem; font-weight: 700; color: var(--gold-light); font-family: 'Inter', sans-serif; }
.hero-stat-unit { font-size: 0.75rem; color: rgba(255,255,255,0.6); margin-top: 3px; }

/* Hero visual - animated coin */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.gold-coin {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: var(--gold-gradient);
    box-shadow: 0 0 60px rgba(244, 208, 63, 0.5), inset 0 0 60px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--dark);
    position: relative;
    animation: float 3s ease-in-out infinite;
}
.gold-coin::before {
    content: '';
    position: absolute;
    inset: 12px;
    border: 3px dashed rgba(0,0,0,0.2);
    border-radius: 50%;
}
.gold-coin-text { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; }
.gold-coin-rate { font-size: 2.2rem; font-weight: 800; line-height: 1; margin: 8px 0; }
.gold-coin-unit { font-size: 0.85rem; font-weight: 600; opacity: 0.8; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ===== SECTIONS ===== */
section { padding: 60px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 2.25rem; margin-bottom: 0.5rem; }
.section-header h2 .gold-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-header p { color: var(--gray-500); font-size: 1.05rem; max-width: 700px; margin: 0 auto; }

/* ===== LIVE RATE CARDS ===== */
.rate-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}
.rate-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray-300);
    transition: all 0.3s;
}
.rate-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-gold); border-color: var(--gold-primary); }

.rate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gold-gradient);
}
.rate-card-24k::before { background: linear-gradient(90deg, #f4d03f, #b8860b); }
.rate-card-22k::before { background: linear-gradient(90deg, #e6c029, #a87d0a); }
.rate-card-18k::before { background: linear-gradient(90deg, #d4a017, #8b6914); }

.rate-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.rate-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}
.rate-card-badge {
    background: var(--gold-pale);
    color: var(--gold-dark);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.rate-card-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
    margin: 12px 0 6px;
}
.rate-card-price .rupee { font-size: 1.5rem; color: var(--gold-dark); margin-right: 4px; }
.rate-card-unit { color: var(--gray-500); font-size: 0.95rem; margin-bottom: 14px; }

.rate-change {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
}
.rate-change.up { background: var(--green-light); color: var(--green); }
.rate-change.down { background: var(--red-light); color: var(--red); }
.rate-change.same { background: var(--gray-100); color: var(--gray-700); }

.rate-card-info {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--gray-300);
    font-size: 0.82rem;
    color: var(--gray-500);
}

/* ===== TABLE ===== */
.table-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}
.table-header {
    background: var(--gold-gradient);
    color: var(--white);
    padding: 18px 24px;
}
.table-header h3 { color: var(--white); margin: 0; font-size: 1.3rem; }
.table-header p { font-size: 0.9rem; opacity: 0.95; margin-top: 3px; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.rates-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}
.rates-table th, .rates-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-300);
}
.rates-table thead { background: var(--gray-50); }
.rates-table th {
    font-weight: 700;
    color: var(--gray-700);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
}
.rates-table td { font-size: 0.95rem; }
.rates-table td:first-child { font-weight: 600; color: var(--dark); }
.rates-table .price { font-weight: 700; color: var(--dark); font-family: 'Inter', sans-serif; }
.rates-table .price-24k { color: #b8860b; }
.rates-table tbody tr:hover { background: var(--gold-pale); }
.rates-table tbody tr:last-child td { border-bottom: none; }

/* Trust line under hero rate cards */
.trust-line {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding: 16px 22px;
    margin: 26px 0;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    font-size: 0.88rem;
    color: var(--gray-500);
}
.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}
.trust-item svg { color: var(--gold-primary); flex-shrink: 0; }
.trust-item strong { color: var(--gray-900); font-weight: 700; }
.trust-sep { color: var(--gray-300); font-weight: 700; }

@media (max-width: 720px) {
    .trust-line { padding: 12px 14px; gap: 6px 12px; font-size: 0.78rem; }
    .trust-item svg { width: 14px; height: 14px; }
    .trust-sep { display: none; }
}

/* Polished 7-day table - homepage */
.seven-day-table .day-cell { font-weight: 600; color: var(--dark); white-space: nowrap; }
.seven-day-table .day-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--gold-pale);
    color: var(--gold-dark);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
}
.seven-day-table .day-tag.is-today {
    background: var(--gold-gradient);
    color: var(--white);
}
.seven-day-table tr.is-today-row { background: rgba(212, 175, 55, 0.06); }
.seven-day-table .delta-cell {
    text-align: right;
    font-weight: 700;
    font-size: 0.92rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.seven-day-table .delta-cell small {
    font-size: 0.78rem;
    opacity: 0.85;
    margin-left: 2px;
}
.seven-day-table .delta-up { color: #15803d; }
.seven-day-table .delta-down { color: #b91c1c; }
.seven-day-table .delta-flat { color: var(--gray-500); }
.seven-day-table .price { font-variant-numeric: tabular-nums; }

.purity-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
}
.purity-24k { background: linear-gradient(135deg, #f4d03f, #b8860b); }
.purity-22k { background: linear-gradient(135deg, #e6c029, #a87d0a); }
.purity-18k { background: linear-gradient(135deg, #d4a017, #8b6914); }

/* ===== CHARTS ===== */
.charts-section { background: var(--white); }
.chart-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.chart-tab {
    padding: 10px 24px;
    border: 2px solid var(--gray-300);
    background: var(--white);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--gray-700);
    transition: all 0.25s;
}
.chart-tab:hover { border-color: var(--gold-primary); color: var(--gold-dark); }
.chart-tab.active {
    background: var(--gold-gradient);
    color: var(--white);
    border-color: transparent;
    box-shadow: var(--shadow-gold);
}

.chart-container {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    position: relative;
    height: 420px;
}

/* ===== CALCULATOR ===== */
.calculator-section {
    background: linear-gradient(135deg, var(--gold-pale) 0%, #fff 100%);
}
.calculator {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-lg);
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    border-top: 4px solid var(--gold-primary);
    box-sizing: border-box;
    overflow: hidden;
}
.calc-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.calc-field { display: flex; flex-direction: column; min-width: 0; }
.calc-field label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}
.calc-field input, .calc-field select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 2px solid var(--gray-300);
    border-radius: 10px;
    font-size: 1rem;
    background: var(--white);
    transition: border-color 0.2s;
    font-family: inherit;
}
.calc-field select {
    /* Make sure dropdown arrow doesn't push content out */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 38px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3e%3cpath fill='none' stroke='%23b8860b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
.calc-field input:focus, .calc-field select:focus {
    outline: none;
    border-color: var(--gold-primary);
}
.calc-result {
    grid-column: span 2;
    background: var(--gold-gradient);
    color: var(--white);
    padding: 26px;
    border-radius: 12px;
    text-align: center;
    margin-top: 10px;
}
.calc-result-label { font-size: 0.92rem; opacity: 0.95; margin-bottom: 6px; }
.calc-result-value { font-size: 2.2rem; font-weight: 800; font-family: 'Inter', sans-serif; }
.calc-result-sub { font-size: 0.85rem; opacity: 0.9; margin-top: 6px; }

/* ===== CITIES ===== */
.cities-section {
    background: var(--white);
    padding: 60px 0;
}
.cities-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    font-size: 0.95rem;
    color: var(--gray-500);
}
.cities-stats strong { color: var(--gray-900); font-weight: 600; }
.cities-search-wrap {
    position: relative;
    max-width: 380px;
    margin: 0 auto 24px;
}
.cities-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    pointer-events: none;
}
.cities-search {
    width: 100%;
    padding: 14px 14px 14px 42px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--gray-900);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.cities-search:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
}

.cities-table {
    display: grid;
    gap: 12px;
}

/* Each city row is now a clickable card linking to its city page */
.cities-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 24px;
    gap: 18px;
    padding: 18px 22px;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
    position: relative;
    overflow: hidden;
}
.cities-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    border-color: var(--gold-primary);
}
.cities-row:hover .city-row-arrow { transform: translateX(4px); color: var(--gold-dark); }
.cities-row.is-premium {
    background: linear-gradient(90deg, var(--gold-pale) 0%, var(--white) 70%);
    border-color: var(--gold-primary);
}

.city-name-cell {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.city-flag {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--gold-pale);
    color: var(--gold-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
    font-family: 'Playfair Display', serif;
}
.cities-row.is-premium .city-flag {
    background: var(--gold-gradient);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
}
.city-name-meta { min-width: 0; }
.city-name {
    font-weight: 700;
    color: var(--gray-900);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.city-star {
    color: var(--gold-primary);
    font-size: 0.9rem;
    line-height: 1;
}
.city-tag {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 3px;
    font-weight: 500;
}
.cities-row.is-premium .city-tag { color: var(--gold-dark); font-weight: 600; }

/* Sparkline column */
.city-spark-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}
.city-spark { display: block; }
.city-spark-pct {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
}
.city-spark-pct.dir-up { color: var(--green, #16a34a); }
.city-spark-pct.dir-down { color: #dc2626; }
.city-spark-pct.dir-flat { color: var(--gray-500); }
.city-spark-label {
    font-size: 0.7rem;
    color: var(--gray-500);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Stacked rate column (22K + 24K + 10g 22K) */
.city-rates-cell {
    text-align: right;
    line-height: 1.3;
}
.city-rate-line {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 4px;
}
.city-rate-karat {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gold-dark);
    letter-spacing: 0.05em;
    background: var(--gold-pale);
    padding: 1px 6px;
    border-radius: 4px;
    line-height: 1.2;
}
.city-rate-value {
    font-weight: 700;
    color: var(--gray-900);
    font-size: 1.05rem;
}
.city-rate-line-secondary .city-rate-value {
    color: var(--gray-500);
    font-size: 0.92rem;
    font-weight: 600;
}
.city-rate-line-secondary .city-rate-karat {
    background: var(--gray-100);
    color: var(--gray-500);
}
.city-rate-unit {
    font-size: 0.78rem;
    color: var(--gray-500);
    font-weight: 500;
}
.city-rate-10g {
    margin-top: 3px;
    font-size: 0.72rem;
    color: var(--gray-500);
    letter-spacing: 0.02em;
}
.city-10g-label { font-weight: 600; }
.city-10g-value { font-weight: 700; color: var(--gray-700, #374151); margin-left: 4px; }

/* Right arrow that nudges on hover */
.city-row-arrow {
    color: var(--gray-500);
    transition: transform 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cities-empty {
    padding: 40px 22px;
    text-align: center;
    color: var(--gray-500);
    font-size: 0.95rem;
    background: var(--gray-50);
    border-radius: var(--radius);
}
.cities-note {
    margin-top: 22px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-500);
    font-style: italic;
}

@media (max-width: 720px) {
    .cities-stats { gap: 18px; font-size: 0.85rem; }
    .cities-row {
        grid-template-columns: 1fr auto;
        gap: 14px;
        padding: 16px 14px;
    }
    /* On mobile: name on left, rates on right, sparkline and arrow tuck into name area */
    .city-spark-cell {
        grid-column: 1;
        grid-row: 2;
        flex-direction: row;
        align-items: center;
        gap: 6px;
        padding-left: 54px; /* align under the flag's text */
    }
    .city-rates-cell {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: center;
    }
    .city-row-arrow {
        display: none; /* Hide arrow on mobile to save space — whole card is still tappable */
    }
    .city-name { font-size: 1rem; }
    .city-flag { width: 36px; height: 36px; font-size: 1rem; }
    .city-rate-value { font-size: 1rem; }
    .city-rate-line-secondary .city-rate-value { font-size: 0.88rem; }
    .city-rate-10g { font-size: 0.7rem; }
}

@media (max-width: 480px) {
    .cities-section { padding: 40px 0; }
    .cities-row { padding: 14px 12px; gap: 10px; }
    .city-name { font-size: 0.95rem; }
    .city-flag { width: 32px; height: 32px; font-size: 0.9rem; border-radius: 8px; }
    .city-spark-cell { padding-left: 46px; }
    .city-spark-pct { font-size: 0.72rem; }
    .city-rate-value { font-size: 0.95rem; }
}

/* ===== CITY PAGES (gold-rate-<city>.php) ===== */
.city-hero {
    padding: 50px 0 40px;
    background: linear-gradient(180deg, var(--gold-pale) 0%, var(--white) 100%);
}
.breadcrumb {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 28px;
}
.breadcrumb a { color: var(--gold-dark); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--gray-700, #374151); font-weight: 600; }

.city-hero-content { text-align: center; margin-bottom: 32px; max-width: 800px; margin-left: auto; margin-right: auto; }
.city-hero-badge {
    display: inline-block;
    padding: 7px 18px;
    background: var(--gold-gradient);
    color: var(--white);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 18px;
    box-shadow: var(--shadow-gold);
}
.city-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
    color: var(--dark);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}
.city-hero-deck {
    font-size: 1.05rem;
    color: var(--gray-500);
    line-height: 1.65;
    max-width: 680px;
    margin: 0 auto;
}

/* Three rate cards on the city page */
.city-rate-cards {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}
.city-rate-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    box-shadow: var(--shadow-sm);
}
.city-rate-card.feature {
    background: linear-gradient(150deg, #1a1a2e 0%, #2a2440 60%, #3a2c18 100%);
    border-color: var(--gold-dark);
    color: rgba(255,255,255,0.9);
}
.crc-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gold-dark);
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}
.city-rate-card.feature .crc-label { color: var(--gold-light); }
.crc-price {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}
.city-rate-card.feature .crc-price { color: var(--white); font-size: 2.6rem; }
.crc-unit { font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 500; color: var(--gray-500); margin-left: 3px; }
.city-rate-card.feature .crc-unit { color: rgba(255,255,255,0.6); }
.crc-extras {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-300);
    font-size: 0.85rem;
}
.city-rate-card.feature .crc-extras { border-top-color: rgba(255,255,255,0.15); }
.crc-extras > div { display: flex; flex-direction: column; gap: 2px; }
.crc-extras span {
    font-size: 0.72rem;
    color: var(--gray-500);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-weight: 600;
}
.city-rate-card.feature .crc-extras span { color: rgba(255,255,255,0.55); }
.crc-extras strong { color: var(--dark); font-weight: 700; }
.city-rate-card.feature .crc-extras strong { color: var(--gold-light); }

/* Change vs yesterday bar */
.city-change-bar {
    text-align: center;
    padding: 12px 18px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 16px;
}
.city-change-bar.dir-up { background: rgba(22, 163, 74, 0.1); color: #15803d; }
.city-change-bar.dir-down { background: rgba(220, 38, 38, 0.08); color: #b91c1c; }
.ccb-arrow { margin-right: 6px; }

/* Breakdown table section */
.city-breakdown-section { padding: 50px 0; background: var(--gray-50); }

/* Content sections */
.city-content-section { padding: 50px 0; background: var(--white); }
.city-content { max-width: 820px; margin: 0 auto; }
.city-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.85rem;
    color: var(--dark);
    margin: 36px 0 14px;
    line-height: 1.2;
}
.city-content h2:first-child { margin-top: 0; }
.city-content p, .city-content li {
    color: var(--gray-700, #374151);
    line-height: 1.75;
    font-size: 1.02rem;
    margin-bottom: 14px;
}
.city-content strong { color: var(--dark); font-weight: 700; }
.city-content ol { padding-left: 24px; margin-bottom: 18px; }
.city-content ol li { margin-bottom: 10px; }
.city-content a { color: var(--gold-dark); font-weight: 600; }
.city-content a:hover { text-decoration: underline; }

/* FAQ */
.city-faq { margin-top: 18px; }
.city-faq details {
    background: var(--gray-50);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 16px 22px;
    margin-bottom: 12px;
}
.city-faq summary {
    font-family: 'Playfair Display', serif;
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    list-style: none;
}
.city-faq summary::-webkit-details-marker { display: none; }
.city-faq summary::after {
    content: '+';
    float: right;
    font-size: 1.4rem;
    color: var(--gold-primary);
    line-height: 1;
    transition: transform 0.2s;
}
.city-faq details[open] summary::after { content: '−'; }
.city-faq details p {
    margin-top: 12px;
    margin-bottom: 0;
    color: var(--gray-500);
}

/* Other cities grid */
.other-cities-section { padding: 50px 0; background: var(--gray-50); }
.other-cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}
.other-city-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 18px 22px;
    text-decoration: none;
    color: inherit;
    transition: all 0.18s;
    display: block;
}
.other-city-card:hover {
    border-color: var(--gold-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}
.occ-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}
.occ-rate {
    font-size: 0.92rem;
    color: var(--gold-dark);
    font-weight: 700;
    margin-bottom: 2px;
}
.occ-rate-secondary { font-size: 0.85rem; color: var(--gray-500); font-weight: 600; }
.other-cities-cta { text-align: center; }
.other-cities-cta-link {
    display: inline-block;
    padding: 12px 28px;
    background: var(--gold-gradient);
    color: var(--white);
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: var(--shadow-gold);
    transition: transform 0.2s;
}
.other-cities-cta-link:hover { transform: translateY(-2px); }

@media (max-width: 720px) {
    .city-rate-cards { grid-template-columns: 1fr; }
    .city-rate-card.feature .crc-price { font-size: 2.4rem; }
    .city-content h2 { font-size: 1.5rem; }
    .city-content p, .city-content li { font-size: 0.96rem; }
    .city-faq summary { font-size: 1rem; }
}

/* ===== ARTICLE ===== */
.article-section { background: var(--gray-50); }
.article {
    background: var(--white);
    padding: 50px 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}
.article h2 { font-size: 2.1rem; margin: 0 0 20px; }
.article h3 { font-size: 1.55rem; margin: 32px 0 14px; color: var(--gold-dark); border-left: 4px solid var(--gold-primary); padding-left: 14px; }
.article h4 { font-size: 1.2rem; margin: 22px 0 10px; color: var(--dark); }
.article p { margin-bottom: 16px; color: var(--gray-700); font-size: 1.02rem; }
.article ul, .article ol { margin: 16px 0 16px 24px; }
.article li { margin-bottom: 8px; color: var(--gray-700); }
.article strong { color: var(--dark); font-weight: 700; }

/* ===== HOMEPAGE EXTRA: Buyer Checklist ===== */
.buyer-checklist {
    display: grid;
    gap: 12px;
    margin: 22px 0 32px;
}
.bc-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 22px;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.bc-item:hover { border-color: var(--gold-primary); box-shadow: 0 8px 22px rgba(0,0,0,0.04); }
.bc-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
}
.bc-body strong {
    display: block;
    color: var(--dark);
    font-weight: 700;
    font-size: 1.02rem;
    margin-bottom: 4px;
}
.bc-body p {
    margin: 0;
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ===== HOMEPAGE EXTRA: Glossary Grid ===== */
.glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin: 22px 0 32px;
}
.glossary-item {
    padding: 16px 18px;
    background: var(--gold-pale);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.glossary-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
}
.glossary-item strong {
    display: block;
    color: var(--gold-dark);
    font-weight: 800;
    font-size: 0.98rem;
    margin-bottom: 6px;
    letter-spacing: -0.005em;
}
.glossary-item p {
    margin: 0;
    color: var(--gray-700);
    font-size: 0.88rem;
    line-height: 1.55;
}

/* ===== HOMEPAGE EXTRA: FAQ Accordion (matches city page style) ===== */
.home-faq { margin: 22px 0 32px; }
.home-faq details {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 14px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.home-faq details[open] {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}
.home-faq summary {
    padding: 18px 22px;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--dark);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.home-faq summary::-webkit-details-marker { display: none; }
.home-faq summary::after {
    content: '+';
    color: var(--gold-primary);
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 1;
    flex-shrink: 0;
}
.home-faq details[open] summary::after { content: '−'; }
.home-faq details p {
    padding: 0 22px 20px;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.7;
    font-size: 0.95rem;
}

@media (max-width: 720px) {
    .bc-item { padding: 14px 16px; gap: 12px; grid-template-columns: 32px 1fr; }
    .bc-num { width: 28px; height: 28px; font-size: 0.82rem; }
    .bc-body strong { font-size: 0.96rem; }
    .bc-body p { font-size: 0.88rem; }
    .glossary-grid { grid-template-columns: 1fr; gap: 10px; }
    .glossary-item { padding: 14px 16px; }
    .home-faq summary { padding: 14px 16px; font-size: 0.95rem; }
    .home-faq details p { padding: 0 16px 16px; font-size: 0.9rem; }
}

.article-intro {
    font-size: 1.1rem;
    color: var(--gray-700);
    background: var(--gold-pale);
    padding: 18px 22px;
    border-radius: 10px;
    border-left: 4px solid var(--gold-primary);
    margin-bottom: 28px;
}

/* ===== FOOTER ===== */
.site-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f1a30 100%);
    color: rgba(255,255,255,0.8);
    padding: 56px 0 24px;
    margin-top: 60px;
    text-align: center;
}
.site-footer .container { text-align: center; }

/* 1. Logo — centered, larger */
.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto 20px;
    width: fit-content;
}
.footer-logo strong {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 2. Description */
.footer-description {
    max-width: 680px;
    margin: 0 auto 28px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.75);
    text-align: center;
}

/* 3. Page links — centered with bulletproof spacing */
.footer-links {
    text-align: center;
    padding: 26px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 24px;
    line-height: 2.2;
}
.footer-links a {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 4px 18px;
    margin: 0;
    display: inline-block;
    transition: color 0.2s;
    position: relative;
}
.footer-links a:hover {
    color: var(--gold-light);
}
/* Dot separator between links (does not show on last link) */
.footer-links a:not(:last-child)::after {
    content: '·';
    position: absolute;
    right: -3px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.25);
    font-weight: 700;
    pointer-events: none;
}

/* 4. Copyright + disclaimer */
.footer-bottom {
    text-align: center;
    font-size: 0.88rem;
}
.footer-bottom p { margin-bottom: 8px; }
.footer-bottom strong {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.footer-disclaimer {
    font-size: 0.78rem;
    opacity: 0.7;
    font-style: italic;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ===== HERO CTA + TRUST LINE (replaces old hero-stats) ===== */
.hero-cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    justify-content: center;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 13px 24px;
    background: var(--gold-gradient);
    color: var(--white);
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.98rem;
    box-shadow: var(--shadow-gold);
    transition: transform 0.2s, box-shadow 0.2s;
}
.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(212, 175, 55, 0.35);
}
.hero-cta-ghost {
    background: transparent;
    color: var(--gold-dark);
    border: 2px solid var(--gold-primary);
    box-shadow: none;
}
.hero-cta-ghost:hover {
    background: var(--gold-pale);
    box-shadow: none;
}
.hero-trust-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
}
.live-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18);
    animation: livePulseAnim 2s infinite;
}
@keyframes livePulseAnim {
    0%, 100% { box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18); }
    50%      { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
}

/* ===== GLOBAL MOBILE OVERFLOW PREVENTION ===== */
html, body { overflow-x: hidden; max-width: 100vw; }
img, svg, video, iframe { max-width: 100%; height: auto; }
.article, .article p, .article li, .article h2, .article h3, .article h4 {
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.table-wrapper { max-width: 100%; overflow: hidden; }
.table-scroll { -webkit-overflow-scrolling: touch; max-width: 100%; }
pre, code { white-space: pre-wrap; word-wrap: break-word; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.3rem; }
    .hero-content { gap: 30px; }
}

@media (max-width: 768px) {
    h1 { font-size: 1.85rem; }
    h2 { font-size: 1.6rem; }
    .section-header h2 { font-size: 1.7rem; }
    
    .menu-toggle { display: flex; }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        padding: 12px 20px;
        display: none;
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 4px; }
    .main-nav a { display: block; padding: 12px 14px; }
    
    .date-strip .container { font-size: 0.78rem; }
    
    .hero { padding: 40px 0 50px; }
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero h1 { font-size: 2rem; }
    .hero-tagline { font-size: 1rem; }
    .hero-visual { order: -1; }
    .gold-coin { width: 200px; height: 200px; }
    .gold-coin-rate { font-size: 1.6rem; }
    .gold-coin-text { font-size: 1.1rem; }
    
    section { padding: 40px 0; }
    
    .rate-cards { grid-template-columns: 1fr; gap: 16px; }
    .rate-card { padding: 22px 20px; }
    .rate-card-price { font-size: 2.1rem; }
    
    .calculator { padding: 18px 14px; }
    /* On mobile: Weight (narrow) + Unit on row 1, Purity full-width on row 2 */
    .calc-form {
        grid-template-columns: 0.7fr 1fr;
        gap: 10px;
    }
    .calc-form .calc-field:nth-child(3) {
        grid-column: 1 / -1; /* Purity spans both columns */
    }
    .calc-field { min-width: 0; max-width: 100%; }
    .calc-field label { font-size: 0.78rem; margin-bottom: 5px; }
    .calc-field input, .calc-field select {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 10px 10px;
        font-size: 0.9rem;
        border-radius: 8px;
        box-sizing: border-box;
    }
    .calc-field select { padding-right: 28px; background-position: right 8px center; }
    .calc-result { grid-column: 1 / -1; padding: 18px; }
    .calc-result-value { font-size: 1.55rem; }
    
    .chart-container { padding: 16px; height: 340px; }
    .chart-tab { padding: 8px 18px; font-size: 0.85rem; }
    
    .article { padding: 28px 22px; }
    .article h2 { font-size: 1.7rem; }
    .article h3 { font-size: 1.3rem; padding-left: 10px; }
    .article h4 { font-size: 1.1rem; }
    .article p, .article li { font-size: 0.97rem; }

    /* Footer on mobile */
    .footer-logo strong { font-size: 1.25rem; }
    .footer-description { font-size: 0.88rem; padding: 0 8px; }
    .footer-links { padding: 22px 0; line-height: 2.4; }
    .footer-links a { font-size: 0.88rem; padding: 4px 14px; }
    .footer-disclaimer { font-size: 0.74rem; padding: 0 8px; }
    

    /* Tables: shrink min-width so they fit phones better, scroll horizontally when truly needed */
    .rates-table { min-width: 480px; }
    .rates-table th, .rates-table td { padding: 10px 10px; font-size: 0.85rem; white-space: nowrap; }
    .rates-table .price { font-size: 0.9rem; }
    .table-scroll {
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
        scrollbar-color: var(--gold-primary) var(--gray-100);
    }
    .table-scroll::-webkit-scrollbar { height: 6px; }
    .table-scroll::-webkit-scrollbar-thumb { background: var(--gold-primary); border-radius: 3px; }
    .table-scroll::-webkit-scrollbar-track { background: var(--gray-100); }
    .table-header { padding: 14px 18px; }
    .table-header h3 { font-size: 1.1rem; }
    .table-header p { font-size: 0.8rem; }

    /* Hero CTA: stack vertically on small phones */
    .hero-cta-row { justify-content: center; }
    .hero-cta { padding: 12px 20px; font-size: 0.92rem; }
    .hero-trust-line { font-size: 0.78rem; justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .logo-name { font-size: 1.1rem; }
    .logo-sub { font-size: 0.62rem; }
    .hero h1 { font-size: 1.65rem; }
    .gold-coin { width: 160px; height: 160px; }
    .gold-coin-rate { font-size: 1.35rem; }
    .rate-card-price { font-size: 1.85rem; }
    .rate-card-title { font-size: 1.3rem; }

    /* Tables on very small phones — keep them readable while still scrollable */
    .rates-table { min-width: 420px; font-size: 0.82rem; }
    .rates-table th, .rates-table td { padding: 8px 8px; }
    .purity-badge { font-size: 0.7rem; padding: 2px 7px; }

    /* Hero CTAs full-width on very small phones */
    .hero-cta { width: 100%; justify-content: center; }
}
