:root {
  --bg: #020407;
  --panel: rgba(5, 14, 20, 0.72);
  --panel-2: rgba(8, 20, 24, 0.82);
  --cyan: #22f7ff;
  --green: #34ff8a;
  --gold: #ffd166;
  --orange: #ff9f1c;
  --purple: #b75cff;
  --red: #ff4d6d;
  --silver: #eaf8ff;
  --text: #effcff;
  --muted: rgba(234, 248, 255, 0.68);
  --line: rgba(34, 247, 255, 0.32);
  --rank-color: #22f7ff;
  --rank-glow: rgba(34, 247, 255, 0.45);
  --radius: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--text);
  font-family: "Rajdhani", "Exo 2", sans-serif;
  background: var(--bg);
  overflow-x: hidden;
}

body::selection {
  background: rgba(34, 247, 255, 0.35);
  color: #fff;
}

/* Background Money Rain */
.background-system {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 15% 15%,
      rgba(255, 209, 102, 0.16),
      transparent 34%
    ),
    radial-gradient(
      circle at 84% 20%,
      rgba(34, 247, 255, 0.18),
      transparent 32%
    ),
    radial-gradient(
      circle at 48% 82%,
      rgba(52, 255, 138, 0.12),
      transparent 38%
    ),
    linear-gradient(130deg, #020407 0%, #031015 36%, #100820 70%, #040506 100%);
}

.grid-layer,
.indicator-layer,
.scanline-layer,
.noise-layer,
.liquidity-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.grid-layer {
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(34, 247, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 209, 102, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: gridMove 24s linear infinite;
  mask-image: radial-gradient(circle at center, black 0%, transparent 86%);
}

.indicator-layer {
  opacity: 0.45;
  background:
    linear-gradient(
      115deg,
      transparent 0 15%,
      rgba(52, 255, 138, 0.12) 15.2%,
      transparent 15.8% 40%,
      rgba(34, 247, 255, 0.13) 40.2%,
      transparent 41% 68%,
      rgba(255, 209, 102, 0.12) 68.2%,
      transparent 69%
    ),
    repeating-linear-gradient(
      165deg,
      transparent 0 62px,
      rgba(52, 255, 138, 0.06) 63px 65px,
      transparent 66px 140px
    );
  animation: indicatorSlide 18s ease-in-out infinite alternate;
}

.scanline-layer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 160px;
  top: -180px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(34, 247, 255, 0.08),
    rgba(255, 209, 102, 0.1),
    transparent
  );
  filter: blur(0.2px);
  animation: globalScan 7s linear infinite;
}

.noise-layer {
  opacity: 0.1;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
  animation: noiseShift 0.9s steps(2) infinite;
}

.liquidity-glow {
  background:
    radial-gradient(
      circle at var(--x1, 20%) var(--y1, 30%),
      rgba(255, 209, 102, 0.18),
      transparent 24%
    ),
    radial-gradient(
      circle at var(--x2, 80%) var(--y2, 60%),
      rgba(34, 247, 255, 0.16),
      transparent 24%
    );
  animation: glowDrift 14s ease-in-out infinite alternate;
}

.rain-container,
.coin-container,
.stream-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.rain-symbol {
  position: absolute;
  top: -10vh;
  left: var(--left);
  color: var(--color);
  font-family: "Orbitron", monospace;
  font-size: var(--size);
  font-weight: 700;
  opacity: var(--opacity);
  text-shadow: 0 0 14px currentColor;
  animation: digitalFall var(--duration) linear infinite;
  animation-delay: var(--delay);
  will-change: transform;
}

.coin {
  position: absolute;
  top: -12vh;
  left: var(--left);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #1b1300;
  font-family: "Orbitron", monospace;
  font-size: calc(var(--size) * 0.46);
  font-weight: 900;
  background:
    radial-gradient(circle at 30% 22%, #fff7c5, transparent 24%),
    linear-gradient(145deg, #ffef8a, #ffb703 42%, #8f5d00 100%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 0 18px rgba(255, 193, 7, 0.38),
    inset 0 0 9px rgba(255, 255, 255, 0.4);
  opacity: var(--opacity);
  animation: coinFall var(--duration) linear infinite;
  animation-delay: var(--delay);
  will-change: transform;
}

.stream-line {
  position: absolute;
  left: var(--left);
  top: var(--top);
  width: var(--width);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color), transparent);
  opacity: 0.55;
  box-shadow: 0 0 14px var(--color);
  animation: streamMove var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
}

/* Layout */
.page {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 110px;
  position: relative;
  z-index: 1;
}

/* Header */
header {
  text-align: center;
  padding: 18px 0 34px;
  position: relative;
}

.system-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  border: 1px solid rgba(52, 255, 138, 0.3);
  background: rgba(3, 18, 15, 0.58);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: "Orbitron", monospace;
  letter-spacing: 0.12em;
  font-size: 12px;
  box-shadow: 0 0 24px rgba(52, 255, 138, 0.12);
  backdrop-filter: blur(10px);
}

.system-badge i {
  animation: pulseDot 1.4s infinite;
}

