/* ═══════════════════════════════════════════════════════════
   GoldRatePro — Main Stylesheet
   Vanilla CSS, mobile-first, no frameworks
   ═══════════════════════════════════════════════════════════ */
/* ─── CSS Custom Properties ─── */
:root {
    /* Colors */
    --gold:          #C5902A;
    --gold-light:    #E0A93E;
    --gold-dark:     #9A6E1B;
    --gold-bg:       #FDF8EE;
    --gold-subtle:   rgba(197,144,42,0.1);
    --primary:       #C5902A;
    --primary-hover: #9A6E1B;
    --emerald:       #059669;
    --emerald-light: #D1FAE5;
    --red:           #DC2626;
    --red-light:     #FEE2E2;
    --background:    #FAFAF8;
    --surface:       #FFFFFF;
    --surface-2:     #F5F3EE;
    --text:          #1C1917;
    --text-muted:    #78716C;
    --text-subtle:   #A8A29E;
    --border:        #E7E0D4;
    --border-strong: #D4C9B4;
    /* Shadows */
    --shadow-sm:     0 1px 3px rgba(0,0,0,0.07);
    --shadow-md:     0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg:     0 8px 32px rgba(0,0,0,0.10);
    /* Radius */
    --radius-sm:     6px;
    --radius:        12px;
    --radius-lg:     16px;
    --radius-xl:     24px;
    /* Typography */
    --font-body:     'Inter', system-ui, -apple-system, sans-serif;
    --font-display:  'Playfair Display', Georgia, serif;
    /* Spacing */
    --space-xs:      0.25rem;
    --space-sm:      0.5rem;
    --space-md:      1rem;
    --space-lg:      1.5rem;
    --space-xl:      2rem;
    --space-2xl:     3rem;
    --space-3xl:     4rem;
    /* Layout */
    --container-max: 1200px;
    --header-h:      68px;
}
/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
    min-height: 100vh;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; }
h1,h2,h3,h4,h5,h6 { line-height: 1.25; }
/* ─── Skip Link (Accessibility) ─── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--gold);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-weight: 600;
    z-index: 9999;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }
/* ─── Container ─── */
.container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: 1rem;
}
@media (min-width: 640px)  { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }
/* ─── Typography ─── */
.display-font { font-family: var(--font-display); }
.text-gold     { color: var(--gold); }
.text-muted    { color: var(--text-muted); }
.text-emerald  { color: var(--emerald); }
/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.1s;
    text-decoration: none;
    white-space: nowrap;
}
.btn:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: var(--gold);
    color: #fff;
}
.btn-primary:hover { background: var(--gold-dark); }
.btn-secondary {
    background: var(--surface);
    color: var(--gold-dark);
    border: 1.5px solid var(--border-strong);
}
.btn-secondary:hover {
    background: var(--gold-bg);
    border-color: var(--gold);
}
.btn-ghost {
    background: transparent;
    color: var(--gold);
    border: 1.5px solid var(--gold);
}
.btn-ghost:hover { background: var(--gold-subtle); }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.875rem; }
.btn-lg { padding: 0.85rem 1.75rem; font-size: 1.0625rem; }
/* ─── Cards ─── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.card-hover {
    transition: box-shadow 0.25s, transform 0.25s;
}
.card-hover:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
/* ─── Form Elements ─── */
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}
.form-label .optional {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.8rem;
}
.form-control {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    color: var(--text);
    background: var(--surface);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-subtle);
}
.form-control.is-invalid { border-color: var(--red); }
.form-hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
}
.form-error {
    font-size: 0.8125rem;
    color: var(--red);
    display: none;
}
.form-error.visible { display: block; }
/* ─── Purity Selector Cards ─── */
.purity-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}
@media (max-width: 480px) { .purity-grid { grid-template-columns: repeat(2, 1fr); } }
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
@media (min-width: 480px) {
    .form-grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}
