/* ==========================================================================
   LOCUTORIOS ELCHE - MODERN DESIGN SYSTEM (IMPECCABLE & CRAFT-ENGINEERED)
   Inspired by: Emil Kowalski UI Physics, Linear Density & Stripe Clarity
   ========================================================================== */

/* --- 1. DESIGN TOKENS & SYSTEM VARIABLES --- */
:root {
  /* Brand Palettes */
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fd;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-900: #1e3a8a;

  --ria-color: #f05a22;
  --ria-subtle: #fff1ec;
  --wu-color: #ffde00;
  --wu-dark: #121212;

  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-subtle: #ecfdf5;

  --amber-500: #f59e0b;
  --amber-subtle: #fffbeb;

  --rose-500: #f43f5e;
  --rose-subtle: #fff1f2;

  /* Surfaces & Backgrounds */
  --bg-app: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-dark: #0f172a;
  --bg-dark-surface: #1e293b;

  /* Typography Colors */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --text-inverse: #ffffff;

  /* Borders & Dividers */
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.16);
  --border-focus: rgba(37, 99, 235, 0.5);
  --border-dark: rgba(255, 255, 255, 0.1);

  /* Shadows (Multi-layered realistic elevation) */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.09), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 24px -4px rgba(37, 99, 235, 0.25);

  /* Spacing Scale (Strict 4px/8px Spatial Scale) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Nested Border Radii Formula */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Spring Physics Easings */
  --spring-snappy: cubic-bezier(0.16, 1, 0.3, 1);
  --spring-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* --- 2. RESET & BASE ELEMENTS --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-primary);
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  line-height: 1.55;
  font-size: 1rem;
  overflow-x: hidden;
  position: relative;
}

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

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* --- 3. TOP BAR & NAVIGATION --- */
.top-notice-bar {
  background: var(--bg-dark);
  color: var(--text-inverse);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border-dark);
}

.top-notice-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}

.live-badge-group {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: var(--emerald-500);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.top-contacts {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.top-contacts a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--text-tertiary);
  transition: color 0.15s ease;
}

.top-contacts a:hover {
  color: var(--text-inverse);
}

/* Main Nav Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-icon-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-600), var(--primary-900));
  display: grid;
  place-items: center;
  color: white;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: all 0.15s var(--spring-snappy);
}

.nav-links a:hover {
  color: var(--primary-600);
  background: var(--primary-50);
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: var(--primary-600);
  color: white;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05), 0 4px 12px -2px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s var(--spring-snappy), background-color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px -1px rgba(37, 99, 235, 0.45);
}

.btn-primary:active {
  transform: scale(0.97) translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-xs);
  transition: transform 0.15s var(--spring-snappy), background-color 0.15s ease;
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: scale(0.97);
}

.btn-whatsapp {
  background: #25D366;
  color: white;
  border: none;
  box-shadow: 0 4px 12px -2px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: #20BA5A;
  box-shadow: 0 6px 16px -2px rgba(37, 211, 102, 0.45);
}

/* Mobile Nav Toggler */
.mobile-toggle-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: var(--space-2);
}

/* --- 4. HERO SECTION WITH DYNAMIC CALCULATOR --- */
.hero-section {
  padding: var(--space-16) 0 var(--space-12);
  background: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.06), transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(245, 158, 11, 0.05), transparent 45%);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-12);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary-700);
  margin-bottom: var(--space-5);
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary-600) 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-8);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.trust-badges {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.trust-item i {
  color: var(--emerald-600);
  font-size: 1.1rem;
}

/* Hero Simulator Card (Craft-Polished Container) */
.simulator-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xl);
  position: relative;
}

.simulator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
}