.hero-title {
  margin: 18px auto 0;
  max-width: 1120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  text-align: center;
  animation: titleFlicker 5.5s infinite;
}

.hero-main {
  display: block;
  position: relative;
  font-family: "Orbitron", monospace;
  font-size: clamp(30px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: 0.035em;
  color: #fff;
  text-wrap: balance;
  text-shadow:
    0 0 8px rgba(34, 247, 255, 0.8),
    0 0 20px rgba(52, 255, 138, 0.35),
    0 0 42px rgba(255, 209, 102, 0.22);
}

.hero-main::before,
.hero-main::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.48;
}

.hero-main::before {
  color: var(--cyan);
  transform: translate(2px, -1px);
  clip-path: inset(0 0 58% 0);
  animation: glitchA 3.5s infinite;
}
.hero-main::after {
  color: var(--gold);
  transform: translate(-2px, 1px);
  clip-path: inset(58% 0 0 0);
  animation: glitchB 4.2s infinite;
}

.hero-subline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 209, 102, 0.28);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05),
    rgba(0, 0, 0, 0.12)
  );
  font-family: "Orbitron", monospace;
  font-size: clamp(14px, 2vw, 20px);
  line-height: 1.35;
  letter-spacing: 0.12em;
  color: rgba(234, 248, 255, 0.88);
  box-shadow:
    0 0 24px rgba(255, 209, 102, 0.08),
    inset 0 0 18px rgba(34, 247, 255, 0.05);
  text-wrap: balance;
}

.gloss-sweep {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 10px;
  height: 52px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.55),
    rgba(255, 209, 102, 0.55),
    transparent
  );
  transform: skewX(-22deg) translateX(-140%);
  animation: glossy 4.8s ease-in-out infinite;
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0.7;
}

.subtitle {
  margin: 16px auto 0;
  max-width: 780px;
  color: var(--muted);
  font-size: clamp(17px, 2.1vw, 22px);
  font-weight: 600;
  line-height: 1.55;
  text-align: center;
}

.hero-contact {
  margin: 18px auto 0;
  width: min(790px, 94%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 12px 18px;
  border-radius: 999px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 209, 102, 0.12),
      rgba(34, 247, 255, 0.055)
    ),
    rgba(4, 14, 20, 0.72);
  border: 1px solid rgba(255, 209, 102, 0.28);
  box-shadow:
    0 0 30px rgba(255, 209, 102, 0.09),
    inset 0 0 18px rgba(34, 247, 255, 0.04);
  text-align: center;
  backdrop-filter: blur(14px);
}

.hero-contact i {
  color: #2aabee;
  font-size: 18px;
  filter: drop-shadow(0 0 10px rgba(42, 171, 238, 0.35));
}

.hero-contact-note {
  color: rgba(234, 248, 255, 0.86);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.48;
  letter-spacing: 0.01em;
}

.hero-contact-note strong {
  color: var(--gold);
  font-weight: 900;
}

.ticker-line {
  width: min(720px, 92%);
  height: 34px;
  margin: 22px auto 0;
  border-top: 1px solid rgba(34, 247, 255, 0.25);
  border-bottom: 1px solid rgba(255, 209, 102, 0.2);
  position: relative;
  overflow: hidden;
  color: rgba(52, 255, 138, 0.78);
  font-family: "Orbitron", monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(34, 247, 255, 0.07),
    transparent
  );
}

.ticker-line::before {
  content: "TÀI KHOẢN VIP 3 MIỀN • ĐỊNH GIÁ NHANH • THU MUA TÀI KHOẢN VIP • KẾT NỐI TELEGRAM";
  white-space: nowrap;
  animation: ticker 16s linear infinite;
}

.main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.75fr);
  gap: 24px;
  align-items: start;
}

/* HUD Cards */
.hud-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.08), transparent 24%),
    linear-gradient(180deg, var(--panel), rgba(2, 6, 9, 0.88));
  border: 1px solid rgba(34, 247, 255, 0.34);
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.54),
    0 0 0 1px rgba(255, 209, 102, 0.08) inset,
    0 0 36px rgba(34, 247, 255, 0.1);
  backdrop-filter: blur(18px);
  clip-path: polygon(
    0 18px,
    18px 0,
    calc(100% - 18px) 0,
    100% 18px,
    100% calc(100% - 18px),
    calc(100% - 18px) 100%,
    18px 100%,
    0 calc(100% - 18px)
  );
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.hud-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 209, 102, 0.58);
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(52, 255, 138, 0.14) inset,
    0 0 44px rgba(255, 209, 102, 0.16),
    0 0 42px rgba(34, 247, 255, 0.12);
}

.hud-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='220' height='160' viewBox='0 0 220 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 130 L50 88 L88 108 L130 48 L165 72 L210 20' fill='none' stroke='%2322f7ff' stroke-opacity='.18' stroke-width='2'/%3E%3Cpath d='M0 38 H50 V26 H88 V48 H132 V31 H185' fill='none' stroke='%23ffd166' stroke-opacity='.12' stroke-width='1'/%3E%3Ctext x='10' y='25' fill='%2334ff8a' fill-opacity='.14' font-size='14' font-family='monospace'%3EBTC 01 VIP%3C/text%3E%3Ctext x='115' y='142' fill='%2322f7ff' fill-opacity='.12' font-size='12' font-family='monospace'%3EAI DATA%3C/text%3E%3C/svg%3E");
  background-size: 220px 160px;
  opacity: 0.7;
  animation: cardData 18s linear infinite;
  pointer-events: none;
}

