/* ============================================
   XOA MA DOC — Cyber Hacker Terminal
   Aesthetic: deep-dark, acid green + cyan neon,
   perspective grid floor, 3D wireframe, glitch,
   scanlines, noise, holographic panel.
   ============================================ */

/* ---------- Tokens ---------- */
:root {
  /* Base surfaces */
  --bg-void: #03050a;
  --bg-deep: #06080f;
  --bg-panel: rgba(8, 12, 20, 0.72);
  --bg-input: rgba(6, 10, 16, 0.85);

  /* Neon palette (cyber hacker) */
  --acid: #39ff14;          /* primary hacker green */
  --acid-dim: rgba(57, 255, 20, 0.22);
  --cyan: #00ffd5;          /* secondary cyan */
  --cyan-dim: rgba(0, 255, 213, 0.22);
  --magenta: #ff2bd6;       /* rare accent */
  --red: #ff0a3c;
  --red-dim: rgba(255, 10, 60, 0.22);
  --amber: #ffb400;

  /* Text */
  --text: #c9d4de;
  --text-dim: #6d7a89;
  --text-faint: #3a4450;

  /* Structure */
  --border: rgba(0, 255, 213, 0.12);
  --border-strong: rgba(0, 255, 213, 0.35);
  --border-dashed: rgba(57, 255, 20, 0.25);
  --radius: 2px;

  /* Typography */
  --font-mono: "JetBrains Mono", "Share Tech Mono", ui-monospace, monospace;
  --font-display: "Chakra Petch", "JetBrains Mono", sans-serif;
  --font-term: "Share Tech Mono", "JetBrains Mono", monospace;

  /* Shadows (inner/inset, not neon glow) */
  --inset-deep: inset 0 0 0 1px rgba(0, 255, 213, 0.06),
                inset 0 1px 0 0 rgba(255, 255, 255, 0.03);
  --inset-acid: inset 0 0 0 1px rgba(57, 255, 20, 0.25);
  --inset-red:  inset 0 0 0 1px rgba(255, 10, 60, 0.35);
}

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

html, body {
  width: 100%;
  min-height: 100dvh;
  background: var(--bg-void);
  color: var(--text);
  font-family: var(--font-mono);
  overflow-x: hidden;
}

body {
  position: relative;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(57, 255, 20, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 85% 90%, rgba(0, 255, 213, 0.045) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255, 43, 214, 0.02) 0%, transparent 70%),
    var(--bg-void);
}

button { font-family: inherit; }
input  { font-family: inherit; font-size: 16px; }

/* ---------- Background FX layers ---------- */
#matrix-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.18;
  filter: blur(1px) saturate(1.1);
  pointer-events: none;
}

.grid-floor {
  position: fixed;
  left: 50%;
  bottom: -18vh;
  width: 260vw;
  height: 70vh;
  transform: translateX(-50%) perspective(520px) rotateX(62deg);
  transform-origin: 50% 0%;
  background-image:
    linear-gradient(rgba(0, 255, 213, 0.42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 213, 0.28) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: grid-scroll 4s linear infinite;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 80%);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

@keyframes grid-scroll {
  from { background-position-y: 0; }
  to   { background-position-y: 56px; }
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse at center,
    transparent 40%,
    rgba(0, 0, 0, 0.55) 100%);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.2 0 0 0 0 1 0 0 0 0 0.8 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.35;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.28) 3px,
    rgba(0, 0, 0, 0.28) 4px
  );
}

/* ---------- Top status bar ---------- */
.status-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  font-family: var(--font-term);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-dim);
  background: linear-gradient(to bottom, rgba(3, 5, 10, 0.9), rgba(3, 5, 10, 0.3));
  border-bottom: 1px solid rgba(0, 255, 213, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}

.status-group {
  display: flex;
  gap: 20px;
  align-items: center;
}

.status-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-label {
  color: var(--text-faint);
  text-transform: uppercase;
}

.status-value {
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-faint);
}

.status-dot.active {
  background: var(--acid);
  box-shadow: 0 0 0 2px rgba(57, 255, 20, 0.2);
  animation: heartbeat 1.8s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.82); }
}

.status-text {
  color: var(--acid);
}

/* ---------- Container ---------- */
.container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 720px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 60px 24px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

/* ---------- Hero 3D visual ---------- */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
  margin-bottom: -8px;
}

.hero-canvas-frame {
  position: relative;
  width: 240px;
  height: 240px;
}

#three-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.hero-crosshair {
  position: absolute;
  inset: -6px;
  pointer-events: none;
}

.ch {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid var(--acid);
  opacity: 0.85;
}
.ch-tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.ch-tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.ch-bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.ch-br { bottom: 0; right: 0; border-left: none; border-top: none; }

