/* ===================================================
   TOOLVIP12 - CYBER SIGNAL DASHBOARD STYLES
   =================================================== */

:root {
  --bg-dark: #050b07;
  --bg-card: rgba(8, 20, 14, 0.88);
  --neon-green: #00ff7f;
  --neon-green-glow: rgba(0, 255, 127, 0.45);
  --neon-gold: #ffc400;
  --neon-gold-border: #f0a500;
  --neon-cyan: #00f0ff;
  --neon-red: #ff334b;
  --font-display: 'Orbitron', 'Rajdhani', sans-serif;
  --font-data: 'Rajdhani', sans-serif;
  --font-number: 'Teko', 'Orbitron', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-dark);
  color: #ffffff;
  font-family: var(--font-data);
  overflow-x: hidden;
  position: relative;
}

/* Background Matrix Canvas */
#matrixCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  opacity: 0.38;
  pointer-events: none;
}

/* Floating Actions (Sound toggle, Admin link) */
.top-floating-actions {
  position: fixed;
  top: 10px;
  right: 12px;
  z-index: 100;
  display: flex;
  gap: 8px;
}

.float-btn {
  background: rgba(10, 28, 18, 0.85);
  border: 1px solid var(--neon-green);
  color: #fff;
  border-radius: 20px;
  padding: 5px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  text-decoration: none;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 10px rgba(0, 255, 127, 0.2);
  transition: all 0.2s ease;
}

.float-btn:hover {
  background: rgba(0, 255, 127, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 0 15px rgba(0, 255, 127, 0.5);
}

.admin-badge {
  background: #ffaa00;
  color: #000;
  font-weight: 700;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
}

/* App Viewport Container - Mobile Phone Frame Look */
.app-viewport {
  position: relative;
  z-index: 10;
  max-width: 440px;
  min-height: 100vh;
  margin: 0 auto;
  background: radial-gradient(circle at center, rgba(3, 26, 15, 0.92) 0%, rgba(2, 10, 6, 0.98) 100%);
  border-left: 1px solid rgba(0, 255, 127, 0.2);
  border-right: 1px solid rgba(0, 255, 127, 0.2);
  box-shadow: 0 0 40px rgba(0, 255, 127, 0.15), 0 0 80px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
}

/* ================= LOGIN OVERLAY ================= */
.login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 5, 2, 0.94);
  backdrop-filter: blur(12px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.login-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: linear-gradient(180deg, rgba(8, 30, 18, 0.95) 0%, rgba(3, 14, 8, 0.98) 100%);
  border: 1.5px solid var(--neon-green);
  border-radius: 18px;
  padding: 26px 22px;
  box-shadow: 0 0 30px rgba(0, 255, 127, 0.3), inset 0 0 15px rgba(0, 255, 127, 0.15);
  animation: modalPop 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes modalPop {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.login-glitch-header {
  text-align: center;
  margin-bottom: 20px;
}

.glitch-logo {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 0 10px var(--neon-green), 0 0 20px var(--neon-green);
}

.system-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  background: rgba(0, 255, 127, 0.15);
  color: var(--neon-green);
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 127, 0.3);
  margin-top: 6px;
}

.blinking-dot {
  width: 7px;
  height: 7px;
  background: var(--neon-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--neon-green);
  animation: blink 1.2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.login-desc {
  font-size: 14px;
  color: #b0d0c0;
  line-height: 1.45;
  text-align: center;
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--neon-gold);
  margin-bottom: 6px;
}

.input-wrapper {
  display: flex;
  align-items: center;
  background: rgba(0, 10, 5, 0.8);
  border: 1.5px solid rgba(0, 255, 127, 0.4);
  border-radius: 10px;
  padding: 10px 14px;
  transition: all 0.2s ease;
}

.input-wrapper:focus-within {
  border-color: var(--neon-green);
  box-shadow: 0 0 15px rgba(0, 255, 127, 0.4);
}

.key-icon {
  margin-right: 10px;
  font-size: 16px;
}

.input-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.input-wrapper input::placeholder {
  color: #4c6b58;
  font-family: var(--font-data);
  letter-spacing: 0;
}

.login-error-msg {
  color: var(--neon-red);
  font-size: 12px;
  min-height: 18px;
  margin-top: 6px;
  font-weight: 600;
  text-align: center;
}

