/**
 * ============================================================================
 * MAPPO | NEXT-GEN DIGITAL TRADE OPERATING SYSTEM FOR CHAs & FORWARDERS
 * Master Design System & Award-Level CSS Architecture (Full-Width Ultrawide)
 * ============================================================================
 */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&family=Syne:wght@500;600;700;800;900&display=swap');

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & ROOTS
   -------------------------------------------------------------------------- */
:root {
  --bg-deep: #030712;
  --bg-space: #070d1e;
  --bg-card: rgba(11, 19, 39, 0.78);
  --bg-card-hover: rgba(18, 30, 60, 0.92);
  --bg-glass: rgba(15, 23, 42, 0.65);
  --bg-glass-heavy: rgba(7, 13, 30, 0.92);

  --cyan: #00f5ff;
  --cyan-glow: rgba(0, 245, 255, 0.45);
  --cyan-subtle: rgba(0, 245, 255, 0.12);
  
  --indigo: #6366f1;
  --indigo-glow: rgba(99, 102, 241, 0.45);
  
  --violet: #a855f7;
  --magenta: #ec4899;
  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.4);
  --amber: #f59e0b;
  --rose: #f43f5e;

  --text-white: #f8fafc;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
  --text-dark: #334155;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.12);
  --border-cyan: rgba(0, 245, 255, 0.35);
  --border-active: rgba(0, 245, 255, 0.8);

  --font-display: 'Syne', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  --shadow-cyber: 0 0 35px rgba(0, 245, 255, 0.25);
  --shadow-indigo: 0 0 35px rgba(99, 102, 241, 0.25);
  --shadow-card: 0 10px 40px -10px rgba(0, 0, 0, 0.7);

  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: auto;
  background-color: var(--bg-deep);
  color: var(--text-white);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  width: 100%;
  position: relative;
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.16) 0%, transparent 60%),
    radial-gradient(circle at 90% 25%, rgba(0, 245, 255, 0.09) 0%, transparent 50%),
    radial-gradient(circle at 10% 70%, rgba(168, 85, 247, 0.09) 0%, transparent 50%);
  background-attachment: fixed;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cyan);
}

::selection {
  background: var(--cyan);
  color: var(--bg-deep);
}

/* --------------------------------------------------------------------------
   3. CYBERNETIC CURSOR & AMBIENT GRID
   -------------------------------------------------------------------------- */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease, width 0.2s ease, height 0.2s ease;
  box-shadow: 0 0 12px var(--cyan);
}

.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0, 245, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: transform 0.22s var(--ease-smooth), border-color 0.2s, background-color 0.2s;
}

body.cursor-active .cursor-follower {
  transform: translate(-50%, -50%) scale(1.6);
  border-color: var(--cyan);
  background-color: rgba(0, 245, 255, 0.1);
}

.cyber-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: 80px 80px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  pointer-events: none;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   4. FULL-WIDTH FLUID CONTAINER (2560px ULTRAWIDE READY)
   -------------------------------------------------------------------------- */
.section-container,
.nav-container,
.telemetry-inner,
.hero-grid {
  width: 100%;
  max-width: min(96vw, 2240px);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.5rem, 3.5vw, 4.5rem);
  padding-right: clamp(1.5rem, 3.5vw, 4.5rem);
}

/* --------------------------------------------------------------------------
   5. TELEMETRY TOP BAR & NAVIGATION
   -------------------------------------------------------------------------- */
.top-telemetry {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 38px;
  background: rgba(3, 7, 18, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-dim);
}

.telemetry-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.telemetry-left, .telemetry-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.pulse-node {
  width: 7px;
  height: 7px;
  background-color: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald);
  animation: radarPulse 2s infinite;
}

@keyframes radarPulse {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
  100% { transform: scale(0.9); opacity: 1; }
}

.telemetry-highlight {
  color: var(--cyan);
  font-weight: 600;
}

.site-header {
  position: fixed;
  top: 38px;
  left: 0;
  width: 100%;
  z-index: 999;
  padding: 1.1rem 0;
  transition: padding 0.3s ease, background 0.3s ease, border 0.3s ease;
}

.site-header.scrolled {
  padding: 0.75rem 0;
  background: rgba(7, 13, 30, 0.88);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
}

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

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

.brand-logo-hex {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.25), rgba(99, 102, 241, 0.35));
  border: 1px solid var(--border-cyan);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(0, 245, 255, 0.25);
}

.brand-logo-hex img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  background: rgba(0, 245, 255, 0.15);
  color: var(--cyan);
  border: 1px solid var(--border-cyan);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

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

.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: color 0.2s ease;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan);
  transition: width 0.2s ease;
  box-shadow: 0 0 8px var(--cyan);
}

.nav-links a:hover::after {
  width: 100%;
}

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

.sound-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sound-toggle:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 14px var(--cyan-glow);
}

