/* ════════════════════════════════════════════════════════════════
   BASIC CRI — Obsidian Matte & Emerald Mint Tactical HUD
   Matches modular 3-column floating layout + hexagon radar
════════════════════════════════════════════════════════════════ */

:root {
  --bg-page:      #04070e;
  --bg-win:       #080d18;
  --bg-win-top:   rgba(59, 130, 246, 0.14);
  --bg-input:     #0d1424;
  --bg-row:       #0b111e;
  --bg-row-hover: #131d32;

  --border:       rgba(96, 165, 250, 0.22);
  --border-soft:  rgba(96, 165, 250, 0.10);
  --border-mint:  rgba(59, 130, 246, 0.65);

  --mint:         #60a5fa;
  --mint-strong:  #3b82f6;
  --mint-glow:    rgba(59, 130, 246, 0.48);

  --cyan:         #38bdf8;
  --cyan-glow:    rgba(56, 189, 248, 0.45);

  --red:          #ef4444;
  --red-glow:     rgba(239, 68, 68, 0.45);

  --text-main:    #f8fafc;
  --text-sub:     #a8b8d0;
  --text-muted:   #64748b;

  --radius-win:   12px;
  --radius-sm:    7px;
  --shadow-win:   0 24px 55px rgba(0, 0, 0, 0.8), 0 0 28px rgba(37, 99, 235, 0.10), 0 1px 0 rgba(147, 197, 253, 0.12) inset;
  --t:            0.16s cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background: var(--bg-page);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  overflow-x: hidden;
  user-select: none;
}

.hidden { display: none !important; }
.screen { min-height: 100vh; width: 100%; position: relative; }

/* ─── AMBIENT BACKDROP ──────────────────────────────────────── */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(circle at 50% 35%, #0c1830 0%, #04070e 75%);
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
}

.glow-emerald {
  width: 680px;
  height: 460px;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(37, 99, 235, 0.22);
}

.glow-cyan {
  width: 480px;
  height: 380px;
  bottom: -140px;
  right: 8%;
  background: rgba(56, 189, 248, 0.14);
}

.grid-mesh {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(96, 165, 250, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 88%);
}

/* ─── ANIMATED LOGO BACKDROP ────────────────────────────────── */
.bg-logo-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}

.bg-logo-aura {
  position: absolute;
  width: clamp(540px, 50vw, 880px);
  height: clamp(320px, 34vw, 520px);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.28) 0%, rgba(56, 189, 248, 0.09) 45%, transparent 74%);
  filter: blur(42px);
  animation: bgAuraPulse 6s ease-in-out infinite;
}

.bg-logo-ring {
  position: absolute;
  width: min(76vh, 680px);
  height: min(76vh, 680px);
  border-radius: 50%;
  border: 1px dashed rgba(96, 165, 250, 0.14);
  box-shadow: inset 0 0 60px rgba(37, 99, 235, 0.08);
  mask-image: radial-gradient(circle at center, black 48%, transparent 78%);
  animation: bgRingSpin 48s linear infinite;
}

.bg-logo-emblem {
  position: relative;
  width: clamp(720px, 62vw, 1080px);
  height: auto;
  object-fit: contain;
  opacity: 0.18;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 36px rgba(59, 130, 246, 0.45));
  mask-image: radial-gradient(ellipse at 50% 45%, black 42%, transparent 86%);
  animation: bgLogoFloat 7.5s ease-in-out infinite;
}

.bg-logo-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@keyframes bgAuraPulse {
  0%, 100% { transform: scale(0.96); opacity: 0.72; }
  50%      { transform: scale(1.06); opacity: 1; }
}

@keyframes bgRingSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes bgLogoFloat {
  0%, 100% { transform: translateY(-6px) scale(0.985); opacity: 0.14; }
  50%      { transform: translateY(6px)  scale(1.02);  opacity: 0.24; }
}

/* ─── SHARED WINDOW CHROME ──────────────────────────────────── */
.hud-window {
  position: relative;
  background: linear-gradient(180deg, rgba(16, 28, 52, 0.96) 0%, var(--bg-win) 115px, #070b14 100%);
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: var(--radius-win);
  box-shadow: var(--shadow-win);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.win-top-glow {
  position: absolute;
  top: -40px;
  left: -30px;
  width: 260px;
  height: 120px;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.28) 0%, transparent 72%);
  pointer-events: none;
}
.win-top-glow.subtle {
  opacity: 0.65;
}

.win-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px 11px;
  border-bottom: 1px solid var(--border-soft);
}

.win-title {
  font-family: 'Chakra Petch', 'IBM Plex Sans Thai', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.09em;
  display: flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
}

.title-white { color: #f8fafc; }
.title-mint  { color: var(--mint); text-shadow: 0 0 16px rgba(59, 130, 246, 0.55); }
.title-dim   { color: #dbeafe; font-size: 11.5px; letter-spacing: 0.11em; }

.win-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.win-close,
.icon-btn {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-muted);
  cursor: pointer;
  width: 24px;
  height: 24px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: var(--t);
}
.win-close:hover,
.icon-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}
.icon-btn.active {
  color: var(--mint);
  background: transparent;
}
.icon-btn.active:hover {
  background: transparent;
  color: #93c5fd;
}

.pill-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-sub);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 5px;
  letter-spacing: 0.06em;
}
.pill-badge.interactive { cursor: pointer; transition: var(--t); }
.pill-badge.interactive:hover {
  border-color: var(--border-mint);
  color: var(--mint);
}

