@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* --- DESIGN SYSTEM & CSS VARIABLES --- */
:root {
  /* Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --accent: #0071e3;          /* Apple Blue */
  --accent-hover: #005bb5;
  --accent-soft: rgba(0, 113, 227, 0.08);
  --accent-indigo: #6366f1;    /* Stripe Indigo */
  --accent-indigo-hover: #4f46e5;
  --border-color: #e5e7eb;
  --border-focus: #3b82f6;
  
  --success: #10b981;
  --success-soft: rgba(16, 185, 129, 0.08);
  --warning: #f59e0b;
  --warning-soft: rgba(245, 158, 11, 0.08);
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.08);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.03), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);

  /* Layout and Borders */
  --border-radius-lg: 16px;
  --border-radius-md: 12px;
  --border-radius-sm: 8px;
  --border-radius-full: 9999px;
  --transition-smooth: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.15s ease;
  
  /* Layout Dimensions */
  --container-width: 1140px;
  --header-height: 72px;
}

/* --- BASE STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent; /* Smooth touch highlights for iOS */
}

html {
  width: 100%;
  height: 100%;
  -webkit-text-size-adjust: 100%; /* Prevent automatic text resizing on iOS Safari */
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  /* Safe area padding support for iPhone notch/Dynamic Island and bottom home indicator */
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

input, select, textarea, button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
  border: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* --- GENERAL LAYOUTS & CONTAINERS --- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

main {
  flex-grow: 1;
  padding-top: calc(var(--header-height) + 32px);
  overflow-x: hidden;
}

/* Header & Sticky Blur Nav */
header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

header.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

header.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.logo svg {
  color: var(--accent);
}

.logo-highlight {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-trust-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: var(--border-radius-full);
  background-color: var(--bg-secondary);
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--border-radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
  gap: 8px;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2);
}

.btn-secondary {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-tertiary);
  border-color: #d1d5db;
  transform: translateY(-1px);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  margin: 4px 0;
  transition: var(--transition-fast);
}

/* Footer */
footer.site-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 64px 0 32px 0;
  margin-top: 64px;
  overflow-x: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  max-width: 280px;
  line-height: 1.6;
}

.footer-column h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column ul a {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-column ul a:hover {
  color: var(--text-primary);
}

.footer-newsletter p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-input {
  flex-grow: 1;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-full);
  padding: 8px 16px;
  font-size: 0.875rem;
  transition: var(--transition-fast);
}

.newsletter-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
  gap: 24px;
}

.footer-legal-links a:hover {
  color: var(--text-secondary);
}

/* --- LANDING PAGE (INDEX) --- */

/* Hero Section */
.hero {
  padding: 100px 0 80px 0;
  text-align: center;
  background: radial-gradient(circle at top, rgba(99, 102, 241, 0.03) 0%, transparent 60%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--accent-soft);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: var(--border-radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 24px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-indigo) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 36px auto;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* Trust Badges Strip */
.trust-strip {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  padding: 20px 0;
  margin-bottom: 64px;
}

.trust-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.trust-strip-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.trust-strip-logos {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-logo-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.trust-logo-item svg {
  color: var(--text-muted);
}

/* Process Section */
.process-section {
  padding: 64px 0;
  border-top: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.process-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 40px 32px;
  position: relative;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.process-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #d1d5db;
}

.process-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background-color: var(--accent-soft);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-full);
  margin-bottom: 24px;
}

.process-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.process-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Miami ATM Map Section */
.atm-section {
  padding: 64px 0;
  border-top: 1px solid var(--border-color);
}

/* Mobile Toggle Bar for ATM view switching */
.atm-mobile-toggle-bar {
  display: none;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-full);
  padding: 4px;
  margin-bottom: 20px;
  gap: 4px;
}

.atm-toggle-btn {
  flex-grow: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--border-radius-full);
  cursor: pointer;
  background-color: transparent;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.atm-toggle-btn.active {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.atm-grid {
  display: grid;
  grid-template-columns: 4.5fr 7.5fr;
  gap: 32px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* ATM Registry directory list container */
.atm-list-container {
  display: flex;
  flex-direction: column;
  max-height: 600px;
  background-color: var(--bg-primary);
  border-right: 1px solid var(--border-color);
}

.atm-list-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.atm-list-header-text h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.atm-list-header-text p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
}

.search-input-wrapper svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.atm-search-bar {
  width: 100%;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-full);
  padding: 10px 16px 10px 40px;
  font-size: 0.875rem;
  transition: var(--transition-fast);
  color: var(--text-primary);
}