.hud-card::after {
  content: "";
  position: absolute;
  top: -130%;
  left: -30%;
  width: 160%;
  height: 80%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(34, 247, 255, 0.08),
    rgba(255, 209, 102, 0.08),
    transparent
  );
  transform: rotate(10deg);
  animation: internalScan 5.2s ease-in-out infinite;
  pointer-events: none;
}

.corner {
  position: absolute;
  width: 34px;
  height: 34px;
  border-color: rgba(255, 209, 102, 0.8);
  pointer-events: none;
  z-index: 2;
}
.corner.tl {
  top: 12px;
  left: 12px;
  border-top: 2px solid;
  border-left: 2px solid;
}
.corner.tr {
  top: 12px;
  right: 12px;
  border-top: 2px solid;
  border-right: 2px solid;
}
.corner.bl {
  bottom: 12px;
  left: 12px;
  border-bottom: 2px solid;
  border-left: 2px solid;
}
.corner.br {
  bottom: 12px;
  right: 12px;
  border-bottom: 2px solid;
  border-right: 2px solid;
}

.card-inner {
  position: relative;
  z-index: 3;
  padding: 30px;
}

.form-card {
  background:
    radial-gradient(
      circle at 20% 0%,
      rgba(255, 209, 102, 0.12),
      transparent 32%
    ),
    radial-gradient(
      circle at 88% 12%,
      rgba(34, 247, 255, 0.1),
      transparent 30%
    ),
    linear-gradient(180deg, rgba(9, 16, 24, 0.94), rgba(2, 7, 12, 0.9));
  border-color: rgba(255, 209, 102, 0.32);
}

.form-head {
  margin-bottom: 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.form-copy {
  min-width: 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  font-family: "Orbitron", monospace;
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.35;
  letter-spacing: 0.055em;
  color: #fff;
  text-transform: uppercase;
}

.section-title i {
  flex: 0 0 auto;
  color: var(--gold);
  text-shadow: 0 0 16px rgba(255, 209, 102, 0.55);
}

.form-desc {
  margin: 9px 0 0;
  color: rgba(234, 248, 255, 0.68);
  font-size: 14.5px;
  line-height: 1.55;
  font-weight: 600;
}

.secure-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(52, 255, 138, 0.25);
  background: rgba(52, 255, 138, 0.075);
  color: rgba(52, 255, 138, 0.92);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: inset 0 0 14px rgba(52, 255, 138, 0.05);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  position: relative;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: rgba(234, 248, 255, 0.78);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
}

.field label i {
  width: 17px;
  text-align: center;
  color: var(--gold);
  opacity: 0.92;
}

.input-shell {
  position: relative;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 209, 102, 0.48),
    rgba(34, 247, 255, 0.25),
    rgba(255, 255, 255, 0.08)
  );
  overflow: hidden;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

.input-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.22),
    transparent
  );
  transform: translateX(-120%);
  transition: transform 0.55s ease;
  pointer-events: none;
}

.field:hover .input-shell::before,
.field:focus-within .input-shell::before {
  transform: translateX(120%);
}

input,
select {
  width: 100%;
  height: 56px;
  border: 0;
  outline: 0;
  border-radius: 15px;
  color: var(--text);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.045),
      rgba(255, 255, 255, 0.015)
    ),
    rgba(4, 12, 18, 0.94);
  padding: 0 16px;
  font-family: "Exo 2", sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.46);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

select {
  cursor: pointer;
  color-scheme: dark;
}
input::placeholder {
  color: rgba(234, 248, 255, 0.36);
  font-weight: 600;
}

.money-field input {
  padding-right: 66px;
}

.input-suffix {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: rgba(255, 209, 102, 0.9);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.05em;
  pointer-events: none;
}

.field:focus-within label {
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 209, 102, 0.28);
}
.field:focus-within .input-shell {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255, 209, 102, 0.42),
    0 0 24px rgba(255, 209, 102, 0.12);
}
.field:focus-within input,
.field:focus-within select {
  background: rgba(6, 15, 22, 0.98);
}

.form-note {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(234, 248, 255, 0.62);
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 600;
}

.form-note i {
  color: var(--cyan);
}

/* Button Effects */
.scan-button {
  margin-top: 24px;
  width: 100%;
  height: 66px;
  border: 0;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  color: #041013;
  font-family: "Orbitron", monospace;
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 900;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  background: linear-gradient(
    110deg,
    var(--cyan),
    var(--green),
    var(--gold),
    var(--purple)
  );
  background-size: 240% 100%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35) inset,
    0 0 24px rgba(34, 247, 255, 0.35),
    0 0 38px rgba(255, 209, 102, 0.22);
  animation: buttonGradient 4s ease-in-out infinite;
  transition:
    transform 0.22s ease,
    filter 0.22s ease;
}