/* --------------------------------------------------------------------------
   6. BUTTONS & CYBERNETIC CTA STYLING
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.25s var(--ease-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, #00f5ff 0%, #00a8ff 100%);
  color: #030712;
  border: 1px solid #00f5ff;
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 45px rgba(0, 245, 255, 0.7);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-white);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 245, 255, 0.08);
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.25);
}

.btn-magnetic {
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   7. HERO SECTION & FULL-WIDTH 3D STAGE
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: 150px;
  padding-bottom: 90px;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 4;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(0, 245, 255, 0.08);
  border: 1px solid var(--border-cyan);
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
  margin-bottom: 1.75rem;
  box-shadow: 0 0 25px rgba(0, 245, 255, 0.18);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.8vw, 5.4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 1.75rem;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 15%, #00f5ff 60%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 1.35vw, 1.35rem);
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 680px;
  margin-bottom: 2.75rem;
  font-weight: 400;
}

.hero-subtitle strong {
  color: var(--text-white);
  font-weight: 600;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.hero-proof-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--border-subtle);
}

.proof-item {
  display: flex;
  flex-direction: column;
}

.proof-val {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 2.3vw, 2.5rem);
  font-weight: 700;
  color: var(--text-white);
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.proof-val .unit {
  font-size: 1.15rem;
  color: var(--cyan);
}

.proof-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.35rem;
  letter-spacing: 0.04em;
}

.hero-webgl-wrapper {
  position: relative;
  width: 100%;
  height: clamp(560px, 50vw, 820px);
  display: flex;
  align-items: center;
  justify-content: center;
}

#webgl-globe-canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  outline: none;
}

#globe-hud-tooltip {
  position: fixed;
  display: none;
  z-index: 9999;
  background: rgba(7, 13, 30, 0.94);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.4rem;
  box-shadow: 0 0 35px rgba(0, 245, 255, 0.4);
  pointer-events: none;
  font-family: var(--font-body);
  min-width: 260px;
}

.hud-tt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.hud-tt-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cyan);
  background: var(--cyan-subtle);
  padding: 2px 7px;
  border-radius: 4px;
}

.hud-tt-live-dot {
  width: 7px;
  height: 7px;
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald);
}

.hud-tt-status {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--emerald);
}

.hud-tt-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.85rem;
}

.hud-tt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.hud-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--text-muted);
}

.hud-val {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white);
}

.hud-tt-footer {
  font-size: 0.76rem;
  color: var(--text-dim);
  margin-top: 0.6rem;
}

.globe-floating-tag {
  position: absolute;
  padding: 0.9rem 1.25rem;
  background: rgba(11, 19, 39, 0.82);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  z-index: 5;
  pointer-events: none;
  box-shadow: var(--shadow-card);
  animation: floatCard 6s ease-in-out infinite;
}

.globe-tag-top {
  top: 8%;
  right: 4%;
}

.globe-tag-bottom {
  bottom: 10%;
  left: 4%;
  animation-delay: -3s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* --------------------------------------------------------------------------
   8. COGNITIVE VISION STUDIO BENTO GRID
   -------------------------------------------------------------------------- */
.section {
  position: relative;
  padding: clamp(100px, 10vw, 160px) 0;
  z-index: 2;
}

.section-badge-center {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.section-title-center {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.4vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.section-subtitle-center {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 4.5rem auto;
  color: var(--text-dim);
  font-size: clamp(1.05rem, 1.25vw, 1.25rem);
  line-height: 1.65;
}

.ocr-studio-box {
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-xl);
  box-shadow: 0 0 60px rgba(0, 245, 255, 0.15);
  overflow: hidden;
  backdrop-filter: blur(24px);
}

.ocr-studio-header {
  padding: 1.4rem 2.5rem;
  background: rgba(7, 13, 30, 0.94);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.ocr-tabs {
  display: flex;
  gap: 0.65rem;
}

.ocr-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ocr-tab-btn.active, .ocr-tab-btn:hover {
  background: rgba(0, 245, 255, 0.16);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.3);
}

.ocr-studio-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 560px;
}

.doc-scanner-pane {
  position: relative;
  background: #090e1c;
  padding: clamp(2rem, 3.5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border-subtle);
  overflow: hidden;
}

.mock-invoice-paper {
  width: 100%;
  max-width: 580px;
  background: #0f172a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #cbd5e1;
}

.laser-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, #00f5ff 50%, transparent 100%);
  box-shadow: 0 0 20px #00f5ff, 0 0 40px #00f5ff;
  animation: sweepLaser 3.5s ease-in-out infinite;
  z-index: 10;
  pointer-events: none;
}

@keyframes sweepLaser {
  0% { top: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.ocr-bbox {
  border: 1.5px dashed var(--cyan);
  background: rgba(0, 245, 255, 0.1);
  border-radius: 6px;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.ocr-bbox:hover {
  background: rgba(0, 245, 255, 0.25);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
}

.ocr-bbox-tag {
  position: absolute;
  top: -18px;
  left: 0;
  background: var(--cyan);
  color: #030712;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 3px;
}

.extracted-terminal-pane {
  background: rgba(5, 9, 20, 0.96);
  padding: clamp(2rem, 3.5vw, 3rem);
  display: flex;
  flex-direction: column;
}

.terminal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.terminal-status-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--emerald);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

.extracted-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.extracted-item-row:hover {
  border-color: var(--cyan);
  background: rgba(0, 245, 255, 0.06);
}

.item-key {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
}

.item-val {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-white);
  margin-top: 2px;
}

.item-confidence {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.15);
  padding: 3px 8px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   9. DUAL-ECOSYSTEM ANIMATED DIAGRAM & GRAPHICS (UPGRADED)
   -------------------------------------------------------------------------- */
.dual-switch-container {
  display: flex;
  justify-content: center;
  margin-bottom: 3.5rem;
}

.ecosystem-toggle-bar {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-card);
  padding: 0.45rem;
  border-radius: var(--radius-pill);
  display: flex;
  gap: 0.65rem;
}

