/* ==========================================================================
   GlobalWhoisData Design System — Institutional Domain Intelligence & WHOIS Feeds
   Dual-Theme Engine: Crisp Alabaster Light (Default) & Obsidian Dark
   Handcrafted Bespoke Architectural System (Zero AI Templates)
   ========================================================================== */

:root {
  /* Eye-Friendly Engineering Design System (Light Default) */
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-highlight: #f1f5f9;
  
  --nav-bg: rgba(255, 255, 255, 0.90);
  --ticker-bg: #0f172a;
  --ticker-text: #cbd5e1;
  --footer-bg: #0f172a;
  --footer-text: #94a3b8;
  
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-active: #059669;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  
  --accent-primary: #059669;
  --accent-primary-hover: #047857;
  --accent-cyan: #0d9488;
  --accent-emerald: #059669;
  --accent-emerald-hover: #047857;
  --accent-amber: #d97706;
  --accent-rose: #dc2626;
  
  /* Harmonious Professional Gradients */
  --grad-blue: linear-gradient(135deg, #047857 0%, #059669 50%, #10b981 100%);
  --grad-emerald: linear-gradient(135deg, #065f46 0%, #047857 50%, #059669 100%);
  --grad-hero-text: linear-gradient(135deg, #065f46 0%, #059669 50%, #0d9488 100%);
  --grad-rainbow: linear-gradient(135deg, #065f46 0%, #059669 50%, #14b8a6 100%);
  --grad-aurora: linear-gradient(135deg, #0d9488 0%, #059669 55%, #10b981 100%);
  --grad-accent-text: linear-gradient(135deg, #047857 0%, #10b981 100%);
  --grad-violet: linear-gradient(135deg, #065f46 0%, #047857 55%, #059669 100%);
  --grad-pink: linear-gradient(135deg, #047857 0%, #0d9488 55%, #10b981 100%);
  --grad-sky: linear-gradient(135deg, #0d9488 0%, #2dd4bf 100%);
  
  --grid-line: rgba(5, 150, 105, 0.04);
  --grid-dot: rgba(5, 150, 105, 0.06);

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Menlo, Consolas, monospace;
  
  /* Subtle, Depth-Engineered Drop Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-raise: 0 8px 24px rgba(15, 23, 42, 0.10);
  --shadow-inset: inset 0 2px 4px rgba(15, 23, 42, 0.05);
  --shadow-glow: 0 0 20px rgba(5, 150, 105, 0.22);
  
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-full: 999px;
  
  --transition-fast: 160ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Restful Slate Theme */
[data-theme="dark"] {
  --bg-base: #0b0f19;
  --bg-surface: #111827;
  --bg-surface-elevated: #1e293b;
  --bg-surface-highlight: #243044;
  
  --nav-bg: rgba(11, 15, 25, 0.90);
  --ticker-bg: #070a12;
  --ticker-text: #94a3b8;
  --footer-bg: #070a12;
  --footer-text: #94a3b8;
  
  --border-subtle: #1f293d;
  --border-medium: #2e3b52;
  --border-active: #10b981;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0b0f19;
  
  --accent-primary: #10b981;
  --accent-primary-hover: #34d399;
  --accent-cyan: #2dd4bf;
  --accent-emerald: #10b981;
  --accent-emerald-hover: #34d399;
  --accent-amber: #f59e0b;
  --accent-rose: #f87171;
  
  --grad-blue: linear-gradient(135deg, #059669 0%, #10b981 100%);
  --grad-emerald: linear-gradient(135deg, #059669 0%, #10b981 100%);
  --grad-hero-text: linear-gradient(135deg, #34d399 0%, #10b981 50%, #6ee7b7 100%);
  --grad-rainbow: linear-gradient(135deg, #34d399 0%, #10b981 50%, #2dd4bf 100%);
  --grad-aurora: linear-gradient(135deg, #2dd4bf 0%, #10b981 55%, #34d399 100%);
  --grad-accent-text: linear-gradient(135deg, #34d399 0%, #10b981 100%);

  --grid-line: rgba(255, 255, 255, 0.03);
  --grid-dot: rgba(255, 255, 255, 0.05);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-raise: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.3);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--bg-base);
  background: 
    radial-gradient(1000px 500px at 80% -5%, rgba(5, 150, 105, 0.04) 0%, transparent 60%),
    radial-gradient(800px 450px at 5% 15%, rgba(13, 148, 136, 0.03) 0%, transparent 55%),
    #f8fafc;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-primary);
  line-height: 1.6;
}

[data-theme="dark"] body {
  background: 
    radial-gradient(1000px 500px at 80% -5%, rgba(16, 185, 129, 0.05) 0%, transparent 60%),
    radial-gradient(800px 450px at 5% 15%, rgba(45, 212, 191, 0.03) 0%, transparent 55%),
    #0b0f19;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Heading & Typographic Hierarchy */
h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.18;
}

h1 { letter-spacing: -0.03em; }

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-emerald);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
  padding: 0.45rem 1rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-soft);
}

[data-theme="dark"] .section-tag {
  color: var(--accent-emerald);
  background-color: var(--bg-surface-elevated);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-soft);
}

/* Typography Utilities */
.font-mono { font-family: var(--font-mono); }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1.15; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.text-primary { color: var(--text-primary); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-cyan { color: var(--accent-cyan); }
.text-emerald { color: var(--accent-emerald); }
.text-amber { color: var(--accent-amber); }
.text-rose { color: var(--accent-rose); }
.text-blue { color: var(--accent-primary); }

/* Layout & Containers */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Telemetry Top Bar */
.telemetry-ticker {
  background-color: var(--ticker-bg);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.5rem 0;
  font-size: 0.75rem;
  color: var(--ticker-text);
  transition: var(--transition-fast);
}

.ticker-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  overflow-x: auto;
  white-space: nowrap;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

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

@keyframes pulse-ring {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Header & Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 0;
  transition: var(--transition-normal);
}

.navbar .container {
  max-width: 1560px;
  width: 100%;
  padding-left: clamp(0.75rem, 2vw, 1.5rem);
  padding-right: clamp(0.75rem, 2vw, 1.5rem);
  box-sizing: border-box;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: clamp(0.5rem, 1.5vw, 1.25rem);
  min-width: 0;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  flex-shrink: 0;
  width: auto;
  min-width: auto;
}

.logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--grad-blue);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}

.navbar nav,
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.15rem, 0.4vw, 0.35rem);
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.nav-link {
  --nav-pad-x: 0.85rem;
  font-size: 0.865rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  position: relative;
  padding: 0.45rem var(--nav-pad-x);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.nav-link:hover {
  color: var(--accent-primary);
  background-color: rgba(5, 150, 105, 0.08);
}

.nav-link.active {
  color: var(--accent-primary);
  background-color: rgba(5, 150, 105, 0.1);
  font-weight: 700;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: var(--nav-pad-x);
  right: var(--nav-pad-x);
  height: 2.5px;
  background: var(--accent-primary);
  border-radius: var(--radius-full);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  pointer-events: none;
}

.nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Auth-conditional Navigation Rules */
.nav-auth-only,
li.nav-auth-only,
a.mobile-nav-link.nav-auth-only {
  display: none !important;
}

[data-authenticated="true"] .nav-auth-only,
body.is-authenticated .nav-auth-only {
  display: inline-flex !important;
}

[data-authenticated="true"] li.nav-auth-only,
body.is-authenticated li.nav-auth-only {
  display: list-item !important;
}

[data-authenticated="true"] a.mobile-nav-link.nav-auth-only,
body.is-authenticated a.mobile-nav-link.nav-auth-only {
  display: block !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: clamp(0.35rem, 0.75vw, 0.75rem);
  flex-shrink: 0;
  margin-left: auto;
  min-width: 0;
}

/* Dedicated User Profile & Authentication Button Styling */
.nav-actions .btn-nav-auth,
#vault-user-logout-btn,
button.btn-nav-auth {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  font-weight: 700 !important;
  font-size: 0.825rem;
  padding: 0.42rem 0.95rem;
  border-radius: var(--radius-full);
  line-height: 1.25;
  letter-spacing: -0.01em;
  box-sizing: border-box;
  overflow: visible;
  text-overflow: clip;
  max-width: none;
}

.nav-actions .btn-secondary.btn-nav-auth,
#vault-user-logout-btn {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.nav-actions .btn-secondary.btn-nav-auth:hover,
#vault-user-logout-btn:hover {
  background-color: var(--bg-surface-highlight);
  color: var(--accent-primary-hover);
  border-color: var(--accent-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .nav-actions .btn-secondary.btn-nav-auth,
[data-theme="dark"] #vault-user-logout-btn {
  background-color: rgba(30, 41, 59, 0.9);
  border-color: rgba(255, 255, 255, 0.18);
  color: #F8FAFC;
}

[data-theme="dark"] .nav-actions .btn-secondary.btn-nav-auth:hover,
[data-theme="dark"] #vault-user-logout-btn:hover {
  background-color: rgba(51, 65, 85, 0.95);
  border-color: var(--accent-cyan);
  color: #FFFFFF;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.theme-toggle-btn:hover {
  background-color: var(--bg-surface-highlight);
  color: var(--text-primary);
  border-color: var(--border-medium);
  transform: translateY(-1px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.45rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 0;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--grad-blue);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
}

.btn-primary:hover {
  background: var(--grad-blue);
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.35);
  transform: translateY(-2px);
  color: #FFFFFF;
}

.btn-emerald {
  background: var(--grad-emerald);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
}

.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.35);
  color: #FFFFFF;
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  color: var(--accent-primary-hover);
  box-shadow: var(--shadow-raise);
  border-color: var(--border-medium);
}

[data-theme="dark"] .btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

[data-theme="dark"] .btn-secondary:hover {
  background: var(--bg-surface-highlight);
  color: #FFFFFF;
  border-color: var(--border-medium);
  box-shadow: var(--shadow-raise);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background-color: rgba(5, 150, 105, 0.06);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 0.95rem 2.1rem;
  font-size: 1.05rem;
}

.btn-block {
  display: flex;
  width: 100%;
  justify-content: center;
}

.btn[disabled],
.btn:disabled,
button:disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Badges & Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.pill-blue {
  background-color: #ecfdf5;
  border-color: #a7f3d0;
  color: var(--accent-primary);
}

.pill-emerald {
  background-color: #ecfdf5;
  border-color: #a7f3d0;
  color: var(--accent-emerald-hover);
}

.pill-amber {
  background-color: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}

.pill-rose {
  background-color: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

[data-theme="dark"] .pill-blue {
  background-color: rgba(5, 150, 105, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

[data-theme="dark"] .pill-emerald {
  background-color: rgba(5, 150, 105, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

[data-theme="dark"] .pill-amber {
  background-color: rgba(217, 119, 6, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fcd34d;
}

[data-theme="dark"] .pill-rose {
  background-color: rgba(220, 38, 38, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25em 0.7em;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
}

.badge-open { background: #eff6ff; color: var(--accent-primary); }
.badge-pending { background: #fffbeb; color: #b45309; }
.badge-closed { background: var(--border-subtle); color: var(--text-secondary); }
.badge-active { background: #ecfdf5; color: var(--accent-emerald-hover); }
.badge-suspended { background: #fef2f2; color: #b91c1c; }

[data-theme="dark"] .badge-open { background: rgba(5, 150, 105, 0.18); color: #6ee7b7; }
[data-theme="dark"] .badge-pending { background: rgba(217, 119, 6, 0.18); color: #fcd34d; }
[data-theme="dark"] .badge-closed { background: rgba(100, 116, 139, 0.2); color: var(--text-muted); }
[data-theme="dark"] .badge-active { background: rgba(5, 150, 105, 0.18); color: #6ee7b7; }
[data-theme="dark"] .badge-suspended { background: rgba(220, 38, 38, 0.18); color: #fca5a5; }

/* Hero Section */
.hero-section {
  padding: 5rem 0 3.75rem;
  text-align: center;
  position: relative;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-emerald-hover);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-soft);
}

[data-theme="dark"] .hero-pill-badge {
  color: #34d399;
  background-color: var(--bg-surface-elevated);
  border-color: var(--border-medium);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.16;
  margin-bottom: 1.35rem;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-primary);
}

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

[data-theme="dark"] .gradient-text {
  background: var(--grad-rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.accent-title {
  display: block;
  background: var(--grad-hero-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

[data-theme="dark"] .accent-title {
  background: var(--grad-hero-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.metric-strip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 2rem;
  padding: 0.75rem 1.75rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-soft);
}

.metric-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.metric-item strong {
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

/* Interactive Search Engine Container */
.search-widget-container {
  max-width: 1040px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-raise);
  text-align: left;
}

.search-input-group {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
}

.search-icon {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-input {
  width: 100%;
  background-color: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem 0.85rem 3rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-inset);
}

.search-input:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 1px;
  background-color: var(--bg-surface-elevated);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-inset), 0 0 0 3px rgba(5, 150, 105, 0.16);
}

[data-theme="dark"] .search-input {
  background-color: var(--bg-surface-highlight);
  box-shadow: var(--shadow-inset);
}

[data-theme="dark"] .search-input:focus {
  background-color: var(--bg-surface-elevated);
  border-color: var(--accent-primary);
}

.search-filter-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.tag-btn {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.775rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.tag-btn:hover, .tag-btn.active {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* Results Data Table */
.data-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-soft);
  scrollbar-width: thin;
  scrollbar-color: var(--border-medium) transparent;
}

.data-table-wrapper::-webkit-scrollbar {
  height: 6px;
}

.data-table-wrapper::-webkit-scrollbar-track {
  background: var(--bg-surface);
}

.data-table-wrapper::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: var(--radius-full);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.data-table th {
  background-color: rgba(246, 249, 255, 0.95);
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--border-subtle);
}

[data-theme="dark"] .data-table th {
  background-color: rgba(24, 32, 50, 0.95);
  color: var(--text-muted);
}

.data-table td {
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  white-space: nowrap;
}

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

.data-table tr:hover td {
  background-color: rgba(5, 150, 105, 0.04);
}

.domain-cell {
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.masked-data {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent-primary);
  font-family: var(--font-mono);
  background-color: rgba(5, 150, 105, 0.08);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(5, 150, 105, 0.35);
}

/* Terminal Chrome & Engineering Frame */
.terminal-window {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-raise);
  overflow: hidden;
  text-align: left;
  position: relative;
}

.terminal-header {
  background: var(--bg-surface-highlight);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-dot.red { background: #FF5F56; }
.terminal-dot.yellow { background: #FFBD2E; }
.terminal-dot.green { background: #27C93F; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  background: #ecfdf5;
  color: var(--accent-emerald-hover);
  border: 1px solid rgba(5, 150, 105, 0.28);
  font-weight: 700;
}

/* Architectural Bento Grid System (Custom Asymmetric Composition) */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.bento-col-12 { grid-column: span 12; }
.bento-col-8 { grid-column: span 8; }
.bento-col-7 { grid-column: span 7; }
.bento-col-6 { grid-column: span 6; }
.bento-col-5 { grid-column: span 5; }
.bento-col-4 { grid-column: span 4; }

@media (max-width: 960px) {
  .bento-col-8, .bento-col-7, .bento-col-6, .bento-col-5, .bento-col-4 {
    grid-column: span 12;
  }
}

.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.bento-card:hover {
  border-color: rgba(5, 150, 105, 0.3);
  box-shadow: var(--shadow-raise);
  transform: translateY(-5px);
}

.bento-card.highlight {
  border-color: rgba(5, 150, 105, 0.4);
  background: linear-gradient(180deg, rgba(5, 150, 105, 0.05) 0%, var(--bg-surface) 100%);
}

[data-theme="dark"] .bento-card.highlight {
  border-color: rgba(5, 150, 105, 0.4);
  background: linear-gradient(180deg, rgba(5, 150, 105, 0.10) 0%, var(--bg-surface) 100%);
}

/* Side-by-side Raw vs Cleaned Data Inspection */
.data-diff-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

@media (max-width: 640px) {
  .data-diff-wrapper {
    grid-template-columns: 1fr;
  }
}

.data-diff-column {
  background: var(--bg-surface-highlight);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.data-diff-column.success {
  border-color: rgba(5, 150, 105, 0.35);
  background: rgba(5, 150, 105, 0.06);
}

.data-diff-header {
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.data-diff-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.data-diff-row:last-child {
  border-bottom: none;
}

/* Distribution Meters */
.tld-distribution-bar {
  display: flex;
  height: 10px;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 1.25rem 0 0.75rem;
  background: var(--bg-surface-highlight);
}

.tld-segment {
  height: 100%;
  transition: width 300ms ease;
}

/* Agency Playbooks Grid */
.playbooks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.playbook-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.playbook-card:hover {
  border-color: rgba(5, 150, 105, 0.35);
  transform: translateY(-5px);
  box-shadow: var(--shadow-raise);
}

.playbook-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
}

/* Feature Cards Grid */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
}

.card:hover {
  border-color: rgba(5, 150, 105, 0.3);
  transform: translateY(-5px);
  box-shadow: var(--shadow-raise);
}

.card-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #eff6ff;
  box-shadow: var(--shadow-inset);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  margin-bottom: 1.25rem;
}

[data-theme="dark"] .card-icon {
  background: rgba(5, 150, 105, 0.16);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: var(--text-primary);
}

.card-description {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* WHOIS Data Benefits Grid */
.whois-benefits-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin-top: 2.75rem;
}

.benefit-col-4 {
  grid-column: span 4;
}

.benefit-col-6 {
  grid-column: span 6;
}

.whois-benefit-card {
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.whois-benefit-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 209, 255, 0.4);
  box-shadow: var(--shadow-raise);
}

@media (max-width: 1024px) {
  .benefit-col-4 {
    grid-column: span 6;
  }
  .benefit-col-4:last-of-type {
    grid-column: span 12;
  }
  .benefit-col-6 {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .benefit-col-4,
  .benefit-col-6 {
    grid-column: span 12;
  }
}

/* Pricing Grid */
.pricing-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.pricing-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  box-shadow: var(--shadow-soft);
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-raise);
  border-color: rgba(5, 150, 105, 0.3);
}

.pricing-card.featured {
  border: 2px solid var(--accent-primary);
  background: linear-gradient(180deg, rgba(5, 150, 105, 0.05) 0%, var(--bg-surface) 100%);
  box-shadow: var(--shadow-raise), 0 0 35px rgba(5, 150, 105, 0.15);
}

.featured-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-blue);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 1.1rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
}

.price-display {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin: 1.25rem 0;
}

.price-currency {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

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

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

.pricing-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.pricing-feature-item svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Billing & Currency Controls */
.pricing-controls-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem auto 0;
}

.billing-switcher {
  display: inline-flex;
  align-items: center;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-soft);
}

.billing-opt {
  padding: 0.5rem 1.35rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-secondary);
  border: none;
  background: transparent;
  transition: all var(--transition-fast);
}

.billing-opt.active {
  background: var(--grad-blue);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

.currency-switcher {
  display: inline-flex;
  align-items: center;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-soft);
}

.currency-opt {
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-secondary);
  border: none;
  background: transparent;
  transition: all var(--transition-fast);
}

.currency-opt.active {
  background: var(--grad-blue);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

[data-theme="dark"] .currency-opt.active {
  background: var(--grad-blue);
  color: #FFFFFF;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(6, 9, 16, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

[data-theme="light"] .modal-backdrop {
  background-color: rgba(15, 23, 42, 0.65);
}

.modal-content {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 1px rgba(255, 255, 255, 0.12);
  width: 100%;
  max-width: 580px;
  max-height: min(90vh, 850px);
  overflow-y: auto;
  overscroll-behavior: contain;
  position: relative;
  color: var(--text-primary);
  margin: auto;
  animation: modalScaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  color: var(--text-primary);
  background: var(--bg-surface-highlight);
  border-color: var(--border-subtle);
}

/* API Code Integration Snippet Highlight */
.snippet-tab {
  cursor: pointer;
  transition: all 0.15s ease;
}

.snippet-tab.active {
  background: var(--accent-cyan) !important;
  color: #060910 !important;
  border-color: var(--accent-cyan) !important;
  font-weight: 700 !important;
  box-shadow: 0 0 14px rgba(5, 150, 105, 0.4);
}

[data-theme="light"] .snippet-tab.active {
  background: #059669 !important;
  color: #ffffff !important;
  border-color: #059669 !important;
  box-shadow: 0 0 14px rgba(5, 150, 105, 0.3);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(6, 9, 16, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

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

.modal-dialog,
.modal-card {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: min(90vh, 850px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 1px rgba(255, 255, 255, 0.12);
  transform: translateY(14px) scale(0.98);
  transition: transform var(--transition-normal);
  position: relative;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: auto;
}

.modal-card > form,
.modal-dialog > form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  margin: 0;
}

.modal-dialog {
  padding: 2.25rem;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  position: relative;
  flex-shrink: 0;
  gap: 1rem;
}

.modal-header h3 {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

.modal-header p {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 0.25rem 0 0;
}

.modal-body {
  padding: 1.5rem 1.75rem;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  overscroll-behavior: contain;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.15rem 1.75rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
  flex-shrink: 0;
}

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

.modal-close {
  position: static;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.modal-close:hover {
  color: var(--text-primary);
  background-color: var(--bg-surface-highlight);
  border-color: var(--border-medium);
}

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

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
}

.form-control {
  width: 100%;
  background-color: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-inset);
}

.form-control::placeholder,
.omni-input::placeholder,
.search-input::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

select.form-control,
select.filter-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.25rem;
  cursor: pointer;
}

.form-control:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 1px;
  background-color: var(--bg-surface-elevated);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-inset), 0 0 0 3px rgba(5, 150, 105, 0.16);
}

[data-theme="dark"] .form-control {
  background-color: var(--bg-surface-highlight);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-inset);
}

[data-theme="dark"] .form-control:focus {
  background-color: var(--bg-surface-elevated);
  border-color: var(--accent-primary);
}

/* Footer */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 4rem 0 2rem;
}

.footer .brand-logo {
  color: #FFFFFF;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  align-items: start;
}

.footer-col-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #F8FAFC;
  margin-bottom: 1.25rem;
}

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

.footer-link {
  font-size: 0.875rem;
  color: var(--footer-text);
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-cyan);
}

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

.footer-copyright {
  white-space: nowrap;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  white-space: nowrap;
}

/* Desktop layout guarantee: Strict 4-column horizontal grid & single horizontal bottom copyright bar */
@media (min-width: 993px) {
  .footer-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    gap: 2.5rem !important;
    margin-bottom: 2.5rem !important;
    align-items: start !important;
  }
  .footer-grid > div {
    min-width: 0 !important;
    width: 100% !important;
  }
  .footer-bottom {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 1.5rem !important;
  }
  .footer-copyright {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
  .footer-bottom-links {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 1.5rem !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
  }
}

/* ==========================================================================
   Responsive Navigation & Top-Right Profile Protection
   ========================================================================== */

/* Laptops / Mid Desktops (1161px to 1420px): Adapt desktop 6-link layout cleanly */
@media (max-width: 1420px) and (min-width: 1161px) {
  .nav-container {
    gap: 0.65rem;
  }
  .nav-links {
    gap: 0.2rem;
  }
  .nav-link {
    --nav-pad-x: 0.5rem;
    padding: 0.38rem var(--nav-pad-x);
    font-size: 0.825rem;
  }
  /* Conceal non-critical accessory elements to guarantee Marcus Vance (Logout) is never clipped */
  .nav-actions [data-action="download-sample-csv"],
  #vault-plan-badge,
  #admin-user-email-pill,
  .nav-actions a[href="#admin-pricing-section"] {
    display: none !important;
  }
}

/* Tablet & Mobile Breakpoint (<= 1160px): Collapse desktop links into drawer */
@media (max-width: 1160px) {
  .hero-title { font-size: 2.5rem; }
  .navbar nav, .main-nav { display: none !important; }
  .nav-links { display: none !important; }
  .mobile-nav-toggle { display: inline-flex !important; }
  .brand-logo { width: auto; }
  .nav-actions [data-action="download-sample-csv"],
  #vault-plan-badge,
  #admin-user-email-pill,
  .nav-actions a[href="#admin-pricing-section"] {
    display: none !important;
  }
}

/* Tablets (<= 992px): 2-Column Responsive Footer */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* Tablets (<= 768px): Fluid container margins and tight flex alignment */
@media (max-width: 768px) {
  .navbar {
    padding: 0.65rem 0;
  }
  .navbar .container {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
  }
  .nav-container {
    gap: 0.5rem;
  }
  .nav-actions {
    gap: 0.45rem;
    flex-shrink: 0;
  }
  .nav-actions .btn-nav-auth,
  #vault-user-logout-btn {
    padding: 0.36rem 0.75rem !important;
    font-size: 0.785rem !important;
    min-height: 38px !important;
  }
  .theme-toggle-btn,
  .mobile-nav-toggle {
    width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0;
  }
  .mobile-nav-drawer .btn-nav-auth {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.65rem 1rem !important;
    font-size: 0.9rem !important;
    min-height: 44px !important;
  }
}

/* Phablets & Mobile (<= 640px) */
@media (max-width: 640px) {
  .hero-title { font-size: 2rem; }
  .search-input-group { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-copyright { white-space: normal !important; text-align: center; }
  .footer-bottom-links { flex-wrap: wrap !important; justify-content: center !important; gap: 1rem !important; white-space: normal !important; }
  .pricing-matrix { grid-template-columns: 1fr; }
}

/* Small Mobile (<= 520px) */
@media (max-width: 520px) {
  .navbar .container {
    padding-left: 0.65rem !important;
    padding-right: 0.65rem !important;
  }
  .nav-container {
    gap: 0.35rem;
  }
  .brand-logo {
    font-size: 1.1rem;
    gap: 0.4rem;
  }
  .logo-badge {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }
  .nav-actions {
    gap: 0.35rem;
  }
  .nav-actions .btn-nav-auth,
  #vault-user-logout-btn {
    padding: 0.32rem 0.62rem !important;
    font-size: 0.74rem !important;
    min-height: 34px !important;
  }
  .theme-toggle-btn,
  .mobile-nav-toggle {
    width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
  }
}

/* Ultra-Compact Mobile (<= 380px) */
@media (max-width: 380px) {
  .navbar .container {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
  .nav-container {
    gap: 0.25rem;
  }
  .brand-logo {
    font-size: 1rem;
    gap: 0.3rem;
  }
  .brand-logo .logo-badge {
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
  }
  .nav-actions {
    gap: 0.25rem;
  }
  .nav-actions .btn-nav-auth,
  #vault-user-logout-btn {
    padding: 0.28rem 0.5rem !important;
    font-size: 0.71rem !important;
    min-height: 32px !important;
  }
  .theme-toggle-btn,
  .mobile-nav-toggle {
    width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
  }
}

/* 320px Legacy Screens */
@media (max-width: 340px) {
  .nav-actions .theme-toggle-btn {
    display: none !important;
  }
}


/* ==========================================================================
   Premium Live Explorer & Intelligence Workstation Components
   ========================================================================== */

/* Stream Telemetry Ribbon */
.stream-ribbon {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.65rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
  font-size: 0.8rem;
  box-shadow: var(--shadow-soft);
}

.stream-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.725rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-emerald);
  white-space: nowrap;
}

.stream-marquee {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.stream-marquee::-webkit-scrollbar { display: none; }

.stream-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.775rem;
}

.stream-pill strong {
  color: var(--text-primary);
}

/* Workstation Stats Strip */
.explorer-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.explorer-stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.explorer-stat-card:hover {
  border-color: rgba(5, 150, 105, 0.3);
  box-shadow: var(--shadow-raise);
  transform: translateY(-4px);
}

.stat-label-mini {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.stat-value-big {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: -0.03em;
  background: var(--grad-blue);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin: 0.2rem 0;
  line-height: 1.2;
}

.stat-sub-mini {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Omni Search Command Bar */
.omni-search-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-raise);
  margin-bottom: 1.5rem;
}

.omni-search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.omni-input {
  width: 100%;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.15rem 0.95rem 3.25rem;
  font-size: 1rem;
  color: var(--text-primary);
  transition: var(--transition-fast);
  box-shadow: var(--shadow-inset);
}

.omni-input:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 1px;
  background: var(--bg-surface-elevated);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-inset), 0 0 0 3px rgba(5, 150, 105, 0.16);
}

[data-theme="dark"] .omni-input {
  background: var(--bg-surface-highlight);
  box-shadow: var(--shadow-inset);
}

[data-theme="dark"] .omni-input:focus {
  background: var(--bg-surface-elevated);
}

.kbd-shortcut {
  position: absolute;
  right: 1.25rem;
  background: var(--bg-surface-highlight);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.15rem 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Multi-Facet Filter Toolbar */
.filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-select {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.filter-select:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 1px;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

/* Table Monogram & Badges */
.registrant-monogram {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--bg-surface-highlight), var(--bg-surface-elevated));
  border: 1px solid var(--border-medium);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.intent-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-mono);
  background: #ecfdf5;
  border: 1px solid rgba(5, 150, 105, 0.28);
  color: var(--accent-emerald-hover);
}

/* Slide-Over Intelligence Dossier Drawer */
.intel-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(29, 36, 51, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

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

.intel-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 580px;
  background: var(--bg-surface-elevated);
  border-left: 1px solid var(--border-subtle);
  box-shadow: -12px 0 38px rgba(15, 23, 42, 0.15);
  z-index: 130;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-normal) cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.intel-drawer-overlay.active .intel-drawer {
  transform: translateX(0);
}

.drawer-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: var(--bg-surface);
  position: sticky;
  top: 0;
  z-index: 10;
}

.drawer-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
}

.drawer-footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  display: flex;
  gap: 0.75rem;
  position: sticky;
  bottom: 0;
}

