/* ==========================================================================
   BIRDA STUDIO PRO OS — RADICAL HIGH-TECH & CYBER-FINTECH DESIGN SYSTEM
   ========================================================================== */

:root {
  /* Obsidian Core Palette */
  --space-black: #05070b;
  --panel-bg: rgba(11, 16, 26, 0.82);
  --panel-elevated: rgba(17, 26, 44, 0.9);
  --card-bg: rgba(14, 21, 36, 0.75);
  --card-hover: rgba(22, 34, 58, 0.85);
  --input-surface: rgba(6, 9, 15, 0.9);

  /* Laser & Refraction Accents */
  --cyan-neon: #00f2fe;
  --blue-laser: #38bdf8;
  --emerald-neon: #10b981;
  --amber-neon: #f59e0b;
  --rose-laser: #f43f5e;
  --purple-laser: #818cf8;

  /* Hairline Borders */
  --border-line: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.14);
  --border-glow-cyan: rgba(0, 242, 254, 0.4);

  /* Typography Hierarchies */
  --text-pure: #f8fafc;
  --text-slate: #94a3b8;
  --text-muted: #64748b;

  --font-hero: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Lighting & Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --glow-cyan: 0 0 35px -5px rgba(0, 242, 254, 0.35);
  --glow-emerald: 0 0 35px -5px rgba(16, 185, 129, 0.35);
  --glow-rose: 0 0 35px -5px rgba(244, 63, 94, 0.35);
  --inner-bevel: inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
  --shadow-hull: 0 20px 50px -10px rgba(0, 0, 0, 0.7);
}

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

body {
  background-color: var(--space-black);
  color: var(--text-pure);
  font-family: var(--font-body);
  min-height: 100dvh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Background Cyber Canvas */
.space-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.mesh-beam {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.22;
}

.beam-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, #00f2fe, transparent 70%);
  top: -200px;
  left: 15%;
}

.beam-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #38bdf8, transparent 70%);
  bottom: -100px;
  right: 10%;
}

.beam-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #818cf8, transparent 70%);
  top: 40%;
  left: 45%;
  opacity: 0.12;
}

.cyber-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black, transparent 85%);
}

/* App Shell */
.studio-app {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 32px 80px;
  position: relative;
  z-index: 1;
}

/* Top Command Strip */
.studio-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 14px 20px;
  background: var(--panel-bg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hull), var(--inner-bevel);
  margin-bottom: 28px;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-core {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(56, 189, 248, 0.05));
  border: 1px solid var(--border-glow-cyan);
  box-shadow: var(--glow-cyan), var(--inner-bevel);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-neon);
}

.brand-name {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.name-highlight {
  background: linear-gradient(135deg, #00f2fe 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pro-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  background: rgba(0, 242, 254, 0.15);
  border: 1px solid rgba(0, 242, 254, 0.35);
  color: var(--cyan-neon);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}

.brand-tagline {
  font-size: 11px;
  color: var(--text-slate);
  margin-top: 2px;
}

/* Dock Navigation */
.mode-switch-dock {
  display: flex;
  gap: 6px;
  background: rgba(6, 9, 15, 0.6);
  padding: 5px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-line);
}

.dock-tab {
  background: transparent;
  border: none;
  color: var(--text-slate);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.dock-tab:hover {
  color: var(--text-pure);
  background: rgba(255, 255, 255, 0.05);
}

.dock-tab.active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(56, 189, 248, 0.1));
  color: var(--text-pure);
  border: 1px solid rgba(0, 242, 254, 0.4);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2), var(--inner-bevel);
}

/* System Hub */
.system-hub {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hub-pill {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--inner-bevel);
}

.status-gate {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--amber-neon);
  cursor: pointer;
}

.status-gate.connected {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.35);
  color: var(--emerald-neon);
}

.gate-laser {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  animation: laserPulse 1.8s infinite ease-in-out;
}

@keyframes laserPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.85); }
}

.sound-toggle-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-slate);
  cursor: pointer;
  transition: all 0.15s ease;
}

.sound-toggle-btn:hover {
  color: var(--cyan-neon);
  border-color: var(--cyan-neon);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.3);
}

/* Chambers (Tabs) */
.tab-chamber {
  display: none;
}