.eco-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 0.75rem 2.2rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.eco-btn.active {
  background: var(--cyan);
  color: var(--bg-deep);
  box-shadow: 0 0 25px var(--cyan-glow);
}

/* --------------------------------------------------------------------------
   9. DUAL-ECOSYSTEM ANIMATED DIAGRAM & GRAPHICS (UPGRADED)
   -------------------------------------------------------------------------- */

/* Architectural Animated Highway & Topology Canvas */
.ecosystem-arch-canvas {
  width: 100%;
  margin-bottom: 3.5rem;
  background: rgba(9, 14, 28, 0.85);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 2.5vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 245, 255, 0.12), inset 0 0 30px rgba(0, 245, 255, 0.04);
}

.arch-node {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  position: relative;
  transition: all 0.3s ease;
  z-index: 2;
  flex: 1;
  max-width: 320px;
}

.arch-node:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 245, 255, 0.2);
}

.arch-node-client { border-color: rgba(0, 245, 255, 0.4); }
.arch-node-core { 
  border-color: rgba(99, 102, 241, 0.6); 
  background: rgba(15, 20, 48, 0.95);
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.2);
}
.arch-node-dock { border-color: rgba(16, 185, 129, 0.5); }

.arch-node-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(0, 245, 255, 0.12);
  border: 1px solid var(--border-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.2);
}

.core-icon-glow {
  background: rgba(99, 102, 241, 0.18);
  border-color: var(--indigo);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.35);
}

.core-orbit-ring {
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  border: 1px dashed rgba(99, 102, 241, 0.35);
  border-radius: 20px;
  animation: orbitSpin 14s linear infinite;
  pointer-events: none;
}

@keyframes orbitSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.arch-node-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.arch-node-title {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.25;
}

.arch-node-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 3px;
  line-height: 1.35;
}

.arch-live-pulse {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: radarPulse 1.8s infinite;
}

/* Highway Conduit Connectors with Flowing Packets */
.arch-highway-conduit {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 140px;
}

.arch-highway-svg {
  width: 100%;
  height: 48px;
  overflow: visible;
}

.arch-flowing-line {
  stroke-dasharray: 80, 180;
  animation: highwayFlow 2.8s linear infinite;
}

@keyframes highwayFlow {
  0% { stroke-dashoffset: 260; }
  100% { stroke-dashoffset: 0; }
}

.arch-floating-packet {
  position: absolute;
  top: -10px;
  background: rgba(3, 7, 18, 0.92);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--cyan);
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.25);
  animation: floatPacket 3s ease-in-out infinite;
}

.packet-right {
  border-color: var(--emerald);
  color: var(--emerald);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
  animation-delay: -1.5s;
}

@keyframes floatPacket {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Symmetrical 2-Column Grid */
.dual-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 3.5vw, 4rem);
  align-items: stretch;
}

.device-pane-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  width: 100%;
}

/* Desktop Client Portal Frame (Rich UI) */
.device-frame-desktop {
  width: 100%;
  background: #080d1e;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.device-header {
  height: 44px;
  background: #02050f;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  gap: 0.85rem;
}

.traffic-dots {
  display: flex;
  gap: 6px;
}

