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

/* ==================== GREYSCALE ICONS ==================== */
/* All emoji icons get greyscale filter - only country flags stay colored */
.outlet-logo,
.local-exchange-logo,
.provider-icon,
.icon-grey,
.bank-compare-logo,
.eu-bank-logo {
  filter: grayscale(100%) !important;
  opacity: 0.7 !important;
  -webkit-filter: grayscale(100%) !important;
}

/* SVG Icons - consistent greyscale */
.service-icon,
.bank-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #6B7280;
}

.service-icon svg,
.bank-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Country flags should NOT be greyscale */
/* Country flags should NOT be greyscale */
.country-flag,
.bank-flag,
img[src*="flagcdn"],
img[src*="flags"],
img[src*="mapsicon"] {
  filter: none !important;
  opacity: 1 !important;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #FFFFFF;
  min-height: 100vh;
  padding: 30px 16px;
  color: #1F2937;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

/* ==================== HEADER ==================== */
.header {
  text-align: center;
  margin-bottom: 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #22C55E 0%, #14B8A6 100%);
  padding: 6px 16px;
  border-radius: 24px;
  margin-bottom: 16px;
}

.badge svg { fill: white; }
.badge span {
  color: white;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
}

h1 {
  font-size: 36px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px 0;
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.1;
}

.tagline {
  font-size: 16px;
  color: #374151;
  margin: 0 0 6px 0;
  font-weight: 500;
}

.subtitle {
  font-size: 14px;
  color: #9CA3AF;
  margin: 0;
}

/* ==================== TABS ==================== */
.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  background: #F3F4F6;
  padding: 6px;
  border-radius: 14px;
  overflow-x: auto;
  position: relative;
}

.tab-btn {
  flex: 1;
  padding: 12px 14px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s ease;
  background: transparent;
  color: #6B7280;
  white-space: nowrap;
  position: relative;
}

.tab-btn:hover:not(.active) {
  background: rgba(255,255,255,0.6);
  color: #374151;
}

/* Active tab - prominent highlight */
.tab-btn.active {
  background: white;
  color: #111827;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Active indicator line */
.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 3px;
  background: linear-gradient(90deg, #22C55E, #16A34A);
  border-radius: 3px 3px 0 0;
}

/* Compare tab - gold rim styling */
.tab-btn.tab-compare {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  background: white;
  color: #374151;
  border: 2px solid #F59E0B;
}

.tab-btn.tab-compare.active {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: white;
  border: 2px solid #D97706;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.tab-btn.tab-compare.active::after {
  display: none;
}

.tab-btn.tab-compare:hover:not(.active) {
  background: #FFFBEB;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ==================== COUNTRY MAP BANNER ==================== */
.country-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 30px 20px;
  background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 50%, #F0FDFA 100%);
  border-radius: 20px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.country-banner::before,
.country-banner::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(34,197,94,0.08) 2px, transparent 2px);
  background-size: 10px 10px;
}

.country-banner::before { top: 10px; left: 10px; }
.country-banner::after { bottom: 10px; right: 10px; }

.country-map-container {
  flex: 1;
  max-width: 200px;
}

.country-map {
  text-align: center;
  position: relative;
}

.country-map svg:not(.eu-map-svg) {
  width: 120px;
  height: 90px;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.country-map-img {
  width: 100%;
  height: 80px;
  object-fit: contain;
  transition: filter 0.3s;
}

/* FROM country - darker grey (except EU flag) */
.from-country .country-map-img {
  filter: brightness(0) invert(25%);
}

/* TO country - lighter grey (except EU flag) */
.to-country .country-map-img {
  filter: brightness(0) invert(55%);
}

/* EU flag should display in color, not grey */
.from-country .country-map-img.eu-flag,
.to-country .country-map-img.eu-flag {
  filter: none;
}

/* EU Map SVG styling - Stars */
.eu-map-svg {
  width: 100%;
  height: 80px;
  display: block;
  margin: 0 auto;
}

.from-country .eu-map-svg .eu-star {
  fill: #4B5563;
}

.to-country .eu-map-svg .eu-star {
  fill: #9CA3AF;
}

/* Country map container adjustments */
.country-map {
  text-align: center;
  position: relative;
}

.country-map svg:not(.eu-map-svg) {
  width: 120px;
  height: 90px;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.country-map-img {
  width: 100%;
  height: 80px;
  object-fit: contain;
  transition: filter 0.3s;
}

.from-path {
  stroke: #22C55E;
  fill: rgba(34, 197, 94, 0.1);
}

.to-path {
  stroke: #14B8A6;
  fill: rgba(20, 184, 166, 0.1);
}

.country-map-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-top: 8px;
}

.from-label { color: #22C55E; }
.to-label { color: #14B8A6; }

.country-map-name {
  font-size: 13px;
  color: #4B5563;
  font-weight: 500;
  margin-top: 4px;
}

.exchange-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 10px;
}

.exchange-arrow svg {
  width: 80px;
  height: 40px;
}

.exchange-label {
  font-size: 10px;
  color: #6B7280;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* ==================== POPULAR DESTINATIONS ==================== */
.popular-section {
  margin-bottom: 24px;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9CA3AF;
  margin-bottom: 10px;
}

.popular-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.popular-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: white;
  border: 2px solid #E5E7EB;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'DM Sans', sans-serif;
}

.popular-btn:hover {
  border-color: #14B8A6;
  background: #F0FDFA;
}

.popular-btn.active {
  background: #F0FDF4;
  border-color: #22C55E;
}

.popular-btn img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
}

.popular-btn span {
  font-size: 12px;
  font-weight: 500;
  color: #4B5563;
}

/* ==================== CARDS ==================== */
.card {
  background: white;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid #F3F4F6;
  margin-bottom: 24px;
  overflow: hidden;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px 0;
  font-family: 'Space Grotesk', sans-serif;
}

.card-subtitle {
  font-size: 13px;
  color: #6B7280;
  margin: 0 0 20px 0;
}

/* ==================== FORM ELEMENTS ==================== */
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6B7280;
  margin-bottom: 8px;
}

