/* ==========================================================================
   MEXTENSION OFFICIAL HOME — PREMIUM VANILLA STYLING LIBRARY (NO FRAMEWORKS)
   ========================================================================== */

/* 1. Global Variables & Themes */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Consolas, monospace;

  --bg-primary: #050505;
  --bg-secondary: #0a0a0c;
  --card-bg: rgba(10, 10, 10, 0.75);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-glow-amber: rgba(245, 158, 11, 0.15);
  --card-glow-blue: rgba(59, 130, 246, 0.15);

  --text-primary: #ededf0;
  --text-secondary: rgba(255, 255, 255, 0.55);
  --text-muted: rgba(255, 255, 255, 0.35);

  --color-briefloom: #ff9f0a;
  --color-draftrescue: #0a84ff;
  --color-accent-purple: #c084fc;
}

/* 2. Style Reset & Base Rules */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
}

/* Custom premium scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #030303;
}
::-webkit-scrollbar-thumb {
  background: #1a1a1a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2b2b2b;
}

/* Global selections */
::selection {
  background-color: rgba(245, 158, 11, 0.25);
  color: #ffe0b2;
}

/* Hide / Show elements based on app-route vs home-route class parsed in index.html */
.is-app-route #homepage-root {
  display: none !important;
}
.is-app-route #root {
  display: block !important;
}
.is-home-route #homepage-root {
  display: block;
}
.is-home-route #root {
  display: none !important;
}

/* 3. Ambient Flowing Background Animations & Grid Mesh */
.spatial-bg-container {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.spatial-grid-mesh {
  position: absolute;
  inset: 0;
  background-size: 40px 40px;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  mask-image: radial-gradient(circle at center, black 65%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at center, black 65%, transparent 100%);
  opacity: 0.8;
}

.ambient-aurora-blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  filter: blur(130px);
  opacity: 0.12;
  will-change: transform;
}

.blob-1 {
  top: 10%;
  left: 20%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.5) 0%, transparent 70%);
  animation: floatMotion1 28s infinite alternate ease-in-out;
}

.blob-2 {
  top: 40%;
  right: 15%;
  width: 35vw;
  height: 35vw;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.5) 0%, transparent 70%);
  animation: floatMotion2 24s infinite alternate ease-in-out;
}

.blob-3 {
  bottom: 10%;
  left: 30%;
  width: 42vw;
  height: 42vw;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.5) 0%, transparent 70%);
  animation: floatMotion3 32s infinite alternate ease-in-out;
}

@keyframes floatMotion1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.1); }
  100% { transform: translate(-30px, 40px) scale(0.95); }
}

@keyframes floatMotion2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-35px, 35px) scale(0.9); }
  100% { transform: translate(25px, -45px) scale(1.05); }
}

@keyframes floatMotion3 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 20px) scale(1.05); }
  100% { transform: translate(-40px, -30px) scale(0.9); }
}

/* 4. Elegant Sticky Header Navigation */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border-b: 1px solid transparent;
}

.nav-header.scrolled {
  background-color: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: #ffffff;
  letter-spacing: -0.02em;
  transition: opacity 0.25s;
}

.nav-logo-group:hover {
  opacity: 0.9;
}

.logo-badge {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #a855f7, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #000000;
  font-size: 1rem;
  font-family: var(--font-display);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.25);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

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

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

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

.btn-nav-action {
  background-color: #ffffff;
  color: #000000;
  border: none;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(255,255,255,0.05);
}

.btn-nav-action:hover {
  background-color: #e5e5e7;
  transform: translateY(-1px);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.25rem;
}

.mobile-drawer {
  display: none;
}

