/* public_html/styles.css - FINAL PREMIUM VERSION */

:root {
  /* --- DARK THEME (Default - Premium Tech Look) --- */
  --bg-body: #050505;
  --bg-card: #0f0f0f;
  --bg-card-hover: #161616;

  --text-main: #ffffff;
  --text-muted: #94a3b8;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);

  --primary: #ff6b00;
  --primary-glow: rgba(255, 107, 0, 0.5);
  --primary-dark: #e65b00;
  --secondary: #2563eb;
  /* DCI-P3 Color Gamut for HDR/OLED Displays */
}
@media (color-gamut: p3) {
  :root {
    /* Slightly richer orange, but not overly neon to protect eyes */
    --primary: color(display-p3 0.95 0.45 0.05);
    --primary-glow: color(display-p3 0.95 0.45 0.05 / 0.4);
    --primary-dark: color(display-p3 0.85 0.35 0.02);
  }
}

:root {
  /* Glass Effect Variables (Premium Matte) */
  --glass: rgba(20, 20, 20, 0.65);
  --glass-border: rgba(255, 255, 255, 0.06);
  --blur-amount: 40px; /* Stronger blur for matte feel */

  /* Additional Matte Vars */
  --matte-bg: rgba(255, 255, 255, 0.03);
  --matte-border: rgba(255, 255, 255, 0.08);

  /* Shapes */
  --radius-pill: 12px;
  --radius-card: 24px;
  --radius-sm: 12px;

  /* Typography */
  --font-main: "Inter", system-ui, -apple-system, sans-serif;

  /* Gradients */
  --hero-gradient: radial-gradient(circle at 50% 0%, #1e1e1e 0%, #050505 60%);
  --btn-gradient: linear-gradient(135deg, #ff6b00 0%, #ff8533 100%);

  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(255, 107, 0, 0.15);
  --shadow-card: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  /* New Component Variables */
  --header-bg: rgba(10, 10, 10, 0.75);
  --header-hover-bg: rgba(15, 15, 15, 0.85);

  --card-glass: rgba(25, 25, 25, 0.6);
  --card-glass-hover: rgba(30, 30, 30, 0.8);
  --card-border: rgba(255, 255, 255, 0.12);

  --drawer-bg: rgba(20, 20, 20, 0.65);
  --modal-bg: var(--glass);
  --modal-border: rgba(255, 255, 255, 0.1);

  --plan-bg: rgba(255, 255, 255, 0.03);
  --plan-hover-bg: rgba(255, 255, 255, 0.06);
  --plan-border: rgba(255, 255, 255, 0.08);

  /* Fluid Spacing & Typography */
  --space-unit: clamp(16px, 2vw, 24px);
  --font-h1: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  --font-h2: clamp(1.8rem, 4vw + 0.5rem, 2.8rem);
  --font-body: clamp(0.95rem, 1vw + 0.5rem, 1.125rem);
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden; /* Critical for mobile */
  width: 100%;
  position: relative; /* Ensure containment */
  transition:
    background-color 0.4s ease,
    color 0.4s ease;
  -webkit-font-smoothing: antialiased;
  padding-top: 0;
  margin: 0;
}

[data-theme="light"] {
  /* --- LIGHT THEME (Clean, Bright & Premium) --- */
  --bg-body: #fafafa;
  --bg-card: #ffffff;
  --bg-card-hover: #f9fafb;

  --text-main: #000000;
  --text-muted: #4b5563;

  --border-color: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);

  --glass: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.06);

  /* Component Overrides for Light Mode */
  --header-bg: rgba(255, 255, 255, 0.85);
  --header-hover-bg: rgba(255, 255, 255, 0.95);

  --card-glass: rgba(255, 255, 255, 0.7);
  --card-glass-hover: rgba(255, 255, 255, 0.9);
  --card-border: rgba(0, 0, 0, 0.08);

  --drawer-bg: rgba(255, 255, 255, 0.9);
  --modal-bg: #ffffff;
  --modal-border: rgba(0, 0, 0, 0.05);

  --plan-bg: #ffffff;
  --plan-hover-bg: #f8fafc;
  --plan-border: rgba(0, 0, 0, 0.1);

  --hero-gradient: linear-gradient(180deg, #000000 20%, #4b5563 100%);
  --shadow-card:
    0 10px 30px -5px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.05);

  --primary-glow: rgba(255, 107, 0, 0.3);
}

/* --- GLOBAL RESET & BASE --- */
html,
body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-color: #050505; /* Fallback/Safety */
  background-color: var(--bg-body);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  width: 100%;
}

/* [body base already defined above] */

/* [no-op media query removed] */

/* Standalone Pages */
body.no-pad {
  padding-top: 0 !important;
}

body.full-height-layout {
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Ambient Background Glow — fixed so it stays visible on all scroll positions */
body::before {
  content: "";
  position: fixed;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 160vh;
  background: radial-gradient(
    circle,
    rgba(255, 107, 0, 0.08) 0%,
    transparent 60%
  );
  z-index: -1;
  pointer-events: none;
  will-change: transform; /* GPU compositing — no scroll repaint */
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}
ul {
  list-style: none;
}
button,
input {
  font-family: inherit;
  outline: none;
  border: none;
}

/* Mobile Input Zoom Fix */
@media screen and (max-width: 768px) {
  input,
  select,
  textarea,
  button {
    font-size: 16px;
  }
}

/* Focus Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
/* Global Button Resets */
button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  outline: none;
}

/* Primary Button Style */
.btn-primary,
button[type="submit"] {
  background: var(--btn-gradient);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-pill); /* Now 12px */
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 15px var(--primary-glow);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover,
button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-primary:active,
button[type="submit"]:active {
  transform: scale(0.98);
}

/* Pulse Animation for Main CTA */
@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 107, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 0, 0);
  }
}

.pulse-btn {
  animation: pulse-glow 2s infinite;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100% !important; /* Fix horizontal scroll */
  max-width: 100% !important;
  right: auto;
  margin: 0 !important;
  box-sizing: border-box !important;
  height: calc(70px + env(safe-area-inset-top));
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: env(safe-area-inset-top) calc(5% + env(safe-area-inset-right)) 0 calc(5% + env(safe-area-inset-left));

  /* Glass Effect */
  background: rgba(5, 5, 5, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  /* Border & Shape - Orange Line Added */
  border-bottom: 1px solid var(--primary);
  border-radius: 0;

  z-index: 9995;
  transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, backdrop-filter; /* GPU Acceleration */
}

/* Hover Effect for Header - REMOVED per user request */
/* .header:hover {
  background: rgba(5, 5, 5, 0.9);
} */

[data-theme="light"] .header {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: none;
}

.header::after {
  display: none;
}

/* Modal Overlay - MUST BE HIGHEST */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85); /* Darker backdrop */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 30000 !important; /* Force on top */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none; /* Prevent blocking clicks when hidden */
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  backdrop-filter: blur(20px);
}

/* --- 3. HERO SECTION (Redesigned) --- */
/* --- 3. HERO SECTION (Apple Aesthetic) --- */
.hero-container {
  padding: 120px 20px 60px; /* Reduced bottom padding */
  text-align: center;
  max-width: 1200px; /* Widened to 1200px as requested using workspace */
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}


/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 8px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Typography */
.hero-container h1 {
  font-size: var(--font-h1);
  line-height: 1.1;
  font-weight: 800;
  margin: 0;
  /* NUCLEAR OPTION: Solid White Only */
  color: #ffffff !important;
  background: none !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* Strong shadow for lift */
  letter-spacing: -0.02em;
  /* OPTIMIZED LCP: Immediate Paint */
  animation: none;
  opacity: 1;
  transform: translateY(0);
  filter: none !important;
  word-break: normal; /* Preserve whole words */
  overflow-wrap: normal;
  hyphens: none; /* Disable automatic hyphenation */
}

[data-theme="light"] .hero-container h1 {
  color: #111111;
  background: none;
  background-clip: border-box;
  -webkit-background-clip: border-box;
  -webkit-text-fill-color: #111111;
  text-shadow: none;
}

.hero-container p {
  font-size: var(--font-body);
  color: #cccccc; /* Much lighter gray for better readability */
  max-width: 500px;
  margin: 0;
  line-height: 1.6;
  font-weight: 500; /* Slightly bolder */
  animation: fadeInUp 0.8s ease-out;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Search Wrapper (Premium Input) */
/* Search Wrapper styles removed to avoid duplication with 'SEARCH CAPSULE' section below */

/* Central Premium Banner (Redesigned) */
.hero-central-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255, 255, 255, 0.03); /* Subtle glass */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px; /* Less rounded (was 100px) */
  padding: 16px 20px 16px 24px;
  margin-top: 32px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5); /* Deeper shadow */
  /* OPTIMIZED LCP: Immediate Paint */
  animation: none;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
}

/* Subtle Gradient Border Effect */
.hero-central-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.02)
  );
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-central-banner:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 15px 50px -10px rgba(0, 0, 0, 0.6);
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  font-size: 1.05rem; /* Larger text */
  width: 100%;
  justify-content: space-between; /* Push button to right on desktop */
  align-items: center; /* Ensure vertical centering */
}

/* Banner Button (Desktop Defaults) */
.banner-btn {
  margin-left: auto; /* Push to right */
  align-self: center; /* Explicit vertical center */
  padding: 12px 35px;
  font-size: 1.1rem;
  border-radius: 100px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 25px rgba(255, 107, 0, 0.5); /* The Orange Glow */
  transition: all 0.3s ease;
  background: var(--btn-gradient);
  color: white;
  min-width: fit-content;
}

.banner-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 35px rgba(255, 107, 0, 0.7);
}

/* MOBILE OPTIMIZATION for Banner */
@media (max-width: 768px) {
  .hero-central-banner {
    padding: 24px;
    border-radius: 20px;
    background: rgba(
      20,
      20,
      20,
      0.8
    ) !important; /* Darker background for contrast */
    margin: 20px 0;
  }

  .banner-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    align-items: center;
  }

  .banner-icon {
    font-size: 2rem; /* Larger icon */
    margin-bottom: 5px;
  }

  .banner-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 1.15rem;
  }

  .banner-sub {
    font-size: 1rem;
    opacity: 0.8;
  }

  .banner-btn {
    margin-left: 0;
    width: 100%; /* Full Width Button */
    justify-content: center;
    padding: 16px 20px; /* Taller touch target */
    font-size: 1.1rem;
    margin-top: 5px;
  }
}

.banner-icon {
  font-size: 1.4rem;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.banner-text {
  line-height: 1.3;
}

.banner-text strong {
  font-weight: 700;
  color: #fff;
}

.banner-sub {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

.banner-action {
  background: var(--btn-gradient);
  color: white;
  padding: 14px 28px; /* Bigger button */
  border-radius: 100px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 15px var(--primary-glow);
  display: flex;
  align-items: center;
  gap: 8px;
  /* Allow wrap on small screens if text is long */
  white-space: nowrap;
}

@media (max-width: 480px) {
  .banner-action {
    white-space: normal;
    text-align: center;
    justify-content: center;
    height: auto;
    padding: 12px 20px;
  }
}

.banner-action:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px var(--primary-glow);
}

/* Hero CTA Wrapper */
.hero-cta-wrapper {
  display: flex;
  gap: 16px;
  margin-top: 40px; /* Increased separation */
  animation: fadeInUp 0.8s ease-out;
}

.hero-signup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  background: var(--btn-gradient);
  color: white;
  font-weight: 700;
  border-radius: 100px;
  font-size: 1.05rem;
  box-shadow: 0 10px 30px var(--primary-glow);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-signup-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px var(--primary-glow);
}

/* Hero Premium Banner Card (Small floating card) */
.hero-banner-wrapper {
  position: absolute;
  right: -120px;
  top: 40%;
  transform: translate(0, -50%) rotate(5deg);
  width: 260px;
  z-index: -1;
  display: none; /* Hidden by default on mobile, shown on desktop */
}

@media (min-width: 1024px) {
  .hero-banner-wrapper {
    display: block;
    animation: floatCard 6s ease-in-out infinite;
  will-change: transform;
  }
}

@keyframes floatCard {
  0%,
  100% {
    transform: translate(0, -50%) rotate(5deg) translateY(0);
  }
  50% {
    transform: translate(0, -50%) rotate(5deg) translateY(-15px);
  }
}

.hero-glass-card {
  display: block;
  background: var(--card-glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  text-align: left;
}

.hero-glass-card:hover {
  transform: scale(1.05); /* Within the rotate transform context above */
  border-color: rgba(255, 255, 255, 0.2);
}

.card-icon-3d {
  font-size: 2rem;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.hero-glass-card .card-title {
  display: block;
  font-weight: 700;
  color: var(--text-main);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.hero-glass-card .card-subtitle {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 16px;
}

/* --- CUSTOM SELECT --- */
.select-wrapper {
  position: relative;
  width: 100%;
}

.glass-select {
  width: 100%;
  padding: 16px;
  padding-right: 48px; /* Space for arrow */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.glass-select:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

.glass-select:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.2);
}

.select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 0.9rem;
}

.glass-select option {
  background-color: #1a1a1a;
  color: white;
  padding: 10px;
}

.card-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

/* --- 2.1 HEADER REFACTORED ACTIONS --- */

/* Action Container (Right Side) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Global Controls Group (Theme, Lang, Currency) */
.global-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Icon Buttons (Theme, Lang) */
.header-icon-btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}

.header-icon-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Currency Compact */
.compact-currency {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 20px;
}

.compact-currency .currency-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.85rem;
  padding: 0; /* Override previous padding */
  background: transparent; /* Reset */
  color: var(--text-muted);
}

.compact-currency .currency-btn.active {
  background: white;
  color: black;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  /* .header block removed to match V4.4 global behavior */

  .site-brand .site-name {
    font-size: 1rem;
    white-space: nowrap;
  }

  /* Actions Wrapper */
  .header-actions {
    gap: 6px; /* Slightly more breathing room now that boxes are gone */
    flex-shrink: 0;
  }

  .global-controls {
    padding-right: 4px;
    gap: 4px;
    border: none; /* No divider */
  }

  /* Simplify Buttons - PURE ICONS */
  .header-icon-btn,
  .compact-currency,
  .lang-dropdown-wrapper button {
    background: transparent;
    border: none; /* NO BORDERS */
    padding: 0;
    width: auto;
    height: auto;
    box-shadow: none;
  }

  /* Theme: Micro Icon */
  .theme-icon-svg {
    width: 20px;
    height: 20px;
    opacity: 0.9;
  }

  /* Language: Micro Text */
  .lang-trigger .globe-icon {
    display: none;
  }

  .current-lang-code {
    font-size: 0.8rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-muted); /* Subtler */
  }

  /* Currency: Tiny Active Symbol */
  .compact-currency {
    border-radius: 0;
    padding: 0;
  }

  .compact-currency .currency-btn {
    width: auto;
    height: auto;
    font-size: 0.8rem;
    padding: 0 2px;
  }

  /* Hide inactive currency */
  .compact-currency .currency-btn:not(.active) {
    display: none;
  }

  .compact-currency .currency-btn.active {
    box-shadow: none;
    background: transparent;
    color: var(--primary); /* Orange Dollar */
    font-weight: 700;
  }

  /* Login Button - PURE ICON (No Circle) */
  .long-text {
    display: none;
  }

  .nav-cta-btn {
    padding: 0;
    background: transparent; /* No background */
    border: none; /* No border */
    width: auto;
    height: auto;
    border-radius: 0;
    margin-left: 6px; /* Spacing from currency */
  }

  .nav-cta-btn .icon {
    margin: 0;
    font-size: 1.2rem; /* Slightly larger lock icon since it has no container */
    color: var(--text-main);
  }

  .menu-toggle {
    margin-left: 8px; /* Breathing room for hamburger */
    width: 24px;
    transform: scale(1);
  }
}

/* Add a subtle inner glow */
.header::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-pill);
  padding: 1px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0.05)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  display: flex;
  align-items: center;
}

/* CTA Button in Header */
.nav-cta-btn {
  background: var(--btn-gradient);
  color: white !important;
  padding: 8px 16px !important; /* Reduced padding */
  border-radius: var(--radius-pill);
  font-weight: 600 !important;
  font-size: 0.85rem; /* Reduced size */
  box-shadow: 0 4px 15px var(--primary-glow);
  transition:
    transform 0.2s,
    box-shadow 0.2s !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.login-btn-header {
  background: transparent !important;
  border: 1px solid var(--primary) !important;
  color: var(--primary) !important;
  box-shadow: none !important;
}

.login-btn-header:hover {
  background: rgba(255, 107, 0, 0.1) !important;
  box-shadow: 0 0 15px rgba(255, 107, 0, 0.2) !important;
}

.cabinet-btn {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-main) !important;
  box-shadow: none !important;
}

.cabinet-btn:hover {
  border-color: var(--text-main) !important;
}

/* Controls (Theme/Lang) */
.controls-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 12px;
  padding-left: 16px;
  border-left: 1px solid var(--border-color);
}

