
/* === HACK UI · Tech theme (override) === */
body.balance-modal-open,
body.hack-active { overflow: hidden; }

.balance-modal-box {
  background: linear-gradient(165deg, rgba(4, 22, 30, .98), rgba(2, 10, 14, .99)) !important;
  border: 1px solid rgba(0, 212, 255, .45) !important;
  box-shadow: 0 0 40px rgba(0, 212, 255, .15), inset 0 1px 0 rgba(0, 212, 255, .08) !important;
  text-align: center;
  padding: 26px 22px 20px !important;
}

.balance-modal-tag {
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  color: rgba(0, 212, 255, .75);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.balance-modal-title {
  color: #00d4ff !important;
  font-family: "Be Vietnam Pro", sans-serif !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0 0 12px !important;
  text-shadow: 0 0 20px rgba(0, 212, 255, .35);
  line-height: 1.25;
}

.balance-modal-hint {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, .55);
  line-height: 1.55;
  margin: 0 0 14px;
}

.balance-modal-hint strong { color: #ff8c32; }

.balance-modal-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  margin-bottom: 16px;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 140, 50, .35);
  background: rgba(255, 140, 50, .08);
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255, 220, 180, .92);
}

.balance-notice-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Orbitron, sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #ff8c32;
  border: 1px solid rgba(255, 140, 50, .5);
  background: rgba(255, 140, 50, .12);
}

.balance-input-row {
  border-color: rgba(0, 212, 255, .35) !important;
  background: rgba(0, 8, 14, .75) !important;
  box-shadow: inset 0 0 12px rgba(0, 212, 255, .06);
}

.balance-input-row input {
  font-family: "Be Vietnam Pro", "JetBrains Mono", monospace !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #7ee8ff !important;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}

.balance-currency {
  font-family: "Be Vietnam Pro", sans-serif !important;
  color: rgba(0, 212, 255, .65) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .06em;
}

.balance-close-btn {
  color: rgba(0, 212, 255, .55) !important;
  font-size: 12px;
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 600;
}

.balance-tier-hint {
  font-family: "Be Vietnam Pro", sans-serif !important;
  font-size: 12px !important;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 12px;
}

.balance-start-btn {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, #00a8cc, #007a99) !important;
  box-shadow: 0 4px 20px rgba(0, 212, 255, .3) !important;
  color: #fff !important;
  font-family: "Be Vietnam Pro", sans-serif !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.3;
  cursor: pointer;
  -webkit-font-smoothing: antialiased;
}

.balance-start-btn .btn-arrow {
  display: inline-block;
  margin: 0 4px;
  font-weight: 700;
  letter-spacing: 0;
}

/* Background */
.hack-screen-bg {
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(0, 212, 255, .12) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 80% 70%, rgba(96, 90, 202, .1) 0%, transparent 50%),
    linear-gradient(180deg, #020810 0%, #040e14 40%, #020608 100%) !important;
}

.hack-screen-coins { display: none; }

.hack-screen-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 212, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, .04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 20%, transparent 75%);
}

.hack-screen-scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, .12) 2px, rgba(0, 0, 0, .12) 4px);
  opacity: .35;
  animation: hackScanline 8s linear infinite;
}

@keyframes hackScanline {
  from { background-position: 0 0; }
  to { background-position: 0 120px; }
}

/* Wallet strip — TOKEN vs VỐN */
.hack-wallet-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.hack-wallet-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px;
  border-radius: 10px;
  border: 1px solid;
  background: rgba(0, 0, 0, .45);
  min-width: 0;
}

.hack-wallet-token {
  border-color: rgba(255, 140, 50, .45);
  box-shadow: inset 0 0 16px rgba(255, 140, 50, .06);
}

.hack-wallet-capital {
  border-color: rgba(0, 212, 255, .4);
  box-shadow: inset 0 0 16px rgba(0, 212, 255, .06);
}

.hack-wallet-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.hack-wallet-token .hack-wallet-icon {
  background: rgba(255, 140, 50, .15);
  color: #ff8c32;
  border: 1px solid rgba(255, 140, 50, .35);
}

.hack-wallet-capital .hack-wallet-icon {
  background: rgba(0, 212, 255, .12);
  color: #00d4ff;
  border: 1px solid rgba(0, 212, 255, .35);
  font-family: Orbitron, sans-serif;
  font-size: 12px;
}

.hack-wallet-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hack-wallet-label {
  font-family: Orbitron, sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}

