/* ==========================================================================
   SAKHANA BASE TEMPLATE DESIGN SYSTEM
   Customizable layout styles using HSL variables.
   To skin this template for a client:
   1. Override colors and radius tokens inside :root
   2. Swap the background images (e.g. assets/hero_background.png)
   ========================================================================== */

:root {
  /* Branding & Palette Tokens (Sakhana Brand Coordinates) */
  --bg-primary: #030712;         /* Deep slate/black */
  --bg-dark: #0a111e;            /* Sleek Dark Navy */
  --accent-color: #33c2cc;       /* Sakhana Bright Cyan/Teal */
  --accent-hover: #00f2fe;       /* Sakhana Accent Hover */
  --accent-glow: rgba(51, 194, 204, 0.2);
  
  /* Text Color Tokens */
  --text-main: #F8FAFC;          /* Light Slate (high contrast text) */
  --text-muted: #CBD5E1;         /* Slate-300 (high contrast for descriptions) */
  --text-light: #F8FAFC;         /* Light-Slate */
  --text-dim: #94A3B8;           /* Slate-400 (for labels) */
  
  /* Structural Tokens */
  --border-color: rgba(51, 194, 204, 0.12); /* Subtle glowing border tint */
  --border-radius: 0.75rem;       /* Softer Rounded Corners */
  --border-radius-lg: 1rem;
  --max-width: 1200px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-family: 'Plus Jakarta Sans', sans-serif;
  --shadow-glow: 0 0 20px rgba(51, 194, 204, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Structural Layout */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-padding {
  padding: 80px 0;
  scroll-margin-top: 80px;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--border-radius);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--accent-color);
  color: #FFFFFF;
  border: 1px solid var(--accent-color);
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--text-light);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: #25D366;
  color: #FFFFFF;
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
  gap: 8px;
}

.btn-whatsapp:hover {
  background-color: #20BA5A;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

/* Text Formatting */
.text-gradient {
  background: linear-gradient(135deg, #FFFFFF 35%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism Panel */
.glass-panel {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.glass-panel:hover {
  border-color: rgba(51, 194, 204, 0.3);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* Header & Navigation */
header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
  transition: var(--transition);
  padding: 12px 0;
  background-color: rgba(3, 7, 18, 0.85); /* Dark translucent */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

header.scrolled {
  padding: 12px 0;
}

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

.logo-container {
  flex-shrink: 0;
  margin-right: 30px;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img-wrapper {
  background: #FFFFFF;
  border-radius: 50%;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
  transition: var(--transition);
}

.brand-logo-img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.brand-logo-wrapper {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  transition: var(--transition);
}

.brand-slogan {
  font-size: 8px;
  color: var(--accent-color, #3b82f6);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: monospace;
  margin-top: 1px;
  transition: var(--transition);
}

#webgl-pulsing-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2; /* Layer on top of slideshow images, below text */
  mix-blend-mode: screen;
}

/* Header Scrolled Branding Contrast Inversion */
header.scrolled .logo-img-wrapper {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

header.scrolled .brand-text {
  color: var(--text-main);
}

.nav-menu-container {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 24px;
}

.nav-link {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85); /* Initial high contrast for dark hero */
  transition: var(--transition);
  position: relative;
  padding: 8px 0;
}

header.scrolled .nav-link {
  color: var(--text-muted);
}

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

header.scrolled .nav-link:hover, header.scrolled .nav-link.active {
  color: var(--accent-color);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #a855f7) !important;
  border-radius: 2px;
}

header.scrolled .nav-link.active::after {
  background: linear-gradient(90deg, #3b82f6, #a855f7) !important;
}

/* Custom gradient Access Portal button */
.nav-menu-container .nav-btn,
header:not(.scrolled) .nav-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #a855f7 100%) !important;
  border: none !important;
  border-radius: 9999px !important;
  color: white !important;
  padding: 10px 24px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4) !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-in-out !important;
}

.nav-menu-container .nav-btn:hover,
header:not(.scrolled) .nav-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #9333ea 100%) !important;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.6) !important;
  transform: translateY(-1px) scale(1.02) !important;
}

/* Navigation Tooltip Popovers */
.nav-item-with-tooltip {
  position: relative;
}

.nav-tooltip {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  width: 260px;
  padding: 16px;
  background: rgba(8, 14, 27, 0.95);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(59, 130, 246, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1001;
  text-align: left;
}

/* Tooltip top arrow */
.nav-tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent rgba(8, 14, 27, 0.95) transparent;
}

.nav-item-with-tooltip:hover .nav-tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(6px);
}

.tooltip-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 11px;
  color: #3b82f6;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.tooltip-icon {
  font-size: 13px;
}

.tooltip-title {
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
}

.tooltip-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
  margin: 0;
  font-weight: 400;
}

/* Brand logo filters cleared */

/* Immersive Hero Layout */
/* Immersive Hero Layout with Slideshow */
.hero-immersive {
  position: relative;
  padding-top: 180px;
  padding-bottom: 120px;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #0b1329;
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 0.70; /* Brighter visibility for the impressive tech slideshow images */
  z-index: 2;
}

.hero-slideshow-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(11, 19, 41, 0.3) 0%, rgba(11, 19, 41, 0.75) 100%);
  z-index: 3;
  pointer-events: none;
}