.btn-save-header {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 11px 4px 6px;
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.34);
  background: linear-gradient(160deg, #60a5fa, #2563eb 45%, #172554);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-origin: border-box;
  background-clip: border-box;
  color: #ffffff;
  font-family: 'IBM Plex Sans Thai', 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  outline: none;
  box-shadow: none;
  transition: all 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-save-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: skewX(-22deg);
  transition: left 0.45s ease;
  pointer-events: none;
}
.btn-save-header:hover::after {
  left: 140%;
}
.btn-save-header:hover {
  filter: brightness(1.1);
  border-color: rgba(96, 165, 250, 0.55);
  transform: translateY(-1px);
}
.btn-save-header:active {
  transform: translateY(0.5px);
}
.btn-save-icon {
  width: 19px;
  height: 19px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.18s ease, background 0.18s ease;
}
.btn-save-header:hover .btn-save-icon {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.26);
}
.btn-save-header svg {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

.dot-toggle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.status-ring {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  position: relative;
  transition: var(--t);
}
.status-ring::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: var(--t);
}
.dot-toggle.active .status-ring {
  border-color: var(--mint);
  box-shadow: 0 0 10px var(--mint-glow);
}
.dot-toggle.active .status-ring::after {
  background: var(--mint);
}

/* ─── LOGIN SCREEN ──────────────────────────────────────────── */
.login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 390px;
}

.login-body {
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--text-sub);
}

.field-wrap { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.hud-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text-main);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  outline: none;
  transition: var(--t);
}
.hud-input::placeholder { color: var(--text-muted); }
.hud-input:focus {
  border-color: var(--border-mint);
  background: #121c30;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

.login-error {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-size: 12px;
}

.btn-primary-mint {
  width: 100%;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(96, 165, 250, 0.55);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.24), rgba(37, 99, 235, 0.16));
  color: #93c5fd;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: var(--t);
}
.btn-primary-mint:hover {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.36), rgba(37, 99, 235, 0.24));
  color: #ffffff;
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.35);
}
.btn-primary-mint:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-loader { display: inline-flex; gap: 4px; align-items: center; }
.btn-loader .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--mint);
  animation: dotPulse 1.1s infinite;
}
.btn-loader .dot:nth-child(2) { animation-delay: 0.18s; }
.btn-loader .dot:nth-child(3) { animation-delay: 0.36s; }
@keyframes dotPulse { 0%, 80%, 100% { opacity: 0.25; transform: scale(0.7); } 40% { opacity: 1; transform: scale(1); } }

.login-footer {
  padding: 10px 18px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
}

/* ─── RESTORE BAR ───────────────────────────────────────────── */
.restore-bar {
  position: relative;
  z-index: 20;
  max-width: 1180px;
  margin: 12px auto 0;
  padding: 8px 14px;
  background: rgba(14, 17, 21, 0.9);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.restore-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}
.restore-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.restore-chip {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--mint);
  font-family: 'Chakra Petch', sans-serif;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 5px;
  cursor: pointer;
}
.restore-chip:hover { border-color: var(--border-mint); }

#dashboard {
  display: flex;
  flex-direction: row;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
  background: var(--bg-page);
}

/* ══════════════ AUTHENTIC HUD SIDEBAR ══════════════ */
.hud-sidebar {
  width: 205px;
  min-width: 205px;
  height: 100vh;
  background: linear-gradient(180deg, rgba(10, 17, 32, 0.98) 0%, rgba(6, 10, 19, 0.98) 100%);
  border-right: 1px solid rgba(59, 130, 246, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 12px 16px;
  z-index: 50;
  backdrop-filter: blur(14px);
  user-select: none;
}

.sidebar-top {
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 4px 16px;
  border-bottom: 1px solid rgba(96, 165, 250, 0.14);
  margin-bottom: 16px;
}

.brand-logo-hero {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
}

.brand-logo-full {
  width: 100%;
  max-width: 162px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.35));
}

.sidebar-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: 'Inter', -apple-system, sans-serif;
  position: relative;
}

.nav-item:hover:not(.active) {
  background: rgba(59, 130, 246, 0.10);
  border-color: rgba(96, 165, 250, 0.24);
  color: #e2e8f0;
}

.nav-item.active {
  background: linear-gradient(160deg, #60a5fa, #2563eb 45%, #172554);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-origin: border-box;
  background-clip: border-box;
  border-color: rgba(59, 130, 246, 0.3);
  color: #ffffff;
  font-weight: 600;
  box-shadow: none;
}

.nav-item svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  flex-shrink: 0;
  opacity: 0.85;
}

.nav-item.active svg {
  opacity: 1;
  stroke: #ffffff;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.45));
}

.sidebar-user-card {
  margin-top: auto;
  padding: 10px;
  border-radius: 12px;
  background: rgba(10, 17, 34, 0.88);
  border: 1px solid rgba(59, 130, 246, 0.22);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-user-top {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 2px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--t);
}
.sidebar-user-top:hover {
  background: rgba(59, 130, 246, 0.08);
}

.sidebar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
  padding: 3px;
  background: #050a18;
  border: 1px solid rgba(59, 130, 246, 0.42);
  flex-shrink: 0;
}

.sidebar-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sidebar-user-name {
  font-size: 12px;
  font-weight: 700;
  color: #f8fafc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-sidebar-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 7px 11px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.24);
  color: #fca5a5;
  font-family: 'IBM Plex Sans Thai', 'Inter', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-sidebar-logout:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.4);
}