.amount-group {
  margin-bottom: 20px;
}

.amount-input-wrap {
  display: flex;
  align-items: center;
  background: #FAFAFA;
  border: 2px solid #E5E7EB;
  border-radius: 14px;
  padding: 4px;
  transition: border-color 0.2s;
}

.amount-input-wrap:focus-within {
  border-color: #22C55E;
}

.currency-symbol {
  padding: 10px 14px;
  font-size: 20px;
  color: #6B7280;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
}

.amount-input {
  flex: 1;
  padding: 14px 10px;
  border: none;
  background: transparent;
  font-size: 26px;
  font-weight: 700;
  color: #111827;
  outline: none;
  font-family: 'Space Grotesk', sans-serif;
  width: 100%;
}

/* ==================== CURRENCY GRID ==================== */
.currency-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: end;
  margin-bottom: 20px;
}

/* ==================== DROPDOWN ==================== */
.dropdown-container {
  position: relative;
}

.dropdown-btn {
  width: 100%;
  padding: 14px 16px;
  background: #FAFAFA;
  border: 2px solid #E5E7EB;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
  text-align: left;
}

.dropdown-btn:hover {
  border-color: #D1D5DB;
}

.dropdown-btn.open {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border-color: #22C55E;
}

.dropdown-btn img {
  width: 30px;
  height: 22px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.dropdown-info {
  flex: 1;
}

.dropdown-code {
  font-weight: 700;
  font-size: 17px;
  color: #1F2937;
  font-family: 'Space Grotesk', sans-serif;
}

.dropdown-name {
  font-size: 12px;
  color: #6B7280;
}

.dropdown-arrow {
  transition: transform 0.2s ease;
}

.dropdown-btn.open .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  background: white;
  border: 2px solid #E5E7EB;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  z-index: 1000;
  max-height: 340px;
  overflow: hidden;
  display: none;
}

.dropdown-menu.open {
  display: block;
}

.dropdown-search {
  padding: 10px;
  border-bottom: 1px solid #F3F4F6;
}

.dropdown-search input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #E5E7EB;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  font-family: 'DM Sans', sans-serif;
}

.dropdown-search input:focus {
  border-color: #22C55E;
}

.dropdown-list {
  max-height: 260px;
  overflow-y: auto;
}

.dropdown-item {
  width: 100%;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
}

.dropdown-item:hover {
  background: #F9FAFB;
}

.dropdown-item.selected {
  background: #F0FDF4;
}

.dropdown-item img {
  width: 26px;
  height: 18px;
  object-fit: cover;
  border-radius: 3px;
}

.dropdown-item .code {
  font-weight: 600;
  font-size: 14px;
  color: #1F2937;
  width: 45px;
  font-family: 'Space Grotesk', sans-serif;
}

.dropdown-item .name {
  font-size: 13px;
  color: #6B7280;
  flex: 1;
}

.dropdown-item .check {
  color: #22C55E;
  font-weight: bold;
}

/* ==================== SWAP BUTTON ==================== */
.swap-btn {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #22C55E 0%, #14B8A6 100%);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(34,197,94,0.3);
  margin-bottom: 4px;
}

.swap-btn:hover {
  transform: rotate(180deg);
  box-shadow: 0 6px 20px rgba(34,197,94,0.4);
}

/* ==================== RESULT BOX ==================== */
.result-box {
  background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 50%, #F0FDFA 100%);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  border: 2px solid #D1FAE5;
}

.result-label {
  font-size: 13px;
  color: #6B7280;
  margin-bottom: 6px;
}

.result-amount {
  font-size: 38px;
  font-weight: 700;
  color: #065F46;
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 6px;
}

