/* Non-Critical CSS - Below-the-fold and interactive styles for cambio.ao */

/* ==== EXTENDED VARIABLES ==== */
:root {
  --surface-overlay: rgba(0, 0, 0, 0.04);
  --accent-primary-rgba-10: rgba(16, 185, 129, 0.1);
  --accent-primary-rgba-05: rgba(16, 185, 129, 0.05);
  --rate-best-color: #059669;
  --rate-worst-color: #DC2626;
  --rate-warning-color: #f39c12;
  --rate-best-bg: rgba(5, 150, 105, 0.08);
  --rate-worst-bg: rgba(220, 38, 38, 0.08);
  --space-unit: 4px; --space-10x: 40px; --space-12x: 48px;
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --border-radius-md: 8px; --border-width: 1px;
  --z-base: 10; --z-dropdown: 50; --z-sticky: 100; --z-modal: 1000;
  --switch-width: 32px; --switch-height: 16px; --switch-border-radius: 8px; --switch-bg-color: #E5E7EB; --switch-bg-active-color: var(--accent-primary); --switch-dot-color: white;
  --box-shadow: var(--shadow-default); --animation-timing-fast: 100ms; --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1); --primary-hover-color: var(--accent-primary);
}

/* ==== BASE STYLES (Non-critical) ==== */
.h3-style {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: var(--space-2x);
}

:focus { outline: 2px solid var(--accent-primary); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }
::selection { background-color: var(--accent-primary); color: white; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--surface-tertiary); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* ==== CALCULATOR STYLES ==== */
.calculator-container { background: transparent; border: none; border-radius: 0; padding: 0; box-shadow: none; }
.rate-type-group { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 4px; background: var(--surface-tertiary); border-radius: var(--border-radius-sm); margin-bottom: var(--space-6x); }
.rate-button { padding: var(--space-3x) var(--space-4x); border: none; border-radius: calc(var(--border-radius-sm) - 2px); background: transparent; font-size: 14px; font-weight: 500; color: var(--text-secondary); cursor: pointer; transition: all var(--transition-fast); font-family: inherit; }
.rate-button:hover { color: var(--text-primary); }
.rate-button.active { background: white; color: var(--text-primary); box-shadow: var(--shadow-sm); }
.bank-selection-group { margin-bottom: var(--space-4x); }
.bank-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: var(--space-2x); text-transform: uppercase; letter-spacing: 0.05em; }
.bank-select, .amount-input, .currency-selector { width: 100%; height: 48px; padding: 0 var(--space-4x); border: 1px solid var(--border-color-strong); border-radius: var(--border-radius-sm); background: white; font-size: 15px; font-weight: 400; color: var(--text-primary); transition: all var(--transition-fast); font-family: inherit; box-sizing: border-box; }
.bank-select:focus, .amount-input:focus, .currency-selector:focus { outline: 2px solid var(--accent-primary); outline-offset: 2px; border-color: var(--accent-primary); }
.bank-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right var(--space-3x) center; background-size: 16px; }
.exchange-rate-display { text-align: center; font-size: 13px; color: var(--text-secondary); padding: var(--space-3x) var(--space-4x); background: var(--surface-tertiary); border-radius: var(--border-radius-sm); margin: var(--space-4x) 0; border: 1px solid var(--border-color); }
.results-section { background: var(--surface-tertiary); border-radius: var(--border-radius-sm); padding: var(--space-6x); margin-top: var(--space-6x); text-align: center; }
.amount-group { position: relative; margin-bottom: var(--space-4x); }
.currency-group { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--space-3x); align-items: end; margin-bottom: var(--space-6x); }
.swap-container { display: flex; align-items: center; justify-content: center; }
.swap-button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-color); background: white; color: var(--text-secondary); cursor: pointer; transition: all var(--transition-fast); display: flex; align-items: center; justify-content: center; }
.swap-button:hover { border-color: var(--accent-primary); color: var(--accent-primary); transform: rotate(180deg); }
.swap-button svg { width: 20px; height: 20px; }
.currency-column { position: relative; }
.currency-selector { cursor: pointer; display: flex; align-items: center; gap: var(--space-3x); padding: 0 var(--space-4x); }
.currency-dropdown, .amount-suggestions { position: absolute; top: calc(100% + var(--space-unit)); left: 0; right: 0; background: white; border: 1px solid var(--border-color-strong); border-radius: var(--border-radius-sm); box-shadow: var(--shadow-lg); z-index: var(--z-dropdown); max-height: 200px; overflow-y: auto; }
.currency-option { padding: var(--space-3x) var(--space-4x); display: flex; align-items: center; gap: var(--space-2x); cursor: pointer; transition: background-color var(--transition-fast); }
.currency-option:hover { background-color: var(--surface-tertiary); }
.suggestion-item { padding: var(--space-3x) var(--space-4x); cursor: pointer; transition: background-color var(--transition-fast); font-weight: 500; }
.suggestion-item:hover { background-color: var(--surface-tertiary); }
.currency-selector--static { cursor: default; opacity: 0.7; background-color: var(--surface-tertiary); }
.result-label { display: block; font-size: 16px; color: var(--text-secondary); margin-bottom: var(--space-unit); font-weight: 500; }
.result-value { display: block; font-size: 36px; font-weight: 600; color: var(--text-primary); line-height: 1.2; }
.result-placeholder { font-size: 20px; color: var(--text-muted); font-weight: 500; }