.hero-telemetry {
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-term);
  font-size: 11px;
  letter-spacing: 1.4px;
  color: var(--text-faint);
  white-space: nowrap;
}

.tel em {
  font-style: normal;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .hero-telemetry { display: none; }
  .hero-canvas-frame { width: 200px; height: 200px; }
}

/* ---------- Header ---------- */
.header {
  text-align: center;
  position: relative;
}

.brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  font-family: var(--font-term);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--acid);
  background: rgba(57, 255, 20, 0.05);
  border: 1px dashed var(--border-dashed);
  margin-bottom: 18px;
}

.tag-bracket { color: var(--text-faint); }

.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid);
  animation: heartbeat 1.4s ease-in-out infinite;
}

.title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7vw, 3.8rem);
  font-weight: 700;
  letter-spacing: 12px;
  line-height: 1;
  color: var(--text);
  text-transform: uppercase;
}

.title-line {
  display: inline-block;
  position: relative;
  padding: 0 4px;
}

.subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  font-family: var(--font-term);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.sub-line {
  display: inline-block;
  width: 48px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-strong), transparent);
}

/* ---------- Terminal panel ---------- */
.scanner-panel {
  position: relative;
  background: var(--bg-panel);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--inset-deep);
  overflow: hidden;
}

/* ASCII-like corner brackets */
.scanner-panel::before,
.scanner-panel::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--acid);
  pointer-events: none;
}
.scanner-panel::before {
  top: -1px; left: -1px;
  border-right: none; border-bottom: none;
}
.scanner-panel::after {
  bottom: -1px; right: -1px;
  border-left: none; border-top: none;
}

.panel-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(to right,
    rgba(0, 255, 213, 0.06),
    rgba(0, 255, 213, 0.0) 60%);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-term);
  font-size: 11px;
  letter-spacing: 1.5px;
}

.chrome-dot {
  width: 9px;
  height: 9px;
  border: 1px solid var(--text-faint);
  border-radius: 50%;
}
.chrome-dot:nth-child(1) { border-color: var(--red); }
.chrome-dot:nth-child(2) { border-color: var(--amber); }
.chrome-dot:nth-child(3) { border-color: var(--acid); }

.chrome-title {
  margin-left: 6px;
  color: var(--text-dim);
}

.chrome-status {
  margin-left: auto;
  color: var(--acid);
  padding: 2px 8px;
  border: 1px dashed var(--border-dashed);
  font-size: 10px;
  letter-spacing: 2px;
}

.panel-body {
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---------- Input group ---------- */
.input-group { display: flex; flex-direction: column; gap: 8px; }

.input-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-term);
  font-size: 10.5px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-left: 2px;
}

.label-idx {
  color: var(--acid);
  background: rgba(57, 255, 20, 0.08);
  padding: 2px 6px;
  letter-spacing: 1px;
  border: 1px solid var(--border-dashed);
}

.label-text { color: var(--text); letter-spacing: 3px; }

.label-req {
  margin-left: auto;
  color: var(--magenta);
  font-size: 9px;
  letter-spacing: 2px;
  opacity: 0.75;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 14px 0 0;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  box-shadow: var(--inset-deep);
}

.input-wrapper:focus-within {
  border-color: var(--acid);
  box-shadow:
    inset 0 0 0 1px rgba(57, 255, 20, 0.4),
    inset 2px 0 0 0 var(--acid);
  background: rgba(6, 14, 10, 0.85);
}

.input-wrapper.error {
  animation: shake 0.4s ease;
  border-color: var(--red);
  box-shadow: inset 0 0 0 1px rgba(255, 10, 60, 0.45);
}

.input-bar {
  width: 4px;
  height: 100%;
  min-height: 48px;
  background: linear-gradient(to bottom, var(--acid), var(--cyan));
  margin-right: 12px;
  opacity: 0.55;
  transition: opacity 0.25s;
}
.input-wrapper:focus-within .input-bar { opacity: 1; }

.input-prefix {
  color: var(--acid);
  font-family: var(--font-term);
  font-weight: 700;
  font-size: 14px;
  user-select: none;
  opacity: 0.9;
  margin-right: 8px;
}

.tx-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  padding: 14px 0;
  caret-color: var(--acid);
  letter-spacing: 0.3px;
}

.tx-input::placeholder {
  color: var(--text-faint);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.2px;
}

.input-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--acid);
  opacity: 0;
  animation: cursor-blink 1s steps(2) infinite;
  margin-left: 4px;
}

.input-wrapper:focus-within .input-cursor { opacity: 0.8; }