.scan-button:hover {
  transform: translateY(-2px) scale(1.01);
  filter: brightness(1.18);
}
.scan-button:active {
  transform: scale(0.985);
}

.scan-button::before {
  content: "";
  position: absolute;
  inset: -80% -30%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.72),
    transparent
  );
  transform: rotate(12deg) translateX(-70%);
  animation: buttonSweep 2.4s ease-in-out infinite;
}

.scan-button::after {
  content: "$ BTC ETH USDT VIP 001101";
  position: absolute;
  inset: auto 0 5px 0;
  color: rgba(0, 20, 24, 0.32);
  font-size: 10px;
  letter-spacing: 0.35em;
  white-space: nowrap;
  animation: ticker 10s linear infinite;
}

.scan-button span {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.scan-button.scanning {
  animation:
    buttonGradient 1s ease-in-out infinite,
    shake 0.26s linear infinite;
}

.side-stack {
  display: grid;
  gap: 20px;
}

/* Notifications */
.notify-card .card-inner {
  padding: 24px;
}
.notify-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  font-family: "Orbitron", monospace;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--orange);
  box-shadow: 0 0 16px var(--orange);
  animation: pulseDot 1.2s infinite;
}

.status-dot.done {
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}

.notify-list {
  min-height: 208px;
  display: grid;
  gap: 10px;
  overflow: hidden;
}

.notify-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(34, 247, 255, 0.14);
  background: rgba(0, 12, 16, 0.52);
  color: rgba(234, 248, 255, 0.86);
  font-weight: 700;
  animation: itemIn 0.45s ease both;
  box-shadow: inset 0 0 18px rgba(34, 247, 255, 0.035);
}

.notify-item i {
  color: var(--gold);
}
.notify-item.done i {
  color: var(--green);
}
.notify-item strong {
  color: var(--cyan);
}

/* Robot AI */
.robot-zone {
  position: fixed;
  right: 24px;
  bottom: 22px;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
}

.robot-zone:hover .chat-bubble {
  border-color: rgba(255, 209, 102, 0.72);
  box-shadow:
    0 0 38px rgba(255, 209, 102, 0.22),
    inset 0 0 18px rgba(255, 209, 102, 0.08);
}

.robot-zone:hover .robot {
  filter: drop-shadow(0 0 28px rgba(255, 209, 102, 0.58))
    drop-shadow(0 0 18px rgba(34, 247, 255, 0.35));
}

.chat-bubble {
  width: min(320px, calc(100vw - 150px));
  min-height: 82px;
  padding: 15px 18px;
  border-radius: 20px 20px 6px 20px;
  color: rgba(234, 248, 255, 0.92);
  font-weight: 700;
  background: linear-gradient(
    135deg,
    rgba(4, 20, 26, 0.9),
    rgba(20, 10, 35, 0.74)
  );
  border: 1px solid rgba(34, 247, 255, 0.34);
  box-shadow:
    0 0 35px rgba(34, 247, 255, 0.15),
    inset 0 0 18px rgba(255, 209, 102, 0.05);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  pointer-events: auto;
}

.chat-bubble::before {
  content: "AI • VIP • DATA • USDT";
  position: absolute;
  inset: auto 0 4px 0;
  color: rgba(52, 255, 138, 0.12);
  font-family: "Orbitron", monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  white-space: nowrap;
  animation: ticker 12s linear infinite;
}

.robot {
  width: 100px;
  height: 118px;
  position: relative;
  animation: robotFloat 3.4s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(34, 247, 255, 0.35));
  pointer-events: auto;
}

.robot.glow {
  filter: drop-shadow(0 0 32px rgba(255, 209, 102, 0.7))
    drop-shadow(0 0 18px rgba(52, 255, 138, 0.45));
}

.robot-ring {
  position: absolute;
  inset: 8px -8px auto -8px;
  height: 110px;
  border: 2px solid rgba(34, 247, 255, 0.28);
  border-top-color: rgba(255, 209, 102, 0.8);
  border-radius: 50%;
  animation: ringRotate 5.5s linear infinite;
}

.bot-head {
  position: absolute;
  left: 15px;
  top: 16px;
  width: 70px;
  height: 58px;
  border-radius: 24px 24px 18px 18px;
  background: linear-gradient(145deg, #ecfbff, #69dfff 38%, #0b5666 100%);
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 -10px 20px rgba(0, 0, 0, 0.24),
    0 0 18px rgba(34, 247, 255, 0.35);
}

.bot-head::before,
.bot-head::after {
  content: "";
  position: absolute;
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: eyeBlink 4s infinite;
}
.bot-head::before {
  left: 18px;
}
.bot-head::after {
  right: 18px;
}

.bot-antenna {
  position: absolute;
  left: 47px;
  top: 0;
  width: 6px;
  height: 20px;
  background: linear-gradient(var(--cyan), var(--gold));
  border-radius: 6px;
}
.bot-antenna::before {
  content: "";
  position: absolute;
  top: -8px;
  left: -5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px var(--gold);
}

.bot-body {
  position: absolute;
  left: 24px;
  bottom: 8px;
  width: 52px;
  height: 48px;
  border-radius: 18px;
  background: linear-gradient(145deg, #ffec99, #ffb703 60%, #8f5d00);
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 -8px 18px rgba(0, 0, 0, 0.24);
}
.bot-body::before {
  content: "₿";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(0, 0, 0, 0.55);
  font-family: "Orbitron", monospace;
  font-weight: 900;
  font-size: 24px;
}

.bot-arm {
  position: absolute;
  bottom: 36px;
  width: 18px;
  height: 8px;
  background: #7deeff;
  border-radius: 10px;
}
.bot-arm.left {
  left: 8px;
  transform: rotate(25deg);
}
.bot-arm.right {
  right: 8px;
  transform: rotate(-25deg);
}

/* Scanner Overlay */
.scanner-overlay,
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 4, 7, 0.72);
  backdrop-filter: blur(12px);
}