.theme-toggle-btn {
  background: transparent;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.theme-icon-svg {
  width: 24px;
  height: 24px;
  min-width: 24px; /* Prevent shrinking */
  min-height: 24px;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Sun/Moon Animation Logic */
.sun-core,
.sun-rays {
  transform-origin: center;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.moon-body {
  transform-origin: center;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  opacity: 0;
  transform: scale(0.5) rotate(90deg);
}

/* Light Mode (Sun Visible) */
[data-theme="light"] .sun-core {
  transform: scale(1);
  opacity: 1;
}
[data-theme="light"] .sun-rays {
  transform: scale(1) rotate(0);
  opacity: 1;
}
[data-theme="light"] .moon-body {
  transform: scale(0.5) rotate(90deg);
  opacity: 0;
}
[data-theme="light"] .theme-icon-svg {
  color: #f59e0b;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.5));
}

/* Dark Mode (Moon Visible) */
[data-theme="dark"] .sun-core {
  transform: scale(0.5);
  opacity: 0;
}
[data-theme="dark"] .sun-rays {
  transform: scale(0.5) rotate(180deg);
  opacity: 0;
}
[data-theme="dark"] .moon-body {
  transform: scale(1) rotate(0);
  opacity: 1;
}
[data-theme="dark"] .theme-icon-svg {
  color: #ffffff;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

/* Language & Currency Switchers (Segmented Control Style) */
.lang-menu,
.currency-menu {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 4px 8px;
  margin-left: 12px;
  transition: all 0.3s ease;
  gap: 4px;
}

.lang-separator {
  color: var(--border-color);
  font-size: 0.8rem;
  margin: 0 2px;
}

.lang-menu:hover,
.currency-menu:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

.lang-btn,
.currency-btn {
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 24px;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  line-height: 1;
  letter-spacing: 0.05em;
}

.lang-btn:hover,
.currency-btn:hover {
  color: var(--text-main);
}

.lang-btn.active,
.currency-btn.active {
  background: var(--text-main);
  color: var(--bg-body); /* Contrast text */
  box-shadow: 0 2px 12px rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

/* Light Mode Adjustments */
[data-theme="light"] .lang-btn.active,
[data-theme="light"] .currency-btn.active {
  background: #000;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* --- NEW LANGUAGE DROPDOWN (Glassmorphism) --- */
.lang-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.lang-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap; /* Prevent text wrapping */
}

.lang-trigger:hover,
.lang-trigger.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-color: var(--border-hover);
}

.current-lang-code {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.dropdown-arrow {
  font-size: 0.6rem;
  opacity: 0.7;
  transition: transform 0.3s ease;
}

.lang-trigger.active .dropdown-arrow {
  transform: rotate(180deg);
}

.lang-dropdown-content {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 160px;
  background: rgba(20, 20, 20, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999; /* Ensure high z-index */
  overflow: hidden; /* Keep rounded corners */
  display: block; /* Ensure it's not display:none by default overrides, though visibility handles hide */
}

/* Mobile Fix for Language Dropdown Overflow */
@media (max-width: 768px) {
  .lang-dropdown-content {
    position: relative; /* Stack normally on mobile */
    top: 0;
    right: auto;
    width: 100%;
    box-shadow: none;
    background: var(--bg-card-hover); /* Contrast against menu */
    margin-top: 8px;
    transform: none;
    display: none; /* Hide until toggled */
    /* Compact Grid Layout for Languages on Mobile */
    flex-direction: row;
    flex-wrap: wrap;
  }

  .lang-dropdown-content .lang-option {
    width: 48%; /* 2 Columns */
    justify-content: center;
    padding: 10px;
  }

  .lang-dropdown-content.show {
    display: flex; /* Flex row/wrap as defined above */
    animation: fadeIn 0.3s ease;
  }
}

.lang-dropdown-content.show {
  opacity: 1;
  visibility: visible;
}

/* ── Menu Quick Buy Button (moved from header.php inline style) ── */
.menu-quick-buy-item { padding: 8px 16px 4px; }
.menu-quick-buy-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 11px 18px;
  background: linear-gradient(135deg, #ff6b00, #ff8c38);
  color: #fff !important;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  box-shadow: 0 3px 14px rgba(255,107,0,0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s;
  position: relative;
  overflow: hidden;
}
.menu-quick-buy-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.10), transparent);
  border-radius: inherit;
}
.menu-quick-buy-btn:hover,
.menu-quick-buy-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(255,107,0,0.42);
  opacity: 0.95;
}
.menu-quick-buy-btn [data-lang-key] { flex: 1; }
.menu-quick-buy-btn .qb-arrow {
  font-size: 15px;
  opacity: 0.75;
  transition: transform 0.18s ease;
}
.menu-quick-buy-btn:hover .qb-arrow { transform: translateX(3px); }
@media (min-width: 1024px) {
  .menu-quick-buy-item { padding: 10px 20px 6px; }
  .menu-quick-buy-btn { font-size: 14px; padding: 12px 20px; }
}

/* ══════════════════════════════════════════════════════════════
   UNIFIED HEADER DROPDOWN SYSTEM (Currency + Language)
   Both use the same .vc-dropdown-* classes for visual consistency
   ══════════════════════════════════════════════════════════════ */

/* Wrapper — position context */
.vc-dropdown-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

/* Trigger Button — borderless pill, identical for currency and language */
.vc-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 5px 10px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.vc-dropdown-trigger:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.vc-dropdown-trigger[aria-expanded="true"] {
  background: rgba(255, 107, 0, 0.08);
  color: #ff6b00;
}

/* Currency symbol inside trigger */
.vc-curr-symbol {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ff6b00;
  line-height: 1;
  transition: color 0.2s ease;
}

.vc-dropdown-trigger[aria-expanded="true"] .vc-curr-symbol {
  color: #ff6b00;
}

/* Animated chevron arrow */
.vc-chevron {
  opacity: 0.5;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, stroke 0.2s ease;
  flex-shrink: 0;
  color: inherit;
}

.vc-dropdown-trigger[aria-expanded="true"] .vc-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* Dropdown panel */
.vc-dropdown-list {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 9999;
  min-width: 175px;
  background: rgba(12, 12, 18, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  padding: 6px;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.3),
    0 20px 50px -5px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);

  /* Hidden state */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  transition:
    opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s 0.22s,
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.vc-dropdown-list.vc-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s 0s,
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Individual option rows */
.vc-dropdown-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.vc-dropdown-option:hover {
  background: rgba(255, 107, 0, 0.1);
  color: #fff;
}

.vc-dropdown-option.vc-active {
  color: #ff6b00;
  font-weight: 700;
}

/* Currency-specific option parts */
.vc-opt-icon {
  font-size: 1rem;
  font-weight: 700;
  color: #ff6b00;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.vc-opt-label {
  flex: 1;
}

.vc-opt-code {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.vc-opt-check {
  color: #ff6b00;
  font-size: 0.9rem;
  display: none;
  flex-shrink: 0;
}

/* Thin divider between options */
.vc-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 4px 8px;
}

/* Language list: needs vertical scroll on small screens */
#headerLangList.vc-dropdown-list {
  min-width: 185px;
  max-height: 75vh;
  overflow-y: auto;
  /* Language options don't have icon columns — simpler row */
}

#headerLangList .vc-dropdown-option {
  font-size: 0.9rem;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 480px) {
  /* Shorten label: only show code on mobile (saves header width) */
  .vc-dropdown-trigger .current-lang-code,
  .vc-dropdown-trigger #currCodeDisplay {
    font-size: 0.78rem;
  }

  .vc-dropdown-list {
    right: -10px; /* nudge left so it doesn't clip off screen */
  }
}

/* --- HEADER LANGUAGE DROPDOWN (Globe Icon) --- */
.header-lang-dropdown-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-right: 15px; /* Spacing from burger menu */
}

.nav-plane-icon {
  font-size: 0.8em;
  margin-right: 6px;
  color: #ff6b00;
}


/* --- NO RESULTS MESSAGE --- */
.no-results-message {
  background: var(--card-glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  margin-top: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: none; /* Controlled by JS */
}

.no-results-message h3 {
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 10px;
}

.no-results-message p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.globe-icon-svg {
  height: 24px;
  stroke: var(--primary); /* Uses #ff6b00 */
  filter: drop-shadow(0 0 8px rgba(255, 107, 0, 0.4)); /* Nice orange glow */
  transition: all 0.3s ease;
}

.header-lang-btn:hover .globe-icon-svg {
  filter: drop-shadow(0 0 12px rgba(255, 107, 0, 0.6));
}

.header-lang-list {
  position: absolute;
  top: calc(100% + 12px);
  right: -10px; /* Align right but not too tight */
  width: 200px; /* Comfortable width */
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;

  box-shadow: 0 15px 40px -5px rgba(0, 0, 0, 0.6);
  z-index: 9999;
  height: auto !important; /* Force visibility of all items */
  max-height: 80vh; /* Safety scroll if screen is small */
  overflow-y: auto;

  /* Hidden State */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.98);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-lang-list.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.header-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: #fff !important; /* Force white text */
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  border-radius: 10px;
  flex-shrink: 0;
}

.header-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile Tweak: Ensure it doesn't get clipped */
@media (max-width: 480px) {
  .header-lang-list {
    width: 220px;
    right: -50px; /* Shift slightly left if needed on tiny screens */
    width: 220px;
  }

  /* Tighter spacing for mobile header controls */
  .header-lang-dropdown-wrapper {
    margin-right: 2px; /* Almost touching */
  }

  /* Angular "Squircle" Button for Mobile Banner */
  .banner-btn {
    border-radius: 12px; /* Angular / Modern approach */
  }
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Align left */
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

/* --- 3. MOBILE MENU (Floating Glass Island) --- */
/* --- 3. MOBILE MENU (Floating Glass Island) - NOW GLOBAL --- */
.menu-toggle {
  display: block; /* Always visible */
  background: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
  position: relative;
  z-index: 1001;
  flex-shrink: 0;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  position: absolute;
  left: 4px;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.menu-icon {
  top: 15px;
}
.menu-icon::before {
  content: "";
  top: -8px;
  left: 0;
}
.menu-icon::after {
  content: "";
  top: 8px;
  left: 0;
}

/* Hamburger Animation */
.menu-toggle.active .menu-icon {
  background-color: transparent;
}
.menu-toggle.active .menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}
/* --- MOBILE MENU (SLIDE-OUT DRAWER) --- */
/* Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 25000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Drawer Container - GLOBAL */
/* @media (max-width: 1024px) REMOVED - GLOBAL NOW */
/* Drawer Container - GLOBAL (Left Side) */
/* Drawer Container - GLOBAL (Right Side) */
/* Drawer Container - GLOBAL (Consolidated) */
.dropdown-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 320px;
  /* Use dvh (dynamic viewport height) — accounts for iOS Safari toolbar */
  height: 100dvh;
  /* Fallback for older browsers that don't support dvh */
  height: 100vh;
  height: 100dvh;
  background: rgba(10, 10, 10, 0.95); /* Dark Glass */
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 26000;

  transform: translateX(100%);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);

  display: flex;
  flex-direction: column;
  /* Add safe-area padding at bottom for iPhone notch/home indicator */
  padding: 65px 30px calc(20px + env(safe-area-inset-bottom, 20px));
  /* Allow scrolling if content is taller than visible area */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;

  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s 0.4s;
  visibility: hidden;
}

.dropdown-menu.active {
  transform: translateX(0);
  visibility: visible;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s 0s;
}

.dropdown-menu ul {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  width: 100%;
  list-style: none;
  gap: 0; /* Replaced gap with item padding and borders */
}

/* Desktop Menu Spacing (User Request) */
@media (min-width: 1024px) {
  .dropdown-menu ul {
    gap: 16px; /* Increased space for PC */
  }
}

/* GLOBAL SECTION SPACING */
section {
  margin-bottom: 60px; /* Reduced from potential defaults */
  position: relative;
}

/* MENU ITEM STYLES (Mobile Drawer) */
.dropdown-menu .menu-item {
  display: block; /* Block layout for full width click area */
  font-size: 1.05rem; /* Slightly larger for readability */
  font-weight: 400;
  color: var(--text-main);
  padding: 14px 0; /* Vertical padding for touch targets */
  text-align: left;
  transition: color 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Premium thin divider */
  opacity: 0.9;
}

.dropdown-menu li:last-child .menu-item {
  border-bottom: none; /* Hide border on last item */
}

.dropdown-menu .menu-item:hover {
  color: var(--primary);
  opacity: 1;
  transform: none; /* No movement */
}

/* DEFENSIVE RESET — prevents page-level <style> blocks from leaking into burger menu */
.dropdown-menu *:not(i):not(svg):not(span.fa):not([class*="fa-"]) {
  font-family: var(--font-main, 'Inter', sans-serif) !important;
}
.dropdown-menu li,
.dropdown-menu ul {
  font-size: 1rem !important;
  line-height: 1.5 !important;
  color: var(--text-main, #ffffff) !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  border: none !important;
}
.dropdown-menu a.menu-item {
  font-size: 1.1rem !important;
  color: var(--text-main, #ffffff) !important;
  display: flex !important;
  align-items: center !important;
  padding: 18px 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  text-decoration: none !important;
}
.dropdown-menu li:last-child a.menu-item {
  border-bottom: none !important;
}
.dropdown-menu i,
.dropdown-menu i::before {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome" !important;
}
.dropdown-menu h1,
.dropdown-menu h2,
.dropdown-menu h3 {
  font-size: inherit !important;
  color: inherit !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}


/* Password Toggle Style */
/* Password Toggle Style */
.input-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 15px; /* Slightly more space from right */
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  cursor: pointer;
  z-index: 100; /* Increased z-index dramatically */
  display: flex !important; /* Ensure it takes size */
  align-items: center;
  justify-content: center;
  width: 30px; /* Explicit hit target width */
  height: 30px; /* Explicit hit target height */
  transition: color 0.2s;
}

.password-toggle svg {
  pointer-events: none; /* Let all clicks pass to the span */
}

.password-toggle:hover {
  color: var(--primary);
}

/* Toggle States - CSS Driven */
.password-toggle .eye-icon-closed {
  display: none;
}

.password-toggle.active .eye-icon-open {
  display: none;
}

.password-toggle.active .eye-icon-closed {
  display: block; /* Show closed eye when active (text visible) */
}

/* Close Button (X) */
/* Close Button (X) - Redesigned */
.drawer-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px; /* Force square dimensions */
  height: 40px;
  flex-shrink: 0; /* Prevent squashing = Perfect Circle */

  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.5rem;
  line-height: 1;
  padding: 0; /* Clear padding to rely on flex centering */
  padding-bottom: 2px; /* Slight optical adjustment for the character */

  color: var(--text-muted);
  cursor: pointer;
  z-index: 10;
  transition:
    background 0.2s,
    color 0.2s; /* Color only, no movement */

  /* Fix Mobile Blinking */
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-main);
}

.drawer-close-btn:active {
  background: rgba(
    255,
    107,
    0,
    0.2
  ); /* Subtle orange tint on tap instead of scale */
  color: var(--primary);
}

/* Orphaned properties removed */

/* On Mobile, stack them better */
@media (max-width: 768px) {
  .controls-group {
    display: flex; /* Allow wrapping */
    flex-direction: column;
    align-items: stretch; /* Full width items */
    gap: 12px; /* Consistent gap */
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
  }

  /* Unified Mobile Control Style */
  .theme-toggle-btn,
  .lang-trigger,
  .currency-menu {
    width: 100%;
    height: 50px; /* Fixed height for uniformity */
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.2s ease;
  }

  /* Theme Toggle Specifics */
  .theme-toggle-btn {
    justify-content: center; /* Center the icon */
  }

  /* Language Trigger Specifics */
  .lang-dropdown-wrapper {
    width: 100%;
  }
  .lang-trigger {
    justify-content: space-between;
  }

  /* Currency Menu Specifics */
  .currency-menu {
    padding: 4px; /* Inner padding for buttons */
    justify-content: space-between;
    gap: 4px;
  }

  .currency-btn {
    flex: 1;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px; /* Inner radius */
    background: transparent; /* Transparent by default */
    font-weight: 600;
    border: none;
  }

  .currency-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.3);
  }
}

/* Desktop/Shared Styles (Reset for Desktop if needed, but these classes are mainly used in drawer now) */
.lang-menu,
/* .currency-menu removed from here to avoid conflicts */
.desktop-only-currency-unused {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 20px;
}

.lang-btn,
.currency-btn {
  background: rgba(255, 255, 255, 0.1); /* Make inactive buttons visible */
  color: var(--text-muted);
  padding: 6px 12px; /* Increased padding */
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn:hover,
.currency-btn:hover {
  color: var(--text-main);
}

.lang-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.3);
}

/* --- Currency Dropdown (New) --- */
.currency-dropdown-wrapper {
  position: relative;
}

.currency-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05); /* Subtle glass */
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 14px;
  border-radius: 100px;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 80px;
}

.currency-trigger:hover,
.currency-trigger.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

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

/* Same dropdown style as Language */
.currency-dropdown-content {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: rgba(15, 15, 15, 0.95); /* Deep dark background */
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px -5px rgba(0, 0, 0, 0.5);
  border-radius: 16px;
  padding: 8px;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.currency-dropdown-content.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.currency-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
  width: 100%;
  text-align: left;
}

.currency-option:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  transform: translateX(4px);
}

.currency-option .symbol {
  color: var(--primary);
  font-weight: 700;
  width: 20px;
}

/* --- Client Zone Button (Premium Orange) --- */
.client-zone-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: var(--btn-gradient); /* Orange Gradient */
  border: none;
  border-radius: 100px;
  color: white; /* Text is always white on orange */
  font-size: 0.9rem;
  font-weight: 700; /* Bolder text */
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 4px 15px var(--primary-glow);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.client-zone-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow); /* Stronger glow */
  filter: brightness(1.1); /* Slightly brighter on hover */
}

.client-zone-btn:active {
  transform: scale(0.98);
}

.client-zone-btn.logged-in {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.client-zone-btn.logged-in:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
}

.lang-separator {
  display: none; /* Hide separator for cleaner look */
}

/* --- GLOBAL: Client Zone in Menu (Mobile Premium) --- */
.menu-client-zone {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex !important; /* Ensure visibility */
  flex-direction: column;
  gap: 12px;
}

.client-zone-btn.full-width {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px; /* Larger touch target */
  font-size: 1.05rem;
  font-weight: 700;
  background: var(--btn-gradient);
  border-radius: 20px; /* Modern shape */
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 15px var(--primary-glow);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.client-zone-btn.full-width:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--primary-glow);
  filter: brightness(1.1);
}

.client-zone-btn.full-width.logged-in {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: none;
}

.client-zone-btn.full-width.logged-in:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
}

/* --- Footer Payment Badges --- */
.pay-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05); /* Glass background */
  border: 1px solid rgba(255, 255, 255, 0.15); /* Visible border */
  border-radius: 6px;
  color: #d0d0d0;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  cursor: default;
}

.pay-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateY(-1px);
}

.payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px; /* Spacing between badges */
  justify-content: center; /* Center them */
  margin-top: 10px;
}

/* --- GLOBAL: Footer Settings Bar --- */
.footer-settings-bar {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  padding: 16px 0;
  margin-top: 40px;
}

.settings-container {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-control-group {
  position: relative;
}

.footer-control-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.footer-control-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.25);
}

.footer-control-btn .arrow {
  font-size: 0.7rem;
  opacity: 0.7;
}