.dossier-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-soft);
}

.dossier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.75rem;
}

.dossier-item span {
  display: block;
  font-size: 0.725rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.dossier-item strong {
  font-size: 0.875rem;
  color: var(--text-primary);
}

@media (max-width: 800px) {
  .explorer-stats-grid { grid-template-columns: 1fr 1fr; }
  .intel-drawer { max-width: 100%; }
}


/* ==========================================================================
   Accessibility (WCAG 2.1 AA), Mobile Drawer & Core Web Vitals Optimizations
   ========================================================================== */

/* Skip to Main Content Link */
.skip-link {
  position: absolute;
  top: -120px;
  left: 1rem;
  background: var(--accent-primary);
  color: #FFFFFF;
  padding: 0.65rem 1.25rem;
  z-index: 99999;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--accent-cyan);
}

/* Accessible Focus States */
:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Mobile Navigation Hamburger & Drawer */
.mobile-nav-toggle {
  display: none;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.45rem;
  cursor: pointer;
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  transition: var(--transition-fast);
}

.mobile-nav-toggle:hover {
  background: var(--bg-surface-highlight);
  border-color: var(--border-medium);
}

.mobile-nav-drawer {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-medium);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  z-index: 49;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateY(-120%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--transition-normal), opacity var(--transition-normal), visibility var(--transition-normal);
}

