:root {
  --cyan: #00ffe5;
  --cyan-2: #00dbe7;
  --mint: #4edea3;
  --pink: #ff2bd6;
  --pink-soft: #ff7ae8;
  --navy: rgba(0, 8, 72, 0.85);
  --panel: rgba(0, 14, 58, 0.65);
  --panel-strong: rgba(0, 10, 42, 0.78);
  --muted: #b9cacb;
  --white: #ffffff;
  --danger: #ff2a4a;
  --stage-w: 1920px;
  --stage-h: 1080px;
}

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

html,
body {
  width: 100%;
  height: 100%;
  background: #00010a;
  color: var(--white);
  font-family: "JetBrains Mono", "Source Code Pro", monospace;
  overflow: hidden;
}

img {
  display: block;
  max-width: none;
}

button,
input {
  font-family: inherit;
}

.viewport {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #00010a url("../bg-pc.png") center / cover no-repeat;
}

.stage {
  width: var(--stage-w);
  height: var(--stage-h);
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  transform-origin: center center;
}

.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.08) 0px,
    rgba(0, 0, 0, 0.08) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}

.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 39;
  background: radial-gradient(ellipse at center, transparent 70%, rgba(0, 0, 0, 0.2) 100%);
}

.corner {
  position: absolute;
  width: 8px;
  height: 8px;
  pointer-events: none;
}

.corner-tl {
  top: -1px;
  left: -1px;
  border-top: 1px solid var(--mint);
  border-left: 1px solid var(--mint);
}

.corner-br {
  bottom: -1px;
  right: -1px;
  border-bottom: 1px solid var(--mint);
  border-right: 1px solid var(--mint);
}

.glow-mint {
  text-shadow: 0 0 10px rgba(78, 222, 163, 0.5);
}

.glow-cyan {
  text-shadow: 0 0 10px rgba(0, 219, 231, 0.5);
}

/* ===== LOGIN ===== */
.login-header {
  position: absolute;
  left: 574px;
  top: 103px;
  width: 773px;
  height: 281px;
  text-align: center;
}

.login-header h1,
.login-header h2,
.login-header .vn-title {
  position: absolute;
  left: 0;
  width: 100%;
  font-family: "Source Code Pro", "Be Vietnam Pro", monospace;
  font-weight: 900;
  line-height: normal;
  white-space: nowrap;
}

.login-header h1 {
  top: 0;
  font-size: 38.356px;
  color: var(--white);
}

.login-header h2 {
  top: 52px;
  font-size: 48.833px;
  color: var(--cyan);
}

.login-header .vn-title {
  top: 127px;
  font-size: 27.685px;
  color: var(--white);
}