.hero-content-container {
  position: relative;
  z-index: 4;
  width: 100%;
  display: flex;
  justify-content: flex-start; /* Left-aligned container flow */
}

.hero-text-overlay {
  max-width: 850px;
  text-align: left; /* Left-aligned typography */
  margin: 0;
}

.hero-subtitle {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 18px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.hero-title {
  font-size: 52px;
  line-height: 1.25;
  margin-bottom: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
}

.text-gradient-red {
  background: linear-gradient(135deg, #f43f5e 0%, #ef4444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subheadline {
  font-family: var(--font-family);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--accent-color);
  margin-bottom: 18px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-description {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(248, 250, 252, 0.85);
  margin-bottom: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Service Pillars Section */
.services-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-dark) 100%);
  border-top: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px auto;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 16px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.service-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.06);
  border-color: rgba(255, 255, 255, 0.5);
}

.card-icon {
  width: 48px;
  height: 48px;
  background-color: var(--bg-primary);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  border: 1px solid var(--border-color);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 15px;
  color: var(--text-muted);
}

.card-action {
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: var(--transition);
}

.card-action:hover {
  color: var(--accent-hover);
}

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

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

/* Ingress Section (Brief Builder) */
.ingress-section {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
}

.ingress-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: stretch;
}

.chat-interface {
  display: flex;
  flex-direction: column;
  min-height: 500px;
  padding: 0;
  overflow: hidden;
}

.contact-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  background: rgba(15, 23, 42, 0.02);
}

.tab-btn {
  flex: 1;
  padding: 16px;
  border: none;
  background: none;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  border-bottom: 2px solid transparent;
}

.tab-btn:hover {
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.01);
}

.tab-btn.active {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.05);
}

.tab-content {
  display: none;
  padding: 24px;
  flex-grow: 1;
}

.tab-content.active {
  display: flex;
  flex-direction: column;
}

/* Chat Messages */
.chat-messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 8px;
  max-height: 350px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.message {
  max-width: 80%;
  padding: 14px 18px;
  border-radius: var(--border-radius);
  font-size: 14px;
  line-height: 1.5;
}

.message.bot {
  background-color: rgba(255, 255, 255, 0.04);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom-left-radius: 0;
}

.message.user {
  background-color: var(--accent-color);
  color: #FFFFFF;
  align-self: flex-end;
  border-bottom-right-radius: 0;
}

.chat-input-area {
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.chat-form {
  display: flex;
  gap: 12px;
}

.chat-input {
  flex-grow: 1;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.02);
  color: #FFFFFF;
  border-radius: var(--border-radius);
  font-family: var(--font-family);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.chat-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.btn-send {
  width: 44px;
  height: 44px;
  background-color: var(--accent-color);
  border: none;
  border-radius: var(--border-radius);
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-send:hover {
  background-color: var(--accent-hover);
}

.btn-send svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transform: translateX(1px);
}

/* Tab Forms */
.form-container {
  padding: 8px 4px;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.02);
  color: #FFFFFF;
  border-radius: var(--border-radius);
  font-family: var(--font-family);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--accent-color);
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* WhatsApp Panel */
.whatsapp-card {
  flex-direction: column;
  text-align: center;
  padding: 48px 24px;
  gap: 16px;
}

.whatsapp-icon-wrapper {
  width: 64px;
  height: 64px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  margin-bottom: 8px;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
}

.whatsapp-icon-wrapper svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.whatsapp-card h3 {
  font-size: 20px;
  font-weight: 700;
}

.whatsapp-card p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 300px;
  margin-bottom: 12px;
}

/* Brief Compilation Preview Box */
.brief-preview-panel {
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.preview-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.preview-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 16px;
}

.preview-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.preview-label {
  font-weight: 600;
  color: var(--text-muted);
}

.preview-value {
  font-weight: 700;
}

.preview-brief-markdown {
  flex-grow: 1;
  margin-top: 16px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: monospace;
  font-size: 12px;
  overflow-y: auto;
  white-space: pre-wrap;
  min-height: 180px;
  max-height: 250px;
}