/* Footer Dropups (Open Upwards) */
.footer-dropdown {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px;
  min-width: 160px;
  visibility: hidden;
  opacity: 0;
  transition: all 0.2s;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.footer-dropdown.show {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.footer-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
  text-align: left;
}

/* Status Badge: Expired (Appended) */
.status-badge.expired {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-option:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

/* --- MOBILE OPTIMIZATIONS --- */
@media (max-width: 768px) {
  /* 1. Frameless Glass Header (Mobile) */
  .header {
    width: 100%;
    margin: 0;
    top: 0;
    left: 0;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--primary); /* Enforce Orange Strip on Mobile */
    background: rgba(
      5,
      5,
      5,
      0.85
    ); /* Slightly darker/denser for readability */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 20px;
    gap: 12px;
  }

  .site-name {
    font-size: 1rem;
  }

  .site-name img {
    height: 24px;
  }

  /* Hide Text on Mobile Checks (Only for Header Bar, NOT Menu) */
  .header .client-zone-btn .text,
  .currency-trigger .currency-code,
  .lang-trigger .current-lang-code {
    display: none;
  }

  /* Ensure Menu Client Zone Text is Visible */
  .menu-client-zone .client-zone-btn .text {
    display: inline-block !important;
  }

  .client-zone-btn {
    padding: 8px; /* Square button */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    justify-content: center;
  }

  .client-zone-btn .icon {
    font-size: 1.2rem;
    margin: 0;
  }

  .currency-trigger {
    min-width: auto;
    padding: 8px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
  }

  .currency-icon {
    font-size: 1.2rem;
  }

  /* Adjust Menu Toggle Position */
  .menu-toggle {
    margin-left: 0;
    padding: 2px;
  }

  /* 2. Footer Stacking */
  .footer-content {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .footer-column {
    align-items: center; /* Center align items in column if flex */
    min-width: 100%;
  }

  .footer-middle {
    padding: 20px;
    flex-direction: column;
    gap: 30px;
  }

  .newsletter-form {
    flex-direction: column;
    width: 100%;
  }

  .newsletter-btn {
    width: 100%;
    justify-content: center;
  }

  /* 3. Auth Page Optimization */
  .auth-container {
    padding: 20px 10px; /* Tighter padding */
    align-items: flex-start; /* Move to top on mobile */
    padding-top: 100px;
  }

  .auth-card {
    padding: 24px;
    width: 96%;
    max-width: 100%;
  }

  /* 4. Touch Targets */
  button,
  .nav-cta-btn,
  .dropdown-menu a,
  input {
    min-height: 44px; /* Ensure clickable */
  }

  /* Mobile Content Typography Fix */
  .content-container {
    padding: 80px 20px 60px; /* Reduce top padding */
    text-align: left;
  }

  .privacy-header h1 {
    font-size: 2rem; /* Smaller H1 */
  }

  .privacy-section h2 {
    font-size: 1.5rem; /* Smaller H2 */
    margin-top: 30px;
  }

  .privacy-section p {
    font-size: 1rem;
    line-height: 1.6;
  }
}

/* ... previous styles ... */

/* NEW: Header Button Styles (Desktop) */
.signup-btn-header {
  background: var(--btn-gradient) !important;
  color: white !important;
  border: none !important;
  font-weight: 700 !important;
  margin-left: 8px;
  padding: 8px 18px !important;
  display: inline-flex;
  align-items: center;
}

.signup-btn-header:hover {
  box-shadow: 0 4px 15px var(--primary-glow) !important;
  transform: translateY(-1px);
}

.login-btn-header {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: var(--text-muted) !important;
  padding: 8px 14px !important;
}

.login-btn-header:hover {
  color: var(--text-main) !important;
  border-color: var(--text-main) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  box-shadow: none !important;
}

/* --- MOBILE OPTIMIZATIONS (Max Width 768px) --- */
@media (max-width: 768px) {
  /* 1. Header Cleanup - Ultra Premium */
  /* 1. Header Cleanup - Ultra Premium */
  .header {
    box-sizing: border-box;
    padding: 8px 8px 8px 12px; /* Reduced right padding to push menu closer to edge */
    width: 100%; /* Force viewport width */
    max-width: 100%;
    right: 0;
    left: 0;
    margin: 0;
    top: 0;
    max-width: 100%;
    margin: 0;
    left: 0;
    top: 0;
    gap: 0;
    height: 64px; /* Fixed height for consistency */
    display: flex;
    align-items: center;
    /* Stronger Glass Effect */
    background: rgba(
      10,
      10,
      10,
      0.85
    ); /* Slightly darker for better contrast */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: none; /* Removed white border */
    border-bottom: 1px solid var(--primary); /* Enforce Orange Strip */
  }

  .site-brand {
    flex: 1; /* Center logo trick if needed, or just let it be */
    display: flex;
    align-items: center;
  }

  .site-name img {
    height: 28px;
    display: block;
  }

  /* Hide Text Site Name on Mobile for Cleaner Look if Logo has text */
  .site-name {
    font-size: 1.1rem;
  }

  /* Header Actions - Aligned Right */
  .header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 0; /* Remove margin */
  }

  /* Hide Desktop Sign Up on Mobile */
  .signup-btn-header {
    display: none !important;
  }

  /* Premium Mobile Login Icon */
  .login-btn-header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Circle */
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    padding: 0;
    transition: all 0.2s;
  }

  .login-btn-header:active {
    transform: scale(0.95);
    background: rgba(255, 107, 0, 0.1);
  }

  .login-btn-header .long-text {
    display: none;
  }

  .login-btn-header .icon {
    font-size: 1.2rem; /* Crisp size */
    color: var(--text-main);
    margin: 0;
  }

  /* Refined Hamburger Menu */
  .menu-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    flex-shrink: 0;
  }

  .menu-icon {
    top: auto; /* Reset positioning for flex center */
    position: relative;
  }
  .menu-icon,
  .menu-icon::before,
  .menu-icon::after {
    width: 22px; /* Sleeker lines */
    height: 2px;
    background: var(--text-main);
  }
  .menu-icon::before {
    top: -7px;
  }
  .menu-icon::after {
    top: 7px;
  }

  /* 2. Content Alignment (Match Yesim/Reference) */
  .content-container {
    padding: 90px 20px 60px;
    text-align: left; /* Left align everything */
    width: 100%;
  }

  .privacy-header {
    text-align: left;
    margin-bottom: 30px;
  }

  .privacy-header h1 {
    font-size: 1.8rem; /* Proper scaling */
    line-height: 1.2;
  }

  .privacy-section h2 {
    font-size: 1.4rem;
    margin-bottom: 25px;
  }

  .tax-note {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    display: block;
    margin-top: 4px;
    font-weight: 400;
  }

  .benefit-list li {
    margin-bottom: 12px;
  }

  .email-highlight {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
  }

  .email-highlight:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--primary-glow);
  }

  .privacy-section p,
  .privacy-section li {
    font-size: 0.95rem;
    color: #b0b0b0; /* Softer text */
    margin-bottom: 16px;
  }

  /* --- 3. Card Padding Optimizations (Maximize Width) --- */
  .glass-card,
  .country-card,
  .tarifa-card,
  .auth-card,
  .modal-content,
  .step-card,
  .partner-card,
  .feature-card {
    padding: 24px 20px; /* Balanced Breathing Room */
    width: 100%;
    border-radius: 20px; /* Slightly smoother corners */
  }

  /* Specific tweaks for cards that need more breathing room vertically */
  .tarifa-card {
    padding: 24px 14px;
  }

  .modal-content {
    padding: 24px 16px;
    max-height: 90vh;
    width: 95%; /* Slightly wider modal */
  }
}

/* Download App / Signup Button in Dropdown */
/* MENU LIST SPACING */
.dropdown-menu ul {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  width: 100%;
  list-style: none;
  gap: 8px; /* Tighter gap for mobile */
}

/* Download App / Signup Button in Dropdown */
.dropdown-menu .mobile-only-signup,
.dropdown-menu .nav-cta-btn {
  display: flex !important; /* Force display on mobile menu */
  width: 100%;
  justify-content: center;
  margin-top: 10px; /* Separate from list */
  padding: 10px !important;
}

.dropdown-menu .mobile-only-signup a,
.dropdown-menu .nav-cta-btn {
  background: var(--btn-gradient) !important;
  color: white !important;
  border-radius: var(--radius-pill);
  text-align: center;
  font-weight: 700;
  border: none;
  box-shadow: 0 4px 15px var(--primary-glow);
  font-size: 1rem;
  opacity: 1;
}

.dropdown-menu .nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

/* Eco-Friendly Text Highlight */
.text-eco-green {
  color: #66bb6a !important; /* Beautiful distinct green */
  font-weight: 600;
  transition: all 0.3s ease;
}

.text-eco-green:hover {
  color: #81c784 !important;
  text-shadow: 0 0 10px rgba(102, 187, 106, 0.4);
}

/* --- PREMIUM QUANTUM MODAL (Payment Delay) --- */
.modal-quantum {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.modal-quantum.active {
  opacity: 1;
  visibility: visible;
}

.modal-quantum-card {
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid rgba(255, 215, 0, 0.3); /* Subtle Gold Border */
  border-radius: 24px;
  padding: 40px;
  width: 90%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bounce effect */
}

.modal-quantum.active .modal-quantum-card {
  transform: scale(1) translateY(0);
}

/* Animated Background Glow */
.modal-quantum-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 215, 0, 0.08) 0%,
    transparent 60%
  );
  animation: rotateGlow 10s linear infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes rotateGlow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Icon Animation */
.quantum-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantum-icon-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(255, 215, 0, 0.2) 0%,
    transparent 70%
  );
  filter: blur(10px);
  animation: pulseGold 2s infinite ease-in-out;
}

.quantum-icon {
  font-size: 3rem;
  background: linear-gradient(135deg, #ffd700 0%, #fdb931 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

@keyframes pulseGold {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

.modal-quantum-title {
  font-family: "Inter", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.modal-quantum-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

.btn-quantum {
  background: linear-gradient(135deg, #ffd700 0%, #d4af37 100%);
  color: #000;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  padding: 16px 32px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-quantum:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
  background: linear-gradient(135deg, #ffed4a 0%, #e6c200 100%);
}

.hero-glass-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  padding: 12px 24px; /* Spacious internal padding */
  border-radius: 20px; /* Modern rounded corners */
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05); /* Subtle inner ring */
  max-width: 90%;
  width: auto;
}

.hero-glass-card:hover {
  transform: translateY(-5px) scale(1.02);
  background: var(--card-glass-hover);
  border-color: var(--primary); /* Glow on hover */
  box-shadow: 0 15px 40px rgba(255, 107, 0, 0.2);
}

.card-icon-3d {
  font-size: 2rem;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
  animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.card-content {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.card-title {
  color: white;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.card-subtitle {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.card-action {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--btn-gradient);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  margin-left: 12px;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .card-action {
    white-space: normal;
    text-align: center;
    height: auto;
    min-height: 40px;
  }
}

.action-arrow {
  transition: transform 0.3s ease;
}

.hero-glass-card:hover .action-arrow {
  transform: translateX(4px);
}

/* Mobile Banner Adjustments */
@media (max-width: 600px) {
  .hero-glass-card {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    gap: 12px;
    width: 100%;
  }

  .hero-container {
    padding-top: 100px; /* Reduced from 140px/160px */
    padding-bottom: 40px;
  }

  .card-content {
    align-items: center;
    text-align: center;
  }

  .card-action {
    width: 100%;
    justify-content: center;
    margin-left: 0;
    margin-top: 8px;
  }
}

/* --- 5. SEARCH CAPSULE (Premium Glass) --- */
/* --- Search Bar (Crystal Clear Fix) --- */
.search-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  /* Crystal Clear Glass */
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 100px;
  /* Brighter, thicker border */
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  /* Rigid Gap to prevent overlap */
  gap: 16px;
  padding: 8px 8px 8px 24px; /* Left padding for icon space */
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
}

.search-wrapper:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 15px 45px -10px rgba(0, 0, 0, 0.4);
}

.search-wrapper:focus-within {
  background: rgba(30, 30, 30, 0.95);
  border-color: var(--primary);
  box-shadow:
    0 0 0 4px rgba(255, 107, 0, 0.2),
    0 20px 60px -10px rgba(0, 0, 0, 0.6);
  transform: scale(1.02);
}

.search-icon {
  /* Removed padding-left to rely on flex gap */
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.3rem;
  transition: color 0.3s;
  min-width: 24px; /* Prevent crushing */
}

.search-wrapper:focus-within .search-icon {
  color: var(--primary); /* Icon lights up */
}

.search-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 1.15rem;
  padding: 12px 0; /* Vertical padding only */
  font-weight: 500;
  min-width: 0;
  letter-spacing: -0.01em;
  height: auto;
}

.search-wrapper input::placeholder {
  color: rgba(255, 255, 255, 0.6); /* Brighter placeholder */
  font-weight: 400;
  transition: opacity 0.3s;
}

.search-wrapper:focus-within input::placeholder {
  opacity: 0.5;
}

/* Integrated Search Button */
.search-btn {
  background: var(--btn-gradient);
  color: white;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px var(--primary-glow);
  margin-right: 4px; /* Spacing from edge */
}

.search-btn:hover {
  transform: scale(1.1) rotate(-10deg);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.search-btn:active {
  transform: scale(0.95);
}

.search-wrapper:focus-within .search-btn {
  transform: scale(1.05); /* Button pops slightly on focus */
}

/* --- 6. SECTIONS & GRIDS --- */
section {
  margin-bottom: 140px;
}

@media (max-width: 600px) {
  section {
    margin-bottom: 60px; /* Compress vertical sections */
  }
}

h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 60px;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

/* Countries Grid - Responsive & Centered */
/* --- 6. DESTINATIONS SECTION (Overhaul) --- */
/* Countries Grid - Responsive & Centered */
/* --- 6. DESTINATIONS SECTION (Overhaul) --- */
.destinations-section {
  padding-top: 20px; /* Reduced from 60px for tighter layout */
}

.section-header {
  text-align: center;
  margin-bottom: 40px; /* Reduced from 50px */
  animation: fadeInUp 0.8s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center; /* Force center alignment for all children (badge) */
}

.section-badge {
  display: inline-block;
  background: rgba(255, 107, 0, 0.1);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 107, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-header h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: #fff;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, #aaa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text; /* Standard property */
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto; /* Center subtitle */
}

/* DASHBOARD MOBILE OPTIMIZATION */
@media (max-width: 768px) {
  /* Fix Dashboard Padding / Layout */
  .dashboard-main {
    padding: 100px 20px 40px; /* Top padding clears fixed Header */
    width: 100%;
    margin: 0; /* Reset all margins */
    box-sizing: border-box; /* PREVENT PADDING FROM ADDING TO WIDTH */
    overflow-x: hidden; /* Prevent horizontal scroll */
    max-width: 100%;
  }

  .dashboard-wrapper {
    flex-direction: column;
  }

  .dashboard-sidebar {
    display: none; /* Hide sidebar (Drawer is used) */
  }

  /* Center All Dashboard Headers on Mobile */
  .dashboard-section .section-header {
    text-align: center;
    align-items: center;
    margin-bottom: 30px;
  }

  .dashboard-section .section-header h1 {
    font-size: 2rem; /* Scale down H1 */
    justify-content: center; /* Flex center if needed */
    display: flex;
    flex-wrap: wrap; /* allow name to wrap */
    gap: 8px;
  }

  .dashboard-section .section-header .subtitle {
    font-size: 1rem;
    margin-top: 5px;
  }

  /* Optimize Cards for Mobile */
  .dashboard-grid-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
  }

  /* Ensure Full Width Cards */
  .dashboard-section .glass-card {
    width: 100%;
    padding: 24px 20px;
    margin: 0;
    box-sizing: border-box; /* Prevent overflow */
  }

  /* Forms Control */
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* Prevent zoom */
  }

  /* Tables Scroll */
  .dashboard-section table {
    font-size: 0.85rem;
  }

  /* My Plans Mobile Fixes */
  .plans-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    padding: 0; /* Remove inherited padding */
    margin: 0;
  }

  .esim-item {
    flex-direction: column; /* Stack vertically to center */
    padding: 24px 20px;
    gap: 16px;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.03); /* Slightly distinct card bg */
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  /* Fix Modal Centering on Mobile */
  .modal-content {
    position: fixed !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    max-width: 400px;
    max-height: 85vh;
    margin: 0;
    border-radius: 20px;
  }

  .esim-details {
    flex: 1;
    width: 100%;
    min-width: 0;
    text-align: center; /* Force Center */
    align-items: center; /* Stack center */
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: visible; /* Allow content to breathe */
  }

  /* Title Centered & Wrapped */
  .esim-details h3 {
    font-size: 1.1rem; /* Slightly larger title */
    white-space: normal !important;
    line-height: 1.4;
    margin-bottom: 10px;
    width: 100%;
    text-align: center;
  }

  /* Stack Meta Data (Badge + Date) Centered */
  .esim-details .esim-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center; /* Center items */
    width: 100%;
  }

  /* Reset inline margin from PHP */
  .esim-details .esim-meta span[style*="margin-left"] {
    margin-left: 0;
    font-size: 0.85rem;
    display: block;
    opacity: 0.7;
  }

  .esim-icon {
    flex-shrink: 0;
    width: 56px; /* Larger icon for card look */
    height: 56px;
    margin: 0 auto; /* Center icon */
  }

  .esim-arrow {
    display: none !important; /* Hide arrow in centered card mode */
  }
}

/* --- Unified Destinations Controls (Glass Hub) --- */
.destinations-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px; /* Reduced gap */
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  padding: 24px; /* Slightly tighter padding */
  max-width: 700px; /* Slightly narrower for focus */
  margin: 0 auto 40px; /* Reduced from 60px */
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

/* Adjust Search Wrapper inside Controls */
.destinations-controls .search-wrapper {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1); /* Inner depth */
  width: 100%;
  max-width: 500px; /* constraint width */
  height: 56px; /* Taller touch target */
}

.destinations-controls .search-wrapper:hover,
.destinations-controls .search-wrapper:focus-within {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
}

/* Divider (Hidden in this new layout) */
.controls-divider {
  display: none;
}

/* Filter Navigation */
.destinations-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  background: none;
  border: none;
  backdrop-filter: none;
  padding: 0;
  width: 100%;
}

/* Mobile: Horizontal Scroll (Instagram Stories Style) */
@media (max-width: 600px) {
  .destinations-filter {
    flex-wrap: nowrap; /* Force single line */
    overflow-x: auto; /* Enable scroll */
    justify-content: flex-start; /* Align left */
    padding-bottom: 10px; /* Space for scrollbar (hidden) */
    -webkit-overflow-scrolling: touch; /* Smooth iOS scroll */
    scroll-snap-type: x mandatory; /* Snap effect */

    /* Scroll Indicator: Fade-out text on the right */
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);

    /* Ensure padding for last item visibility */
    padding-right: 20px;
  }
}

/* --- Redesigned Filter Chips (Copied from Tarifas) --- */
.filter-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500; /* Regular weight */
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-chip:hover {
  background: rgba(255, 107, 0, 0.1); /* Subtle Orange tint */
  color: #ff6b00; /* Orange Text */
  border-color: #ff6b00; /* Orange Border */
  transform: translateY(-2px);
}

.filter-chip.active {
  background: #ff6b00; /* Orange background */
  color: #fff;
  border-color: #ff6b00;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(255, 107, 0, 0.4); /* Orange glow */
}

/* Special Highlight for "Popular" when inactive */
.filter-chip[data-filter="all"]:not(.active) {
  border-color: rgba(255, 107, 0, 0.4);
  color: #ff6b00;
}

/* Desktop: Horizontal Layout - REMOVING ROW DIRECTION TO KEEP STACKED AS REQUESTED */
@media (min-width: 768px) {
  .destinations-controls {
    /* flex-direction: row;  <-- REMOVED to keep stacked (Search Top, filters bottom) */
    padding: 30px 40px; /* More roomy on desktop */
    border-radius: 40px;
    max-width: 800px;
  }

  .destinations-controls .search-wrapper {
    /* width: 300px; <-- REMOVED fixed width, let it fill container or max-width */
    margin: 0;
  }

  .controls-divider {
    display: none;
  }

  .destinations-filter {
    gap: 12px;
  }

  .filter-chip {
    padding: 10px 24px;
    font-size: 1rem;
  }
}

/* Mobile Tweaks */
@media (max-width: 600px) {
  .destinations-controls {
    padding: 20px;
    border-radius: 24px;
    gap: 20px;
    width: 95%; /* Make it fill mobile width better */
  }

  .destinations-controls .search-wrapper {
    max-width: 100%; /* Full width on mobile */
  }

  .filter-chip {
    padding: 8px 20px;
    font-size: 0.9rem;
    flex-shrink: 0; /* Prevent shrinking */
    flex-grow: 0; /* Don't stretch */
    scroll-snap-align: start; /* Snap to start */
  }
}
.destinations-filter::-webkit-scrollbar {
  display: none;
}

/* Glass Cards Grid */