.result-currency {
  font-size: 13px;
  color: #6B7280;
}

.result-rate {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #D1FAE5;
  font-size: 12px;
  color: #059669;
  font-weight: 500;
}

/* ==================== DASHBOARD ==================== */
.dashboard-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.dashboard-title {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  font-family: 'Space Grotesk', sans-serif;
}

.dashboard-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.dashboard-base-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 2px solid #E5E7EB;
  border-radius: 10px;
  padding: 6px 10px;
}

.dashboard-base-wrapper:focus-within {
  border-color: #22C55E;
}

.dashboard-base-flag {
  width: 24px;
  height: 18px;
  border-radius: 2px;
  object-fit: cover;
}

.dashboard-select,
.dashboard-search {
  padding: 10px 14px;
  border: 2px solid #E5E7EB;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  background: white;
}

.dashboard-base-wrapper .dashboard-select {
  border: none;
  padding: 4px 8px;
}

/* Rates card header with search */
.rates-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.rates-header .card-title {
  margin-bottom: 0;
}

.rates-header .dashboard-search {
  width: auto;
  min-width: 200px;
}

.dashboard-select:focus,
.dashboard-search:focus {
  border-color: #22C55E;
}

.dashboard-search {
  min-width: 200px;
}

/* ==================== HEAT MAP ==================== */
.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: #F9FAFB;
  border-radius: 12px;
  overflow-x: auto;
}

.legend-label {
  font-size: 12px;
  font-weight: 600;
  color: #6B7280;
  white-space: nowrap;
}

.legend-scale {
  display: flex;
  gap: 4px;
}

.legend-item {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.legend-item:nth-child(4) {
  color: #6B7280;
  text-shadow: none;
}

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}

.heatmap-cell {
  padding: 12px 10px;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.heatmap-cell:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-color: #111827;
}

.heatmap-flag {
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 3px;
  margin-bottom: 6px;
}

.heatmap-code {
  font-weight: 700;
  font-size: 14px;
  font-family: 'Space Grotesk', sans-serif;
}

.heatmap-change {
  font-size: 11px;
  font-weight: 600;
  margin-top: 2px;
}

.heatmap-rate {
  font-size: 10px;
  opacity: 0.8;
  margin-top: 2px;
}

/* ==================== RATES TABLE ==================== */
.rates-table-container {
  max-height: 400px;
  overflow-y: auto;
}

.rates-table {
  width: 100%;
  border-collapse: collapse;
}

.rates-table th {
  position: sticky;
  top: 0;
  background: white;
  text-align: left;
  padding: 12px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid #E5E7EB;
}

.rates-table th:nth-child(n+2) {
  text-align: right;
}

.rates-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #F3F4F6;
  font-size: 14px;
}

.rates-table td:nth-child(n+2) {
  text-align: right;
}

.rates-table tbody tr:hover {
  background: #F9FAFB;
}

.rate-currency-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rate-currency-cell img {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
}

.rate-currency-info .code {
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
}

.rate-currency-info .name {
  font-size: 11px;
  color: #6B7280;
}

.rate-value {
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
}