.btn-submit-brief {
  background-color: var(--text-muted);
  color: #FFFFFF;
  border: none;
  font-weight: 700;
  padding: 14px;
  border-radius: var(--border-radius);
  cursor: not-allowed;
  transition: var(--transition);
  margin-top: auto;
}

.btn-submit-brief.active {
  background-color: var(--accent-color);
  cursor: pointer;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-submit-brief.active:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

/* Footer Section */
footer {
  background-color: var(--bg-dark);
  color: var(--text-muted);
  padding: 64px 0 32px 0;
  font-size: 14px;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 48px;
}

.footer-brand h2 {
  font-size: 24px;
  margin-bottom: 16px;
  color: #FFFFFF;
}

.footer-brand p {
  color: #94A3B8;
  max-width: 400px;
}

.footer-links h3 {
  font-size: 15px;
  color: #FFFFFF;
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #94A3B8;
  text-decoration: none;
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  color: #94A3B8;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 1100;
}

.mobile-toggle .bar {
  width: 24px;
  height: 2px;
  background-color: #FFFFFF;
  transition: var(--transition);
}

header.scrolled .mobile-toggle .bar {
  background-color: var(--text-main);
}

/* Responsive Styles */
@media (max-width: 1250px) {
  .nav-menu-container {
    display: none;
  }
  .nav-menu-container.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 280px;
    background: rgba(26, 19, 12, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--accent-color);
    padding: 80px 30px 40px 30px;
    z-index: 1050;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    gap: 24px;
    align-items: stretch;
    overflow-y: auto;
  }
  .nav-menu-container.active .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
  }
  .nav-menu-container.active .search-container {
    margin: 10px 0;
    width: 100%;
  }
  .nav-menu-container.active .nav-btn {
    width: 100%;
    text-align: center;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .ingress-split {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-subheadline {
    font-size: 18px;
    margin-bottom: 14px;
  }
  
  .hero-description {
    font-size: 14px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Mouse over lift effect for interactive assets */
.hover-lift-img {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
  display: block;
}

.hover-lift-img:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(26, 19, 12, 0.18) !important;
}

/* Logo backlight glow for dark backgrounds */
.logo-light-glow {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.45)) drop-shadow(0 0 2px rgba(255, 255, 255, 0.7));
}

/* ==========================================================================
   9. APP-FIRST MOBILE STYLES (event companion)
   ========================================================================== */

/* Mobile Dashboard Grid */
.mobile-dashboard-grid {
  display: none;
}

/* Mobile Horizontal Scroll Carousel */
.mobile-swipe-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Floating Bottom CTA Bar */
.floating-bottom-cta {
  display: none;
}

@media (max-width: 1250px) {
  /* Override padding globally for tighter, app-like sections */
  .section-padding {
    padding: 40px 0 !important;
  }
  
  /* Mobile Fluid Typography */
  .section-title {
    font-size: clamp(26px, 5.5vw, 32px) !important;
    margin-bottom: 25px !important;
  }
  
  .hero-card {
    padding: 30px 20px !important;
    margin-top: 20px;
  }

  /* Render Mobile Dashboard Grid */
  .mobile-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 30px;
    width: 100%;
  }
  
  .mobile-dashboard-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px 4px;
    text-align: center;
    text-decoration: none;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  .mobile-dashboard-card:active {
    background: rgba(255, 255, 255, 0.18);
    transform: scale(0.94);
  }
  
  .mobile-dashboard-card svg {
    color: var(--accent-color);
    transition: color 0.2s ease;
  }
  
  .mobile-dashboard-card span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }

  /* Horizontal swipe carousel for card listings */
  .mobile-swipe-wrapper {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 20px !important;
    padding: 10px 20px 20px 20px !important;
    margin: 0 -20px !important; /* bleed off edge */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
  }
  
  .mobile-swipe-wrapper::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
  }
  
  .mobile-swipe-wrapper > * {
    scroll-snap-align: center !important;
    flex: 0 0 280px !important; /* Fixed width cards */
    max-width: 280px !important;
    margin-bottom: 0 !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
  }

  /* Floating Bottom CTA Bar */
  .floating-bottom-cta {
    display: flex;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 450px;
    background: rgba(26, 19, 12, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid var(--accent-color);
    border-radius: 50px;
    padding: 10px 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    z-index: 999;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
  }
  
  .floating-cta-text {
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    max-width: 180px;
    text-align: left;
  }
  
  .floating-cta-btn {
    background: var(--accent-color);
    color: #FFFFFF !important;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 12px;
    padding: 8px 18px;
    border-radius: 25px;
    border: none;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(186, 139, 87, 0.3);
    transition: transform 0.2s ease;
  }
  
  .floating-cta-btn:active {
    transform: scale(0.95);
  }
}