.scanner-overlay.active,
.popup-overlay.active {
  display: flex;
}

.scanner-box {
  width: min(560px, 100%);
  text-align: center;
  padding: 34px;
  position: relative;
}

.radar {
  width: 180px;
  height: 180px;
  margin: 0 auto 22px;
  border-radius: 50%;
  border: 1px solid rgba(34, 247, 255, 0.45);
  background:
    radial-gradient(circle, rgba(52, 255, 138, 0.18) 0 8%, transparent 9%),
    repeating-radial-gradient(
      circle,
      transparent 0 24px,
      rgba(34, 247, 255, 0.15) 25px 26px
    ),
    conic-gradient(
      from 0deg,
      rgba(52, 255, 138, 0.72),
      transparent 32%,
      transparent
    );
  box-shadow:
    0 0 40px rgba(34, 247, 255, 0.26),
    inset 0 0 28px rgba(52, 255, 138, 0.12);
  animation: ringRotate 1.3s linear infinite;
  position: relative;
}

.radar::after {
  content: "AI";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: "Orbitron", monospace;
  font-size: 38px;
  text-shadow: 0 0 18px var(--cyan);
  animation: reverseSpin 1.3s linear infinite;
}

.loading-text {
  font-family: "Orbitron", monospace;
  color: var(--gold);
  letter-spacing: 0.08em;
  min-height: 28px;
  text-shadow: 0 0 14px rgba(255, 209, 102, 0.5);
}

.progress-wrap {
  margin-top: 18px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(34, 247, 255, 0.35);
  background: rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--gold));
  box-shadow: 0 0 18px rgba(34, 247, 255, 0.55);
  transition: width 0.12s linear;
}

.percent-text {
  margin-top: 10px;
  color: var(--cyan);
  font-family: "Orbitron", monospace;
  font-size: 18px;
  font-weight: 800;
}

/* Result Popup */
.result-popup {
  width: min(720px, 100%);
  transform: scale(0.86);
  opacity: 0;
  transition:
    transform 0.35s ease,
    opacity 0.35s ease;
  border-color: var(--rank-color);
  box-shadow:
    0 0 44px var(--rank-glow),
    0 22px 80px rgba(0, 0, 0, 0.7);
}

.popup-overlay.active .result-popup {
  transform: scale(1);
  opacity: 1;
}

.result-popup .section-title {
  margin-bottom: 22px;
}

.result-popup.rank-chi-ton {
  animation: rainbowBorder 3s linear infinite;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.result-item {
  border: 1px solid rgba(34, 247, 255, 0.16);
  background: rgba(0, 14, 18, 0.58);
  border-radius: 14px;
  padding: 13px 14px;
}

.result-item span {
  display: block;
  color: rgba(234, 248, 255, 0.58);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 3px;
}

.result-item strong {
  font-size: 18px;
  color: #fff;
}

.rank-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #061013;
  background: var(--rank-color);
  box-shadow: 0 0 18px var(--rank-glow);
  font-family: "Orbitron", monospace;
  font-weight: 900;
}

.price-box {
  margin: 18px 0;
  padding: 20px;
  text-align: center;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 0%, var(--rank-glow), transparent 58%),
    rgba(0, 8, 12, 0.74);
  border: 1px solid var(--rank-color);
  box-shadow:
    0 0 32px var(--rank-glow),
    inset 0 0 24px rgba(255, 255, 255, 0.035);
}

.price-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
}

.price-value {
  margin-top: 8px;
  font-family: "Orbitron", monospace;
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 900;
  color: var(--rank-color);
  text-shadow:
    0 0 18px var(--rank-glow),
    0 0 34px var(--rank-glow);
  word-break: break-word;
}

.note {
  color: rgba(234, 248, 255, 0.7);
  line-height: 1.6;
  border-left: 3px solid var(--rank-color);
  padding: 10px 13px;
  background: rgba(255, 255, 255, 0.035);
  border-radius: 10px;
}