.sim-title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.sim-tag {
  background: var(--emerald-subtle);
  color: var(--emerald-600);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.sim-input-group {
  margin-bottom: var(--space-4);
}

.sim-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.sim-input-box {
  display: flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sim-input-box:focus-within {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: var(--bg-surface);
}

.sim-input-box input {
  width: 100%;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.sim-currency-tag {
  font-weight: 700;
  color: var(--text-secondary);
  padding: 2px 8px;
  background: var(--bg-surface);
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  font-size: 0.875rem;
}

.sim-select-country {
  width: 100%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px var(--space-3);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sim-select-country:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Rate Comparison Display */
.sim-rates-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin: var(--space-5) 0;
}

.sim-provider-box {
  background: var(--bg-app);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  border: 1px solid var(--border-subtle);
  position: relative;
  transition: transform 0.15s ease;
}

.sim-provider-box:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.sim-provider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
}

.sim-provider-img {
  height: 20px;
  object-fit: contain;
}

.sim-rate-value {
  font-size: 1.15rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.sim-receive-calc {
  font-size: 0.8125rem;
  color: var(--emerald-600);
  font-weight: 700;
  margin-top: var(--space-1);
}

.sim-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.sim-actions .btn-primary {
  width: 100%;
}

.sim-footnote {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: var(--space-3);
}

/* --- RATES TABLE (Ria/Western Union style) --- */
.rates-table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

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

.rates-table thead {
  background: var(--bg-app);
  border-bottom: 1px solid var(--border-subtle);
}

.rates-table th {
  padding: var(--space-3) var(--space-4);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rates-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.rates-table tbody tr:hover {
  background: var(--bg-app);
}

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

.country-cell {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-align: left;
  padding-left: var(--space-3);
}

.country-flag-round {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--border-subtle);
  flex-shrink: 0;
}

.country-cell-text {
  display: flex;
  flex-direction: column;
}

.country-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.9375rem;
}

.country-code {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.rate-col-header {
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
  font-size: 0.875rem;
  padding: 0;
}

.rate-cell {
  text-align: center;
  font-weight: 800;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--primary-600);
  min-width: 80px;
}

.rate-empty {
  color: var(--text-tertiary);
}

.rate-na {
  font-size: 1.25rem;
  color: var(--text-tertiary);
}

.rate-last-updated {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-top: var(--space-2);
  display: block;
  text-align: center;
}

/* --- RATES TABLE (Ria/Western Union style) --- */
.rates-table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

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

.rates-table thead {
  background: var(--bg-app);
  border-bottom: 1px solid var(--border-subtle);
}

.rates-table th {
  padding: var(--space-3) var(--space-4);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rates-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.rates-table tbody tr:hover {
  background: var(--bg-app);
}

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

.country-cell {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-align: left;
  padding-left: var(--space-3);
}

.country-flag-round {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--border-subtle);
  flex-shrink: 0;
}

.country-cell-text {
  display: flex;
  flex-direction: column;
}

.country-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.9375rem;
}

.country-code {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.rate-col-header {
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
  font-size: 0.875rem;
  padding: 0;
}

.rate-cell {
  text-align: center;
  font-weight: 800;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--primary-600);
  min-width: 80px;
}

.rate-empty {
  color: var(--text-tertiary);
}

.rate-na {
  font-size: 1.25rem;
  color: var(--text-tertiary);
}

.rate-last-updated {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-top: var(--space-2);
  display: block;
  text-align: center;
}

@media (max-width: 768px) {
  .rates-table th, .rates-table td {
    padding: var(--space-2);
    font-size: 0.75rem;
  }
  .country-flag-round {
    width: 28px;
    height: 28px;
  }
}

/* --- 5. SERVICES SECTION & CARDS --- */
.section-padding {
  padding: var(--space-16) 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-12);
}

.section-eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-600);
  margin-bottom: var(--space-2);
}

.section-heading {
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: var(--space-3);
}

.section-subtext {
  font-size: 1.0625rem;
  color: var(--text-secondary);
}

/* Modern Card Grid */
.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}

.service-card-modern {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s var(--spring-snappy), box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.service-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.2);
}

.card-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-4);
  transition: transform 0.2s var(--spring-bounce);
}

.service-card-modern:hover .card-icon-wrapper {
  transform: scale(1.08);
}

.icon-blue { background: var(--primary-50); color: var(--primary-600); }
.icon-emerald { background: var(--emerald-subtle); color: var(--emerald-600); }
.icon-amber { background: var(--amber-subtle); color: var(--amber-500); }
.icon-rose { background: var(--rose-subtle); color: var(--rose-500); }

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.card-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.card-feature-list {
  margin-bottom: var(--space-5);
}

.card-feature-list li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.card-feature-list li i {
  color: var(--emerald-500);
  font-size: 0.95rem;
}

.card-link-action {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-600);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  transition: gap 0.15s ease;
}

.card-link-action:hover {
  gap: var(--space-2);
  color: var(--primary-700);
}

/* --- 6. LIVE EXCHANGE RATES INTERACTIVE SECTION --- */
.rates-live-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.rates-wrapper {
  background: var(--bg-app);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
}

.rates-control-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
}

.rates-tabs {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
}

.tab-btn {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: all 0.15s var(--spring-snappy);
}

.tab-btn.active {
  background: var(--primary-600);
  color: white;
  box-shadow: var(--shadow-xs);
}

.rates-search-box {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px var(--space-3);
  font-size: 0.875rem;
  min-width: 240px;
}

.rates-search-box input {
  width: 100%;
}

.rates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-4);
}

.country-rate-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  transition: transform 0.15s var(--spring-snappy), box-shadow 0.15s ease, border-color 0.15s ease;
  overflow: hidden;
  min-width: 0;
}

.country-rate-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--primary-200);
}

.country-flag-round {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--border-subtle);
  flex-shrink: 0;
}

.country-info {
  flex-grow: 1;
  min-width: 0;
  overflow: hidden;
}

.country-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.country-rate-text {
  font-size: 0.8125rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--primary-600);
  white-space: nowrap;
}

.country-currency-code {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-left: 2px;
}

/* --- Rates Grid: Dual Column Layout (Ria + WU) --- */
.country-rates-dual {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 1;
  align-items: center;
  min-width: 0;
}

.rate-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  min-width: 56px;
  flex: 1;
}