.mobile-nav-drawer.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--accent-primary);
  border-bottom: 2px solid var(--accent-primary);
  font-weight: 700;
}

@media (max-width: 1160px) {
  .mobile-nav-toggle {
    display: inline-flex;
  }
}

/* Mobile Tap Target Enforcements (WCAG 2.5.5 Target Size) */
@media (max-width: 640px) {
  .btn, .tag-btn, .filter-select {
    min-height: 44px;
  }
}


/* ==========================================================================
   Bespoke Design System Polish: Technical Grid & ROI Calculator
   ========================================================================== */

.tabular-nums {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* Interactive ROI & Lead Yield Calculator */
.calculator-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-raise);
  margin-top: 2rem;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.calc-slider-group {
  margin-bottom: 1.75rem;
}

.calc-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.calc-slider {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-highlight);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--accent-primary);
  border: 3px solid #FFFFFF;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.4);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-results-card {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.08) 0%, var(--bg-surface) 100%);
  border: 1px solid rgba(5, 150, 105, 0.25);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-soft);
}

.calc-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.calc-stat-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Currency Switcher Pill */
.currency-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.25rem;
  gap: 0.25rem;
  box-shadow: var(--shadow-soft);
}

.currency-btn {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.currency-btn.active {
  background: var(--grad-blue);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
}

@media (max-width: 860px) {
  .calc-grid { grid-template-columns: 1fr; }
}

/* Developer Code Tabs & Syntax Chrome */
.code-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #1F2937;
  padding: 0.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid #374151;
}