.hack-wallet-token .hack-wallet-label { color: #ff8c32; }
.hack-wallet-capital .hack-wallet-label { color: #00d4ff; }

.hack-wallet-sub {
  font-size: 8px;
  color: rgba(255, 255, 255, .4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hack-wallet-val {
  font-family: Orbitron, sans-serif;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.hack-wallet-token .hack-wallet-val { color: #ffb366; }
.hack-wallet-capital .hack-wallet-val { color: #7ee8ff; }

.hack-screen-user,
.hack-balance,
.hack-token,
.hack-capital-line { display: none !important; }

/* Panel */
.hack-screen-panel {
  position: relative;
  background: rgba(2, 12, 18, .88) !important;
  border: 1px solid rgba(0, 212, 255, .35) !important;
  box-shadow: 0 0 40px rgba(0, 212, 255, .1), inset 0 1px 0 rgba(0, 212, 255, .06) !important;
}

.hack-panel-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: rgba(0, 212, 255, .6);
  border-style: solid;
  pointer-events: none;
}

.hack-panel-corner-tl { top: 6px; left: 6px; border-width: 2px 0 0 2px; }
.hack-panel-corner-tr { top: 6px; right: 6px; border-width: 2px 2px 0 0; }
.hack-panel-corner-bl { bottom: 6px; left: 6px; border-width: 0 0 2px 2px; }
.hack-panel-corner-br { bottom: 6px; right: 6px; border-width: 0 2px 2px 0; }

.hack-screen-panel.is-running {
  border-color: rgba(0, 212, 255, .55) !important;
  box-shadow: 0 0 50px rgba(0, 212, 255, .18), inset 0 0 30px rgba(0, 212, 255, .04) !important;
  animation: panelPulse 2s ease-in-out infinite;
}

.hack-screen-panel.is-done {
  border-color: rgba(39, 174, 96, .45) !important;
}

@keyframes panelPulse {
  0%, 100% { box-shadow: 0 0 40px rgba(0, 212, 255, .12), inset 0 0 20px rgba(0, 212, 255, .03); }
  50% { box-shadow: 0 0 55px rgba(0, 212, 255, .22), inset 0 0 35px rgba(0, 212, 255, .06); }
}

.hack-module-tag {
  display: block;
  font-family: Orbitron, sans-serif;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
  color: rgba(0, 212, 255, .55);
  margin-bottom: 4px;
}

.hack-screen-title {
  color: #e8f4f8 !important;
  font-size: 13px !important;
}

.hack-back-btn {
  border-color: rgba(0, 212, 255, .3) !important;
  color: #00d4ff !important;
  background: rgba(0, 212, 255, .06) !important;
}

.hack-btn-robot {
  border-color: rgba(0, 212, 255, .4) !important;
  background: rgba(0, 212, 255, .08) !important;
  color: #00d4ff !important;
  font-family: Orbitron, sans-serif;
  font-size: 9px !important;
}

/* Hero — ring · logo 3D · badge */
.hack-screen-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 16px;
}

.hack-logo3d-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hack-logo3d-wrap model-viewer {
  width: 100%;
  height: 96px;
  max-width: 110px;
  background: transparent;
  --progress-bar-color: #00d4ff;
  --progress-bar-height: 2px;
}

.hack-logo3d-glow {
  position: absolute;
  inset: 10% 5%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 212, 255, .22) 0%, transparent 68%);
  pointer-events: none;
  animation: logo3dPulse 3s ease-in-out infinite;
}

@keyframes logo3dPulse {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.hack-screen-panel.is-running .hack-logo3d-glow {
  animation: logo3dPulse 1.2s ease-in-out infinite;
  background: radial-gradient(ellipse at center, rgba(0, 212, 255, .35) 0%, transparent 70%);
}

.hack-screen-panel.is-running .hack-logo3d-wrap model-viewer {
  filter: drop-shadow(0 0 14px rgba(0, 212, 255, .45));
}

.hack-mascot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 72px;
}

.hack-mascot { display: none !important; }

/* Ring */
.hack-ring-wrap {
  width: 96px !important;
  height: 96px !important;
}

.hack-ring-purple .hack-ring-fill,
.hack-ring-fill {
  stroke: #00d4ff !important;
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, .65)) !important;
}

.hack-ring-bg { stroke: rgba(0, 212, 255, .12) !important; }

.hack-pct {
  font-size: 20px !important;
  color: #00d4ff !important;
  text-shadow: 0 0 16px rgba(0, 212, 255, .8) !important;
  margin-top: -6px;
}

.hack-pct-label {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .08em;
  color: rgba(0, 212, 255, .5);
}

.hack-mascot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hack-mascot {
  font-size: 36px !important;
  color: #00d4ff;
  text-shadow: 0 0 20px rgba(0, 212, 255, .6);
  animation: mascotPulse 2.5s ease-in-out infinite;
}

@keyframes mascotPulse {
  0%, 100% { opacity: .85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.hack-screen-panel.is-running .hack-mascot {
  animation: mascotPulse .8s ease-in-out infinite;
}

/* Scan box */
.hack-game-thumb {
  border-color: rgba(0, 212, 255, .35) !important;
  background: rgba(0, 0, 0, .5) !important;
}

.hack-scan-box {
  border-color: rgba(0, 212, 255, .25) !important;
  background: rgba(0, 8, 12, .7) !important;
  min-height: 88px !important;
}

.hack-scan-box.analyzing {
  border-color: rgba(0, 212, 255, .55) !important;
  box-shadow: inset 0 0 24px rgba(0, 212, 255, .1) !important;
}

.hack-wave {
  width: 100%;
  max-width: 140px;
  height: 36px;
  margin-bottom: 4px;
  opacity: 0;
  transition: opacity .3s;
}

.hack-scan-box.analyzing .hack-wave { opacity: 1; }

.hack-scan-text {
  color: #00d4ff !important;
  font-size: 11px !important;
  letter-spacing: .12em !important;
}

.hack-tech-stats {
  width: 100%;
  gap: 6px !important;
  margin-top: 6px;
}

.hack-metric {
  display: flex;
  justify-content: space-between;
  padding: 4px 6px;
  border-radius: 4px;
  background: rgba(0, 212, 255, .05);
  border: 1px solid rgba(0, 212, 255, .12);
  font-family: Orbitron, "Be Vietnam Pro", sans-serif;
  font-size: 9px;
}

.hack-metric span { color: rgba(255, 255, 255, .45); }
.hack-metric strong { color: #7dffb0 !important; font-size: 10px !important; }

/* Terminal */
.hack-terminal {
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 212, 255, .28);
  background: rgba(0, 4, 8, .82);
  overflow: hidden;
  font-family: 'JetBrains Mono', 'Share Tech Mono', Consolas, monospace;
  box-shadow: inset 0 0 24px rgba(0, 212, 255, .04);
}

.hack-terminal-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-family: Orbitron, sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .08em;
  color: rgba(0, 212, 255, .7);
  background: rgba(0, 212, 255, .06);
  border-bottom: 1px solid rgba(0, 212, 255, .12);
}

.hack-terminal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #27ae60;
  box-shadow: 0 0 6px #27ae60;
  animation: termDot 1.5s ease-in-out infinite;
}

@keyframes termDot {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.hack-screen-panel.is-running .hack-terminal-dot {
  background: #00d4ff;
  box-shadow: 0 0 8px #00d4ff;
  animation: termDot .5s ease-in-out infinite;
}

.hack-terminal-body {
  padding: 10px 12px;
  max-height: 130px;
  overflow-y: auto;
  font-size: 10px;
  line-height: 1.65;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 212, 255, .3) transparent;
}

.hack-term-line {
  display: block;
  color: rgba(0, 212, 255, .55);
  white-space: pre-wrap;
  word-break: break-word;
}

.hack-term-line.code-line .term-prompt {
  color: rgba(0, 212, 255, .45);
  user-select: none;
}

.hack-term-line.dim { color: rgba(0, 212, 255, .42); }
.hack-term-line.active { color: #7ee8ff; }
.hack-term-line.success { color: #7dffb0; }
.hack-term-line.warn { color: #ffb366; }
.hack-term-line.error { color: #ff6b6b; }

.hack-term-line .tok-kw { color: #c792ea; }
.hack-term-line .tok-str { color: #7dffb0; }
.hack-term-line .tok-num { color: #ffb366; }
.hack-term-line .tok-fn { color: #00d4ff; }
.hack-term-line .tok-cmt { color: rgba(255, 255, 255, .32); font-style: italic; }

.hack-term-line.active .tok-kw { color: #e0b3ff; }
.hack-term-line.active .tok-fn { color: #9aebff; }
.hack-term-line.success .tok-str { color: #a8ffc4; }

/* Data rows */
.hack-data-row {
  border-color: rgba(0, 212, 255, .2) !important;
  background: rgba(0, 8, 14, .5) !important;
}

.hack-data-label { color: #00d4ff !important; }

.hack-data-val.has-data { color: #7dffb0 !important; }

.hack-done-banner {
  border-color: rgba(39, 174, 96, .45) !important;
  background: rgba(39, 174, 96, .1) !important;
  color: #7dffb0 !important;
  font-family: Orbitron, sans-serif;
  font-size: 10px !important;
}

/* Progress */
.hack-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.hack-progress-label {
  color: rgba(0, 212, 255, .75) !important;
  font-family: Orbitron, sans-serif;
  font-size: 9px !important;
  letter-spacing: .04em;
}

.hack-progress-bar {
  height: 10px !important;
  background: rgba(0, 0, 0, .5) !important;
  border: 1px solid rgba(0, 212, 255, .2);
  border-radius: 4px !important;
}

.hack-progress-fill {
  background: linear-gradient(90deg, #007a99, #00d4ff, #7ee8ff) !important;
  box-shadow: 0 0 12px rgba(0, 212, 255, .5);
  border-radius: 3px !important;
  position: relative;
}

.hack-progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
  animation: progShine 1.2s linear infinite;
}

@keyframes progShine {
  from { transform: translateX(-100%); }
  to { transform: translateX(200%); }
}

.hack-progress-pct {
  color: #00d4ff !important;
  font-size: 12px !important;
}

.hack-progress-segments {
  display: flex;
  gap: 3px;
  margin-top: 6px;
}

.hack-progress-segments span {
  flex: 1;
  height: 3px;
  background: rgba(0, 212, 255, .12);
  border-radius: 2px;
}

.hack-screen-panel.is-running .hack-progress-segments span:nth-child(odd) {
  animation: segBlink 1s ease-in-out infinite;
}

@keyframes segBlink {
  0%, 100% { background: rgba(0, 212, 255, .12); }
  50% { background: rgba(0, 212, 255, .45); }
}

/* Buttons */
.hack-main-btn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #00b8e6 0%, #007a99 100%) !important;
  box-shadow: 0 4px 24px rgba(0, 212, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .15) !important;
  border: 1px solid rgba(0, 212, 255, .5) !important;
  font-family: Orbitron, sans-serif !important;
}

.hack-main-btn-glow {
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, .15), transparent);
  animation: btnGlow 3s linear infinite;
  pointer-events: none;
}

@keyframes btnGlow {
  to { transform: rotate(360deg); }
}

.hack-main-btn-text {
  position: relative;
  z-index: 1;
}

.hack-main-btn.loading {
  opacity: .7;
  pointer-events: none;
}

.hack-main-btn.loading .hack-main-btn-text::after {
  content: " ...";
  animation: dots 1s steps(3) infinite;
}

@keyframes dots {
  0% { content: " ."; }
  33% { content: " .."; }
  66% { content: " ..."; }
}

.hack-stop-btn {
  border-color: rgba(255, 255, 255, .12) !important;
  background: rgba(0, 0, 0, .6) !important;
  font-family: Orbitron, sans-serif;
  font-size: 11px !important;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hack-stop-ico {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: #ff6b6b;
  box-shadow: 0 0 8px rgba(255, 107, 107, .55);
  flex-shrink: 0;
}

.hack-metric strong.rate-live {
  color: #7dffb0 !important;
  animation: rateGlow 1.6s ease-in-out infinite;
}

@keyframes rateGlow {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  50% { text-shadow: 0 0 10px rgba(125, 255, 176, .6); }
}

.vip-rate-val.rate-tick {
  animation: vipTick .45s ease;
}

@keyframes vipTick {
  from { transform: scale(1.08); filter: brightness(1.2); }
  to { transform: scale(1); filter: brightness(1); }
}

.hack-pct {
  transition: color .3s, text-shadow .3s;
}

.hack-screen-panel.is-done .hack-pct {
  animation: pctGlow 2s ease-in-out infinite;
}

@keyframes pctGlow {
  0%, 100% { text-shadow: 0 0 16px rgba(0, 212, 255, .8); }
  50% { text-shadow: 0 0 24px rgba(125, 255, 176, .95); color: #7dffb0; }
}

.hack-vip-full {
  border-color: rgba(240, 160, 32, .35) !important;
  background: rgba(240, 160, 32, .06) !important;
}

.hack-countdown-label {
  display: block;
  font-family: Orbitron, sans-serif;
  font-size: 9px;
  letter-spacing: .1em;
  color: rgba(0, 212, 255, .5);
  margin-bottom: 6px;
}

.hack-countdown {
  color: #00d4ff !important;
  border-color: rgba(0, 212, 255, .35) !important;
  text-shadow: 0 0 24px rgba(0, 212, 255, .45) !important;
}

.hack-logout-btn {
  background: linear-gradient(180deg, #00a8cc, #006680) !important;
  font-size: 9px !important;
  padding: 6px 10px !important;
}

body.hack-locked .game-grid,
body.hack-locked .filter-row,
body.hack-locked .search-box,
body.hack-locked [data-back] {
  pointer-events: none;
}

.game-grid.games-locked .game-card {
  cursor: not-allowed;
  opacity: .45;
}

@media (min-width: 768px) {
  .hack-screen-inner { max-width: 440px !important; }
}
