@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&family=Fira+Code:wght@400;500&display=swap');

:root {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: dark;
  color: #f8fafc;
  background-color: #020617; /* slate-950 */

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Theme color tokens */
  --bg-slate-900: #0f172a;
  --bg-slate-800: #1e293b;
  --bg-slate-950: #020617;
  
  --color-backend: #3b82f6;
  --color-devops: #10b981;
  --color-security: #ef4444;
  --color-frontend: #a855f7;
  --color-datascience: #f59e0b;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-slate-950);
  overflow: hidden;
}

#root {
  width: 100vw;
  height: 100vh;
  max-width: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* App container */

.app-container {
  width: 100vw;
  height: 100vh;
  background: var(--bg-slate-950);
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.game-header-bar {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
}

.game-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.6;
}

.dashboard-btn {
  display: none;
}

/* Game layouts */

.game-layout {
  width: 100%;
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.game-main-area {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 1;
  background: #020617;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  border: none;
}

.game-sidebar-area {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(15, 23, 42, 0.5);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  max-height: 520px;
  overflow-y: auto;
}

/* Global Transitions and Animations */

@keyframes screen-fade-in {
  0% {
    opacity: 0;
    transform: scale(0.98);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
/* ==========================================================================
   RETRO BOOT SCREEN
   ========================================================================== */
.boot-screen {
  background-color: #050505;
  color: #39ff14; /* Neon terminal green */
  font-family: 'Courier New', Courier, monospace;
  width: 100%;
  height: 100%;
  padding: 2.5rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  text-align: left;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  animation: screen-fade-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), filter 0.7s ease;
}

.boot-screen.fade-out {
  opacity: 0;
  filter: brightness(0.1);
  pointer-events: none;
}

.boot-crt-effect {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.3) 50%);
  background-size: 100% 5px;
  pointer-events: none;
  z-index: 10;
  animation: crt-flicker-subtle 0.15s infinite;
}

.boot-terminal-log {
  width: 100%;
  flex: 1;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  line-height: 1.6;
  font-size: 1rem;
  text-shadow: 0 0 5px rgba(57, 255, 20, 0.5);
  margin-bottom: 2rem;
  user-select: none;
}

.boot-terminal-log::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.boot-line {
  margin-bottom: 0.25rem;
  white-space: pre-wrap;
}

.boot-footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(57, 255, 20, 0.3);
  padding-top: 1rem;
}

.boot-prompt-action {
  font-size: 1.25rem;
  font-weight: bold;
  animation: boot-pulse 1.2s infinite ease-in-out;
  color: #ffb000; /* Amber yellow prompt */
  text-shadow: 0 0 8px rgba(255, 176, 0, 0.6);
}

.boot-skip-hint {
  font-size: 0.85rem;
  opacity: 0.6;
}

@keyframes crt-flicker-subtle {
  0% { opacity: 0.98; }
  50% { opacity: 1; }
  100% { opacity: 0.99; }
}

@keyframes boot-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
.novel-video-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: black;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  animation: screen-fade-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.novel-video-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.novel-video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-skip-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  z-index: 105;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.video-skip-btn:hover {
  background: #3b82f6;
  border-color: #60a5fa;
  transform: scale(1.05);
}
/* ==========================================================================
   START MENU (Achievements, Saves, Settings)
   ========================================================================== */
.start-menu-screen {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background: linear-gradient(rgba(15, 23, 42, 0.35), rgba(9, 5, 20, 0.8)), url('/assets/images/backgrounds/background_mainmenu.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
  animation: screen-fade-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.menu-glow-orb {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.start-menu-container {
  z-index: 5;
  max-width: 1000px;
  width: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  display: flex;
  gap: 2.5rem;
}

.menu-left-panel {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding-right: 2.5rem;
}

.menu-title-block {
  text-align: left;
}

.menu-title-primary {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  margin: 0;
  background: linear-gradient(90deg, #60a5fa, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
}

.menu-title-secondary {
  font-size: 0.95rem;
  color: #94a3b8;
  margin-top: 0.25rem;
  letter-spacing: 4px;
}

.menu-buttons-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 2rem 0;
}

.menu-nav-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.menu-nav-btn:hover {
  background: rgba(96, 165, 250, 0.08);
  border-color: rgba(96, 165, 250, 0.3);
  color: #60a5fa;
  transform: translateX(5px);
}

.menu-nav-badge {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(96, 165, 250, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.4);
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  line-height: 1;
}

.menu-nav-btn.active {
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.15), rgba(168, 85, 247, 0.05));
  border-color: rgba(96, 165, 250, 0.4);
  color: #60a5fa;
  box-shadow: 0 0 15px rgba(96, 165, 250, 0.1);
}

.menu-nav-btn-highlight {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  -webkit-text-fill-color: white;
}

.menu-nav-btn-highlight:hover {
  background: linear-gradient(135deg, #3b82f6, #9333ea);
  border-color: rgba(255,255,255,0.3);
  color: white;
  -webkit-text-fill-color: white;
  transform: scale(1.04);
  box-shadow: 0 0 25px rgba(124, 58, 237, 0.5), 0 4px 16px rgba(59,130,246,0.3);
}

.menu-footer-note {
  font-size: 0.8rem;
  color: #475569;
  text-align: left;
}

.menu-right-panel {
  flex: 1;
  overflow-y: auto;
  max-height: 480px;
  padding-right: 0.5rem;
}

.menu-tab-content {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tab-heading {
  font-size: 1.5rem;
  margin: 0;
  color: #f8fafc;
  border-bottom: 2px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.75rem;
}

.tab-intro-text {
  color: #94a3b8;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

/* SETTINGS TAB */
.settings-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 1.5rem;
  border-radius: 12px;
}

.settings-item {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.settings-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #94a3b8;
}

.text-scale-buttons {
  display: flex;
  gap: 0.75rem;
}

.scale-btn {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  color: #94a3b8;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
}

.scale-btn:hover {
  background: rgba(255,255,255,0.08);
  color: white;
}

.scale-btn.active {
  background: #3b82f6;
  border-color: #60a5fa;
  color: white;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.mute-toggle-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0;
  outline: none;
}

.volume-slider {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  accent-color: #3b82f6;
}

/* SAVES SLOTS LIST */
.save-slots-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.save-slot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.2rem;
  transition: all 0.2s ease;
  gap: 1.5rem;
}

.save-slot-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(96, 165, 250, 0.2);
}

.slot-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  flex: 1;
  min-width: 0;
}

.slot-number {
  font-weight: 700;
  font-size: 0.95rem;
  color: #60a5fa;
}

.slot-meta {
  font-size: 0.85rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  text-align: left;
}

.slot-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.slot-btn {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.save-btn {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.save-btn:hover {
  background: #10b981;
  color: white;
}

.load-btn {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.load-btn:hover:not(:disabled) {
  background: #3b82f6;
  color: white;
}

.load-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ACHIEVEMENTS GRID */
.achievements-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.achievement-card {
  display: flex;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem;
  transition: all 0.3s ease;
  align-items: center;
}

.achievement-card.unlocked {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.06), rgba(168, 85, 247, 0.06));
  border: 1px solid rgba(96, 165, 250, 0.25);
  box-shadow: 0 4px 15px rgba(96, 165, 250, 0.05);
}

.achievement-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
  filter: grayscale(100%);
  opacity: 0.4;
  transition: all 0.3s ease;
}

.achievement-card.unlocked .achievement-icon {
  filter: grayscale(0%);
  opacity: 1;
  background: rgba(96, 165, 250, 0.15);
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.2);
}

.achievement-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-width: 0;
}

.achievement-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #64748b;
  transition: all 0.3s ease;
}

.achievement-card.unlocked .achievement-name {
  color: #f8fafc;
}

.achievement-desc {
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.4;
  text-align: left;
}

.achievement-card.unlocked .achievement-desc {
  color: #94a3b8;
}

.achievement-card.locked .achievement-desc {
  font-style: italic;
  opacity: 0.85;
}

/* ==========================================================================
   FLOATING MENU OVERLAYS
   ========================================================================== */
.game-menu-trigger {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(96, 165, 250, 0.85);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.game-menu-trigger:hover {
  background: #3b82f6;
  border-color: #60a5fa;
  color: #ffffff;
  transform: scale(1.08);
}

.game-menu-trigger svg {
  stroke: currentColor;
  transition: all 0.3s ease;
}

.game-menu-modal-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.game-menu-modal-content {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  max-width: 680px;
  width: 100%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  position: relative;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.game-menu-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 2rem;
  cursor: pointer;
  outline: none;
}

.game-menu-close:hover {
  color: white;
}

.game-menu-title {
  font-size: 1.5rem;
  margin: 0;
  color: #f8fafc;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 0.75rem;
}

.game-menu-tabs-nav {
  display: flex;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
}

.game-menu-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.game-menu-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.game-menu-tab-btn.active {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(96, 165, 250, 0.5);
  color: #93c5fd;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.25);
}

.game-menu-sections {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
  max-height: 400px;
}

.game-menu-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 1.2rem;
  border-radius: 12px;
}

.menu-section-heading {
  font-size: 1rem;
  margin: 0 0 0.2rem 0;
  color: #60a5fa;
  font-weight: 700;
}

.game-menu-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1rem;
  display: flex;
  justify-content: flex-end;
}