.invented-box {
  position: absolute;
  left: 0;
  top: 180px;
  width: 773px;
  height: 101px;
  background: var(--navy);
  border: 2px solid var(--cyan);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.invented-box .en {
  font-family: "Source Code Pro", "Be Vietnam Pro", monospace;
  font-weight: 700;
  font-size: 28.268px;
  color: var(--cyan);
}

.invented-box .vn {
  font-family: "Source Code Pro", "Be Vietnam Pro", monospace;
  font-weight: 700;
  font-size: 24.726px;
  color: var(--white);
}

.hud-panel {
  position: absolute;
  width: 282px;
  height: 386px;
  background: var(--panel);
  border: 1px solid var(--mint);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hud-left {
  left: 292px;
  top: 419px;
  padding: 16px 25px;
}

.hud-right {
  left: 1347px;
  top: 419px;
  padding: 16px 25px 20px;
}

.bin-soft {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  line-height: 16px;
  color: rgba(0, 219, 231, 0.6);
  word-break: break-word;
}

.bin-faint {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  line-height: 12.5px;
  color: rgba(0, 219, 231, 0.4);
  margin-top: 6px;
}

.status-stack {
  margin: 12px 0 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-ok {
  font-family: "Space Mono", monospace;
  font-size: 16px;
  line-height: 24px;
  color: var(--mint);
  text-shadow: 0 0 10px rgba(78, 222, 163, 0.5);
}

.status-ok.mono {
  font-family: "JetBrains Mono", monospace;
  text-shadow: none;
}

.hud-right-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.date-block {
  text-align: right;
}

.date-block .label {
  font-size: 10px;
  line-height: 15px;
  color: rgba(185, 202, 203, 0.7);
}

.date-block .value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: var(--cyan-2);
  text-shadow: 0 0 10px rgba(0, 219, 231, 0.5);
}

.scan-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.scan-line {
  font-size: 12px;
  line-height: 16px;
  color: rgba(78, 222, 163, 0.8);
}

.scan-line.bin {
  color: rgba(0, 219, 231, 0.4);
}

.scan-line.hot {
  color: var(--mint);
  text-shadow: 0 0 10px rgba(78, 222, 163, 0.5);
}

.login-box {
  position: absolute;
  left: 736px;
  top: 598px;
  width: 448px;
  height: 290px;
  background: rgba(0, 14, 58, 0.6);
  border: 1px solid rgba(78, 222, 163, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 30px rgba(0, 219, 231, 0.1);
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.login-box h3 {
  font-family: "Space Mono", monospace;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  color: var(--cyan-2);
  text-shadow: 0 0 10px rgba(0, 219, 231, 0.5);
  font-weight: 400;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  position: relative;
}

.field label {
  display: block;
  padding-left: 36px;
  margin-bottom: 4px;
  font-size: 10px;
  line-height: 15px;
  color: rgba(0, 219, 231, 0.7);
}

.field input {
  width: 100%;
  height: 38px;
  background: #fff;
  border: 1px solid #6b7280;
  padding: 10px 13px 10px 37px;
  font-size: 14px;
  color: #0b1b33;
  outline: none;
}

.field input::placeholder {
  color: rgba(0, 120, 130, 0.45);
}

.field input:focus {
  border-color: var(--cyan-2);
  box-shadow: 0 0 0 1px var(--cyan-2);
}

.field-icon {
  position: absolute;
  left: 13px;
  bottom: 13px;
  pointer-events: none;
}

.field-icon.user {
  width: 9.333px;
  height: 9.333px;
}

.field-icon.lock {
  left: 12px;
  bottom: 12px;
  width: 9.333px;
  height: 12.25px;
}

.field-icon img {
  width: 100%;
  height: 100%;
}

.btn-login {
  width: 100%;
  height: 46px;
  border: 1px solid var(--mint);
  background: linear-gradient(90deg, rgba(0, 165, 114, 0.1), rgba(0, 165, 114, 0.3));
  color: var(--mint);
  font-family: "Space Mono", monospace;
  font-size: 14px;
  letter-spacing: 1.4px;
  cursor: pointer;
  transition: box-shadow 0.2s, background 0.2s, color 0.2s;
}

.btn-login:hover {
  background: linear-gradient(90deg, rgba(0, 165, 114, 0.25), rgba(0, 165, 114, 0.5));
  box-shadow: 0 0 18px rgba(78, 222, 163, 0.45);
}

.btn-login:active {
  transform: translateY(1px);
}

.login-error {
  display: none;
  position: absolute;
  left: 25px;
  right: 25px;
  top: 50px;
  font-size: 11px;
  color: var(--danger);
  text-align: center;
  letter-spacing: 0.4px;
  pointer-events: none;
}

.login-error.show {
  display: block;
}

.login-box.shake {
  animation: shake 0.4s ease;
  border-color: var(--danger);
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}

.stats-row {
  position: absolute;
  left: 291px;
  top: 920px;
  width: 1338px;
  height: 93px;
  display: flex;
  gap: 13px;
}

.stat-card {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 91px;
  background: var(--panel);
  border: 1.072px solid rgba(78, 222, 163, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 8px 8px;
}

.stat-card .k {
  font-size: 9.649px;
  line-height: 14.474px;
  color: var(--muted);
}

.stat-card .v {
  font-family: "Space Grotesk", sans-serif;
  font-size: 17.154px;
  line-height: 26px;
  color: var(--mint);
  text-shadow: 0 0 10.7px rgba(78, 222, 163, 0.5);
}

.stat-card .v.cyan {
  color: var(--cyan-2);
  text-shadow: 0 0 10.7px rgba(0, 219, 231, 0.5);
}

.stat-card .v.sm {
  font-family: "Space Mono", monospace;
  font-size: 12.865px;
  line-height: 17px;
}

.stat-card .s {
  font-size: 9.649px;
  line-height: 14.474px;
  color: rgba(185, 202, 203, 0.7);
}

.stat-card .s.tiny {
  font-size: 8.577px;
  line-height: 10.7px;
}

.stat-shield {
  width: 17.154px;
  height: 21.442px;
  margin-bottom: 2px;
}

.stat-shield img {
  width: 17.154px;
  height: 21.442px;
}

.stat-ai-icon {
  position: absolute;
  top: 4.29px;
  right: 4.29px;
  width: 28.947px;
  height: 28.947px;
}

.stat-ai-icon img {
  width: 28.947px;
  height: 28.947px;
}

.stat-card.ai .k {
  color: var(--cyan-2);
}

/* ===== HOME ===== */
.home-nav {
  position: absolute;
  left: 0;
  top: 0;
  width: 280px;
  height: 1080px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 12, 32, 0.96) 0%,
    rgba(4, 8, 24, 0.98) 100%
  );
  border-right: 1.5px solid rgba(168, 85, 247, 0.45);
  box-shadow: 4px 0 25px rgba(0, 0, 0, 0.8), inset -1px 0 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  overflow: hidden;
  z-index: 5;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 0 0 auto;
  padding: 0;
  overflow: hidden;
}

.nav-list::-webkit-scrollbar {
  width: 3px;
}

.nav-list::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.6);
  border-radius: 2px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 42px;
  min-height: 42px;
  padding: 0 14px;
  border: none;
  border-left: 3px solid transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: transparent;
  color: #f1f5f9;
  font-family: "Space Grotesk", "JetBrains Mono", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 10px rgba(255, 255, 255, 0.3);
  transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
  -webkit-font-smoothing: antialiased;
}

.nav-item:hover {
  color: #ffffff;
  background: rgba(56, 189, 248, 0.15);
  border-left-color: #38bdf8;
  text-shadow: 0 0 14px rgba(56, 189, 248, 0.9), 0 1px 3px rgba(0, 0, 0, 1);
}

.nav-ico {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  color: #e2e8f0;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.9));
}

.nav-item.active {
  color: #d1fae5;
  border-color: rgba(16, 185, 129, 0.8);
  border-left: 3px solid #10b981;
  background: linear-gradient(
    90deg,
    rgba(16, 185, 129, 0.38) 0%,
    rgba(16, 185, 129, 0.18) 50%,
    transparent 100%
  );
  box-shadow:
    0 0 24px rgba(16, 185, 129, 0.45),
    inset 0 1px 0 rgba(209, 250, 229, 0.4),
    inset 0 -1px 0 rgba(209, 250, 229, 0.2);
  text-shadow: 0 0 14px rgba(110, 231, 183, 1), 0 1px 3px rgba(0, 0, 0, 0.95);
}

.nav-item.active .nav-ico {
  color: #a7f3d0;
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 1));
}