.cyber-btn-primary {
  width: 100%;
  margin-top: 14px;
  padding: 14px;
  background: linear-gradient(90deg, #00c853 0%, #00e676 50%, #69f0ae 100%);
  color: #022010;
  border: none;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 230, 118, 0.4);
  transition: all 0.2s ease;
}

.cyber-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 230, 118, 0.6);
}

.demo-token-hint {
  margin-top: 16px;
  padding: 10px;
  background: rgba(0, 255, 127, 0.08);
  border: 1px dashed rgba(0, 255, 127, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #9cd6b2;
}

.demo-token-hint code {
  font-family: var(--font-display);
  color: var(--neon-gold);
  font-weight: 700;
  font-size: 13px;
}

.btn-copy-chip {
  background: var(--neon-gold);
  color: #000;
  border: none;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 5px;
  cursor: pointer;
}

.login-footer-actions {
  margin-top: 18px;
  text-align: center;
}

.sub-link {
  color: #88c2a0;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}

.sub-link:hover {
  color: var(--neon-green);
}

/* ================= MAIN TOOL UI ================= */
.tool-container {
  display: flex;
  flex-direction: column;
  padding: 14px 14px 28px 14px;
  min-height: 100vh;
  position: relative;
  z-index: 2;
}

.tool-container.hidden {
  display: none !important;
}



/* Header */
.tool-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 255, 127, 0.15);
}

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

.app-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.badge-member {
  background: linear-gradient(135deg, #e53935 0%, #d32f2f 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 12px;
  border: 1px solid #ff8a80;
  box-shadow: 0 0 8px rgba(229, 57, 53, 0.6);
  letter-spacing: 0.5px;
}

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

.token-counter-badge {
  background: rgba(3, 30, 20, 0.85);
  border: 1px solid rgba(0, 255, 127, 0.4);
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 13px;
  display: flex;
  gap: 5px;
}

.token-lbl {
  color: #a8d5be;
}

.token-val {
  color: #ffffff;
  font-weight: 800;
  font-family: var(--font-display);
}

.btn-logout {
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid #444;
  color: #ccc;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-logout:hover {
  background: #d32f2f;
  color: #fff;
  border-color: #f44336;
}

/* Game Title Section */
.game-title-section {
  margin: 12px 0 10px 0;
}

.title-frame {
  border: 1.5px solid var(--neon-green);
  border-radius: 10px;
  padding: 8px 12px;
  background: rgba(0, 25, 12, 0.6);
  box-shadow: 0 0 12px rgba(0, 255, 127, 0.2), inset 0 0 8px rgba(0, 255, 127, 0.1);
  text-align: center;
}

.game-main-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: #ffe600;
  letter-spacing: 1px;
  text-shadow: 0 0 8px #ffaa00, 0 0 15px rgba(255, 170, 0, 0.6);
}

/* Visual Hero Section: Gauge - Robot - SuperWin */
.visual-hero-section {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  align-items: center;
  justify-content: center;
  margin: 8px 0 14px 0;
  gap: 6px;
}

/* Circular Gauge */
.gauge-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.circular-progress {
  position: relative;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(0, 255, 127, 0.12) 0%, rgba(0, 0, 0, 0.4) 80%);
  box-shadow: 0 0 18px rgba(0, 255, 127, 0.35);
}

.gauge-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.circle-bg {
  fill: none;
  stroke: rgba(0, 255, 127, 0.15);
  stroke-width: 7;
}

.circle-bar {
  fill: none;
  stroke: var(--neon-green);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 264;
  transition: stroke-dashoffset 0.8s ease;
  filter: drop-shadow(0 0 6px var(--neon-green));
}

.gauge-inner-glow {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}

.win-rate-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--neon-green);
  text-shadow: 0 0 10px var(--neon-green), 0 0 20px rgba(0, 255, 127, 0.8);
}

.gauge-label {
  font-size: 10px;
  font-weight: 700;
  color: #79c59a;
  margin-top: 4px;
  letter-spacing: 0.5px;
}

/* 3D Robot Hero */
.robot-hero-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.robot-glow-aura {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 30, 60, 0.35) 0%, transparent 70%);
  filter: blur(12px);
  z-index: 1;
}

.robot-avatar {
  width: 115px;
  height: 115px;
  object-fit: cover;
  border-radius: 16px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 8px 16px rgba(255, 0, 50, 0.45));
  animation: robotHover 3.5s ease-in-out infinite alternate;
}

@keyframes robotHover {
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(-7px) scale(1.03); }
}