.btn-sidebar-logout svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

/* ══════════════ MAIN WORKSPACE CONTAINER ══════════════ */
.hud-main-container {
  flex: 1;
  min-width: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  position: relative;
}

/* ══════════════ FULL POSE PREVIEW STAGE ══════════════ */
.full-anim-stage {
  width: 100%;
  height: 100vh;
  display: grid;
  grid-template-columns: 330px 1fr;
  overflow: hidden;
  background: #04070e;
  position: relative;
  z-index: 5;
}

.full-anim-stage.hidden {
  display: none !important;
}

/* Left Clip Browser */
.anim-browser-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 14px 16px;
  background: rgba(8, 13, 24, 0.98);
  border-right: 1px solid rgba(59, 130, 246, 0.2);
  height: 100%;
  overflow: hidden;
  font-family: 'Outfit', 'IBM Plex Sans Thai', 'Inter', sans-serif;
}

.anim-brand {
  display: flex;
  align-items: center;
  padding: 2px 4px 0;
}

.anim-brand strong {
  display: block;
  font-size: 19px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0.04em;
  color: #fafafa;
}

.anim-brand strong span {
  background: linear-gradient(160deg, #93c5fd, #3b82f6 45%, #1d4ed8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.anim-field.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #04070e;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 0 12px;
  height: 40px;
  flex-shrink: 0;
  transition: border-color 0.14s ease-out, box-shadow 0.14s ease-out;
}

.anim-field.search:hover {
  border-color: #334155;
}

.anim-field.search:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.22);
}

.anim-field.search svg {
  width: 16px;
  height: 16px;
  stroke: #a3a3a3;
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
  flex-shrink: 0;
}

.anim-field.search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #fafafa;
  font-size: 14px;
  font-family: inherit;
  user-select: text;
}

.anim-field.search input::placeholder {
  color: #a3a3a3;
}

.anim-segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  flex-shrink: 0;
}

.anim-segmented button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  background: #0c1322;
  border: 1px solid rgba(96, 165, 250, 0.16);
  border-radius: 7px;
  color: #cbd5e1;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.14s ease;
}

.anim-segmented button:hover:not(.active):not([aria-pressed="true"]) {
  background: #141f35;
  border-color: rgba(96, 165, 250, 0.35);
  color: #f8fafc;
}

.anim-segmented button.active,
.anim-segmented button[aria-pressed="true"] {
  background: linear-gradient(160deg, #60a5fa, #2563eb 45%, #172554);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-origin: border-box;
  background-clip: border-box;
  border-color: rgba(59, 130, 246, 0.3);
  color: #ffffff;
  font-weight: 600;
  box-shadow: none;
}
.anim-segmented button[aria-pressed="true"] i {
  color: #dbeafe;
}

.anim-segmented button i {
  font-style: normal;
  font-size: 10.5px;
  color: #8a94a6;
  font-family: 'JetBrains Mono', monospace;
}

.anim-list-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: #8a94a6;
}

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

.anim-meter i {
  display: block;
  height: 100%;
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint-glow);
  transition: width 0.2s ease;
}

.anim-clip-list {
  flex: 1;
  min-height: 0;
  list-style: none;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 4px;
}

.anim-clip-list li {
  padding: 8px 10px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: rgba(13, 20, 36, 0.55);
  cursor: pointer;
  transition: all 0.12s ease;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.anim-clip-list li:hover:not([aria-selected="true"]) {
  background: rgba(20, 31, 53, 0.85);
  border-color: rgba(96, 165, 250, 0.18);
}

.anim-clip-list li[aria-selected="true"] {
  background: linear-gradient(160deg, #60a5fa, #2563eb 45%, #172554);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-origin: border-box;
  background-clip: border-box;
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: none;
}

.anim-clip-list .clip-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #f3f4f6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.anim-clip-list li[aria-selected="true"] .clip-name {
  color: var(--mint);
}

.anim-clip-list .clip-dict {
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Right 3D Stage */
.anim-viewer-stage {
  position: relative;
  width: 100%;
  height: 100%;
  background: #04070e;
  overflow: hidden;
}

.anim-stage-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.anim-stage-bg .bg-logo-emblem {
  width: clamp(520px, 48vw, 860px);
  opacity: 0.16;
}

#anim-view {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  background: transparent;
}

.anim-now {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 254px;
  padding: 15px 16px;
  background: rgba(7, 11, 22, 0.86);
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.72), 0 0 28px rgba(37, 99, 235, 0.14);
  backdrop-filter: blur(16px) saturate(130%);
  overflow: hidden;
  z-index: 10;
}

.anim-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #60a5fa;
}

.anim-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  animation: animPulse 1.6s ease-out infinite;
  flex-shrink: 0;
}

@keyframes animPulse {
  to {
    box-shadow: 0 0 0 8px rgba(59, 130, 246, 0);
  }
}

.anim-now-name {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 24px;
  color: #ffffff;
  overflow-wrap: anywhere;
}

.anim-now-dict {
  margin: 3px 0 0;
  font-size: 12px;
  color: #94a3b8;
  overflow-wrap: anywhere;
}

.anim-now-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 13px;
}

.anim-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  background: linear-gradient(180deg, rgba(16, 26, 48, 0.85) 0%, rgba(9, 14, 28, 0.96) 100%);
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 10px;
  color: #f1f5f9;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(147, 197, 253, 0.14), 0 4px 12px rgba(0, 0, 0, 0.32);
  transition: all 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}