.main-menu-back-btn {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.main-menu-back-btn:hover {
  background: #ef4444;
  color: white;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

/* Centered menu card layout */
.centered-menu-card {
  max-width: 440px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.menu-title-block.centered {
  text-align: center;
  width: 100%;
}

.menu-buttons-list.centered {
  width: 100%;
  max-width: 320px;
  margin: 1rem 0;
  gap: 0.8rem;
}

.menu-buttons-list.centered .menu-nav-btn {
  text-align: center;
  justify-content: center;
}

.menu-buttons-list.centered .menu-nav-btn:hover {
  transform: scale(1.03); /* scale instead of shift right for centered layout */
}

.menu-footer-note.centered {
  text-align: center;
  margin-top: 0.5rem;
}

/* Tab overlay card layout */
.tab-overlay-card {
  position: relative;
  max-width: 760px !important;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: tab-fade-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes tab-fade-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.tab-card-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  font-size: 1.75rem;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.tab-card-close:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.05);
}

.tab-card-footer {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tab-back-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  padding: 0.75rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(96, 165, 250, 0.3);
  color: #60a5fa;
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.15);
}
/* ==========================================================================
   CyberPhone Reusable Widget
   Ultra-modern Slim Smartphone with Titanium bezel, Dynamic Island, Status Bar,
   Messenger chat bubbles, & CheatSheet toolkit.
   ========================================================================== */

.cyber-phone-anchor {
  position: fixed;
  right: 28px;
  bottom: 22px;
  z-index: 70;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  user-select: none;
  -webkit-user-select: none;
}

/* SVG icon helpers */
.phone-svg-icon {
  width: 15px;
  height: 15px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.phone-tab-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.phone-section-icon {
  width: 14px;
  height: 14px;
  color: #fbbf24;
  flex-shrink: 0;
}

.phone-section-icon.shield {
  color: #60a5fa;
}

.phone-verified-icon {
  width: 13px;
  height: 13px;
  color: #38bdf8;
  flex-shrink: 0;
}

.phone-status-svg {
  width: 13px;
  height: 13px;
  color: #94a3b8;
  flex-shrink: 0;
}

.phone-status-svg.battery {
  width: 16px;
  height: 12px;
  color: #34d399;
}

.phone-check-icon {
  width: 13px;
  height: 13px;
  color: #38bdf8;
}

/* ==========================================================================
   Minimized Floating Chip (FAB)
   ========================================================================== */
.cyber-phone-chip-fab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  background: rgba(13, 19, 33, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 40px;
  color: #f8fafc;
  cursor: pointer;
  box-shadow: 
    0 12px 32px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 20px rgba(56, 189, 248, 0.16);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cyber-phone-chip-fab:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.8),
    0 0 24px rgba(56, 189, 248, 0.3);
}

.cyber-chip-avatar {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: #020617;
  border: 2px solid #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
  flex-shrink: 0;
}

.cyber-chip-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.cyber-chip-online {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #0b1120;
  box-shadow: 0 0 6px #10b981;
}

.cyber-chip-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.cyber-chip-text {
  font-size: 0.88rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.cyber-chip-subtext {
  font-size: 0.68rem;
  font-weight: 500;
  color: #38bdf8;
  line-height: 1;
}

.cyber-chip-alert {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: cyber-dot-pulse 1.4s infinite ease-in-out;
}

.cyber-chip-icon-box {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  margin-left: 2px;
}

/* ==========================================================================
   Full Smartphone Frame (Chassis, Screen, Bezel)
   Tall, slim & elongated aspect ratio (19.5:9 flagship feel)
   ========================================================================== */
.cyber-phone-frame {
  position: relative;
  width: 290px;
  height: 575px;
  max-height: calc(100vh - 40px);
  background: #151a24;
  /* Premium curved chassis */
  border-radius: 42px;
  padding: 5.5px;
  box-sizing: border-box;
  /* Titanium frame gradients and layered drop-shadows */
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 0 35px rgba(56, 189, 248, 0.16),
    inset 0 1px 1px rgba(255, 255, 255, 0.25),
    inset 0 -1px 2px rgba(0, 0, 0, 0.6);
  border: 1.5px solid #334155;
  display: flex;
  flex-direction: column;
  animation: cyber-phone-slide-up 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cyber-phone-slide-up {
  0% { transform: translateY(115%) scale(0.92); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* Hardware Buttons on outer bezel */
.cyber-phone-hw-btn {
  position: absolute;
  background: #334155;
  border-radius: 2px;
  pointer-events: none;
}

.cyber-hw-volume-up {
  left: -4px;
  top: 95px;
  width: 3px;
  height: 32px;
}

.cyber-hw-volume-down {
  left: -4px;
  top: 135px;
  width: 3px;
  height: 32px;
}

.cyber-hw-power {
  right: -4px;
  top: 110px;
  width: 3px;
  height: 44px;
}

/* Glossy screen protector glare */
.cyber-phone-glare {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  height: 180px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 65%);
  border-radius: 36px 36px 0 0;
  pointer-events: none;
  z-index: 5;
}

/* Inner Screen Container */
.cyber-phone-screen {
  flex: 1;
  background: #060911;
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   Top Status Bar with Dynamic Island
   ========================================================================== */
.cyber-phone-status-bar {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: #060911;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

.cyber-status-time {
  font-size: 0.7rem;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: -0.01em;
  width: 40px;
}

.cyber-dynamic-island {
  position: absolute;
  left: 50%;
  top: 5px;
  transform: translateX(-50%);
  width: 80px;
  height: 17px;
  background: #000000;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7px;
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.12);
  transition: all 0.25s ease;
}

.cyber-island-speaker {
  width: 26px;
  height: 3px;
  background: #1e293b;
  border-radius: 2px;
}

.cyber-island-lens {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: #0f172a;
  border: 1px solid #1e3a8a;
  box-shadow: inset 0 0 2px #38bdf8;
}

.cyber-status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: flex-end;
  width: 44px;
}

/* ==========================================================================
   Messenger Top Bar
   ========================================================================== */
.cyber-phone-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 12px 9px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
  z-index: 8;
}

.cyber-phone-mentor-profile {
  display: flex;
  align-items: center;
  gap: 9px;
}

.cyber-mentor-avatar {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: #020617;
  border: 1.5px solid #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
  flex-shrink: 0;
}

.cyber-mentor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.cyber-mentor-online-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 8.5px;
  height: 8.5px;
  border-radius: 50%;
  background: #10b981;
  border: 1.5px solid #0f172a;
  box-shadow: 0 0 6px #10b981;
}

.cyber-mentor-meta {
  display: flex;
  flex-direction: column;
}

.cyber-mentor-name-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cyber-mentor-name {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.cyber-mentor-status {
  font-size: 0.66rem;
  margin-top: 1px;
}

.cyber-online-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #38bdf8;
  font-weight: 500;
}

.cyber-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 4px #10b981;
}

.cyber-typing-text {
  color: #34d399;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.cyber-typing-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #34d399;
  display: inline-block;
  animation: cyber-dot-pulse 1.2s infinite ease-in-out;
}

.cyber-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.cyber-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes cyber-dot-pulse {
  0%, 80%, 100% { transform: scale(0.5); opacity: 0.3; }
  40% { transform: scale(1.2); opacity: 1; }
}

.cyber-phone-down-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cyber-phone-down-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(1px);
}

/* ==========================================================================
   Segmented Navigation Tabs
   ========================================================================== */
.cyber-phone-nav-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3.5px;
  margin: 5px 8px 3px;
  background: rgba(15, 23, 42, 0.85);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  gap: 4px;
  flex-shrink: 0;
}

.cyber-nav-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5.5px 0;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cyber-nav-tab:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.04);
}

.cyber-nav-tab.active {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.6) 0%, rgba(15, 23, 42, 0.9) 100%);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Body Content & Messenger Chat
   ========================================================================== */
.cyber-phone-body-content {
  flex: 1;
  padding: 8px 10px;
  overflow-y: auto;
  background: radial-gradient(circle at 50% 0%, #0c1220 0%, #050811 100%);
  display: flex;
  flex-direction: column;
}

.cyber-phone-body-content::-webkit-scrollbar {
  width: 3.5px;
}

.cyber-phone-body-content::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 3px;
}

.cyber-phone-body-content::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Chat Layout */
.cyber-chat-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cyber-chat-date-pill {
  align-self: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: #64748b;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2px 9px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Speech Bubble Card */
.cyber-msg-bubble {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.2);
  /* Tail look: rounded on 3 sides, slightly sharper on top-left */
  border-radius: 15px 15px 15px 4px;
  padding: 10px 11px;
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
}

.cyber-msg-success-box {
  display: flex;
  flex-direction: column;
}

.cyber-msg-badge {
  display: inline-block;
  font-family: 'Fira Code', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 2.5px 7px;
  border-radius: 6px;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.cyber-msg-badge.success {
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
}

.cyber-msg-badge.hard {
  color: #f87171;
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
}

.cyber-msg-field {
  margin-bottom: 8px;
}

.cyber-msg-field:last-of-type {
  margin-bottom: 4px;
}

.cyber-field-header {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 3px;
}

.cyber-field-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: -0.01em;
}

.cyber-field-label.why {
  color: #38bdf8;
}

.cyber-msg-text {
  margin: 0;
  font-size: 0.76rem;
  color: #cbd5e1;
  line-height: 1.42;
  letter-spacing: -0.005em;
}

.cyber-msg-quote {
  margin: 2px 0 0;
  font-size: 0.82rem;
  font-style: italic;
  color: #f1f5f9;
  line-height: 1.48;
  letter-spacing: -0.01em;
  border-left: 2.5px solid #38bdf8;
  padding: 2px 0 2px 8px;
  background: rgba(56, 189, 248, 0.05);
  border-radius: 0 6px 6px 0;
}

.cyber-msg-text strong {
  color: #f8fafc;
}