/* ==== SIDEBAR STYLES ==== */
.popular-conversions-sidebar { background: var(--surface-secondary); border: 1px solid var(--border-color); border-radius: var(--border-radius); padding: var(--space-5x); box-shadow: var(--shadow-sm); }
.popular-conversions-sidebar h3 { font-size: 16px; font-weight: 600; margin: 0 0 var(--space-4x); color: var(--text-primary); text-align: center; }
.sidebar-conversions-grid { display: flex; flex-direction: column; gap: var(--space-3x); }
.sidebar-conversion-card { display: block; padding: var(--space-3x) var(--space-4x); background: var(--surface-tertiary); border: 1px solid var(--border-color); border-radius: var(--border-radius-sm); text-decoration: none; color: inherit; text-align: center; transition: all var(--transition-base); }
.sidebar-conversion-card:hover { background: white; border-color: var(--accent-primary); transform: translateX(2px); }
.sidebar-conversion-card strong { display: block; font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: var(--space-unit); }
.sidebar-conversion-card small { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ==== CARDS ==== */
.dashboard { display: grid; grid-template-columns: 1fr; gap: var(--space-6x); margin-bottom: var(--space-8x); }
.card { background: var(--surface-secondary); border: 1px solid var(--border-color); border-radius: var(--border-radius); overflow: hidden; transition: box-shadow var(--transition-base); }
.card:hover { box-shadow: var(--shadow-md); }
.card__inner { padding: 0; }
.card-content { padding: 0; }
.card-content h3 { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary); padding: var(--space-4x) var(--space-5x); margin: 0; background: var(--surface-tertiary); border-bottom: 1px solid var(--border-color-strong); }

/* ==== RATES TABLES ==== */
.rates-title { font-size: 1.2em; font-weight: 600; margin-bottom: var(--space-3x); text-align: center; color: var(--text-primary); white-space: nowrap; }
.best-avg-table { width: 100%; background-color: var(--surface-secondary); border-radius: var(--border-radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); border-collapse: separate; border-spacing: 0; overflow: hidden; transition: box-shadow var(--transition-base); }
.best-avg-table:hover { box-shadow: var(--shadow-md); }
.best-avg-table thead th { padding: var(--space-3x) var(--space-4x); background-color: var(--surface-tertiary); font-weight: 500; color: var(--text-secondary); white-space: nowrap; font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--border-color-strong); }
.best-avg-table th.currency-header { text-align: center; }
.best-avg-table th.rate-header { text-align: center; }
.currency-cell-container { padding: var(--space-3x) var(--space-4x); text-align: center; }
.currency-cell { display: inline-flex; align-items: center; gap: var(--space-2x); justify-content: center; }
.currency-flag { width: 20px; height: 14px; display: block; border-radius: 2px; }
.currency-code { font-weight: 500; color: var(--text-primary); }
.rate-value { padding: var(--space-3x) var(--space-4x); text-align: center; color: var(--text-secondary); font-variant-numeric: tabular-nums; font-weight: 400; font-size: 15px; }
.best-avg-table tbody tr { border-bottom: 1px solid var(--border-color); }
.best-avg-table tbody tr:last-child { border-bottom: none; }
.best-avg-table tbody tr:hover { background-color: var(--surface-tertiary); transition: background-color 0.15s ease; }
.update-info { padding: var(--space-3x); text-align: center; font-size: 12px; color: var(--text-muted); background-color: var(--surface-tertiary); border-top: 1px solid var(--border-color); }