.code-lang-tab {
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: #94A3B8;
  cursor: pointer;
  transition: var(--transition-fast);
}

.code-lang-tab:hover {
  color: #F8FAFC;
  background: rgba(255, 255, 255, 0.06);
}

.code-lang-tab.active {
  background: var(--accent-primary);
  color: #FFFFFF;
  font-weight: 700;
}

/* Toast Notifications */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-primary);
  color: var(--text-primary);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-raise);
  z-index: 99999;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: toast-slide-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toast-slide-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Admin Operations Two-Column Grid */
.admin-two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (max-width: 860px) {
  .admin-two-col-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Mobile & Small Device Polish (< 480px) */
@media (max-width: 480px) {
  .calculator-box {
    padding: 1.25rem 1rem;
  }
  .calc-results-card {
    padding: 1.25rem 1rem;
  }
  .bento-card {
    padding: 1.25rem 1rem;
  }
  .pricing-card {
    padding: 1.5rem 1rem;
  }
  .modal-dialog {
    padding: 1.5rem 1.15rem;
  }
  .explorer-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Plan Card Delete Icon Button */
.btn-delete-plan {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--accent-rose);
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: all var(--transition-fast) cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.btn-delete-plan:hover {
  background: rgba(244, 63, 94, 0.08);
  border-color: rgba(244, 63, 94, 0.2);
  color: #e11d48;
  transform: translateY(-1px);
}

.btn-delete-plan:active {
  transform: scale(0.95);
  background: rgba(244, 63, 94, 0.15);
}

.btn-delete-plan:focus-visible {
  outline: 2px solid var(--accent-rose);
  outline-offset: 2px;
}

[data-theme="dark"] .btn-delete-plan:hover {
  background: rgba(251, 113, 133, 0.12);
  border-color: rgba(251, 113, 133, 0.25);
  color: #fda4af;
}

/* ==========================================================================
   Edit Plan Features & Dynamic Entitlements Styling
   ========================================================================== */
.btn-edit-features {
  transition: all var(--transition-fast) ease;
  border-color: var(--border-medium);
  background: var(--bg-surface-elevated);
}

.btn-edit-features:hover {
  border-color: var(--accent-primary);
  background: rgba(5, 150, 105, 0.08);
  color: var(--accent-primary);
  transform: translateY(-1px);
}

.feature-item-desc {
  display: block;
  font-size: 0.725rem;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.35;
}

.pricing-feature-item.feature-excluded {
  opacity: 0.52;
}

.pricing-feature-item.feature-excluded span:first-child {
  text-decoration: line-through;
}

#vault-plan-features-section {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-fast) ease;
}

#vault-plan-features-section:hover {
  box-shadow: var(--shadow-md);
}