.popup-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.action-link,
.close-btn {
  flex: 1 1 210px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-family: "Orbitron", monospace;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.action-link {
  color: #071014;
  background: linear-gradient(
    110deg,
    var(--rank-color),
    var(--gold),
    var(--cyan)
  );
  box-shadow: 0 0 26px var(--rank-glow);
}

.close-btn {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.action-link:hover,
.close-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
}

/* Toast */
.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 200;
  width: min(430px, calc(100vw - 40px));
  padding: 15px 18px;
  display: none;
  align-items: center;
  gap: 12px;
  border-radius: 16px;
  color: #fff;
  font-weight: 800;
  background: rgba(34, 5, 9, 0.9);
  border: 1px solid rgba(255, 77, 109, 0.55);
  box-shadow: 0 0 30px rgba(255, 77, 109, 0.25);
  backdrop-filter: blur(14px);
}
.toast.show {
  display: flex;
  animation:
    toastIn 0.35s ease,
    shake 0.28s linear 1;
}
.toast i {
  color: var(--orange);
  text-shadow: 0 0 12px var(--orange);
}

/* Rank classes */
.rank-so-cap {
  --rank-color: #34ffb6;
  --rank-glow: rgba(52, 255, 182, 0.42);
}
.rank-trung-cap {
  --rank-color: #22f7ff;
  --rank-glow: rgba(34, 247, 255, 0.46);
}
.rank-cao-cap {
  --rank-color: #b75cff;
  --rank-glow: rgba(183, 92, 255, 0.48);
}
.rank-tong-su {
  --rank-color: #ffb703;
  --rank-glow: rgba(255, 183, 3, 0.5);
}
.rank-vuong-gia {
  --rank-color: #ff4d6d;
  --rank-glow: rgba(255, 77, 109, 0.5);
}
.rank-chi-ton {
  --rank-color: #ffd166;
  --rank-glow: rgba(255, 209, 102, 0.55);
}
.result-popup.rank-chi-ton .rank-tag {
  color: #170b00;
  background: linear-gradient(110deg, #ffd166, #34ff8a, #22f7ff);
  text-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.42);
}

@keyframes gridMove {
  to {
    background-position: 240px 240px;
  }
}
@keyframes indicatorSlide {
  to {
    transform: translate3d(-34px, 18px, 0) scale(1.04);
  }
}
@keyframes globalScan {
  to {
    top: 120%;
  }
}
@keyframes noiseShift {
  to {
    transform: translate(2%, -2%);
  }
}
@keyframes glowDrift {
  to {
    --x1: 70%;
    --y1: 50%;
    --x2: 24%;
    --y2: 76%;
  }
}
@keyframes digitalFall {
  to {
    transform: translate3d(0, 125vh, 0);
  }
}
@keyframes coinFall {
  to {
    transform: translate3d(26px, 125vh, 0) rotate(720deg);
  }
}
@keyframes streamMove {
  0%,
  100% {
    transform: translateX(-70px) scaleX(0.6);
    opacity: 0.18;
  }
  50% {
    transform: translateX(90px) scaleX(1.25);
    opacity: 0.72;
  }
}
@keyframes titleFlicker {
  0%,
  100% {
    opacity: 1;
  }
  45% {
    opacity: 0.96;
  }
  46% {
    opacity: 0.78;
  }
  47% {
    opacity: 1;
  }
  73% {
    opacity: 0.92;
  }
  74% {
    opacity: 1;
  }
}
@keyframes glitchA {
  0%,
  92%,
  100% {
    transform: translate(2px, -1px);
  }
  94% {
    transform: translate(8px, 1px);
  }
  96% {
    transform: translate(-6px, -2px);
  }
}
@keyframes glitchB {
  0%,
  88%,
  100% {
    transform: translate(-2px, 1px);
  }
  90% {
    transform: translate(-9px, 2px);
  }
  92% {
    transform: translate(5px, -2px);
  }
}
@keyframes glossy {
  0%,
  45% {
    transform: skewX(-22deg) translateX(-140%);
  }
  65%,
  100% {
    transform: skewX(-22deg) translateX(140%);
  }
}
@keyframes ticker {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}
@keyframes cardData {
  to {
    background-position: 220px 160px;
  }
}
@keyframes internalScan {
  0%,
  40% {
    top: -130%;
  }
  75%,
  100% {
    top: 150%;
  }
}
@keyframes buttonGradient {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
@keyframes buttonSweep {
  0% {
    transform: rotate(12deg) translateX(-80%);
  }
  55%,
  100% {
    transform: rotate(12deg) translateX(80%);
  }
}
@keyframes pulseDot {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.18);
    opacity: 1;
  }
}
@keyframes itemIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes robotFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}
@keyframes ringRotate {
  to {
    transform: rotate(360deg);
  }
}
@keyframes reverseSpin {
  to {
    transform: rotate(-360deg);
  }
}
@keyframes eyeBlink {
  0%,
  92%,
  100% {
    transform: scaleY(1);
  }
  95% {
    transform: scaleY(0.15);
  }
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-2px);
  }
  75% {
    transform: translateX(2px);
  }
}
@keyframes rainbowBorder {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 980px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
  .side-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .robot-zone {
    right: 16px;
    bottom: 16px;
  }
  .robot {
    width: 84px;
    height: 100px;
  }
  .bot-head {
    width: 60px;
    height: 50px;
    left: 12px;
  }
  .bot-body {
    width: 46px;
    height: 42px;
    left: 19px;
  }
  .chat-bubble {
    width: min(290px, calc(100vw - 125px));
  }
}

