/* ==========================================================================
   Global Market Tracker - Modern Financial Dashboard Stylesheet
   ========================================================================== */

:root {
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --border-color: #e2e8f0;
  --border-focus: #3b82f6;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;

  --gold-accent: #d97706;
  --gold-light: #fef3c7;
  --silver-accent: #64748b;
  --silver-light: #f1f5f9;

  --positive: #16a34a;
  --positive-bg: #dcfce7;
  --negative: #dc2626;
  --negative-bg: #fee2e2;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.font-mono {
  font-family: var(--font-mono);
}

.font-semibold {
  font-weight: 600;
}

.text-large {
  font-size: 1.125rem;
}

.text-positive {
  color: var(--positive);
  font-weight: 600;
}

.text-negative {
  color: var(--negative);
  font-weight: 600;
}

.text-center {
  text-align: center;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-main {
  flex: 1;
  padding-bottom: 4rem;
}

/* Banner */
.demo-banner {
  background-color: #fffbeb;
  border-bottom: 1px solid #fde68a;
  color: #92400e;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.demo-banner.banner-live {
  background-color: #f0fdf4;
  border-bottom: 1px solid #bbf7d0;
  color: #166534;
}

.demo-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Header & Nav */
.site-header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
}

.logo-icon {
  font-size: 1.5rem;
}

.site-nav .nav-list {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
}

/* Breadcrumbs */
.breadcrumbs-container {
  max-width: 1200px;
  margin: 1rem auto 0;
  padding: 0 1.25rem;
  font-size: 0.875rem;
}

.breadcrumbs-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.5rem;
}

.breadcrumbs-list a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumbs-list a:hover {
  color: var(--primary);
}

.breadcrumb-separator {
  color: var(--border-color);
}