.cyber-code-hint {
  margin-top: 7px;
  background: rgba(2, 6, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 8px;
  border-radius: 7px;
}

.cyber-code-hint-title {
  font-size: 0.62rem;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cyber-code-hint code {
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 0.72rem;
  color: #fcd34d;
  word-break: break-all;
}

.cyber-msg-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 5px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.cyber-msg-time {
  font-size: 0.6rem;
  color: #64748b;
  font-weight: 600;
}

/* Typing Bubble */
.cyber-typing-bubble {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 15px 15px 15px 4px;
  padding: 9px 12px;
  width: fit-content;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cyber-bubble-dots {
  display: flex;
  gap: 3.5px;
  align-items: center;
}

.cyber-bubble-dots span {
  width: 5.5px;
  height: 5.5px;
  border-radius: 50%;
  background: #38bdf8;
  animation: cyber-dot-pulse 1.2s infinite ease-in-out;
}

.cyber-bubble-dots span:nth-child(2) { animation-delay: 0.2s; }
.cyber-bubble-dots span:nth-child(3) { animation-delay: 0.4s; }

/* ==========================================================================
   Toolkit / CheatSheet Tab
   ========================================================================== */
.cyber-toolkit-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.cyber-toolkit-intro {
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.cyber-tool-item {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  padding: 7px 9px;
  transition: all 0.2s ease;
}

.cyber-tool-item:hover {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(15, 23, 42, 0.98);
  transform: translateY(-1px);
}

.cyber-tool-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 3px;
}

.cyber-tool-name {
  font-family: 'Fira Code', monospace;
  font-size: 0.72rem;
  font-weight: 800;
  color: #38bdf8;
}

.cyber-tool-desc {
  font-size: 0.64rem;
  color: #94a3b8;
}

.cyber-tool-snippet {
  display: block;
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 0.68rem;
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 4px 6px;
  border-radius: 6px;
  color: #fcd34d;
  word-break: break-all;
}

/* ==========================================================================
   Bottom Home Indicator
   ========================================================================== */
.cyber-phone-home-bar {
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #060911;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.cyber-phone-home-bar:hover .cyber-phone-home-pill {
  background: rgba(255, 255, 255, 0.6);
  width: 86px;
}

.cyber-phone-home-pill {
  width: 72px;
  height: 3.5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.28);
  transition: all 0.2s ease;
}
/* Visual Novel Screen styling */
.novel-screen {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
  animation: screen-fade-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.novel-bg-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover !important;
  background-position: center !important;
  z-index: 1;
  pointer-events: none;
  filter: contrast(1.04) saturate(1.05);
}

.novel-bg-prev {
  z-index: 1;
  animation: novel-bg-fade-out 0.85s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.novel-bg-current.novel-bg-crossfade {
  z-index: 2;
  animation: novel-bg-fade-in 0.85s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes novel-bg-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes novel-bg-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Screen Fade In/Out Overlay (fadeout / fadein) */
.novel-screen-fade-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

.bg-scanline-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: none;
  pointer-events: none;
  z-index: 2;
}

/* Character cards */
.characters-stage {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  /* Stage height = 2/3 of the viewport — characters never exceed this */
  height: 66%;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  pointer-events: none;
  z-index: 3;
  /* Equal slots: each position gets 1/3 of the stage width */
  gap: 0;
}

.character-card-wrapper {
  /* Each slot is exactly 1/3 of the stage → perfectly symmetrical */
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  transform-origin: bottom center;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding-bottom: 0;
}

.character-sprite-img {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  pointer-events: none;
  margin-bottom: 0;
}

.character-silhouette-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  width: 100%;
  max-width: 100%;
  position: relative;
  pointer-events: none;
}

.character-silhouette-svg {
  height: 100%;
  max-height: 100%;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  object-position: bottom center;
  pointer-events: none;
  opacity: 0.6;
  transition: filter 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease;
}

.character-card-name-plate {
  position: absolute;
  bottom: 135px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.25rem 0.8rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  color: #f1f5f9;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  text-align: center;
  display: flex;
  flex-direction: column;
  z-index: 3;
}

.character-plate-mood {
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 400;
}

/* Active speaker scales UP from the ground, inactive dims */
.active-speaker {
  opacity: 1;
  transform: scale(1.05);
  z-index: 3;
}

.inactive-speaker {
  opacity: 0.55;
  transform: scale(0.95);
  z-index: 1;
}

/* Flex order keeps visual left→center→right regardless of DOM order */
.pos-left   { order: 1; }
.pos-center { order: 2; }
.pos-right  { order: 3; }

/* Dialogue box */
.dialogue-box-wrapper {
  position: absolute;
  bottom: 24px;
  left: 5%;
  right: 5%;
  z-index: 4;
}

.dialogue-box {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.25rem 1.5rem 1.55rem 1.5rem;
  min-height: calc(var(--dialogue-font-size, 1.05rem) * 1.5 * 1.4 + 2.8rem);
  text-align: left;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.dialogue-speaker-tag {
  position: absolute;
  top: -14px;
  left: 20px;
  background: #3b82f6;
  color: white;
  font-weight: 700;
  font-size: calc(var(--dialogue-font-size, 1.05rem) * 0.76);
  padding: 0.2rem 1rem;
  border-radius: 9999px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.dialogue-text-content {
  font-size: var(--dialogue-font-size, 1.05rem);
  color: #e2e8f0;
  line-height: 1.5;
  min-height: calc(var(--dialogue-font-size, 1.05rem) * 1.5 * 1.35);
  padding-top: 0.2rem;
  padding-right: 3.5rem;
  transition: font-size 0.2s ease;
  word-break: break-word;
  box-sizing: border-box;
}

.dialogue-next-prompt {
  position: absolute;
  top: 50%;
  right: 24px;
  pointer-events: none;
  font-size: 1.8rem;
  color: #60a5fa;
  opacity: 0.55;
  font-family: monospace, sans-serif;
  animation: blink-triangle-centered 1.2s infinite ease-in-out;
}

@keyframes blink-triangle-centered {
  0% { opacity: 0.25; transform: translateY(-50%) translateX(0); }
  50% { opacity: 0.8; transform: translateY(-50%) translateX(5px); }
  100% { opacity: 0.25; transform: translateY(-50%) translateX(0); }
}

/* Choices overlay */
.choices-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(2, 6, 23, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  z-index: 5;
  padding: 2rem;
}

.timer-wrapper {
  width: 100%;
  max-width: 450px;
  text-align: center;
  margin-bottom: 0.5rem;
}

.timer-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ef4444;
  margin-bottom: 0.4rem;
  display: block;
}

.timer-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 9999px;
  overflow: hidden;
}

.timer-bar-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 1s linear;
}

.choices-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
  max-width: 480px;
}

/* Narrative (story) choices */
.choice-button {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.8rem 1.2rem;
  color: #f1f5f9;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.choice-button:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: #3b82f6;
  transform: translateX(4px);
  box-shadow: 0 6px 15px rgba(59, 130, 246, 0.2);
}

.choice-number {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
  flex-shrink: 0;
}

.choice-button:hover .choice-number {
  background: #3b82f6;
  border-color: #3b82f6;
  color: white;
}

/* Technical (mini-game) choices — log-entry style */
.tech-choices-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(2, 6, 23, 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  z-index: 5;
  padding: 2rem;
}

.tech-choices-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.75rem;
  text-align: center;
}

.tech-choices-subtitle {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 1rem;
  text-align: center;
}

.tech-choices-terminal {
  background: #020617;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  padding: 0.5rem 0;
  width: 100%;
  max-width: 680px;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.05), 0 10px 30px rgba(0,0,0,0.6);
  font-family: 'Fira Code', 'Courier New', monospace;
}

.tech-choices-terminal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.75rem;
  color: #475569;
}

.tech-choices-terminal-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.tech-choice-button {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  padding: 0.7rem 1rem;
  color: #10b981;
  text-align: left;
  font-size: 0.85rem;
  font-family: 'Fira Code', 'Courier New', monospace;
  cursor: pointer;
  display: block;
  width: 100%;
  transition: background 0.15s ease, color 0.15s ease;
  line-height: 1.5;
}

.tech-choice-button:last-child {
  border-bottom: none;
}

.tech-choice-button:hover {
  background: rgba(16, 185, 129, 0.08);
  color: #ffffff;
}

.tech-choice-button.tech-choice-warning:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
}


/* Radar Thumbnail Overlay (top-left of Main Area) */
.radar-thumbnail-trigger {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 42px;
  height: 42px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  cursor: pointer;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.85;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.radar-thumbnail-trigger:hover {
  transform: scale(1.08);
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 0 15px rgba(96, 165, 250, 0.4);
  opacity: 1;
}

.radar-thumbnail-trigger svg {
  transform: scale(0.75);
  transition: all 0.3s ease;
}


/* Hotspots overlay inside main screen */
.hotspots-overlay-container {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 6;
}

.novel-hotspot-point-wrapper {
  position: absolute;
  width: 50px;
  height: 50px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  border-radius: 50%;
  user-select: none;
  z-index: 10;
}

/* White glowing central core dot */
.novel-hotspot-core {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 
    0 0 8px 2px rgba(255, 255, 255, 0.95),
    0 0 16px 4px rgba(255, 255, 255, 0.6);
  position: relative;
  z-index: 3;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: hotspot-core-pulse 2s infinite ease-in-out;
}

/* White shimmering glint / star cross */
.novel-hotspot-glint {
  position: absolute;
  width: 28px;
  height: 28px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.85;
  animation: hotspot-glint-shimmer 2.8s ease-in-out infinite;
}

.novel-hotspot-glint::before,
.novel-hotspot-glint::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  border-radius: 9999px;
}

.novel-hotspot-glint::before {
  width: 26px;
  height: 2px;
}

.novel-hotspot-glint::after {
  width: 2px;
  height: 26px;
}

/* Expanding white ripple waves */
.novel-hotspot-ripple {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
  pointer-events: none;
  z-index: 1;
  animation: hotspot-ripple-expand 2.4s cubic-bezier(0.1, 0.4, 0.2, 1) infinite;
}

.novel-hotspot-ripple.ripple-2 {
  animation-delay: 1.2s;
}