.change-positive { color: #22C55E; }
.change-negative { color: #EF4444; }
.change-neutral { color: #6B7280; }

.heat-bar {
  width: 60px;
  height: 8px;
  border-radius: 4px;
  display: inline-block;
}

/* ==================== MARKETS TAB ==================== */
.markets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.markets-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.markets-grid-3col {
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.8fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .markets-grid,
  .markets-grid-2col,
  .markets-grid-3col {
    grid-template-columns: 1fr;
  }
}

/* Calendar Horizontal Scrolling Bar */
.calendar-bar-card {
  margin-top: 16px;
  padding: 16px;
}

.calendar-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.card-title-small {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.scroll-hint {
  font-size: 11px;
  color: #9CA3AF;
  background: #F3F4F6;
  padding: 4px 10px;
  border-radius: 12px;
}

/* ==================== CALENDAR TICKER ==================== */
.calendar-ticker-wrap {
  margin-top: 20px;
  background: #1F2937;
  border-radius: 12px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.calendar-ticker-header {
  background: #22C55E;
  color: white;
  padding: 10px 12px;
  font-size: 16px;
  display: flex;
  align-items: center;
}

.calendar-ticker-scroll {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.calendar-ticker-track {
  display: inline-flex;
  animation: ticker-scroll 90s linear infinite;
  padding: 8px 0;
}

.calendar-ticker-track:hover {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.cal-ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-right: 1px solid #374151;
  white-space: nowrap;
  flex-shrink: 0;
}

.cal-ticker-date {
  background: #374151;
  color: #22C55E;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  position: relative;
}

.cal-ticker-date:hover {
  background: #4B5563;
  color: white;
}

.cal-ticker-date:hover::after {
  content: 'Download to calendar';
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #111827;
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 10px;
  white-space: nowrap;
  z-index: 100;
}

.cal-ticker-date:hover::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #111827;
}

.cal-ticker-event {
  color: #F3F4F6;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.cal-ticker-event:hover {
  color: #22C55E;
}

.cal-ticker-country {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #9CA3AF;
  font-size: 11px;
}

.cal-ticker-country img {
  width: 14px;
  height: 10px;
  object-fit: cover;
  border-radius: 2px;
}

/* News Header with refresh badge */
.news-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.news-refresh-badge {
  font-size: 11px;
  background: #ECFDF5;
  color: #059669;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 500;
}

/* Central Bank List */
.central-bank-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 500px;
  overflow-y: auto;
}

.bank-item {
  display: flex;
  align-items: center;
  padding: 14px;
  background: #FAFAFA;
  border-radius: 12px;
  gap: 12px;
  transition: background 0.2s;
}

.bank-item:hover {
  background: #F3F4F6;
}

.bank-flag {
  width: 32px;
  height: 22px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.bank-info {
  flex: 1;
}

.bank-name {
  font-weight: 600;
  font-size: 14px;
  color: #1F2937;
}

.bank-link {
  color: #1F2937;
  text-decoration: none;
  transition: color 0.2s;
}

.bank-link:hover {
  color: #2563EB;
}

.bank-country {
  font-size: 12px;
  color: #6B7280;
}

.bank-rate {
  text-align: right;
}

.bank-rate-value {
  font-weight: 700;
  font-size: 18px;
  font-family: 'Space Grotesk', sans-serif;
  color: #111827;
}

.bank-rate-change {
  font-size: 11px;
  font-weight: 500;
}

/* News List */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
}

.news-item {
  padding: 14px;
  background: #FAFAFA;
  border-radius: 12px;
  border-left: 4px solid #22C55E;
  transition: all 0.2s;
}

.news-item:hover {
  background: #F3F4F6;
  transform: translateX(4px);
}

.news-item.negative {
  border-left-color: #EF4444;
}

.news-item.neutral {
  border-left-color: #F59E0B;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.news-time {
  font-size: 11px;
  color: #9CA3AF;
}

.news-impact {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
}

.news-impact.high {
  background: #FEE2E2;
  color: #DC2626;
}

.news-impact.medium {
  background: #FEF3C7;
  color: #D97706;
}

.news-impact.low {
  background: #DCFCE7;
  color: #16A34A;
}

.news-headline {
  font-weight: 600;
  font-size: 14px;
  color: #1F2937;
  margin-bottom: 4px;
  line-height: 1.4;
}

.news-currencies {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.news-currency-tag {
  font-size: 11px;
  padding: 2px 8px;
  background: #E5E7EB;
  border-radius: 6px;
  color: #4B5563;
  font-weight: 500;
}

/* Economic Calendar */
.calendar-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

/* Compact calendar for 3-col layout */
  max-height: 600px;
}

.calendar-item {
  display: flex;
  align-items: center;
  padding: 14px;
  background: #FAFAFA;
  border-radius: 12px;
  gap: 14px;
}

.calendar-date {
  text-align: center;
  padding: 8px 12px;
  background: white;
  border-radius: 10px;
  border: 1px solid #E5E7EB;
  min-width: 60px;
}

.calendar-day {
  font-size: 20px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: #111827;
}

.calendar-month {
  font-size: 11px;
  color: #6B7280;
  text-transform: uppercase;
}

.calendar-info {
  flex: 1;
}

.calendar-event {
  font-weight: 600;
  font-size: 14px;
  color: #1F2937;
}

.calendar-country {
  font-size: 12px;
  color: #6B7280;
  display: flex;
  align-items: center;
  gap: 6px;
}

.calendar-country img {
  width: 16px;
  height: 11px;
  object-fit: cover;
  border-radius: 2px;
}

/* ==================== COMPARE TAB ==================== */
.compare-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.compare-subtitle {
  font-size: 13px;
  color: #6B7280;
}

.compare-note {
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: #92400E;
  margin-bottom: 20px;
}

.compare-note strong {
  color: #78350F;
}

.outlet-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.outlet-item {
  display: flex;
  align-items: center;
  padding: 16px;
  background: #FAFAFA;
  border-radius: 14px;
  border: 1px solid #E5E7EB;
  position: relative;
  transition: all 0.2s;
}

.outlet-item:hover {
  background: #F3F4F6;
}

.outlet-item.best {
  background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%);
  border: 2px solid #22C55E;
}

.best-badge {
  position: absolute;
  top: -10px;
  right: 14px;
  background: #22C55E;
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 10px;
}

/* Section best badge - in header */
.section-best-badge {
  font-size: 12px;
  color: #059669;
  font-weight: 600;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.section-best-diff {
  font-weight: 400;
  color: #6B7280;
  font-size: 11px;
}

/* Section best item styling */
.section-best {
  border-left: 3px solid #22C55E;
  background: #F0FDF4;
}

.section-best-tag {
  display: inline-block;
  background: #22C55E;
  color: white;
  font-size: 9px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.outlet-logo {
  font-size: 28px;
  margin-right: 16px;
}

.outlet-info {
  flex: 1;
}

.outlet-name {
  font-weight: 600;
  font-size: 15px;
  color: #1F2937;
}

.outlet-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.outlet-rating {
  font-size: 12px;
  color: #6B7280;
}

.outlet-loss {
  font-size: 12px;
  color: #EF4444;
  font-weight: 500;
}

.outlet-amount {
  text-align: right;
}

.outlet-value {
  font-weight: 700;
  font-size: 20px;
  font-family: 'Space Grotesk', sans-serif;
  color: #1F2937;
}

.outlet-item.best .outlet-value {
  color: #059669;
}

.outlet-code {
  font-size: 12px;
  color: #6B7280;
}

/* ==================== NEWS SOURCE LINKS ==================== */
.news-source {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #E5E7EB;
}

.source-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #2563EB;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.source-link:hover {
  color: #1D4ED8;
  text-decoration: underline;
}

.external-icon {
  font-size: 10px;
  opacity: 0.7;
}

/* ==================== CALENDAR ACTIONS ==================== */
.calendar-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.cal-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
}

.google-cal {
  background: #E8F5E9;
  color: #2E7D32;
}

.google-cal:hover {
  background: #C8E6C9;
}

.outlook-cal {
  background: #E3F2FD;
  color: #1565C0;
}

.outlook-cal:hover {
  background: #BBDEFB;
}

.ical-btn {
  background: #F3F4F6;
  color: #4B5563;
}

.ical-btn:hover {
  background: #E5E7EB;
}

/* ==================== OUTLET GROUPS ==================== */
.outlet-group-header {
  font-size: 13px;
  font-weight: 600;
  color: #6B7280;
  padding: 16px 0 8px 0;
  margin-top: 8px;
  border-top: 1px solid #E5E7EB;
}

.outlet-group-header:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.outlet-item.airport {
  background: #FEF3C7;
  border-color: #FCD34D;
}

.outlet-item.airport .outlet-loss {
  color: #B45309;
}

.outlet-description {
  font-size: 11px;
  color: #9CA3AF;
  margin-top: 2px;
}

/* ==================== REDESIGNED COMPARE TAB ==================== */
.compare-intro {
  background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%);
  border: 1px solid #86EFAC;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.compare-intro p {
  margin: 0;
  font-size: 14px;
  color: #166534;
  line-height: 1.5;
}

.outlet-group {
  margin-bottom: 28px;
}

.outlet-group-header {
  padding: 12px 0;
  margin-bottom: 12px;
  border-bottom: 2px solid #E5E7EB;
}

.group-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.group-subtitle {
  font-size: 13px;
  color: #6B7280;
  font-style: italic;
}

.outlet-item {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 12px;
  position: relative;
  transition: all 0.2s;
}

.outlet-item:hover {
  border-color: #D1D5DB;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.outlet-item.best {
  background: linear-gradient(135deg, #F0FDF4 0%, #FFFFFF 100%);
  border: 2px solid #22C55E;
}

.outlet-item.airport {
  background: #FFFBEB;
  border-color: #FCD34D;
}

.best-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: linear-gradient(135deg, #22C55E, #14B8A6);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.outlet-main {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.outlet-logo-col {
  flex-shrink: 0;
}

.outlet-logo {
  font-size: 36px;
  display: block;
}

.outlet-details {
  flex: 1;
  min-width: 0;
}

.outlet-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.outlet-name {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
}

.outlet-rating {
  font-size: 12px;
  color: #6B7280;
}

.outlet-tagline {
  font-size: 13px;
  font-weight: 600;
  color: #059669;
  margin-bottom: 8px;
}

.outlet-description {
  font-size: 13px;
  color: #4B5563;
  line-height: 1.5;
}

.outlet-result {
  flex-shrink: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.outlet-amount {
  text-align: right;
}

.outlet-value {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
}

.outlet-diff {
  font-size: 12px;
  color: #DC2626;
  font-weight: 500;
}

.outlet-diff.best-diff {
  color: #059669;
}

.outlet-cta {
  display: inline-block;
  background: linear-gradient(135deg, #22C55E, #14B8A6);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.outlet-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.outlet-cta.disabled {
  background: #9CA3AF;
  cursor: default;
}

.outlet-cta.disabled:hover {
  transform: none;
  box-shadow: none;
}

.outlet-cta.note-cta {
  background: #F3F4F6;
  color: #6B7280;
  font-style: italic;
  cursor: default;
}

.outlet-cta.note-cta:hover {
  transform: none;
  box-shadow: none;
}

/* Airport warning style */
.outlet-item.airport .outlet-tagline {
  color: #B45309;
}

.outlet-item.airport .outlet-description {
  color: #92400E;
}

/* ==================== CLICKABLE CALENDAR EVENTS ==================== */
.calendar-event-link {
  font-weight: 600;
  font-size: 14px;
  color: #1F2937;
  text-decoration: none;
  transition: color 0.2s;
}

.calendar-event-link:hover {
  color: #2563EB;
  text-decoration: underline;
}

/* ==================== NEWS HEADLINE LINK ==================== */
.news-headline-link {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: #1F2937;
  text-decoration: none;
  line-height: 1.4;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.news-headline-link:hover {
  color: #2563EB;
}

.source-name {
  font-size: 11px;
  color: #9CA3AF;
}

/* ==================== EU BANKS BY COUNTRY ==================== */
.eu-banks-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.eu-country-section {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
}

.eu-country-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #F9FAFB;
  border-bottom: 1px solid #E5E7EB;
}

.eu-country-flag {
  font-size: 20px;
}

.eu-country-name {
  font-weight: 600;
  font-size: 14px;
  color: #1F2937;
}

.eu-country-banks {
  padding: 8px;
}

.eu-bank-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background 0.2s;
}

.eu-bank-item:hover {
  background: #F3F4F6;
}

.eu-bank-item.best-bank {
  background: #F0FDF4;
}

.eu-bank-name {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
}

.eu-bank-name:hover {
  color: #2563EB;
}

.eu-bank-result {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.eu-bank-value {
  font-size: 14px;
  font-weight: 600;
  color: #1F2937;
}

.eu-bank-diff {
  font-size: 11px;
  color: #DC2626;
  font-weight: 500;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .eu-banks-container {
    grid-template-columns: 1fr;
  }
}

/* ==================== BANK COMPARISON SECTION ==================== */
.bank-comparison-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px dashed #E5E7EB;
}

.bank-comparison-intro {
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.bank-comparison-intro p {
  margin: 0;
  font-size: 14px;
  color: #92400E;
  line-height: 1.5;
}

.bank-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bank-compare-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  transition: all 0.2s;
}

.bank-compare-item:hover {
  background: #F3F4F6;
  border-color: #D1D5DB;
}

.bank-compare-item.best-bank {
  background: #F0FDF4;
  border-color: #86EFAC;
}

.bank-compare-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bank-compare-logo {
  font-size: 24px;
}

.bank-compare-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bank-compare-link {
  font-weight: 600;
  font-size: 15px;
  color: #1F2937;
  text-decoration: none;
}

.bank-compare-link:hover {
  color: #2563EB;
}

.best-bank-tag {
  font-size: 10px;
  font-weight: 600;
  color: #059669;
  background: #D1FAE5;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
}

.bank-compare-result {
  text-align: right;
}

.bank-compare-value {
  font-size: 17px;
  font-weight: 700;
  color: #1F2937;
}

.bank-compare-diff {
  font-size: 12px;
  color: #DC2626;
  font-weight: 500;
}

.bank-comparison-footer {
  margin-top: 20px;
  background: linear-gradient(135deg, #EFF6FF 0%, #F0FDF4 100%);
  border: 1px solid #93C5FD;
  border-radius: 12px;
  padding: 16px;
}

.bank-comparison-footer p {
  margin: 0;
  font-size: 14px;
  color: #1E40AF;
  line-height: 1.5;
}

/* Bank Country Grid (for non-matched countries) */
.bank-country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.bank-country-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.bank-country-card:hover {
  border-color: #22C55E;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}

.bank-country-flag {
  width: 36px;
  height: 27px;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.bank-country-info {
  flex: 1;
}

.bank-country-name {
  font-weight: 600;
  font-size: 14px;
  color: #1F2937;
}

.bank-country-banks {
  font-size: 12px;
  color: #6B7280;
}

.bank-country-loss {
  text-align: right;
}

.bank-country-diff {
  font-size: 15px;
  font-weight: 700;
  color: #DC2626;
}

.bank-country-label {
  font-size: 10px;
  color: #9CA3AF;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .bank-compare-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .bank-compare-result {
    text-align: left;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid #E5E7EB;
  }
  
  .bank-country-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================== MOBILE RESPONSIVE FOR COMPARE ==================== */

/* Location Selector */
.location-selector {
  background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%);
  border: 1px solid #86EFAC;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.location-label {
  font-weight: 600;
  color: #166534;
  white-space: nowrap;
}

.location-select {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  border: 1px solid #86EFAC;
  border-radius: 8px;
  background: white;
  font-size: 14px;
  cursor: pointer;
}

.location-select:focus {
  outline: none;
  border-color: #22C55E;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

/* Local Exchanges Section */
.local-exchanges-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px dashed #E5E7EB;
}

.local-exchange-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: #FEFCE8;
  border: 1px solid #FDE047;
  border-radius: 12px;
  margin-bottom: 10px;
  transition: all 0.2s;
  overflow: hidden;
}

.local-exchange-item .section-best-tag {
  width: 100%;
  margin-bottom: 10px;
  display: inline-block;
  width: fit-content;
}

.local-exchange-item:hover {
  background: #FEF9C3;
  border-color: #FACC15;
}

.local-exchange-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.local-exchange-logo {
  font-size: 24px;
}

.local-exchange-info {
  flex: 1;
}

.local-exchange-name {
  font-weight: 600;
  font-size: 15px;
  color: #1F2937;
}

.local-exchange-desc {
  font-size: 12px;
  color: #6B7280;
  margin-top: 2px;
}

.local-exchange-result {
  text-align: right;
}

.local-exchange-value {
  font-size: 16px;
  font-weight: 700;
  color: #1F2937;
}

.local-exchange-diff {
  font-size: 12px;
  color: #DC2626;
  font-weight: 500;
}

/* Regional Online Services */
.regional-services-section {
  margin-top: 20px;
}

.regional-service-item {
  background: #EFF6FF;
  border: 1px solid #93C5FD;
}

.regional-service-item:hover {
  background: #DBEAFE;
  border-color: #60A5FA;
}

/* ==================== CONTACT FORM ==================== */
  color: #6B7280;
}

.footer-contact {
  margin-top: 12px;
}

.footer-contact a {
  color: #22C55E;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .location-selector {
    flex-direction: column;
    align-items: stretch;
  }
  
  .location-label {
    text-align: center;
  }
}
@media (max-width: 640px) {
  .outlet-main {
    flex-direction: column;
  }
  
  .outlet-result {
    align-items: flex-start;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #E5E7EB;
  }
  
  .outlet-amount {
    text-align: left;
  }
}

/* ==================== THREE-DOT MENU ==================== */
.calendar-item {
  position: relative;
}

.calendar-menu {
  position: absolute;
  right: 8px;
  top: 8px;
}

.menu-dots {
  background: none;
  border: none;
  font-size: 20px;
  color: #9CA3AF;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.menu-dots:hover {
  background: #F3F4F6;
  color: #4B5563;
}

.menu-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  min-width: 200px;
  z-index: 100;
  display: none;
  overflow: hidden;
}

.menu-dropdown.open {
  display: block;
}

.menu-item {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: #374151;
  font-size: 13px;
  transition: background 0.2s;
  border-bottom: 1px solid #F3F4F6;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item:hover {
  background: #F9FAFB;
  color: #111827;
}

/* Adjust calendar item padding for menu */
.calendar-item {
  padding-right: 40px;
}

/* Loading message */
.loading-msg {
  text-align: center;
  padding: 20px;
  color: #9CA3AF;
  font-style: italic;
}

/* ==================== FOOTER ==================== */
.footer {
  margin-top: 40px;
  padding: 30px 20px;
  border-top: 1px solid #E5E7EB;
  text-align: center;
  font-size: 12px;
  color: #9CA3AF;
}

.footer-main {
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.footer-disclaimer {
  color: #6B7280;
  line-height: 1.5;
  margin-bottom: 8px;
}

.footer-update {
  color: #9CA3AF;
  margin: 4px 0;
}

.footer-contact {
  margin: 8px 0;
}

.footer-contact a {
  color: #22C55E;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-links,
.footer-legal {
  margin: 12px auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
  max-width: 700px;
}

.footer-links a,
.footer-legal a {
  color: #6B7280;
  text-decoration: none;
  padding: 4px 8px;
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-legal a:hover {
  color: #22C55E;
}

.footer-sep {
  color: #D1D5DB;
}

.footer-copyright {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #F3F4F6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.footer-copyright p {
  margin: 4px 0;
  font-size: 11px;
  color: #9CA3AF;
}

.footer-notice {
  margin: 8px auto 0;
  font-size: 10px;
  color: #D1D5DB;
  line-height: 1.4;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 640px) {
  h1 {
    font-size: 28px;
  }
  
  .currency-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .swap-btn {
    margin: 0 auto;
  }
  
  .country-banner {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }
  
  .exchange-arrow {
    transform: rotate(90deg);
    padding: 10px 0;
  }
  
  .result-amount {
    font-size: 30px;
  }
  
  .heatmap-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }
  
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ==================== LEGAL PAGES ==================== */
.legal-page {
  max-width: 800px;
}

.legal-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #E5E7EB;
}

.back-link {
  display: inline-block;
  color: #22C55E;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 20px;
}

.back-link:hover {
  text-decoration: underline;
}

.legal-header h1 {
  font-size: 32px;
  margin-bottom: 8px;
}

.legal-updated {
  color: #9CA3AF;
  font-size: 14px;
}

.legal-content {
  line-height: 1.7;
}

.legal-content section {
  margin-bottom: 32px;
}

.legal-content h2 {
  font-size: 20px;
  color: #1F2937;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #22C55E;
}

.legal-content h3 {
  font-size: 16px;
  color: #374151;
  margin: 20px 0 12px;
}

.legal-content p {
  color: #4B5563;
  margin-bottom: 12px;
}

.legal-content ul {
  color: #4B5563;
  margin: 12px 0;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  color: #22C55E;
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

.legal-footer {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #E5E7EB;
  text-align: center;
}

.legal-footer p {
  color: #9CA3AF;
  font-size: 12px;
  margin-bottom: 12px;
}

.legal-footer a {
  color: #22C55E;
  text-decoration: none;
  font-size: 14px;
}

.legal-footer a:hover {
  text-decoration: underline;
}

/* Careers page specific */
.careers-page .careers-tagline {
  color: #22C55E;
  font-size: 18px;
  font-weight: 500;
}

.careers-intro {
  background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%);
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 32px;
}

.career-card {
  background: #F9FAFB;
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 20px;
  border-left: 4px solid #22C55E;
}

.career-card h3 {
  color: #1F2937;
  margin-top: 0;
}

.careers-email {
  font-size: 20px;
  margin: 16px 0;
}

.careers-email a {
  color: #22C55E;
  font-weight: 600;
}

.careers-note {
  font-size: 13px;
  color: #9CA3AF;
  font-style: italic;
}

/* ==================== NEW STYLING ==================== */

/* Value proposition text */
.value-prop {
  font-size: 14px;
  color: #4B5563;
  max-width: 600px;
  margin: 8px auto 12px;
  line-height: 1.5;
}

/* Compare CTA button */
.compare-cta-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}

.compare-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

/* Info tooltip */
.info-tooltip {
  cursor: help;
  color: #9CA3AF;
  font-size: 12px;
  margin-left: 4px;
}

/* Data sources */
.data-sources {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #E5E7EB;
  font-size: 11px;
  color: #9CA3AF;
  text-align: center;
}

.source-label {
  font-weight: 600;
  color: #6B7280;
}

.source-sep {
  margin: 0 8px;
}

.refresh-info {
  color: #22C55E;
}

/* Exchange type filters */
.exchange-type-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.type-filter {
  padding: 8px 14px;
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  background: white;
  color: #6B7280;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.type-filter:hover {
  border-color: #22C55E;
  color: #22C55E;
}

.type-filter.active {
  background: #22C55E;
  border-color: #22C55E;
  color: white;
}

/* Careers page additional styling */
.speculative-notice {
  background: #FEF3C7;
  border: 1px solid #F59E0B;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 13px;
  color: #92400E;
}

.careers-notice {
  margin-bottom: 24px;
}

.role-type {
  display: inline-block;
  background: #E5E7EB;
  color: #6B7280;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* CBDC Page Styling */
.cbdc-highlight {
  margin-bottom: 30px;
}

.highlight-box {
  background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%);
  border: 2px solid #22C55E;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.highlight-icon {
  font-size: 48px;
}

.highlight-content h3 {
  margin: 0 0 8px 0;
  color: #166534;
  font-size: 20px;
}

.highlight-content p {
  margin: 0;
  color: #374151;
}

.highlight-source {
  font-size: 12px;
  color: #6B7280;
  margin-top: 8px !important;
  font-style: italic;
}

.ready-box {
  background: #EFF6FF;
  border: 1px solid #3B82F6;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

.ready-icon {
  font-size: 32px;
}

.ready-box p {
  margin: 0;
  color: #1E40AF;
}

.cbdc-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.cbdc-status-card {
  padding: 16px;
  border-radius: 12px;
}

.cbdc-status-card h4 {
  margin: 0 0 12px 0;
  font-size: 14px;
}

.cbdc-status-card ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.cbdc-status-card li {
  padding: 4px 0;
  font-size: 13px;
}

.cbdc-status-card.launched {
  background: #F0FDF4;
  border: 1px solid #86EFAC;
}

.cbdc-status-card.pilot {
  background: #FEFCE8;
  border: 1px solid #FDE047;
}

.cbdc-status-card.development {
  background: #EFF6FF;
  border: 1px solid #93C5FD;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.comparison-table th,
.comparison-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #E5E7EB;
}

.comparison-table th {
  background: #F9FAFB;
  font-weight: 600;
  color: #374151;
}

.comparison-table td {
  color: #4B5563;
}

.source-link {
  font-size: 12px;
  color: #6B7280;
  margin-top: 16px;
}

.source-link a {
  color: #22C55E;
}

/* Airport exchanges styling */
.airport-section {
  background: #FEF2F2;
  border: 1px solid #FECACA;
}

.airport-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FEE2E2;
  border: 1px solid #FECACA;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #991B1B;
}

.airport-item {
  background: #FFF5F5 !important;
  border-color: #FECACA !important;
}

.airport-code {
  background: #374151;
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

.airport-diff {
  color: #DC2626 !important;
}