/* Glass Cards Grid */
.countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.country-card.glass-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 24px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center horizontally */
  text-align: center; /* Center text */
  gap: 20px;
  min-height: 200px;
  will-change: transform;
}

.country-card.glass-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.card-flag-large {
  font-size: 3.5rem;
  line-height: 1;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
  transition: transform 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.country-card.glass-card:hover .card-flag-large {
  transform: scale(1.1) rotate(-5deg);
}

/* Premium SVG Flag Styling (Squircle) */
.fi {
  border-radius: 12px !important; /* Smooth iOS-like Squircle */
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.25); /* Outer orange tinted shadow */
  background-size: cover !important;
  background-position: center !important;
  /* Use aspect-ratio to perfectly maintain 4:3 shapes */
  aspect-ratio: 4/3;
  width: 1.25em !important;
  height: auto !important; /* Let aspect ratio determine height */
  vertical-align: middle;
  border: 2px solid rgba(255, 107, 0, 0.9) !important; /* Thicker, defined orange border */
  box-sizing: border-box; /* Ensure border is inside the width */
}

/* Fix for Regional FontAwesome icons masquerading as Flags */
.fi.font-awesome-flag {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background-color: transparent !important; /* Will let the card gradient show if no bg is set, or we can use a pure dark base */
  background: rgba(255, 255, 255, 0.05) !important; /* Subtle inner fill */
}

.fi.font-awesome-flag i {
  display: block;
  font-size: 20px; /* Optimal size for 45x33 boxes */
}

/* Match the large card layout */
.card-flag-large .fi {
  width: 65px !important; /* Slightly larger base width */
  border-radius: 14px !important;
}

.card-flag-large .fi.font-awesome-flag i {
  font-size: 30px; /* Optimal size for 65x48 boxes */
}

/* For small inline flags (like in the modal or hero) */
.modal-flag .fi,
.flag-emoji .fi {
  width: 45px !important;
  border-radius: 8px !important;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-header {
  display: flex;
  justify-content: center; /* Center title */
  align-items: center;
  gap: 12px;
  width: 100%;
}

.card-header h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  text-align: center; /* Force center text */
  width: 100%; /* Ensure full width for text-align to work if block */
  flex-grow: 1; /* Grow to fill space */
}

.signal-badge {
  font-size: 0.7rem;
  background: rgba(52, 199, 89, 0.15); /* Green tint */
  color: #32d74b;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 700;
  text-transform: uppercase;
}

.card-price {
  display: flex;
  align-items: baseline;
  justify-content: center; /* Center price */
  gap: 6px;
}

.price-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.price-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.card-action-row {
  display: flex;
  justify-content: center; /* Center content */
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  gap: 12px;
}

.data-preview {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.action-btn-mini {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.country-card.glass-card:hover .action-btn-mini {
  background: var(--btn-gradient);
  transform: translateX(5px);
}

/* Coming Soon State */
.country-card.glass-card.coming-soon {
  opacity: 0.7;
  pointer-events: none; /* Disable clicking */
  filter: grayscale(1);
  background: rgba(255, 255, 255, 0.02);
}

.country-card.glass-card.coming-soon .signal-badge.pending {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

.coming-soon-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
  font-style: italic;
}

.card-flag-large.grayscale {
  filter: grayscale(1) opacity(0.5);
}

.filter-btn.active {
  background: var(--btn-gradient);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.countries-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(280px, 1fr)
  ); /* Slightly larger cards */
  gap: 24px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.partners-wrapper {
  display: flex;
  justify-content: center;
  padding: 0 20px;
  margin-bottom: 60px;
}

.partner-card {
  background: linear-gradient(145deg, var(--bg-card), var(--bg-card-hover));
  border: 1px solid var(--border-color);
  padding: 60px 40px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  text-align: center;
  max-width: 600px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.partner-card h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  background: var(--text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.partner-card p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* Secondary Button (View All) */
.center-btn {
  text-align: center;
  margin-top: 50px;
}

.secondary-btn {
  display: inline-flex;
  padding: 14px 36px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  color: var(--text-main);
  font-weight: 600;
  background: transparent;
  transition: 0.3s;
}

.secondary-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-main);
  transform: translateY(-2px);
}

/* --- 7. HOW IT WORKS (Steps) --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-unit);
}

.step-card {
  background: var(--bg-card);
  padding: 40px 32px;
  border-radius: var(--radius-card);
  text-align: center;
  border: 1px solid var(--border-color);
  transition: 0.4s;
  position: relative;
}

.step-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  background: linear-gradient(
    180deg,
    var(--bg-card) 0%,
    var(--bg-card-hover) 100%
  );
}

.step-number {
  width: 64px;
  height: 64px;
  background: var(--btn-gradient);
  color: white;
  font-weight: 800;
  font-size: 1.6rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  box-shadow: 0 10px 25px var(--primary-glow);
  position: relative;
  z-index: 1;
}

/* Step Connector Line (Optional Polish) */
.step-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--text-main);
  font-weight: 700;
}
.step-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* --- 8. APP BANNER (Premium Glass) --- */
.app-banner {
  background: linear-gradient(145deg, #0f0f0f 0%, #050505 100%);
  border-radius: 40px;
  padding: 100px 24px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.5);
  margin-bottom: 80px;
}

/* Abstract decorations */
.app-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 107, 0, 0.15) 0%,
    transparent 60%
  );
  pointer-events: none;
  filter: blur(60px);
}

.app-banner::after {
  content: "";
  position: absolute;
  bottom: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.1) 0%,
    transparent 60%
  );
  pointer-events: none;
  filter: blur(60px);
}

.app-content {
  position: relative;
  z-index: 2;
}

.app-banner h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 24px;
  font-weight: 800;
  background: linear-gradient(180deg, #fff 20%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.app-banner p {
  max-width: 600px;
  margin: 0 auto 48px;
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.6;
}

.app-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.store-btn {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  padding: 16px 36px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  font-size: 1rem;
  backdrop-filter: blur(12px);
}

.store-btn:hover {
  background: white;
  color: black;
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.1);
  border-color: white;
}

.store-icon {
  font-size: 1.3rem;
}

/* --- 9. AUTHENTICATION PAGES (Redesign) --- */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 107, 0, 0.15),
      transparent 40%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(147, 51, 234, 0.15),
      transparent 40%
    ),
    var(--bg-dark);
  position: relative;
  overflow: hidden;
}

/* Floating Orbs for extra depth */
.auth-container::before,
.auth-container::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.4;
  animation: floatOrb 10s infinite alternate ease-in-out;
  will-change: transform;
}
.auth-container::before {
  background: var(--primary-color);
  top: -100px;
  right: -100px;
}
.auth-container::after {
  background: #9333ea; /* Purple accent */
  bottom: -100px;
  left: -100px;
  animation-delay: -5s;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(30px, 50px);
  }
}

.auth-card {
  width: 100%;
  max-width: 440px; /* Slightly wider for comfort */
  background: rgba(20, 20, 20, 0.6); /* Darker glass */
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.08); /* Subtle border */
  border-radius: 24px; /* Softer corners */
  padding: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 10;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.auth-card h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  text-align: center;
  background: linear-gradient(135deg, #fff 0%, #ccc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.auth-card .subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-input-group {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-input-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: 4px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper .icon {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.3s;
}

.auth-input-group input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 16px 14px 48px; /* Space for icon */
  border-radius: 14px;
  color: var(--text-main);
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

.auth-input-group input:focus {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1);
}

.auth-input-group input:focus + .icon {
  color: var(--primary-color);
}

.auth-input-group input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.auth-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px 0;
  position: relative;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
}

.auth-divider span {
  padding: 0 12px;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.google-btn {
  width: 100%;
  background: white;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #ddd; /* Fallback */
  border: 1px solid rgba(255, 255, 255, 0.1); /* Glass border if supported */
  padding: 14px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.google-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  background: #f8f9fa;
}

.auth-footer {
  margin-top: 32px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
}

.auth-footer a:hover {
  text-decoration: underline;
}
.auth-btn {
  width: 100%;
  max-width: 400px; /* Prevent button from being too wide on desktop */
  margin-left: auto;
  margin-right: auto;
  display: block; /* Ensure centering works */
  background: var(--btn-gradient);
  color: white;
  padding: 16px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 12px;
  transition: 0.3s;
  font-size: 1rem;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.auth-footer {
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--primary);
  font-weight: 600;
}

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

.back-link {
  display: inline-block;
  margin-top: 32px;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: 0.2s;
}

.back-link:hover {
  color: var(--text-main);
}

.error-msg {
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.2);
  color: #ff4444;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 0.95rem;
  text-align: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(255, 68, 68, 0.1);
}

/* --- 10. UTILITIES & ANIMATIONS --- */
.reveal {
  opacity: 1; /* Was 0 */
  transform: none; /* Was translateY(40px) */
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* --- NEWS GRID --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-unit);
  padding: 0 var(--space-unit);
  margin-bottom: 60px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* --- RATES FILTER --- */
.rates-filter-container {
  max-width: 800px;
  margin: 0 auto 60px;
  text-align: center;
}

.rate-search-input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.1rem;
  padding: 12px 16px;
  outline: none;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.filter-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  backdrop-filter: blur(4px);
}

.filter-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: var(--text-muted);
}

.filter-chip.active {
  background: var(--text-main); /* White/Black depending on theme */
  color: var(--bg-body); /* Inverted text */
  border-color: var(--text-main);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

/* --- RATES (TARIFAS) POLISH --- */
/* Country Card Design */
/* Country Card Design (Premium Glass) */
.country-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: var(--card-glass);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
}

.country-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.country-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
}

.country-card:hover::before {
  opacity: 1;
}

/* Premium Variation (Default for Top Cards) */
.country-card.premium {
  background: linear-gradient(
    145deg,
    rgba(25, 25, 25, 0.7),
    rgba(15, 15, 15, 0.9)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.country-card.premium::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--btn-gradient);
  opacity: 0.8;
}

.country-card.premium:hover {
  border-color: var(--primary);
  box-shadow: 0 20px 50px -10px rgba(255, 107, 0, 0.15);
}

/* Coming Soon Variation */
.country-card.coming-soon-card {
  border: 1px dashed rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  opacity: 0.7;
  cursor: default;
}

.country-card.coming-soon-card:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.2);
  opacity: 1;
}

.flag {
  font-size: 4rem;
  margin-bottom: 20px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25));
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.country-card:hover .flag {
  transform: scale(1.15) rotate(5deg);
}

.country-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.price-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: all 0.3s;
}

.country-card:hover .price-tag {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

.price-tag strong {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.05rem;
}

.arrow-icon {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--primary);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-size: 1.2rem;
}

.country-card:hover .arrow-icon {
  opacity: 1;
  transform: translateX(0);
}

.tarifa-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 40px 32px;
  text-align: center;
  transition: 0.4s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tarifa-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
  border-color: var(--primary);
}

.tarifa-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: inline-block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.tarifa-features {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  text-align: left;
  flex-grow: 1;
}

.tarifa-features li {
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tarifa-features li::before {
  content: "✓";
  color: var(--primary);
  font-weight: bold;
}

/* Header Fixed Logic optimized - CONSOLIDATED ABOVE */

/* --- PLAN SELECTION MODAL (Premium Glass) --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85); /* Darker backdrop */
  backdrop-filter: blur(10px);
  z-index: 30000; /* SUPER HIGH */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--modal-bg);
  border: 1px solid var(--modal-border);
  width: 90%;
  max-width: 650px;
  border-radius: 32px;
  padding: 48px;
  position: relative;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.close-modal {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  border: none;
}

.close-modal:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.modal-header {
  text-align: center;
  margin-bottom: 40px;
}

.modal-flag {
  font-size: 5rem;
  margin-bottom: 16px;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

.modal-header h2 {
  margin-bottom: 8px;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.modal-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.plans-grid {
  display: block; /* Changed from grid to block to handle groups */
  min-height: 200px;
}

/* Plan Type Toggle */
.plan-type-selector {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.plan-type-btn {
  padding: 10px 24px;
  border-radius: 40px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.plan-type-btn.active {
  background: var(--text-main);
  color: var(--bg-body);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

/* Plan Group Animation */
/* Plan Group Animation */
.plans-group {
  display: none;
  grid-template-columns: 1fr; /* Mobile First: 1 column */
  gap: 16px;
  animation: fadeIn 0.4s ease-out;
}

.plans-group.active {
  display: grid;
}

@media (min-width: 480px) {
  .plans-group {
    grid-template-columns: repeat(2, 1fr); /* Tablet: 2 columns */
  }
}

@media (min-width: 768px) {
  .plans-group {
    grid-template-columns: repeat(3, 1fr); /* Desktop: 3 columns */
  }
}

/* Premium Plan Card */
/* Premium Plan Card */
.plan-option {
  background: var(--plan-bg);
  border: 1px solid var(--plan-border);
  border-radius: 24px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 180px;
  backdrop-filter: blur(10px); /* Glass effect */
  opacity: 0;
  animation: slideUpFade 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover State */
.plan-option:hover {
  background: var(--plan-hover-bg);
  transform: translateY(-8px);
  border-color: var(--primary); /* Glow border on hover */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3); /* Deeper shadow */
}

/* Card Inner Glow */
.plan-option::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: 0.3s;
  pointer-events: none;
}
.plan-option:hover::after {
  opacity: 1;
}

.plan-option.selected {
  border-color: var(--primary);
  background: rgba(255, 107, 0, 0.1);
  box-shadow:
    0 0 0 2px var(--primary),
    0 12px 30px rgba(255, 107, 0, 0.25);
  transform: translateY(-6px);
}

/* Shine effect on selected */
.plan-option.selected::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 107, 0, 0.2) 0%,
    transparent 70%
  );
  z-index: 0;
  pointer-events: none;
}

.plan-content {
  position: relative;
  z-index: 1;
}

.popular-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  left: auto; /* Reset left */
  transform: none;
  background: #10b981; /* Green for popular/value */
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
  z-index: 2;
}

.best-value-badge {
  background: var(--primary);
  box-shadow: 0 4px 10px rgba(255, 107, 0, 0.4);
}

.plan-data {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.plan-data small {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.plan-duration {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.plan-price {
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 700;
}

.modal-terms {
  background: rgba(255, 255, 255, 0.03);
  padding: 24px;
  border-radius: 16px;
  margin-bottom: 32px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 600px) {
  .modal-terms {
    padding: 20px 24px; /* Force side padding */
    margin-left: 5px; /* Ensure visual separation from screen edge */
    margin-right: 5px;
  }
}

.modal-terms h3 {
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-terms ul {
  padding-left: 20px;
  margin: 0;
}

.modal-terms li {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 8px;
  line-height: 1.5;
}

.buy-btn {
  width: 100%;
  background: var(--btn-gradient);
  color: white;
  padding: 20px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 1.2rem;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 10px 30px var(--primary-glow);
  border: none;
  letter-spacing: 0.02em;
}

.buy-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 50px var(--primary-glow);
}
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  height: 100%;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: var(--primary);
}

.news-image {
  width: 100%;
  height: 200px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: white;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  background-size: cover;
  background-position: center;
}

.news-content {
  padding: 22px 24px 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-date {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
}

.news-content h3 {
  font-size: 1.15rem;
  min-height: 3.2em;
  margin-bottom: 12px;
  color: var(--text-main);
  line-height: 1.3;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  margin-top: auto;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.read-more::after {
  content: "→";
  transition: transform 0.2s;
}

.news-card:hover .read-more::after {
  transform: translateX(4px);
}

.footer-bottom a {
  color: var(--text-muted);
  text-decoration: none;
}
.footer-bottom a:hover {
  color: var(--primary);
}

/* --- 11. COOKIE NOTICE --- */
.cookie-notice {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 500px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px;
  border-radius: 24px;
  z-index: 2000;
  display: none;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  flex-direction: column;
  gap: 24px;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-notice.visible {
  display: flex;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.cookie-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
}

.cookie-icon {
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.cookie-text-wrapper p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.cookie-text-wrapper a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  width: 100%;
}

.cookie-notice button {
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.2s;
}

#acceptCookies {
  background: var(--text-main);
  color: var(--bg-body);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}
#acceptCookies:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

#declineCookies {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}
#declineCookies:hover {
  border-color: var(--text-main);
  color: var(--text-main);
}

/* --- 12. RESPONSIVE TWEAKS --- */
@media (max-width: 768px) {
  .header {
    width: 100%;
    padding: 10px 16px;
    left: 0;
    margin: 0;
  }
  .hero-container h1 {
    font-size: 2.5rem;
  }
  .hero-container p {
    font-size: 1rem;
  }

  /* Search Bar Mobile */
  .search-wrapper {
    padding: 8px;
    border-radius: 24px;
  }
  .search-wrapper input {
    font-size: 1rem;
    padding: 12px;
  }

  /* Grid Mobile - 2 Columns for Countries */
  .countries-grid {
    grid-template-columns: repeat(2, 1fr); /* Force 2 columns */
    gap: 12px;
  }

  .country-card {
    padding: 16px;
    min-height: 140px;
  }

  .flag {
    font-size: 2.5rem;
    margin-bottom: 8px;
  }
  .country-info h3 {
    font-size: 1rem;
  }
  .price-tag {
    font-size: 0.8rem;
  }
  .arrow-icon {
    display: none;
  } /* Hide arrow on mobile to save space */

  /* Modal Mobile - Bottom Sheet */
  .modal-content {
    width: 100%;
    max-width: 100%;
    border-radius: 24px 24px 0 0;
    position: fixed;
    bottom: 0;
    top: auto;
    left: 0; /* Ensure left alignment */
    transform: translateY(100%);
    padding: 24px;
    max-height: 85vh;
    margin: 0; /* Remove auto margins */
  }

  /* Force visibility when active with high specificity */
  .modal-overlay.active .modal-content {
    transform: translateY(0);
  }

  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Drawer Container & Overlay */
  /* Conflicting dropdown styles removed - using global definition */

  /* Conflicting styles removed */
  /* Orphaned block removed */

  .drawer-close-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: rotate(90deg);
  }

  /* Fix Header Layout for Mobile */
  header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 70px; /* Enforce height */
  }

  .nav-right {
    gap: 12px; /* Reduce gap on mobile */
  }

  /* Phone Mockup Mobile Fix */
  .iphone-bezel-top {
    width: 90%; /* Ensure it fits */
    margin: 40px auto; /* Center it */
    transform: none; /* No rotation on mobile for simplicity */
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
  }

  .lock-time {
    font-size: 3.5rem; /* Scale down time */
  }

  .dynamic-island {
    width: 130px; /* Scale down island */
  }

  .app-banner {
    padding: 60px 20px;
    border-radius: 24px;
    margin: 0 10px; /* Slight side margin */
  }
  .app-banner h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .countries-grid {
    grid-template-columns: 1fr;
  }
  .main-wrapper {
    padding-top: 64px; /* Reduced from 100 */
    width: 92%;
    padding-bottom: 40px;
  }
  .hero-container {
    margin-top: 0; /* Remove excessive top margin */
    margin-bottom: 40px;
    padding-top: 20px;
  }
  .hero-container h1 {
    font-size: 2rem;
  }
  .country-card {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  .arrow-icon {
    margin: 10px auto 0;
  }
  .footer-content {
    gap: 40px;
  }
  .footer-column {
    width: 100%;
    text-align: center;
  }
}

/* --- ABOUT PAGE STYLES --- */

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 60px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.content-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--btn-gradient);
}