/* ==========================================================================
   SAKHANA CLIENT MEMBER PORTAL STYLES
   Observability design system with B2B Navy/Teal/Cyan colors.
   ========================================================================== */

/* Portal Body & Reset */
body.portal-body {
  background-color: #0b1329; /* 60% Base: Deep slate navy background */
  color: #f8fafc;
  overflow: hidden;
  height: 100vh;
}

.portal-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* Sidebar Navigation */
.portal-sidebar {
  background-color: var(--bg-dark); /* 30% Structure: Solid deep-navy */
  border-right: 1px solid rgba(51, 194, 204, 0.1);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
  z-index: 10;
}

.sidebar-brand {
  margin-bottom: 36px;
}

.sidebar-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.sidebar-logo-link .logo-img-wrapper {
  width: 34px;
  height: 34px;
  padding: 3px;
}

.sidebar-logo-link .brand-text {
  font-size: 22px;
}

.sidebar-slogan {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-color);
  margin-top: 4px;
  padding-left: 2px;
  font-weight: 700;
}

.sidebar-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.sidebar-link:hover {
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-link.active {
  color: #FFFFFF;
  background: linear-gradient(135deg, rgba(51, 194, 204, 0.2) 0%, rgba(51, 194, 204, 0.05) 100%);
  border-left: 3px solid var(--accent-color);
  padding-left: 13px;
}

.sidebar-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.sidebar-user {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.user-avatar-wrapper {
  position: relative;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
}

.user-role {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

/* Main Cockpit Space */
.portal-main {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* Translucent Observatory Header */
.portal-header {
  height: 75px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  background: rgba(10, 44, 71, 0.45); /* Sakhana Navy glass overlay */
  border-bottom: 1px solid rgba(51, 194, 204, 0.1);
  border-radius: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.tenant-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(51, 194, 204, 0.2);
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: var(--border-radius);
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.tenant-select:focus {
  border-color: var(--accent-color);
}

.telemetry-bar {
  display: flex;
  align-items: center;
  gap: 20px;
}

.telemetry-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.telemetry-label {
  color: rgba(255, 255, 255, 0.5);
}

.telemetry-value {
  font-weight: 700;
  color: #FFFFFF;
}

.telemetry-separator {
  width: 1px;
  height: 16px;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Pulsing Status indicator (Network Style) */
.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981; /* Green */
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.status-text {
  font-weight: 700;
}

.text-green {
  color: #10b981;
}

.text-amber {
  color: #f59e0b;
}

.text-red {
  color: #ef4444;
}

/* Portal Views */
.portal-content-scroll {
  flex-grow: 1;
  overflow-y: auto;
  padding: 40px 0;
}

.portal-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.portal-view {
  display: none;
}

.portal-view.active {
  display: block;
}

.view-header {
  margin-bottom: 32px;
}

.view-title {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: #FFFFFF;
}

.view-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
}

/* KPI Summary Cards Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.kpi-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: rgba(10, 44, 71, 0.25); /* Thin glass navy overlays */
  border: 1px solid rgba(51, 194, 204, 0.1);
}

.kpi-icon-wrapper {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kpi-icon {
  width: 24px;
  height: 24px;
  fill: var(--accent-color);
}

.kpi-content {
  flex-grow: 1;
}

.kpi-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
  margin-bottom: 4px;
}

.kpi-value-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.kpi-value {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF;
}

.kpi-growth {
  font-size: 12px;
  font-weight: 700;
}

.kpi-subtext {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
}

/* Section Header Buttons */
.portal-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
}

.portal-section-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
}

.link-btn {
  background: none;
  border: none;
  color: var(--accent-color);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.link-btn:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Apps Matrix Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: rgba(10, 44, 71, 0.25);
  border: 1px solid rgba(51, 194, 204, 0.1);
  overflow: hidden;
  height: 250px;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: rgba(51, 194, 204, 0.3);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.tool-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 16px;
}

.tool-icon-box {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
}

.tool-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.tool-status-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.tool-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.bg-green { background-color: #10b981; }
.bg-amber { background-color: #f59e0b; }
.bg-red { background-color: #ef4444; }

.tool-title {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.tool-description {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.tool-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.tool-kpi {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-color);
}

.btn-tool-action {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  text-decoration: none;
  transition: var(--transition);
}

.btn-tool-action:hover {
  color: var(--accent-color);
}

/* Locked marketplace apps styling */
.tool-card.locked-tool {
  background: rgba(10, 44, 71, 0.15);
  border-color: rgba(255, 255, 255, 0.03);
}

.tool-card.locked-tool:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.03);
  box-shadow: none;
}

.tool-card.locked-tool .tool-title,
.tool-card.locked-tool .tool-description,
.tool-card.locked-tool .tool-icon-box {
  opacity: 0.45;
}

.lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 41, 0.6);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transition: var(--transition);
  z-index: 5;
}

.tool-card.locked-tool:hover .lock-overlay {
  opacity: 1;
}

.lock-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.lock-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-unlock {
  background-color: var(--accent-color);
  color: #FFFFFF;
  border: none;
  padding: 8px 16px;
  border-radius: var(--border-radius);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 10px var(--accent-glow);
  transition: var(--transition);
}

.btn-unlock:hover {
  background-color: var(--accent-hover);
}

/* Settings Form Columns */
.team-split-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 32px;
  align-items: start;
}

.settings-card {
  padding: 32px;
  background: rgba(10, 44, 71, 0.25);
  border: 1px solid rgba(51, 194, 204, 0.1);
}

.settings-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFFFFF;
}

