/* MSGORA B2B Messaging Infrastructure Platform - Design System & Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --bg-primary: #090d16;
  --bg-secondary: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);

  --accent-blue: #00a3ff;
  --accent-cyan: #38bdf8;
  --accent-glow: rgba(0, 163, 255, 0.3);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(0, 163, 255, 0.35);

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  background: radial-gradient(circle at 50% 0%, rgba(0, 163, 255, 0.12), transparent 45%),
              radial-gradient(circle at 100% 50%, rgba(14, 165, 233, 0.1), transparent 50%),
              var(--bg-primary);
}

/* Typography Utilities */
.font-display { font-family: var(--font-display); }
.font-mono { font-family: var(--font-mono); }

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 40%, #00a3ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-gradient-text, .blue-gradient-text {
  background: linear-gradient(135deg, #7dd3fc 0%, #00a3ff 50%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Layout Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-img {
  height: 3.75rem;
  max-height: 4rem;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(0, 163, 255, 0.45));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.brand-logo:hover .brand-img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 20px rgba(0, 163, 255, 0.7));
}

.brand-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #00a3ff, #0284c7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 0 20px var(--accent-glow);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.brand-tag {
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(0, 163, 255, 0.12);
  color: #38bdf8;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid rgba(0, 163, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
  box-shadow: 0 0 10px rgba(0, 163, 255, 0.15);
}

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

.mobile-nav-cta {
  display: none !important;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Language Selector */
.lang-selector {
  position: relative;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.4rem 0.8rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

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

.lang-dropdown {
  position: absolute;
  top: 120%;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  padding: 0.5rem;
  min-width: 140px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 100;
}

.lang-selector.active .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lang-option:hover, .lang-option.active {
  background: rgba(0, 163, 255, 0.15);
  color: #38bdf8;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #00a3ff, #0284c7);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 163, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 163, 255, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

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

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  padding-top: 9rem;
  padding-bottom: 6rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  background: rgba(0, 163, 255, 0.1);
  border: 1px solid var(--border-accent);
  color: #38bdf8;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-badge-pulse {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #00a3ff;
  box-shadow: 0 0 10px #00a3ff;
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  word-break: break-word;
  overflow-wrap: break-word;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.125rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

/* Stats Row */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.55rem);
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
  word-break: normal;
}

.stat-label {
  font-size: clamp(0.68rem, 2vw, 0.75rem);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* Real-Time Visual Dashboard Widget */
.hero-visual {
  position: relative;
}

.visual-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7),
              0 0 30px rgba(245, 158, 11, 0.05);
}

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

.card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #10b981;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.pulse-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #10b981;
  animation: pulse 2s infinite;
}

.metric-chart {
  height: 120px;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  padding: 1rem 0;
}

.bar {
  flex: 1;
  background: linear-gradient(to top, rgba(0, 163, 255, 0.2), rgba(0, 163, 255, 0.85));
  border-radius: 0.25rem 0.25rem 0 0;
  transition: height 0.5s ease;
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.feed-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
}

.feed-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.feed-badge {
  padding: 0.15rem 0.4rem;
  border-radius: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
}

.badge-delivered { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.badge-otp { background: rgba(0, 163, 255, 0.15); color: #38bdf8; }

/* Section Template */
.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem auto;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

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

/* Capabilities Grid */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.cap-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.cap-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.cap-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  background: rgba(0, 163, 255, 0.1);
  border: 1px solid var(--border-accent);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.cap-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.cap-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* How It Works (Steps) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  position: relative;
}

.step-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(0, 163, 255, 0.25);
  position: absolute;
  top: 1rem;
  right: 1.25rem;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Developer Experience Code Section */
.dev-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.code-window {
  background: #050811;
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
}

.code-dots {
  display: flex;
  gap: 0.4rem;
}

.dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.code-tabs {
  display: flex;
  gap: 0.5rem;
}

.code-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 0.35rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.code-tab.active {
  background: rgba(0, 163, 255, 0.2);
  color: #38bdf8;
}

.code-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #e2e8f0;
  line-height: 1.7;
  overflow-x: auto;
}

.code-keyword { color: #f472b6; }
.code-string { color: #a7f3d0; }
.code-function { color: #60a5fa; }
.code-comment { color: #64748b; }

/* Use Cases */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.usecase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.usecase-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
}

.usecase-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: rgba(0, 163, 255, 0.1);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.usecase-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.usecase-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, rgba(0, 163, 255, 0.15), rgba(15, 23, 42, 0.95));
  border: 1px solid var(--border-accent);
  border-radius: 2rem;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-title {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem 0;
  background: rgba(5, 8, 17, 0.8);
}

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

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 1rem;
  max-width: 300px;
}

.footer-column h4 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #38bdf8;
}

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