#modal-edit-plan-features .modal-card {
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.25);
}

/* ==========================================================================
   Technical SEO, AEO, GEO & Accessibility (WCAG 2.1 AA/AAA) Enhancements
   ========================================================================== */

/* Screen Reader Only Utility (WCAG 2.1 AA) */
.sr-only,
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* High-Contrast Accessible Focus Rings (WCAG 2.4.7) */
:focus-visible {
  outline: 2px solid var(--accent-primary) !important;
  outline-offset: 2px !important;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-primary) !important;
  outline-offset: 2px !important;
}

[data-theme="dark"] :focus-visible {
  outline-color: var(--accent-cyan) !important;
}

/* AEO / Generative Engine Definition & Fact Capsule */
.aeo-summary {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast) ease, box-shadow var(--transition-fast) ease;
}

.aeo-summary:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
}

.aeo-summary-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.aeo-summary-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-primary);
  background: rgba(5, 150, 105, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
}

.aeo-summary-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.aeo-summary-body {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.aeo-summary-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
}

.aeo-fact-item {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.aeo-fact-item strong {
  display: block;
  font-size: 0.875rem;
  font-family: var(--font-mono);
  color: var(--text-primary);
  margin-top: 0.15rem;
}

/* Enhanced Mobile Touch & Accessibility (WCAG 2.5.5 - Target Size >= 44px) */
@media (max-width: 768px) {
  .btn,
  .tag-btn,
  .mobile-nav-link,
  .theme-toggle-btn,
  .mobile-nav-toggle,
  .filter-select,
  .btn-delete-plan,
  .btn-edit-features,
  .snippet-tab,
  .currency-btn,
  .billing-opt,
  .pagination-btn,
  .table-action-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .domain-cell,
  .masked-data,
  code,
  pre {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .data-table-wrapper {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .nav-actions {
    gap: 0.5rem;
  }

  .main-nav {
    display: none;
  }

  .aeo-summary {
    padding: 1rem;
    margin: 1.25rem 0;
  }

  .aeo-summary-facts {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
}

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

/* =============================================================================
   Admin Enterprise Operations Workstation Styles (Simple & Professional UI/UX)
   ============================================================================= */
.admin-workstation-bar {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
  position: sticky;
  top: 60px;
  z-index: 40;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

[data-theme="light"] .admin-workstation-bar {
  background: rgba(255, 255, 255, 0.96);
}

.admin-tabs-list-wrapper {
  position: relative;
  width: 100%;
}

.admin-tabs-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow-x: auto;
  padding: 0;
  margin: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.admin-tabs-list::-webkit-scrollbar {
  display: none;
}

/* Classic, Clean Underline Tabs (GitHub / Stripe / AWS standard) */
.admin-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 0.75rem 0.95rem;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
  user-select: none;
  margin-bottom: -1px;
}

.admin-tab-btn * {
  pointer-events: none;
}

.admin-tab-btn svg {
  opacity: 0.65;
  flex-shrink: 0;
}

.admin-tab-btn:hover {
  color: var(--text-primary);
  border-bottom-color: var(--border-medium);
  background: transparent;
}

.admin-tab-btn:hover svg {
  opacity: 1;
}

.admin-tab-btn.active {
  color: var(--accent-primary);
  border-bottom: 2px solid var(--accent-primary);
  font-weight: 600;
  background: transparent;
  box-shadow: none;
}

.admin-tab-btn.active svg {
  opacity: 1;
  color: var(--accent-primary);
}

.admin-tab-badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.1rem 0.4rem;
  border-radius: 9999px;
  background: rgba(100, 116, 139, 0.12);
  color: var(--text-muted);
  border: none;
}

.admin-tab-btn.active .admin-tab-badge {
  background: rgba(5, 150, 105, 0.12);
  color: var(--accent-primary);
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.active {
  display: block;
}

/* Restrained section-tag in admin modules for clean, readable layout */
.admin-tab-panel .section-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-cyan);
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.2);
  border-radius: var(--radius-full);
  margin-bottom: 0.4rem;
}

/* Premium Enterprise Admin Cards */
.admin-tab-panel .card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

[data-theme="light"] .admin-tab-panel .card {
  box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
}

.admin-tab-panel .card:hover {
  border-color: var(--border-medium);
}

/* High-Performance Executive Telemetry KPI Cards */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.15rem;
  margin-bottom: 1.75rem;
}

