@import url("https://fonts.googleapis.com/css2?family=VT323&display=swap");

.page-account .node-deploy-cell {
  padding: 0 !important;
}

.page-account .node-deploy-wrap {
  position: relative;
  height: 196px;
  border-radius: 12px;
  overflow: hidden;
  background: #000814;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 767.98px) {
  .page-account .node-deploy-wrap {
    position: sticky;
    left: 0;
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
  }
}

.page-account .node-deploy-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 12, 28, 0.68);
  pointer-events: none;
}

.page-account .node-deploy-overlay-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 3px;
  text-shadow: 0 0 18px rgba(0, 255, 159, 0.85), 0 0 32px rgba(0, 183, 255, 0.55);
  animation: node-deploy-text-pulse 1.8s ease-in-out infinite;
}

@keyframes node-deploy-text-pulse {
  0%, 100% { opacity: 0.88; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

.page-account .account-line-table tbody.line-node-group.line-deploying {
  box-shadow: 0 0 0 1px rgba(0, 183, 255, 0.28), 0 8px 24px rgba(0, 80, 160, 0.12);
}

.page-account .deploy-mini-terminal {
  --crt-green: #00ff9f;
  --crt-blue: #00b7ff;
  --deploy-header-h: 41px;
  --deploy-footer-h: 84px;
  position: absolute;
  left: 0;
  top: 0;
  width: 864px;
  height: 420px;
  transform-origin: top left;
  transform: scale(1);
  font-family: "VT323", ui-monospace, monospace;
  background: linear-gradient(180deg, #0a1428 0%, #000814 100%);
  border: 4px solid #112233;
  box-shadow: 0 0 40px rgba(0, 183, 255, 0.45), inset 0 0 60px rgba(0, 255, 159, 0.12);
  overflow: hidden;
  border-radius: 8px;
}

.page-account .deploy-mini-terminal::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 255, 159, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 159, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: 1;
  animation: deploy-grid-shift 25s linear infinite;
}

@keyframes deploy-grid-shift {
  0% { background-position: 0 0; }
  100% { background-position: 0 56px; }
}

.page-account .deploy-mini-terminal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    transparent 0,
    transparent 3px,
    rgba(0, 255, 159, 0.08) 3px,
    rgba(0, 255, 159, 0.08) 5px
  );
  z-index: 2;
  animation: deploy-crt-scan 3.8s linear infinite;
  pointer-events: none;
}

@keyframes deploy-crt-scan {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(120%); }
}

.page-account .deploy-mini-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--deploy-header-h);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: rgba(8, 18, 38, 0.96);
  border-bottom: 2px solid var(--crt-blue);
  box-sizing: border-box;
}

.page-account .deploy-traffic-lights {
  display: flex;
  gap: 5px;
}

.page-account .deploy-light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #111;
}

.page-account .deploy-light.red { background: #ff3b3b; }
.page-account .deploy-light.yellow { background: #ffd000; }
.page-account .deploy-light.green {
  background: #00ff88;
  animation: deploy-green-pulse 2s infinite;
}

@keyframes deploy-green-pulse {
  0%, 100% { box-shadow: 0 0 6px #00ff88; }
  50% { box-shadow: 0 0 14px #00ff88; }
}

.page-account .deploy-mini-title {
  flex: 1;
  text-align: center;
  color: var(--crt-green);
  font-size: 16px;
  letter-spacing: 3px;
  text-shadow: 0 0 10px var(--crt-green);
}

.page-account .deploy-mini-subtitle {
  color: var(--crt-blue);
  font-size: 11px;
  letter-spacing: 2px;
}

.page-account .deploy-logs-container {
  position: absolute;
  top: var(--deploy-header-h);
  left: 0;
  right: 0;
  bottom: var(--deploy-footer-h);
  z-index: 5;
  overflow: hidden;
  padding: 6px 12px;
  background: rgba(1, 8, 25, 0.85);
  box-sizing: border-box;
}

.page-account .deploy-logs {
  height: 100%;
  overflow: hidden;
  color: var(--crt-green);
  font-size: 11px;
  line-height: 1.32;
  mask-image: linear-gradient(180deg, transparent 0, #000 6%, #000 92%, transparent 100%);
}

.page-account .deploy-log-line {
  margin-bottom: 2px;
  white-space: pre-wrap;
  word-break: break-all;
  opacity: 0.92;
}

.page-account .deploy-timestamp { color: #557799; display: inline-block; width: 72px; }
.page-account .deploy-level { font-weight: bold; display: inline-block; width: 52px; }
.page-account .deploy-level.INFO { color: #44ddff; }
.page-account .deploy-level.SUCCESS { color: #00ff9f; }
.page-account .deploy-level.WARNING { color: #ffdd33; }
.page-account .deploy-level.DEBUG { color: #bb88ff; }
.page-account .deploy-level.TRACE { color: #8899bb; }

.page-account .deploy-mini-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--deploy-footer-h);
  z-index: 20;
  padding: 8px 12px;
  background: rgba(8, 18, 38, 0.97);
  border-top: 2px solid var(--crt-blue);
  box-sizing: border-box;
}

.page-account .deploy-status-line {
  color: var(--crt-green);
  font-size: 12px;
  margin-bottom: 6px;
  text-shadow: 0 0 8px var(--crt-green);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-account .deploy-progress-container {
  height: 18px;
  background: #0a1a33;
  border: 2px solid var(--crt-blue);
  position: relative;
  overflow: hidden;
}

.page-account .deploy-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00ff9f, #00ccff, #00ff9f);
  transition: width 180ms linear;
}

.page-account .deploy-percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 8px #000, 0 0 12px var(--crt-green);
}