.traffic-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.traffic-dot.red { background: #ef4444; }
.traffic-dot.yellow { background: #f59e0b; }
.traffic-dot.green { background: #10b981; }

.device-url-bar {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  height: 26px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  padding: 0 0.85rem;
}

.portal-header-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--emerald);
  font-weight: 700;
}

.portal-body-wrapper {
  padding: clamp(1.25rem, 2vw, 1.85rem);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  background: radial-gradient(circle at 10% 10%, rgba(0, 245, 255, 0.04) 0%, transparent 60%);
  flex: 1;
}

.portal-client-strip {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.portal-client-title {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  font-weight: 700;
  color: var(--text-white);
}

.portal-client-meta {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 3px;
}

.portal-badges-cluster {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.portal-stat-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--emerald);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Interactive Consignment Selector Tabs */
.portal-consign-nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 4px;
}

.portal-tab-pill {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.portal-tab-pill:hover {
  border-color: var(--cyan);
  color: var(--text-white);
}

.portal-tab-pill.active {
  background: rgba(0, 245, 255, 0.15);
  border-color: var(--cyan);
  color: var(--cyan);
  font-weight: 700;
  box-shadow: 0 0 14px rgba(0, 245, 255, 0.25);
}

.portal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.portal-dot.green { background: #10b981; box-shadow: 0 0 6px #10b981; }
.portal-dot.amber { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }
.portal-dot.blue { background: #38bdf8; box-shadow: 0 0 6px #38bdf8; }
.portal-dot.purple { background: #a855f7; box-shadow: 0 0 6px #a855f7; }

/* Real-Time Visual Milestone Stepper */
.portal-milestone-panel {
  background: rgba(11, 19, 39, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.milestone-top-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.milestone-stepper-graphic {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.step-point {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
  position: relative;
}

.step-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1e293b;
  border: 1.5px solid var(--border-subtle);
  color: #94a3b8;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 4px;
  transition: all 0.3s ease;
}

.step-point.completed .step-circle {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #030712;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.step-point.highlight-active .step-circle {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #030712;
  box-shadow: 0 0 14px var(--cyan);
}

.pulse-ring {
  animation: radarPulse 1.8s infinite;
}

.step-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #cbd5e1;
  font-weight: 600;
}

.step-sub {
  font-size: 0.6rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.step-track {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 4px 20px 4px;
  transition: all 0.3s ease;
}

.step-track.active {
  background: var(--emerald);
  box-shadow: 0 0 6px var(--emerald);
}

/* Active Consignment Detail Box */
.portal-active-job-box {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  transition: all 0.3s ease;
}

.job-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.job-id-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.job-id-txt {
  font-family: var(--font-mono);
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--cyan);
}

.job-status-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.job-status-pill.green {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.job-status-pill.amber {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.job-type-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.job-details-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  font-size: 0.82rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border-subtle);
}

.job-meta-item {
  display: flex;
  flex-direction: column;
}

.meta-lbl {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

.meta-val {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-top: 2px;
}

/* Document Vault Ingestion Widget */
.portal-vault-widget {
  background: rgba(9, 14, 28, 0.7);
  border: 1px dashed rgba(0, 245, 255, 0.35);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.15rem;
  transition: all 0.3s ease;
}

.portal-vault-widget:hover {
  border-color: var(--cyan);
  background: rgba(0, 245, 255, 0.04);
}

.vault-widget-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.vault-widget-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  font-weight: 700;
}

.vault-token-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

.vault-file-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.8);
  padding: 6px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  border: 1px solid var(--border-subtle);
}

.chip-name {
  color: #f8fafc;
  font-weight: 600;
}

.chip-status {
  color: var(--emerald);
  font-size: 0.68rem;
}

.vault-progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}

.vault-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00f5ff, #10b981);
  box-shadow: 0 0 8px #00f5ff;
  transition: width 0.6s ease;
}

/* Statutory BoE Pre-Approval & Duty Meter Widget */
.portal-duty-approval-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.duty-meter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.meter-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white);
}

.meter-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.btn-sign-boe {
  padding: 5px 12px;
  font-size: 0.75rem;
  border-color: var(--emerald);
  color: var(--emerald);
}

.btn-sign-boe:hover {
  background: rgba(16, 185, 129, 0.15);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.duty-breakdown-meters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.meter-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.meter-lbl {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #cbd5e1;
}

.meter-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  background: var(--cyan);
}

.digital-seal-badge {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--emerald);
  border-radius: 6px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--emerald);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: fadeIn 0.4s ease;
}

/* SOA Strip */
.portal-soa-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(11, 19, 39, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.soa-item {
  display: flex;
  gap: 6px;
}

.soa-lbl { color: var(--text-muted); }

.btn-micro-challan {
  background: rgba(0, 245, 255, 0.1);
  border: 1px solid var(--border-cyan);
  color: var(--cyan);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-micro-challan:hover {
  background: var(--cyan);
  color: #030712;
  box-shadow: 0 0 10px var(--cyan);
}

.portal-actions-row {
  display: flex;
  gap: 0.85rem;
  margin-top: 0.35rem;
}

/* --------------------------------------------------------------------------
   DOCK FIELD APP CYBERNETIC PHONE FRAME
   -------------------------------------------------------------------------- */
.device-frame-mobile {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  background: #030712;
  border: 2px solid var(--border-cyan);
  border-radius: 48px;
  padding: 14px;
  box-shadow: 0 0 60px rgba(0, 245, 255, 0.25), 0 20px 50px rgba(0, 0, 0, 0.8);
  position: relative;
}

.mobile-notch {
  width: 130px;
  height: 22px;
  background: #000;
  border-radius: 0 0 18px 18px;
  margin: 0 auto 12px auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.mobile-screen {
  background: #090e1c;
  border-radius: 34px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  overflow: hidden;
}

.camera-flash-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  transition: opacity 0.15s ease-out;
}

.camera-flash-overlay.flash {
  opacity: 0.85;
}

.mobile-top-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.field-meta-txt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.field-agent-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--cyan);
}

.field-gps-txt {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: #94a3b8;
  margin-top: 2px;
}

.field-offline-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--emerald);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

/* Animated Camera Viewfinder HUD */
.mobile-camera-viewfinder {
  border: 1.5px dashed rgba(0, 245, 255, 0.5);
  background: rgba(2, 6, 23, 0.85);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  position: relative;
  overflow: hidden;
  text-align: center;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 0 25px rgba(0, 245, 255, 0.15);
}

.viewfinder-laser-sweep {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #00f5ff, #10b981, transparent);
  box-shadow: 0 0 14px #00f5ff;
  animation: sweepLaser 3s ease-in-out infinite;
  z-index: 10;
  pointer-events: none;
}