.tab-chamber.active {
  display: block;
  animation: chamberEntrance 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* SPLIT STUDIO GRID */
.split-studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

/* Console Panel (Common) */
.console-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-hull), var(--inner-bevel);
}

.panel-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 20px;
  letter-spacing: 0.08em;
}

.pulse-code {
  color: var(--cyan-neon);
}

.eyebrow-divider {
  color: var(--border-glass);
}

/* Presets Chips */
.preset-preset-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.preset-label {
  font-size: 12px;
  color: var(--text-muted);
}

.preset-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.device-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-line);
  color: var(--text-slate);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan-neon);
}

.device-chip:hover {
  background: rgba(0, 242, 254, 0.1);
  border-color: rgba(0, 242, 254, 0.35);
  color: var(--cyan-neon);
  transform: translateY(-1px);
}

/* Segmented Scanner Hull */
.imei-scanner-hull {
  background: var(--input-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.7), var(--inner-bevel);
  transition: border-color 0.2s ease;
}

.imei-scanner-hull:focus-within {
  border-color: var(--cyan-neon);
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.2), inset 0 2px 10px rgba(0,0,0,0.7);
}

.scanner-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.scanner-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.btn-subtle {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-line);
  color: var(--text-slate);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-subtle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-pure);
}

.cyber-imei-input {
  width: 100%;
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 4px;
  color: #fff;
  outline: none;
  padding: 8px 0 16px;
}

.cyber-imei-input::placeholder {
  color: var(--text-muted);
  letter-spacing: 2px;
  font-size: 20px;
  opacity: 0.5;
}

/* Digit Segmentation HUD */
.digit-segments-hud {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr;
  gap: 8px;
  border-top: 1px solid var(--border-line);
  padding-top: 12px;
}

.segment-pill {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-xs);
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
}

.seg-name {
  font-size: 9px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.seg-val {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan-neon);
  margin-top: 2px;
}

/* Luhn Barometer */
.luhn-barometer {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.baro-status {
  display: flex;
  align-items: center;
  gap: 12px;
}

.baro-icon-ring {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
}

.luhn-barometer.valid .baro-icon-ring {
  border-color: var(--emerald-neon);
  background: var(--emerald-neon);
  box-shadow: 0 0 10px var(--emerald-neon);
}

.luhn-barometer.invalid .baro-icon-ring {
  border-color: var(--rose-laser);
  background: var(--rose-laser);
  box-shadow: 0 0 10px var(--rose-laser);
}

.baro-title {
  font-size: 13px;
  font-weight: 700;
}

.luhn-barometer.valid .baro-title { color: var(--emerald-neon); }
.luhn-barometer.invalid .baro-title { color: var(--rose-laser); }

.baro-desc {
  font-size: 11px;
  color: var(--text-muted);
}

.tac-brand-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-laser);
}

/* Supercharged Action Button */
.btn-supercharge {
  width: 100%;
  background: linear-gradient(135deg, #00f2fe 0%, #38bdf8 100%);
  color: #05070b;
  border: none;
  border-radius: var(--radius-md);
  padding: 18px 24px;
  font-family: var(--font-hero);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.05em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.btn-supercharge:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0, 242, 254, 0.55);
}

.btn-supercharge:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-supercharge:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
  animation: shimmerMove 3s infinite;
}

@keyframes shimmerMove {
  100% { left: 200%; }
}

/* Feature Strip */
.feature-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 24px;
  border-top: 1px solid var(--border-line);
  padding-top: 20px;
}

.feat-item {
  font-size: 12px;
  color: var(--text-slate);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* RIGHT COLUMN: Hologram & Blueprint Stage */
.hologram-stage {
  height: 100%;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.device-chassis-blueprint {
  width: 320px;
  height: 460px;
  border-radius: 40px;
  background: rgba(11, 16, 26, 0.6);
  border: 2px solid rgba(0, 242, 254, 0.3);
  box-shadow: 0 0 50px rgba(0, 242, 254, 0.15), var(--inner-bevel);
  padding: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.chassis-glass {
  flex: 1;
  border-radius: 30px;
  background: radial-gradient(circle at center, rgba(0, 242, 254, 0.05), transparent 70%);
  border: 1px solid var(--border-glass);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.chassis-speaker {
  width: 50px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  position: absolute;
  top: 14px;
}

.chassis-camera {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.4);
  position: absolute;
  top: 11px;
  left: 35%;
}

.hud-center-graphic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.radar-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 242, 254, 0.2);
}

.c1 { width: 120px; height: 120px; }
.c2 { width: 80px; height: 80px; }
.c3 { width: 40px; height: 40px; }

.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(0, 242, 254, 0.4), transparent 60deg);
  animation: radarRotate 4s linear infinite;
}

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