/* ===== SIDEBAR BACCARAT STATUS CARD ===== */
.sidebar-table-card {
  position: relative;
  margin: 0;
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, #180933 0%, #0c1538 50%, #050e24 100%);
  border: none;
  border-top: 1.5px solid #a855f7;
  box-shadow:
    0 -4px 25px rgba(168, 85, 247, 0.45),
    0 0 35px rgba(59, 130, 246, 0.3),
    inset 0 0 25px rgba(88, 28, 135, 0.5);
  border-radius: 0;
  overflow: hidden;
}

.st-header {
  background: linear-gradient(90deg, #4c1d95, #1e1b4b);
  color: #f3e8ff;
  font-family: "Source Code Pro", "Be Vietnam Pro", monospace;
  font-size: 11.5px;
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.9px;
  padding: 13px 6px;
  border-bottom: 1.5px solid rgba(168, 85, 247, 0.5);
  text-shadow: 0 0 10px rgba(243, 232, 255, 0.8), 0 1px 2px #000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.st-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8, 0 0 18px #a855f7;
  animation: spin 3s linear infinite;
}

.st-table-input-row {
  background: rgba(15, 23, 60, 0.95);
  padding: 16px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1.5px solid rgba(168, 85, 247, 0.4);
}

.st-prefix {
  font-family: "Source Code Pro", "Space Grotesk", monospace;
  font-size: 14px;
  font-weight: 900;
  color: #f3e8ff;
  letter-spacing: 1px;
  text-shadow: 0 0 12px rgba(192, 132, 252, 0.9), 0 1px 2px #000;
  white-space: nowrap;
}

.st-input {
  flex: 1;
  min-width: 0;
  height: 40px;
  background: #ffffff;
  border: 1.5px solid #a855f7;
  border-radius: 4px;
  color: #0b1b33;
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  outline: none;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.4), inset 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.st-input:focus {
  border-color: #d946ef;
  box-shadow: 0 0 16px rgba(217, 70, 239, 0.7);
}

.st-connect-btn {
  height: 40px;
  padding: 0 16px;
  font-family: "Space Grotesk", monospace;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.9px;
  background: linear-gradient(90deg, #7c3aed, #2563eb);
  color: #ffffff;
  border: 1.5px solid #c084fc;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.6);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}

.st-connect-btn:hover {
  background: linear-gradient(90deg, #9333ea, #3b82f6);
  box-shadow: 0 0 20px rgba(192, 132, 252, 0.85);
}

.st-connect-btn:active {
  transform: translateY(1px);
}

.st-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
  min-height: 110px;
  border-bottom: 1.5px solid rgba(168, 85, 247, 0.4);
}

.st-cell {
  padding: 14px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.st-left {
  border-right: 1.5px solid rgba(168, 85, 247, 0.4);
  background: rgba(36, 12, 65, 0.65);
}

.st-right {
  background: rgba(10, 25, 68, 0.65);
}

.st-label {
  font-size: 10px;
  font-weight: 800;
  color: #d8b4fe;
  text-align: center;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
}

.st-val {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.8px;
}

.st-pct {
  color: #38bdf8;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.85), 0 1px 2px #000;
}

.st-rate {
  color: #f472b6;
  text-shadow: 0 0 10px rgba(244, 114, 182, 0.85), 0 1px 2px #000;
}

.st-section {
  flex: 1.2;
  min-height: 140px;
  padding: 16px 10px;
  background: rgba(10, 16, 42, 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.st-subhead {
  font-size: 10px;
  font-weight: 800;
  color: #e9d5ff;
  letter-spacing: 0.8px;
  line-height: 1.45;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(216, 180, 254, 0.6), 0 1px 2px #000;
}

.st-range {
  font-family: "Source Code Pro", "Space Grotesk", monospace;
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1.5px;
  padding: 8px 14px;
  white-space: nowrap;
  border: 1.5px solid rgba(56, 189, 248, 0.5);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
  border-radius: 4px;
  text-shadow: 0 0 16px rgba(56, 189, 248, 0.9), 0 0 24px rgba(168, 85, 247, 0.8);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3), inset 0 0 15px rgba(168, 85, 247, 0.2);
}

.st-footer-status {
  padding: 10px 8px;
  background: rgba(4, 8, 24, 0.95);
  font-size: 9.5px;
  font-weight: 700;
  color: #c084fc;
  letter-spacing: 0.9px;
  text-align: center;
  border-top: 1px solid rgba(168, 85, 247, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-shadow: 0 0 8px rgba(192, 132, 252, 0.6);
}

.st-foot-icon {
  color: #38bdf8;
  filter: drop-shadow(0 0 6px #38bdf8);
}

.home-main {
  position: absolute;
  left: 280px;
  top: 28px;
  width: 1410px;
  height: 1024px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 6px;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 255, 229, 0.35) transparent;
}

.home-main::-webkit-scrollbar {
  width: 6px;
}

.home-main::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 229, 0.35);
  border-radius: 3px;
}

.home-side {
  position: absolute;
  right: 0;
  top: 28px;
  width: 210px;
  height: 1024px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.exclusive {
  font-family: "Source Code Pro", "Be Vietnam Pro", monospace;
  font-weight: 900;
  font-size: 22px;
  text-align: center;
  letter-spacing: 0.4px;
}

.welcome-row {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.welcome-row h1 {
  font-family: "Source Code Pro", "Be Vietnam Pro", monospace;
  font-weight: 900;
  font-size: 32px;
  text-align: center;
}

.logout-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 34px;
  padding: 0 16px;
  border: 1px solid var(--pink);
  background: rgba(255, 43, 214, 0.12);
  color: var(--pink-soft);
  font-size: 11px;
  letter-spacing: 1.2px;
  cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  box-shadow: 0 0 12px rgba(255, 43, 214, 0.25);
}

.logout-btn:hover {
  background: rgba(255, 43, 214, 0.28);
  box-shadow: 0 0 18px rgba(255, 43, 214, 0.5);
}

.msg-box {
  width: 773px;
  min-height: 72px;
  margin: 0 auto;
  background: var(--navy);
  border: 2px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
}

.msg-box p {
  font-family: "Source Code Pro", "Be Vietnam Pro", monospace;
  font-weight: 700;
  font-size: 13.2px;
  line-height: 1.35;
  text-align: center;
  color: var(--cyan);
}

.section-title {
  font-family: "Source Code Pro", "Be Vietnam Pro", monospace;
  font-weight: 900;
  font-size: 28px;
  text-align: center;
}

.guide-row {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 14px;
  align-items: stretch;
}

.warn-box {
  position: relative;
  background: rgba(18, 8, 0, 0.72);
  border: 2px solid #f5c518;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 8px;
  text-align: center;
  box-shadow: 0 0 16px rgba(245, 197, 24, 0.25);
}

.warn-box::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(245, 197, 24, 0.5);
  pointer-events: none;
}

.warn-icons {
  display: flex;
  gap: 8px;
}

.warn-tri {
  width: 28px;
  height: 28px;
}

.warn-box h3 {
  font-family: "Source Code Pro", "Be Vietnam Pro", monospace;
  font-weight: 900;
  font-size: 11px;
  line-height: 1.25;
  color: #ffe38a;
}

.guide-list {
  position: relative;
  background: var(--panel-strong);
  border: 1px solid rgba(0, 255, 229, 0.45);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  backdrop-filter: blur(8px);
}

.guide-item {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  gap: 8px;
  align-items: center;
  min-height: 28px;
}

.guide-num {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #031018;
  background: var(--cyan);
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
}

.guide-item:nth-child(even) .guide-num {
  background: var(--pink);
  color: #1a0014;
}

.guide-item p {
  font-size: 12px;
  line-height: 1.3;
  color: rgba(230, 255, 252, 0.92);
}

.check {
  width: 20px;
  height: 20px;
  border: 1px solid var(--cyan);
  background: rgba(0, 255, 229, 0.08);
  color: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 13px;
  box-shadow: 0 0 8px rgba(0, 255, 229, 0.2);
}

.check.on {
  border-color: var(--pink);
  background: rgba(255, 43, 214, 0.22);
  color: var(--pink);
  box-shadow: 0 0 10px rgba(255, 43, 214, 0.45);
}

.panel {
  position: relative;
  flex: 0 0 auto;
  background: var(--panel-strong);
  border: 1px solid rgba(255, 43, 214, 0.35);
  padding: 14px 18px 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 24px rgba(255, 43, 214, 0.12), inset 0 0 40px rgba(0, 255, 229, 0.04);
}

.panel-title {
  font-family: "Source Code Pro", "Be Vietnam Pro", monospace;
  font-weight: 900;
  font-size: 18px;
  text-align: center;
  color: var(--pink-soft);
  text-shadow: 0 0 12px rgba(255, 43, 214, 0.55);
  margin-bottom: 18px;
  letter-spacing: 1px;
}

.condition-row {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.condition-label {
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid var(--pink);
  color: var(--pink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  background: rgba(255, 43, 214, 0.1);
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
}

.formula-grid {
  display: grid;
  grid-template-columns: 1fr 36px 1fr 36px 1fr 36px 1fr;
  gap: 8px;
  align-items: stretch;
}

.formula-grid-extended {
  grid-template-columns: 1fr 28px 1fr 28px 1fr 28px 1fr 28px 1fr;
}

.cell {
  min-height: 70px;
  border: 1px solid rgba(0, 255, 229, 0.4);
  background: rgba(0, 20, 70, 0.45);
  display: flex;
  flex-direction: column;
}

.cell .head {
  font-size: 10px;
  letter-spacing: 0.6px;
  color: var(--cyan);
  text-align: center;
  padding: 6px 4px 0;
}

.cell input,
.stepper-value {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--white);
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  text-align: center;
  width: 100%;
  min-height: 36px;
}

.op {
  display: grid;
  place-items: center;
  font-size: 22px;
  color: var(--pink);
  text-shadow: 0 0 10px rgba(255, 43, 214, 0.7);
  font-weight: 700;
}

.result-cell {
  border-color: var(--pink);
  background: rgba(255, 43, 214, 0.08);
  transition: all 0.2s ease;
}

.result-cell.calculating {
  border-color: #ff2bd6;
  background: rgba(255, 43, 214, 0.2);
  box-shadow: 0 0 25px rgba(255, 43, 214, 0.6), inset 0 0 15px rgba(0, 255, 229, 0.3);
  animation: resultPulse 0.15s ease-in-out infinite alternate;
}

@keyframes resultPulse {
  0% {
    border-color: #ff2bd6;
    box-shadow: 0 0 14px rgba(255, 43, 214, 0.5), inset 0 0 10px rgba(255, 43, 214, 0.2);
  }
  100% {
    border-color: #00ffe5;
    box-shadow: 0 0 28px rgba(0, 255, 229, 0.7), inset 0 0 18px rgba(0, 255, 229, 0.3);
  }
}

.result-cell .head {
  color: var(--pink-soft);
}

.result-out {
  flex: 1;
  display: grid;
  place-items: center;
  font-family: "Source Code Pro", "Be Vietnam Pro", monospace;
  font-weight: 900;
  font-size: 20px;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 255, 229, 0.5);
  transition: all 0.2s ease;
}

.result-out.calculating {
  font-size: 14px;
  letter-spacing: 1.5px;
  animation: textFlicker 0.12s infinite;
}

@keyframes textFlicker {
  0% { opacity: 0.3; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.04); }
  100% { opacity: 0.6; transform: scale(0.98); }
}

.result-out.revealed {
  animation: resultReveal 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes resultReveal {
  0% {
    transform: scale(0.3);
    filter: blur(6px) brightness(2);
    opacity: 0;
  }
  70% {
    transform: scale(1.2);
    filter: blur(0px) brightness(1.4);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
    opacity: 1;
  }
}

.stat-pills {
  display: flex;
  gap: 14px;
  flex: 1;
  justify-content: space-evenly;
}

.pill {
  flex: 1;
  max-width: 230px;
  min-height: 108px;
  border: 1.5px solid rgba(0, 255, 229, 0.55);
  background: rgba(0, 20, 70, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  box-shadow: 0 0 14px rgba(0, 255, 229, 0.12);
  border-radius: 4px;
}

.pill .k {
  font-size: 11px;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 0.8px;
  text-align: center;
  white-space: nowrap;
}

.pill input {
  width: 84px;
  height: 50px;
  background: rgba(255, 255, 255, 0.96);
  border: 1.5px solid #6b7280;
  border-radius: 4px;
  color: #0b1b33;
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -moz-appearance: textfield;
}

.pill input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 1px var(--pink), 0 0 14px rgba(255, 43, 214, 0.45);
}

.pill input::-webkit-outer-spin-button,
.pill input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.beads {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.bead-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

.bead-input {
  width: 84px;
  height: 50px;
  border-radius: 4px;
  border: 1.5px solid transparent;
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
  outline: none;
  transition: all 0.2s ease;
  -moz-appearance: textfield;
}

.bead-input::-webkit-outer-spin-button,
.bead-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.bead-input.cyan {
  background: #2ee6ff;
  color: #031525;
  border-color: #7df0ff;
  box-shadow: 0 0 14px rgba(46, 230, 255, 0.7);
}

.bead-input.cyan:focus {
  background: #ffffff;
  color: #031525;
  border-color: #00ffe5;
  box-shadow: 0 0 18px rgba(0, 255, 229, 0.95);
}

.bead-input.red {
  background: #ff2a6a;
  color: #ffffff;
  border-color: #ff7098;
  box-shadow: 0 0 14px rgba(255, 42, 106, 0.7);
}

.bead-input.red:focus {
  background: #ffffff;
  color: #031525;
  border-color: #ff2bd6;
  box-shadow: 0 0 18px rgba(255, 43, 214, 0.95);
}

.formula-display-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.formula-display {
  width: 100%;
  max-width: 920px;
  border: 1px solid rgba(0, 255, 229, 0.45);
  background: rgba(0, 20, 70, 0.5);
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.formula-display.calculating {
  border-color: rgba(255, 43, 214, 0.65);
  background: rgba(255, 43, 214, 0.08);
  animation: formulaPulse 0.18s ease-in-out infinite alternate;
}

.result-cell.flickering {
  animation: resultPulse 0.22s ease-in-out infinite alternate;
}

.formula-display.flickering {
  border-color: rgba(78, 222, 163, 0.75);
  box-shadow: 0 0 18px rgba(78, 222, 163, 0.35);
  animation: formulaPulse 0.22s ease-in-out infinite alternate;
}

.formula-tag {
  font-size: 11px;
  letter-spacing: 1.4px;
  color: var(--pink-soft);
  font-weight: 700;
}

.formula-text {
  font-family: "Source Code Pro", "JetBrains Mono", monospace;
  font-size: 15px;
  line-height: 1.5;
  color: var(--cyan);
  word-break: break-word;
}

@keyframes formulaPulse {
  0% {
    filter: brightness(0.85);
    box-shadow: 0 0 8px rgba(255, 43, 214, 0.25);
  }
  100% {
    filter: brightness(1.15);
    box-shadow: 0 0 20px rgba(0, 255, 229, 0.45);
  }
}

.result-out-wrap {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 36px;
}

.calc-spinner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(0, 255, 229, 0.2);
  border-top-color: var(--cyan);
  border-right-color: var(--pink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.cond2-result {
  min-width: 120px;
  min-height: 92px;
}

.other-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: stretch;
}

.dual-result-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 16px 0 18px;
}

.dual-result-section.flickering .result-table-card {
  animation: formulaPulse 0.22s ease-in-out infinite alternate;
}

.result-table-card {
  border: 1px solid rgba(78, 222, 163, 0.45);
  background: rgba(0, 20, 70, 0.55);
  padding: 12px 14px;
  text-align: center;
}

.result-table-card h4 {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--pink-soft);
  margin-bottom: 8px;
}

.result-table-formula {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  line-height: 1.5;
  color: var(--cyan);
  min-height: 34px;
  margin-bottom: 10px;
}

.result-table-val {
  font-family: "Source Code Pro", "Be Vietnam Pro", monospace;
  font-size: 28px;
  font-weight: 900;
  color: #7dffb8;
  text-shadow: 0 0 16px rgba(125, 255, 184, 0.75);
}

.rm-dual-tables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.rm-dual-tables.is-single {
  grid-template-columns: 1fr;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.rm-dual-tables.flickering .rm-table-card.is-active {
  animation: formulaPulse 0.22s ease-in-out infinite alternate;
}

.rm-table-card[hidden] {
  display: none !important;
}

.rm-table-card {
  border: 1.5px solid rgba(78, 222, 163, 0.55);
  background: rgba(0, 15, 55, 0.72);
  padding: 20px 18px;
  border-radius: 6px;
}

.rm-table-card h4 {
  font-size: 13px;
  letter-spacing: 1.2px;
  color: #f472b6;
  margin-bottom: 12px;
}

.rm-table-formula {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  line-height: 1.55;
  color: #cbd5e1;
  min-height: 40px;
  margin-bottom: 14px;
  text-align: center;
}

.rm-table-val {
  font-family: "Source Code Pro", "Be Vietnam Pro", monospace;
  font-size: 44px;
  font-weight: 900;
  color: #7dffb8;
  text-shadow: 0 0 22px rgba(125, 255, 184, 0.85);
}

.formula-bar {
  margin: 16px auto 18px;
  width: min(720px, 100%);
  min-height: 44px;
  border: 1px solid var(--cyan);
  background: rgba(0, 255, 229, 0.06);
  display: grid;
  place-items: center;
  font-family: "Source Code Pro", "Be Vietnam Pro", monospace;
  font-weight: 700;
  font-size: 13px;
  color: var(--cyan);
  letter-spacing: 0.4px;
}

.action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 18px;
}

.slot-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slot-input {
  width: 60px;
  height: 44px;
  background: rgba(0, 20, 70, 0.65);
  border: 1.5px solid var(--cyan);
  color: var(--cyan);
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  outline: none;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  box-shadow: 0 0 12px rgba(0, 255, 229, 0.25);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

.slot-input:focus {
  border-color: var(--pink);
  color: var(--pink-soft);
  background: rgba(255, 43, 214, 0.2);
  box-shadow: 0 0 18px rgba(255, 43, 214, 0.55);
}

.slot-btn {
  width: 48px;
  height: 40px;
  border: 1px solid var(--cyan);
  background: rgba(0, 255, 229, 0.08);
  color: var(--cyan);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.slot-btn:hover,
.slot-btn.active {
  border-color: var(--pink);
  color: var(--pink-soft);
  background: rgba(255, 43, 214, 0.18);
  box-shadow: 0 0 14px rgba(255, 43, 214, 0.4);
}

.btn-ghost,
.btn-primary {
  height: 44px;
  padding: 0 24px;
  cursor: pointer;
  letter-spacing: 1.4px;
  font-size: 12px;
  font-weight: 700;
}

.btn-ghost {
  border: 1px solid var(--cyan);
  background: rgba(0, 255, 229, 0.08);
  color: var(--cyan);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.btn-ghost:hover {
  background: rgba(0, 255, 229, 0.2);
  box-shadow: 0 0 14px rgba(0, 255, 229, 0.35);
}

.btn-primary {
  border: 1px solid var(--pink);
  background: linear-gradient(90deg, rgba(255, 43, 214, 0.2), rgba(0, 80, 255, 0.28));
  color: #ffe6fb;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  box-shadow: 0 0 18px rgba(255, 43, 214, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(90deg, rgba(255, 43, 214, 0.4), rgba(0, 180, 255, 0.35));
  box-shadow: 0 0 22px rgba(255, 43, 214, 0.55), 0 0 18px rgba(0, 255, 229, 0.25);
}

.table-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.table-row label {
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.8px;
  white-space: nowrap;
}

.table-row input {
  flex: 1;
  height: 36px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #6b7280;
  padding: 0 12px;
  color: #0b1b33;
  font-size: 14px;
  outline: none;
}

.table-row input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 1px var(--pink);
}

.rounds {
  display: flex;
  gap: 8px;
}

.round-chip {
  height: 36px;
  min-width: 72px;
  border: 1px solid rgba(0, 255, 229, 0.4);
  background: rgba(0, 255, 229, 0.08);
  color: var(--cyan);
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.6px;
}

.round-chip.banker {
  border-color: var(--pink);
  background: rgba(255, 43, 214, 0.22);
  color: var(--pink-soft);
}

.round-chip.player {
  border-color: var(--cyan);
  background: rgba(0, 255, 229, 0.22);
  color: var(--cyan);
}

.round-chip.tie {
  border-color: #f5c518;
  background: rgba(245, 197, 24, 0.18);
  color: #ffe38a;
}

.matrix-panel {
  position: relative;
  flex: 1;
  min-height: 0;
  background: rgba(0, 10, 36, 0.55);
  border: 1px solid rgba(0, 255, 229, 0.35);
  overflow: hidden;
  backdrop-filter: blur(6px);
}

.matrix-caption {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  z-index: 2;
  font-size: 9px;
  line-height: 1.3;
  color: rgba(0, 255, 229, 0.75);
  text-align: center;
}

#matrix {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hacker-card {
  height: 220px;
  position: relative;
  border: 1px solid rgba(0, 255, 229, 0.45);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(3, 8, 28, 0.95) 0%, rgba(2, 4, 18, 0.98) 100%);
  box-shadow: 0 0 18px rgba(0, 255, 229, 0.18), inset 0 0 30px rgba(0, 8, 30, 0.25);
  display: flex;
  flex-direction: column;
}

.hc-header {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  background: rgba(0, 20, 60, 0.9);
  border-bottom: 1px solid rgba(0, 255, 229, 0.35);
  flex-shrink: 0;
}

.hc-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 0.8px;
}

.hc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
  animation: pulse 1.2s infinite;
}

.hc-tag {
  font-size: 8px;
  font-weight: 900;
  color: #ff2bd6;
  background: rgba(255, 43, 214, 0.15);
  border: 1px solid rgba(255, 43, 214, 0.4);
  padding: 1px 5px;
  border-radius: 2px;
  letter-spacing: 0.8px;
}

.hc-body {
  flex: 1;
  min-height: 0;
  padding: 8px 8px 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  font-family: "JetBrains Mono", "Source Code Pro", monospace;
  font-size: 9.5px;
  line-height: 1.45;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 255, 229, 0.02) 0px,
    rgba(0, 255, 229, 0.02) 1px,
    transparent 1px,
    transparent 3px
  );
}