@media (max-width: 720px) {
  .page {
    width: min(100% - 22px, 1280px);
    padding-top: 18px;
    padding-bottom: 160px;
  }
  .form-grid,
  .result-grid,
  .side-stack {
    grid-template-columns: 1fr;
  }
  .card-inner {
    padding: 22px;
  }
  .notify-card .card-inner {
    padding: 20px;
  }
  .hero-main {
    letter-spacing: 0.02em;
  }
  .hero-subline {
    padding: 9px 16px;
    letter-spacing: 0.08em;
  }
  .system-badge {
    font-size: 10px;
    padding: 7px 11px;
  }
  .scan-button {
    height: 60px;
    letter-spacing: 0.06em;
  }
  .robot-zone {
    align-items: flex-end;
    gap: 8px;
    right: 10px;
    bottom: 10px;
  }
  .chat-bubble {
    width: min(245px, calc(100vw - 98px));
    min-height: 70px;
    padding: 12px 14px;
    font-size: 14px;
  }
  .robot {
    width: 72px;
    height: 88px;
  }
  .robot-ring {
    height: 78px;
  }
  .bot-head {
    width: 52px;
    height: 44px;
    left: 10px;
    top: 13px;
    border-radius: 18px 18px 14px 14px;
  }
  .bot-head::before,
  .bot-head::after {
    top: 18px;
    width: 9px;
    height: 9px;
  }
  .bot-body {
    width: 40px;
    height: 36px;
    left: 16px;
    bottom: 8px;
  }
  .bot-arm {
    display: none;
  }
  .coin:nth-child(n + 18),
  .rain-symbol:nth-child(n + 36),
  .stream-line:nth-child(n + 14) {
    display: none;
  }
  .toast {
    top: 14px;
    right: 12px;
  }
}

/* Mobile Smoothness & Touch Upgrade - giữ nguyên logic cũ */
:root {
  --vh: 1vh;
}

html,
body {
  width: 100%;
  max-width: 100%;
  min-height: calc(var(--vh, 1vh) * 100);
  overscroll-behavior-x: none;
  -webkit-text-size-adjust: 100%;
}

body.modal-open {
  overflow: hidden;
  touch-action: none;
}

button,
a,
input,
select,
.scan-button,
.close-btn,
.action-link {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

input,
select,
textarea,
button {
  font-size: 16px;
}

select,
input {
  -webkit-appearance: none;
  appearance: none;
}

select {
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(34, 247, 255, 0.95) 50%),
    linear-gradient(135deg, rgba(34, 247, 255, 0.95) 50%, transparent 50%),
    linear-gradient(90deg, transparent, transparent);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%,
    100% 0;
  background-size:
    6px 6px,
    6px 6px,
    2.7em 2.7em;
  background-repeat: no-repeat;
  padding-right: 44px;
}

.scanner-overlay,
.popup-overlay {
  min-height: calc(var(--vh, 1vh) * 100);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-top: max(24px, env(safe-area-inset-top));
  padding-right: max(24px, env(safe-area-inset-right));
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  padding-left: max(24px, env(safe-area-inset-left));
}