.anim-btn:hover {
  border-color: rgba(96, 165, 250, 0.55);
  background: linear-gradient(180deg, rgba(24, 39, 72, 0.92) 0%, rgba(13, 21, 42, 0.98) 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(191, 219, 254, 0.24), 0 6px 18px rgba(37, 99, 235, 0.22);
}

.anim-btn:active {
  transform: translateY(0) scale(0.98);
}

.anim-btn.action-row {
  justify-content: space-between;
  min-height: 38px;
  padding: 0 10px 0 7px;
}

.btn-row-left {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.btn-icon-box {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.32);
  color: #60a5fa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.16s ease;
}

.anim-btn.action-row:hover .btn-icon-box {
  background: rgba(59, 130, 246, 0.28);
  border-color: rgba(147, 197, 253, 0.6);
  color: #bfdbfe;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.35);
}

.btn-icon-box svg {
  width: 13px;
  height: 13px;
}

.btn-tag-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.28);
  color: #93c5fd;
  transition: all 0.16s ease;
}

.anim-btn.action-row:hover .btn-tag-pill {
  background: rgba(59, 130, 246, 0.28);
  border-color: rgba(147, 197, 253, 0.55);
  color: #ffffff;
}

.anim-btn.copied {
  border-color: #60a5fa;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.45), inset 0 1px 0 rgba(191, 219, 254, 0.3);
}
.anim-btn.copied .btn-tag-pill {
  background: #3b82f6;
  border-color: #93c5fd;
  color: #ffffff;
}

.anim-btn.primary {
  background: linear-gradient(160deg, #60a5fa, #2563eb 45%, #172554);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-origin: border-box;
  background-clip: border-box;
  border-color: rgba(59, 130, 246, 0.3);
  color: #ffffff;
  font-weight: 600;
  box-shadow: none;
}

.anim-btn.primary:hover {
  filter: brightness(1.12);
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: none;
}

.anim-btn svg {
  width: 15px;
  height: 15px;
  flex: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* Bottom Transport Bar (Floating Glass Capsule) */
.anim-transport {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: rgba(7, 11, 22, 0.86);
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.72), 0 0 24px rgba(37, 99, 235, 0.12);
  backdrop-filter: blur(16px) saturate(130%);
  z-index: 10;
}

.anim-transport .icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(13, 21, 38, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.24);
  color: #e2e8f0;
}

.anim-transport .icon-btn:hover {
  border-color: rgba(96, 165, 250, 0.55);
  background: rgba(23, 36, 66, 0.95);
  color: #ffffff;
}

.anim-transport .icon-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

#anim-play svg {
  fill: currentColor;
}

.anim-transport .icon-btn.primary {
  background: linear-gradient(160deg, #60a5fa, #2563eb 45%, #172554);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-origin: border-box;
  background-clip: border-box;
  border-color: rgba(59, 130, 246, 0.35);
  color: #ffffff;
  box-shadow: none;
}

.anim-scrub {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.22);
  outline: none;
  cursor: pointer;
}

.anim-scrub::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #3b82f6;
  border: 2px solid #dbeafe;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.9);
  cursor: pointer;
}

.anim-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #cbd5e1;
  min-width: 90px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.anim-control.inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #94a3b8;
}

.anim-control select {
  min-height: 30px;
  padding: 0 8px;
  background: #080d1a;
  border: 1px solid rgba(59, 130, 246, 0.28);
  color: #f8fafc;
  border-radius: 8px;
  font-size: 12px;
  outline: none;
  cursor: pointer;
}

.anim-control select:hover {
  border-color: rgba(96, 165, 250, 0.55);
}

/* ─── MAIN 3-COLUMN STAGE ───────────────────────────────────── */
.hud-stage {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 24px 20px;
  display: grid;
  grid-template-columns: minmax(250px, 340px) minmax(380px, 520px) minmax(260px, 360px);
  align-items: start;
  align-content: center;
  justify-content: center;
  gap: 18px;
}
.hud-stage.panels-collapsed {
  grid-template-columns: minmax(380px, 520px);
}
@media (min-width: 960px) {
  .hud-stage.panels-collapsed {
    max-width: 100%;
    padding: 24px 225px 24px 20px;
  }
}
@media (min-width: 1720px) {
  .hud-stage {
    max-width: 100%;
    padding: 24px 225px 24px 20px;
  }
}
.hud-stage.panels-collapsed .col-left,
.hud-stage.panels-collapsed .col-right {
  display: none;
}

.hud-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  width: 100%;
}

.hud-window {
  min-width: 0;
  width: 100%;
}

/* ─── LEFT: ANIM PHASE (UPGRADED POSE BUILDER) ───────────────── */
.win-anim {
  padding-bottom: 12px;
}

.anim-panel-body {
  padding: 14px 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pose-builder {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}

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

.pose-input-icon {
  position: absolute;
  left: 12px;
  width: 14px;
  height: 14px;
  stroke: #3b82f6;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  pointer-events: none;
  transition: stroke 0.18s ease, filter 0.18s ease;
}

.pose-input {
  width: 100%;
  background: linear-gradient(180deg, #050811 0%, #0a1020 100%);
  border: 1px solid rgba(59, 130, 246, 0.24);
  border-radius: 10px;
  padding: 10px 12px 10px 35px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-main);
  font-family: 'IBM Plex Sans Thai', 'Inter', sans-serif;
  outline: none;
  user-select: text;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.72), 0 1px 0 rgba(147, 197, 253, 0.04);
  transition: all 0.18s ease;
}