.manifesto-grid p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.8;
}

.founder-card {
  background: linear-gradient(145deg, var(--bg-card), var(--bg-card-hover));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 60px;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.founder-header {
  flex-shrink: 0;
  text-align: center;
}

.founder-avatar {
  width: 120px;
  height: 120px;
  background: var(--bg-body);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 auto 20px;
  box-shadow: 0 0 20px rgba(255, 107, 0, 0.2);
}

.founder-info h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
  color: var(--text-main);
}

.founder-body {
  flex: 1;
}

@media (max-width: 768px) {
  .content-card,
  .founder-card {
    padding: 30px;
  }

  .founder-card {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .founder-header {
    width: 100%;
  }

  blockquote {
    border-left: none;
    border-top: 4px solid var(--primary);
    padding-left: 0;
    padding-top: 24px;
  }
}

/* --- FOOTER (Premium Redesign - Compact) --- */
footer {
  background: #0a0a0a;
  border-top: 1px solid var(--primary); /* Orange Strip */
  padding: 40px 0 20px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
  font-size: 0.9rem;
}

/* Footer Glow - REMOVED to match header style */
/* footer::before {
  content: "";
  ...
} */

.footer-content {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px; /* Reduced gap */
  margin-bottom: 40px; /* Reduced margin */
}

.footer-column h4 {
  color: var(--text-main);
  font-size: 1rem; /* Smaller heading */
  font-weight: 700;
  margin-bottom: 16px; /* Reduced margin */
}

.footer-logo {
  height: 32px; /* Smaller logo */
  margin-bottom: 16px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 20px;
  max-width: 280px;
}

.footer-links-list li {
  margin-bottom: 8px;
} /* Reduced spacing */

.footer-links-list a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: 0.3s;
}

.footer-links-list a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.social-icons {
  display: flex;
  gap: 16px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  border: 1px solid transparent;
}

.social-icon:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.social-icon img {
  width: 20px;
  height: 20px;
  filter: invert(1) opacity(0.8);
}
.social-icon:hover img {
  filter: invert(1) opacity(1);
}

/* Footer Middle Section (Newsletter & Payments) */
.footer-middle {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

.newsletter-wrapper {
  flex: 1;
  min-width: 250px;
}
.newsletter-wrapper h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text-main);
}
.newsletter-wrapper p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 400px;
}

.newsletter-form input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  padding: 12px 20px;
  border-radius: 12px;
  color: var(--text-main);
  transition: 0.3s;
}

.newsletter-form input:focus {
  border-color: var(--primary);
}

.newsletter-btn {
  background: var(--btn-gradient);
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.payment-methods-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.payment-icons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pay-badge {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  transition: 0.3s;
  cursor: default;
}

.pay-badge:hover {
  border-color: var(--text-muted);
  color: var(--text-main);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom-content {
  display: flex;
  justify-content: center; /* Force Center Globally */
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.designer-credit a {
  color: var(--text-main);
  font-weight: 500;
}
.designer-credit a:hover {
  color: var(--primary);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
  .footer-middle {
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
  }
  .newsletter-form {
    width: 100%;
  }
  /* Force Center Copyright */
  .footer-bottom-content {
    justify-content: center;
    text-align: center;
    width: 100%;
  }
  .footer-bottom-content p {
    text-align: center;
    width: 100%;
    margin: 0;
  }
}

/* --- MOBILE SPACING & HEADER SAFETY --- */
@media (max-width: 768px) {
  /* Standardized Mobile Spacing */
  section,
  .destinations-section,
  .hero-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section-header {
    margin-bottom: 30px;
  }

  /* HEADER SAFETY BACKGROUND REMOVED - User preferred original glass */

  /* Reset Header background to glass */
  .header {
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(20px) !important;
  }
}

@media (max-width: 600px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-column {
    align-items: center;
  }
  .social-icons {
    justify-content: center;
  }
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  /* PERFECT FOOTER CENTERING */
  .footer-logo {
    margin: 0 auto 20px auto;
    display: inline-block;
  }
  .footer-desc {
    margin: 0 auto 20px auto;
    text-align: center;
  }
  .footer-links {
    text-align: center;
    align-items: center;
  }
  .footer-link {
    text-align: center;
    justify-content: center;
  }
  .newsletter-form {
    margin: 0 auto;
  }
  .newsletter-input {
    text-align: center;
    font-size: 16px; /* Prevent Zoom */
  }
}

/* --- CONTACT PAGE --- */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}

.info-card {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-color);
  height: 100%;
}

.info-item {
  display: flex;
  align-items: center; /* Center vertically */
  gap: 20px;
  margin-top: 32px;
  text-align: left; /* Ensure text is left-aligned */
}

.info-item .icon {
  font-size: 2rem; /* Increased size */
  background: rgba(255, 255, 255, 0.05);
  padding: 16px; /* Adjusted padding */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px; /* Fixed width for consistency */
  height: 64px; /* Fixed height for consistency */
  flex-shrink: 0; /* Prevent shrinking */
  line-height: 1; /* Fix emoji vertical alignment */
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-item > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-item h4 {
  margin-top: 0; /* Remove top margin */
  margin-bottom: 4px;
  color: var(--text-main);
}

.info-item p,
.info-item a {
  margin: 0; /* Remove default margins */
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.contact-form-wrapper {
  background: var(--glass);
  padding: 40px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-main);
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1);
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--btn-gradient);
  color: white;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px var(--primary-glow);
}

/* Privacy Policy Specifics */
.last-updated {
  color: var(--text-muted);
  margin-top: -10px;
  margin-bottom: 40px;
}

.privacy-list {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
  color: var(--text-muted);
}

.privacy-list li {
  margin-bottom: 10px;
}

/* --- SUCCESS PAGE --- */
.success-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 60px 40px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-card);
  margin: 0 auto;
  animation: fadeInUp 0.6s ease-out;
}

.icon-circle {
  width: 80px;
  height: 80px;
  background: rgba(255, 107, 0, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  border: 1px solid rgba(255, 107, 0, 0.2);
  box-shadow: 0 0 20px rgba(255, 107, 0, 0.15);
}

.success-card h1 {
  margin-bottom: 16px;
  font-size: 2rem;
}

.success-card p {
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 1.1rem;
}

/* --- HOW IT WORKS PREMIUM (3D) --- */
.how-it-works-premium {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hiw-header {
  margin-bottom: 80px;
  position: relative;
  z-index: 2;
}

.hiw-header h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: #ffffff !important; /* Force White */
  background: none !important;
  -webkit-text-fill-color: #ffffff !important;
}

.hiw-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.hiw-content {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  min-height: 600px;
}

/* 3D Phone Mockup (CSS Only) */
/* --- HOW IT WORKS (Premium Grid) --- */
.steps-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .steps-grid-container {
    grid-template-columns: 1fr; /* Stack vertically */
    gap: 20px;
    padding: 0 20px;
  }

  .step-arrow {
    display: none !important; /* Hide horizontal arrows */
  }

  .step-card-premium {
    padding: 30px 20px; /* Adjust padding */
    margin-bottom: 0;
  }
}

.step-card-premium {
  background: var(--card-glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 40px 32px;
  border-radius: 24px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.step-card-premium:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 107, 0, 0.3);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

.step-number-badge {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.2);
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.step-card-premium:hover .step-number-badge {
  transform: translateY(-3px);
  background: rgba(255, 107, 0, 0.2);
  box-shadow: 0 10px 20px rgba(255, 107, 0, 0.15);
}

.step-card-premium h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-main);
}

.step-card-premium p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Mobile Responsive Steps */
@media (max-width: 900px) {
  .steps-grid-container {
    grid-template-columns: 1fr; /* Stack vertically */
    gap: 24px;
  }

  .step-card-premium {
    padding: 32px 24px;
    flex-direction: row; /* Horizontal layout on mobile */
    text-align: left;
    align-items: flex-start;
  }

  .step-number-badge {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-bottom: 0;
    margin-right: 16px;
  }

  .step-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
}

/* Positioning */
.step-left {
  top: 15%;
  left: 0%;
  animation-delay: 0.2s;
}
.step-right-top {
  top: 10%;
  right: 0%;
  animation-delay: 0.4s;
}
.step-right-bottom {
  bottom: 15%;
  right: 0%;
  animation-delay: 0.6s;
}

.step-left .step-line-connector {
  top: 50%;
  right: -80px;
}
.step-right-top .step-line-connector {
  top: 50%;
  left: -80px;
  transform: rotate(180deg);
}
.step-right-bottom .step-line-connector {
  top: 50%;
  left: -80px;
  transform: rotate(180deg);
}

/* Responsive Steps */
@media (max-width: 1024px) {
  .hiw-content {
    flex-direction: column;
    min-height: auto;
    padding-bottom: 40px;
  }

  .hiw-phone-center {
    margin: 40px 0 60px;
    transform: scale(0.9);
    animation: none; /* Disable expensive float on mobile/tablet */
  }

  .hiw-steps-floating {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
    padding: 0 20px;
  }

  /* --- NEW DASHBOARD LAYOUT (Grid System) --- */
  .dashboard-grid-layout {
    display: grid;
    grid-template-columns: repeat(12, 1fr); /* 12-column grid */
    gap: 24px;
    margin-top: 24px;
  }

  /* Widgets */
  .dashboard-widget {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
  }

  /* Specific Widget Spans */
  .widget-hero {
    grid-column: span 12;
  }
  .widget-plans {
    grid-column: span 8;
  }
  .widget-actions {
    grid-column: span 4;
  }
  .widget-full {
    grid-column: span 12;
  }

  /* Mobile (Stack everything) */
  @media (max-width: 1024px) {
    .dashboard-grid-layout {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    .widget-hero,
    .widget-plans,
    .widget-actions {
      width: 100%;
    }
  }

  /* --- MOBILE TABLE CARDS (Transform Tables to Cards) --- */
  @media (max-width: 768px) {
    .table-responsive table,
    .table-responsive thead,
    .table-responsive tbody,
    .table-responsive th,
    .table-responsive td,
    .table-responsive tr {
      display: block;
    }

    .table-responsive thead tr {
      position: absolute;
      top: -9999px;
      left: -9999px;
    }

    .table-responsive tr {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.05);
      border-radius: 16px;
      margin-bottom: 16px;
      padding: 16px;
    }

    .table-responsive td {
      border: none;
      position: relative;
      padding-left: 50%;
      padding-top: 8px;
      padding-bottom: 8px;
      text-align: right;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .table-responsive td:before {
      position: absolute;
      left: 0;
      width: 45%;
      padding-right: 10px;
      white-space: nowrap;
      font-weight: 600;
      color: var(--text-muted);
      text-align: left;
      content: attr(data-label); /* Requires data-label in HTML */
    }
  }

  /* Refined Action Buttons (Finger-Friendly) */
  .quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .quick-action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
  }

  .quick-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
  }

  .quick-action-btn .icon {
    font-size: 1.5rem;
  }
  .quick-action-btn .label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
  }

  .hiw-step-card {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: none;
    opacity: 1;
    animation: none;
    transform: none;
  }

  .hiw-step-card:hover {
    transform: translateY(-5px);
  }
  .step-line-connector {
    display: none;
  }
}

/* --- 8. DASHBOARD (PREMIUM) --- */

.dashboard-body {
  background-color: var(--bg-body); /* Theme aware */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 0 !important; /* Fix double padding issue */
}

.dashboard-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 100px 10px 40px; /* 10px side padding for Dashboard */
  width: 100%;
  min-height: calc(100vh - 80px);
  box-sizing: border-box;
}

/* Desktop Web-App Scroll Layout */
@media (min-width: 769px) {
  .dashboard-body {
    overflow: hidden !important;
    height: 100vh;
  }
  .dashboard-wrapper {
    height: 100vh;
    min-height: 100vh;
    padding: 24px 10px 24px 24px; /* Reduced vertical padding */
    gap: 20px;
    box-sizing: border-box;
  }

  .dashboard-main {
    height: 100%;
    min-height: 0; /* CRITICAL FOR CSS GRID SCROLLING */
    overflow-y: auto !important;
    padding-right: 15px; 
    padding-bottom: 20px; 
    box-sizing: border-box;
    position: relative;
    /* Touch devices */
    -webkit-overflow-scrolling: touch;
  }
  /* Custom scrollbar for dashboard main to match glassmorphism */
  .dashboard-main::-webkit-scrollbar {
    width: 6px;
  }
  .dashboard-main::-webkit-scrollbar-track {
    background: transparent;
  }
  .dashboard-main::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
  }
  .dashboard-main::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
  }
}

/* --- Sidebar (Floating Glass -> Drawer on Mobile) --- */
.dashboard-sidebar {
  position: sticky;
  top: 110px;
  height: calc(100vh - 140px);
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 900; /* Higher than content */
}

/* Desktop Sidebar Alignment Fix (Must come after base rule) */
@media (min-width: 769px) {
  .dashboard-sidebar {
    height: 100%;
    top: 0;
    margin-bottom: 0;
    box-sizing: border-box;
    overflow-y: auto;
  }
}

.sidebar-header {
  margin-bottom: 40px;
  text-align: center;
}

.user-profile-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.avatar-circle {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), #ff9100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 0 20px rgba(255, 107, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.user-info-mini h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.user-role {
  font-size: 0.75rem;
  color: var(--primary);
  background: rgba(255, 107, 0, 0.1);
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  overflow-y: auto;
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  padding-left: 12px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  transform: translateX(4px);
}

.nav-item.active {
  background: rgba(255, 107, 0, 0.1);
  color: var(--primary);
  border-color: rgba(255, 107, 0, 0.2);
  font-weight: 600;
}

.nav-icon {
  font-size: 1.1rem;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.logout-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #ef4444; /* Red for logout */
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 12px;
  transition: all 0.2s;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* --- Main Content --- */
.dashboard-main {
  width: 100%;
}

.dashboard-section {
  display: none;
}

.dashboard-section.active {
  display: block;
  animation: fadeIn 0.35s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-header h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #fff, #ccc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

.action-btn-primary {
  background: var(--btn-gradient);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
  cursor: pointer;
  transition: all 0.3s;
}

.action-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 0, 0.4);
}

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

/* --- Grid Layouts --- */
.dashboard-grid-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.full-width {
  grid-column: 1 / -1;
}

/* --- Glass Cards --- */
.glass-card {
  background: rgba(20, 20, 20, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  isolation: isolate;
  transition:
    transform 0.3s ease,
    border-color 0.3s;
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
}

/* --- eSIM Items --- */
.plans-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.esim-item {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s;
  cursor: pointer; /* Make card clickable */
}

.usage-ring-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 15px; /* Add spacing from text */
}

.ring-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
}

.esim-item:hover {
  border-color: var(--primary);
  background: rgba(255, 107, 0, 0.05);
}

.esim-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chip-icon {
  width: 24px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  position: relative;
}

.chip-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
}

.esim-details {
  flex: 1;
}

.esim-details h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.esim-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.esim-meta.expires {
  color: var(--primary);
  margin-top: 2px;
}

.esim-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.status-badge {
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-badge.active {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.copy-btn {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.copy-btn:hover {
  background: var(--primary);
}

/* --- Quick Actions --- */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.quick-action-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--text-main);
}

.quick-action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.qa-icon {
  font-size: 1.5rem;
}

/* --- Settings Forms --- */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.input-wrapper {
  position: relative;
}

.form-input {
  padding-right: 40px; /* Ensure space for toggle */
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--text-main);
  font-size: 0.95rem;
  transition: all 0.3s;
}

.form-input:focus {
  border-color: var(--primary);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.1);
}

.lock-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  opacity: 0.5;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-group {
  flex: 1;
}

.btn-primary {
  background: var(--primary);
  color: white;
  padding: 12px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

/* --- Preferences --- */
.preferences-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pref-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pref-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pref-info h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.pref-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(24px);
}

/* --- Support Section --- */
.support-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.support-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.icon-box {
  width: 50px;
  height: 50px;
  background: rgba(255, 107, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* --- Mobile Responsiveness --- */
/* --- MOBILE APP SHELL (Bottom Nav) --- */
.mobile-dashboard-header {
  display: none;
}

.mobile-bottom-nav {
  display: none;
}

/* View Section Switching — single source of truth */
/* (duplicate removed — see primary block above) */

/* Mobile Breakpoint */
@media (max-width: 1024px) {
  /* Hide Desktop Sidebar */
  .dashboard-sidebar {
    display: none !important;
  }

  /* Reset Wrapper */
  .dashboard-wrapper {
    display: block; /* No grid */
    padding: 80px 20px 100px; /* Top header space, Bottom nav space */
    min-height: 100vh;
  }

  /* Show Mobile Header */
  .mobile-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .brand-logo {
    font-weight: 800;
    font-size: 1.2rem;
    background: var(--brand-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .profile-icon-small {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
  }

  /* Show Bottom Nav */
  .mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px; /* Safe height */
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 20000; /* Highest Z-Index */
    padding: 10px 10px 25px 10px; /* Safe area padding */
    justify-content: space-around; /* Distribute 5 buttons evenly */
  }

  .nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    background: none;
    border: none;
    font-size: 0.75rem;
  }

  .nav-tab i {
    font-size: 1.3rem;
    transition: transform 0.2s;
  }

  .nav-tab.active {
    color: var(--primary);
  }

  .nav-tab.active i {
    transform: translateY(-2px);
  }

  /* Stack Cards Vertically */
  .dashboard-grid-layout,
  .settings-grid,
  .support-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  /* Fix Content Padding */
  .glass-card {
    padding: 20px;
  }
}

/* --- Dashboard View Expansions --- */

/* History Table */
.history-table-wrapper {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* Ensure scroll on mobile */
}

.history-table th,
.history-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-size: 0.9rem;
}

.history-table th {
  background: rgba(255, 255, 255, 0.02);
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.history-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Support Grid */
.support-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.support-action-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.support-action-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-4px);
  border-color: var(--primary);
}

.support-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 107, 0, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