/* User management listing */
.member-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.member-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--border-radius);
}

.member-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.member-name {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
}

.member-email {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.member-badge {
  font-size: 11px;
  padding: 4px 10px;
  background: rgba(51, 194, 204, 0.1);
  color: var(--accent-color);
  font-weight: 700;
  border-radius: 12px;
}

/* Admin switches allocation console styling */
.admin-tools-toggles-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--border-radius);
}

.toggle-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toggle-title {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
}

.toggle-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* B2B CSS Custom Switch */
.switch-label {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

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

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  transition: 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #FFFFFF;
  border-radius: 50%;
  transition: 0.3s;
}

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

.switch-input:checked + .switch-slider:before {
  transform: translateX(20px);
}

/* Modal overlays popup layer */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 25, 41, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 9999;
}

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

.modal-card {
  width: 90%;
  max-width: 650px;
  background: #0a2c47;
  border: 1px solid rgba(51, 194, 204, 0.2);
  padding: 40px;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: var(--border-radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 28px;
  font-weight: 300;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: #FFFFFF;
}

.modal-tool-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
}

.modal-tool-title {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #FFFFFF;
}

.modal-tool-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Observability lists details inside modal */
.scoping-briefs-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.scoping-brief-item {
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--border-radius);
}

.brief-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--accent-color);
  font-weight: 700;
  margin-bottom: 6px;
}

.brief-txt {
  font-size: 13px;
  line-height: 1.5;
  color: #FFFFFF;
}

/* Analytics Graph simulation block */
.mock-graph-container {
  height: 150px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

.mock-graph-bar {
  flex: 1;
  background-color: rgba(51, 194, 204, 0.15);
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  transition: height 0.6s ease;
  min-height: 5px;
}

.mock-graph-bar.active {
  background-color: var(--accent-color);
}

/* Responsive Portal overrides */
@media (max-width: 992px) {
  .portal-container {
    grid-template-columns: 1fr;
  }
  
  .portal-sidebar {
    display: none; /* Collapsed under mobile navigation viewports */
  }
  
  .portal-header {
    padding: 0 20px;
  }
  
  .telemetry-bar {
    gap: 12px;
  }
  
  .telemetry-item:not(:first-child),
  .telemetry-separator:not(:first-of-type) {
    display: none; /* Hide dense details on small displays */
  }
  
  .kpi-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .team-split-layout {
    grid-template-columns: 1fr;
  }
}

/* Premium Brand Color Marbling Backdrop */
.marble-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background-color: var(--bg-primary);
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Dark mode configuration for the Member Portal */
.portal-body .marble-bg {
  background-color: #0b1329; /* Dark Navy Base to match card themes */
  background-image: none; /* Strip grid pattern inside the member cockpit */
}

.portal-body .marble-blob {
  opacity: 0.12; /* Subtle glows in dark mode */
}

/* Make sure portal background is transparent to show marbling */
.portal-body {
  background-color: transparent !important;
}

.portal-container {
  background: transparent !important;
}

.portal-main {
  background: transparent !important;
}

.services-section, .ingress-section, .sandbox-section, .friction-section, .sneak-peek-section {
  position: relative;
  z-index: 2;
  background: transparent !important;
}

.marble-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(160px);
  opacity: 0.28;
  animation: floatMarble 25s infinite alternate ease-in-out;
}

.blob-1 {
  top: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
  animation-duration: 20s;
}

.blob-2 {
  bottom: -15%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, #a855f7 0%, transparent 70%); /* Purple */
  animation-duration: 30s;
  animation-delay: -5s;
}