.robot-shadow {
  width: 60px;
  height: 8px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  margin-top: 4px;
  filter: blur(3px);
  animation: shadowPulse 3.5s ease-in-out infinite alternate;
}

@keyframes shadowPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(0.8); opacity: 0.3; }
}

/* Super Win Badge */
.superwin-hero-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.superwin-box {
  width: 88px;
  height: 72px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid #ff4444;
  box-shadow: 0 0 16px rgba(255, 60, 60, 0.5);
  animation: superwinPulse 2.5s infinite alternate;
}

@keyframes superwinPulse {
  0% { box-shadow: 0 0 12px rgba(255, 60, 60, 0.4); transform: scale(0.98); }
  100% { box-shadow: 0 0 20px rgba(255, 60, 60, 0.8); transform: scale(1.02); }
}

.superwin-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Technical Stats Box (Green Frame) */
.game-stats-box {
  display: flex;
  background: rgba(4, 20, 12, 0.75);
  border: 1.5px solid var(--neon-green);
  border-radius: 12px;
  padding: 10px;
  gap: 12px;
  box-shadow: 0 0 15px rgba(0, 255, 127, 0.18), inset 0 0 12px rgba(0, 255, 127, 0.08);
  margin-bottom: 12px;
}

.game-thumbnail-col {
  flex: 0 0 95px;
  max-width: 95px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-wrapper {
  width: 95px;
  height: 78px;
  min-width: 95px;
  max-width: 95px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--neon-gold);
  box-shadow: 0 0 10px rgba(255, 200, 0, 0.3);
}

.slot-thumb,
.game-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-specs-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.spec-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.spec-name {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: #9cd6b4;
  letter-spacing: 0.5px;
  min-width: 65px;
}

.spec-value {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.rng-text {
  color: var(--neon-green);
  text-shadow: 0 0 8px var(--neon-green);
}

.latency-text {
  color: var(--neon-cyan);
}

.volatility-text {
  color: #ff334b;
  text-shadow: 0 0 8px rgba(255, 51, 75, 0.6);
}

.analysis-status-pill {
  margin-top: 5px;
  border: 1px solid var(--neon-gold);
  background: rgba(255, 200, 0, 0.1);
  border-radius: 6px;
  padding: 3px 6px;
  text-align: center;
}

.analysis-status-pill span {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: #ffd700;
  letter-spacing: 0.5px;
}

/* Strategy Cards Section (Golden Borders) */
.strategy-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 14px;
}

.strategy-card {
  background: linear-gradient(180deg, rgba(20, 22, 10, 0.85) 0%, rgba(10, 12, 5, 0.95) 100%);
  border: 1.5px solid var(--neon-gold-border);
  border-radius: 10px;
  padding: 8px 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(240, 165, 0, 0.18), inset 0 0 6px rgba(255, 200, 0, 0.08);
  transition: transform 0.2s ease;
}

.strategy-card:hover {
  transform: translateY(-1px);
  border-color: #ffd000;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.35);
}

.strategy-header {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: #ffcc00;
  letter-spacing: 1px;
  margin-bottom: 2px;
  text-shadow: 0 0 6px rgba(255, 204, 0, 0.5);
}