.admin-kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .admin-kpi-card {
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.07);
}

.admin-kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(5, 150, 105, 0.45) 50%, transparent 100%);
  opacity: 0.75;
}

.admin-kpi-card:hover {
  border-color: rgba(5, 150, 105, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px -4px rgba(0, 0, 0, 0.5), 0 0 18px rgba(5, 150, 105, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.admin-kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.admin-kpi-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.admin-kpi-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  background: var(--bg-surface-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.admin-kpi-card:hover .admin-kpi-icon {
  transform: scale(1.06);
}

.admin-kpi-icon.emerald {
  color: var(--accent-emerald);
  background: rgba(5, 150, 105, 0.08);
  border-color: rgba(5, 150, 105, 0.22);
}

.admin-kpi-icon.blue {
  color: var(--accent-primary);
  background: rgba(5, 150, 105, 0.08);
  border-color: rgba(5, 150, 105, 0.22);
}

.admin-kpi-icon.cyan {
  color: var(--accent-cyan);
  background: rgba(5, 150, 105, 0.08);
  border-color: rgba(5, 150, 105, 0.22);
}

.admin-kpi-icon.amber {
  color: var(--accent-amber);
  background: rgba(255, 159, 28, 0.08);
  border-color: rgba(255, 159, 28, 0.22);
}

.admin-kpi-value {
  font-family: var(--font-display, var(--font-sans));
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin: 0.3rem 0;
  color: var(--text-primary);
  line-height: 1.15;
}

.admin-kpi-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.45rem;
  font-size: 0.75rem;
}

.admin-kpi-trend {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(5, 150, 105, 0.1);
  color: var(--accent-emerald);
  border: 1px solid rgba(5, 150, 105, 0.2);
}

/* Precision Action Center Buttons */
.admin-quick-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.admin-quick-action-btn svg {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color 0.18s ease, transform 0.18s ease;
}

.admin-quick-action-btn:hover {
  background: var(--bg-surface-highlight);
  border-color: rgba(5, 150, 105, 0.3);
  color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.admin-quick-action-btn:hover svg {
  color: var(--accent-cyan);
  transform: scale(1.1);
}

/* Minimal Navbar Profile Pill */
.admin-profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  user-select: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.admin-profile-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--accent-emerald);
}

.admin-role-badge {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgba(100, 116, 139, 0.15);
  color: var(--text-muted);
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

/* Admin Search & Filter Wrappers */
.admin-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.admin-search-icon {
  position: absolute;
  left: 10px;
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.admin-search-wrapper .form-control {
  padding-left: 2.15rem !important;
}

/* Flat Admin Empty States */
.admin-empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--bg-surface);
  border: 1px dashed var(--border-medium);
  border-radius: 10px;
  margin: 1.5rem 0;
}

.admin-empty-state-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(100, 116, 139, 0.12);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  border: 1px solid var(--border-subtle);
}

.admin-empty-state-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.admin-empty-state-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto 1.25rem;
  line-height: 1.5;
}