.blob-3 {
  top: 40%;
  left: 30%;
  width: 35vw;
  height: 35vw;
  background: radial-gradient(circle, #00b4d8 0%, transparent 70%); /* Cyan */
  animation-duration: 25s;
  animation-delay: -10s;
}

@keyframes floatMarble {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(8%, 10%) scale(1.1);
  }
}

/* ============================================================================
   DEMO SIMULATOR STYLING
   ============================================================================ */
.demo-sim-btn:hover {
  background: rgba(51, 194, 204, 0.12) !important;
  border-color: var(--accent-color) !important;
}
.demo-sim-btn.active {
  background: var(--accent-color) !important;
  border-color: var(--accent-color) !important;
}
.demo-sim-btn.active span {
  color: #060b16 !important;
}
.demo-sim-btn.active span:nth-child(2) {
  color: rgba(6, 11, 22, 0.75) !important;
}
.demo-simulator.collapsed {
  width: 180px !important;
}
.demo-simulator.collapsed #demo-sim-body {
  max-height: 0 !important;
  padding: 0 !important;
}

/* Color contrast fix for dropdown option elements in Chrome/Windows */
.tenant-select option {
  color: #060b16 !important;
  background-color: #ffffff !important;
}

/* Simplified locked tool card animations and hovers */
.simplified-locked-tool {
  height: auto !important;
  min-height: unset !important;
  padding: 16px 20px !important;
  flex-direction: row !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  background: rgba(255, 255, 255, 0.02) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.simplified-locked-tool:hover {
  border-color: rgba(244, 63, 94, 0.3) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244, 63, 94, 0.1);
}
.simplified-locked-tool:hover h4 {
  color: var(--accent-color) !important;
}
.simplified-locked-tool:hover .tool-icon-box {
  border-color: rgba(244, 63, 94, 0.3) !important;
  background: rgba(244, 63, 94, 0.05) !important;
}

/* Print/PDF Export styling layout overrides */
@media print {
  body {
    background: #ffffff !important;
    color: #060b16 !important;
  }
  .sidebar,
  .demo-simulator,
  .btn-outline,
  .btn-primary,
  .btn-unlock,
  .lock-overlay,
  .telemetry-bar,
  .header-left select {
    display: none !important;
  }
  .main-content {
    margin-left: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }
  .glass-panel {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
    color: #060b16 !important;
  }
  h1, h2, h3, h4, p, td, th, span, div {
    color: #060b16 !important;
    text-shadow: none !important;
  }

  /* If modal is open, print ONLY the modal content and hide standard page layers */
  body.modal-open-print .portal-layout {
    display: none !important;
  }
  body.modal-open-print .modal-backdrop {
    position: static !important;
    display: block !important;
    background: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
    padding: 0 !important;
  }
  body.modal-open-print .modal-card {
    background: #ffffff !important;
    color: #060b16 !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .no-print {
    display: none !important;
  }
}

/* ============================================================================
   Synergy Sandbox & Diagram flow styles
   ============================================================================ */
.sandbox-section {
  position: relative;
}

.sandbox-card {
  padding: 40px;
  margin-top: 32px;
}

.sandbox-controls {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 32px;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.slider-group label {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.sandbox-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.1);
  outline: none;
  transition: background 0.3s;
}

.sandbox-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-color);
  transition: transform 0.15s ease-in-out;
}

.sandbox-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

.sandbox-metrics {
  display: flex;
  justify-content: space-around;
  gap: 24px;
}

.metric-item {
  text-align: center;
}

.metric-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-color);
}

/* Horizontal Flow Diagram */
.ecosystem-flow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  position: relative;
}

.flow-node {
  flex: 1;
  text-align: center;
  padding: 24px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--border-radius-lg);
  opacity: 0.35;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(10px);
}

.flow-node.active {
  opacity: 1;
  background: rgba(51, 194, 204, 0.05);
  border-color: rgba(51, 194, 204, 0.3);
  box-shadow: var(--shadow-glow);
  transform: translateY(0);
}

.node-icon {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  color: var(--text-muted);
  transition: var(--transition);
}

.flow-node.active .node-icon {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #060b16;
  box-shadow: 0 0 15px var(--accent-color);
}

.node-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.flow-node h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.flow-node p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.flow-arrow {
  display: flex;
  align-items: center;
  color: var(--text-dim);
  opacity: 0.25;
  transition: all 0.5s;
}

.flow-arrow.active {
  color: var(--accent-color);
  opacity: 1;
  animation: pulseArrow 1.5s infinite;
}

.flow-arrow svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

@keyframes pulseArrow {
  0% { transform: translateX(0); }
  50% { transform: translateX(6px); }
  100% { transform: translateX(0); }
}

/* ============================================================================
   Friction We Solve Section
   ============================================================================ */
.friction-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.friction-card {
  padding: 32px;
  position: relative;
}