.purity-card {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 0.8rem 0.4rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: linear-gradient(135deg, #ffffff 0%, #f7f5ef 100%);
    position: relative;
    overflow: hidden;
    user-select: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 1px 2px rgba(0,0,0,0.04);
}
.purity-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -70%;
    width: 30%;
    height: 200%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(30deg);
    transition: all 0.5s ease;
    opacity: 0;
    pointer-events: none;
}
.purity-card:hover::after {
    left: 140%;
    opacity: 1;
}
.purity-card:hover {
    border-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 105, 20, 0.12);
}
.purity-card.selected {
    border-color: var(--gold-dark);
    background: linear-gradient(135deg, #FFF9E6 0%, #FFE08A 100%);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2), inset 0 1px 0 rgba(255,255,255,0.4);
}
.purity-card .pc-karat { font-weight: 700; font-size: 1.05rem; color: var(--gold-dark); text-shadow: 0 1px 0 rgba(255,255,255,0.7); }
.purity-card .pc-pct   { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; font-weight: 500; }
/* Making charge mode toggle */
.toggle-group {
    display: flex;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.toggle-btn {
    flex: 1;
    padding: 0.55rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    background: transparent;
    color: var(--text-muted);
    transition: all 0.2s;
    text-align: center;
}
.toggle-btn.active {
    background: var(--gold);
    color: #fff;
}
.toggle-btn:not(.active):hover { background: var(--gold-bg); color: var(--gold-dark); }
/* ─── HEADER ─── */
.site-header {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-h);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 100%;
}
/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}
.logo-icon { flex-shrink: 0; }
.logo-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold-dark);
    letter-spacing: -0.01em;
}
/* Desktop nav */
.desktop-nav { display: none; flex: 1; }
@media (min-width: 1024px) { .desktop-nav { display: flex; align-items: center; } }
.nav-list { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    transition: background 0.15s, color 0.15s;
}
.nav-link:hover, .nav-link:focus { background: var(--gold-bg); color: var(--gold-dark); }
.nav-link.nav-active { color: var(--gold-dark); font-weight: 600; }
.nav-dropdown-btn { background: none; }
.dd-arrow { transition: transform 0.2s; }
.nav-dropdown-btn[aria-expanded="true"] .dd-arrow { transform: rotate(180deg); }
/* Dropdown */
.nav-dropdown-wrap { position: relative; }
.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 240px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.18s, transform 0.18s;
    z-index: 200;
}
.nav-dropdown.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.dd-item {
    display: block;
    padding: 0.55rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text);
    transition: background 0.15s, color 0.15s;
}
.dd-item:hover { background: var(--gold-bg); color: var(--gold-dark); }
.dd-item-title { font-weight: 600; display: block; }
.dd-item-sub   { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; display: block; }
.dd-item-view-all { font-weight: 600; color: var(--gold-dark); }
.dd-divider { height: 1px; background: var(--border); margin: 0.35rem 0.5rem; }
/* Header CTA */
.header-cta { margin-left: auto; font-size: 0.875rem; padding: 0.5rem 1.1rem; }
@media (max-width: 1023px) { .header-cta { display: none; } }
/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    margin-left: auto;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: background 0.15s;
}
.hamburger:hover { background: var(--gold-bg); }
@media (min-width: 1024px) { .hamburger { display: none; } }
.ham-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.2s;
}
.hamburger.open .ham-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .ham-bar:nth-child(2) { opacity: 0; }
.hamburger.open .ham-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* Mobile nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface);
    overflow-y: auto;
    border-top: 1px solid var(--border);
    z-index: 999;
}
.mobile-nav.open { display: block; }
.mobile-nav-inner { padding: 1rem; }
.mobile-nav-list { display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-weight: 500;
    color: var(--text);
    transition: background 0.15s;
}
.mobile-nav-link:hover,
.mobile-nav-link.nav-active { background: var(--gold-bg); color: var(--gold-dark); }
.mobile-accordion-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 1rem;
    color: var(--text);
    transition: background 0.15s;
}
.mobile-accordion-btn:hover { background: var(--gold-bg); color: var(--gold-dark); }
.mobile-accordion-btn[aria-expanded="true"] .dd-arrow { transform: rotate(180deg); }
.mobile-accordion-list {
    display: none;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.25rem 0 0.25rem 1rem;
}
.mobile-accordion-list.open { display: flex; }
.mobile-sub-link {
    display: block;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: background 0.15s, color 0.15s;
}
.mobile-sub-link:hover { background: var(--gold-bg); color: var(--gold-dark); }
.mobile-cta-btn { width: 100%; justify-content: center; margin-top: 0.5rem; }
/* ─── HERO ─── */
.hero {
    background: var(--gold-bg);
    border-bottom: 1px solid var(--border);
    padding: var(--space-3xl) 0 var(--space-2xl);
    text-align: center;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--gold-subtle);
    border: 1px solid var(--border-strong);
    border-radius: 100px;
    padding: 0.3rem 0.9rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gold-dark);
    margin-bottom: 1.25rem;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.15;
    margin-bottom: 1rem;
    max-width: 780px;
    margin-inline: auto;
}
.hero-title .accent { color: var(--gold); }
.hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: var(--text-muted);
    max-width: 580px;
    margin-inline: auto;
    margin-bottom: 2rem;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.hero-updated {
    font-size: 0.8125rem;
    color: var(--text-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}
.hero-updated::before {
    content: '';
    width: 7px; height: 7px;
    background: var(--emerald);
    border-radius: 50%;
    display: inline-block;
}
/* ─── PRICE TICKER (hero rate cards) ─── */
.price-ticker {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    max-width: 680px;
    margin: 2rem auto 0;
}
@media (min-width: 640px) { .price-ticker { grid-template-columns: repeat(4, 1fr); } }
.ticker-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem 0.75rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.ticker-label { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.ticker-price { font-size: 1.3rem; font-weight: 700; color: var(--gold-dark); margin: 0.3rem 0 0.1rem; font-family: var(--font-display); }
.ticker-unit  { font-size: 0.7rem; color: var(--text-subtle); }
/* ─── SECTION LAYOUT ─── */
.section { padding: var(--space-3xl) 0; }
.section-sm { padding: var(--space-2xl) 0; }
.section-alt { background: var(--surface-2); }
.section-header { margin-bottom: var(--space-2xl); }
.section-header.centered { text-align: center; }
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.section-subtitle { color: var(--text-muted); font-size: 1rem; max-width: 560px; }
.section-header.centered .section-subtitle { margin-inline: auto; }
/* ─── GOLD RATE CARDS ─── */
.rate-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 480px) { .rate-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .rate-grid { grid-template-columns: repeat(4, 1fr); } }
.rate-card {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s, transform 0.25s;
}
.rate-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.rate-card-karat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
.rate-karat-name { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.rate-purity-badge {
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--gold-subtle);
    color: var(--gold-dark);
    border: 1px solid var(--border-strong);
    border-radius: 100px;
    padding: 0.15rem 0.55rem;
}
.rate-price-gram {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gold-dark);
    line-height: 1;
    margin-bottom: 0.2rem;
}
.rate-price-gram-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.rate-divider { height: 1px; background: var(--border); margin: 0.75rem 0; }
.rate-price-10g { font-size: 1rem; font-weight: 600; color: var(--text); }
.rate-10g-label { font-size: 0.75rem; color: var(--text-muted); }
.rate-no-data {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--surface-2);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    margin-top: 0.5rem;
}
/* ─── CALCULATOR TOOL CARDS ─── */
.calc-tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 480px) { .calc-tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .calc-tools-grid { grid-template-columns: repeat(3, 1fr); } }
.calc-tool-card {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.25s, transform 0.25s, border-color 0.2s;
}
.calc-tool-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--gold);
}
.calc-icon {
    width: 44px;
    height: 44px;
    background: var(--gold-subtle);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.calc-card-title { font-weight: 700; font-size: 1.0625rem; color: var(--text); }
.calc-card-desc  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; flex: 1; }
.calc-card-link  { font-size: 0.875rem; font-weight: 600; color: var(--gold-dark); display: flex; align-items: center; gap: 0.3rem; }
/* ─── CALCULATOR PAGE LAYOUT ─── */
.calc-page-header {
    background: var(--gold-bg);
    border-bottom: 1px solid var(--border);
    padding: var(--space-2xl) 0 var(--space-xl);
}
.calc-page-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.calc-page-desc { color: var(--text-muted); max-width: 580px; }
.calc-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}
@media (min-width: 900px) {
    .calc-layout { grid-template-columns: 1fr 420px; }
}
/* Calculator Form Card */
.calc-form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}
.calc-form-section { margin-bottom: 1.5rem; }
.calc-form-section:last-child { margin-bottom: 0; }
.calc-section-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}
/* Results Card */
.calc-results-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: calc(var(--header-h) + 1rem);
}
.calc-results-header {
    background: var(--gold);
    padding: 1.25rem 1.5rem;
}
.calc-results-header h2 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}
.calc-results-body { padding: 1.5rem; }
.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.result-row:last-child { border-bottom: none; }
.result-label { color: var(--text-muted); }
.result-value { font-weight: 600; color: var(--text); text-align: right; }
.result-divider { height: 2px; background: var(--border-strong); margin: 0.5rem 0; }
.result-total {
    background: var(--gold-bg);
    border-radius: var(--radius);
    padding: 1rem;
    margin-top: 0.75rem;
    text-align: center;
}
.result-total-label { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.result-total-price {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-dark);
}
.result-total-sub { font-size: 0.8125rem; color: var(--text-muted); margin-top: 0.25rem; }
.result-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
}
.result-empty-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.result-empty p { font-size: 0.9rem; line-height: 1.5; }
.calc-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.calc-actions .btn { flex: 1; justify-content: center; }
/* Custom rate row */
.custom-rate-row {
    display: none;
    flex-direction: column;
    gap: 0.35rem;
}
.custom-rate-row.visible { display: flex; }
/* ─── BREADCRUMBS ─── */
.breadcrumbs { margin-bottom: 1.25rem; }
.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.1rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}
.breadcrumb-item a { color: var(--gold-dark); transition: color 0.15s; }
.breadcrumb-item a:hover { color: var(--gold); text-decoration: underline; }
.breadcrumb-item [aria-current="page"] { color: var(--text-muted); }
.breadcrumb-sep { color: var(--text-subtle); padding: 0 0.2rem; }
/* ─── INFO CARDS (Why section) ─── */
.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.why-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.why-title { font-weight: 700; font-size: 1.0625rem; margin-bottom: 0.4rem; }
.why-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }
/* ─── FAQ ─── */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; max-width: 800px; }
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text);
    text-align: left;
    transition: background 0.15s;
}
.faq-question:hover { background: var(--gold-bg); }
.faq-question[aria-expanded="true"] { color: var(--gold-dark); }
.faq-chevron {
    flex-shrink: 0;
    transition: transform 0.25s;
    color: var(--gold-dark);
}
.faq-question[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.faq-answer {
    display: none;
    padding: 0 1.25rem 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}
.faq-answer.open { display: block; }
/* ─── CITY RATES ─── */
.city-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
@media (min-width: 640px) { .city-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .city-grid { grid-template-columns: repeat(4, 1fr); } }
.city-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.city-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--gold); }
.city-name { font-weight: 700; font-size: 0.9375rem; }
.city-price { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--gold-dark); }
.city-purity { font-size: 0.7rem; color: var(--text-muted); }
/* ─── CONTENT SECTIONS ─── */
.content-section { max-width: 800px; }
.content-section h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
    margin-top: 2rem;
}
.content-section h2:first-child { margin-top: 0; }
.content-section h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); margin: 1.25rem 0 0.5rem; }
.content-section p  { color: var(--text-muted); line-height: 1.75; margin-bottom: 0.75rem; }
.content-section ul { padding-left: 1.25rem; margin-bottom: 0.75rem; }
.content-section ul li { color: var(--text-muted); margin-bottom: 0.4rem; list-style: disc; font-size: 0.9375rem; }
/* Formula box */
.formula-box {
    background: var(--gold-bg);
    border: 1px solid var(--border-strong);
    border-left: 4px solid var(--gold);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1rem 1.25rem;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--gold-dark);
    margin: 1rem 0;
}
/* Purity reference table */
.purity-table-wrap { overflow-x: auto; margin: 1rem 0; }
.purity-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.purity-table th {
    background: var(--gold-bg);
    border: 1px solid var(--border);
    padding: 0.65rem 1rem;
    text-align: left;
    font-weight: 700;
    color: var(--gold-dark);
}
.purity-table td {
    border: 1px solid var(--border);
    padding: 0.6rem 1rem;
    color: var(--text);
}
.purity-table tr:nth-child(even) td { background: var(--surface-2); }
.purity-table tr:hover td { background: var(--gold-bg); }
/* ─── AD PLACEHOLDERS ─── */
.ad-placeholder {
    background: var(--surface-2);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-subtle);
}
.ad-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.ad-banner { min-height: 90px; margin: 1rem 0; }
.ad-square { min-height: 250px; min-width: 250px; }
/* ─── PRICE ALERT PAGE ─── */
.alert-notice {
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-left: 4px solid var(--gold);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
/* ─── INVESTMENT RESULT ─── */
.profit-positive { color: var(--emerald); }
.profit-negative { color: var(--red); }
.profit-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.65rem;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 700;
}
.profit-badge.positive { background: var(--emerald-light); color: var(--emerald); }
.profit-badge.negative { background: var(--red-light); color: var(--red); }
/* ─── COMPARISON TABLE (Gold vs Silver) ─── */
.comparison-table { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.comparison-table th { background: var(--gold); color: #fff; padding: 1rem; font-weight: 700; font-size: 0.9375rem; }
.comparison-table th:first-child { background: var(--surface-2); color: var(--text-muted); }
.comparison-table td { border: 1px solid var(--border); padding: 0.85rem 1rem; font-size: 0.9375rem; }
.comparison-table td:first-child { font-weight: 600; background: var(--surface-2); color: var(--text-muted); }
.comparison-table tr:nth-child(even) td { background: var(--gold-bg); }
/* ─── FOOTER ─── */
.site-footer {
    background: var(--text);
    color: #E7E0D4;
    padding: var(--space-3xl) 0 var(--space-xl);
    margin-top: auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 0.75rem;
}
.footer-tagline { font-size: 0.875rem; color: #A8A29E; margin-bottom: 0.75rem; }
.footer-disclaimer { font-size: 0.8rem; color: #78716C; line-height: 1.6; }
.footer-heading {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #A8A29E;
    margin-bottom: 0.85rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-links a {
    font-size: 0.875rem;
    color: #D4C9B4;
    transition: color 0.15s;
}
.footer-links a:hover { color: var(--gold-light); }
.footer-view-all { color: var(--gold-light) !important; font-weight: 600; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
@media (min-width: 640px) {
    .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
.footer-copy  { font-size: 0.8125rem; color: #78716C; }
.footer-legal { font-size: 0.75rem; color: #57534E; max-width: 480px; text-align: right; }
/* ─── 404 PAGE ─── */
.page-404 { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 3rem 1rem; }
.page-404-icon { font-size: 4rem; margin-bottom: 1rem; }
.page-404-title { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.page-404-sub   { color: var(--text-muted); margin-bottom: 2rem; max-width: 400px; }
.page-404-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
/* ─── UTILITY CLASSES ─── */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.gap-sm { gap: 0.5rem; }
.gap-md { gap: 1rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-bold { font-weight: 700; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* ─── PRINT STYLES ─── */
@media print {
    .site-header,
    .site-footer,
    .calc-form-card,
    .breadcrumbs,
    .hero,
    .no-print { display: none !important; }
    body { font-size: 12pt; color: #000; background: #fff; }
    .calc-results-card {
        position: static;
        border: 1px solid #ccc;
        box-shadow: none;
        page-break-inside: avoid;
    }
    .calc-results-header { background: #1a1a1a !important; -webkit-print-color-adjust: exact; }
    .print-header {
        display: block !important;
        text-align: center;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
        border-bottom: 2px solid #ccc;
    }
    .print-header h1 { font-size: 18pt; }
    .print-header p  { font-size: 10pt; color: #555; }
    a::after { content: ''; }
}
.print-header { display: none; }
/* ─── LIVE PULSE BADGE & TREND INDICATORS ─── */
.live-badge-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--emerald);
    background: rgba(16, 185, 129, 0.08);
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    margin: 0 auto var(--space-xs);
    justify-content: center;
}
.live-pulse-dot {
    width: 7px;
    height: 7px;
    background: var(--emerald);
    border-radius: 50%;
    position: relative;
    display: inline-block;
}
.live-pulse-dot::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    background: var(--emerald);
    animation: live-pulse-grow 1.8s infinite ease-out;
}
@keyframes live-pulse-grow {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(3.5); opacity: 0; }
}
.trend-indicator {
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.125rem 0.35rem;
    border-radius: 4px;
    margin-left: 0.35rem;
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    vertical-align: middle;
}
.trend-up {
    color: var(--emerald);
    background: rgba(16, 185, 129, 0.1);
}
.trend-down {
    color: var(--red);
    background: rgba(239, 68, 68, 0.1);
}
@media (max-width: 640px) {
    .container { padding: 0 1rem; }
    .calc-form-card { padding: 1.25rem 1rem; }
    .calc-results-body { padding: 1.25rem 1rem; }
}