/* Polished Monospace Terminal Window */
.admin-terminal-window {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-medium);
  background: #090d16;
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 30px -4px rgba(0, 0, 0, 0.6);
}

.admin-terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: #0f1523;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.admin-terminal-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.admin-terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.admin-terminal-dots .dot-red { background: #f85149; box-shadow: 0 0 6px rgba(248, 81, 73, 0.5); }
.admin-terminal-dots .dot-yellow { background: #d29922; box-shadow: 0 0 6px rgba(210, 153, 34, 0.5); }
.admin-terminal-dots .dot-green { background: #3fb950; box-shadow: 0 0 6px rgba(63, 185, 80, 0.5); }

.admin-terminal-body {
  padding: 1.15rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.65;
  color: #34d399;
  overflow-y: auto;
  max-height: 200px;
}

.admin-input-eye-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.admin-eye-toggle-btn {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}
.admin-eye-toggle-btn:hover {
  color: var(--text-primary);
}

.admin-webhook-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
}

.admin-copy-pill-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 500;
  transition: all 0.15s ease;
}
.admin-copy-pill-btn:hover {
  background: var(--bg-surface-highlight);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

/* Precision Form Controls & Buttons in Admin */
.admin-tab-panel .form-control {
  border-radius: 8px;
  border: 1px solid var(--border-medium);
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  padding: 0.55rem 0.8rem;
  font-size: 0.825rem;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-tab-panel .form-control:focus {
  border-color: var(--accent-cyan);
  outline: none;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.18) !important;
  background: var(--bg-surface-highlight);
}

.admin-tab-panel .btn {
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-tab-panel .btn-primary:hover {
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.25);
  transform: translateY(-1px);
}

.admin-tab-panel .btn-secondary:hover {
  border-color: var(--border-medium);
  transform: translateY(-1px);
}

/* Institutional Data Tables */
.admin-tab-panel .data-table-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow-x: auto !important;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.admin-tab-panel .data-table-wrapper::-webkit-scrollbar {
  height: 8px;
}

.admin-tab-panel .data-table-wrapper::-webkit-scrollbar-track {
  background: var(--bg-surface-elevated, #101626);
  border-radius: 4px;
}

.admin-tab-panel .data-table-wrapper::-webkit-scrollbar-thumb {
  background: var(--border-medium, rgba(255, 255, 255, 0.2));
  border-radius: 4px;
}

.admin-tab-panel .data-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan, #059669);
}

.admin-tab-panel table.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.admin-tab-panel table.data-table thead th {
  background: var(--bg-surface-elevated);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 1rem;
  white-space: nowrap;
}

.admin-tab-panel table.data-table tbody td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.825rem;
  color: var(--text-secondary);
  vertical-align: middle;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.admin-tab-panel table.data-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-tab-panel table.data-table tbody tr:hover td {
  background: rgba(5, 150, 105, 0.025);
  color: var(--text-primary);
}

/* Dedicated Transactions & Orders Responsive Table Styles */
#panel-transactions,
#admin-transactions-section {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.admin-tx-table-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md, 10px);
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.45) var(--bg-surface-elevated, #101626);
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.admin-tx-table-wrapper::-webkit-scrollbar {
  height: 8px;
}

.admin-tx-table-wrapper::-webkit-scrollbar-track {
  background: var(--bg-surface-elevated, #101626);
  border-radius: 4px;
}

.admin-tx-table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.4);
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

[data-theme="light"] .admin-tx-table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(2, 132, 199, 0.4);
}

.admin-tx-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan, #00d2ff);
}

.admin-tx-table {
  width: 100%;
  min-width: 1380px;
  border-collapse: collapse;
  font-size: 0.825rem;
}

.admin-tx-table thead th {
  background: var(--bg-surface-elevated);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 1rem;
  white-space: nowrap;
  vertical-align: middle;
}

.admin-tx-table tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.825rem;
  color: var(--text-secondary);
  vertical-align: middle;
  white-space: nowrap;
}

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

.admin-tx-table tbody tr:hover td {
  background: rgba(5, 150, 105, 0.03);
  color: var(--text-primary);
}

/* Print Optimization for Domain Intelligence Audits */
@media print {
  .telemetry-ticker,
  .navbar,
  .mobile-nav-drawer,
  .nav-actions,
  .theme-toggle-btn,
  .mobile-nav-toggle,
  .modal-overlay,
  #modal-edit-plan-features {
    display: none !important;
  }

  body {
    color: #000 !important;
    background: #fff !important;
    font-size: 11pt;
  }

  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    font-weight: normal;
    color: #666;
  }
}

/* =============================================================================
   Antigravity Workspace Layout (Active Data on Left, Features/Controls on Right)
   ============================================================================= */
.workspace-antigravity-layout {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  width: 100%;
}

.workspace-data-canvas {
  flex: 1;
  min-width: 0;
}