.novel-hotspot-point-wrapper:hover .novel-hotspot-core {
  transform: scale(1.4);
  box-shadow: 
    0 0 12px 4px rgba(255, 255, 255, 1),
    0 0 24px 8px rgba(255, 255, 255, 0.85);
}

.novel-hotspot-point-wrapper:hover .novel-hotspot-glint {
  transform: scale(1.35) rotate(45deg);
  opacity: 1;
  transition: transform 0.3s ease;
}

@keyframes hotspot-core-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
    box-shadow: 
      0 0 12px 3px rgba(255, 255, 255, 1),
      0 0 22px 6px rgba(255, 255, 255, 0.75);
  }
}

@keyframes hotspot-ripple-expand {
  0% {
    transform: scale(1);
    opacity: 0.85;
  }
  60% {
    opacity: 0.4;
  }
  100% {
    transform: scale(4.5);
    opacity: 0;
  }
}

@keyframes hotspot-glint-shimmer {
  0%, 100% {
    transform: rotate(0deg) scale(0.7);
    opacity: 0.35;
  }
  50% {
    transform: rotate(90deg) scale(1.25);
    opacity: 1;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.9));
  }
}

/* Screen Filter: Danger (Impact Shake at start + Red Vignette Filter) */
.novel-screen.filter-danger-active .novel-bg-backdrop {
  animation: novel-danger-shake 0.8s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  filter: contrast(1.15) saturate(1.25) sepia(0.2) hue-rotate(-15deg);
}

.danger-filter-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle at center, rgba(239, 68, 68, 0.12) 0%, rgba(220, 38, 38, 0.38) 70%, rgba(153, 27, 27, 0.65) 100%);
  animation: danger-pulse 1.8s infinite ease-in-out;
}

@keyframes novel-danger-shake {
  0% { transform: translate(0, 0) rotate(0deg); }
  10% { transform: translate(-5px, 3px) rotate(-0.5deg); }
  25% { transform: translate(4px, -3px) rotate(0.4deg); }
  40% { transform: translate(-3px, 2px) rotate(-0.3deg); }
  55% { transform: translate(2px, -2px) rotate(0.2deg); }
  70% { transform: translate(-1px, 1px) rotate(-0.1deg); }
  85% { transform: translate(1px, 0px) rotate(0.05deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes danger-pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* ==========================================================================
   Startaper Story — Security Terminal & CyberPhone Gigachad Widget
   Unified Visual Identity: Clean Glassmorphism, Deep Slate-950, Compact Phone
   ========================================================================== */

.sec-terminal-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #0b0f19;
  color: #f8fafc;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.sec-svg-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ==========================================================================
   Top Header (Matches Phaser Game Header style)
   ========================================================================== */
.sec-top-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 0.8rem 1.8rem;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.6) 80%, transparent 100%);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.sec-top-header-left h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #f1f5f9;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.01em;
}

.sec-top-header-left p {
  margin: 2px 0 0 0;
  font-size: 0.8rem;
  color: #94a3b8;
}

.sec-top-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sec-day-pills,
.sec-diff-pills {
  display: flex;
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px;
  border-radius: 8px;
  gap: 2px;
}

.sec-pill-btn {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.sec-pill-btn:hover {
  color: #cbd5e1;
}

.sec-pill-btn.active {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.sec-pill-btn.active-junior {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.sec-pill-btn.active-senior {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.sec-exit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s;
}

.sec-exit-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

/* ==========================================================================
   Main Center Terminal Card
   ========================================================================== */
.sec-terminal-card {
  width: 90vw;
  height: 78vh;
  max-width: 1040px;
  max-height: 580px;
  margin-top: 2.2rem;
  display: flex;
  flex-direction: column;
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 10;
}

/* Card Titlebar */
.sec-card-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sec-card-dots {
  display: flex;
  gap: 6px;
}

.sec-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.sec-dot.red { background: #ef4444; }
.sec-dot.yellow { background: #f59e0b; }
.sec-dot.green { background: #10b981; }

.sec-card-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Fira Code', monospace;
  font-size: 0.78rem;
  color: #cbd5e1;
}

.sec-card-title .sec-svg-icon {
  color: #3b82f6;
  width: 14px;
  height: 14px;
}

/* Compact Task Monitor inside Terminal Bar */
.sec-task-compact-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 3px 9px;
  border-radius: 6px;
}

.sec-task-step {
  font-family: 'Fira Code', monospace;
  font-weight: 700;
  color: #60a5fa;
}

.sec-task-desc {
  color: #e2e8f0;
  font-weight: 500;
}

/* Terminal Body Scroll */
.sec-terminal-scroll {
  flex: 1;
  padding: 14px 18px;
  overflow-y: auto;
  font-family: 'Fira Code', monospace;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #e2e8f0;
  cursor: text;
}

.sec-terminal-scroll::-webkit-scrollbar {
  width: 6px;
}

.sec-terminal-scroll::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 3px;
}

.sec-cli-line {
  margin-bottom: 4px;
  word-break: break-all;
}

.sec-cli-line.info { color: #94a3b8; }
.sec-cli-line.success { color: #34d399; font-weight: 600; }
.sec-cli-line.error { color: #f87171; }
.sec-cli-line.warning { color: #fbbf24; }
.sec-cli-line.highlight { color: #60a5fa; }

/* Prompt Input */
.sec-prompt-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
  font-family: 'Fira Code', monospace;
  font-size: 0.86rem;
}

.sec-prompt-host { color: #60a5fa; font-weight: 600; }
.sec-prompt-path { color: #e2e8f0; }
.sec-prompt-sign { color: #34d399; font-weight: 700; }

.sec-prompt-field {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.sec-prompt-value {
  color: #ffffff;
  font-weight: 600;
  white-space: pre;
}

.sec-prompt-caret {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: #60a5fa;
  margin-left: 2px;
  animation: sec-blink 1s steps(2, start) infinite;
}

@keyframes sec-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.sec-prompt-ghost {
  color: rgba(148, 163, 184, 0.45);
  font-style: italic;
  pointer-events: none;
  white-space: pre;
}

.sec-native-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}



/* ==========================================================================
   Victory Modal Dialog
   ========================================================================== */
.sec-victory-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.sec-victory-card {
  width: 100%;
  max-width: 440px;
  background: #0f172a;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.sec-victory-avatar-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 10px;
  border: 2px solid #60a5fa;
  overflow: hidden;
  background: #020617;
}

.sec-victory-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.sec-victory-card h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #34d399;
  margin: 0 0 6px 0;
}

.sec-victory-story-text {
  color: #cbd5e1;
  font-size: 0.84rem;
  line-height: 1.5;
  margin: 0 0 16px 0;
}

.sec-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 18px;
  background: rgba(2, 6, 23, 0.6);
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.sec-stat-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sec-stat-label {
  font-size: 0.65rem;
  color: #94a3b8;
}

.sec-stat-value {
  font-family: 'Fira Code', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: #f8fafc;
}

.sec-stat-value.highlight {
  color: #34d399;
}

.sec-victory-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.sec-victory-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.sec-victory-btn.primary {
  background: #2563eb;
  color: #ffffff;
}

.sec-victory-btn.primary:hover {
  background: #1d4ed8;
}

.sec-victory-btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sec-victory-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.sec-victory-btn.exit {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.sec-victory-btn.exit:hover {
  background: rgba(16, 185, 129, 0.3);
}

@media (max-width: 768px) {
  .sec-terminal-card {
    width: 96vw;
    height: 82vh;
    margin-top: 2.8rem;
  }
}
/* BackendStudio.css - Dark Cyberpunk Web-IDE Stylesheet */

.backend-studio-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #090d16;
  color: #e2e8f0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  overflow: hidden;
  position: relative;
  user-select: none;
}

/* Header */
.backend-studio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 16px;
  background: #0f172a;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  z-index: 20;
}

.backend-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

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

.backend-ide-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #93c5fd;
}

.backend-badge-day {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.backend-header-center {
  flex: 1;
  text-align: center;
}

.backend-task-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #f1f5f9;
}

.backend-btn-exit {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.backend-btn-exit:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #ffffff;
}

/* Workspace Layout */
.backend-studio-workspace {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Explorer Sidebar */
.backend-explorer {
  width: 220px;
  background: #090e1a;
  border-right: 1px solid rgba(148, 163, 184, 0.1);
  display: flex;
  flex-direction: column;
}

.backend-explorer-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #94a3b8;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.backend-file-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  flex: 1;
}

.backend-file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 0.82rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.backend-file-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.backend-file-item.active {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-left: 2px solid #3b82f6;
}

.backend-file-item.is-target {
  font-weight: 600;
}

.file-bug-dot {
  margin-left: auto;
  width: 6px;
  height: 6px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 6px #ef4444;
}

.backend-metrics-card {
  margin: 12px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 6px;
}

.backend-metrics-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #38bdf8;
  margin-bottom: 8px;
}

.backend-metric-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-bottom: 4px;
}

.backend-metric-row .metric-label {
  color: #94a3b8;
}

.backend-metric-row .metric-value.initial {
  color: #f87171;
  font-weight: 600;
}

.backend-metric-row .metric-value.resolved {
  color: #34d399;
  font-weight: 700;
}

/* Center Editor Deck */
.backend-editor-deck {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #0b1120;
  overflow: hidden;
}

.backend-editor-tabs {
  display: flex;
  background: #090e1a;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  overflow-x: auto;
}

.backend-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.8rem;
  color: #94a3b8;
  border-right: 1px solid rgba(148, 163, 184, 0.08);
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.backend-tab:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #cbd5e1;
}

.backend-tab.active {
  background: #0b1120;
  color: #38bdf8;
  border-top: 2px solid #38bdf8;
}

.backend-tab.target-tab {
  border-bottom: 1px solid rgba(239, 68, 68, 0.3);
}

.backend-tab.target-tab.active {
  border-top: 2px solid #ef4444;
  color: #f87171;
}

.tab-icon {
  font-size: 0.65rem;
  font-weight: 800;
  background: #2563eb;
  color: #ffffff;
  padding: 1px 4px;
  border-radius: 2px;
}

.tab-name {
  font-family: 'Fira Code', monospace;
}

.tab-bug-pill {
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 1px 5px;
  border-radius: 3px;
}

.tab-modified-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
}

/* File Mode Banners */
.backend-file-mode-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.backend-file-mode-banner.auxiliary {
  background: rgba(30, 41, 59, 0.6);
  color: #94a3b8;
}

.backend-file-mode-banner.target {
  background: rgba(239, 68, 68, 0.08);
  border-bottom: 1px solid rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.backend-file-mode-banner .banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.banner-pill {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
}

.banner-pill.alert {
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.banner-switch-btn {
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.banner-switch-btn:hover {
  background: #1d4ed8;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
}

/* Code Viewport */
.backend-code-viewport {
  flex: 1;
  display: flex;
  overflow-y: auto;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.55;
  background: #0b1120;
}

.backend-line-numbers {
  display: flex;
  flex-direction: column;
  padding: 12px 10px;
  color: #475569;
  text-align: right;
  user-select: none;
  border-right: 1px solid rgba(148, 163, 184, 0.08);
  background: #090e1a;
}

.backend-line-numbers .line-num {
  height: 22px;
}

.backend-code-content {
  flex: 1;
  margin: 0;
  padding: 12px 16px;
  overflow-x: auto;
}

.backend-code-line {
  height: 22px;
  white-space: pre;
  display: flex;
  align-items: center;
}

.backend-code-line.line-buggy {
  background: rgba(239, 68, 68, 0.15);
  border-left: 3px solid #ef4444;
  color: #fca5a5;
}

.backend-code-line.line-patched {
  background: rgba(16, 185, 129, 0.18);
  border-left: 3px solid #10b981;
  color: #6ee7b7;
}

/* Patches Selector Deck */
.backend-patches-deck {
  background: #0f172a;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  padding: 12px 16px;
}

.backend-deck-header {
  margin-bottom: 8px;
}

.backend-deck-header .deck-title {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #60a5fa;
  margin-right: 8px;
}

.backend-deck-header .deck-subtitle {
  font-size: 0.74rem;
  color: #94a3b8;
}

.backend-patches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}

.backend-patch-card {
  padding: 10px 12px;
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.backend-patch-card:hover {
  border-color: #3b82f6;
  background: #24344d;
}

.backend-patch-card.selected {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.12);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.2);
}

.backend-patch-card.verdict-correct {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.backend-patch-card.verdict-incorrect {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.patch-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.patch-radio {
  color: #10b981;
  font-size: 1rem;
}

.patch-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #f1f5f9;
  flex: 1;
}

.patch-verdict-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.patch-verdict-badge.correct {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.5);
}

.patch-verdict-badge.incorrect {
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.5);
}

.patch-diff {
  display: block;
  font-family: 'Courier New', monospace;
  font-size: 0.74rem;
  color: #38bdf8;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px 6px;
  border-radius: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Explicit Evaluation Verdict Banner */
.eval-result-banner {
  margin: 10px 16px 4px 16px;
  padding: 12px 16px;
  border-radius: 8px;
  animation: fadeIn 0.25s ease;
}

.eval-result-banner.success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
}

.eval-result-banner.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.15);
}

.eval-result-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.eval-badge {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
}

.eval-badge.success {
  background: #10b981;
  color: #022c22;
}

.eval-badge.error {
  background: #ef4444;
  color: #ffffff;
}

.eval-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f8fafc;
}