/* ==== FAQ SECTION ==== */
.faq-section { margin: var(--space-8x) 0; }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4x); }
.faq-item { background: var(--surface-secondary); border: 1px solid var(--border-color); border-radius: var(--border-radius); padding: var(--space-4x); }

/* ==== CUSTOMIZE BANKS ==== */
.customize-banks-section { background: var(--surface-secondary); border: 1px solid var(--border-color); border-radius: var(--border-radius); margin-bottom: var(--space-8x); overflow: hidden; box-shadow: var(--shadow-sm); }
.customize-banks-header { display: flex; justify-content: space-between; align-items: center; padding: var(--space-4x) var(--space-5x); cursor: pointer; transition: background-color var(--transition-fast); user-select: none; }
.customize-banks-header:hover { background-color: var(--surface-tertiary); }
.customize-banks-header span { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.chevron-icon-container { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; transition: transform var(--transition-base); }
.chevron-icon { width: 16px; height: 16px; stroke: var(--text-secondary); }
.customize-banks-section.open .chevron-icon-container { transform: rotate(180deg); }
.customize-banks-content { max-height: 0; opacity: 0; overflow: hidden; transition: all var(--transition-base); border-top: 1px solid var(--border-color); }
.customize-banks-section.open .customize-banks-content { max-height: 200px; opacity: 1; padding: var(--space-4x); }

/* ==== BANK TOGGLES ==== */
.bank-toggle-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: var(--space-2x); margin-bottom: var(--space-4x); padding: var(--space-unit); }
.bank-toggle-label { display: flex; align-items: center; justify-content: flex-start; font-size: 0.8em; color: #666; cursor: pointer; height: 100%; }
.switch { display: inline-flex; align-items: center; margin-right: var(--space-2x); }
.switch__control { position: relative; width: var(--switch-width); height: var(--switch-height); background-color: var(--switch-bg-color); border-radius: var(--switch-border-radius); transition: background-color 250ms ease-out; }
.switch__control::after { content: ""; position: absolute; top: 0; left: 0; width: var(--switch-height); height: 100%; background-color: var(--switch-dot-color); border-radius: var(--switch-border-radius); box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); transform: scale(1.1); transition: transform 250ms ease-out; }
.switch__input { display: none; }
.switch__input:checked ~ .switch__control { background-color: var(--switch-bg-active-color); }
.switch__input:checked ~ .switch__control::after { transform: translateX(100%) scale(1.1); }

/* ==== DISCLAIMER BANNER ==== */
#disclaimerBanner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  width: 100%;
  border-bottom: var(--border-width) solid var(--border-color-strong);
  background-color: var(--surface-secondary);
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.disclaimer-wrapper { max-width: 1200px; margin: 0 auto; padding: var(--space-3x) var(--space-4x); }
.disclaimer-content { display: flex; align-items: flex-start; gap: var(--space-3x); position: relative; }
.disclaimer-text { font-size: 0.875rem; color: var(--text-secondary); padding-right: var(--space-8x); }
.disclaimer-close { position: absolute; top: 0; right: 0; padding: var(--space-2x); color: var(--text-muted); cursor: pointer; transition: color 0.2s; background: none; border: none; display: flex; align-items: center; justify-content: center; }
.disclaimer-close:hover { color: var(--text-primary); }