.rate-label-sm {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rate-badge-auto {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  background: var(--primary-subtle);
  color: var(--primary-600);
  padding: 1px 5px;
  border-radius: var(--radius-full);
  line-height: 1.2;
}

.rate-badge-db {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  background: var(--emerald-subtle);
  color: var(--emerald-600);
  padding: 1px 5px;
  border-radius: var(--radius-full);
  line-height: 1.2;
}

/* --- 7. RECHARGES LOGO GRID --- */
.recharge-section {
  background: var(--bg-app);
}

.operator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.operator-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  display: grid;
  place-items: center;
  height: 72px;
  transition: transform 0.15s var(--spring-snappy), box-shadow 0.15s ease;
}

.operator-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--border-strong);
}

.operator-item img {
  max-height: 44px;
  max-width: 85%;
  object-fit: contain;
}

/* --- 8. LOCATIONS SECTION WITH LIVE ENGINE --- */
.locations-section {
  background: var(--bg-dark);
  color: var(--text-inverse);
}

.locations-section .section-eyebrow {
  color: #38bdf8;
}

.locations-section .section-heading {
  color: var(--text-inverse);
}

.locations-section .section-subtext {
  color: var(--text-tertiary);
}

.locations-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.location-card-premium {
  background: var(--bg-dark-surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s var(--spring-snappy), box-shadow 0.2s ease, border-color 0.2s ease;
}

.location-card-premium:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.5);
}

.location-img-wrap {
  height: 180px;
  position: relative;
  overflow: hidden;
}

.location-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.location-card-premium:hover .location-img-wrap img {
  transform: scale(1.05);
}

.location-status-badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.status-open {
  background: rgba(16, 185, 129, 0.9);
  color: white;
}

.status-closed {
  background: rgba(244, 63, 94, 0.9);
  color: white;
}

.location-body-content {
  padding: var(--space-6);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.location-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
  color: var(--text-inverse);
}

.location-address-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: 0.875rem;
  color: #94a3b8;
  margin-bottom: var(--space-4);
  line-height: 1.4;
}

.location-address-row i {
  color: #38bdf8;
  margin-top: 2px;
  flex-shrink: 0;
}

.location-hours-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  margin-bottom: var(--space-5);
  font-size: 0.8125rem;
}

.hours-title {
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: var(--space-1);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hours-desc {
  color: #94a3b8;
  line-height: 1.5;
}

.location-action-bar {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.btn-loc-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 700;
  transition: all 0.15s ease;
  cursor: pointer;
}

.btn-loc-map {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-loc-map:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.btn-loc-wa {
  background: #25D366;
  color: white;
}

.btn-loc-wa:hover {
  background: #20BA5A;
}

/* --- 9. FAQ ACCORDION --- */
.faq-section {
  background: var(--bg-surface);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--bg-app);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.faq-item.active {
  border-color: var(--primary-300);
  background: var(--bg-surface);
}

.faq-question {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  font-size: 1.1rem;
  color: var(--text-tertiary);
  transition: transform 0.2s var(--spring-snappy);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--primary-600);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--spring-snappy), padding 0.3s ease;
  padding: 0 var(--space-5);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 var(--space-5) var(--space-5);
}

/* --- 10. TOAST NOTIFICATION CONTAINER (SONNER-INSPIRED) --- */
.toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--bg-dark);
  color: white;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  border: 1px solid var(--border-dark);
  animation: toast-in 0.25s var(--spring-snappy) forwards;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(8px) scale(0.95); }
}

/* --- 11. FOOTER --- */
.site-footer {
  background: #090d16;
  color: #94a3b8;
  padding: var(--space-16) 0 var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.footer-brand h3 {
  color: white;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: var(--space-3);
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  color: white;
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.footer-col ul li {
  margin-bottom: var(--space-2);
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: #94a3b8;
  transition: color 0.15s ease;
}

.footer-col ul li a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8125rem;
}

/* --- 12. MOBILE DRAWER NAVIGATION --- */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.mobile-drawer.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(340px, 88vw);
  height: 100%;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xl);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  transform: translateX(100%);
  transition: transform 0.28s var(--spring-snappy);
}

.mobile-drawer.open .mobile-drawer-panel {
  transform: translateX(0);
}

.mobile-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-drawer-head .brand-logo {
  font-size: 1rem;
}

.mobile-drawer-head .brand-icon-box {
  width: 32px;
  height: 32px;
  font-size: 0.9rem;
}

.mobile-close-btn {
  font-size: 1.1rem;
  color: var(--text-secondary);
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.mobile-close-btn:hover {
  background: var(--bg-subtle);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  flex-grow: 1;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-3);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.mobile-nav-link:hover {
  background: var(--primary-50);
  color: var(--primary-700);
}

.mobile-nav-link i {
  font-size: 1.05rem;
  color: var(--primary-600);
}

.mobile-drawer-cta {
  width: 100%;
}

/* --- 13. RESPONSIVENESS & ACCESSIBILITY --- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta-group {
    display: none;
  }
  .mobile-toggle-btn {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