.hud-core-icon {
  font-size: 32px;
  position: relative;
  z-index: 1;
}

.hud-status-caption {
  font-family: var(--font-hero);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--cyan-neon);
  margin-bottom: 6px;
}

.hud-sub-caption {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.chassis-slot-badge {
  position: absolute;
  background: var(--panel-elevated);
  border: 1px solid var(--border-glass);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-hull);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-neon);
  box-shadow: 0 0 8px var(--cyan-neon);
}

.slot-1 { top: 70px; right: -40px; }
.slot-2 { bottom: 80px; left: -40px; }

/* ACTIVE DIAGNOSTIC REPORT CANVAS */
.report-canvas {
  animation: reportPopIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes reportPopIn {
  from { opacity: 0; transform: scale(0.97) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.diagnostic-master-card {
  background: var(--panel-bg);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-hull), var(--inner-bevel);
  position: relative;
  overflow: hidden;
}

.diagnostic-master-card.clean { border-color: rgba(16, 185, 129, 0.4); }
.diagnostic-master-card.debt { border-color: rgba(244, 63, 94, 0.45); }
.diagnostic-master-card.unregistered { border-color: rgba(245, 158, 11, 0.45); }

/* Report Header */
.report-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.device-brand-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--cyan-neon);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.device-hero-title {
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-top: 4px;
}

.imei-chips-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.chip-primary-imei {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.3);
  padding: 3px 10px;
  border-radius: var(--radius-xs);
}

.status-badge-laser {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--inner-bevel);
}

.laser-clean {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
}

.laser-debt {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.45);
  color: #f87171;
}

.laser-unreg {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
}

/* Passport Warning Banner */
.passport-notice-card {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.passport-notice-title {
  font-size: 13px;
  font-weight: 800;
  color: #34d399;
}

.passport-notice-text {
  font-size: 12px;
  color: var(--text-slate);
  line-height: 1.4;
  margin-top: 2px;
}

/* Slot 2 Calculator Box */
.slot2-calc-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px dashed var(--border-glow-cyan);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.slot2-calc-title {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--text-muted);
}

.slot2-calc-number {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  color: var(--cyan-neon);
  letter-spacing: 1px;
  margin-top: 2px;
}

.slot2-calc-hint {
  font-size: 11px;
  color: var(--text-muted);
}

/* Fee Calculator Banner */
.fee-block-card {
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.fee-display-val {
  font-family: var(--font-hero);
  font-size: 26px;
  font-weight: 900;
  color: var(--cyan-neon);
}

.fee-calc-desc {
  font-size: 12px;
  color: var(--text-slate);
}

/* Debt Status Hero Block */
.debt-status-block {
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.debt-status-block.clean {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.debt-status-block.debt {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.4);
}

.debt-block-title {
  font-size: 14px;
  font-weight: 800;
}

.debt-block-desc {
  font-size: 12px;
  color: var(--text-slate);
}

.debt-amount-highlight {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  margin-top: 4px;
}

/* Matrix 4-Tile Grid */
.telemetry-4grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.telemetry-tile {
  background: rgba(6, 9, 15, 0.6);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: var(--inner-bevel);
}

.tile-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
}

.tile-main-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-pure);
  margin-top: 4px;
}

.tile-secondary-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Action Strip */
.report-action-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-line);
  padding-top: 20px;
}

/* TABLES & BATCH MATRIX */
.chamber-heading {
  font-family: var(--font-hero);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.3px;
}

.chamber-desc {
  font-size: 13px;
  color: var(--text-slate);
  margin-top: 2px;
}

.matrix-input-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.toolbar-actions {
  display: flex;
  gap: 8px;
}