.strategy-content {
  font-family: var(--font-data);
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

/* VIP Highlight Card */
.vip-highlight-card {
  border-color: #ffb700;
  background: linear-gradient(180deg, rgba(35, 26, 2, 0.9) 0%, rgba(15, 10, 0, 0.98) 100%);
  box-shadow: 0 0 14px rgba(255, 183, 0, 0.3);
}

.vip-title {
  color: #ffe066;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.crown-icon {
  font-size: 13px;
}

.vip-content {
  color: #fff4bf;
  font-size: 14px;
  font-weight: 800;
  font-family: var(--font-display);
}

/* Bottom Actions Section */
.bottom-actions-section {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: auto;
}

/* Bright Green Neon Countdown Bar */
.countdown-bar {
  background: linear-gradient(90deg, #00c853 0%, #00e676 50%, #00c853 100%);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 0 25px rgba(0, 230, 118, 0.7), inset 0 0 10px rgba(255, 255, 255, 0.4);
  animation: glowPulse 2s infinite alternate;
}

@keyframes glowPulse {
  0% { box-shadow: 0 0 18px rgba(0, 230, 118, 0.5); }
  100% { box-shadow: 0 0 32px rgba(0, 230, 118, 0.9); }
}

.countdown-clock-icon {
  font-size: 18px;
}

.countdown-time {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Stop Hack Button */
.btn-stop-hack {
  background: linear-gradient(180deg, #2b0b0b 0%, #170404 100%);
  border: 1.5px solid #701c1c;
  color: #e09999;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 11px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 0 12px rgba(160, 20, 20, 0.3);
  transition: all 0.2s ease;
}

.btn-stop-hack:hover {
  background: linear-gradient(180deg, #420f0f 0%, #200505 100%);
  color: #ffffff;
  border-color: #ff334b;
  box-shadow: 0 0 20px rgba(255, 51, 75, 0.5);
}

.btn-stop-hack.btn-active-hack {
  background: linear-gradient(180deg, #093319 0%, #031c0d 100%);
  border-color: var(--neon-green);
  color: #a3ffcb;
  box-shadow: 0 0 16px rgba(0, 255, 127, 0.4);
}

/* Live Toast Notification */
.sync-toast {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 25, 15, 0.95);
  border: 1px solid var(--neon-green);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 20px rgba(0, 255, 127, 0.6);
  z-index: 100;
  transition: all 0.3s ease;
}

.sync-toast.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-10px);
}

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

/* ===================================================
   UTILITY & OVERLAYS (AUTH, INSUFFICIENT TOKEN, CAPITAL)
   =================================================== */

.hidden {
  display: none !important;
}

/* Shared Login/Overlay Viewport */
.login-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100%;
  background: rgba(3, 12, 7, 0.94);
  backdrop-filter: blur(12px);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: linear-gradient(180deg, rgba(8, 26, 17, 0.95) 0%, rgba(4, 14, 9, 0.98) 100%);
  border: 1.5px solid rgba(0, 255, 127, 0.4);
  box-shadow: 0 0 35px rgba(0, 255, 127, 0.25), inset 0 0 20px rgba(0, 255, 127, 0.05);
  border-radius: 18px;
  padding: 24px 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #00ff7f, #00f0ff, transparent);
}

.login-glitch-header {
  text-align: center;
  margin-bottom: 18px;
}

.glitch-logo {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 4px;
  color: #00ff7f;
  text-shadow: 0 0 16px rgba(0, 255, 127, 0.8), 0 0 30px rgba(0, 255, 127, 0.4);
}

.system-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 255, 127, 0.1);
  border: 1px solid rgba(0, 255, 127, 0.3);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  color: #a3ffcb;
  letter-spacing: 0.5px;
  margin-top: 6px;
}

.blinking-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00ff7f;
  box-shadow: 0 0 6px #00ff7f;
  animation: blink 1.2s infinite ease-in-out;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* Auth Tabs */
.auth-tabs-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(0, 15, 8, 0.8);
  border: 1px solid rgba(0, 255, 127, 0.2);
  border-radius: 10px;
  padding: 3px;
  gap: 4px;
  margin-bottom: 18px;
}

.auth-tab {
  background: transparent;
  border: none;
  color: #7aa58d;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  padding: 9px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
}

.auth-tab:hover {
  color: #fff;
}

.auth-tab.active {
  background: linear-gradient(135deg, rgba(0, 255, 127, 0.25) 0%, rgba(0, 200, 100, 0.15) 100%);
  color: #00ff7f;
  border: 1px solid rgba(0, 255, 127, 0.4);
  box-shadow: 0 0 12px rgba(0, 255, 127, 0.2);
}

.login-desc {
  font-size: 13px;
  color: #8dafa0;
  line-height: 1.4;
  margin-bottom: 16px;
  text-align: center;
}

/* Input Fields */
.input-group {
  margin-bottom: 14px;
  text-align: left;
}

.input-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: #a3ffcb;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.input-wrapper {
  display: flex;
  align-items: center;
  background: rgba(2, 10, 5, 0.9);
  border: 1.5px solid rgba(0, 255, 127, 0.3);
  border-radius: 10px;
  padding: 0 12px;
  transition: all 0.2s ease;
}

.input-wrapper:focus-within {
  border-color: #00ff7f;
  box-shadow: 0 0 15px rgba(0, 255, 127, 0.4);
}

.key-icon {
  font-size: 15px;
  margin-right: 8px;
  opacity: 0.8;
}

.input-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-data);
  font-size: 15px;
  font-weight: 600;
  padding: 11px 0;
}

.input-wrapper input::placeholder {
  color: #4b6e5b;
  font-weight: 500;
}