.eval-message {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #cbd5e1;
}

.eval-retry-btn {
  margin-top: 10px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.eval-retry-btn:hover {
  background: #ef4444;
  color: #ffffff;
}

/* Console Panel */
.backend-console-panel {
  height: 180px;
  background: #070a12;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  display: flex;
  flex-direction: column;
}

.backend-console-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 14px;
  background: #0d1322;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.console-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
}

.backend-btn-run-tests {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 5px 14px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.backend-btn-run-tests:hover:not(:disabled) {
  background: #1d4ed8;
}

.backend-btn-run-tests:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.backend-tests-status-bar {
  display: flex;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(148, 163, 184, 0.06);
  overflow-x: auto;
}

.test-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 3px;
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
}

.test-badge.passed {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.test-badge.failed {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.test-badge.running {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.backend-console-logs {
  flex: 1;
  padding: 8px 14px;
  overflow-y: auto;
  font-family: 'Courier New', monospace;
  font-size: 0.76rem;
  line-height: 1.4;
  color: #a5b4fc;
}

.backend-console-logs .log-line {
  margin-bottom: 2px;
}

/* Phone Wrapper Right */
.backend-mentor-phone-wrapper {
  width: 320px;
  background: #070c18;
  border-left: 1px solid rgba(148, 163, 184, 0.15);
  display: flex;
  flex-direction: column;
}

/* Victory Overlay */
.backend-victory-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fadeIn 0.3s ease forwards;
}

.backend-victory-card {
  width: 480px;
  background: #0f172a;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.25);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
}

.backend-victory-card .victory-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.backend-victory-card h3 {
  font-size: 1.35rem;
  color: #ffffff;
  margin: 0 0 10px 0;
}

.backend-victory-card p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #cbd5e1;
  margin: 0 0 18px 0;
}

.victory-score-pill {
  font-size: 0.85rem;
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.12);
  padding: 8px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.backend-btn-proceed {
  background: #10b981;
  color: #ffffff;
  border: none;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.backend-btn-proceed:hover {
  background: #059669;
}
/* DevOpsConsole.css - CloudOps Cluster & CI/CD Pipeline Stylesheet */

.devops-console-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #060b13;
  color: #e2e8f0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  overflow: hidden;
  position: relative;
  user-select: none;
}

/* Header */
.devops-console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 16px;
  background: #09131d;
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  z-index: 20;
}

.devops-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

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

.devops-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #6ee7b7;
}

.devops-badge-day {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.devops-badge-manifest {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  padding: 2px 8px;
  border-radius: 4px;
}

.devops-header-center {
  flex: 1;
  text-align: center;
}

.devops-task-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #f1f5f9;
}

.devops-btn-exit {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.devops-btn-exit:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #ffffff;
}

/* Workspace Layout */
.devops-console-workspace {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.devops-main-deck {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #080f1a;
  overflow: hidden;
}

/* Pipeline Flow Strip */
.devops-pipeline-strip {
  background: #0d1826;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  padding: 8px 16px;
}

.pipeline-title-bar {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.pipeline-label {
  color: #38bdf8;
  letter-spacing: 0.08em;
}

.pipeline-status-text {
  color: #94a3b8;
}

.devops-stages-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
}

.devops-stage-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #162438;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 6px;
  min-width: 125px;
}

.devops-stage-card.success {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.12);
}

.devops-stage-card.failed {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}

.devops-stage-card.running {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
}

.stage-icon-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.3);
}

.devops-stage-card.success .stage-icon-circle { color: #34d399; }
.devops-stage-card.failed .stage-icon-circle { color: #f87171; }
.devops-stage-card.running .stage-icon-circle { color: #38bdf8; }

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

.stage-name {
  font-size: 0.76rem;
  font-weight: 600;
  color: #f1f5f9;
}

.stage-time {
  font-size: 0.68rem;
  color: #94a3b8;
}

.stage-arrow {
  color: #475569;
  font-size: 0.7rem;
  font-weight: 700;
}

.stage-arrow.active {
  color: #10b981;
}

/* Interactive Workbench: Tuning Panel + Live Manifest */
.devops-workbench-row {
  display: flex;
  height: 230px;
  min-height: 200px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  background: #091322;
}

.devops-tuning-panel {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(148, 163, 184, 0.15);
  overflow: hidden;
}

.tuning-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #0d1a2d;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.tuning-panel-title {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #34d399;
}

.tuning-panel-subtitle {
  font-size: 0.72rem;
  color: #94a3b8;
}

.tuning-controls-scroll {
  flex: 1;
  padding: 10px 14px;
  overflow-y: auto;
}

.tuning-groups {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tuning-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tuning-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: #cbd5e1;
}

.tuning-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tuning-subtext {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 2px;
}

/* Segmented Buttons */
.tuning-segmented {
  display: flex;
  gap: 8px;
}

.tuning-opt-btn {
  flex: 1;
  text-align: left;
  background: #132235;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 6px;
  padding: 7px 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  color: #cbd5e1;
}

.tuning-opt-btn:hover {
  background: #1b2e47;
  border-color: #38bdf8;
}

.tuning-opt-btn.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.2);
}

.tuning-opt-btn.active.warning {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
}

.tuning-opt-btn .opt-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: #f8fafc;
}

.tuning-opt-btn.active .opt-title {
  color: #34d399;
}

.tuning-opt-btn.active.warning .opt-title {
  color: #fbbf24;
}

.tuning-opt-btn .opt-desc {
  font-size: 0.67rem;
  color: #94a3b8;
  margin-top: 2px;
}

/* Stepper Control for Replicas */
.tuning-counter-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.tuning-stepper-control {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #132235;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 6px;
  padding: 4px 8px;
}

.stepper-btn {
  width: 28px;
  height: 28px;
  background: #1b2e47;
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #ffffff;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.stepper-btn:hover:not(:disabled) {
  background: #10b981;
}

.stepper-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.stepper-track {
  display: flex;
  flex: 1;
  gap: 5px;
  justify-content: space-between;
}

.stepper-tick {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 0;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.25);
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.stepper-tick.filled {
  background: #1b2e47;
  color: #cbd5e1;
}

.stepper-tick.filled.safe {
  background: rgba(16, 185, 129, 0.3);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.5);
}