@keyframes cursor-blink {
  0%, 49%  { opacity: 0.85; }
  50%, 100% { opacity: 0; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

/* ---------- Execute button ---------- */
.scan-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  margin-top: 6px;
  background: linear-gradient(180deg,
    rgba(57, 255, 20, 0.08),
    rgba(0, 255, 213, 0.04));
  color: var(--acid);
  border: 1px solid var(--acid);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.25s, background 0.25s, transform 0.08s, letter-spacing 0.25s;
  box-shadow:
    inset 0 0 0 1px rgba(57, 255, 20, 0.15),
    inset 0 -20px 30px rgba(57, 255, 20, 0.04);
}

.scan-btn:hover:not(:disabled) {
  background: linear-gradient(180deg,
    rgba(57, 255, 20, 0.18),
    rgba(0, 255, 213, 0.08));
  color: #eafff0;
  letter-spacing: 6px;
}

.scan-btn:active:not(:disabled) { transform: translateY(1px); }

.scan-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-bracket {
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: 0;
  opacity: 0.75;
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg,
    transparent,
    rgba(57, 255, 20, 0.25),
    transparent);
  transform: skewX(-18deg);
  animation: shine 4.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shine {
  0%   { left: -60%; }
  40%  { left: 120%; }
  100% { left: 120%; }
}

.hint-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: center;
  font-family: var(--font-term);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--text-faint);
  margin-top: 4px;
}

.hint-dot {
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 50%;
  opacity: 0.7;
  animation: heartbeat 2.2s ease-in-out infinite;
}

/* ---------- Glitch text ---------- */
.glitch {
  position: relative;
  display: inline-block;
  color: inherit;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.glitch::before {
  color: var(--cyan);
  transform: translate(-2px, 0);
  mix-blend-mode: screen;
  animation: glitch-1 4s infinite steps(1);
  clip-path: inset(0 0 0 0);
}
.glitch::after {
  color: var(--magenta);
  transform: translate(2px, 0);
  mix-blend-mode: screen;
  animation: glitch-2 4s infinite steps(1);
  clip-path: inset(0 0 0 0);
}

@keyframes glitch-1 {
  0%, 94% { clip-path: inset(0 0 0 0); transform: translate(-2px, 0); }
  95%     { clip-path: inset(18% 0 42% 0); transform: translate(-5px, 1px); }
  96%     { clip-path: inset(55% 0 12% 0); transform: translate(4px, -1px); }
  97%     { clip-path: inset(30% 0 50% 0); transform: translate(-3px, 0); }
  98%     { clip-path: inset(0 0 0 0); transform: translate(-2px, 0); }
}
@keyframes glitch-2 {
  0%, 94% { clip-path: inset(0 0 0 0); transform: translate(2px, 0); }
  95%     { clip-path: inset(48% 0 22% 0); transform: translate(4px, 1px); }
  96%     { clip-path: inset(8% 0 62% 0); transform: translate(-4px, -1px); }
  97%     { clip-path: inset(40% 0 30% 0); transform: translate(3px, 0); }
  98%     { clip-path: inset(0 0 0 0); transform: translate(2px, 0); }
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  margin-top: auto;
  padding-top: 20px;
  font-family: var(--font-term);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--text-faint);
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.footer-sep { color: var(--acid); opacity: 0.6; }

/* ---------- Result overlay ---------- */
.result-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 5, 10, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: fade-in 0.3s ease;
}

.result-overlay.hidden { display: none; }

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Loading */
.loading-state {
  text-align: center;
  padding: 24px;
  max-width: 420px;
  width: 100%;
}
.loading-state.hidden { display: none; }

.spinner {
  width: 96px;
  height: 96px;
  position: relative;
  margin: 0 auto 22px;
}

.spinner-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
}
.spinner-ring:nth-child(1) {
  border-top-color: var(--acid);
  animation: spin 1.1s linear infinite;
}
.spinner-ring:nth-child(2) {
  inset: 8px;
  border-right-color: var(--cyan);
  animation: spin 1.7s linear infinite reverse;
  opacity: 0.75;
}
.spinner-ring:nth-child(3) {
  inset: 16px;
  border-bottom-color: var(--magenta);
  animation: spin 2.5s linear infinite;
  opacity: 0.55;
}

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

.loading-text {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--acid);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.progress-bar {
  width: 280px;
  max-width: 100%;
  height: 3px;
  background: rgba(0, 255, 213, 0.08);
  border-radius: 2px;
  margin: 0 auto 20px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--acid), var(--cyan));
  transition: width 0.15s linear;
}

.scan-log {
  font-family: var(--font-term);
  font-size: 11.5px;
  color: var(--text-dim);
  text-align: left;
  max-width: 340px;
  margin: 0 auto;
  min-height: 110px;
}