.scanner-box,
.result-popup {
  max-height: calc(
    (var(--vh, 1vh) * 100) - 48px - env(safe-area-inset-top) -
      env(safe-area-inset-bottom)
  );
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.result-popup .card-inner,
.scanner-box {
  overflow-wrap: anywhere;
}

.robot-zone,
.chat-bubble,
.robot {
  -webkit-user-select: none;
  user-select: none;
}

.modal-open .robot-zone {
  opacity: 0.18;
  pointer-events: none;
}

.scan-button,
.action-link,
.close-btn {
  min-height: 52px;
}

.scan-button:disabled {
  cursor: wait;
  opacity: 0.82;
  filter: saturate(0.9);
}

@media (hover: none) {
  .hud-card:hover,
  .scan-button:hover,
  .action-link:hover,
  .close-btn:hover {
    transform: none;
  }
}

@media (max-width: 720px) {
  body {
    min-height: calc(var(--vh, 1vh) * 100);
  }

  .background-system {
    min-height: calc(var(--vh, 1vh) * 100);
  }

  .page {
    width: 100%;
    padding: max(16px, env(safe-area-inset-top)) 11px
      calc(112px + env(safe-area-inset-bottom));
  }

  header {
    padding-top: 6px;
    padding-bottom: 22px;
  }

  .hero-main {
    font-size: clamp(27px, 10vw, 42px);
    line-height: 1.12;
    overflow-wrap: anywhere;
    word-break: keep-all;
  }

  .hero-subline {
    font-size: 13px;
    line-height: 1.45;
    padding: 9px 14px;
  }

  .subtitle {
    font-size: 16px;
    padding: 0 4px;
  }

  .hero-contact {
    width: min(100%, 96%);
    padding: 11px 13px;
    border-radius: 18px;
    gap: 9px;
  }

  .hero-contact-note {
    font-size: 13.5px;
    line-height: 1.45;
  }

  .ticker-line {
    height: 30px;
    font-size: 10px;
  }

  .main-layout {
    gap: 16px;
  }

  .hud-card {
    border-radius: 18px;
    clip-path: polygon(
      0 14px,
      14px 0,
      calc(100% - 14px) 0,
      100% 14px,
      100% calc(100% - 14px),
      calc(100% - 14px) 100%,
      14px 100%,
      0 calc(100% - 14px)
    );
    backdrop-filter: blur(12px);
  }

  .card-inner {
    padding: 18px 15px;
  }

  .form-head {
    margin-bottom: 18px;
    flex-direction: column;
    gap: 10px;
  }

  .section-title {
    gap: 9px;
    font-size: 15px;
    line-height: 1.35;
  }

  .form-desc {
    font-size: 13.5px;
  }

  .secure-chip {
    font-size: 11.5px;
    padding: 8px 10px;
  }

  .form-grid {
    gap: 14px;
  }

  .field label {
    font-size: 13.5px;
    margin-bottom: 7px;
  }

  input,
  select {
    height: 52px;
    border-radius: 13px;
    padding-left: 14px;
    font-size: 16px;
  }

  .money-field input {
    padding-right: 58px;
  }
  .input-suffix {
    right: 13px;
    font-size: 12px;
  }

  .input-shell {
    border-radius: 14px;
  }

  .scan-button {
    margin-top: 18px;
    height: 58px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.25;
    letter-spacing: 0.045em;
  }

  .scan-button span {
    width: 100%;
    padding: 0 10px;
    gap: 8px;
  }

  .notify-list {
    min-height: auto;
    max-height: 260px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 2px;
  }

  .notify-item {
    padding: 10px;
    border-radius: 12px;
    line-height: 1.25;
  }

  .robot-zone {
    right: max(8px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
  }

  .robot-zone .chat-bubble,
  .robot-zone .robot {
    pointer-events: auto;
  }

  .chat-bubble {
    width: min(220px, calc(100vw - 92px));
    min-height: 58px;
    padding: 10px 12px 18px;
    font-size: 13px;
    line-height: 1.3;
  }

  .robot {
    opacity: 0.86;
  }

  .scanner-overlay,
  .popup-overlay {
    align-items: flex-start;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top))
      max(10px, env(safe-area-inset-right))
      max(12px, env(safe-area-inset-bottom))
      max(10px, env(safe-area-inset-left));
  }

  .scanner-box,
  .result-popup {
    width: 100%;
    max-height: calc(
      (var(--vh, 1vh) * 100) - 24px - env(safe-area-inset-top) -
        env(safe-area-inset-bottom)
    );
  }

  .scanner-box {
    padding: 24px 18px;
    margin: auto 0;
  }

  .radar {
    width: 132px;
    height: 132px;
    margin-bottom: 16px;
  }

  .radar::after {
    font-size: 30px;
  }

  .result-popup .card-inner {
    padding: 18px 14px;
  }

  .result-grid {
    gap: 10px;
    margin: 14px 0;
  }

  .result-item {
    padding: 11px 12px;
  }

  .result-item strong {
    font-size: 16px;
  }

  .rank-tag {
    max-width: 100%;
    white-space: normal;
    justify-content: center;
    line-height: 1.25;
  }

  .price-box {
    margin: 14px 0;
    padding: 16px 12px;
  }

  .price-value {
    font-size: clamp(24px, 9vw, 36px);
    line-height: 1.22;
  }

  .note {
    font-size: 14px;
    line-height: 1.5;
  }

  .popup-actions {
    gap: 10px;
    margin-top: 16px;
  }

  .action-link,
  .close-btn {
    flex-basis: 100%;
    min-height: 50px;
    border-radius: 13px;
    font-size: 13px;
    line-height: 1.25;
    padding: 10px;
  }

  .toast {
    top: max(10px, env(safe-area-inset-top));
    left: 10px;
    right: 10px;
    width: auto;
    padding: 13px 14px;
    font-size: 14px;
    z-index: 250;
  }

  .hud-card::after,
  .scan-button::before {
    animation-duration: 7s;
  }
}

@media (max-width: 420px) {
  .system-badge {
    max-width: 100%;
    white-space: normal;
    justify-content: center;
  }

  .hero-main {
    font-size: clamp(24px, 10vw, 36px);
  }

  .hero-subline {
    font-size: 12px;
    letter-spacing: 0.06em;
    padding: 8px 12px;
  }

  .chat-bubble {
    display: none;
  }

  .robot {
    width: 62px;
    height: 76px;
  }

  .robot-ring {
    height: 66px;
  }

  .bot-head {
    width: 44px;
    height: 38px;
    left: 9px;
    top: 12px;
  }

  .bot-head::before,
  .bot-head::after {
    top: 15px;
  }

  .bot-body {
    width: 34px;
    height: 31px;
    left: 14px;
  }

  .bot-body::before {
    font-size: 18px;
  }
}

@media (max-width: 360px) {
  .card-inner,
  .result-popup .card-inner {
    padding-left: 12px;
    padding-right: 12px;
  }

  .section-title {
    font-size: 13px;
  }

  .scan-button {
    font-size: 13px;
    letter-spacing: 0.04em;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