/* 5. Fluid Responsive Grid & Sections */
.main-wrapper {
  position: relative;
  z-index: 10;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* 6. Typography Masking & Accents */
.accent-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-color: rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.green-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* 7. Premium Hero Section */
.hero-section {
  padding: 9rem 0 5rem;
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.hero-headline strong {
  font-weight: 600;
  background: linear-gradient(135deg, #ffffff 40%, rgba(255, 255, 255, 0.55) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.btn-hero-explore {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #ffffff;
  color: #000000;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.9rem 1.8rem;
  border-radius: 100px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.btn-hero-explore svg {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hero-explore:hover {
  background-color: var(--bg-primary);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.5), 0 0 15px rgba(255,255,255,0.05);
}

.btn-hero-explore:hover svg {
  transform: translateX(3px);
}

/* 8. Products Showcase Layout */
.section-headline-group {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 3.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

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

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 6rem;
}

/* Extra premium features for cards */
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 2.2rem;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-h: 530px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.5s ease, transform 0.1s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
}

.card-amber-theme {
  --theme-accent: var(--color-briefloom);
}

.card-blue-theme {
  --theme-accent: var(--color-draftrescue);
}

/* Cursor soft glow effect */
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(350px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.06), transparent 50%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

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

/* Soft atmospheric bloom background */
.card-bloom-bg {
  position: absolute;
  top: -15%;
  right: -15%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background-color: var(--theme-accent);
  opacity: 0.03;
  filter: blur(60px);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.product-card:hover .card-bloom-bg {
  opacity: 0.08;
  transform: scale(1.15);
}

.product-card:hover {
  transform: translateY(-4px);
}

.card-amber-theme:hover {
  border-color: rgba(245, 158, 11, 0.25);
  box-shadow: 0 20px 40px rgba(0,0,0,0.45), 0 0 25px rgba(245, 158, 11, 0.04);
}

.card-blue-theme:hover {
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: 0 20px 40px rgba(0,0,0,0.45), 0 0 25px rgba(59, 130, 246, 0.04);
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
  z-index: 10;
}

.card-badge-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 16px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover .card-badge-icon {
  transform: scale(1.08) rotate(5deg);
}

.card-category-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.8rem;
  border-radius: 100px;
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--theme-accent);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.card-title-group {
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 10;
}

.card-item-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.card-teaser-subtext {
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--theme-accent);
  opacity: 0.9;
}

.card-desc-block {
  color: var(--text-secondary);
  font-size: 0.925rem;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 2rem;
  position: relative;
  z-index: 10;
}

/* Feature tags overlay inside cards */
.card-highlights-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 10;
}

.card-highlight-capsule {
  font-size: 0.725rem;
  font-weight: 300;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.65);
}

.card-actions-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 10;
}

.btn-card-explore {
  flex: 1;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.825rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background-color: transparent;
  color: var(--theme-accent);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.25s ease;
}

.btn-card-explore:hover {
  background-color: rgba(255, 255, 255, 0.03);
  border-color: var(--theme-accent);
  color: #ffffff;
}

.btn-card-chrome {
  flex: 1.4;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.825rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}

.btn-card-chrome:hover {
  background-color: var(--theme-accent);
  color: #000000;
  border-color: var(--theme-accent);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* 9. Future Extensions Layout */
.future-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 7rem;
}

.coming-soon-card {
  border: 1.5px dashed rgba(255, 255, 255, 0.06);
  border-radius: 1.8rem;
  padding: 3rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(10, 10, 10, 0.15);
  transition: all 0.35s ease;
  min-height: 180px;
}

.coming-soon-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background-color: rgba(255, 255, 255, 0.02);
}

.soon-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.04);
  text-transform: uppercase;
  margin-bottom: 1rem;
  transition: all 0.35s ease;
}

.coming-soon-card:hover .soon-badge {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

.soon-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.35s ease;
}

.coming-soon-card:hover .soon-title {
  color: #ffffff;
}

/* 10. About Section Block */
.about-section {
  padding: 6rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.about-text-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.2;
}

.about-paragraph {
  color: var(--text-secondary);
  font-size: 0.975rem;
  line-height: 1.65;
  font-weight: 300;
}

/* Structural diagram in About */
.about-visual-canvas {
  position: relative;
  height: 280px;
  background-color: rgba(10, 10, 10, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 2rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.canvas-mesh {
  position: absolute;
  inset: 0;
  background-size: 30px 30px;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  opacity: 0.4;
}

.canvas-central-island {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background-color: var(--bg-primary);
  border: 2px solid var(--color-accent-purple);
  box-shadow: 0 0 35px rgba(192, 132, 252, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  animation: canvasPulse 3.5s infinite ease-in-out;
}

.canvas-island-icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--color-accent-purple);
}

.float-satellite {
  position: absolute;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 10;
}

.sat-briefloom {
  background-color: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.2);
  top: 20%;
  left: 20%;
  animation: bounceY 5s infinite alternate ease-in-out;
}

.sat-draftrescue {
  background-color: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.2);
  top: 25%;
  right: 20%;
  animation: bounceY 6.2s infinite alternate ease-in-out;
}

.sat-energy {
  background-color: rgba(192, 132, 252, 0.05);
  border: 1px solid rgba(192, 132, 252, 0.2);
  bottom: 20%;
  left: 25%;
  color: var(--color-accent-purple);
  font-size: 0.85rem;
  animation: bounceY 5.5s infinite alternate ease-in-out;
}