.hc-stream {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}

.hc-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: logFadeIn 0.2s ease-out;
  text-shadow: 0 0 8px rgba(0, 255, 229, 0.3);
  color: rgba(0, 255, 229, 0.85);
}

.hc-line.ok {
  color: #4edea3;
  text-shadow: 0 0 8px rgba(78, 222, 163, 0.5);
}

.hc-line.hot {
  color: #ff7ae8;
  text-shadow: 0 0 8px rgba(255, 122, 232, 0.5);
}

.hc-line.info {
  color: #38bdf8;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

.hc-line.warn {
  color: #f5c518;
  text-shadow: 0 0 8px rgba(245, 197, 24, 0.5);
}

.hc-line.hex {
  color: #c084fc;
  font-size: 8.5px;
  opacity: 0.85;
}

.hc-cursor {
  font-size: 11px;
  color: var(--cyan);
  font-weight: 900;
  animation: blinkCursor 0.6s infinite alternate;
  line-height: 1;
  margin-top: 2px;
}

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

@keyframes blinkCursor {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.connect-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(0, 4, 18, 0.72);
  backdrop-filter: blur(8px);
}

.connect-overlay[hidden] {
  display: none;
}

.connect-modal {
  position: relative;
  width: 520px;
  min-height: 340px;
  padding: 36px 32px 28px;
  background: rgba(0, 10, 42, 0.92);
  border: 1px solid var(--cyan);
  box-shadow: 0 0 40px rgba(0, 255, 229, 0.25), 0 0 80px rgba(255, 43, 214, 0.12);
  text-align: center;
  overflow: hidden;
}

.connect-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 255, 229, 0.04) 0,
    rgba(0, 255, 229, 0.04) 1px,
    transparent 1px,
    transparent 4px
  );
  pointer-events: none;
}