/* ==== CONTACT MODAL ==== */
.contact-button { background-color: var(--accent-primary); color: white; padding: var(--space-3x) var(--space-6x); border: none; border-radius: var(--border-radius); cursor: pointer; position: fixed; bottom: var(--space-5x); right: var(--space-5x); z-index: 999; font-family: var(--font-family-primary); transition: all var(--animation-timing-fast) var(--ease-in-out); box-shadow: var(--box-shadow); }
.contact-button:hover { background-color: var(--accent-primary-hover); color: white; transform: translateY(-1px); }
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.4); }
.modal-content { background-color: var(--surface-secondary); margin: 15% auto; padding: var(--space-8x); border: var(--border-width) solid var(--border-color); border-radius: calc(var(--border-radius) * 1.5); width: 90%; max-width: 500px; position: relative; font-family: var(--font-family-primary); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12); }
.close { color: var(--text-secondary); float: right; font-size: 28px; font-weight: 400; cursor: pointer; transition: color var(--animation-timing-fast) var(--ease-in-out); background: none; border: none; padding: var(--space-unit); }
.close:hover, .close:focus { color: var(--text-primary); }
#contactForm { display: flex; flex-direction: column; gap: var(--space-6x); }
#contactForm label { font-size: 0.9em; color: var(--text-secondary); font-weight: 400; }
#contactForm input, #contactForm select, #contactForm textarea { width: 100%; padding: var(--space-3x); border: var(--border-width) solid var(--border-color); border-radius: var(--border-radius-sm); font-family: var(--font-family-primary); font-size: 16px; transition: all var(--animation-timing-fast) var(--ease-in-out); }
#contactForm input:focus, #contactForm select:focus, #contactForm textarea:focus { outline: none; border-color: transparent; box-shadow: 0 2px 0 var(--primary-hover-color); }
#contactForm button[type="submit"] { margin-top: var(--space-6x); padding: 14px; background-color: var(--primary-hover-color); color: var(--text-primary); border: none; border-radius: var(--border-radius-sm); cursor: pointer; font-weight: 500; transition: all var(--animation-timing-fast) var(--ease-in-out); }
#contactForm button[type="submit"]:hover { background-color: #D1FF59; transform: translateY(-1px); box-shadow: var(--box-shadow); }

#contactSuccess {
  background: var(--accent-primary-rgba-10);
  color: var(--accent-primary-hover);
}

/* ==== NAVIGATION PILLS ==== */
.nav-pill { position: fixed; bottom: var(--space-8x); right: calc(var(--space-5x) + 140px); background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--border-color-strong); border-radius: 24px; padding: var(--space-3x) var(--space-5x); box-shadow: var(--shadow-lg); cursor: pointer; opacity: 0; transform: translateY(20px); transition: all var(--transition-base); z-index: 998; font-size: 14px; font-weight: 500; color: var(--text-primary); display: flex; align-items: center; gap: var(--space-2x); user-select: none; will-change: transform, opacity; }
.nav-pill:hover { transform: translateY(-2px); box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.15); background: rgba(255, 255, 255, 1); }
.nav-pill:active { transform: translateY(0); }
.nav-pill.visible { opacity: 1; transform: translateY(0); }
.nav-pill.bounce-in { animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55); }
.nav-pill-icon { width: 16px; height: 16px; transition: transform var(--transition-fast); }
.nav-pill[data-direction="up"] .nav-pill-icon { transform: rotate(180deg); }
.nav-pill-text { white-space: nowrap; }
@keyframes bounceIn { 0% { opacity: 0; transform: translateY(20px) scale(0.9); } 50% { transform: translateY(-5px) scale(1.02); } 100% { opacity: 1; transform: translateY(0) scale(1); } }