.pose-input::placeholder {
  color: #64748b;
}

.pose-input::-webkit-calendar-picker-indicator,
.pose-input::-webkit-list-button {
  display: none !important;
  opacity: 0 !important;
}

.pose-input:focus {
  border-color: #3b82f6;
  background: linear-gradient(180deg, #060a16 0%, #0d162c 100%);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.72), 0 0 0 3px rgba(59, 130, 246, 0.16), 0 0 16px rgba(59, 130, 246, 0.24);
}

.pose-input-wrap:focus-within .pose-input-icon {
  stroke: #60a5fa;
  filter: drop-shadow(0 0 5px rgba(96, 165, 250, 0.8));
}

.pose-btn-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-pose {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.22, 1, 0.36, 1);
  border: 1px solid transparent;
}

.btn-pose::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: skewX(-22deg);
  transition: left 0.45s ease;
  pointer-events: none;
}

.btn-pose:hover::after {
  left: 140%;
}

.btn-pose-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.18s ease, background 0.18s ease;
}

.btn-pose-icon svg {
  width: 12px;
  height: 12px;
  display: block;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.btn-pose-add {
  background: linear-gradient(160deg, #60a5fa, #2563eb 45%, #172554);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-origin: border-box;
  background-clip: border-box;
  border-color: rgba(59, 130, 246, 0.32);
  color: #ffffff;
  box-shadow: none;
}

.btn-pose-add .btn-pose-icon {
  background: rgba(255, 255, 255, 0.18);
}

.btn-pose-add:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  border-color: rgba(96, 165, 250, 0.52);
  box-shadow: none;
}

.btn-pose-add:hover .btn-pose-icon {
  transform: rotate(90deg) scale(1.06);
  background: rgba(255, 255, 255, 0.26);
}

.btn-pose-add:active {
  transform: translateY(0.5px);
}

.btn-pose-del {
  background: linear-gradient(160deg, rgba(30, 58, 138, 0.34) 0%, rgba(12, 20, 42, 0.90) 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-origin: border-box;
  background-clip: border-box;
  border-color: rgba(96, 165, 250, 0.30);
  color: #bfdbfe;
  box-shadow: inset 0 1px 0 rgba(147, 197, 253, 0.12);
}

.btn-pose-del .btn-pose-icon {
  background: rgba(59, 130, 246, 0.22);
  color: #60a5fa;
}

.btn-pose-del:hover {
  transform: translateY(-1px);
  background: linear-gradient(160deg, #3b82f6, #1d4ed8 45%, #172554);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-origin: border-box;
  background-clip: border-box;
  border-color: rgba(96, 165, 250, 0.45);
  color: #ffffff;
  box-shadow: none;
}

.btn-pose-del:hover .btn-pose-icon {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.20);
  color: #ffffff;
}

.btn-pose-del:active {
  transform: translateY(0.5px);
}

.anim-item.selected {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 8px;
  padding: 6px 8px;
  margin: -2px -4px;
}

.anim-col-head {
  display: flex;
  justify-content: space-between;
  padding: 4px 16px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.anim-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 16px 12px;
  max-height: 360px;
  overflow-y: auto;
}

.anim-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.anim-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}

.anim-name {
  color: var(--text-main);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 170px;
}

.anim-item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.anim-speed {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-main);
  min-width: 26px;
  text-align: right;
}

.anim-del {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  padding: 2px 4px;
  border-radius: 4px;
  transition: var(--t);
}
.anim-del:hover { color: var(--red); background: rgba(239, 68, 68, 0.1); }

.anim-footer {
  margin: 4px 16px 0;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
  font-size: 11px;
  color: var(--text-muted);
}

/* ─── CENTER: BASIC CRI & RADAR ─────────────────────────────── */
.win-basic {
  padding-bottom: 16px;
}

.radar-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px 4px;
}

#radarCanvas {
  width: 100%;
  max-width: 480px;
  height: auto;
  aspect-ratio: 480 / 420;
  display: block;
}

.radar-floating-badge {
  position: absolute;
  bottom: 6px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 5px;
  background: rgba(11, 13, 16, 0.78);
  border: 1px solid var(--border-soft);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  color: var(--text-sub);
  letter-spacing: 0.08em;
}

.led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}
.led.online  { background: var(--mint-strong); box-shadow: 0 0 8px var(--mint-strong); }
.led.offline { background: #64748b; }
.led.error   { background: var(--red); box-shadow: 0 0 6px var(--red); }

.center-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 268px;
  margin: 0 auto;
  padding: 14px 0 18px;
}

.btn-action-reset,
.btn-action-apply {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.btn-action-reset:hover .btn-pose-icon {
  transform: rotate(-45deg) scale(1.06);
}

.btn-action-apply:hover .btn-pose-icon {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.26);
}

.btn-ghost {
  min-width: 94px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-main);
  font-family: 'Chakra Petch', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.11em;
  cursor: pointer;
  transition: var(--t);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-ghost:active { transform: scale(0.97); }

/* ─── SLIDERS ───────────────────────────────────────────────── */
.sliders-block {
  padding: 4px 18px 2px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.arc-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

.slider-group.compact-cri {
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
}

.slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slider-label {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--text-sub);
}

.slider-val-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
}