/* Settings Tabs (if needed, currently using sections) */
.settings-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--primary);
}
/* --- RESPONSIVE OPTIMIZATIONS --- */
@media (max-width: 768px) {
  /* Typography */
  /* Typography */
  h1 {
    font-size: 2.2rem; /* Scale down hero titles slightly more for wrap */
    line-height: 1.2;
  }

  h2 {
    font-size: 1.8rem;
  }

  /* Spacing - SUPER COMPACT for Mobile */
  .main-wrapper {
    padding: 80px 10px 40px; /* 10px side padding = Edge to Edge */
    width: 100%;
    max-width: 100%;
  }

  .hero-container {
    padding: 30px 10px;
    min-height: auto;
    width: 100%;
    margin-top: 20px; /* Reset inherited 100px */
  }

  /* Grids */
  .countries-grid,
  .rates-grid,
  .features-grid,
  .steps-grid {
    grid-template-columns: 1fr !important; /* Force single column */
    gap: 20px;
  }

  /* Cards */
  .country-card,
  .feature-card,
  .step-card {
    padding: 24px;
  }

  /* Auth Pages */
  .auth-card {
    padding: 24px; /* Reduced padding further */
    width: 100%;
    margin-top: 20px;
  }

  /* Back Button on Mobile */
  .back-btn {
    width: auto; /* Revert to compact */
    max-width: none;
    border-radius: 100px;
    padding: 12px 30px; /* Ensure good touch target */
  }

  /* General Card Padding Reduction for Mobile */
  .country-card,
  .step-card,
  .partner-card,
  .feature-card,
  .glass-card,
  /* General Card Padding Reduction for Mobile */
  .country-card,
  .step-card,
  .partner-card,
  .feature-card,
  .glass-card,
  .dashboard-section {
    padding: 16px; /* Very compact */
    max-width: 100%;
  }

  /* Reduce Gap in Grids */
  .countries-grid,
  .steps-grid,
  .amenities-grid {
    gap: 16px;
  }

  /* Font Size Adjustments for Mobile */
  h1 {
    font-size: clamp(1.8rem, 7vw, 2.5rem); /* Tighter Headings */
    margin-bottom: 16px;
  }

  h2 {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
    margin-bottom: 24px;
  }

  p {
    font-size: 0.95rem; /* readable but not huge */
  }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .countries-grid,
  .rates-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* --- GLOBAL BACK BUTTON --- */
.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 40px auto 0; /* Center horizontally */
  padding: 14px 32px;
  background: var(
    --btn-gradient
  ); /* Removed legacy hero banner wrapper styles */
  color: white;
  text-decoration: none;
  border-radius: 100px; /* Pill shape */
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px var(--primary-glow);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* .back-btn::before removed to allow .btn-back-arrow to handle icon consistency */

/* Large Premium CTA Banner (Destinations Footer) */
.destinations-cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 32px;
  padding: 40px;
  margin: 60px auto 0;
  max-width: 800px;
  width: 100%;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.4);
}

.destinations-cta-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at top right,
    rgba(255, 107, 0, 0.1),
    transparent 60%
  );
  opacity: 0.6;
  transition: opacity 0.4s;
}

.destinations-cta-banner:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.5);
}

.destinations-cta-banner:hover::before {
  opacity: 1;
}

.cta-content {
  flex: 1;
  z-index: 2;
  padding-right: 30px;
}

.cta-badge {
  display: inline-block;
  background: rgba(255, 107, 0, 0.2);
  color: #ff8e3c;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 107, 0, 0.3);
}

.destinations-cta-banner h3 {
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 12px;
  font-weight: 800;
  line-height: 1.1;
  text-align: left; /* Override default centered h2/h3 */
}

.destinations-cta-banner p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 0;
}

.cta-action {
  z-index: 2;
}

.cta-btn {
  background: #ffffff;
  color: #000000;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.destinations-cta-banner:hover .cta-btn {
  transform: scale(1.05);
  background: #fff;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .destinations-cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
    gap: 30px;
  }

  .cta-content {
    padding-right: 0;
  }

  .destinations-cta-banner h3 {
    text-align: center;
    font-size: 1.6rem;
  }

  .cta-btn {
    width: 100%;
    text-align: center;
  }
}
.back-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--primary-glow);
  background: linear-gradient(
    135deg,
    #ff8033,
    #ff9100
  ); /* Slightly lighter on hover */
}

/* --- ERROR PAGES PREMIUM --- */
.error-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

/* Ambient Background for Error Pages */
.error-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100vh;
  background: radial-gradient(
    circle at center,
    rgba(255, 107, 0, 0.08),
    transparent 70%
  );
  z-index: -1;
  pointer-events: none;
}

.error-card {
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 60px 40px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  max-width: 520px;
  width: 100%;
  position: relative;
  overflow: hidden;
  animation: scaleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.error-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--btn-gradient);
}

.error-code {
  font-size: 8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 16px;
  font-family: "Inter", sans-serif;
  background: var(--text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 10px 30px rgba(255, 107, 0, 0.2));
  letter-spacing: -0.05em;
}

.error-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.error-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Mobile Adjustments for Error Pages */
@media (max-width: 600px) {
  .error-code {
    font-size: 6rem;
  }
  .error-card {
    padding: 40px 24px;
  }
  .error-title {
    font-size: 1.5rem;
  }
}

/* --- FOOTER ICONS REFACTOR --- */
.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  justify-content: flex-start; /* Align left */
}

.social-icon {
  width: 36px; /* Smaller size */
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05); /* Subtle background */
  border: 1px solid var(--border-color);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.social-icon img {
  width: 16px; /* Small icon inside */
  height: 16px;
  opacity: 0.6; /* Muted by default */
  transition: all 0.3s;
  filter: grayscale(100%) brightness(200%); /* Force white/gray look */
}

.social-icon:hover {
  background: var(--text-main); /* White/Black hover */
  border-color: var(--text-main);
  transform: translateY(-2px);
}

.social-icon:hover img {
  opacity: 1;
  filter: none; /* Original color (or invert if background is white) */
  filter: brightness(0); /* Make black */
}

/* Light Theme Adjustments for Footer Icons */
[data-theme="light"] .social-icon:hover img {
  filter: brightness(0) invert(1); /* Make white */
}

@media (max-width: 600px) {
  .social-icons {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .plan-badges {
    flex-wrap: wrap;
    gap: 8px;
  }

  .meta-badge {
    font-size: 0.75rem; /* Slightly smaller on mobile to fit */
  }
}

/* Compatibility Badge Link */
.compat-link {
  background: rgba(255, 107, 0, 0.1) !important;
  color: var(--primary) !important;
  border: 1px solid rgba(255, 107, 0, 0.2);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.compat-link:hover {
  background: var(--primary) !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.25);
}

/* New Compatibility Banner on Destination Page */
.compat-banner-btn {
  display: inline-flex; /* Changed from flex to inline-flex for compact size */
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 24px;
  border-radius: 100px; /* Pill shape */
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  margin: 0 auto; /* Centering helper */
}

.compat-banner-btn:hover {
  background: rgba(255, 107, 0, 0.15); /* Orange tint on hover */
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 0, 0.2);
}

.compat-banner-btn i:first-child {
  color: var(--primary);
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .compat-banner-btn {
    width: auto; /* Allow it to be compact */
    padding: 10px 20px; /* Slightly smaller padding for mobile */
    font-size: 0.95rem;
  }
}

/* --- PRIVACY & CONTENT PAGE MOBILE FIXES --- */
@media (max-width: 768px) {
  /* Force grids to stack */
  .info-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    grid-template-columns: 1fr !important;
  }

  .info-item {
    width: 100%;
    margin-bottom: 16px;
  }

  /* Ensure list items take full width and don't float weirdly */
  .privacy-list li,
  .feature-list li {
    width: 100%;
    margin-left: 0;
    padding-left: 0;
  }

  /* Maximize content width */
  .privacy-card,
  .content-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Adjust headings for stacking */
  .privacy-section h2 {
    margin-top: 32px;
    margin-bottom: 16px;
    font-size: 1.5rem;
  }

  /* Fix any hardcoded max-widths */
  .privacy-section p {
    max-width: 100%;
  }

  /* FORCE Privacy Card to be full width with minimal padding */
  .privacy-card.glass-panel {
    padding: 24px 16px; /* Vertical breathable, Horizontal tight */
    width: 100%;
    background: transparent; /* Remove card bg on mobile for cleaner text reading? Or keep it? Keeping it but minimal */
    border: none; /* Remove border to let it feel native */
    box-shadow: none;
    backdrop-filter: none !important;
  }
}

/* --- COOKIE NOTICE MOBILE OPTIMIZATION --- */
@media (max-width: 600px) {
  .cookie-notice-island {
    width: 96%;
    bottom: 12px;
    padding: 16px; /* Compact padding */
    border-radius: 20px;
    gap: 12px;
    background: rgba(
      20,
      20,
      20,
      0.95
    ) !important; /* Darker/Solid for legibility */
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .cookie-content-wrapper {
    margin-bottom: 12px;
    gap: 12px;
  }

  .cookie-icon-box {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    background: transparent; /* Remove box bg to save space */
  }

  .cookie-title {
    font-size: 0.9rem;
    margin-bottom: 2px;
  }

  .cookie-desc {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .cookie-actions {
    gap: 8px;
  }

  .cookie-btn {
    padding: 8px 0; /* Full width buttons */
    font-size: 0.85rem;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* --- ULTIMATE MOBILE PADDING RESET (Text Width Fix) --- */
@media (max-width: 768px) {
  /* 1. Strip Outer Wrapper Padding */
  .main-wrapper {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* 2. Strip Content Container Padding */
  .content-container {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    margin: 0;
    max-width: 100%;
  }

  /* 3. Apply SINGLE layer of padding to the actual text card */
  .privacy-card.glass-panel {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 24px;
    padding-bottom: 80px; /* Space for cookie notice */
    width: 100%;
    margin: 0;

    /* Remove Card Aesthetics for "Native" Feel */
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none !important;
  }

  /* 4. Ensure Headlines match the padding */
  .privacy-header,
  .privacy-section {
    padding-left: 0; /* Already inside privacy-card */
    padding-right: 0;
    text-align: left;
  }
}
/* --- APP COMING SOON PAGE (PREMIUM V2) --- */
.app-hero-section {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 20px 20px; /* Added top padding for header */
  text-align: center;
  position: relative;
  z-index: 1;
}

.app-card {
  background: rgba(20, 20, 20, 0.6); /* More transparent */
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 40px;
  padding: 60px 30px; /* Tighter padding */
  max-width: 680px;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Premium Background Glow Effect */
.app-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(255, 107, 0, 0.15) 0%,
    transparent 70%
  );
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
  animation: pulseGlow 8s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% {
    opacity: 0.5;
    transform: translateX(-50%) scale(1);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1.2);
  }
}

.app-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 0%, #aaaaaa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.app-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 48px;
  line-height: 1.6;
  max-width: 480px;
}

/* Badge Style */
.hero-badge {
  background: rgba(255, 107, 0, 0.1);
  color: var(--primary);
  border: 1px solid rgba(255, 107, 0, 0.2);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 32px;
  display: inline-block;
  transition: all 0.5s cubic-bezier(0.28, 0, 0, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  overflow: hidden;
}
/* Mobile Modal Fixes */
.modal-content {
  width: 90% !important;
  max-width: 400px;
  padding: 24px 16px !important;
  border-radius: 20px;
  margin: 20px auto;
  max-height: 85vh;
  overflow-y: auto;
}

.close-modal {
  width: 32px;
  height: 32px;
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 12px;
  right: 12px;
  z-index: 100;
}

.modal-header h2 {
  font-size: 1.5rem !important;
}

.plans-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}
/* Animation to show expansion/branding */
.hiw-phone-center:hover .dynamic-island {
  width: 180px;
  height: 32px;
}

.island-content {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease 0.1s;
}

.hiw-phone-center:hover .island-content {
  opacity: 1;
  transform: scale(1);
}

.island-logo {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.operator-name {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--primary);
}

.right-icons {
  display: flex;
  gap: 6px;
}

/* Store Buttons Grid */
.stores-wrapper {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
  width: 100%;
}

.store-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 14px 28px;
  border-radius: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  min-width: 160px;
  justify-content: center;
}

.store-icon {
  font-size: 1.2rem;
}

/* Easter Egg Note - Premium Chat Bubble Style */
.dev-note {
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 24px;
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 100%;
  margin-top: auto; /* Push to bottom if needed */
  position: relative;
  text-align: left;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  backdrop-filter: blur(10px);
}

.dev-note-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), #ff9100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.dev-note-content {
  flex: 1;
}

.dev-note strong {
  color: var(--text-main);
  display: block;
  margin-bottom: 4px;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.8;
}

.highlight-valeria {
  color: transparent;
  /* Beautiful Mexico Flag Gradient: Green -> White -> Red */
  background: linear-gradient(90deg, #009c3b 20%, #ffffff 50%, #ce1126 80%);
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 800;
  font-size: 1.15em;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
  display: inline-block;
  padding: 0 4px;
  letter-spacing: -0.02em;
}

/* Base Main Wrapper Fix - Ensure Centering */
.main-wrapper {
  margin: 0 auto;
  width: 100%;
  padding-top: 70px; /* Safe clearing for fixed header */
  position: relative;
  z-index: 1;
}

/* Coming Soon Card */

/* Hero Search Polish */
/* Removed duplicate search wrapper style */

/* Clear CTA Actions */
.hero-signup-btn {
  margin-top: 30px; /* Separation from Traveling Abroad card */
  background: var(--btn-gradient);
  color: white; /* Ensure text is white */
  border: none;
  font-weight: 700;
  padding: 12px 24px; /* Give it shape */
  border-radius: 50px; /* Rounded pill shape */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px; /* Force minimum height */
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-signup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(255, 107, 0, 0.4);
}
/* --- 10. COMPARISON & TRUST SECTIONS (New Phase 2) --- */

/* Comparison Section */
.comparison-section {
  padding: 80px 20px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
}

.comparison-table-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.comparison-header {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
  align-items: center;
  text-align: center;
}

.col-header {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.col-header.highlight {
  color: var(--primary);
  font-size: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.col-header.highlight img {
  height: 24px; /* Logo placeholder */
}

.comparison-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  align-items: center;
}

.comparison-row:last-child {
  border-bottom: none;
}

.feature-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--text-main);
  font-size: 1rem;
}

.feature-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.comp-cell {
  text-align: center;
  font-weight: 500;
  color: var(--text-muted);
}

.comp-cell.check {
  color: #10b981; /* Green */
  font-size: 1.2rem;
}

.comp-cell.cross {
  color: #ef4444; /* Red */
  font-size: 1.2rem;
}

.comp-cell.highlight {
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  text-shadow: 0 0 20px rgba(255, 107, 0, 0.3);
}

/* Trust Section */
.trust-section {
  text-align: center;
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto 80px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: 20px;
  text-align: left;
  transition: all 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stars {
  color: #fbbf24; /* Amber */
  margin-bottom: 12px;
  font-size: 1rem;
}

.review-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-style: italic;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviewer-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #333, #111);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 0.9rem;
}

.reviewer-info strong {
  display: block;
  color: var(--text-main);
  font-size: 0.9rem;
}

.reviewer-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .comparison-table-wrapper {
    padding: 20px;
    border-radius: 20px;
  }

  .comparison-header,
  .comparison-row {
    grid-template-columns: 1fr 1fr 1fr;
    font-size: 0.85rem;
  }

  .feature-name {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.85rem;
  }

  .feature-icon {
    display: none; /* Hide icon to save space */
  }

  .col-header img {
    height: 20px;
  }
}

/* --- ULTRA PREMIUM DESTINATION PAGE --- */

.destination-hero {
  position: relative;
  padding: 120px 20px 60px;
  text-align: center;
  overflow: hidden;
  margin-bottom: 60px;
}

.hero-bg-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(255, 107, 0, 0.15) 0%,
    transparent 70%
  );
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}

.country-flag-animated {
  font-size: 6rem;
  margin-bottom: 24px;
  display: inline-block;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
  animation: float 6s ease-in-out infinite;
}

.destination-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 12px;
  background: var(
    --text-gradient
  ); /* Use existing brand gradient if available, or white */
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.destination-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 50px;
}

/* Info Glass Cards */
.info-cards-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.info-glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  padding: 20px 30px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 260px;
  transition: transform 0.3s ease;
}

.info-glass-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.info-icon {
  font-size: 2rem;
  background: rgba(255, 107, 0, 0.1);
  color: var(--primary);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.info-content {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.info-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.info-value {
  font-size: 1.1rem;
  color: var(--text-main);
  font-weight: 700;
}

/* Benefits Section */
/* --- SAILY-STYLE DARK PREMIUM LAYOUT --- */
/* (Benefits Grid styles removed - Unused) */

/* --- SAILY-STYLE DARK PREMIUM LAYOUT --- */

/* 1. Split Hero Section */
.split-hero-container {
  padding: 80px 20px 60px; /* Top padding for fixed header */
  max-width: 1200px;
  margin: 0 auto;
}

.split-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

/* Left: Visual Column (Info Poster Style) */
.hero-visual-col {
  position: relative;
  height: 520px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.country-visual-card {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.8) 100%
  );
  z-index: 1;
}

.visual-content-poster {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px;
  width: 100%;
  height: 100%;
  justify-content: center;
}

.poster-flag {
  font-size: 5rem;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
  margin-bottom: 20px;
}

.poster-title {
  font-size: 4.5rem;
  font-weight: 900;
  color: white;
  line-height: 0.9;
  letter-spacing: -2px;
  margin-bottom: 60px;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
}

.poster-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 30px;
}

.poster-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.p-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.p-value {
  font-size: 1.1rem;
  color: white;
  font-weight: 700;
}

/* Right: Content Column */
.hero-content-col {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.country-badge {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.split-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, #ccc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.split-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 90%;
}


.trust-row {
  display: flex;
  gap: 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 10px;
}
.trust-row i {
  color: var(--primary);
  margin-right: 6px;
}

/* 2. Saily Grid Layout */
.plans-container {
  max-width: 1200px;
  margin: 0 auto 100px;
  padding: 0 20px;
}

.section-heading-left {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 40px;
}

.saily-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Saily Card - Dark Premium */
.saily-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.saily-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.saily-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.saily-data-circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 3px solid var(--text-muted); /* Placeholder style */
}

.saily-data-circle.unlimited {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

.saily-data-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
}

.saily-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.saily-validity {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.saily-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
}

.saily-badge-unlimited {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 6px 12px;
  border-bottom-left-radius: 12px;
}

/* Mobile Adjustments */
@media (max-width: 900px) {
  .split-hero-grid {
    grid-template-columns: 1fr; /* Stack */
    gap: 40px;
    text-align: center;
  }

  .hero-visual-col {
    height: 300px;
    order: -1; /* Ensure visual is top? or bottom? typically top */
  }

  .hero-content-col {
    align-items: center; /* Center content on mobile */
  }

  .country-badge,
  .trust-row {
    align-self: center; /* Center badges */
  }


  .section-heading-left {
    text-align: center;
    margin-bottom: 30px;
  }

  .split-title {
    font-size: 2.5rem;
  }
}
/* --- COMPACT HERO & LIST VIEW OPTIMIZATION --- */

/* Compact Hero Wrapper */
.compact-hero {
  padding: 100px 20px 40px; /* Much smaller than 160px */
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 40px;
}

@media (max-width: 900px) {
  .compact-hero {
    flex-direction: column;
    text-align: center;
    padding-top: 80px;
    gap: 30px;
  }

  .hero-flag-card {
    flex-direction: column;
    text-align: center;
  }

  .hero-stats {
    width: 100%;
    justify-content: center;
    gap: 20px;
  }
}

/* Compact Flag Card */
.hero-flag-card {
  display: flex;
  align-items: center;
  gap: 20px;
  /* Removed card styling for cleaner look as requested */
  padding: 0;
}

.flag-emoji {
  font-size: 2.5rem;
  line-height: 1;
}

.hero-info h1 {
  font-size: 1.8rem;
  margin: 0;
  color: var(--text-main);
}

.hero-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 2px 0 0;
}