.friction-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.friction-badge.red {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.friction-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.friction-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================================
   Portal Sneak Peek Section
   ============================================================================ */
.sneak-peek-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.sneak-peek-text p.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

.features-checklist {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-main);
}

.check-icon {
  color: var(--accent-color);
  font-weight: 900;
  font-size: 16px;
}

.portal-mockup {
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

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

.mockup-logo {
  display: flex;
  align-items: center;
}

.mockup-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.mock-kpi {
  padding: 16px;
  text-align: center;
}

.mock-kpi-label {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.mock-kpi-val {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #FFFFFF;
}

.mockup-graph {
  padding: 20px;
}

.mockup-graph-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.mock-bars {
  height: 80px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.mock-bar {
  flex-grow: 1;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
}

.mock-bar.active {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  box-shadow: 0 0 10px var(--accent-color);
}

@media (max-width: 992px) {
  .sandbox-controls {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ecosystem-flow {
    flex-direction: column;
    gap: 24px;
  }
  .flow-arrow {
    transform: rotate(90deg);
  }
  .flow-arrow.active {
    animation: pulseArrowVertical 1.5s infinite;
  }
  .friction-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .sneak-peek-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@keyframes pulseArrowVertical {
  0% { transform: rotate(90deg) translateX(0); }
  50% { transform: rotate(90deg) translateX(6px); }
  100% { transform: rotate(90deg) translateX(0); }
}

/* Pre-Launch Banner Styles */
.prelaunch-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  margin-bottom: 20px;
  border: 1px solid rgba(51, 194, 204, 0.3);
  border-radius: 30px;
  background: rgba(6, 11, 22, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  animation: pulseGlow 3s infinite alternate;
  line-height: 1.4;
  max-width: 100%;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.prelaunch-badge:hover {
  transform: translateY(-2px);
  border-color: var(--accent-color);
  box-shadow: 0 0 15px rgba(51, 194, 204, 0.25);
  background: rgba(6, 11, 22, 0.85);
}

.prelaunch-badge.blazeway-theme {
  border-color: rgba(147, 51, 234, 0.3); /* Purple accent signature for Blazeway */
}

.prelaunch-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--accent-color, #33c2cc);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-color, #33c2cc);
  animation: pulseDot 1.5s infinite;
  flex-shrink: 0;
}

.prelaunch-badge.blazeway-theme .prelaunch-pulse {
  background-color: #9333ea;
  box-shadow: 0 0 8px #9333ea;
}

.prelaunch-footer-status {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.prelaunch-footer-status span {
  color: #33c2cc;
}

/* Prelaunch Modal Overlays */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 7, 18, 0.65);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 15px;
  overflow: hidden;
  animation: fadeInModal 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Digital Marbelised Electronic Pulses in Backdrop */
.overlay-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.30;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
}

.blob-cyan {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--accent-color, #33c2cc) 0%, transparent 70%);
  top: -15%;
  left: -15%;
  animation: floatBlob1 25s ease-in-out infinite alternate;
}

.blob-rose {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #f43f5e 0%, transparent 70%);
  bottom: -15%;
  right: -15%;
  animation: floatBlob2 30s ease-in-out infinite alternate;
}

.blob-indigo {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  top: 35%;
  right: -8%;
  animation: floatBlob3 22s ease-in-out infinite alternate;
}

.blob-purple {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #a855f7 0%, transparent 70%);
  bottom: 15%;
  left: -8%;
  animation: floatBlob4 28s ease-in-out infinite alternate;
}

@keyframes floatBlob1 {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(60px, 40px) scale(1.1) rotate(180deg); }
  100% { transform: translate(0, 0) scale(1) rotate(360deg); }
}

@keyframes floatBlob2 {
  0% { transform: translate(0, 0) scale(1.1); }
  50% { transform: translate(-50px, -70px) scale(0.95); }
  100% { transform: translate(0, 0) scale(1.1); }
}

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

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

.modal-card {
  width: 100%;
  max-width: 460px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(10, 17, 32, 0.96) 50%, rgba(3, 7, 18, 0.98) 100%);
  background-size: 200% 200%;
  border: 1px solid rgba(51, 194, 204, 0.3);
  border-radius: var(--border-radius-lg);
  padding: 22px 20px; /* Highly compressed padding */
  position: relative;
  overflow: hidden;
  z-index: 10; /* Float clearly on top of backdrop blobs */
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), var(--shadow-glow);
  transform: scale(0.95);
  animation: rollingBg 15s ease infinite, scaleInCard 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Rotating Inner Glowing Blobs */
.modal-card-glow-1 {
  position: absolute;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(51, 194, 204, 0.12) 0%, transparent 70%);
  top: -80px;
  left: -80px;
  z-index: -1;
  animation: rotateGlow1 12s ease-in-out infinite alternate;
  pointer-events: none;
}

.modal-card-glow-2 {
  position: absolute;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.08) 0%, transparent 70%);
  bottom: -80px;
  right: -80px;
  z-index: -1;
  animation: rotateGlow2 15s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes rollingBg {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes rotateGlow1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 20px) scale(1.15); }
  100% { transform: translate(0, 0) scale(1); }
}

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

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
}