.reticle-bracket {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--cyan);
  border-style: solid;
  pointer-events: none;
}
.reticle-bracket.top-left { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.reticle-bracket.top-right { top: 8px; right: 8px; border-width: 2px 2px 0 0; }
.reticle-bracket.bottom-left { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }
.reticle-bracket.bottom-right { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }

.scanned-stamp-mockup {
  margin: 10px auto;
  max-width: 230px;
  background: rgba(15, 23, 42, 0.8);
  border: 1.5px dashed var(--emerald);
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
  transition: all 0.3s ease;
}

.stamp-border-seal {
  border: 1px solid rgba(16, 185, 129, 0.6);
  padding: 6px;
  border-radius: 4px;
}

.stamp-headline {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--emerald);
  letter-spacing: 0.05em;
  margin: 2px 0;
}

.ocr-hud-tag-box {
  background: rgba(3, 7, 18, 0.85);
  border-radius: 6px;
  padding: 6px 10px;
  margin: 6px 0;
  text-align: left;
}

.hud-detect-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
}

.detect-badge {
  background: rgba(0, 245, 255, 0.2);
  color: var(--cyan);
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 800;
}

.detect-txt {
  color: #cbd5e1;
}

.viewfinder-prompt {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--cyan);
  letter-spacing: 0.02em;
}

.btn-mobile-shutter {
  padding: 0.75rem 0;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: 0 0 25px rgba(0, 245, 255, 0.35);
}

.mobile-task-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.task-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.task-card-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  color: #f59e0b;
}

.task-time-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  padding: 1px 6px;
  border-radius: 3px;
}

.task-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
}

.task-desc {
  font-size: 0.72rem;
  color: #94a3b8;
  margin: 3px 0 6px 0;
}

.task-status-completed {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--emerald);
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
}

.mobile-cash-logger {
  background: rgba(11, 19, 39, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.cash-logger-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  color: #94a3b8;
  font-weight: 700;
}

.cash-items-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cash-item {
  display: flex;
  justify-content: space-between;
  color: #cbd5e1;
}

/* --------------------------------------------------------------------------
   RIGHT SIDE: INTERACTIVE DIAGRAM & EXPLANATION PANEL
   -------------------------------------------------------------------------- */
.diagram-explain-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 3.5vw, 3rem);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.diagram-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--cyan);
  background: rgba(0, 245, 255, 0.12);
  border: 1px solid var(--border-cyan);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.diagram-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.diagram-desc {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.diagram-steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 2.25rem;
}

.diagram-step-item {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.1rem 1.35rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
}

.diagram-step-item:hover {
  border-color: var(--cyan);
  background: rgba(0, 245, 255, 0.06);
  transform: translateX(6px);
  box-shadow: 0 4px 20px rgba(0, 245, 255, 0.12);
}

.diagram-step-icon {
  width: 44px;
  height: 44px;
  background: rgba(0, 245, 255, 0.12);
  border: 1px solid var(--border-cyan);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.15);
}

.step-head-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.3rem;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.diagram-step-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-white);
}

.step-meta-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(0, 245, 255, 0.1);
  border: 1px solid var(--border-cyan);
  padding: 1px 7px;
  border-radius: 4px;
}

.diagram-step-detail {
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.55;
}

.step-interactive-bar {
  margin-top: 0.5rem;
}

.btn-micro-test {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-micro-test:hover {
  background: rgba(0, 245, 255, 0.15);
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.3);
}

/* --------------------------------------------------------------------------
   10. STATUTORY CUSTOMS TARIFF & DUTY CALCULATOR
   -------------------------------------------------------------------------- */
.calculator-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 4rem);
  box-shadow: var(--shadow-card);
}

.calc-input-wrapper {
  position: relative;
  max-width: 750px;
  margin: 0 auto 3rem auto;
}

.calc-input {
  width: 100%;
  background: rgba(3, 7, 18, 0.85);
  border: 1px solid var(--border-cyan);
  padding: 1.25rem 1.85rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--text-white);
  outline: none;
  box-shadow: 0 0 35px rgba(0, 245, 255, 0.18);
  transition: all 0.2s ease;
}

.calc-input:focus {
  box-shadow: 0 0 50px rgba(0, 245, 255, 0.45);
  border-color: var(--cyan);
}

.calc-preset-pills {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.calc-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.calc-pill:hover {
  background: rgba(0, 245, 255, 0.16);
  color: var(--cyan);
  border-color: var(--cyan);
}

.calc-results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.calc-res-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-align: center;
}

.calc-res-card.highlight {
  border-color: var(--cyan);
  background: rgba(0, 245, 255, 0.07);
  box-shadow: 0 0 35px rgba(0, 245, 255, 0.18);
}

/* --------------------------------------------------------------------------
   11. CUSTOMS FINANCE, MARGIN GUARD & REVENUE LEAK SHIELD SECTION
   -------------------------------------------------------------------------- */
.finance-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.finance-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.finance-card:hover {
  border-color: var(--cyan);
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(0, 245, 255, 0.18);
}

.finance-card-icon {
  font-size: 2.4rem;
  margin-bottom: 1.25rem;
  display: inline-block;
}

.finance-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.75rem;
}

.finance-card-desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.finance-tag {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--emerald);
  padding: 3px 8px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   12. 6-STAGE AUTONOMOUS PIPELINE
   -------------------------------------------------------------------------- */
.pipeline-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  position: relative;
  margin-top: 3.5rem;
}