.connect-ring {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border: 2px solid rgba(0, 255, 229, 0.25);
  border-top-color: var(--cyan);
  border-right-color: var(--pink);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  box-shadow: 0 0 18px rgba(0, 255, 229, 0.35);
}

.connect-kicker {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--pink-soft);
  margin-bottom: 8px;
}

.connect-modal h4 {
  font-family: "Source Code Pro", "Be Vietnam Pro", monospace;
  font-size: 22px;
  font-weight: 900;
  color: var(--white);
  text-shadow: 0 0 12px rgba(0, 255, 229, 0.45);
}

.connect-table {
  margin-top: 6px;
  color: var(--cyan);
  font-size: 14px;
  letter-spacing: 1.5px;
}

.connect-bar {
  margin: 18px auto 8px;
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(0, 255, 229, 0.35);
  overflow: hidden;
}

.connect-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  box-shadow: 0 0 12px rgba(255, 43, 214, 0.6);
  transition: width 0.2s linear;
}

.connect-pct {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  color: var(--cyan);
  margin-bottom: 12px;
}

.connect-logs {
  list-style: none;
  text-align: left;
  min-height: 88px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(0, 255, 229, 0.85);
}

.connect-logs li.ok {
  color: var(--mint);
}

.connect-logs li.hot {
  color: var(--pink-soft);
}

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