.modal-close-btn:hover {
  color: var(--text-main);
  transform: rotate(90deg);
}

.prelaunch-step {
  display: none;
}

.prelaunch-step.active {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: slideStep 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.step-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.step-num {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-color);
  font-weight: 700;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.prelaunch-step h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.step-sub {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0;
}

.input-group input, .email-input-wrapper input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(6, 11, 22, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 16px;
  transition: var(--transition);
}

.input-group input:focus, .email-input-wrapper input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 10px rgba(51, 194, 204, 0.15);
  outline: none;
}

.email-input-wrapper {
  display: flex;
  align-items: center;
  background: rgba(6, 11, 22, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  margin: 10px 0;
}

.email-input-wrapper:focus-within {
  border-color: var(--accent-color);
  box-shadow: 0 0 10px rgba(51, 194, 204, 0.15);
}

.email-input-wrapper input {
  border: none;
  border-radius: 0;
  background: transparent;
  flex-grow: 1;
}

.email-domain-label {
  padding: 0 16px;
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.02);
  border-left: 1px solid var(--border-color);
  height: 48px;
  display: flex;
  align-items: center;
  user-select: none;
  white-space: nowrap;
}

.error-msg {
  font-size: 12px;
  color: #f43f5e;
  min-height: 16px;
}

.btn-row {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.btn-row button, .modal-next-btn, .modal-submit-btn {
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.modal-next-btn, .modal-submit-btn {
  width: 100%;
  margin-top: 10px;
}

.different-domain-option {
  text-align: center;
  margin-bottom: 10px;
}

.link-btn {
  background: none;
  border: none;
  color: var(--accent-color);
  font-size: 13px;
  font-family: var(--font-family);
  cursor: pointer;
  text-decoration: underline;
  transition: var(--transition);
}

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

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 12px var(--accent-color, #33c2cc); }
  100% { transform: scale(0.9); opacity: 0.6; }
}

@keyframes pulseGlow {
  0% { border-color: rgba(51, 194, 204, 0.15); }
  100% { border-color: rgba(51, 194, 204, 0.35); }
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleInCard {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

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

/* Consolidated Prelaunch Form Styles */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px; /* Reduced margin */
  opacity: 0.35;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--border-radius);
  border: 1px solid transparent;
  padding: 6px 10px; /* Reduced padding */
  pointer-events: none; /* Locked by default until previous steps completed */
}

.field-group.active {
  opacity: 1;
  border-color: rgba(51, 194, 204, 0.25);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
  pointer-events: auto;
}

.field-group.completed {
  opacity: 0.75;
  pointer-events: auto;
}

.field-group label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.field-group.active label {
  color: var(--accent-color);
}

.field-group input, .field-group textarea {
  width: 100%;
  padding: 8px 12px; /* Compressed padding */
  background: rgba(6, 11, 22, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 14px; /* Slightly smaller typography */
  transition: var(--transition);
}

.field-group.active input, .field-group.active textarea {
  border-color: rgba(51, 194, 204, 0.5);
  background: rgba(6, 11, 22, 0.85);
}

.field-group.active input:focus, .field-group.active textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 10px rgba(51, 194, 204, 0.2);
  outline: none;
}

.field-group textarea {
  resize: vertical;
}

.field-error {
  font-size: 10px;
  color: #f43f5e;
  min-height: 2px; /* Minimal height to conserve vertical space */
  margin-top: 1px;
}

.inline-next-btn {
  display: none; /* Hide unless active */
  align-self: flex-end;
  padding: 5px 12px; /* Compact padding */
  font-size: 12px;
  border-radius: 20px;
  cursor: pointer;
  margin-top: 3px;
  border: 1px solid var(--accent-color);
}

.field-group.active .inline-next-btn {
  display: inline-block;
}

/* Email split inputs styling */
.email-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.email-input-wrapper input {
  padding: 8px 12px; /* Compact padding */
}

#prelaunch-email-local {
  flex: 3;
}

.email-at {
  font-size: 16px;
  color: var(--text-dim);
  font-weight: 700;
  user-select: none;
}

#prelaunch-email-domain {
  flex: 4;
  border-radius: var(--border-radius);
}