.atm-search-bar:focus {
  background-color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

.filter-tags-container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.filter-tags-container::-webkit-scrollbar {
  display: none;
}

.filter-tag-btn {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-full);
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  color: var(--text-secondary);
}

.filter-tag-btn:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.filter-tag-btn.active {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.atm-locations {
  overflow-y: auto;
  flex-grow: 1;
}

.atm-item {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.atm-item:hover {
  background-color: var(--bg-secondary);
}

.atm-item.active {
  background-color: var(--accent-soft);
  border-left: 4px solid var(--accent);
  padding-left: 20px;
}

.atm-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.atm-item-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.atm-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: var(--border-radius-full);
}

.atm-status-badge.online {
  background-color: var(--success-soft);
  color: var(--success);
}

.atm-status-badge.maintenance {
  background-color: var(--warning-soft);
  color: var(--warning);
}

.atm-item-details {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.atm-item-features {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.atm-feature-tag {
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 0.6875rem;
  padding: 2px 6px;
  border-radius: var(--border-radius-sm);
  font-weight: 500;
}

.atm-item.active .atm-feature-tag {
  background-color: rgba(0, 113, 227, 0.1);
  color: var(--accent);
}

/* Map Display */
.atm-map-container {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 600px;
  position: relative;
}

.atm-map-canvas {
  flex-grow: 1;
  background-color: #f9fafb;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  position: relative;
  overflow: hidden;
}

/* --- PREMIUM LEAFLET MAP CUSTOMIZATIONS --- */
#map {
  width: 100%;
  height: 100%;
  z-index: 1;
}

.leaflet-container {
  font-family: var(--font-sans) !important;
}

/* Custom glowing beacon pins */
.custom-map-pin {
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-marker-pin-inner {
  position: relative;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-marker-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent);
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 5;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-map-pin.active .map-marker-dot {
  transform: scale(1.3);
  background-color: var(--accent);
}

.map-marker-pulse {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: rgba(0, 113, 227, 0.2);
  border: 1px solid rgba(0, 113, 227, 0.3);
  position: absolute;
  top: -5px;
  left: -5px;
  z-index: 1;
  animation: leaflet-pulse 2s infinite ease-out;
  transform-origin: center;
  pointer-events: none;
}

.custom-map-pin.active .map-marker-pulse {
  background-color: rgba(0, 113, 227, 0.3);
  border-color: rgba(0, 113, 227, 0.5);
  animation-duration: 1.5s;
}

@keyframes leaflet-pulse {
  0% { transform: scale(0.4); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

.map-overlay-details {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000; /* Must sit above Leaflet layers */
}

.map-overlay-details.visible {
  transform: translateY(0);
  opacity: 1;
}

.overlay-info h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.overlay-info p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* --- CORE EXCHANGE PORTAL (EXCHANGE) --- */
.exchange-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 48px;
  align-items: start;
  margin-top: 24px;
  margin-bottom: 64px;
}

.exchange-info-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.rates-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.rates-scroll-container {
  max-height: 420px; /* Scroll box size expanded for 10 coins */
  overflow-y: auto;
  margin-top: 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
}

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

.rates-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 20px;
  background-color: var(--bg-secondary);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border-color);
}

.rates-table td {
  padding: 14px 20px;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  background-color: var(--bg-primary);
}

.rates-table tr:last-child td {
  border-bottom: none;
}

.asset-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

/* --- PREMIUM COINGECKO/TRUST LOGO ALIGNMENTS --- */
.crypto-logo-wrapper {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

.crypto-logo-wrapper.small {
  width: 18px;
  height: 18px;
}

.crypto-logo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.rate-value {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}

.rate-value.flash-green {
  color: var(--success);
}

.rate-value.flash-red {
  color: var(--danger);
}

.lock-banner {
  background-color: var(--accent-soft);
  border: 1px solid rgba(0, 113, 227, 0.15);
  border-radius: var(--border-radius-md);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.lock-banner svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.lock-banner-content h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.lock-banner-content p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.locked-timer-badge {
  background-color: rgba(0, 113, 227, 0.12);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: var(--border-radius-full);
  font-weight: 700;
  display: inline-block;
  margin-top: 4px;
}

.explanation-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.explanation-step {
  display: flex;
  gap: 16px;
}

.explanation-step-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  width: 24px;
  height: 24px;
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.explanation-step-content h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.explanation-step-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Right Column: Exchange Widget */
.exchange-widget-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-card);
  padding: 32px;
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.widget-tabs {
  display: flex;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 4px;
  border-radius: var(--border-radius-full);
  margin-bottom: 28px;
}

.widget-tab {
  flex-grow: 1;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--border-radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
  color: var(--text-secondary);
  background-color: transparent;
}

.widget-tab.active {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.input-group {
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 16px;
  background-color: var(--bg-primary);
  transition: var(--transition-fast);
}

.input-group:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.input-group-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.input-balance {
  color: var(--text-muted);
}

.input-group-fields {
  display: flex;
  align-items: center;
  gap: 12px;
}

.input-field {
  flex-grow: 1;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  background: transparent;
  padding: 0;
  width: 100px;
}

.input-field::placeholder {
  color: var(--text-muted);
}

.asset-select-container {
  position: relative;
  flex-shrink: 0;
}

.asset-select-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-full);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.asset-select-btn:hover {
  background-color: var(--bg-tertiary);
}

.asset-select-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  width: 180px; /* Wider for logos */
  display: none;
  flex-direction: column;
  z-index: 50;
  overflow: hidden;
  max-height: 280px;
  overflow-y: auto;
}

.asset-select-dropdown.open {
  display: flex;
}

.asset-select-option {
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 12px;
}

.asset-select-option:hover {
  background-color: var(--bg-secondary);
}

.swap-arrows-container {
  display: flex;
  justify-content: center;
  margin-top: -10px;
  margin-bottom: -10px;
  position: relative;
  z-index: 10;
}

.swap-arrows-btn {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  width: 36px;
  height: 36px;
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.swap-arrows-btn:hover {
  transform: rotate(180deg);
  border-color: #d1d5db;
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

/* Dynamic Payout Section */
.payout-section {
  margin-bottom: 28px;
}

.payout-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: block;
}

.payout-segmented-control {
  display: flex;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 4px;
  margin-bottom: 16px;
}

.payout-option {
  flex-grow: 1;
  text-align: center;
  padding: 8px 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.payout-option.active {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.payout-dynamic-group {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 14px 16px;
  background-color: var(--bg-primary);
  transition: var(--transition-fast);
}

.payout-dynamic-group:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.payout-dynamic-group label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 4px;
}

.payout-dynamic-group input {
  width: 100%;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  background: transparent;
  padding: 2px 0;
}

.payout-dynamic-group input::placeholder {
  color: var(--text-muted);
}

.atm-pairing-panel {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 16px;
  background-color: var(--bg-secondary);
  margin-bottom: 20px;
  display: none;
  flex-direction: column;
  gap: 12px;
}

.atm-pairing-panel.visible {
  display: flex;
}

.atm-pairing-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
}

.pairing-signal-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
}

.pairing-signal-indicator.linked {
  color: var(--success);
}

.pairing-signal-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--border-radius-full);
  background-color: currentColor;
}