/* ==== POPULAR LINKS SECTION ==== */
.popular-links-section {
  margin: var(--space-12x) 0;
  padding: var(--space-10x) var(--space-8x);
  background: var(--surface-primary);
  border-radius: 0;
  border: none;
  box-shadow: none;
}
.popular-links-section .section-title {
  text-align: center;
  margin: 0 0 var(--space-3x);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.section-subtitle {
  text-align: center;
  font-size: 18px;
  color: var(--text-secondary);
  margin: 0 0 var(--space-10x);
  font-weight: 400;
}
.popular-links-grid {
  display: grid;
  gap: var(--space-6x);
  max-width: 1200px;
  margin: 0 auto;
  grid-template-columns: repeat(3, 1fr);
}
.popular-link-card {
  display: flex;
  align-items: center;
  gap: var(--space-5x);
  padding: var(--space-6x);
  background: var(--surface-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.popular-link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-primary);
  transform: scaleY(0);
  transition: transform var(--transition-base);
}
.popular-link-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-primary);
  background: var(--surface-secondary);
}
.popular-link-card:hover::before {
  transform: scaleY(1);
}
.conversion-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--accent-primary-rgba-05);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.currency-flags {
  display: flex;
  align-items: center;
}
.flag-wrapper {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flag-wrapper:last-child {
  margin-left: -12px;
}
.conversion-content {
  flex: 1;
  min-width: 0;
}
.popular-link-card strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-unit);
  line-height: 1.3;
}
.popular-link-card small {
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: var(--space-2x);
  text-transform: none;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}
.badge svg {
  vertical-align: middle;
}
.badge-trending {
  background: var(--rate-worst-bg);
  color: var(--rate-worst-color);
}
.badge-popular {
  background: rgba(79, 70, 229, 0.1);
  color: #4F46E5;
}

/* ==== TABLES ==== */
.rates-wrapper { font-size: 1em; position: relative; margin: var(--space-6x) 0; }
.rate-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.9em; margin-bottom: var(--space-6x); border: none; box-shadow: var(--box-shadow); }
.dashboard .rate-table { margin-bottom: var(--space-3x); }
.rate-table th, .rate-table td { padding: var(--space-3x) var(--space-4x); border-bottom: var(--border-width) solid var(--border-color); text-align: center; white-space: nowrap; transition: background-color var(--animation-timing-fast) var(--ease-in-out); font-variant-numeric: tabular-nums; }
.dashboard .rate-table th, .dashboard .rate-table td { padding: var(--space-3x); }
.rate-table th { background-color: var(--surface-secondary); font-weight: 500; color: var(--text-secondary); text-transform: none; font-size: 0.85em; letter-spacing: 0.02em; position: sticky; top: 0; z-index: 10; box-shadow: 0 2px 4px var(--surface-overlay); text-align: center; }
.rate-table thead th a { color: inherit; text-decoration: none; font-weight: inherit; transition: color var(--animation-timing-fast) var(--ease-in-out); }
.rate-table thead th a:hover, .rate-table thead th a:focus { color: var(--text-primary); text-decoration: none; }
.rate-table tr:last-child td { border-bottom: none; }
.rate-table th:first-child, .rate-table td:first-child { text-align: left; padding-left: 20px; position: sticky; left: 0; background-color: var(--surface-secondary); z-index: 5; font-weight: 500; }
.rate-table td:not(:first-child) { text-align: center; font-variant-numeric: tabular-nums; }
.currency-cell { display: flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0; }
.currency-flag { flex-shrink: 0; display: flex; align-items: center; width: 24px; height: 16px; }
.best-rate { font-weight: 500; color: var(--rate-best-color); background-color: var(--rate-best-bg); }
.worst-rate { font-weight: 500; color: var(--rate-worst-color); background-color: var(--rate-worst-bg); }
.error-icon { color: #c0392b; cursor: help; display: inline-block; }
.rate-table tbody tr:hover { background-color: var(--surface-tertiary); }
.dashboard .card-content h3 { margin: var(--space-4x) 0 var(--space-2x); }
.rate-table th a:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 2px; border-radius: 4px; }

/* ==== HELP ICONS ==== */
.help-icon { cursor: help; margin-left: 8px; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; width: 16px; height: 16px; transition: transform var(--transition-fast); }
.help-icon svg { width: 100%; height: 100%; stroke: var(--text-muted); transition: stroke var(--transition-fast); }
.help-icon:hover { transform: scale(1.1); }
.help-icon:hover svg { stroke: var(--text-primary); }