.val-cyan,
.val-red,
.val-mint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  font-weight: 700;
  color: #60a5fa;
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.55);
}

.btn-reset-mini {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  padding: 2px;
  transition: var(--t);
}
.btn-reset-mini:hover {
  color: var(--text-main);
  transform: rotate(-45deg);
}

/* Range Input Styling — Uniform Electric Blue 3D Capsule + NEXUS Logo Thumb */
.range-hud {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 7px;
  margin: 8px 0;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  touch-action: none;
  background: #070d1a;
  border: 1px solid rgba(59, 130, 246, 0.30);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.88), 0 0 10px rgba(37, 99, 235, 0.14);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.range-cyan,
.range-red,
.range-mint {
  background: linear-gradient(90deg, #1d4ed8 0%, #3b82f6 var(--mid-pct, 0%), #93c5fd var(--pct, 0%), #070d1a var(--pct, 0%), #070d1a 100%);
}

.range-hud:hover {
  border-color: rgba(96, 165, 250, 0.58);
}

.range-hud::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #030816 url('logo-mark.png') center / 112% no-repeat;
  border: 2px solid #60a5fa;
  box-shadow:
    0 0 12px rgba(59, 130, 246, 0.95),
    0 0 4px rgba(191, 219, 254, 0.9),
    inset 0 0 6px rgba(59, 130, 246, 0.55);
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.15s ease, border-color 0.15s ease;
}

.range-hud::-webkit-slider-thumb:hover {
  transform: scale(1.16);
  border-color: #dbeafe;
  box-shadow:
    0 0 18px rgba(59, 130, 246, 1),
    0 0 28px rgba(37, 99, 235, 0.85),
    inset 0 0 7px rgba(147, 197, 253, 0.78);
}

.range-hud:active::-webkit-slider-thumb {
  transform: scale(1.06);
}

.range-hud::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #030816 url('logo-mark.png') center / 112% no-repeat;
  border: 2px solid #60a5fa;
  box-shadow:
    0 0 12px rgba(59, 130, 246, 0.95),
    0 0 4px rgba(191, 219, 254, 0.9),
    inset 0 0 6px rgba(59, 130, 246, 0.55);
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.15s ease, border-color 0.15s ease;
}

.range-hud::-moz-range-thumb:hover {
  transform: scale(1.16);
  border-color: #dbeafe;
  box-shadow:
    0 0 18px rgba(59, 130, 246, 1),
    0 0 28px rgba(37, 99, 235, 0.85),
    inset 0 0 7px rgba(147, 197, 253, 0.78);
}

/* Keep compact speed sliders in Anim Phase proportional */
.anim-list .range-hud {
  height: 5px;
  margin: 4px 0;
}
.anim-list .range-hud::-webkit-slider-thumb {
  width: 17px;
  height: 17px;
  border-width: 1.5px;
}
.anim-list .range-hud::-moz-range-thumb {
  width: 17px;
  height: 17px;
  border-width: 1.5px;
}

/* ─── RIGHT: FEATURES & HIGHLIGHT ───────────────────────────── */
.feature-list,
.highlight-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 13px;
}

.feature-row,
.highlight-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 11px;
  background: var(--bg-row);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--t);
}
.feature-row:hover,
.highlight-row:hover {
  background: var(--bg-row-hover);
  border-color: rgba(255, 255, 255, 0.12);
}

.feature-row.active {
  border-color: rgba(96, 165, 250, 0.5);
  background: rgba(59, 130, 246, 0.10);
}
.feature-row.holding {
  border-color: #60a5fa;
  background: rgba(37, 99, 235, 0.20);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.24);
}

.highlight-row.active {
  border-color: var(--border-mint);
  background: rgba(59, 130, 246, 0.12);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.16);
}

.feat-left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.feat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3b4b63;
  transition: var(--t);
  flex-shrink: 0;
}

.feature-row.active .feat-dot,
.highlight-row.active .feat-dot {
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint-strong), 0 0 16px rgba(59, 130, 246, 0.75);
}

.feat-name {
  font-family: 'Chakra Petch', 'IBM Plex Sans Thai', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-sub);
  transition: var(--t);
}
.feature-row.active .feat-name,
.highlight-row.active .feat-name {
  color: var(--text-main);
}

.feat-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bind-btn {
  min-width: 58px;
  padding: 4px 10px;
  border-radius: 5px;
  background: #171a20;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--t);
}
.bind-btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
}
.bind-btn.listening {
  border-color: var(--mint);
  color: var(--mint);
  box-shadow: 0 0 10px var(--mint-glow);
  animation: pulseBorder 0.7s infinite;
}
.bind-btn.holding {
  border-color: #60a5fa;
  background: rgba(37, 99, 235, 0.28);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.35);
}
@keyframes pulseBorder { 50% { opacity: 0.5; } }

.feat-tag {
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
}
.feat-hold-tag {
  padding: 2px 6px;
  font-size: 9px;
  letter-spacing: 0.06em;
  border: 1px solid rgba(96, 165, 250, 0.18);
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.10);
  transition: var(--t);
}
.feature-row.holding .feat-hold-tag {
  background: linear-gradient(160deg, #60a5fa, #2563eb 45%, #172554);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  border-color: rgba(96, 165, 250, 0.45);
  color: #ffffff;
}

/* ── CRI HOLD BUTTON ─────────────────────────────────── */
.cri-hold-row {
  margin-top: 4px;
}
.cri-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--crimson, #ef4444);
  box-shadow: 0 0 6px rgba(239,68,68,0.6);
  flex-shrink: 0;
}
.cri-hold-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  user-select: none;
  transition: background 0.1s, box-shadow 0.1s, transform 0.05s;
  -webkit-user-select: none;
}
.cri-hold-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  box-shadow: 0 0 10px rgba(239,68,68,0.3);
}
.cri-hold-btn.holding {
  background: rgba(239, 68, 68, 0.30);
  border-color: #ef4444;
  box-shadow: 0 0 18px rgba(239,68,68,0.55);
  transform: scale(0.96);
  color: #fff;
}
.cri-hold-btn svg {
  opacity: 0.75;
}