/* ===== LARGE EXECUTE BUTTON ===== */
.btn-execute-large {
  width: 100%;
  height: 52px;
  margin-top: 10px;
  margin-bottom: 4px;
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #d946ef 0%, #7c3aed 50%, #2563eb 100%);
  border: 1.5px solid #f472b6;
  color: #ffffff;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  box-shadow: 0 0 25px rgba(217, 70, 239, 0.45), 0 0 40px rgba(37, 99, 235, 0.3);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-execute-large:hover {
  background: linear-gradient(90deg, #ec4899 0%, #8b5cf6 50%, #38bdf8 100%);
  box-shadow: 0 0 35px rgba(236, 72, 153, 0.65), 0 0 50px rgba(56, 189, 248, 0.45);
  transform: translateY(-1px);
}

.btn-execute-large:active {
  transform: translateY(1px);
}

/* ===== RESULT MODAL OVERLAY ===== */
.result-modal-overlay {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: rgba(0, 4, 18, 0.85);
  backdrop-filter: blur(10px);
}

.result-modal-overlay[hidden] {
  display: none;
}

.result-modal {
  position: relative;
  width: min(820px, 94vw);
  background: linear-gradient(180deg, #13072b 0%, #060e29 60%, #020617 100%);
  border: 2px solid #d946ef;
  box-shadow: 0 0 60px rgba(217, 70, 239, 0.5), 0 0 100px rgba(37, 99, 235, 0.3);
  padding: 36px 36px 28px;
  text-align: center;
  overflow: hidden;
}

.rm-kicker {
  font-size: 12px;
  letter-spacing: 2.5px;
  color: #38bdf8;
  margin-bottom: 10px;
  font-weight: 700;
}

.rm-title {
  font-family: "Source Code Pro", "Be Vietnam Pro", monospace;
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 16px rgba(217, 70, 239, 0.85);
  margin-bottom: 22px;
}

.rm-calc-box {
  background: rgba(0, 15, 55, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 4px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  text-align: left;
}

.rm-calc-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: #cbd5e1;
  font-family: "JetBrains Mono", monospace;
}

.rm-calc-line.highlight {
  padding-top: 8px;
  border-top: 1px dashed rgba(217, 70, 239, 0.4);
  color: #f472b6;
  font-weight: 800;
  font-size: 13.5px;
}

.calc-tag {
  color: #94a3b8;
}

.calc-val {
  color: #38bdf8;
  font-weight: 700;
}

.rm-calc-line.highlight .calc-val {
  color: #f472b6;
  text-shadow: 0 0 8px rgba(244, 114, 182, 0.6);
}

.rm-verdict {
  padding: 14px 18px;
  border-radius: 4px;
  margin-bottom: 20px;
  border: 2px solid;
  transition: all 0.3s ease;
}

.rm-verdict.banker {
  background: rgba(217, 70, 239, 0.15);
  border-color: #d946ef;
  box-shadow: 0 0 30px rgba(217, 70, 239, 0.35);
}

.rm-verdict.player {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.35);
}

.rm-verdict.latent {
  background: rgba(78, 222, 163, 0.12);
  border-color: #4edea3;
  box-shadow: 0 0 30px rgba(78, 222, 163, 0.35);
}

.rm-verdict-name {
  font-family: "Source Code Pro", "Space Grotesk", monospace;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 2px;
}

.rm-verdict.banker .rm-verdict-name {
  color: #ff7ae8;
  text-shadow: 0 0 18px rgba(255, 122, 232, 0.9);
}

.rm-verdict.player .rm-verdict-name {
  color: #00ffe5;
  text-shadow: 0 0 18px rgba(0, 255, 229, 0.9);
}

.rm-verdict.latent .rm-verdict-name {
  color: #7dffb8;
  text-shadow: 0 0 18px rgba(125, 255, 184, 0.9);
}

.rm-verdict-sub {
  font-size: 11px;
  color: #cbd5e1;
  letter-spacing: 1px;
  margin-top: 4px;
}

.rm-btn {
  width: 100%;
  height: 44px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

@media (max-width: 1280px) {
  .exclusive {
    font-size: 18px;
  }
}