.login-error-msg {
  color: #ff4757;
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
  min-height: 16px;
}

/* Cyber Buttons */
.cyber-btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #00ff7f 0%, #00b359 100%);
  border: none;
  color: #021a0d;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 13px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 255, 127, 0.5);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.cyber-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(0, 255, 127, 0.8);
  background: linear-gradient(135deg, #1aff8c 0%, #00cc66 100%);
}

.cyber-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.cyber-btn-secondary {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #d1d8e0;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 11px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cyber-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.demo-token-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 12px;
  color: #729b86;
}

.demo-token-hint code {
  background: rgba(0, 255, 127, 0.15);
  color: #00ff7f;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 800;
  font-family: var(--font-display);
  border: 1px solid rgba(0, 255, 127, 0.3);
}

.btn-copy-chip {
  background: rgba(0, 255, 127, 0.2);
  border: 1px solid var(--neon-green);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy-chip:hover {
  background: var(--neon-green);
  color: #000;
}

/* ===================================================
   WARNING VIEW: SỐ DƯ TOKEN KHÔNG ĐỦ (< 2 TOKEN)
   =================================================== */

.warning-card {
  border-color: rgba(255, 170, 0, 0.5);
  box-shadow: 0 0 35px rgba(255, 170, 0, 0.2), inset 0 0 20px rgba(255, 170, 0, 0.05);
  text-align: center;
}

.warning-card::before {
  background: linear-gradient(90deg, transparent, #ffaa00, #ff4757, transparent);
}

.warning-icon-badge {
  font-size: 46px;
  margin-bottom: 8px;
  animation: bounceWarning 2s infinite ease-in-out;
}

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

.warning-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: #ffaa00;
  letter-spacing: 1px;
  text-shadow: 0 0 15px rgba(255, 170, 0, 0.6);
  margin-bottom: 14px;
}

.warning-balance-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 170, 0, 0.1);
  border: 1px dashed rgba(255, 170, 0, 0.4);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  color: #ffcc66;
  margin-bottom: 14px;
}

.warning-balance-val {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: #ff4757;
}

.warning-text {
  font-size: 13.5px;
  color: #cfdcd5;
  line-height: 1.5;
  margin-bottom: 18px;
}

.warning-text strong {
  color: #ffc400;
}

.realtime-wait-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0, 255, 127, 0.08);
  border: 1px solid rgba(0, 255, 127, 0.25);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 11.5px;
  color: #a3ffcb;
  margin-bottom: 20px;
  text-align: left;
}

.pulse-green-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: #00ff7f;
  box-shadow: 0 0 8px #00ff7f;
  animation: pulseDot 1s infinite alternate;
}

@keyframes pulseDot {
  from { transform: scale(0.8); opacity: 0.5; }
  to { transform: scale(1.3); opacity: 1; }
}

/* User Token Copy Box */
.user-token-copy-box {
  background: rgba(0, 18, 10, 0.9);
  border: 1.5px dashed rgba(0, 255, 127, 0.5);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 16px;
  text-align: left;
}

.token-box-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: #ffc400;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.token-display-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 255, 127, 0.3);
  border-radius: 8px;
  padding: 5px 8px;
}

