/* ==========================================================================
   Zerox Mail - Global Stylesheet & Design System
   Sovereign Encrypted Mail Platform for Canada 🇨🇦 & USA 🇺🇸
   ========================================================================== */

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

:root {
  /* Color Palette - Futuristic Cyber Theme */
  --bg-main: #070a14;
  --bg-surface: #0e1424;
  --bg-card: rgba(14, 20, 36, 0.75);
  --bg-card-hover: rgba(22, 31, 54, 0.85);
  --bg-input: rgba(11, 16, 30, 0.85);

  /* Primary & Accent Gradients */
  --primary-cyan: #00f2fe;
  --primary-purple: #7f56d9;
  --primary-blue: #4facfe;
  --primary-indigo: #6366f1;
  --primary-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #7f56d9 100%);
  --primary-gradient-alt: linear-gradient(135deg, #7f56d9 0%, #6366f1 50%, #00f2fe 100%);
  --primary-glow: rgba(0, 242, 254, 0.35);

  /* Country Regional Identity Accents */
  --ca-red: #ff385c;
  --ca-red-glow: rgba(255, 56, 92, 0.3);
  --ca-red-gradient: linear-gradient(135deg, #ff385c 0%, #e11d48 100%);

  --us-blue: #3b82f6;
  --us-blue-glow: rgba(59, 130, 246, 0.3);
  --us-blue-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);

  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #070a14;

  /* Borders & Shadows */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(0, 242, 254, 0.45);
  --glass-border: 1px solid rgba(255, 255, 255, 0.12);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(0, 242, 254, 0.25);

  /* Radius & Transitions */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
body.light-theme {
  --bg-main: #f0f4fa;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #ffffff;
  --bg-input: #e2e8f0;
  --text-primary: #070a14;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-active: rgba(0, 153, 255, 0.45);
  --glass-border: 1px solid rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 30px rgba(0, 153, 255, 0.2);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-main);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Background Animated Gradient Mesh */
.bg-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  background: 
    radial-gradient(circle at 15% 20%, rgba(0, 242, 254, 0.14) 0%, transparent 42%),
    radial-gradient(circle at 85% 75%, rgba(127, 86, 217, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

/* Particle Grid Overlay */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background-image: linear-gradient(var(--border-subtle) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 20%, transparent 80%);
  pointer-events: none;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-ca {
  background: var(--ca-red-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-us {
  background: var(--us-blue-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Reusable Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-card:hover {
  border-color: var(--border-active);
  box-shadow: var(--shadow-glow);
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.1rem 2rem;
  background: rgba(7, 10, 20, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: var(--glass-border);
  transition: all var(--transition-fast);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo Component - Dynamic & Editable Text */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  cursor: pointer;
}

.brand-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-cyan);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.25);
  transition: transform var(--transition-normal);
}

.brand-logo:hover .brand-icon-wrapper {
  transform: rotate(-8deg) scale(1.08);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.45);
}

.brand-icon-wrapper svg {
  width: 26px;
  height: 26px;
}

.logo-text-holder {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.na-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--primary-cyan);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Nav Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-cyan);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #070a14;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.35);
}

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

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

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

.btn-outline-na {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(0, 242, 254, 0.4);
}

.btn-outline-na:hover {
  background: rgba(0, 242, 254, 0.12);
  border-color: var(--primary-cyan);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1.1rem;
  border-radius: var(--radius-md);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: var(--glass-border);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

/* Hero Section Layout */
.hero-section {
  padding: 9.5rem 2rem 5rem;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.28);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-cyan);
  margin-bottom: 1.5rem;
}

.hero-pill-icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-cyan);
  box-shadow: 0 0 10px var(--primary-cyan);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: 3.6rem;
  line-height: 1.12;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.18rem;
  color: var(--text-secondary);
  margin-bottom: 2.2rem;
  max-width: 560px;
}