/* Right Side Stats (Network, etc) */
.hero-stats {
  display: flex;
  gap: 30px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

/* --- TARIFF LIST VIEW --- */
.plans-list-container {
  max-width: 900px; /* Focused width */
  margin: 0 auto 60px;
}

.plan-group {
  margin-bottom: 40px;
}

.plan-group-header {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-group-header::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-color);
  opacity: 0.5;
}

/* List Item Card */
.plan-list-item {
  display: grid;
  grid-template-columns: 1fr auto auto; /* Details | Price | Button */
  align-items: center;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}
/* --- FEEDBACK FORM --- */
.feedback-container {
  max-width: 600px;
  margin: 60px auto 0;
  padding: 40px;
  text-align: center;
  border: 1px solid var(--border-color);
  background: var(--card-glass);
}

.feedback-header {
  margin-bottom: 30px;
}

.feedback-header h3 {
  font-size: 1.8rem;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 0%, #ccc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feedback-header p {
  color: var(--text-muted);
}

.feedback-form .form-group {
  margin-bottom: 20px;
}

/* Star Rating */
.star-rating {
  display: inline-flex;
  flex-direction: row-reverse; /* To allow CSS selection of previous stars */
  gap: 10px;
  margin-bottom: 10px;
  justify-content: center; /* Center stars */
  width: 100%; /* Ensure full width for centering */
}

.star-rating input {
  display: none;
}

.star-rating label {
  font-size: 2.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: #ffca28; /* Gold/Orange */
  transform: scale(1.1);
}

/* Glass Input Inputs */
.glass-input {
  width: 100%;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.glass-input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(255, 107, 0, 0.1);
}

.glass-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .feedback-container {
    padding: 24px;
    margin-top: 40px;
  }
  .star-rating label {
    font-size: 2rem;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .form-row .form-group {
    margin-bottom: 20px;
  }
}
.plan-list-item:hover {
  border-color: var(--primary);
  transform: translateX(5px);
  background: var(--bg-card-hover);
}

/* 2. Details */
.plan-details-col h3 {
  font-size: 1.1rem;
  margin: 0 0 5px;
  color: var(--text-main);
}

.plan-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-badge {
  font-size: 0.75rem;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  color: var(--text-muted);
}

.meta-badge.highlight {
  color: var(--primary);
  background: rgba(255, 107, 0, 0.1);
}

/* 3. Price */
.plan-price-col {
  text-align: right;
}

.price-big {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  display: block;
}

.price-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 4. Action */
.plan-btn {
  padding: 10px 24px;
  font-size: 0.95rem;
}

/* Mobile List */
/* Mobile List - Compact & App-like */
@media (max-width: 600px) {
  .plan-list-item {
    display: grid !important;
    grid-template-columns: 1fr auto !important; /* Content | Action Side */
    grid-template-rows: auto auto !important; /* Price | Button */
    gap: 0 12px;
    padding: 12px 16px;
    align-items: center;
    border-radius: 16px; /* Smoother */
  }

  .plan-details-col {
    grid-column: 1 !important;
    grid-row: 1 / -1 !important; /* Span full height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  /* Make Data Amount Big & Compact */
  .plan-details-col h3 {
    font-size: 1.2rem;
    margin-bottom: 2px;
  }

  /* Compact Badges */
  .plan-badges {
    flex-wrap: wrap; /* Allow wrapping */
    gap: 6px;
  }
  .meta-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
    white-space: nowrap;
  }

  /* Price: Top Right */
  .plan-price-col {
    grid-column: 2 !important;
    grid-row: 1 !important;
    text-align: right;
    display: flex;
    flex-direction: column; /* Stack Price & Label */
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    margin-bottom: 6px;
  }

  .price-big {
    font-size: 1.1rem;
    line-height: 1;
  }
  .price-sub {
    font-size: 0.65rem;
    opacity: 0.6;
  }

  /* Action: Bottom Right */
  .plan-action-col {
    grid-column: 2 !important;
    grid-row: 2 !important;
    width: auto;
    margin-top: 0;
  }

  /* Compact Button */
  .plan-btn {
    width: auto;
    padding: 6px 16px;
    font-size: 0.85rem;
    min-width: 80px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Legal Links Section */
.legal-links-row {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.legal-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.legal-link:hover {
  color: var(--primary);
}
/* --- LAUNCH BANNER (Premium Notification) --- */
.launch-banner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.3);
  padding: 10px 20px;
  border-radius: 100px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(255, 107, 0, 0.15);
  max-width: 90%;
  transition: transform 0.3s ease;
}

.launch-banner:hover {
  transform: translateY(-2px);
  background: rgba(255, 107, 0, 0.15);
  border-color: rgba(255, 107, 0, 0.5);
}

.launch-icon {
  font-size: 1.2rem;
  animation: bounce 2s infinite;
}

.launch-content {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.launch-content strong {
  color: var(--primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.launch-content span {
  color: var(--text-main);
  font-size: 0.85rem;
  line-height: 1.2;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@media (max-width: 768px) {
  .launch-banner {
    padding: 8px 16px;
    flex-direction: row; /* Keep icon side-by-side */
    text-align: left;
    width: auto;
    border-radius: 12px; /* Slightly squarer for multi-line text */
  }
}
/* --- DASHBOARD MOBILE OPTIMIZATIONS --- */
@media (max-width: 768px) {
  /* General Dashboard Section Spacing */
  .dashboard-section {
    padding: 10px 0; /* Reduced top/bottom padding */
  }

  .dashboard-section .section-header h1 {
    font-size: 1.8rem; /* Smaller Title */
    margin-bottom: 5px;
  }

  .dashboard-section .subtitle {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  /* History Table Mobile Scroll */
  .dashboard-section #view-history .glass-card {
    padding: 15px; /* Reduce padding to give more width to table */
    overflow-x: auto; /* Ensure scrolling */
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 500px; /* Force scroll trigger if content is squeezed */
  }

  /* Settings Form Inputs */
  #settingsForm input,
  #passwordForm input,
  #supportForm input,
  #supportForm textarea,
  #supportForm select {
    font-size: 16px; /* Prevents iOS auto-zoom */
    padding: 12px;
  }

  /* Support Grid/Cards */
  .support-tickets-list .ticket-card {
    padding: 15px;
  }

  /* Adjust Glass Card Padding Global for Mobile Dash */
  .dashboard-main .glass-card {
    padding: 20px 15px; /* Tighter padding on mobile cards */
  }
}
/* --- VISUAL REFINEMENT --- */

/* 1. Rectangular Humble Launch Banner */
.launch-banner {
  display: flex;
  align-items: flex-start; /* Top align for multi-line text */
  gap: 16px;
  background: rgba(15, 15, 15, 0.6); /* Darker, more serious background */
  border: 1px solid rgba(255, 107, 0, 0.2); /* Subtle orange border */
  padding: 16px 20px;
  border-radius: 12px; /* Rectangular but friendly */
  margin: 0 auto 30px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  max-width: 600px; /* Wider for sentence */
  text-align: left;
  transition: all 0.3s ease;
}

.launch-banner:hover {
  transform: translateY(-2px);
  background: rgba(20, 20, 20, 0.8);
  border-color: rgba(255, 107, 0, 0.4);
  box-shadow: 0 15px 40px rgba(255, 107, 0, 0.1);
}

.launch-icon {
  font-size: 1.4rem;
  padding-top: 2px; /* Align with title */
  filter: drop-shadow(0 0 10px rgba(255, 107, 0, 0.6));
  animation: pulseIcon 3s infinite ease-in-out;
}

.launch-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.launch-content strong {
  color: var(--primary);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.launch-content span {
  color: #cccccc; /* Softer white */
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 400;
}

@keyframes pulseIcon {
  0%,
  100% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* 2. Ambient Orange Background Glows */

/* --- Testimonials Marquee --- */
.trust-section {
  padding: 60px 20px 40px; /* Reduced top padding */
  overflow: hidden; /* Hide scrollbar */
}

.trust-section h2 {
  margin-bottom: 40px;
}

.marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.marquee-content {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: scrollMarquee 60s linear infinite;
}

.marquee-content:hover {
  animation-play-state: paused;
}

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

.review-card {
  min-width: 280px;
  max-width: 280px;
  flex-shrink: 0;
  /* Ensure glass card styles are maintaned */
}

/* Fix How It Works spacing */
.how-it-works-premium {
  padding: 60px 20px; /* Reduced from default */
}

/* --- MOBILE OPTIMIZATION FINAL POLISH (Dashboard/Email/Layout) --- */

@media (max-width: 600px) {
  /* 1. Dashboard Title Sizing */
  .dashboard-main .section-header h1 {
    font-size: 2rem;
    line-height: 1.2;
    word-wrap: break-word;
  }

  /* 2. Fix Card Header Overlap (Stack Title & Button) */
  .dashboard-grid-layout .card-header .action-btn-primary,
  .dashboard-grid-layout .card-header .btn-primary {
    margin-left: auto; /* Push to right if space permits */
  }
}

@media (max-width: 480px) {
  html,
  body {
    overflow-x: hidden; /* Prevent horizontal scroll */
    max-width: 100%;
  }

  .dashboard-main .section-header h1 {
    font-size: 1.8rem;
  }

  .dashboard-grid-layout .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .dashboard-grid-layout .card-header .card-title {
    width: 100%;
    margin-bottom: 0px;
  }

  /* Make button full width and consistent */
  .dashboard-grid-layout .card-header .action-btn-primary,
  .dashboard-grid-layout .card-header .btn-primary {
    width: 100%;
    justify-content: center;
    margin-left: 0;
    margin-right: 0;
  }

  /* Fix main wrapper padding/overflow */
  .dashboard-wrapper,
  .dashboard-main {
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    box-sizing: border-box;
  }

  /* Fix Hero Title Mobile Index */
  .hero-container h1 {
    font-size: 2.0rem;
  }

  /* 3. Redesign Active Plans List (Stacked Premium Cards V2) */
  .esim-item {
    background: rgba(255, 255, 255, 0.05); /* Restore subtle glass */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Restore border */
    border-radius: 20px; /* Rounded corners */
    padding: 24px 20px; /* Comfortable padding */
    margin-bottom: 16px; /* Spacing between cards */
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); /* Lift them up */
  }

  /* Reset last-child border removal since they are separate cards now */
  .esim-item:last-child {
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0;
  }

  .esim-item:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.08);
  }

  .esim-details {
    text-align: center;
    width: 100%;
  }

  .esim-details h3 {
    text-align: center;
    font-size: 1.2rem;
    width: 100%;
    margin-bottom: 8px;
  }

  .esim-meta {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Hide Arrow on stacked cards, the whole card is clickable */
  .esim-arrow {
    display: none !important;
  }

  .esim-item:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  /* 4. Remove Outer Card Background (The "Frame Behind") */
  .dashboard-grid-layout .full-width.glass-card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }
}

/* --- Universal Mobile Centering & Stripe Badge --- */

/* Stripe Branding */
.pay-badge.stripe {
  background: #635bff;
  color: white;
  font-weight: 700;
  border: none;
}

@media (max-width: 600px) {
  /* --- FOOTER CENTERING --- */
  .footer-column.brand-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-tagline {
    text-align: center;
    margin: 0 auto 20px auto;
  }

  .social-icons {
    justify-content: center;
    width: 100%;
  }

  /* Payment Section Centering */
  .footer-middle {
    padding: 20px;
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
    gap: 30px;
  }

  .payment-methods-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .payment-label {
    text-align: center;
    display: block;
    width: 100%;
    margin-right: 0;
    margin-bottom: 15px;
  }

  .payment-icons {
    justify-content: center;
    width: 100%;
  }

  /* --- DASHBOARD CENTERING --- */
  .dashboard-main .section-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .dashboard-main .section-header h1 {
    text-align: center;
  }

  .dashboard-main .section-header .subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  /* Dashboard Card Headers */
  .dashboard-grid-layout .card-header {
    justify-content: center;
    text-align: center;
  }

  .dashboard-grid-layout .card-header .card-title {
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Ensure icon inside title is behaved */
  .dashboard-grid-layout .card-header .card-title i {
    margin-right: 0; /* Let gap handle it */
  }
}

/* --- HELP CENTER STYLES (Refactored to use Global Premium Components) --- */

/* Hero Section Refinements */
.hero-subtitle {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-muted);
}

.help-search-wrapper {
  max-width: 600px;
  margin: 40px auto 0;
  position: relative;
  width: 100%;
}

.help-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 1.1rem;
}

.help-search-input {
  width: 100%;
  padding: 18px 24px 18px 55px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  color: white;
  font-size: 1.1rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.help-search-input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  box-shadow:
    0 0 0 4px rgba(255, 107, 0, 0.15),
    0 10px 30px rgba(0, 0, 0, 0.2);
  outline: none;
}

/* Topics Grid */
.help-topics-grid {
  max-width: 1100px;
  margin: -40px auto 80px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  position: relative;
  z-index: 2;
}

.topic-card {
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  padding: 30px 20px;
}

.topic-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.topic-card:hover .topic-icon {
  transform: scale(1.1);
}

.topic-card.active {
  border-color: var(--primary) !important;
  background: rgba(255, 107, 0, 0.05) !important;
  box-shadow:
    0 0 0 1px var(--primary),
    0 10px 40px rgba(0, 0, 0, 0.3) !important;
}

/* Topic Icons and Colors */
.topic-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: all 0.3s ease;
}

.topic-icon--orange {
  background: rgba(255, 107, 0, 0.1);
  color: var(--primary);
}

.topic-icon--blue {
  background: rgba(37, 99, 235, 0.1);
  color: #3b82f6;
}

.topic-icon--green {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.topic-icon--purple {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.topic-card h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.topic-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* FAQ Accordion */
.faq-section {
  max-width: 800px;
  margin: 0 auto 100px;
  padding: 0 20px;
}

.faq-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.faq-title {
  margin: 0;
  font-size: 1.8rem;
}

.faq-back-btn {
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 0.9rem;
}

.faq-item {
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeInUp 0.4s ease forwards;
  padding: 0 24px;
  border-radius: 16px;
  /* Note: .glass-card handles background/border */
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 24px 0;
  background: none;
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question .icon {
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question .icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-answer p {
  padding-bottom: 24px;
}

/* Support CTA container */
.help-cta-container {
  max-width: 1200px;
  margin: 0 auto 100px;
  padding: 0 20px;
}

.help-cta-card {
  padding: 60px;
  text-align: center;
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 107, 0, 0.1),
      transparent 70%
    ),
    rgba(20, 20, 20, 0.6);
}

.help-cta-title {
  margin-bottom: 15px;
  font-size: 2rem;
}

.help-cta-desc {
  margin-bottom: 30px;
  color: var(--text-muted);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.no-results-state {
  display: none;
  text-align: center;
  padding: 40px;
}

.no-results-icon {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  opacity: 0.5;
}

/* Animations */
/* Animations cleaned */


/* Mobile Optimization */
@media (max-width: 768px) {
  .help-topics-grid {
    gap: 16px;
  }
}

/* --- FORCE PREMIUM DARK MODE FOR HELP PAGE --- */
/* This overrides any global theme glitches effectively */
.help-page {
  --bg-body: #050505 !important;
  --bg-card: #0f0f0f !important;
  --glass: rgba(20, 20, 20, 0.65) !important;
  --border-color: rgba(255, 255, 255, 0.08) !important;
  --text-main: #ffffff !important;
  --text-muted: #94a3b8 !important;

  background-color: #050505 !important;
  color: #ffffff !important;
}

.help-page .glass-card {
  background: rgba(20, 20, 20, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(14px) !important;
}

/* --- ACADEMY & NEWSROOM STYLES --- */
.academy-hero {
  background: radial-gradient(
    circle at 60% 0%,
    #1a1a1a 0%,
    #050505 60%
  ) !important; /* Force dark bg */
  padding-top: 140px;
  padding-bottom: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.academy-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("patterns/noise.png"); /* If available, or just texture */
  opacity: 0.05;
  pointer-events: none;
}

.academy-content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.academy-section {
  padding: 80px 20px;
  max-width: 1100px; /* Constrain width to avoid stretching */
  margin: 0 auto;
}

.esim-101-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.info-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08); /* Slightly more visible border */
  border-radius: 24px;
  padding: 40px 30px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.info-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.info-icon {
  font-size: 2.5rem;
  margin-bottom: 24px;
  background: var(--btn-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding-right: 5px; /* Fix clipping */
  padding-bottom: 5px; /* Fix clipping */
}

/* Timeline Styling */
.step-timeline {
  position: relative;
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
}

.timeline-step {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  position: relative;
}

.timeline-step::after {
  content: "→";
  position: absolute;
  right: -25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--text-muted);
  opacity: 0.5;
}

.timeline-step:last-child::after {
  display: none;
}

.step-number {
  font-size: 3rem;
  font-weight: 800;
  opacity: 0.1;
  position: absolute;
  top: 10px;
  right: 20px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.15); /* Make it lighter/visible */
  opacity: 1; /* Remove low opacity, control color instead */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Add depth */
}

/* Press Page Refinements */
.back-link-top:hover {
  color: var(--primary) !important;
}

.press-about-card {
  border-left: 4px solid var(--primary); /* Nice left accent */
  background: linear-gradient(
    90deg,
    rgba(255, 107, 0, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 100%
  ) !important;
}

.press-text {
  line-height: 1.8;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .step-timeline {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .timeline-step::after {
    content: "↓";
    right: 50%;
    bottom: -35px;
    top: auto;
    transform: translateX(50%);
  }

  .esim-101-grid {
    grid-template-columns: 1fr;
  }

  .academy-hero h1 {
    font-size: 2.5rem; /* Smaller on mobile */
  }
}

/* --- PRESS PAGE STYLES --- */
.press-hero {
  width: 100%;
  box-sizing: border-box;
  padding: 160px 20px 80px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, #1a1a1a 0%, #050505 70%);
}

.press-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px 100px;
}

.press-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 40px;
}

.contact-box {
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.1), rgba(0, 0, 0, 0));
  border: 1px solid rgba(255, 107, 0, 0.3);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
}

.press-email {
  font-size: 1.5rem;
  color: white;
  font-weight: 700;
  text-decoration: none;
  display: block;
  margin-top: 10px;
  transition: color 0.3s ease;
}

.press-email:hover {
  color: var(--primary);
}
.help-page .topic-card:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

.help-page .help-search-input {
  background: rgba(255, 255, 255, 0.08) !important;
  color: white !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

/* Global Description Styles */
.hero-description {
  font-size: 1rem !important;
  max-width: 600px;
  margin-top: 8px !important;
  opacity: 0.9;
  line-height: 1.5;
}

.hero-coverage-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center; /* Ensure centered if width > auto */
  gap: 8px;
  margin: 12px auto 0; /* Center horizontally */
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 0.85rem;
  color: #fff;
  font-weight: 500;
}

/* --- MOBILE DASHBOARD POLISH --- */
@media (max-width: 768px) {
  /* Dashboard Main Padding */
  .dashboard-main {
    padding: 85px 15px 100px 15px; /* Top nav space + Bottom space */
  }

  /* Card Spacing */
  .glass-card,
  .esim-item {
    margin-bottom: 15px;
    border-radius: 16px;
  }

  /* Better Typography for Mobile */
  .section-header h1 {
    font-size: 1.8rem;
  }
  .section-header .subtitle {
    font-size: 0.95rem;
  }

  /* Usage Card Adjustments */
  .usage-info h3 {
    font-size: 1.1rem;
  }
  .usage-stats {
    gap: 15px; /* Tighter spacing */
  }
  .stat-item span {
    font-size: 0.75rem;
  }
  .stat-item strong {
    font-size: 1rem;
  }

  /* Circle Gauge Size */
  .progress-ring {
    width: 70px;
    height: 70px;
  }
  .progress-ring__circle {
    cx: 35;
    cy: 35;
    r: 30;
  }
  .ring-text {
    font-size: 0.9rem;
  }

  /* Hide Desktop Elements strictly */
  .desk-only {
    display: none !important;
  }

  /* Button Touch Areas */
  .action-btn-primary,
  .btn-primary,
  .btn-outline {
    padding: 12px 20px; /* Larger touch target */
    font-size: 1rem;
  }
}

/* --- Notifications --- */
.notification-wrapper {
  position: relative;
  cursor: pointer;
  z-index: 9999; /* Ensure wrapper is above sidebar/header if they overlap */
}

.notification-bell {
  position: relative;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  color: #fff;
}

.notification-bell:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary);
}