/* Day 3 Canary & Health Check */
.status-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.status-pill.verified {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.status-pill.pending {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.tuning-action-btn {
  background: #132235;
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.tuning-action-btn.pulse {
  background: rgba(56, 189, 248, 0.12);
  border-color: #38bdf8;
  animation: pulseButton 2s infinite ease-in-out;
}

@keyframes pulseButton {
  0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(56, 189, 248, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.tuning-action-btn.done {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #34d399;
}

.traffic-ratio-text {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
}

.traffic-bar-preview {
  display: flex;
  height: 14px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.2);
  margin-bottom: 4px;
}

.traffic-segment.blue {
  background: #3b82f6;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.25s ease;
}

.traffic-segment.green {
  background: #10b981;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.25s ease;
}

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

.traffic-preset-btn {
  flex: 1;
  background: #132235;
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #94a3b8;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.traffic-preset-btn:hover {
  background: #1b2e47;
  color: #ffffff;
}

.traffic-preset-btn.active {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #34d399;
  font-weight: 700;
}

/* Manifest Panel Viewport */
.devops-manifest-panel {
  flex: 0.9;
  display: flex;
  flex-direction: column;
  background: #060b13;
  overflow: hidden;
}

.manifest-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #09131d;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.manifest-filename-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  color: #38bdf8;
}

.manifest-live-indicator {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #10b981;
}

.manifest-code-viewer {
  flex: 1;
  overflow: auto;
  padding: 8px 0;
  background: #050a12;
}

.manifest-code-viewer pre {
  margin: 0;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.72rem;
  line-height: 1.45;
}

.manifest-line {
  display: flex;
  padding: 1px 10px;
  transition: background 0.1s ease;
}

.manifest-line:hover {
  background: rgba(255, 255, 255, 0.03);
}

.manifest-line.highlight {
  background: rgba(16, 185, 129, 0.1);
}

.manifest-line.comment {
  color: #64748b;
}

.line-num {
  width: 28px;
  color: #475569;
  text-align: right;
  padding-right: 12px;
  user-select: none;
}

.line-text {
  flex: 1;
  white-space: pre;
  color: #cbd5e1;
}

.line-text.directive {
  color: #38bdf8;
  font-weight: 600;
}

/* Cluster Topology */
.devops-cluster-view {
  flex: 1;
  padding: 10px 16px;
  overflow-y: auto;
  background: #080f1a;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.cluster-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 8px;
}

.devops-pods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.devops-pod-card {
  background: #111e30;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 6px;
  padding: 8px 10px;
  transition: all 0.2s ease;
}

.devops-pod-card.running {
  border-color: rgba(16, 185, 129, 0.35);
}

.devops-pod-card.oomkilled,
.devops-pod-card.crashloopbackoff,
.devops-pod-card.terminating,
.devops-pod-card.failed {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.08);
}

.pod-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.pod-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
}

.devops-pod-card.oomkilled .pod-status-dot,
.devops-pod-card.crashloopbackoff .pod-status-dot,
.devops-pod-card.terminating .pod-status-dot {
  background: #ef4444;
  animation: pulseDot 1s infinite alternate;
}

@keyframes pulseDot {
  0% { opacity: 0.4; }
  100% { opacity: 1; transform: scale(1.2); }
}

.pod-name {
  font-size: 0.73rem;
  font-weight: 700;
  color: #f1f5f9;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pod-badge {
  font-size: 0.63rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.3);
  color: #94a3b8;
}

.devops-pod-card.running .pod-badge { color: #34d399; }
.devops-pod-card.oomkilled .pod-badge { color: #f87171; }
.devops-pod-card.crashloopbackoff .pod-badge { color: #fbbf24; }
.devops-pod-card.terminating .pod-badge { color: #f87171; }

.pod-metrics-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 6px;
}

.pod-metric {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.67rem;
}

.m-label {
  width: 28px;
  color: #94a3b8;
}

.m-bar-bg {
  flex: 1;
  height: 5px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 3px;
  overflow: hidden;
}

.m-bar-fill.cpu { background: #38bdf8; }
.m-bar-fill.ram { background: #f59e0b; }
.devops-pod-card.oomkilled .m-bar-fill { background: #ef4444; }

.m-val {
  width: 44px;
  text-align: right;
  font-weight: 600;
}

.pod-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: #64748b;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  padding-top: 3px;
}

/* Explicit Evaluation Verdict Banner */
.devops-eval-result-banner {
  margin: 8px 16px 4px 16px;
  padding: 10px 14px;
  border-radius: 8px;
  animation: fadeIn 0.25s ease;
}

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

.devops-eval-result-banner.success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
}

.devops-eval-result-banner.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.15);
}

.devops-eval-result-banner .eval-result-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.devops-eval-result-banner .eval-badge {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 4px;
}

.devops-eval-result-banner .eval-badge.success {
  background: #10b981;
  color: #022c22;
}

.devops-eval-result-banner .eval-badge.error {
  background: #ef4444;
  color: #ffffff;
}

.devops-eval-result-banner .eval-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f8fafc;
}

.devops-eval-result-banner .eval-message {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #cbd5e1;
}

.eval-details-list {
  margin: 6px 0 0 16px;
  padding: 0;
  font-size: 0.74rem;
  color: #94a3b8;
  line-height: 1.4;
}

.eval-details-list li {
  margin-bottom: 2px;
}

.devops-eval-result-banner .eval-retry-btn {
  margin-top: 8px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.devops-eval-result-banner .eval-retry-btn:hover {
  background: #ef4444;
  color: #ffffff;
}

/* Telemetry & Console */
.devops-telemetry-console {
  height: 140px;
  background: #04080f;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  display: flex;
  flex-direction: column;
}

.telemetry-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px;
  background: #0a1320;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.telemetry-item {
  display: flex;
  gap: 6px;
  font-size: 0.72rem;
}

.telemetry-item .t-label { color: #94a3b8; }
.telemetry-item .t-val.good { color: #34d399; font-weight: 700; }
.telemetry-item .t-val.bad { color: #f87171; font-weight: 700; }

.devops-btn-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #10b981;
  color: #ffffff;
  border: none;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.devops-btn-trigger:hover:not(:disabled) {
  background: #059669;
}

.devops-btn-trigger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.devops-spinner {
  width: 10px;
  height: 10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.devops-console-logs {
  flex: 1;
  padding: 6px 14px;
  overflow-y: auto;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #6ee7b7;
}

.devops-console-logs .log-line {
  margin-bottom: 2px;
}

/* Phone Wrapper Right */
.devops-mentor-phone-wrapper {
  width: 320px;
  background: #050a12;
  border-left: 1px solid rgba(148, 163, 184, 0.15);
  display: flex;
  flex-direction: column;
}

/* Victory Overlay */
.devops-victory-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.devops-victory-card {
  width: 480px;
  background: #0d1826;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.25);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
}

.devops-victory-card .victory-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.devops-victory-card h3 {
  font-size: 1.35rem;
  color: #ffffff;
  margin: 0 0 10px 0;
}

.devops-victory-card p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #cbd5e1;
  margin: 0 0 18px 0;
}

.devops-victory-card .victory-score-pill {
  display: inline-block;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-size: 0.82rem;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.devops-btn-proceed {
  background: #10b981;
  color: #ffffff;
  border: none;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.devops-btn-proceed:hover {
  background: #059669;
}
/* Phaser Container Styling */
.phaser-game-outer-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #0b0f19;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
}

.phaser-game-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.6) 80%, transparent 100%);
  z-index: 10;
  pointer-events: none;
  box-sizing: border-box;
}

.phaser-game-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #f1f5f9;
  font-family: 'Outfit', sans-serif;
}

.phaser-game-header p {
  margin: 2px 0 0 0;
  font-size: 0.8rem;
  color: #94a3b8;
}

.phaser-game-canvas-parent {
  width: 90vw;
  height: 80vh;
  max-width: 1024px;
  max-height: 576px;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  background: #020617;
}

.phaser-game-canvas-parent canvas {
  display: block !important;
}
/* Radar Chart Styling */
.radar-chart-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
}

.radar-svg-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.radar-svg {
  overflow: visible;
}

.radar-legend {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.4rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-marker {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.legend-marker.interest {
  background: #3b82f6;
  box-shadow: 0 0 6px #3b82f6;
}

.legend-marker.ability {
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
}

.legend-text {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* Soft Skills Bars */
.soft-skills-container {
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1rem;
  text-align: left;
}

.soft-skills-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 1px;
  margin: 0 0 0.8rem 0;
  font-weight: 700;
}

.soft-skills-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.soft-skill-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.soft-skill-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
}

.soft-skill-name {
  color: #cbd5e1;
}

.soft-skill-score {
  color: #f1f5f9;
}

.soft-skill-bar-bg {
  width: 100%;
  height: 5px;
  background: rgba(255,255,255,0.06);
  border-radius: 9999px;
  overflow: hidden;
}

.soft-skill-bar-fill {
  height: 100%;
  border-radius: 9999px;
  width: 0;
  transition: width 0.8s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.soft-skill-desc {
  font-size: 0.65rem;
  color: #64748b;
  line-height: 1.2;
}
/* Final Report Screen & OutroSlider */
.outro-slider-screen {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  height: 100%;
  max-width: 100%;
  margin: 0;
  padding: 1.5rem 2rem;
  background: radial-gradient(circle at 50% 15%, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: none;
  border-radius: 0;
  backdrop-filter: blur(14px);
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  animation: screen-fade-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.outro-slider-header {
  flex-shrink: 0;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 1.5rem auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: center;
}

.outro-slider-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0 auto;
  padding: 0.25rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 9999px;
}

.outro-slider-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin: 0.2rem 0 0.1rem 0;
  color: #f8fafc;
  line-height: 1.2;
}

.outro-progress-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
}

.outro-mini-progress-bar {
  width: 180px;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}

.outro-mini-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
  border-radius: 9999px;
  transition: width 0.35s ease-out;
}