/* Upgraded Handle Checker Widget with Domain Select Dropdown */
.handle-checker-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  padding: 0.45rem 0.45rem 0.45rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-glow);
  max-width: 550px;
  margin-bottom: 1rem;
}

.handle-input-wrap {
  display: flex;
  align-items: center;
  flex: 1;
}

.handle-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 500;
  width: 100%;
}

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

.domain-select-dropdown {
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--primary-cyan);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
}

.domain-select-dropdown option {
  background: var(--bg-surface);
  color: var(--text-primary);
}

/* Feature Badges under Hero */
.hero-trust-badges {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin-top: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.trust-item svg {
  color: var(--primary-cyan);
}

/* Hero Visual & Mockup Window */
.hero-visual-container {
  position: relative;
}

.floating-badge {
  position: absolute;
  z-index: 10;
  background: rgba(14, 20, 36, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: var(--glass-border);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: float-around 6s ease-in-out infinite alternate;
}

.badge-top-right {
  top: -20px;
  right: -20px;
}

.badge-bottom-left {
  bottom: -20px;
  left: -20px;
  animation-delay: -3s;
}

@keyframes float-around {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

.hero-mockup-window {
  background: var(--bg-surface);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 242, 254, 0.15);
}

.mockup-header {
  background: rgba(7, 10, 20, 0.9);
  padding: 0.8rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: var(--glass-border);
}

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

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.mockup-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: monospace;
}

.mockup-body {
  padding: 1.5rem;
}

.mockup-email-card {
  background: var(--bg-card);
  border: var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.mockup-email-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.mockup-sender {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sender-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #070a14;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.sender-info strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.sender-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.badge-encrypted {
  font-size: 0.75rem;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.mockup-email-subject {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.mockup-email-preview {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Section Shared Headers */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-tag {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--primary-cyan);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

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

/* Features Grid Section */
.features-section {
  padding: 6rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
}

.feature-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-cyan);
  margin-bottom: 1.5rem;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

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

/* North America Sovereignty & Node Map Section */
.na-sovereignty-section {
  padding: 6rem 2rem;
  background: rgba(14, 20, 36, 0.4);
  border-top: var(--glass-border);
  border-bottom: var(--glass-border);
}

.na-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.na-map-visual {
  background: var(--bg-surface);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
}

.node-filter-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}

.node-filter-btn {
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: var(--glass-border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.node-filter-btn.active, .node-filter-btn:hover {
  background: rgba(0, 242, 254, 0.15);
  color: var(--primary-cyan);
  border-color: rgba(0, 242, 254, 0.3);
}

.na-datacenter-nodes {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-height: 330px;
  overflow-y: auto;
  padding-right: 0.3rem;
}

.node-card {
  background: var(--bg-card);
  border: var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color var(--transition-fast);
}

.node-card:hover {
  border-color: var(--primary-cyan);
}

.node-city {
  font-weight: 600;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.node-ping {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--primary-cyan);
  background: rgba(0, 242, 254, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
}

/* Webmail Preview Interactive Sandbox Frame */
.webmail-preview-section {
  padding: 6rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.webmail-app-frame {
  background: var(--bg-surface);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 240px 340px 1fr;
  min-height: 580px;
  overflow: hidden;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7);
}

.webmail-sidebar {
  background: rgba(7, 10, 20, 0.95);
  padding: 1.5rem;
  border-right: var(--glass-border);
  display: flex;
  flex-direction: column;
}

.compose-btn-wrap {
  margin-bottom: 1.5rem;
}

.nav-folder-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-folder-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.nav-folder-item:hover, .nav-folder-item.active {
  background: rgba(0, 242, 254, 0.12);
  color: var(--primary-cyan);
}

.folder-icon-text {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.folder-count {
  background: var(--primary-cyan);
  color: #070a14;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-full);
}

.webmail-list-pane {
  border-right: var(--glass-border);
  display: flex;
  flex-direction: column;
  background: rgba(14, 20, 36, 0.6);
}

.list-pane-header {
  padding: 1rem;
  border-bottom: var(--glass-border);
}

.webmail-search-box {
  background: var(--bg-input);
  border: var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.webmail-search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  width: 100%;
}

.email-items-container {
  overflow-y: auto;
  flex: 1;
}

.email-item {
  padding: 1.1rem;
  border-bottom: var(--glass-border);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.email-item:hover, .email-item.active {
  background: rgba(0, 242, 254, 0.08);
}

.email-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.email-item-sender {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.email-item-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.email-item-subject {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.35rem;
}

.email-item.unread .email-item-subject {
  color: var(--text-primary);
  font-weight: 700;
}

.webmail-detail-pane {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: var(--bg-surface);
}

.detail-email-subject {
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.detail-sender-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: var(--glass-border);
}

.detail-body-content {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  white-space: pre-line;
}

/* Pricing Section */
.pricing-section {
  padding: 6rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.pricing-currency-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.currency-btn {
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: var(--glass-border);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.currency-btn.active {
  background: var(--primary-cyan);
  color: #070a14;
  border-color: var(--primary-cyan);
}

.pricing-billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.toggle-switch {
  width: 52px;
  height: 28px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  padding: 3px;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.toggle-switch.active {
  background: var(--primary-cyan);
}

.toggle-circle {
  width: 22px;
  height: 22px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform var(--transition-fast);
}

.toggle-switch.active .toggle-circle {
  transform: translateX(24px);
  background: #070a14;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.pricing-card {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--primary-cyan);
  box-shadow: var(--shadow-glow);
  transform: scale(1.03);
}

.featured-tag {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-gradient);
  color: #070a14;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.25rem 1rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.plan-name {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.plan-price {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
}

.plan-price span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.plan-features {
  list-style: none;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.plan-features li svg {
  color: var(--primary-cyan);
  flex-shrink: 0;
}

/* Modals System */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  background: var(--bg-surface);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-backdrop.active .modal-window {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

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

.modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.modal-header h2 {
  font-size: 1.6rem;
  margin-bottom: 0.35rem;
}

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

/* Wizard Indicators */
.wizard-steps-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}

.wizard-steps-bar::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.step-node {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--border-subtle);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all var(--transition-fast);
}

.step-node.active {
  border-color: var(--primary-cyan);
  background: var(--primary-cyan);
  color: #070a14;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-cyan);
}

.input-with-select {
  display: flex;
  gap: 0.5rem;
}

.email-suffix-select {
  background: var(--bg-input);
  border: var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--primary-cyan);
  font-weight: 700;
  padding: 0 0.75rem;
  outline: none;
  cursor: pointer;
}

.strength-meter-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  margin-top: 0.5rem;
  overflow: hidden;
}

.strength-meter-fill {
  height: 100%;
  width: 0%;
  background: #ef4444;
  transition: width var(--transition-fast), background var(--transition-fast);
}

/* Toast System */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast-msg {
  background: var(--bg-surface);
  border: 1px solid var(--border-active);
  box-shadow: var(--shadow-lg);
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Footer */
.site-footer {
  background: rgba(4, 7, 15, 0.95);
  border-top: var(--glass-border);
  padding: 5rem 2rem 2rem;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 4rem;
  margin-bottom: 4rem;
}

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

.footer-heading {
  font-size: 1rem;
  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.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-cyan);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-subtitle {
    margin: 0 auto 2rem;
  }

  .handle-checker-box {
    margin: 0 auto 1.5rem;
  }

  .hero-trust-badges {
    justify-content: center;
  }

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

  .na-container {
    grid-template-columns: 1fr;
  }

  .webmail-app-frame {
    grid-template-columns: 200px 1fr;
  }

  .webmail-detail-pane {
    display: none;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .features-grid, .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: none;
  }

  .webmail-app-frame {
    grid-template-columns: 1fr;
  }

  .webmail-list-pane {
    display: none;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }

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