.notification-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  border: 2px solid #000;
  display: none;
}

.notification-badge.show {
  display: block;
}

.notification-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  width: 320px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 10000; /* Very high z-index for dropdown */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  backdrop-filter: blur(20px);
}

.notification-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.notification-header {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-header h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
}

.mark-read-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.8rem;
  cursor: pointer;
}

.notification-list {
  max-height: 300px;
  overflow-y: auto;
}

.notification-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: 0.2s;
}

.notification-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.notif-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notif-content h5 {
  font-size: 0.9rem;
  margin: 0 0 4px;
}

.notif-content p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 4px;
  line-height: 1.4;
}

.notif-time {
  font-size: 0.7rem;
  color: #666;
}

/* Full Page Notifications List */
.notification-list-full {
  display: flex;
  flex-direction: column;
}

.notification-list-full .notification-item {
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.notification-list-full .notification-item:last-child {
  border-bottom: none;
}

/* --- FINAL MOBILE OVERRIDES (Correcting Layout Shifts) --- */
@media (max-width: 768px) {
  /* 1. Fix "My Plans" List Layout */
  .plans-container {
    display: flex !important;
    flex-direction: column;
    padding: 0 10px;
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
  }

  /* Remove duplicate framing/backgrounds from container/grid items */
  .dashboard-grid-layout .glass-card {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
  }

  /* 2. Fix Card Items Full Width */
  .esim-item {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* 3. Fix Modal Opening Off-Screen (FULLSCREEN MOBILE) */
  .modal-content {
    position: fixed !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    width: 95%; /* Full width */
    max-width: 95%;
    height: 90vh; /* Full height */
    max-height: 90vh;
    border-radius: 20px;
    padding-top: 60px; /* Space for close button */
    overflow-y: auto !important;
  }

  /* Sticky Close Button for Mobile */
  .close-modal {
    position: absolute !important; /* Absolute relative to modal-content */
    top: 15px;
    right: 15px;
    z-index: 10 !important;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
  }

  /* CRITICAL: Override the active animation state that resets transform */
  .modal-overlay.active .modal-content {
    transform: translate(-50%, -50%);
  }

  /* Mobile Notification Dropdown */
  .notification-dropdown {
    position: fixed !important;
    top: 60px;
    right: 10px;
    left: 10px;
    width: auto;
    transform: none;
  }
}

/* --- 5. BLOG & ARTICLE STYLES (Added Dec 2025) --- */
.article-container {
  max-width: 800px;
  margin: 120px auto 60px;
  padding: 0 24px;
  width: 100%;
  color: var(--text-main);
}

.article-header {
  text-align: center;
  margin-bottom: 40px;
}

.article-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.2;
  background: linear-gradient(135deg, #fff 0%, #aaa 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .article-title {
  background: linear-gradient(135deg, #000 0%, #555 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 10px;
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #d1d5db; /* Light gray for readability */
}

[data-theme="light"] .article-content {
  color: var(--text-main);
}

.article-content h2 {
  font-size: 1.8rem;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #fff;
}

[data-theme="light"] .article-content h2 {
  color: #000;
}

.article-content h3 {
  font-size: 1.4rem;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--primary);
}

.article-content p {
  margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.article-content li {
  margin-bottom: 10px;
}

.highlight-box {
  background: rgba(255, 107, 0, 0.1);
  border-left: 4px solid var(--primary);
  padding: 20px;
  border-radius: 8px;
  margin: 30px 0;
  color: var(--text-main);
}

.cta-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  margin: 50px auto;
  backdrop-filter: blur(10px);
}

[data-theme="light"] .cta-box {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  margin-bottom: 30px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

.back-link:hover {
  color: var(--primary);
  background: rgba(255, 107, 0, 0.1);
}

/* --- BLOG SHARING UI (Redesigned) --- */
.share-section {
  margin-top: 60px;
  padding: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .share-section {
  background: rgba(0, 0, 0, 0.02);
  border-top-color: rgba(0, 0, 0, 0.05);
}

.share-section h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

[data-theme="light"] .share-section h3 {
  background: linear-gradient(135deg, #111 0%, #444 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.share-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

/* 1. Primary "Share" Button (Native) */
.btn-share-native {
  background: var(--btn-gradient);
  color: white;
  padding: 16px 32px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 20px var(--primary-glow);
}

.btn-share-native:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px var(--primary-glow);
}

.btn-share-native i {
  font-size: 1.2rem;
}

/* 2. Secondary "Copy Link" Button */
.btn-share-copy {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 32px;
  border-radius: 100px;
  color: var(--text-heading);
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(5px);
}

[data-theme="light"] .btn-share-copy {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

.btn-share-copy:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
}

[data-theme="light"] .btn-share-copy:hover {
  background: rgba(0, 0, 0, 0.08);
}

/* Success State for Copy Button */
.btn-success {
  background: rgba(46, 204, 113, 0.15) !important;
  border-color: #2ecc71 !important;
  color: #2ecc71 !important;
  box-shadow: 0 0 15px rgba(46, 204, 113, 0.2);
}

/* --- DASHBOARD MOBILE TWEAKS --- */
@media (max-width: 600px) {
  /* Reduce font size of the new date row on mobile */
  .esim-item .date-row {
    display: flex !important;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
    margin-top: 8px;
  }

  .esim-item .date-row > div {
    font-size: 0.75rem;
    white-space: nowrap !important;
    width: 100%;
  }

  /* Fix Usage Ring Overflow */
  .usage-ring-wrapper {
    transform: scale(0.75); /* Smaller scale */
    transform-origin: center right; /* Anchor right */
    margin-left: 0;
    margin-right: -10px; /* Pull closer to edge */
  }

  /* Ensure details don't get squashed by the ring */
  .esim-item {
    padding: 20px 15px; /* Reduce padding */
    gap: 10px;
  }

  /* Fix Modal Date Row */
  .modal-content .detail-row {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }
  .modal-content .detail-row span,
  .modal-content .detail-row strong {
    text-align: left;
    width: 100%;
  }
}
/* --- DASHBOARD MOBILE TWEAKS --- */
@media (max-width: 600px) {
  /* Reduce font size of the new date row on mobile */
  .esim-item .date-row {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }

  .esim-item .date-row > div {
    font-size: 0.75rem;
  }
}
/* Form Input Styles (Refactored from inline) */
.form-input {
  width: 100%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.2);
}

.custom-select-wrapper {
  position: relative;
  width: 100%;
}

/* --- UTILITY CLASSES FOR FORMS --- */
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.form-col {
  flex: 1;
  min-width: 250px;
}

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

/* --- MOBILE SETTINGS PAGE OPTIMIZATION --- */
@media (max-width: 768px) {
  /* Ensure content doesn't touch edges since card padding is gone */
  #view-settings {
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Remove "frames within frames" feeling */
  #view-settings .glass-card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-top: 10px;
  }

  /* Form Layout Overrides */
  .form-row {
    flex-direction: column;
    gap: 0;
    margin-bottom: 0;
  }

  .form-col {
    width: 100%;
    min-width: 100%;
    margin-bottom: 20px;
  }

  /* Make inputs feel more spacious and distinct without card borders */
  #view-settings .form-group {
    margin-bottom: 24px;
  }

  #view-settings label {
    margin-bottom: 8px;
    font-size: 0.95rem; /* Slightly larger for readability */
    display: block;
  }

  /* Full width inputs - Explicitly Targeting Everything */
  #view-settings .glass-input,
  #view-settings .glass-select,
  #view-settings input[type="text"],
  #view-settings input[type="email"],
  #view-settings input[type="date"],
  #view-settings input[type="password"],
  #view-settings select,
  #view-settings .form-input {
    width: 100%;
    box-sizing: border-box; /* Critical for padding */
    background: rgba(255, 255, 255, 0.05); /* Explicit background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px; /* Larger touch target */
    max-width: 100%;
  }

  /* Wrapper should be invisible container only */
  #view-settings .custom-select-wrapper {
    width: 100%;
    background: transparent;
    border: none;
    padding: 0;
  }

  /* Ensure select arrow is positioned correctly */
  #view-settings .select-arrow,
  .custom-select-wrapper .fa-chevron-down {
    right: 20px;
  }

  /* Better separation for sections */
  #view-settings h3 {
    margin-top: 30px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* Linked Accounts Section Polish */
  .linked-account-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
  }
}

/* --- FIXED BACK ARROW ICON --- */
.btn-back-arrow {
  display: flex !important; /* Force flex to align items */
  align-items: center;
  gap: 8px; /* Space between icon and text */
}

/* Force single icon via CSS */
.btn-back-arrow::before {
  content: "\f060"; /* Font Awesome Arrow Left */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 5px; /* Adjust spacing if needed */
}

/* Hide any existing icon tags inside to prevent duplication */
.btn-back-arrow i,
.btn-back-arrow svg {
  display: none !important;
}

/* --- BLOG MOBILE OPTIMIZATIONS --- */
@media (max-width: 768px) {
  .article-container {
    margin-top: 100px;
    padding: 0 20px;
  }

  .article-title {
    font-size: 2rem; /* Reasonable size for mobile */
  }

  .article-content {
    font-size: 1rem; /* Slightly smaller for mobile readability */
  }

  .share-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .btn-share-native,
  .btn-share-copy {
    width: 100%;
    justify-content: center;
  }
}

/* Auto-Auth Buttons Grid */
.auth-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px; /* Increased gap */
  width: 100%;
  margin-bottom: 24px;
}

/* Base adjustment for buttons inside grid */
.auth-buttons-grid .client-zone-btn {
  width: 100%;
  justify-content: center;
  padding: 12px 10px; /* Squeeze padding slightly to fit text */
  margin-bottom: 0;
  font-size: 0.95rem;
  text-align: center;
  border-radius: 12px; /* Softer corners */
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

/* Custom Styles */
.btn-login {
  background: transparent !important;
  border: 2px solid #ff6b00 !important; /* Orange Outline */
  color: #ff6b00 !important;
  font-weight: 600;
}

.btn-register {
  background: linear-gradient(
    135deg,
    #ff6b00 0%,
    #ff8533 100%
  ) !important; /* Orange Gradient */
  border: none !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4); /* Stronger glow */
  font-weight: 600;
}

.btn-login:active {
  background: rgba(255, 107, 0, 0.1) !important;
  transform: scale(0.98);
}

.btn-register:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.3);
}

/* --- MOBILE STICKY BOTTOM BAR --- */
.sticky-bottom-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  padding-bottom: max(15px, env(safe-area-inset-bottom)); /* iOS safe area */
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(100%); /* Hidden by default */
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s;
}

.sticky-bottom-cta.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.sticky-bottom-cta .price-text {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
}

.sticky-bottom-cta .price-sub {
  color: var(--text-muted);
  font-size: 0.8rem;
  display: block;
}

.sticky-bottom-cta .btn-primary {
  padding: 12px 24px;
  font-size: 1rem;
  margin: 0;
}

@media (min-width: 769px) {
  .sticky-bottom-cta {
    display: none !important;
  }
}

/* --- CAROUSEL STYLES --- */
.scrolling-wrapper {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 10px 5px 30px 5px;
  scroll-snap-type: x mandatory;
}

/* Hide Scrollbar */
.scrolling-wrapper::-webkit-scrollbar {
  display: none;
}

.scrolling-wrapper {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.carousel-card {
  flex: 0 0 220px;
  scroll-snap-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 25px 20px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
  position: relative;
  backdrop-filter: blur(10px);
}

.carousel-card:hover {
  transform: translateY(-5px) scale(1.02);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.carousel-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
  transition: transform 0.3s;
}

.carousel-card:hover .carousel-icon {
  transform: scale(1.1) rotate(5deg);
}

.carousel-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.carousel-subtitle {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}

/* Carousel Navigation Buttons */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(5px);
  transition: all 0.2s;
}

.carousel-nav:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.carousel-nav.prev {
  left: 0;
}

.carousel-nav.next {
  right: 0;
}

/* Hide arrows on mobile (touch logic is better) */
@media (max-width: 1024px) {
  .carousel-nav {
    display: none;
  }
}

/* --- ECOSYSTEM SHOWCASE (Tarifas Future Plans) --- */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.premium-feature-card {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.premium-feature-card:hover {
  transform: translateY(-8px);
}

/* Mobile: Stack cards to single column, reduce padding */
@media (max-width: 768px) {
  .ecosystem-showcase {
    margin-top: 60px;
  }

  .ecosystem-showcase h2 {
    font-size: 1.8rem;
  }

  .ecosystem-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .premium-feature-card {
    padding: 28px 20px;
    border-radius: 20px;
  }

  .premium-feature-card .feature-icon {
    font-size: 2.8rem;
    margin-bottom: 16px;
  }

  .premium-feature-card h3 {
    font-size: 1.25rem;
  }

  .premium-feature-card p {
    font-size: 0.95rem;
  }
}

/* Very small devices */
@media (max-width: 480px) {
  .ecosystem-showcase h2 {
    font-size: 1.5rem;
  }

  .ecosystem-showcase p {
    font-size: 0.95rem;
  }

  .premium-feature-card {
    padding: 24px 16px;
  }
}

/* ── ACCESSIBILITY: Respect user motion preference ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   REAL SCENARIOS SECTION — Premium Use-Case Cards
   ============================================================ */

/* --- Section Wrapper --- */
.scenarios-section {
  padding: 90px 20px 100px;
  position: relative;
  overflow: hidden;
}

/* Subtle orange glow at the top */
.scenarios-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 900px; height: 400px;
  background: radial-gradient(ellipse at center, rgba(255,107,0,0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* --- Inner container with strict max-width --- */
.scenarios-section .container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* --- Header --- */
.scenarios-header {
  text-align: center;
  margin-bottom: 56px;
}

.scenarios-badge {
  display: inline-block;
  background: rgba(255,107,0,0.12);
  border: 1px solid rgba(255,107,0,0.35);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.scenarios-title {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 14px;
  background: linear-gradient(135deg, #ffffff 30%, rgba(255,255,255,0.55) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .scenarios-title {
  background: linear-gradient(135deg, #111 30%, #555 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.scenarios-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.65;
}

/* --- Grid: 3 cols top, 2 cols bottom (5 cards) --- */
.scenarios-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 52px;
}

/* Base card width for Desktop (3 per row) */
.scenario-card {
  flex: 1 1 calc(33.333% - 24px);
  min-width: 320px;
  max-width: 380px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Tablet: 2 columns */
@media (max-width: 1100px) {
  .scenario-card {
    flex: 1 1 calc(50% - 24px);
    max-width: 450px;
  }
}

/* Mobile: 1 column */
@media (max-width: 680px) {
  .scenarios-section { padding: 60px 16px 70px; }
  .scenarios-header  { margin-bottom: 36px; }
  .scenarios-grid    { gap: 16px; }
  .scenario-card {
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
    padding: 24px 20px;
    gap: 12px;
  }
  .scenario-card h3  { font-size: 0.95rem; }
  .scenario-story    { font-size: 0.83rem; }
}

[data-theme="light"] .scenario-card {
  background: rgba(255,255,255,0.8);
  border-color: rgba(0,0,0,0.07);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

/* Hover glow overlay */
.scenario-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(circle at 20% 0%, rgba(255,107,0,0.06) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.scenario-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,107,0,0.2);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.scenario-card:hover::after { opacity: 1; }

/* --- Icon Box --- */
.scenario-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}

.scenario-icon {
  font-size: 1.35rem;
  color: #fff;
}

/* --- Tag Pill --- */
.scenario-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 100px;
  width: fit-content;
}

.tag-urgent   { background: rgba(255,107,0,0.13); color: #ff6b00; border: 1px solid rgba(255,107,0,0.28); }
.tag-business { background: rgba(59,130,246,0.13); color: #60a5fa; border: 1px solid rgba(59,130,246,0.28); }
.tag-family   { background: rgba(16,185,129,0.13); color: #34d399; border: 1px solid rgba(16,185,129,0.28); }
.tag-nomad    { background: rgba(139,92,246,0.13); color: #a78bfa; border: 1px solid rgba(139,92,246,0.28); }
.tag-budget   { background: rgba(245,158,11,0.13); color: #fbbf24; border: 1px solid rgba(245,158,11,0.28); }

/* --- Heading --- */
.scenario-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.4;
  margin: 0;
}

/* --- Story Quote --- */
.scenario-story {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
  font-style: italic;
  border-left: 3px solid rgba(255,107,0,0.22);
  padding-left: 13px;
  flex: 1; /* pushes CTA to bottom */
}

/* --- Meta Chips Row --- */
.scenario-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.scenario-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 4px 11px;
  border-radius: 100px;
  white-space: nowrap;
}

[data-theme="light"] .scenario-chip {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.08);
}

.scenario-chip i {
  color: var(--primary);
  font-size: 0.68rem;
}

/* --- CTA Arrow Link --- */
.scenario-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  margin-top: 4px;
  transition: gap 0.22s ease;
}

.scenario-cta-link i {
  font-size: 0.72rem;
  transition: transform 0.22s ease;
}

.scenario-cta-link:hover { gap: 11px; }
.scenario-cta-link:hover i { transform: translateX(3px); }

/* --- Bottom CTA Block --- */
.scenarios-bottom-cta {
  text-align: center;
  padding-top: 10px;
}

.scenarios-cta-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

/* --- Mobile fine-tuning --- */
@media (max-width: 640px) {
  .scenarios-section { padding: 60px 16px 70px; }
  .scenarios-header  { margin-bottom: 36px; }
  .scenario-card     { padding: 22px 18px; gap: 10px; }
  .scenario-card h3  { font-size: 0.95rem; }
  .scenario-story    { font-size: 0.83rem; }
}



/* --- BEAUTIFUL PREMIUM SPINNER --- */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.8 !important;
}

.btn-loading .btn-text {
  visibility: hidden;
  opacity: 0;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  top: calc(50% - 9px);
  left: calc(50% - 9px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Global Overlay Spinner */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.loading-overlay .spinner-large {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 107, 0, 0.1);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
  margin-bottom: 20px;
}