.atm-pairing-input-group {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.atm-pairing-input-group input {
  flex-grow: 1;
  min-width: 0;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 8px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.atm-pairing-input-group input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  outline: none;
}


.atm-pairing-input-group button {
  background-color: var(--text-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 8px 16px;
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.atm-pairing-input-group button:hover {
  opacity: 0.9;
}

.exchange-action-btn {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

/* --- ABOUT PAGE (ABOUT) --- */
.editorial-layout {
  max-width: 800px;
  margin: 0 auto 64px auto;
}

.editorial-title {
  text-align: center;
  margin-bottom: 48px;
}

.editorial-title h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.editorial-title p {
  font-size: 1.25rem;
  color: var(--text-secondary);
}

.editorial-content {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.editorial-content p {
  margin-bottom: 24px;
}

.editorial-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 48px;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin: 32px 0;
}

.editorial-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 24px;
}

.editorial-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.editorial-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* FAQ Accordion */
.faq-section {
  margin-top: 64px;
}

.faq-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
  letter-spacing: -0.02em;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 680px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-trigger {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background-color: var(--bg-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9375rem;
}

.faq-trigger:hover {
  background-color: var(--bg-secondary);
}

.faq-chevron {
  color: var(--text-muted);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: var(--bg-primary);
}

.faq-content-inner {
  padding: 0 24px 20px 24px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-item.open .faq-content {
  max-height: 200px;
}

/* --- TERMS PAGE (TERMS) --- */
.terms-split-grid {
  display: grid;
  grid-template-columns: 3fr 9fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 64px;
}

.terms-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.terms-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 2px solid var(--border-color);
  padding-left: 0;
}

.terms-nav-item a {
  display: block;
  padding: 6px 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-left: -2px;
  border-left: 2px solid transparent;
  transition: var(--transition-fast);
}

.terms-nav-item a:hover {
  color: var(--text-primary);
}

.terms-nav-item.active a {
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 600;
}

.terms-content-col {
  max-width: 680px;
}

.terms-title-block {
  margin-bottom: 40px;
}

.terms-title-block h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.terms-title-block p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.terms-section-block {
  margin-bottom: 48px;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.terms-section-block h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.terms-section-block p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.terms-section-block ul {
  list-style-type: disc;
  padding-left: 20px;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.terms-section-block li {
  font-size: 0.9375rem;
  margin-bottom: 8px;
  line-height: 1.5;
}

/* --- MODALS --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(17, 24, 39, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000; /* leafet overlay z-index starts at 1000 */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 32px;
  position: relative;
}

.modal-overlay.open .modal-container {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-primary);
  background-color: var(--bg-secondary);
}

.wallet-modal-content {
  text-align: center;
}

.wallet-modal-icon {
  width: 56px;
  height: 56px;
  background-color: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--border-radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.wallet-modal-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.wallet-modal-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.wallet-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wallet-option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: var(--transition-fast);
}

.wallet-option-item:hover {
  background-color: var(--bg-secondary);
  border-color: #cbd5e1;
}

.wallet-option-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wallet-option-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Success Receipt Modal Card */
.receipt-modal-content {
  text-align: center;
}

.receipt-success-badge {
  width: 48px;
  height: 48px;
  background-color: var(--success-soft);
  color: var(--success);
  border-radius: var(--border-radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.receipt-modal-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.receipt-modal-content .subtitle {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.receipt-qr-container {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 24px;
  display: inline-block;
  margin-bottom: 24px;
}

.qr-code-box {
  width: 160px;
  height: 160px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.qr-code-box svg {
  width: 100%;
  height: 100%;
}

.receipt-info-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-md);
  padding: 16px;
  margin-bottom: 24px;
  text-align: left;
  border: 1px dashed var(--border-color);
}

.receipt-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
}

.receipt-info-row .label {
  color: var(--text-secondary);
}

.receipt-info-row .val {
  font-weight: 600;
  color: var(--text-primary);
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 1024px) {
  .hero h1 { font-size: 3rem; }
  .exchange-grid {
    display: flex;
    flex-direction: column-reverse;
    gap: 32px;
  }
  .exchange-widget-card { position: static; }
}

@media (max-width: 768px) {
  :root { --header-height: 60px; }
  .container { padding: 0 16px; }
  main { padding-top: calc(var(--header-height) + 16px); }
  header.site-header {
    height: var(--header-height);
    transition: background-color 0.3s ease, height 0.3s ease, box-shadow 0.3s ease;
  }
  
  /* Sliding Mobile Glassmorphic Overlay Menu */
  .site-header.mobile-active {
    height: auto !important;
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    box-shadow: var(--shadow-lg) !important;
  }
  
  .site-header.mobile-active .container {
    flex-wrap: wrap;
    align-items: center;
    padding-bottom: 24px;
  }
  
  .site-header.mobile-active .nav-links {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    margin-top: 20px;
    gap: 12px;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
  }
  
  .site-header.mobile-active .nav-links a {
    font-size: 1rem;
    font-weight: 600;
    padding: 8px 0;
    width: 100%;
    text-align: center;
    color: var(--text-secondary);
  }
  
  .site-header.mobile-active .nav-links a:hover,
  .site-header.mobile-active .nav-links a.active {
    color: var(--accent);
  }
  
  .site-header.mobile-active .nav-actions {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    gap: 16px;
    align-items: stretch;
    margin-top: 8px;
  }
  
  .site-header.mobile-active .nav-actions .header-trust-tag {
    justify-content: center;
    padding: 10px;
    font-size: 0.85rem;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.06);
    color: var(--success);
  }
  
  .site-header.mobile-active .nav-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  
  .nav-links, .nav-actions {
    display: none !important;
  }
  
  /* Mobile Toggle Hamburger Transformation */
  .mobile-toggle {
    display: block;
  }
  
  .mobile-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  
  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
  
  .hero { padding: 60px 0 40px 0; }
  .hero h1 { font-size: 2.25rem; margin-bottom: 16px; }
  .hero-subtitle { font-size: 1rem; margin-bottom: 24px; }
  .hero-ctas { flex-direction: column; width: 100%; gap: 12px; }
  .hero-ctas .btn { width: 100%; }
  .process-grid { grid-template-columns: 1fr; gap: 20px; }
  .process-card { padding: 24px; }
  
  .atm-mobile-toggle-bar { display: flex; }
  
  .atm-grid {
    grid-template-columns: 1fr;
    border: none;
    border-radius: var(--border-radius-md);
    box-shadow: none;
    background-color: transparent;
  }
  
  /* Initial mobile view shows list, hides map */
  .atm-grid .atm-list-container {
    display: flex;
    max-height: 520px;
    border-right: none;
    border-bottom: none;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
  }
  
  .atm-grid .atm-map-container {
    display: none;
    height: 480px;
    padding: 0;
  }
  
  /* Active list view state overrides */
  .atm-grid.show-list-view .atm-list-container {
    display: flex;
  }
  .atm-grid.show-list-view .atm-map-container {
    display: none;
  }
  
  /* Active map view state overrides */
  .atm-grid.show-map-view .atm-list-container {
    display: none;
  }
  .atm-grid.show-map-view .atm-map-container {
    display: flex;
    height: 480px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    padding: 0;
  }
  
  .atm-map-canvas {
    height: 100%;
    border: none;
    border-radius: 0;
  }
  
  .exchange-widget-col {
    width: 100%;
  }
  
  .exchange-widget-card {
    width: 100%;
    padding: 20px 16px;
  }
  
  .rates-card {
    padding: 16px 12px;
  }
  
  .rates-table th {
    padding: 10px 8px;
    font-size: 0.7rem;
  }
  
  .rates-table td {
    padding: 10px 8px;
    font-size: 0.8rem;
  }
  
  .asset-cell {
    gap: 6px;
  }
  
  .payout-segmented-control {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    padding: 4px;
  }
  
  .payout-option {
    white-space: normal;
    font-size: 0.75rem;
    padding: 10px 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    border-radius: var(--border-radius-sm);
    height: 38px;
  }
  
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand p { max-width: 100%; }
  .footer-bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
  .terms-split-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
  .terms-sidebar {
    display: block;
    position: sticky;
    top: var(--header-height);
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 90;
    margin-left: -16px;
    margin-right: -16px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--border-color);
  }
  .terms-nav-list {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    border-left: none;
    padding-left: 0;
    gap: 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .terms-nav-list::-webkit-scrollbar {
    display: none;
  }
  .terms-nav-item a {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 8px 12px;
    white-space: nowrap;
    margin-left: 0;
  }
  .terms-nav-item.active a {
    border-bottom-color: var(--accent);
    color: var(--accent);
    font-weight: 600;
  }
  .editorial-grid { grid-template-columns: 1fr; gap: 16px; }
  .map-overlay-details {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 20px 16px 16px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
  }
  
  .map-overlay-details::before {
    content: '';
    width: 36px;
    height: 4px;
    background-color: var(--border-color);
    border-radius: var(--border-radius-full);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
  }
  
  /* Prevent automatic iOS input zoom by ensuring font-size is at least 16px */
  .atm-search-bar,
  .payout-dynamic-group input,
  .atm-pairing-input-group input,
  .newsletter-input {
    font-size: 16px !important;
  }
  
  .asset-select-dropdown {
    z-index: 100 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
  }

  #overlaySwapBtn { width: 100%; justify-content: center; }
}

@media (hover: none) {
  /* Prevent sticky active hover styling states on iOS Safari/Chrome touchscreens */
  .btn:hover {
    transform: none !important;
  }
  .nav-links a:hover {
    color: var(--text-secondary) !important;
  }
  .nav-links a.active:hover {
    color: var(--accent) !important;
  }
  .atm-location-item:hover {
    background-color: var(--bg-primary) !important;
    transform: none !important;
  }
  .swap-arrows-btn:hover {
    transform: none !important;
    border-color: var(--border-color) !important;
  }
  .filter-tag-btn:hover {
    border-color: var(--border-color) !important;
    color: var(--text-secondary) !important;
  }
  .filter-tag-btn.active:hover {
    background-color: var(--accent) !important;
    color: #ffffff !important;
    border-color: var(--accent) !important;
  }
}