/* ==== SKELETONS ==== */
@keyframes shimmer { 0% { background-position: -1000px 0; } 100% { background-position: 1000px 0; } }
.skeleton { animation: shimmer 2s infinite linear; background: linear-gradient(to right, var(--surface-tertiary) 4%, #e0e0e0 25%, var(--surface-tertiary) 36%); background-size: 1000px 100%; border-radius: var(--border-radius-sm); }
.skeleton-card { background-color: var(--surface-secondary); border-radius: var(--border-radius); padding: var(--space-4x); box-shadow: var(--box-shadow); margin-bottom: var(--space-5x); }
.skeleton-card .skeleton-title { height: 24px; width: 50%; margin: 0 auto var(--space-4x); }
.skeleton-card .skeleton-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-3x); }
.skeleton-card .skeleton-currency { height: 20px; width: 80px; }
.skeleton-card .skeleton-rate { height: 20px; width: 60px; }
.skeleton-table-row { display: table-row; }
.skeleton-table-row td { padding: var(--space-3x); border-bottom: var(--border-width) solid var(--border-color); }
.skeleton-table-row .skeleton { height: 20px; width: 90%; }

/* ==== UPDATE INFO ==== */
.update-info-container { display: none; width: 100%; overflow: hidden; background-color: var(--surface-tertiary); border-top: var(--border-width) solid var(--border-color-strong); border-bottom: var(--border-width) solid var(--border-color-strong); position: relative; border-radius: 0 0 var(--border-radius) var(--border-radius); padding-top: var(--space-3x); margin-top: calc(var(--space-2x) * -1); z-index: 1; font-size: 0.9em; }
.update-info-scroll { display: inline-block; white-space: nowrap; padding: var(--space-2x) 0; animation: scroll-left linear infinite; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.update-info-item { display: inline-block; margin-right: var(--space-4x); font-size: min(0.95em, 13px); line-height: 1.4; font-weight: 300; color: var(--text-secondary); }
.update-info-item.error { color: var(--rate-worst-color); font-weight: 600; }

/* ==== UTILITIES ==== */
::-webkit-scrollbar { width: 4px; height: 4px; background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.1); border-radius: 2px; }
.no-link-style { color: inherit; text-decoration: none; }
.no-link-style:hover, .no-link-style:focus { color: inherit; text-decoration: none; }
.icon-container { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; } .text-left { text-align: left; } .text-right { text-align: right; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .p-0 { padding: 0; }
.d-flex { display: flex; } .d-inline-block { display: inline-block; } .d-none { display: none; }
.align-items-center { align-items: center; } .justify-content-center { justify-content: center; } .justify-content-between { justify-content: space-between; }
.overflow-hidden { overflow: hidden; } .overflow-auto { overflow: auto; } .opacity-50 { opacity: 0.5; } .cursor-pointer { cursor: pointer; }
button:active { transform: scale(0.96); transition: transform 80ms cubic-bezier(0.34, 1.56, 0.64, 1); }

/* ==== RESPONSIVE STYLES (Non-critical breakpoints) ==== */
@media (min-width: 1200px) { .container { padding: 0 24px; } .main-content-grid { gap: var(--space-12x); } }
@media (max-width: 1199px) and (min-width: 1025px) { .container { padding: 0 20px; } }
@media (max-width: 1024px) and (min-width: 769px) { 
  .main-content-grid { grid-template-columns: 1fr; gap: var(--space-6x); } 
  .calculator-section, .seo-sidebar { max-width: 600px; margin: 0 auto; } 
  .faq-grid { grid-template-columns: repeat(2, 1fr); } 
  .rates-section { gap: var(--space-4x); } 
  .sidebar-container { grid-template-columns: 1fr; } 
  .sidebar-conversions-grid { grid-template-columns: 1fr; } 
  .popular-links-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-5x); }
}
@media (max-width: 768px) { 
  .conversion-card { padding: var(--space-4x) var(--space-3x); } 
  .conversion-card strong { font-size: 14px; } 
  .dashboard .rate-table th, .dashboard .rate-table td { padding: var(--space-2x) var(--space-unit); font-size: 0.85em; } 
  .dashboard .card-content h3 { margin: var(--space-3x) 0 var(--space-2x); font-size: 1em; } 
  .faq-grid { grid-template-columns: 1fr; gap: var(--space-3x); } 
  .faq-item { padding: var(--space-3x); } 
  .bank-toggle-container { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: var(--space-2x); } 
  .bank-toggle-label { font-size: 0.75em; } 
  .currency-group { gap: var(--space-2x); } 
  .currency-selector { padding: 0 var(--space-3x); font-size: 14px; } 
  .currency-flag { width: 20px; height: 14px; } 
  .amount-input, .bank-select { height: 44px; font-size: 16px; } 
  .sidebar-container { grid-template-columns: 1fr 1fr; } 
  .sidebar-conversions-grid { grid-template-columns: repeat(2, 1fr); }
  .popular-links-grid { grid-template-columns: 1fr; gap: var(--space-4x); }
}
@media (max-width: 480px) { 
  .rate-type-group { gap: 2px; padding: 2px; } 
  .rate-button { padding: var(--space-2x) var(--space-3x); font-size: 13px; } 
  .bank-select, .amount-input, .currency-selector { height: 44px; padding: 0 var(--space-3x); font-size: 16px; } 
  .bank-label { font-size: 12px; } 
  .result-amount { font-size: 24px; } 
  .results-section { padding: var(--space-4x); } 
  .popular-conversions { margin: var(--space-6x) 0; } 
  .section-title { font-size: 20px; margin-bottom: var(--space-4x); } 
  .benefits-list li { font-size: 13px; } 
  .rates-title { font-size: 1em; margin-bottom: var(--space-3x); } 
  .dashboard .rate-table th, .dashboard .rate-table td { padding: var(--space-unit) 4px; font-size: 0.8em; } 
  .currency-cell { gap: 4px; } 
  .currency-flag { width: 16px; height: 12px; } 
  .faq-item { padding: var(--space-2x); } 
  .faq-item summary { font-size: 13px; } 
  .faq-content p { font-size: 13px; } 
  .customize-banks-section { margin-bottom: var(--space-4x); } 
  .customize-banks-header { padding: var(--space-3x) var(--space-4x); } 
  .customize-banks-content { padding: var(--space-3x); } 
  .contact-button { bottom: var(--space-3x); right: var(--space-3x); padding: var(--space-2x) var(--space-4x); font-size: 14px; } 
  .tradingview-widget-container { margin-bottom: var(--space-4x); height: 40px !important; } 
  .nav-pill { bottom: calc(var(--space-4x) + 45px); right: var(--space-3x); padding: var(--space-2x) var(--space-3x); }
}
@media (max-width: 360px) { 
  .conversion-card { padding: var(--space-3x) var(--space-2x); } 
  .conversion-card strong { font-size: 13px; } 
  .conversion-card small { font-size: 11px; } 
  .dashboard .rate-table th, .dashboard .rate-table td { padding: 4px 2px; font-size: 0.75em; } 
  .rates-title { font-size: 0.9em; }
}