.workspace-data-canvas.direct-edit-locked input:not([type="search"]):not([id*="search"]):not([id*="filter"]),
.workspace-data-canvas.direct-edit-locked select:not([id*="filter"]):not([id*="search"]),
.workspace-data-canvas.direct-edit-locked textarea {
  opacity: 0.75;
  border-color: rgba(245, 158, 11, 0.3) !important;
}

.workspace-features-rail {
  width: 300px;
  flex-shrink: 0;
  position: sticky;
  top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  z-index: 20;
}

.dash-features-rail .dash-tabs-bar,
.admin-features-rail .admin-tabs-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
  border-bottom: none;
  padding: 0;
  margin: 0;
  overflow: visible;
}

.dash-features-rail .dash-tab-btn,
.admin-features-rail .admin-tab-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 0.7rem 0.95rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.825rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  position: relative;
}

.dash-features-rail .dash-tab-btn:hover,
.admin-features-rail .admin-tab-btn:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-color: var(--border-medium);
  transform: translateX(3px);
}

.dash-features-rail .dash-tab-btn:hover svg,
.admin-features-rail .admin-tab-btn:hover svg {
  color: var(--text-primary);
  transform: scale(1.08);
}

.dash-features-rail .dash-tab-btn.active,
.admin-features-rail .admin-tab-btn.active {
  background: linear-gradient(90deg, rgba(5, 150, 105, 0.12) 0%, rgba(5, 150, 105, 0.02) 100%);
  color: var(--accent-cyan, #059669);
  border-color: rgba(5, 150, 105, 0.35);
  border-left: 3px solid var(--accent-cyan, #059669);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dash-features-rail .dash-tab-btn.active svg,
.admin-features-rail .admin-tab-btn.active svg {
  color: var(--accent-cyan, #059669);
}

.admin-features-rail .card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease;
}

.admin-security-lock-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(5, 150, 105, 0.22) !important;
  background: linear-gradient(180deg, rgba(16, 25, 42, 0.85) 0%, rgba(11, 17, 30, 0.95) 100%) !important;
}

.admin-security-lock-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-emerald));
}

.admin-safe-banner {
  box-shadow: 0 4px 16px -2px rgba(245, 158, 11, 0.15);
  animation: fadeInSafe 0.25s ease;
}

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

.admin-features-rail .admin-workstation-bar {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  position: static;
}

.admin-features-rail .admin-workstation-bar .container {
  padding: 0;
  max-width: 100%;
}

@media (max-width: 1024px) {
  .workspace-antigravity-layout {
    flex-direction: column;
    gap: 1.25rem;
  }
  .workspace-features-rail {
    width: 100% !important;
    max-width: 100% !important;
    position: static !important;
    top: 0;
  }
  .workspace-data-canvas {
    width: 100% !important;
    min-width: 0 !important;
    flex: 1;
  }

  /* Sleek horizontal scrolling tab bar on tablets & mobile */
  .dash-features-rail .dash-tabs-bar,
  .admin-features-rail .admin-tabs-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    gap: 0.5rem;
    padding: 0.4rem 0.25rem 0.75rem 0.25rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(5, 150, 105, 0.3) transparent;
  }
  .dash-features-rail .dash-tabs-bar::-webkit-scrollbar,
  .admin-features-rail .admin-tabs-list::-webkit-scrollbar {
    height: 4px;
  }
  .dash-features-rail .dash-tabs-bar::-webkit-scrollbar-thumb,
  .admin-features-rail .admin-tabs-list::-webkit-scrollbar-thumb {
    background: rgba(5, 150, 105, 0.3);
    border-radius: 999px;
  }

  /* Compact touch-friendly tab buttons */
  .dash-features-rail .dash-tab-btn,
  .admin-features-rail .admin-tab-btn {
    width: auto !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    min-height: 42px;
    padding: 0.5rem 0.95rem;
    font-size: 0.825rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
  }
  .dash-features-rail .dash-tab-btn.active,
  .admin-features-rail .admin-tab-btn.active {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.16) 0%, rgba(5, 150, 105, 0.05) 100%) !important;
    border-color: var(--accent-cyan) !important;
    border-bottom: 2px solid var(--accent-cyan) !important;
    border-left: 1px solid var(--accent-cyan) !important;
    color: var(--accent-cyan) !important;
    box-shadow: 0 2px 10px rgba(5, 150, 105, 0.2);
  }

  /* Admin KPI grid tablet adjustment */
  .admin-kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  /* Modals on Mobile */
  .modal-backdrop,
  .modal-overlay {
    padding: 0.75rem !important;
    align-items: center !important;
  }
  .modal-content,
  .modal-card,
  .modal-dialog {
    width: 100% !important;
    max-width: 96vw !important;
    max-height: 90vh !important;
    margin: auto !important;
    border-radius: var(--radius-md) !important;
  }
  .modal-header {
    padding: 1rem 1.25rem !important;
  }
  .modal-body {
    padding: 1.25rem !important;
  }
  .modal-footer {
    padding: 0.85rem 1.25rem !important;
  }
  .modal-close-btn,
  .modal-close {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 1.4rem;
  }

  /* Forms & Touch targets on Mobile */
  .form-input,
  .form-control,
  .form-select,
  select.form-input {
    min-height: 44px;
    font-size: 16px !important; /* Prevents auto-zoom in mobile Safari */
  }
  .btn {
    min-height: 42px;
  }
  .btn-sm {
    min-height: 36px;
  }

  /* Table touch scrolling with smooth scrolling */
  .table-responsive,
  .data-table-wrapper {
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
  }

  /* Metric cards */
  .metric-card,
  .feed-card {
    padding: 1rem !important;
  }

  /* Permission badges */
  .permission-badge {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
  }
  .permission-badge button {
    width: 100%;
    justify-content: center;
  }

  /* Workspace Hero Profile Card */
  .customer-workspace-navbar .workspace-nav-status {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.85rem;
  }
  .admin-kpi-grid {
    grid-template-columns: 1fr;
  }
  .feed-card > div:last-child {
    flex-direction: column;
  }
  .feed-card > div:last-child .btn {
    width: 100%;
    justify-content: center;
  }
  .dash-tab-btn span,
  .admin-tab-btn span {
    font-size: 0.78rem;
  }
}

/* FAQ Interactive Accordion */
details.faq-accordion-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
details.faq-accordion-item:hover {
  border-color: var(--border-medium);
}
details.faq-accordion-item[open] {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-md);
}
details.faq-accordion-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  list-style: none;
  user-select: none;
}
details.faq-accordion-item summary::-webkit-details-marker {
  display: none;
}
details.faq-accordion-item summary::marker {
  content: "";
  display: none;
}
details.faq-accordion-item summary .faq-chevron {
  transition: transform 0.25s ease, color 0.2s ease;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: 0.75rem;
}
details.faq-accordion-item[open] summary .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}
details.faq-accordion-item .faq-answer {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  line-height: 1.6;
  font-size: 0.925rem;
  color: var(--text-secondary);
}