/* Slide Viewport */
.outro-slide-viewport {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.outro-slide {
  position: relative;
  width: 100%;
  animation: slide-step-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@keyframes slide-step-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* STEP 1: Congratulations */
.congrats-card {
  text-align: center;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.congrats-icon-box {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.25rem auto;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 28px rgba(59, 130, 246, 0.25);
}

.congrats-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 0.8rem 0;
}

.congrats-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #cbd5e1;
  max-width: 780px;
  margin: 0 auto 1.5rem auto;
}

.congrats-highlight-box {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  text-align: left;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 1.1rem 1.3rem;
  border-radius: 12px;
  color: #d1fae5;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 780px;
  margin: 0 auto;
}

.congrats-investor-teaser {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  text-align: left;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 1.1rem 1.3rem;
  border-radius: 12px;
  color: #fef3c7;
  font-size: 0.93rem;
  line-height: 1.6;
  max-width: 780px;
  margin: 1.1rem auto 0 auto;
}

/* STEP 2: Reviews */
.reviews-intro-panel {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  background: rgba(30, 41, 59, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 500;
}

.reviews-cards-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 0.3rem;
}

.review-chat-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(30, 41, 59, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  transition: all 0.2s ease;
}

.review-chat-card:hover {
  background: rgba(30, 41, 59, 0.4);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(3px);
}

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  border: 1.5px solid;
  flex-shrink: 0;
}

.review-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.review-author {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.review-quote {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #e2e8f0;
  font-style: italic;
}

/* STEP 3: Radar & Explanation */
.radar-step-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 860px) {
  .radar-step-grid {
    grid-template-columns: 420px 1fr;
    align-items: stretch;
  }
}

.radar-step-chart-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(30, 41, 59, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
}

.radar-box-title,
.explanation-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 0.8rem 0;
}

.radar-embed-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.8rem;
}

.radar-legend-bar {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
}

.radar-legend-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.4);
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
}

.legend-dot-blue {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 6px #3b82f6;
  flex-shrink: 0;
}

.legend-dot-orange {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
  flex-shrink: 0;
}

.radar-step-explanation-box {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.explanation-items {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.explanation-item {
  background: rgba(30, 41, 59, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
}

.explanation-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.exp-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}

.exp-badge.blue {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.exp-badge.orange {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.exp-badge.green {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.exp-score {
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
}

.exp-text {
  font-size: 0.86rem;
  line-height: 1.5;
  color: #cbd5e1;
  margin: 0;
}

.soft-skills-mini-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.soft-mini-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: #cbd5e1;
}

.soft-mini-row > span:first-child {
  width: 140px;
  flex-shrink: 0;
}

.soft-mini-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}

.soft-mini-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.4s ease;
}

.soft-val-num {
  width: 32px;
  text-align: right;
  font-weight: 700;
  font-size: 0.78rem;
  color: #f1f5f9;
}

/* Methodology Card */
.methodology-card {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0;
}

.methodology-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
}

.methodology-text {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

.methodology-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 600px) {
  .methodology-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.method-item {
  background: rgba(30, 41, 59, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.method-item > p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #cbd5e1;
}

.method-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  width: fit-content;
}

.method-pill.blue {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.method-pill.orange {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.methodology-tshape-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.25);
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #e9d5ff;
}

.methodology-tshape-note > svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* STEP 4: Career Recommendation */
.career-hero-card {
  position: relative;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1.5px solid;
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.career-hero-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.career-hero-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.career-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.career-hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
}

.career-hero-subtitle {
  font-size: 0.88rem;
  color: #94a3b8;
  margin-top: 0.2rem;
}

.career-reason-text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #e2e8f0;
  margin: 0;
  background: rgba(15, 23, 42, 0.35);
  padding: 0.8rem 1rem;
  border-radius: 8px;
}

.career-stack-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stack-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stack-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tech-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
}

.career-school-advice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.2);
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #bfdbfe;
}

.career-secondary-card {
  background: rgba(30, 41, 59, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sec-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.sec-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #94a3b8;
  margin: 0;
}

/* STEP 5: Thanks & Demo Final */
.thanks-card {
  text-align: center;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.thanks-icon-box {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
}

.thanks-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
}

.thanks-lead {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 660px;
  margin: 0 auto;
}

.thanks-manifesto-box {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 660px;
  text-align: left;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.1rem;
  border-radius: 12px;
}

.manifesto-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #e2e8f0;
}

.manifesto-item > svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.thanks-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.thanks-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.thanks-btn.primary {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(37, 99, 235, 0.45) 100%);
  border: 1px solid rgba(96, 165, 250, 0.5);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}

.thanks-btn.primary:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.45) 0%, rgba(37, 99, 235, 0.6) 100%);
  border-color: rgba(147, 197, 253, 0.8);
  transform: translateY(-1px);
}

.thanks-btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f1f5f9;
}

.thanks-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.thanks-btn.outline {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: #94a3b8;
}

.thanks-btn.outline:hover {
  border-color: rgba(96, 165, 250, 0.5);
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.08);
}

/* Footer Navigation Bar */
.outro-slider-footer {
  flex-shrink: 0;
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.slider-round-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: rgba(30, 41, 59, 0.7);
  color: #f1f5f9;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.slider-round-btn:hover:not(:disabled) {
  background: rgba(59, 130, 246, 0.35);
  border-color: rgba(96, 165, 250, 0.7);
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 6px 22px rgba(59, 130, 246, 0.45);
}

.slider-round-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.slider-round-btn:disabled {
  opacity: 0.2;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.slider-round-btn.next-btn {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.4) 0%, rgba(37, 99, 235, 0.55) 100%);
  border-color: rgba(96, 165, 250, 0.5);
  color: #ffffff;
}

.slider-round-btn.finish-btn {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.4) 0%, rgba(5, 150, 105, 0.55) 100%);
  border-color: rgba(52, 211, 153, 0.6);
  color: #ffffff;
}

.slider-dots-indicator {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.45);
  transform: scale(1.2);
}

.slider-dot.active {
  width: 28px;
  border-radius: 9999px;
  background: #3b82f6;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.7);
}

@media (max-width: 640px) {
  .outro-slider-screen {
    padding: 1rem 0.85rem;
  }
  .outro-slider-title {
    font-size: 1.4rem;
  }
  .career-hero-card {
    padding: 1rem;
  }
  .thanks-actions-row {
    flex-direction: column;
    width: 100%;
  }
  .thanks-btn {
    width: 100%;
  }
}
/* ==========================================================================
   DEBUG TAB & MODAL STYLES (Activated via Ctrl + 6 + 7)
   ========================================================================== */

/* Debug Trigger Tab placed directly to the right of Radar (left: 65px) */
.debug-thumbnail-trigger {
  position: absolute;
  top: 15px;
  left: 65px;
  width: 42px;
  height: 42px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 10px;
  cursor: pointer;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.95;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 10px rgba(16, 185, 129, 0.15);
  animation: debug-trigger-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes debug-trigger-pop {
  0% {
    transform: scale(0.6) translateY(-8px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 0.95;
  }
}

.debug-thumbnail-trigger:hover {
  transform: scale(1.08);
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(16, 185, 129, 0.8);
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.45);
  opacity: 1;
}

.debug-thumbnail-trigger svg {
  color: #10b981;
  transition: transform 0.25s ease;
}

.debug-thumbnail-trigger:hover svg {
  transform: rotate(25deg) scale(1.05);
}

.debug-thumbnail-trigger .debug-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #10b981;
  margin-top: -2px;
  line-height: 1;
}

/* Modal Overlay */
.debug-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.2s ease-out;
}

/* Modal Content Card */
.debug-modal-content {
  background: #0b1120;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 18px;
  max-width: 780px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 30px rgba(16, 185, 129, 0.12);
  overflow: hidden;
  animation: scaleUp 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Header */
.debug-modal-header {
  padding: 1.25rem 1.5rem;
  background: rgba(15, 23, 42, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.debug-modal-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.debug-header-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10b981;
}

.debug-modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
}

.debug-hotkey-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.debug-modal-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.debug-modal-close:hover {
  color: #f87171;
  background: rgba(239, 68, 68, 0.1);
}

/* Nav Tabs */
.debug-nav-tabs {
  display: flex;
  padding: 0.5rem 1.5rem 0;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  overflow-x: auto;
}

.debug-nav-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #94a3b8;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.65rem 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.debug-nav-btn:hover {
  color: #e2e8f0;
}

.debug-nav-btn.active {
  color: #10b981;
  border-bottom-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

/* Tab Body */
.debug-tab-body {
  padding: 1.5rem;
  overflow-y: auto;
  max-height: calc(88vh - 130px);
}

.debug-pane {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.debug-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.debug-section-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 0.5rem 0;
}

/* Cards Grid */
.debug-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.debug-card {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.debug-card:hover {
  background: rgba(30, 41, 59, 0.65);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.debug-card-active {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.06);
}

.debug-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.debug-card-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  border: 1px solid currentColor;
}

.debug-card-tag-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: #64748b;
}

.debug-card-badge-active {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.debug-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0;
  line-height: 1.3;
}

.debug-card-desc {
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
  flex-grow: 1;
}

/* Action Buttons */
.debug-action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
  margin-top: 0.35rem;
}

.debug-action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.debug-action-btn.primary {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #93c5fd;
}

.debug-action-btn.primary:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.6);
  color: #ffffff;
}

.debug-action-btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
}

.debug-action-btn.outro-btn {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.3) 100%);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fef3c7;
  font-weight: 700;
  padding: 0.75rem 1.4rem;
  font-size: 0.9rem;
}

.debug-action-btn.outro-btn:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.35) 0%, rgba(217, 119, 6, 0.45) 100%);
  border-color: rgba(245, 158, 11, 0.8);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
  color: #ffffff;
}