.user-token-code {
  flex: 1;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  color: #00ff7f;
  letter-spacing: 1px;
  user-select: all;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-copy-token {
  background: linear-gradient(135deg, rgba(0, 255, 127, 0.3) 0%, rgba(0, 200, 100, 0.2) 100%);
  border: 1px solid var(--neon-green);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-copy-token:hover {
  background: var(--neon-green);
  color: #000000;
  box-shadow: 0 0 12px rgba(0, 255, 127, 0.6);
}

.btn-copy-token.copied {
  background: #ffc400;
  color: #000;
  border-color: #ffc400;
}

.token-copy-hint {
  font-size: 11px;
  color: #8dafa0;
  margin-top: 5px;
  font-style: italic;
}

/* Contact Admin Buttons */
.cyber-btn-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.2s ease;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.telegram-btn {
  background: linear-gradient(135deg, #0088cc 0%, #00b4d8 100%);
  border: 1px solid #00c0f0;
}

.telegram-btn:hover {
  background: linear-gradient(135deg, #0099e6 0%, #1ad1f5 100%);
  box-shadow: 0 0 20px rgba(0, 180, 216, 0.6);
  transform: translateY(-1px);
  color: #fff;
}

.zalo-btn {
  background: linear-gradient(135deg, #0056cc 0%, #0077ff 100%);
  border: 1px solid #3399ff;
}

.zalo-btn:hover {
  background: linear-gradient(135deg, #0066ee 0%, #1a8cff 100%);
  box-shadow: 0 0 20px rgba(0, 119, 255, 0.6);
  transform: translateY(-1px);
  color: #fff;
}

.contact-icon {
  font-size: 16px;
}

.warning-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===================================================
   CAPITAL INPUT VIEW: THIẾT LẬP MỨC VỐN PHÂN TÍCH
   =================================================== */

.capital-card {
  border-color: rgba(0, 255, 127, 0.4);
}

.capital-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 255, 127, 0.2);
  margin-bottom: 16px;
}

.user-greeting {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 255, 127, 0.15);
  border: 1px solid var(--neon-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.hello-text {
  font-size: 11px;
  color: #729b86;
  display: block;
}

.hello-name {
  font-family: var(--font-display);
  font-size: 14px;
  color: #00ff7f;
}

.user-token-pill {
  background: rgba(0, 255, 127, 0.12);
  border: 1px solid rgba(0, 255, 127, 0.35);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: #a3ffcb;
  display: flex;
  align-items: center;
  gap: 5px;
}

.user-token-pill strong {
  font-family: var(--font-display);
  font-size: 15px;
  color: #00ff7f;
}

.capital-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: #ffc400;
  letter-spacing: 0.5px;
  text-shadow: 0 0 12px rgba(255, 196, 0, 0.5);
  margin-bottom: 8px;
  text-align: center;
}

.capital-desc {
  font-size: 12.5px;
  color: #9abfb0;
  line-height: 1.45;
  text-align: center;
  margin-bottom: 18px;
}

.capital-input-group {
  margin-bottom: 14px;
}

.capital-input-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: #00ff7f;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.capital-input-wrapper {
  display: flex;
  align-items: center;
  background: rgba(1, 14, 7, 0.95);
  border: 2px solid var(--neon-green);
  border-radius: 12px;
  padding: 4px 14px;
  box-shadow: 0 0 20px rgba(0, 255, 127, 0.25);
}

.currency-tag {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: #ffc400;
  margin-right: 8px;
}

.capital-input-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  padding: 8px 0;
  letter-spacing: 1px;
}

.k-unit {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: #00ff7f;
  margin-left: 6px;
}

.capital-hint-text {
  font-size: 11.5px;
  color: #8dafa0;
  margin-top: 6px;
}

.capital-hint-text strong {
  color: #ffc400;
}

/* Quick Capital Chips */
.quick-capital-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.cap-chip {
  background: rgba(0, 255, 127, 0.08);
  border: 1px solid rgba(0, 255, 127, 0.25);
  color: #a3ffcb;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  padding: 8px 4px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cap-chip:hover {
  background: rgba(0, 255, 127, 0.2);
  border-color: #00ff7f;
  color: #fff;
}

.cap-chip.active {
  background: linear-gradient(135deg, rgba(0, 255, 127, 0.3) 0%, rgba(0, 200, 100, 0.2) 100%);
  border-color: #00ff7f;
  color: #00ff7f;
  box-shadow: 0 0 10px rgba(0, 255, 127, 0.3);
}

.fee-notice-banner {
  background: rgba(255, 196, 0, 0.1);
  border: 1px solid rgba(255, 196, 0, 0.3);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: #ffd866;
  text-align: center;
  margin-bottom: 14px;
}

.fee-notice-banner strong {
  color: #ffaa00;
  font-family: var(--font-display);
}

.btn-analyze-now {
  font-size: 14px;
  letter-spacing: 1.2px;
  padding: 14px;
}

.btn-link-logout {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  color: #729b86;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  margin-top: 14px;
  text-align: center;
  transition: color 0.2s;
}

.btn-link-logout:hover {
  color: #ff4757;
}

/* ===================================================
   ALGORITHM ANALYSIS TERMINAL OVERLAY
   =================================================== */
.terminal-card {
  max-width: 440px;
  background: linear-gradient(180deg, rgba(3, 18, 10, 0.98) 0%, rgba(1, 9, 5, 0.99) 100%);
  border: 1.5px solid var(--neon-green);
  box-shadow: 0 0 35px rgba(0, 255, 127, 0.35), inset 0 0 20px rgba(0, 255, 127, 0.12);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: modalPop 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 255, 127, 0.22);
}

.terminal-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ff4757; box-shadow: 0 0 6px rgba(255, 71, 87, 0.6); }
.dot-yellow { background: #ffa502; box-shadow: 0 0 6px rgba(255, 165, 2, 0.6); }
.dot-green { background: #2ed573; box-shadow: 0 0 6px rgba(46, 213, 115, 0.6); }

.terminal-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.term-prompt-tag {
  color: var(--neon-green);
  font-family: 'Consolas', monospace;
  font-weight: 800;
}

.term-skip-btn {
  background: rgba(0, 255, 127, 0.12);
  border: 1px solid rgba(0, 255, 127, 0.35);
  color: #a3ffcb;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.term-skip-btn:hover {
  background: rgba(0, 255, 127, 0.28);
  color: #fff;
  border-color: var(--neon-green);
  box-shadow: 0 0 10px rgba(0, 255, 127, 0.4);
}

.terminal-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 255, 127, 0.06);
  border: 1px solid rgba(0, 255, 127, 0.18);
  padding: 7px 12px;
  border-radius: 8px;
}