.scan-log .log-line {
  opacity: 0;
  animation: log-appear 0.25s ease forwards;
  padding: 2px 0;
  letter-spacing: 0.5px;
}

.scan-log .log-line::before {
  content: "> ";
  color: var(--acid);
  opacity: 0.55;
}

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

/* Result card */
.result-card {
  text-align: center;
  padding: 36px 32px;
  max-width: 480px;
  width: 100%;
  position: relative;
  background: var(--bg-panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  box-shadow: var(--inset-deep);
}

.result-card.hidden { display: none; }

.result-card::before,
.result-card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}
.result-card::before {
  top: -1px; left: -1px;
  border: 1px solid currentColor;
  border-right: none; border-bottom: none;
}
.result-card::after {
  bottom: -1px; right: -1px;
  border: 1px solid currentColor;
  border-left: none; border-top: none;
}

#result-safe   { color: var(--acid); }
#result-danger { color: var(--red); }

.result-icon {
  margin-bottom: 18px;
  animation: icon-enter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes icon-enter {
  from { opacity: 0; transform: scale(0.3); }
  to   { opacity: 1; transform: scale(1); }
}

.safe-icon   { color: var(--acid); }
.danger-icon {
  color: var(--red);
  animation:
    icon-enter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    shake 0.5s 0.6s ease;
}

.result-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 5vw, 1.75rem);
  letter-spacing: 6px;
  margin-bottom: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.safe-title   { color: var(--acid); }
.danger-title { color: var(--red); }

.result-desc {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.65;
  margin: 0 auto 22px;
  max-width: 380px;
}

.danger-desc { color: var(--text); }

.result-details {
  background: rgba(6, 10, 16, 0.7);
  border: 1px dashed var(--border-dashed);
  padding: 16px 18px;
  margin-bottom: 20px;
  text-align: left;
}

.danger-details {
  border-color: rgba(255, 10, 60, 0.35);
  background: rgba(255, 10, 60, 0.04);
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-family: var(--font-term);
  font-size: 12px;
  letter-spacing: 1px;
}

.detail-item + .detail-item {
  border-top: 1px dashed rgba(255, 255, 255, 0.05);
}

.detail-label { color: var(--text-dim); text-transform: uppercase; }

.safe-value   { color: var(--acid); font-weight: 700; }
.danger-value { color: var(--red);  font-weight: 700; }

.danger-warning {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(255, 10, 60, 0.08);
  border: 1px dashed rgba(255, 10, 60, 0.5);
  margin-bottom: 22px;
  color: var(--red);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: warning-pulse 1.4s ease-in-out infinite;
}

@keyframes warning-pulse {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}

.danger-flash {
  position: fixed;
  inset: 0;
  background: var(--red);
  opacity: 0;
  pointer-events: none;
  animation: flash 0.15s ease 2;
}

@keyframes flash {
  0%   { opacity: 0; }
  50%  { opacity: 0.14; }
  100% { opacity: 0; }
}

/* Close button */
.close-btn {
  padding: 12px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-input);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  cursor: pointer;
  text-transform: uppercase;
  transition: color 0.25s, border-color 0.25s;
}
.safe-close:hover   { color: var(--acid); border-color: var(--acid); }
.danger-close:hover { color: var(--red);  border-color: var(--red); }

/* Stack close + safe-access CTAs vertically in the SAFE result card */
.result-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Primary CTA — redirects to window.REDIRECT_URL (from /config.js) */
.access-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 32px;
  border: 1px solid var(--acid);
  border-radius: var(--radius);
  background: var(--acid-dim);
  color: var(--acid);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  cursor: pointer;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}
.access-btn:hover {
  background: var(--acid);
  color: #04110a;
  box-shadow: 0 0 18px var(--acid-dim);
}
.access-btn .btn-bracket { font-size: 10px; opacity: 0.75; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .status-bar {
    font-size: 10px;
    padding: 8px 14px;
    letter-spacing: 1.5px;
  }
  .status-group { gap: 14px; }
  .status-group:first-child .status-item:nth-child(2) { display: none; }

  .container { padding: 56px 16px 40px; gap: 22px; }

  .title { letter-spacing: 6px; }
  .subtitle { letter-spacing: 2.5px; font-size: 10px; }
  .sub-line { width: 30px; }

  .panel-body { padding: 22px 16px 18px; }

  .result-card { padding: 28px 20px; }
  .result-title { letter-spacing: 4px; }
}

/* ---------- Accessibility: reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .grid-floor,
  .btn-shine,
  .status-dot.active,
  .tag-dot,
  .hint-dot,
  .input-cursor,
  .glitch::before,
  .glitch::after {
    animation: none !important;
  }
}