.hh-mode-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px 12px;
  border-top: 1px solid var(--border-soft);
}
.hh-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.mode-pills { display: flex; gap: 4px; }
.mode-pill {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--t);
}
.mode-pill.active {
  border-color: var(--border-mint);
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.16);
}

/* Agent Meta Strip */
.agent-strip {
  margin: 0 13px 13px;
  padding: 9px 10px;
  background: var(--bg-row);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.agent-meta {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.7fr) minmax(0, 0.7fr);
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.meta-cell { display: flex; flex-direction: column; min-width: 0; }
.meta-k {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}
.meta-v {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #cbd5e1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-apply-mini {
  padding: 6px 12px;
  border-radius: 5px;
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.48);
  color: #93c5fd;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: var(--t);
}
.btn-apply-mini:hover {
  background: rgba(59, 130, 246, 0.30);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.45);
}

/* ─── MODAL ─────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(3, 5, 8, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.modal-card { width: 100%; max-width: 360px; }
.modal-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kv-row {
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-soft);
}
.kv-row span { color: var(--text-muted); }
.kv-row strong { color: var(--text-main); font-weight: 500; }
.modal-actions {
  padding: 0 16px 16px;
  display: flex;
  gap: 10px;
}
.modal-actions > button { flex: 1; }
.btn-danger {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.38);
  color: #fca5a5;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
}
.btn-danger:hover { background: rgba(239, 68, 68, 0.22); }

/* ─── TOAST ─────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: rgba(12, 15, 19, 0.96);
  border: 1px solid var(--border-mint);
  color: var(--mint);
  padding: 8px 16px;
  border-radius: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  z-index: 9999;
  transition: transform 0.22s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.error { border-color: rgba(239, 68, 68, 0.6); color: #fca5a5; }

/* ─── SCROLLBAR ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 2px; }

/* ─── RESPONSIVE (MOBILE & TABLET) ──────────────────────────── */
@media (max-width: 1180px) {
  .hud-stage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    align-content: start;
  }
  .col-center {
    grid-column: 1 / -1;
    order: -1;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }
  .hud-stage.panels-collapsed {
    grid-template-columns: minmax(0, 520px);
    align-content: center;
  }
}

@media (max-width: 820px) {
  #dashboard {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
  }
  .hud-sidebar {
    width: 100%;
    min-width: 0;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 10px 14px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .sidebar-top { flex-direction: row; align-items: center; gap: 16px; }
  .sidebar-brand { padding: 0; border-bottom: none; margin-bottom: 0; }
  .sidebar-nav-menu { flex-direction: row; gap: 6px; }
  .sidebar-user-card { display: none; }
  .hud-main-container { height: auto; overflow-y: visible; }
  .full-anim-stage {
    grid-template-columns: 1fr;
    grid-template-rows: 340px minmax(360px, 1fr);
    height: auto;
    min-height: calc(100vh - 60px);
  }
  .anim-browser-panel { border-right: none; border-bottom: 1px solid var(--border); height: 340px; }
  .anim-viewer-stage { min-height: 420px; }
}

@media (max-width: 660px) {
  .hud-stage {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 12px 10px 28px;
    gap: 12px;
  }
  .hud-col { width: 100%; max-width: 100%; }
  .col-center { order: -2; max-width: 100%; }
  .col-right  { order: -1; }
  .arc-split  { gap: 10px; }
  .sliders-block { padding: 4px 14px 2px; }
}

/* ─── 3D MELEE ANIM VIEWER MODAL & TRIGGERS ─────────────────── */
.mint-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(96, 165, 250, 0.55);
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.14);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.15s ease;
}
.mint-pill:hover {
  background: rgba(59, 130, 246, 0.26);
  border-color: #60a5fa;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.45);
}

.anim-eye {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  transition: var(--t);
}
.anim-eye:hover {
  color: var(--mint);
  background: rgba(59, 130, 246, 0.16);
}

.anim-modal-card {
  width: 100%;
  max-width: 1060px;
  height: min(680px, 90vh);
  display: flex;
  flex-direction: column;
}

.anim-viewer-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
}

.anim-browser-col {
  border-right: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: rgba(7, 9, 14, 0.65);
}

.anim-search-wrap {
  padding: 12px;
  border-bottom: 1px solid var(--border-soft);
}