/* Responsive Media Queries & Mobile System */
@media (max-width: 1024px) {
  .hero-grid, .dev-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid, .usecases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-container {
    height: 4rem;
  }

  .brand-img {
    height: 3.25rem;
    max-height: 3.25rem;
  }

  .hero-section {
    padding-top: 6rem;
    padding-bottom: 4rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .capabilities-grid, .steps-grid, .usecases-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .cap-card, .step-card, .usecase-card {
    padding: 1.35rem;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 13, 22, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 2rem 1.5rem;
    flex-direction: column;
    gap: 1.25rem;
    z-index: 999;
    overflow-y: auto;
    align-items: stretch;
  }

  .nav-links.active {
    display: flex;
    animation: navDrawerIn 0.25s ease-out;
  }

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

  .nav-links li {
    width: 100%;
  }

  .mobile-nav-cta {
    display: block !important;
  }

  .nav-links .nav-link {
    display: block;
    width: 100%;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
  }

  .mobile-nav-cta {
    margin-top: 1rem;
    width: 100%;
  }

  .mobile-nav-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 1.25rem;
    transition: all 0.2s ease;
  }

  .mobile-toggle:active {
    background: rgba(0, 163, 255, 0.2);
    border-color: var(--border-accent);
  }

  .code-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .code-tabs {
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .code-tabs::-webkit-scrollbar {
    display: none;
  }

  .code-tab {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.4rem 0.75rem;
  }

  .code-body {
    font-size: 0.8rem;
    padding: 1.1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Prevent iOS font zoom on input focus */
  input[type="text"], input[type="tel"], textarea {
    font-size: 16px !important;
  }
}

@media (max-width: 576px) {
  .nav-right-btn {
    display: none;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .visual-card {
    padding: 1rem;
    border-radius: 1.25rem;
  }

  .feed-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .cta-banner {
    padding: 2.5rem 1.25rem;
    border-radius: 1.25rem;
  }

  .cta-banner .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .stats-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .phone-input-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .country-select-btn {
    width: 100%;
    justify-content: space-between;
  }
}

/* Lead Application Modal Styles - Mobile Scroll Optimized */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: rgba(5, 8, 17, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-card {
  background: #0f172a;
  border: 1px solid var(--border-accent);
  border-radius: 1.5rem;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  margin: auto;
  padding: clamp(1.25rem, 5vw, 2.25rem);
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 163, 255, 0.2);
  -webkit-overflow-scrolling: touch;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 2.5rem;
  height: 2.5rem;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close:hover, .modal-close:active {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-right: 1.5rem;
}

.modal-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: rgba(0, 163, 255, 0.12);
  border: 1px solid var(--border-accent);
  color: #00a3ff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem auto;
  box-shadow: 0 0 20px rgba(0, 163, 255, 0.2);
}

.modal-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.5vw, 1.4rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.modal-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.form-group input, .form-group textarea {
  background: #050811;
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: #ffffff;
  font-family: var(--font-sans);
  transition: all 0.2s ease;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: #00a3ff;
  box-shadow: 0 0 12px rgba(0, 163, 255, 0.3);
}

.btn-block {
  width: 100%;
  justify-content: center;
  padding: 0.85rem;
  font-size: 0.95rem;
  margin-top: 0.5rem;
  min-height: 48px;
}

.form-status {
  padding: 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.8rem;
  text-align: center;
  font-weight: 600;
}

.form-status.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.form-status.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* Country Selector Component Styles */
.phone-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.phone-input-wrapper input {
  flex: 1;
  min-width: 0;
}

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

.country-select-btn {
  background: #050811;
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  padding: 0.75rem 0.85rem;
  color: #ffffff;
  font-size: 0.875rem;
  font-family: var(--font-mono);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.country-select-btn:hover, .country-select-container.active .country-select-btn {
  border-color: #00a3ff;
  box-shadow: 0 0 12px rgba(0, 163, 255, 0.25);
  background: rgba(0, 163, 255, 0.08);
}

.country-arrow {
  font-size: 0.75rem;
  color: var(--text-secondary);
  transition: transform 0.2s ease;
}

.country-select-container.active .country-arrow {
  transform: rotate(180deg);
}

.country-dropdown {
  position: absolute;
  top: 115%;
  left: 0;
  background: #0f172a;
  border: 1px solid var(--border-accent);
  border-radius: 0.85rem;
  width: min(240px, 82vw);
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 20px 30px -5px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 163, 255, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 100;
  padding: 0.35rem;
  -webkit-overflow-scrolling: touch;
}

.country-select-container.active .country-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.country-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.country-option:hover, .country-option.active {
  background: rgba(0, 163, 255, 0.15);
  color: #ffffff;
}

.country-dial-code {
  margin-left: auto;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #38bdf8;
  font-size: 0.75rem;
}