.cyber-matrix-textarea {
  width: 100%;
  background: var(--input-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #fff;
  outline: none;
  resize: vertical;
  line-height: 1.6;
}

.cyber-matrix-textarea:focus {
  border-color: var(--cyan-neon);
}

.matrix-launch-row {
  margin-top: 16px;
}

.matrix-progress-zone {
  margin: 24px 0;
}

.matrix-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-slate);
  margin-bottom: 6px;
}

.mono-num {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--cyan-neon);
}

.matrix-progress-track {
  height: 6px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.matrix-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00f2fe, #38bdf8);
  box-shadow: 0 0 12px var(--cyan-neon);
  transition: width 0.3s ease;
}

.table-action-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.table-metrics {
  font-size: 13px;
  color: var(--text-slate);
}

.cyber-table-container {
  overflow-x: auto;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  margin-top: 16px;
}

.cyber-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.cyber-table th {
  background: rgba(6, 9, 15, 0.9);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-glass);
}

.cyber-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-line);
}

.cyber-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.journal-search-field {
  background: var(--input-surface);
  border: 1px solid var(--border-glass);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  outline: none;
  font-family: var(--font-body);
}

.btn-danger-tone:hover {
  color: var(--rose-laser);
  border-color: rgba(244, 63, 94, 0.4);
}

/* GATEWAY TAB */
.gateway-status-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.status-radar-cluster {
  display: flex;
  align-items: center;
  gap: 14px;
}

.radar-node {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--amber-neon);
  box-shadow: 0 0 12px var(--amber-neon);
}

.gateway-status-card.connected .radar-node {
  background: var(--emerald-neon);
  box-shadow: 0 0 12px var(--emerald-neon);
}

.radar-node-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
}

.radar-node-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--cyan-neon);
  margin-top: 2px;
}

.radar-node-sub {
  font-size: 12px;
  color: var(--text-slate);
  margin-top: 2px;
}

.token-inject-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}

.inject-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
}

.inject-desc {
  font-size: 13px;
  color: var(--text-slate);
  margin-bottom: 16px;
}

.inject-form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.mono-font-token {
  font-size: 13px !important;
  padding: 12px 16px !important;
  letter-spacing: 0 !important;
  flex: 1;
  min-width: 280px;
}

.env-guide-strip {
  background: rgba(0, 242, 254, 0.03);
  border: 1px dashed rgba(0, 242, 254, 0.25);
  border-radius: var(--radius-md);
  padding: 20px;
}

.guide-lead {
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan-neon);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.guide-text {
  font-size: 12px;
  color: var(--text-slate);
}

.guide-snippet {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-xs);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #fff;
  margin-top: 8px;
  overflow-x: auto;
}

/* FOOTER */
.studio-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  border-top: 1px solid var(--border-line);
  padding-top: 24px;
  margin-top: 48px;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-sep {
  margin: 0 8px;
  color: var(--border-glass);
}

.highlight-emerald { color: var(--emerald-neon); }
.highlight-cyan { color: var(--cyan-neon); }

/* TOAST SHELF */
.toast-shelf {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.cyber-toast {
  background: var(--panel-elevated);
  border: 1px solid var(--border-glass);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-hull), var(--inner-bevel);
  animation: toastFlyIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastFlyIn {
  from { opacity: 0; transform: translateY(14px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* PRINT MODE */
@media print {
  body { background: #fff !important; color: #000 !important; }
  .space-canvas, .studio-topbar, .mode-switch-dock, .workbench-column, .studio-footer, .toast-shelf, .report-action-strip {
    display: none !important;
  }
  .split-studio-grid { display: block !important; }
  .diagnostic-master-card {
    background: #fff !important;
    border: 2px solid #000 !important;
    box-shadow: none !important;
    color: #000 !important;
  }
  .device-hero-title, .status-badge-laser, .tile-main-val { color: #000 !important; }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .split-studio-grid {
    grid-template-columns: 1fr;
  }
  .hologram-stage {
    min-height: 360px;
  }
  .slot-1, .slot-2 {
    position: static;
    margin-top: 10px;
  }
}

@media (max-width: 768px) {
  .studio-app {
    padding: 16px 14px 60px;
  }
  .console-panel {
    padding: 20px;
  }
  .cyber-imei-input {
    font-size: 20px;
    letter-spacing: 2px;
  }
}