.anim-clipsets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
}
.anim-clipsets button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 5px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-sub);
  font-family: 'Chakra Petch', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--t);
}
.anim-clipsets button i {
  font-style: normal;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  color: var(--text-muted);
}
.anim-clipsets button[aria-pressed="true"] {
  background: linear-gradient(160deg, #60a5fa, #2563eb 45%, #172554);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-origin: border-box;
  background-clip: border-box;
  border-color: rgba(59, 130, 246, 0.3);
  color: #ffffff;
  font-weight: 600;
  box-shadow: none;
}
.anim-clipsets button[aria-pressed="true"] i {
  color: #dbeafe;
}

.anim-clip-list {
  list-style: none;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 2px 4px 10px 2px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.anim-clip-list li {
  padding: 9px 11px;
  border-radius: 8px;
  background: rgba(13, 20, 36, 0.55);
  border: 1px solid transparent;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 8px;
  transition: var(--t);
}
.anim-clip-list li:hover:not([aria-selected="true"]) {
  background: rgba(20, 31, 53, 0.88);
  border-color: rgba(96, 165, 250, 0.28);
}
.anim-clip-list li[aria-selected="true"] {
  background: linear-gradient(160deg, #60a5fa, #2563eb 45%, #172554);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-origin: border-box;
  background-clip: border-box;
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: none;
}
.anim-clip-list li .clip-n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.anim-clip-list li[aria-selected="true"] .clip-n {
  color: #ffffff;
  font-weight: 700;
}
.anim-clip-list li .clip-t {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--text-muted);
}
.anim-clip-list li[aria-selected="true"] .clip-t {
  color: #e0f2fe;
}
.anim-clip-list li .clip-d {
  grid-column: 1 / -1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.anim-clip-list li[aria-selected="true"] .clip-d {
  color: #bfdbfe;
}
.anim-clip-list li.empty {
  text-align: center;
  color: var(--text-muted);
  padding: 24px 10px;
  cursor: default;
}

.anim-stage-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.anim-canvas-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #06080b;
  overflow: hidden;
}
#anim-view {
  width: 100%;
  height: 100%;
  display: block;
}

.anim-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(4, 7, 14, 0.88);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--mint);
  z-index: 15;
}

#anim-play[data-paused="false"] .i-play { display: none; }
#anim-play[data-paused="true"] .i-pause { display: none; }

/* ═══ EVERLASTING / PIXEL STYLE LOGIN LAYOUT ═══ */
.login-shell {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100vw !important;
  height: 100vh !important;
  padding: 40px 80px !important;
  box-sizing: border-box !important;
  position: relative !important;
  z-index: 10 !important;
}

.login-left-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 100%;
}

.solar-orbit-system {
  position: relative;
  width: 480px;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 168, 255, 0.22);
  pointer-events: none;
}

.orbit-ring-1 {
  width: 280px;
  height: 280px;
  animation: orbitRotate 28s linear infinite;
}

.orbit-ring-2 {
  width: 420px;
  height: 420px;
  border-color: rgba(0, 168, 255, 0.14);
  animation: orbitRotateRev 40s linear infinite;
}

.orbit-node {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 16px #00a8ff, 0 0 30px #38bdf8;
}

.orbit-node-icon {
  position: absolute;
  width: 26px;
  height: 26px;
  background: rgba(13, 22, 45, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #38bdf8;
  box-shadow: 0 0 12px rgba(0, 168, 255, 0.3);
}

.solar-core {
  position: relative;
  z-index: 5;
  width: 210px;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(0, 168, 255, 0.22) 0%, rgba(5, 10, 24, 0) 70%);
}

.solar-core img {
  width: 180px;
  height: auto;
  filter: drop-shadow(0 0 25px rgba(0, 168, 255, 0.65));
  animation: coreFloat 4s ease-in-out infinite alternate;
}

@keyframes orbitRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes orbitRotateRev {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes coreFloat {
  from { transform: translateY(-6px) scale(0.98); }
  to { transform: translateY(6px) scale(1.02); }
}

/* RIGHT PANEL - SLEEK MINIMAL CARD */
.login-right-sidebar {
  width: 440px;
  height: 90vh;
  max-height: 800px;
  background: rgba(8, 14, 28, 0.75);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(0, 168, 255, 0.22);
  border-radius: 28px;
  padding: 44px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(0, 168, 255, 0.12);
  position: relative;
  z-index: 20;
}

.brand-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}

.brand-pill-badge img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 168, 255, 0.35);
}

.brand-pill-badge .brand-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.04em;
  color: #fff;
}

.login-heading {
  font-family: 'Prompt', 'Montserrat', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 24px 0;
  letter-spacing: -0.01em;
}

.field-label-thai {
  font-family: 'Prompt', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
  display: block;
}

.hud-input-sleek {
  width: 100%;
  height: 52px;
  background: rgba(14, 23, 44, 0.85);
  border: 1px solid rgba(0, 168, 255, 0.35);
  border-radius: 14px;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  padding: 0 18px;
  outline: none;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.hud-input-sleek:focus {
  border-color: #00a8ff;
  box-shadow: 0 0 16px rgba(0, 168, 255, 0.45);
  background: rgba(18, 30, 58, 0.95);
}

.btn-login-crimson {
  width: 100%;
  height: 52px;
  margin-top: 24px;
  background: linear-gradient(135deg, #0088ff 0%, #00d2ff 100%);
  border: none;
  border-radius: 14px;
  color: #ffffff;
  font-family: 'Prompt', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 168, 255, 0.4);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-login-crimson:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 168, 255, 0.6);
  filter: brightness(1.1);
}

@media (max-width: 900px) {
  .login-shell {
    flex-direction: column !important;
    padding: 20px !important;
    justify-content: center !important;
  }
  .login-left-stage {
    display: none !important;
  }
  .login-right-sidebar {
    width: 100% !important;
    max-width: 400px !important;
    height: auto !important;
    padding: 32px 24px !important;
  }
}