.pipeline-node-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  position: relative;
  transition: all 0.3s ease;
}

.pipeline-node-card:hover {
  border-color: var(--cyan);
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0, 245, 255, 0.2);
}

.pipeline-step-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 0.85rem;
}

.pipeline-step-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-white);
}

.pipeline-step-desc {
  font-size: 0.86rem;
  color: var(--text-dim);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   13. FOOTER & CALL TO ACTION
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  background: #02040a;
  border-top: 1px solid var(--border-subtle);
  padding: 90px 0 45px 0;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4.5rem;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.94rem;
  line-height: 1.65;
  max-width: 380px;
  margin-top: 1.25rem;
}

.footer-links h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 1.5rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

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

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

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

/* --------------------------------------------------------------------------
   14. RESPONSIVE BREAKPOINTS (LAPTOP, TABLET & MOBILE)
   -------------------------------------------------------------------------- */

/* Standard 14-Inch, 15-Inch & 16-Inch Laptops (1366px - 1536px) */
@media (max-width: 1536px) {
  .top-telemetry {
    height: 32px;
    font-size: 0.68rem;
  }
  .telemetry-left, .telemetry-right {
    gap: 0.75rem;
  }
  .site-header {
    top: 32px;
    padding: 0.65rem 0;
  }
  .site-header.scrolled {
    padding: 0.55rem 0;
  }
  .brand-logo-hex {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .brand-logo-hex img {
    width: 22px;
    height: 22px;
  }
  .brand-name {
    font-size: 1.35rem;
  }
  .nav-links {
    gap: 1.15rem;
  }
  .nav-links a {
    font-size: 0.82rem;
  }
  .nav-actions {
    gap: 0.6rem;
  }
  .sound-toggle {
    width: 34px;
    height: 34px;
    font-size: 0.88rem;
  }
  .site-header .btn {
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
    white-space: nowrap !important;
  }

  /* Hero Section for 14-inch Laptops */
  .hero-section {
    padding-top: 105px;
    padding-bottom: 35px;
    min-height: calc(100vh - 32px);
    display: flex;
    align-items: center;
  }
  .hero-grid {
    grid-template-columns: 1.18fr 0.82fr;
    gap: 2.25rem;
    align-items: center;
  }
  .hero-pill-badge {
    font-size: 0.7rem;
    padding: 0.35rem 0.95rem;
    margin-bottom: 0.85rem;
  }
  .hero-title {
    font-size: clamp(2.3rem, 3.4vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    margin-bottom: 0.95rem;
  }
  .hero-subtitle {
    font-size: 0.96rem;
    line-height: 1.55;
    margin-bottom: 1.45rem;
    max-width: 550px;
  }
  .hero-cta-group {
    margin-bottom: 1.6rem;
    gap: 0.85rem;
  }
  .hero-cta-group .btn {
    padding: 0.72rem 1.6rem;
    font-size: 0.88rem;
  }
  .hero-proof-bar {
    padding-top: 1.25rem;
    gap: 1.25rem;
  }
  .proof-val {
    font-size: 1.75rem;
  }
  .proof-label {
    font-size: 0.68rem;
  }
  .hero-webgl-wrapper {
    height: 440px;
    max-height: 55vh;
  }
  .globe-telemetry-card {
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.75rem 0.95rem;
    width: 220px;
  }
  .hud-tt-title {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }
  .hud-val {
    font-size: 0.85rem;
  }

  /* Section Spacing & Titles */
  .section {
    padding: 4.5rem 0;
  }
  .section-badge-center {
    margin-bottom: 0.85rem;
  }
  .section-title-center {
    font-size: clamp(2rem, 3.2vw, 3.2rem);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
  }
  .section-subtitle-center {
    font-size: 0.96rem;
    line-height: 1.55;
    margin-bottom: 2.5rem;
    max-width: 720px;
  }

  /* Section 1: Cognitive OCR Studio */
  .ocr-studio-box {
    border-radius: var(--radius-lg);
  }
  .ocr-studio-header {
    padding: 0.9rem 1.75rem;
  }
  .ocr-studio-body {
    min-height: 480px;
    grid-template-columns: 1.15fr 1fr;
  }
  .doc-item-row {
    padding: 0.55rem 0.85rem;
    font-size: 0.78rem;
  }

  /* Section 2: Dual Ecosystem */
  .ecosystem-arch-canvas {
    padding: 1.15rem 1.5rem;
    margin-bottom: 2rem;
  }
  .arch-node {
    padding: 0.8rem 1rem;
    max-width: 240px;
  }
  .arch-node-title {
    font-size: 0.9rem;
  }
  .arch-node-sub {
    font-size: 0.68rem;
  }
  .arch-highway-conduit {
    min-width: 90px;
  }
  .dual-showcase-grid {
    grid-template-columns: 1.18fr 0.82fr;
    gap: 1.75rem;
  }
  .diagram-explain-panel {
    padding: 1.6rem;
    border-radius: var(--radius-lg);
  }
  .diagram-title {
    font-size: 1.35rem;
    margin-bottom: 0.6rem;
    line-height: 1.22;
  }
  .diagram-desc {
    font-size: 0.86rem;
    line-height: 1.45;
    margin-bottom: 1.25rem;
  }
  .diagram-steps-list {
    gap: 0.65rem;
    margin-bottom: 1.25rem;
  }
  .diagram-step-item {
    padding: 0.75rem 0.95rem;
    gap: 0.85rem;
  }
  .diagram-step-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    border-radius: 10px;
  }
  .diagram-step-title {
    font-size: 0.88rem;
  }
  .diagram-step-desc {
    font-size: 0.76rem;
    line-height: 1.35;
  }
  .portal-body-wrapper {
    padding: 1.15rem;
    gap: 0.85rem;
  }
  .portal-client-title {
    font-size: 1.15rem;
  }

  /* Section 3: Customs Finance Bento Grid */
  .finance-bento-grid {
    gap: 1.15rem;
  }
  .bento-card {
    padding: 1.35rem;
  }
  .bento-card-title {
    font-size: 1.15rem;
  }
  .bento-card-desc {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  /* Section 4: Autonomous Pipeline */
  .pipeline-track {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  .pipeline-stage-card {
    padding: 1.15rem;
  }

  /* Section 5: Statutory Tariff Engine */
  .calc-studio-card {
    padding: 1.75rem 2rem;
    max-width: 960px;
  }
}

/* Height-Constrained Laptops (e.g. 1366x768 or 1440x900 with browser chrome) */
@media (max-height: 820px) and (min-width: 900px) {
  .hero-section {
    padding-top: 85px;
    padding-bottom: 20px;
    min-height: calc(100vh - 32px);
  }
  .hero-pill-badge {
    margin-bottom: 0.65rem;
    font-size: 0.68rem;
  }
  .hero-title {
    font-size: 2.45rem;
    line-height: 1.1;
    margin-bottom: 0.75rem;
  }
  .hero-subtitle {
    font-size: 0.92rem;
    line-height: 1.45;
    margin-bottom: 1.15rem;
  }
  .hero-cta-group {
    margin-bottom: 1.25rem;
  }
  .hero-cta-group .btn {
    padding: 0.65rem 1.4rem;
    font-size: 0.85rem;
  }
  .hero-proof-bar {
    padding-top: 1rem;
    gap: 1rem;
  }
  .proof-val {
    font-size: 1.55rem;
  }
  .proof-label {
    font-size: 0.65rem;
  }
  .hero-webgl-wrapper {
    height: 380px;
  }
}

@media (max-width: 1200px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-proof-bar {
    max-width: 580px;
    margin: 0 auto;
  }
  .ocr-studio-body {
    grid-template-columns: 1fr;
  }
  .dual-showcase-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .ecosystem-arch-canvas {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }
  .arch-node {
    max-width: 100%;
    width: 100%;
  }
  .arch-highway-conduit {
    width: 100%;
    min-width: 100%;
    height: 36px;
  }
  .arch-floating-packet {
    display: none;
  }
  .finance-bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pipeline-track {
    grid-template-columns: repeat(3, 1fr);
  }
  .calc-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .top-telemetry {
    display: none;
  }
  .site-header {
    top: 0;
  }
  .nav-links {
    display: none;
  }
  .hero-title {
    font-size: 2.6rem;
  }
  .ecosystem-arch-canvas {
    padding: 1.25rem;
  }
  .portal-client-strip {
    flex-direction: column;
    align-items: flex-start;
  }
  .job-details-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .duty-breakdown-meters {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .step-sub {
    display: none;
  }
  .step-label {
    font-size: 0.58rem;
  }
  .step-circle {
    width: 20px;
    height: 20px;
    font-size: 9px;
  }
  .portal-soa-strip {
    flex-direction: column;
    align-items: flex-start;
  }
  .portal-actions-row {
    flex-direction: column;
  }
  .device-frame-mobile {
    border-radius: 32px;
    padding: 10px;
  }
  .mobile-screen {
    border-radius: 24px;
    padding: 0.85rem;
  }
  .mobile-notch {
    width: 100px;
    height: 16px;
    margin-bottom: 8px;
  }
  .finance-bento-grid {
    grid-template-columns: 1fr;
  }
  .pipeline-track {
    grid-template-columns: 1fr;
  }
  .calc-results-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   15. ENTERPRISE ACCESS & INTERACTIVE LIVE SANDBOX GATEWAY MODAL
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

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

.modal-dialog-wrapper {
  width: 100%;
  max-width: 880px;
  max-height: 94vh;
  overflow-y: auto;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 245, 255, 0.3) rgba(15, 23, 42, 0.5);
}

.modal-dialog-wrapper::-webkit-scrollbar {
  width: 5px;
}
.modal-dialog-wrapper::-webkit-scrollbar-thumb {
  background: rgba(0, 245, 255, 0.4);
  border-radius: 4px;
}

.modal-window {
  position: relative;
  background: linear-gradient(135deg, rgba(13, 21, 41, 0.96) 0%, rgba(6, 11, 26, 0.98) 100%);
  border: 1px solid rgba(0, 245, 255, 0.35);
  border-radius: 20px;
  padding: 2.25rem;
  box-shadow: 0 30px 90px -15px rgba(0, 0, 0, 0.95), 0 0 50px rgba(0, 245, 255, 0.18);
  transform: scale(0.94) translateY(24px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid var(--cyan);
  pointer-events: none;
}
.modal-corner-tl { top: -1px; left: -1px; border-right: none; border-bottom: none; border-top-left-radius: 20px; }
.modal-corner-tr { top: -1px; right: -1px; border-left: none; border-bottom: none; border-top-right-radius: 20px; }
.modal-corner-bl { bottom: -1px; left: -1px; border-right: none; border-top: none; border-bottom-left-radius: 20px; }
.modal-corner-br { bottom: -1px; right: -1px; border-left: none; border-top: none; border-bottom-right-radius: 20px; }

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-card);
  color: var(--text-white);
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}
.modal-close:hover {
  background: rgba(244, 63, 94, 0.2);
  border-color: var(--rose);
  color: var(--rose);
  transform: rotate(90deg);
}

.modal-header-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-right: 2.5rem;
}
.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 245, 255, 0.08);
  border: 1px solid rgba(0, 245, 255, 0.25);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
}
.modal-status-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.modal-heading-group {
  margin-bottom: 1.5rem;
}
.modal-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #00f5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.4rem;
}
.modal-desc {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.5;
  max-width: 640px;
}