/* Outro Jump Box */
.debug-outro-box {
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 12px;
  padding: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.debug-outro-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Hard Skills Table */
.debug-stats-table {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

.debug-stats-thead {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr;
  padding: 0.4rem 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.debug-stats-row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr;
  align-items: center;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.debug-stats-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.debug-stat-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.debug-color-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.debug-dir-name {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
}

.debug-stat-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.debug-stepper-btn {
  width: 26px;
  height: 26px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #cbd5e1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.debug-stepper-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.debug-stepper-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.debug-stat-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: #38bdf8;
  min-width: 50px;
  text-align: center;
}

/* Soft Skills Grid */
.debug-soft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.75rem;
}

.debug-soft-card {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.debug-soft-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.debug-soft-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #f1f5f9;
}

.debug-soft-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: #a855f7;
  background: rgba(168, 85, 247, 0.15);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.debug-soft-desc {
  font-size: 0.72rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.3;
}

.debug-soft-btns {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.debug-soft-btns .debug-stepper-btn {
  flex: 1;
  width: auto;
  font-size: 0.75rem;
}

/* Variables Preview */
.debug-variables-box {
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.75rem;
  max-height: 160px;
  overflow-y: auto;
}

.debug-variables-box pre {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #38bdf8;
}

/* System Info Grid */
.debug-sys-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.debug-sys-pill {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.debug-sys-k {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.debug-sys-v {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
}

.debug-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Danger Box */
.debug-danger-box {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 12px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.debug-danger-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fca5a5;
  margin: 0 0 0.25rem 0;
}

.debug-danger-desc {
  font-size: 0.78rem;
  color: #f87171;
  margin: 0;
  line-height: 1.4;
  opacity: 0.85;
}

.debug-danger-btn {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  align-self: flex-start;
  transition: all 0.2s ease;
}

.debug-danger-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 0.7);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.35);
}

.debug-confirm-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.debug-confirm-text {
  font-size: 0.8rem;
  color: #f87171;
  font-weight: 700;
}

.debug-confirm-btn {
  background: #dc2626;
  border: 1px solid #ef4444;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.debug-confirm-btn:hover {
  background: #b91c1c;
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.6);
}

.debug-cancel-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.debug-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}
/* Radar Modal Popup */
.radar-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.radar-modal-content {
  background: #0f172a; /* Slate-900 */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2.2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.6);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: scaleUp 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleUp {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.radar-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s ease;
}

.radar-modal-close:hover {
  color: #ef4444;
}

.radar-modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 1rem 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
/* Glossary Inline links and modal styling */
.glossary-thumbnail-trigger {
  position: absolute;
  top: 15px;
  right: 72px;
  width: 42px;
  height: 42px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  cursor: pointer;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.85;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.glossary-thumbnail-trigger:hover {
  transform: scale(1.08);
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 0 15px rgba(96, 165, 250, 0.4);
  opacity: 1;
}

.glossary-thumbnail-trigger svg {
  transform: scale(0.75);
  transition: all 0.3s ease;
}

.glossary-thumbnail-trigger.glossary-pulse {
  opacity: 1;
  animation: glossary-discover-pulse 0.6s ease-out 4;
}

.glossary-thumbnail-trigger.glossary-pulse svg rect,
.glossary-thumbnail-trigger.glossary-pulse svg line {
  stroke: rgba(96, 165, 250, 1);
}

@keyframes glossary-discover-pulse {
  0% { filter: drop-shadow(0 0 0 rgba(96, 165, 250, 0)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 18px rgba(96, 165, 250, 0.9)); transform: scale(1.25); }
  100% { filter: drop-shadow(0 0 0 rgba(96, 165, 250, 0)); transform: scale(1); }
}

.glossary-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.5);
}

.glossary-inline-link {
  color: #60a5fa;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(96, 165, 250, 0.1);
  display: inline;
  animation: link-flash 2.5s infinite ease-in-out;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.glossary-inline-link:hover {
  color: white;
  background: #3b82f6;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
}


@keyframes link-flash {
  0% { opacity: 0.8; }
  50% { opacity: 1; color: #93c5fd; }
  100% { opacity: 0.8; }
}

.glossary-modal-content {
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  padding: 2.2rem;
}

.glossary-list {
  width: 100%;
  overflow-y: auto;
  margin-top: 1rem;
  padding-right: 8px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  text-align: left;
}

.glossary-list::-webkit-scrollbar {
  width: 6px;
}
.glossary-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 3px;
}
.glossary-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
.glossary-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.glossary-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1rem;
  transition: all 0.25s ease;
}

.glossary-item.highlighted {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
  animation: highlight-pulse 2.5s ease-in-out;
}

@keyframes highlight-pulse {
  0% { border-color: rgba(59, 130, 246, 0.35); }
  50% { border-color: rgba(59, 130, 246, 0.7); box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }
  100% { border-color: rgba(59, 130, 246, 0.35); }
}

.glossary-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #cbd5e1;
  margin: 1rem 0 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 6px;
  width: 100%;
}

.glossary-term-title {
  margin: 0 0 0.5rem 0;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.glossary-term-desc {
  margin: 0;
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.5;
}

.glossary-term-note {
  margin-top: 0.75rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-left: 3px solid #f59e0b;
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.glossary-term-note:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
}

.glossary-note-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.85rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}

.glossary-note-toggle:hover {
  background: rgba(245, 158, 11, 0.08);
}

.glossary-note-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fbbf24;
  user-select: none;
}

.glossary-note-chevron {
  color: #fbbf24;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.glossary-note-chevron.expanded {
  transform: rotate(180deg);
}

.glossary-note-body {
  padding: 0 0.85rem 0.75rem 0.85rem;
  animation: note-expand 0.2s ease-out;
}

@keyframes note-expand {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.glossary-note-text {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #e2e8f0;
}

.glossary-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
  color: #94a3b8;
  flex: 1;
}

.glossary-empty-main {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0 0 0.8rem 0;
}

.glossary-empty-sub {
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 400px;
}

.glossary-locked-hint {
  text-align: center;
  padding: 1.2rem;
  font-size: 0.85rem;
  color: #64748b;
  background: rgba(255, 255, 255, 0.01);
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.04);
  margin-top: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.glossary-search-container {
  margin-top: 0.8rem;
  margin-bottom: 0.4rem;
  width: 100%;
}

.glossary-search-box {
  display: flex;
  align-items: center;
  position: relative;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.glossary-search-box:focus-within {
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.25);
  background: rgba(15, 23, 42, 0.85);
}

.glossary-search-icon {
  font-size: 0.95rem;
  margin-right: 0.6rem;
  opacity: 0.7;
  user-select: none;
  display: flex;
  align-items: center;
}

.glossary-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #e2e8f0;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.4;
}

.glossary-search-input::placeholder {
  color: #64748b;
}

.glossary-search-clear {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #94a3b8;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.2s ease;
  margin-left: 0.5rem;
  padding: 0;
  line-height: 1;
}

.glossary-search-clear:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  transform: scale(1.1);
}

.glossary-search-not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  text-align: center;
  color: #94a3b8;
  flex: 1;
}

.glossary-search-reset-btn {
  margin-top: 1rem;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
  padding: 0.45rem 1.2rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.glossary-search-reset-btn:hover {
  background: rgba(59, 130, 246, 0.3);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}
/* ==========================================================================
   EPISODE TRANSITION OVERLAY
   ========================================================================== */
.episode-transition-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 40%, #0d1527 0%, #020617 100%);
  backdrop-filter: blur(14px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  pointer-events: all;
}

.episode-transition-overlay.visible {
  opacity: 1;
}

.episode-transition-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.episode-transition-card {
  max-width: 620px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  animation: episode-card-appear 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes episode-card-appear {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.episode-transition-badge {
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 3px;
  padding: 0.4rem 1.1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.episode-transition-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
  letter-spacing: -0.5px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.episode-transition-subtitle {
  font-size: 1.05rem;
  color: #94a3b8;
  font-style: italic;
  line-height: 1.6;
  margin: 0;
  max-width: 520px;
}

.episode-transition-progress-bar {
  width: 160px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.episode-transition-progress-fill {
  height: 100%;
  border-radius: 9999px;
  width: 0;
  animation: episode-fill 3.4s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@keyframes episode-fill {
  0% { width: 0%; }
  100% { width: 100%; }
}

.episode-transition-skip-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.3rem;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.episode-transition-skip-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

@keyframes screen-fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
/* ==========================================================================
   Mobile Stub Screen (Desktop Only Warning)
   ========================================================================== */

.mobile-stub-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background: radial-gradient(ellipse at 50% 15%, #0f172a 0%, #030712 65%, #000000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1.5rem, env(safe-area-inset-top)) 1.25rem max(1.5rem, env(safe-area-inset-bottom)) 1.25rem;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: screen-fade-in 0.4s ease-out forwards;
}

.mobile-stub-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.35;
}

.mobile-stub-glow-1 {
  width: 320px;
  height: 320px;
  background: #2563eb;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
}

.mobile-stub-glow-2 {
  width: 260px;
  height: 260px;
  background: #7c3aed;
  bottom: 0;
  right: 10%;
}

.mobile-stub-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%,
    rgba(0, 0, 0, 0.25) 50%
  );
  background-size: 100% 4px;
  opacity: 0.4;
  z-index: 1;
}

.mobile-stub-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(56, 189, 248, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 2.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: auto;
  box-sizing: border-box;
}

.mobile-stub-status-badge {
  display: inline-flex;
  align-items: center;
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.mobile-stub-graphic {
  width: 140px;
  height: 112px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.3));
}

.mobile-stub-pc-icon {
  width: 100%;
  height: 100%;
}

.mobile-stub-brand {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 0.5rem 0;
  background: linear-gradient(90deg, #60a5fa, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mobile-stub-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
  line-height: 1.25;
}