/* ==== DARK MODE ENHANCEMENTS ==== */
@media (prefers-color-scheme: dark) { 
  .help-icon:hover svg { stroke: var(--text-primary); } 
  .nav-pill { background: rgba(22, 27, 34, 0.95); border-color: var(--border-color); } 
  .nav-pill:hover { background: rgba(22, 27, 34, 1); }
}

/* ==== PRINT STYLES ==== */
@media print { 
  .contact-button, .customize-banks-section, .seo-sidebar, .tradingview-widget-container, .nav-pill { display: none !important; } 
  .container { max-width: none; padding: 0; } 
  .main-content-grid { grid-template-columns: 1fr; gap: var(--space-4x); } 
  .popular-conversions-grid { grid-template-columns: repeat(2, 1fr); } 
  .rates-section { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4x); page-break-inside: avoid; } 
  .calculator-section, .rates-wrapper { page-break-inside: avoid; } 
  .rate-table { page-break-inside: avoid; } 
  .rate-table th, .rate-table td { border: 1px solid var(--text-primary); } 
  .best-rate, .worst-rate { color: var(--text-primary); font-weight: 500; }
}

@media (max-height: 480px) and (orientation: landscape) { 
  .calculator-section { padding: var(--space-3x); } 
  .calculator-title { font-size: 18px; margin-bottom: var(--space-2x); } 
  .calculator-subtitle { font-size: 12px; margin-bottom: var(--space-3x); } 
  .main-content-grid { margin: var(--space-3x) 0; }
}

@media (max-width: 767px) {
  .tradingview-widget-container { display: none; }
}