.modal-roles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.modal-role-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.1rem;
  background: rgba(11, 19, 39, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
  user-select: none;
}
.modal-role-card:hover {
  background: rgba(18, 30, 60, 0.85);
  border-color: rgba(0, 245, 255, 0.4);
  transform: translateY(-2px);
}
.modal-role-card.active {
  background: rgba(0, 245, 255, 0.09);
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(0, 245, 255, 0.16);
}
.role-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.role-info {
  flex-grow: 1;
}
.role-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.3;
}
.role-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.3;
}
.role-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: transparent;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.modal-role-card.active .role-check {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #030712;
  font-weight: 900;
}

.modal-role-summary {
  background: rgba(0, 245, 255, 0.04);
  border: 1px solid rgba(0, 245, 255, 0.22);
  border-radius: 10px;
  padding: 0.85rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}
.summary-pill {
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: rgba(0, 245, 255, 0.15);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--cyan);
  white-space: nowrap;
  letter-spacing: 0.05em;
}
.summary-text {
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.45;
}
.summary-text strong {
  color: var(--cyan);
}

.modal-actions-container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.15rem;
}

.modal-action-card {
  background: rgba(11, 19, 39, 0.7);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.modal-action-card.launch-sandbox-box {
  border-color: rgba(99, 102, 241, 0.45);
  background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.12) 0%, rgba(11, 19, 39, 0.7) 70%);
}
.action-card-header {
  margin-bottom: 1.1rem;
}
.action-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--indigo);
  background: rgba(99, 102, 241, 0.12);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}