.term-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 800;
  color: #ffc400;
  letter-spacing: 0.5px;
}

.term-status-badge.status-complete {
  color: var(--neon-green);
}

.term-pulse-dot {
  width: 8px;
  height: 8px;
  background: #ffc400;
  border-radius: 50%;
  box-shadow: 0 0 8px #ffc400;
  animation: blink 0.8s infinite alternate;
}

.status-complete .term-pulse-dot {
  background: var(--neon-green);
  box-shadow: 0 0 10px var(--neon-green);
  animation: none;
}

.term-target-capital {
  font-family: var(--font-display);
  font-size: 11.5px;
  color: #92bfa9;
}

.term-target-capital strong {
  color: #00ff7f;
}

.terminal-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.terminal-progress-track {
  width: 100%;
  height: 7px;
  background: rgba(0, 255, 127, 0.12);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 127, 0.25);
}

.terminal-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00f0ff 0%, #00ff7f 100%);
  box-shadow: 0 0 12px rgba(0, 255, 127, 0.6);
  transition: width 0.22s ease-out;
}

.terminal-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Consolas', monospace;
  font-size: 11px;
  color: #8dafa0;
}

.terminal-progress-meta span:last-child {
  color: #00ff7f;
  font-weight: 700;
  font-family: var(--font-display);
}

.terminal-screen-container {
  position: relative;
  background: #010905;
  border: 1px solid rgba(0, 255, 127, 0.35);
  border-radius: 10px;
  height: 220px;
  padding: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 255, 127, 0.1);
  display: flex;
  flex-direction: column;
}

.terminal-scanlines {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.65;
}

.terminal-logs-content {
  flex: 1;
  overflow-y: auto;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 11.5px;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-right: 4px;
  z-index: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 255, 127, 0.3) transparent;
}

.terminal-logs-content::-webkit-scrollbar {
  width: 4px;
}
.terminal-logs-content::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 127, 0.3);
  border-radius: 2px;
}

.term-log-line {
  animation: termLineIn 0.2s ease-out;
  word-break: break-word;
}

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

.term-time {
  color: #648a78;
  margin-right: 4px;
}

.c-tag {
  color: #00f0ff;
  font-weight: 700;
}

.c-gold {
  color: #ffc400;
  font-weight: 700;
}

.c-cyan {
  color: #00f0ff;
}

.c-green {
  color: #00ff7f;
}

.c-ok {
  color: #00ff7f;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(0, 255, 127, 0.7);
}

.terminal-live-cursor {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 6px;
  margin-top: 4px;
  border-top: 1px dashed rgba(0, 255, 127, 0.25);
  font-family: 'Consolas', monospace;
  font-size: 11px;
  color: #a3ffcb;
  z-index: 1;
}

.term-cursor-prefix {
  color: var(--neon-green);
  font-weight: 800;
}

.term-live-text {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #c9ffe2;
}

.term-blinking-cursor {
  color: var(--neon-green);
  animation: cursorBlink 0.7s infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.terminal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.footer-tag {
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 700;
  background: rgba(0, 255, 127, 0.08);
  border: 1px solid rgba(0, 255, 127, 0.2);
  border-radius: 4px;
  padding: 3px 6px;
  color: #7fbf9d;
  letter-spacing: 0.5px;
}