/* Hero Section */
.hero-section {
  padding: 2.5rem 0 1.5rem;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.hero-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.meta-pill {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
}

/* Section */
.section {
  margin-top: 2.5rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.source-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

/* Grids */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* Market Cards */
.market-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.market-card:hover {
  box-shadow: var(--shadow-md);
}

.gold-card {
  border-top: 4px solid var(--gold-accent);
}

.silver-card {
  border-top: 4px solid var(--silver-accent);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.metal-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.gold-icon {
  background-color: var(--gold-light);
  color: var(--gold-accent);
}

.silver-icon {
  background-color: var(--silver-light);
  color: var(--silver-accent);
}

.card-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.card-instrument {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.card-price-primary {
  margin-bottom: 1.5rem;
}

.card-price-primary .price-val {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.card-price-primary .price-unit {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.card-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.metric-val {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.card-footer-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-warning {
  background-color: #fef3c7;
  color: #b45309;
}

.badge-success {
  background-color: #dcfce7;
  color: #15803d;
}

.badge-subtle {
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
}

.badge-outline {
  border: 1px dashed var(--border-color);
  color: var(--text-muted);
}

.status-badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
}

/* Data Table */
.rates-table-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  background-color: var(--bg-subtle);
  padding: 0.875rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9375rem;
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* Chart Box Placeholder */
.chart-container-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.chart-placeholder-message {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.chart-placeholder-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.chart-placeholder-message h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.chart-placeholder-message p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.chart-timeframe-selector {
  display: flex;
  gap: 0.25rem;
  background: var(--bg-subtle);
  padding: 0.25rem;
  border-radius: var(--radius-md);
}

.btn-timeframe {
  border: none;
  background: none;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.btn-timeframe.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

/* Calculator Cards & Forms */
.calc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.calc-card-title {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.calc-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input, .form-select {
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-family: inherit;
  background-color: var(--bg-surface);
  color: var(--text-primary);
  transition: border-color 0.15s ease;
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--border-focus);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-inverse);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary-light);
}

/* Page Intro Headers */
.page-intro-header {
  padding: 2rem 0 1rem;
}

.page-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0.5rem 0;
}

.page-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.meta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Quick Navigation Links */
.summary-info-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.quick-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quick-link-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1rem;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-primary);
  transition: background-color 0.15s ease, transform 0.15s ease;
  border: 1px solid var(--border-color);
}

.quick-link-item:hover {
  background-color: var(--primary-light);
  transform: translateX(4px);
}

.link-arrow {
  font-size: 1.25rem;
  color: var(--primary);
}

/* Karat Highlight Cards */
.karat-highlight-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.karat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.karat-badge {
  font-size: 1.125rem;
  font-weight: 700;
}

.fineness-tag {
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.price-figure {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.unit-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 400;
}

.price-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0.35rem 0 0.75rem;
}

.karat-usage {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
}

/* Unit Toggle Showcase Card */
.unit-toggle-showcase-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.toggle-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.unit-toggle-pills {
  display: inline-flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  background: var(--bg-subtle);
  padding: 0.3rem;
  border-radius: var(--radius-md);
}

.unit-pill-btn {
  border: none;
  background: transparent;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.unit-pill-btn.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.unit-price-display {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.unit-price-big {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.unit-price-caption {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.unit-karat-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.summary-metric {
  background: var(--bg-subtle);
  padding: 1rem;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
}

.summary-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.summary-val {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Currency Hub & Pair Styles */
.currency-pair-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.currency-pair-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pair-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.pair-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.pair-subtitle {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.pair-rate-val {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.pair-rate-sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.currency-icon {
  background: #dbeafe;
  color: #1e40af;
}

.table-group-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.table-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.table-link:hover {
  text-decoration: underline;
}

/* Chart Canvas & Captions */
.chart-caption-row {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Calculator Hub & Cards */
.calculator-hub-card {
  display: flex;
  flex-direction: column;
  padding: 2.25rem 1.75rem;
  text-align: center;
  border-top: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.calculator-hub-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.gold-hub-card {
  border-top-color: var(--gold-accent);
}

.silver-hub-card {
  border-top-color: var(--silver-accent);
}

.hub-card-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.hub-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hub-card-desc {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex: 1;
}

/* Standalone Converter Main Cards */
.converter-main-card {
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  max-width: 800px;
  margin: 0 auto;
}

.converter-select-row {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}

.swap-btn-col {
  padding-bottom: 0.25rem;
}

.btn-swap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-swap:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

.highlighted-result-box {
  background-color: var(--primary-light);
  border: 1px solid #bfdbfe;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  margin-top: 1.5rem;
}

.text-3xl {
  font-size: 2.25rem;
}

.calc-result-box {
  background-color: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
  margin-top: 0.5rem;
  border: 1px solid var(--border-color);
}

.result-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.result-number {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0.25rem 0;
}

.result-subtext {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Educational SEO Content */
.text-content-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.text-content-box h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.text-content-box h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.5rem;
}

.text-content-box p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.text-content-box ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.text-content-box li {
  margin-bottom: 0.5rem;
}

/* Content / Static Article */
.text-page-container {
  padding-top: 2rem;
}

.content-article {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.content-article h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.lead-text {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.content-article h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}

.content-article p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.code-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

/* Footer */
.site-footer {
  background-color: #0b1329;
  color: #cbd5e1;
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8125rem;
  color: #94a3b8;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
}

.footer-title {
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-disclaimer {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.6;
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Error Pages */
.error-page {
  padding: 5rem 0;
}

.error-box {
  max-width: 500px;
  margin: 0 auto;
}

.error-code {
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
  margin-bottom: 1rem;
}

.error-desc {
  color: var(--text-muted);
  margin: 1rem 0 2rem;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .card-metrics-row {
    grid-template-columns: 1fr;
  }

  .form-row {
    flex-direction: column;
  }
}



/* ==========================================================================
   Google AdSense Policy-Compliant Containers & Core Web Vitals (CLS Guard)
   ========================================================================== */

.ad-slot-wrapper {
  margin: 2.5rem auto;
  text-align: center;
  max-width: 100%;
  clear: both;
}

.ad-slot-in-content {
  min-height: 120px; /* Space reservation to prevent layout shift */
}

.ad-slot-header-leaderboard {
  min-height: 105px;
}

.ad-slot-sidebar-rectangle {
  min-height: 275px;
}

.ad-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.375rem;
}

.ad-placeholder-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
}

.ad-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.ad-placeholder-badge {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
}

.ad-placeholder-text {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.ad-compliance-tag {
  font-size: 0.6875rem;
  color: #94a3b8;
}

/* Core Web Vitals: Layout Stability & Content Containment */
.chart-canvas-wrapper {
  contain: layout style;
  content-visibility: auto;
  contain-intrinsic-size: 360px;
}

.rates-table-wrapper {
  contain: paint;
}

/* Global Base Currency Switcher */
.currency-picker-container {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: var(--bg-subtle, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 9999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.currency-picker-container:hover,
.currency-picker-container:focus-within {
  border-color: var(--primary, #2563eb);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.currency-picker-label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-secondary, #64748b);
  font-weight: 500;
  cursor: pointer;
  margin: 0;
}

.currency-icon {
  font-size: 1rem;
  line-height: 1;
}

.currency-label-text {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--text-secondary, #64748b);
}

.currency-picker-select {
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary, #0f172a);
  cursor: pointer;
  outline: none;
  padding-right: 0.2rem;
}

.currency-picker-select:focus {
  outline: none;
}

@media (max-width: 768px) {
  .currency-label-text {
    display: none;
  }
  .currency-picker-container {
    padding: 0.2rem 0.45rem;
    font-size: 0.8rem;
  }
  .currency-picker-select {
    font-size: 0.8rem;
  }
}