.action-tag-vip {
  color: var(--cyan);
  background: rgba(0, 245, 255, 0.12);
}
.action-card-header h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.35rem;
}
.action-card-header p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.modal-launch-btn {
  width: 100%;
  padding: 0.85rem 1.25rem;
  font-size: 0.92rem;
  justify-content: center;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.modal-form-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.modal-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  color: var(--text-white);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  outline: none;
  transition: all 0.2s ease;
}
.modal-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.2);
}
.modal-submit-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  justify-content: center;
}
.modal-form-feedback {
  margin-top: 0.6rem;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--emerald);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.4;
}

.modal-footer-telemetry {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}
.telemetry-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.dot-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

/* --------------------------------------------------------------------------
   16. PERFECTION RESPONSIVE REFINEMENTS & TOUCH OPTIMIZATION
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .modal-actions-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .modal-backdrop {
    padding: 0.75rem;
  }
  .modal-window {
    padding: 1.35rem 1.1rem;
    border-radius: 16px;
  }
  .modal-close {
    top: 0.9rem;
    right: 0.9rem;
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }
  .modal-title {
    font-size: 1.48rem;
    line-height: 1.2;
  }
  .modal-desc {
    font-size: 0.84rem;
  }
  .modal-roles-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .modal-role-card {
    padding: 0.75rem 0.95rem;
  }
  .role-icon {
    font-size: 1.25rem;
  }
  .role-name {
    font-size: 0.85rem;
  }
  .role-sub {
    font-size: 0.7rem;
  }
  .modal-role-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.75rem 0.95rem;
  }
  .modal-actions-container {
    grid-template-columns: 1fr;
  }
  .modal-header-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .modal-footer-telemetry {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .header-btn-cha {
    display: none !important;
  }
  .site-header {
    padding: 0.75rem 1rem;
  }
  .site-header .nav-actions {
    gap: 0.5rem;
  }
  .site-header .nav-actions .btn-open-auth-modal {
    padding: 0.48rem 0.95rem !important;
    font-size: 0.82rem !important;
    white-space: nowrap !important;
    border-radius: var(--radius-pill) !important;
  }
  .section-title-center {
    font-size: clamp(1.9rem, 7.5vw, 2.7rem) !important;
    line-height: 1.18 !important;
  }
}

@media (max-width: 480px) {
  .sound-toggle {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }
  .modal-launch-btn,
  .modal-submit-btn {
    font-size: 0.85rem !important;
  }
}

/* Disable custom cursor on touch screens */
@media (hover: none) and (pointer: coarse) {
  .cursor-dot,
  .cursor-follower {
    display: none !important;
  }
}