.sat-secure {
  background-color: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
  bottom: 22%;
  right: 25%;
  color: #10b981;
  font-size: 0.85rem;
  animation: bounceY 6.8s infinite alternate ease-in-out;
}

@keyframes bounceY {
  0% { transform: translateY(0); }
  100% { transform: translateY(8px); }
}

@keyframes canvasPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 25px rgba(192, 132, 252, 0.15); }
  50% { transform: scale(1.04); box-shadow: 0 0 40px rgba(192, 132, 252, 0.25); }
}

.drawing-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* 11. Subtle IntersectionObserver Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.scroll-activated {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }

/* 12. Premium Layout Footer */
.main-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background-color: #030303;
  padding: 4.5rem 0 3rem;
  position: relative;
  z-index: 10;
}

.footer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
}

.footer-badge {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 4px;
  background: linear-gradient(135deg, #a855f7, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #000000;
  font-weight: 800;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.5rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.25s;
}

.footer-link:hover {
  color: #ffffff;
}

.footer-link.brief-light:hover {
  color: var(--color-briefloom);
}

.footer-link.rescue-light:hover {
  color: var(--color-draftrescue);
}

.footer-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.04);
  margin-bottom: 1.8rem;
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  gap: 1.5rem;
}

.version-stamp {
  font-family: var(--font-mono);
  font-size: 0.65rem;
}

/* 13. High Fidelity Responsive Breakpoints */
@media (max-width: 900px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .future-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .about-section {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-visual-canvas {
    height: 240px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none; /* Handled in mobile-drawer dynamically */
  }

  .mobile-menu-toggle {
    display: block;
  }

  .btn-nav-action {
    display: none;
  }

  /* Full screen or dropdown drawer styling */
  .mobile-drawer {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(5, 5, 5, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
  }

  .mobile-drawer.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-drawer .nav-link {
    font-size: 1.1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  }

  .mobile-drawer .btn-nav-action {
    display: block;
    text-align: center;
    padding: 0.8rem;
    font-size: 0.9rem;
  }

  .footer-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* ==========================================================================
   14. Premium MExtension Dynamic Modals (Privacy & Support)
   ========================================================================== */
.mx-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(3, 3, 4, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1.5rem;
}

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

.mx-modal-container {
  background-color: #08080a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2rem;
  width: 100%;
  max-width: 680px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 50px rgba(99, 102, 241, 0.06);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.mx-modal-backdrop.active .mx-modal-container {
  transform: translateY(0) scale(1);
}

.mx-modal-header {
  padding: 2rem 2.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mx-modal-header-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mx-modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.mx-modal-subtitle {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.mx-modal-close-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border-radius: 50%;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.mx-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: scale(1.05);
}

.mx-modal-body {
  padding: 2.2rem 2.5rem;
  overflow-y: auto;
  flex: 1;
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.mx-modal-body::-webkit-scrollbar {
  width: 6px;
}
.mx-modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.mx-modal-body h4 {
  font-family: var(--font-display);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.8rem 0 0.6rem 0;
}

.mx-modal-body h4:first-of-type {
  margin-top: 0;
}

.mx-modal-body p {
  font-weight: 300;
  margin-bottom: 1rem;
}

.mx-email-callout {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.25rem 1.75rem;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mx-email-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.mx-email-address {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 500;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.mx-email-actions {
  display: flex;
  gap: 0.5rem;
}

.mx-btn-primary {
  background-color: #ffffff;
  color: #000000;
  border: none;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mx-btn-primary:hover {
  background-color: #e5e5e7;
}

.mx-btn-secondary {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.mx-btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.policy-list-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.policy-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
  margin-top: 0.55rem;
  flex-shrink: 0;
}

.support-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.support-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.support-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.support-input {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #ffffff;
  font-size: 0.875rem;
  transition: border-color 0.2s ease;
}

.support-input:focus {
  border-color: rgba(99, 102, 241, 0.4);
  outline: none;
}

.support-textarea {
  resize: vertical;
  min-height: 100px;
}

.support-success-message {
  border: 1px solid rgba(16, 185, 129, 0.2);
  background-color: rgba(16, 185, 129, 0.05);
  color: #a7f3d0;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .mx-modal-header {
    padding: 1.5rem 1.5rem 1rem;
  }
  .mx-modal-body {
    padding: 1.5rem;
  }
  .mx-email-callout {
    padding: 1rem;
  }
}
