@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&display=swap");

:root {
  --body-font: "Space Grotesk", "Aptos", "Segoe UI", sans-serif;
  --display-font: "Orbitron", "Space Grotesk", "Aptos", "Segoe UI", sans-serif;
  --bg: #09111f;
  --panel: rgba(13, 24, 43, 0.88);
  --panel-strong: rgba(10, 18, 33, 0.95);
  --text: #edf4ff;
  --muted: #98a9c2;
  --accent: #67f2c8;
  --accent-strong: #1fd6a3;
  --warning: #ffbb55;
  --danger: #ff6e7f;
  --safe: #50e3a4;
  --blue: #5a8cff;
  --violet: #8d6bff;
  --line: rgba(255, 255, 255, 0.09);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 18px; -webkit-overflow-scrolling: touch; }
.hidden { display: none !important; }
body {
  margin: 0; min-height: 100vh; color: var(--text);
  background: linear-gradient(145deg, #060b12 0%, #0a1420 46%, #111827 100%);
  font-family: var(--body-font);
  overscroll-behavior-y: contain;
  text-rendering: optimizeLegibility;
}

.page-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 44px; }
.top-auth { display: flex; justify-content: flex-start; align-items: center; gap: 10px; flex-wrap: nowrap; min-height: 52px; margin-bottom: 14px; }
.top-auth-spacer { flex: 1; min-width: 0; }
.top-action-button { display: inline-grid; place-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.045); color: var(--text); font: inherit; font-weight: 800; line-height: 1; text-align: center; cursor: pointer; transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease; }
.top-action-button:hover:not(:disabled) { transform: translateY(-1px); border-color: rgba(103, 242, 200, 0.5); background: rgba(103, 242, 200, 0.1); }
.top-action-button:disabled { cursor: default; color: var(--accent); border-color: rgba(103, 242, 200, 0.36); background: rgba(103, 242, 200, 0.08); }
.signup-terms { flex-basis: 100%; margin: 0; color: var(--muted); font-size: 0.82rem; text-align: right; }
.signup-terms a { color: var(--text); text-decoration: none; }
.signup-terms a:hover { color: var(--text); text-decoration: none; }

.hero, .airdrop-panel, .scanner-panel, .results-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); backdrop-filter: blur(12px); box-shadow: var(--shadow); }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.85fr); gap: 34px; min-height: min(760px, calc(100vh - 112px)); padding: 42px; overflow: hidden; align-items: center; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, rgba(90, 140, 255, 0.18), transparent 34%), linear-gradient(260deg, rgba(103, 242, 200, 0.12), transparent 40%); }
.hero-copy, .spline-showcase { position: relative; z-index: 1; }
.hero-kicker { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-copy h1 { font-family: var(--display-font); margin: 10px 0 14px; font-size: clamp(3.35rem, 7vw, 6.6rem); line-height: 0.9; letter-spacing: 0; font-variant: normal; max-width: 760px; }
.hero-problem { font-family: var(--display-font); margin: 0 0 12px; color: var(--text); font-size: 1.25rem; font-weight: 800; line-height: 1.35; max-width: 680px; }
.eyebrow { font-family: var(--display-font); margin: 0; color: var(--accent); text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.74rem; }
.powered-by-solana { font-family: var(--display-font); display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; line-height: 1; white-space: nowrap; }
.powered-by-solana span { display: inline-flex; align-items: center; }
.powered-by-solana svg { width: 38px; height: 24px; display: block; flex: 0 0 auto; transform: translateY(1px); filter: drop-shadow(0 0 8px rgba(103, 242, 200, 0.18)); }
.hero-text, .story-card p, .airdrop-copy, .visual-copy, .result-support, .decision-text { color: var(--muted); line-height: 1.65; }
.hero-text { max-width: 680px; font-size: 1.08rem; }
.hero-actions, .button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.primary-button, .secondary-button, .sample-button, .upload-chip, .danger-button { border-radius: 8px; border: 1px solid transparent; font: inherit; cursor: pointer; transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease; }
.primary-button { padding: 14px 20px; background: linear-gradient(135deg, var(--accent) 0%, #84d9ff 100%); color: #041019; font-weight: 700; text-decoration: none; box-shadow: 0 18px 40px rgba(31, 214, 163, 0.18); }
.secondary-button { padding: 14px 20px; background: rgba(255, 255, 255, 0.04); border-color: var(--line); color: var(--text); text-decoration: none; }
.danger-button { padding: 14px 20px; background: rgba(255, 110, 127, 0.12); border-color: rgba(255, 110, 127, 0.34); color: var(--danger); font-weight: 800; }
.sample-button, .upload-chip { padding: 10px 14px; background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.08); color: var(--text); }
#scanner .sample-button, #scanner .upload-chip, #scanner .secondary-button, #scanner .primary-button, #scanner .scan-status { font-family: var(--body-font); }
.primary-button:hover, .secondary-button:hover, .sample-button:hover, .upload-chip:hover, .danger-button:hover { transform: translateY(-1px); }

.hero-card, .story-card, .airdrop-card, .scanner-card, .result-card, .toggle-card { border: 1px solid var(--line); border-radius: 8px; background: var(--panel-strong); }
.hero-card, .story-card, .airdrop-card, .scanner-card, .result-card { padding: 22px; }
.hero-card-label, .visual-label, .sample-title, .decision-label, .tier-rank, .engine-label { color: var(--accent); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.16em; }
.hero-card ul { padding-left: 20px; color: var(--muted); line-height: 1.8; }
.hero-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 620px; margin-top: 28px; }
.hero-metrics div { padding: 14px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; background: rgba(255, 255, 255, 0.045); }
.hero-metrics span { display: block; color: var(--accent); font-family: var(--display-font); font-size: 1rem; font-weight: 800; }
.hero-metrics p { margin: 6px 0 0; color: var(--muted); font-size: 0.88rem; }
.spline-showcase { min-height: 530px; padding: 0; overflow: hidden; transform-style: preserve-3d; background: #070b12; }
.spline-showcase::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 1; background: url("./safescan-3d-fallback.png") center / cover no-repeat; transition: opacity 0.42s ease; }
.spline-showcase::after { content: none; }
.three-scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 0.35s ease; cursor: grab; touch-action: none; z-index: 1; }
.three-scene:active { cursor: grabbing; }
.spline-showcase.webgl-ready .three-scene { opacity: 1; }
.spline-showcase.webgl-ready::before,
.spline-showcase.spline-loaded::before { opacity: 0; }
.spline-showcase.webgl-ready .device-orbit,
.spline-showcase.spline-loaded .device-orbit,
.spline-showcase.spline-loaded .three-scene { opacity: 0; pointer-events: none; }
.spline-showcase.webgl-fallback .device-orbit { opacity: 1; }
.spline-embed, .spline-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.spline-embed:not(:empty) ~ .device-orbit { opacity: 0; pointer-events: none; }
.device-orbit { position: absolute; inset: 24px; display: grid; place-items: center; perspective: 1100px; opacity: 1; }
.device-orbit::before { content: ""; position: absolute; width: 72%; aspect-ratio: 1; border: 1px solid rgba(103, 242, 200, 0.2); border-radius: 50%; transform: rotateX(68deg); box-shadow: inset 0 0 36px rgba(103, 242, 200, 0.08); }
.phone-model { position: relative; width: min(68%, 300px); aspect-ratio: 0.52; padding: 22px 18px 18px; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 36px; background: linear-gradient(145deg, #111b2b, #05080d); box-shadow: 0 48px 90px rgba(0, 0, 0, 0.45), inset 0 0 0 8px rgba(255, 255, 255, 0.035); transform: rotateY(-18deg) rotateX(10deg); animation: modelFloat 7s ease-in-out infinite; }
.phone-sensor { width: 72px; height: 7px; margin: 0 auto 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); }
.screen-grid { display: grid; place-items: center; height: 68%; padding: 22px; border: 1px solid rgba(114, 255, 212, 0.1); border-radius: 24px; background: #000307; }
.screen-grid img { width: 100%; max-width: 210px; border-radius: 20px; display: block; }
.screen-verdict { margin-top: 18px; padding: 12px; border-radius: 8px; background: rgba(80, 227, 164, 0.13); border: 1px solid rgba(80, 227, 164, 0.32); color: var(--safe); font-family: var(--display-font); font-weight: 800; text-align: center; letter-spacing: 0.08em; }
.scan-beam { position: absolute; width: 76%; height: 2px; top: 46%; background: linear-gradient(90deg, transparent, var(--accent), #ffffff, var(--accent), transparent); box-shadow: 0 0 28px rgba(103, 242, 200, 0.75); animation: showcaseSweep 3.8s ease-in-out infinite; }
.model-caption { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; padding: 16px 18px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 16px; background: rgba(5, 8, 13, 0.72); backdrop-filter: blur(14px); opacity: 1; pointer-events: none; }
.model-caption p { margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.48; }
.model-caption-label { margin-bottom: 6px !important; color: var(--accent) !important; font-family: var(--display-font); font-size: 0.9rem !important; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.story-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 22px 0; }
.scanner-panel, .airdrop-panel, .results-panel { padding: 28px; margin-top: 20px; }
.panel-header, .results-header, .decision-bar, .engine-header { display: flex; justify-content: space-between; gap: 16px; align-items: center; }

.story-card h2, .panel-header h2, .scanner-card label, .visual-label, .results-header h2, .result-card h3, .engine-label, .tier-rank, .tier-reward, .primary-button, .secondary-button, .sample-button, .danger-button, .top-action-button, .token-copy-button, .airdrop-status, .verdict-badge { font-family: var(--display-font); }
.airdrop-panel > .panel-header h2, #currentTierName, .airdrop-grid h3 { font-family: var(--body-font); }

.toggle-card { display: inline-flex; gap: 14px; align-items: center; padding: 12px 16px; color: var(--muted); }
.toggle-card input { display: none; }
.toggle-slider { width: 58px; height: 32px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); position: relative; }
.toggle-slider::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: white; transition: transform 0.18s ease; }
.toggle-card input:checked + .toggle-slider { background: rgba(103, 242, 200, 0.35); }
.toggle-card input:checked + .toggle-slider::after { transform: translateX(26px); }

.scanner-grid, .results-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 18px; margin-top: 22px; }
.scanner-card label { display: block; margin-bottom: 10px; font-weight: 700; }
input[type="text"] { width: 100%; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); color: var(--text); font: inherit; }

.airdrop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.token-strip { display: grid; grid-template-columns: 0.36fr 0.2fr 1fr; gap: 16px; align-items: center; margin-top: 22px; padding: 18px 20px; border: 1px solid rgba(103, 242, 200, 0.2); border-radius: 18px; background: radial-gradient(circle at top right, rgba(103, 242, 200, 0.1), transparent 35%), rgba(255, 255, 255, 0.035); }
.airdrop-progress, .wallet-panel, .referral-panel { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; margin-top: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, 0.035); }
.airdrop-progress > div:first-child > .token-label,
.airdrop-progress > div:first-child > .eyebrow,
.airdrop-progress > div:first-child > h3 { margin-bottom: 8px; }
.airdrop-progress > div:first-child > h3 { margin-top: 0; font-size: 1.45rem; }
.airdrop-progress > div:first-child > .airdrop-copy { margin: 0; }
.progress-stats, .wallet-actions, .referral-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.progress-stats div { display: grid; place-items: center; min-width: 112px; min-height: 72px; padding: 12px 14px; border: 1px solid rgba(103, 242, 200, 0.18); border-radius: 16px; background: rgba(103, 242, 200, 0.07); text-align: center; }
.progress-stats span { display: block; color: var(--text); font-weight: 800; font-size: 1.15rem; }
.progress-stats p { margin: 4px 0 0; color: var(--muted); font-size: 0.82rem; }
.referral-link { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.referral-copy-button { min-width: 178px; }
.wallet-status { margin: 0 0 8px; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.token-label, .token-pill, .token-ticker, .token-address { margin: 0; }
.token-pill, .token-ticker { width: fit-content; padding: 12px 16px; border: 1px solid rgba(103, 242, 200, 0.22); border-radius: 14px; background: rgba(103, 242, 200, 0.08); color: var(--text); font-weight: 900; letter-spacing: 0.12em; }
.token-pill { letter-spacing: 0; }
.token-label { color: var(--accent); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 6px; }
.token-address-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: stretch; }
.token-address { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0, 0, 0, 0.16); color: var(--text); font-family: "IBM Plex Mono", monospace; font-size: 0.92rem; overflow-wrap: anywhere; }
.token-address-copied { animation: tokenCopiedPulse 0.9s ease-out; }
.token-copy-button { padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(103, 242, 200, 0.24); background: rgba(103, 242, 200, 0.08); color: var(--accent); font: inherit; font-weight: 800; cursor: pointer; }
.copy-toast { position: fixed; top: 22px; left: 50%; z-index: 1200; transform: translate(-50%, -10px); opacity: 0; pointer-events: none; padding: 10px 14px; border: 1px solid rgba(103, 242, 200, 0.34); border-radius: 12px; background: rgba(7, 17, 29, 0.94); color: var(--accent); font-weight: 800; box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28); transition: opacity 0.18s ease, transform 0.18s ease; }
.copy-toast.visible { opacity: 1; transform: translate(-50%, 0); }

.airdrop-card h3 { margin: 8px 0 10px; font-size: 1.35rem; }
.airdrop-card label { display: block; margin: 18px 0 10px; font-weight: 700; }
.airdrop-status, .tier-reward, .profile-tier { padding: 9px 12px; border-radius: 999px; border: 1px solid rgba(103, 242, 200, 0.22); background: rgba(103, 242, 200, 0.08); color: var(--accent); font-size: 0.82rem; font-weight: 700; }
.airdrop-status.signed-in { color: var(--safe); border-color: rgba(80, 227, 164, 0.3); background: rgba(80, 227, 164, 0.12); }

.top-profile { display: flex; align-items: center; gap: 12px; flex-shrink: 0; padding: 10px 12px 10px 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(10, 18, 33, 0.9); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22); }
.profile-name, .profile-email { margin: 0; line-height: 1.25; }
.profile-name { font-weight: 800; }
.profile-email { color: var(--muted); font-size: 0.86rem; word-break: break-word; }
.profile-tier { display: inline-block; }
.sign-out-form { margin: 0; }
.sign-out-button, .admin-dashboard-button, .profile-button { display: inline-grid; place-items: center; min-height: 38px; padding: 9px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--text); font: inherit; font-size: 0.86rem; line-height: 1; text-align: center; cursor: pointer; text-decoration: none; }
.profile-button { border-color: rgba(103, 242, 200, 0.32); background: rgba(103, 242, 200, 0.09); color: var(--accent); font-weight: 800; }
.admin-dashboard-button { border-color: rgba(124, 58, 237, 0.5); background: rgba(124, 58, 237, 0.15); color: #f7f2ff; font-weight: 800; }
.admin-role-badge { padding: 7px 9px; border-radius: 999px; border: 1px solid rgba(255, 187, 85, 0.45); background: rgba(255, 187, 85, 0.13); color: var(--warning); font-size: 0.7rem; font-weight: 900; letter-spacing: 0.08em; }

.tier-card { display: flex; flex-direction: column; min-height: 230px; position: relative; transition: border-color 0.18s ease, transform 0.18s ease, opacity 0.18s ease; }
.tier-card::after { content: "Locked"; position: absolute; top: 16px; right: 16px; padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); color: var(--muted); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.tier-card.unlocked { border-color: rgba(80, 227, 164, 0.42); background: radial-gradient(circle at top right, rgba(80, 227, 164, 0.12), transparent 38%), var(--panel-strong); }
.tier-card.unlocked::after { content: "Unlocked"; color: var(--safe); border-color: rgba(80, 227, 164, 0.35); background: rgba(80, 227, 164, 0.12); }
.tier-card.current { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22); }
.tier-card p { color: var(--muted); line-height: 1.55; }
.tier-reward { margin-top: auto; width: fit-content; }

.scan-mode-bar, .sample-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.scan-mode-bar { margin-bottom: 14px; }
.scan-status { margin-top: 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--muted); }

.upload-preview { display: grid; grid-template-columns: 96px 1fr; gap: 14px; margin-top: 14px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.upload-preview img { width: 96px; height: 96px; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
.preview-title { margin: 0 0 6px; font-weight: 700; }
.preview-copy { margin: 0; color: var(--muted); line-height: 1.5; }

.threat-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.threat-tag { padding: 7px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); color: var(--text); font-size: 0.78rem; }
.sample-block { margin-top: 20px; }

.visual-card { display: grid; place-items: center; text-align: center; }
.qr-frame { position: relative; width: min(100%, 320px); aspect-ratio: 1; margin: 10px auto 18px; border-radius: 30px; background: #02060b; border: 1px solid rgba(103, 242, 200, 0.2); overflow: hidden; transform: translate3d(0, 0, 0); contain: layout paint; transition: border-color 0.25s ease, box-shadow 0.25s ease; }
.qr-frame.scanning { border-color: rgba(103, 242, 200, 0.8); box-shadow: inset 0 0 0 1px rgba(103, 242, 200, 0.25), 0 0 26px rgba(103, 242, 200, 0.18); }
.qr-grid { display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr); gap: 10px; width: 74%; height: 74%; margin: 13%; transform: translate3d(0, 0, 0); will-change: transform; }
.qr-grid span { min-width: 0; min-height: 0; aspect-ratio: 1; transform: translate3d(0, 0, 0); transition: background 0.25s ease, transform 0.25s ease; }
.qr-tile { border-radius: 2px; background: #67f2c8; box-shadow: 0 0 14px rgba(103, 242, 200, 0.45); }
.qr-tile.qr-light { background: #8ffff0; box-shadow: 0 0 16px rgba(143, 255, 240, 0.52); }
.qr-tile.qr-white { background: #dffdf7; box-shadow: 0 0 16px rgba(223, 253, 247, 0.52); }
.qr-frame.scanning .qr-grid .qr-tile:nth-child(3n) { animation: qrPulse 3.6s infinite ease-in-out; }
.scan-line { position: absolute; left: 8%; right: 8%; top: 9%; height: 3px; background: linear-gradient(90deg, transparent, var(--accent), transparent); box-shadow: 0 0 18px rgba(103, 242, 200, 0.7); will-change: transform, opacity; transform: translate3d(0, 0, 0); animation: sweep 2.6s infinite cubic-bezier(0.4, 0, 0.2, 1); }

@keyframes sweep { 0% { opacity: 0; transform: translate3d(0, 0, 0); } 12% { opacity: 1; } 50% { opacity: 1; transform: translate3d(0, 255px, 0); } 88% { opacity: 1; } 100% { opacity: 0; transform: translate3d(0, 0, 0); } }
@keyframes qrPulse { 0%, 100% { transform: scale(1); } 45% { transform: scale(0.94); } }
@keyframes modelFloat { 0%, 100% { transform: rotateY(-18deg) rotateX(10deg) translateY(0); } 50% { transform: rotateY(-10deg) rotateX(13deg) translateY(-16px); } }
@keyframes showcaseSweep { 0%, 100% { opacity: 0.1; transform: translateY(-150px) rotate(-8deg); } 45%, 58% { opacity: 1; } 50% { transform: translateY(150px) rotate(-8deg); } }
@keyframes tokenCopiedPulse { 0% { border-color: rgba(103, 242, 200, 0.24); background: rgba(0, 0, 0, 0.16); box-shadow: none; } 22% { border-color: rgba(103, 242, 200, 0.95); background: rgba(103, 242, 200, 0.16); box-shadow: 0 0 0 3px rgba(103, 242, 200, 0.16), 0 0 28px rgba(103, 242, 200, 0.26); } 100% { border-color: var(--line); background: rgba(0, 0, 0, 0.16); box-shadow: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.001ms !important; }
  .scan-line { animation-duration: 2.6s !important; animation-iteration-count: infinite !important; }
}

.verdict-badge { padding: 12px 16px; border-radius: 999px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.verdict-safe { background: rgba(80, 227, 164, 0.16); color: var(--safe); }
.verdict-caution { background: rgba(255, 187, 85, 0.16); color: var(--warning); }
.verdict-dangerous { background: rgba(255, 110, 127, 0.16); color: var(--danger); }
.mono { font-family: "IBM Plex Mono", monospace; word-break: break-all; }
.chain-list, .reason-list { margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.7; }
.compact-list { margin-top: 6px; }
.result-card-wide { grid-column: 1 / -1; }
.engine-card { background: linear-gradient(160deg, rgba(20, 35, 58, 0.96), rgba(10, 20, 35, 0.96)); }
.engine-header p, .engine-copy { color: var(--muted); }
.engine-grid { display: grid; grid-template-columns: 0.55fr 1fr 0.75fr 0.7fr; gap: 18px; margin-top: 18px; }
.score-value { margin: 0; font-size: 3rem; line-height: 1; font-weight: 700; letter-spacing: -0.05em; }

.risk-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; width: 100vw; height: 100vh; height: 100dvh; padding: 18px; overflow: auto; background: rgba(3, 8, 15, 0.82); backdrop-filter: blur(18px); }
.risk-modal-card { position: relative; width: min(760px, 100%); max-height: min(92vh, 860px); overflow: auto; padding: 22px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 8px; background: rgba(8, 16, 29, 0.98); box-shadow: 0 28px 90px rgba(0, 0, 0, 0.52); animation: modalSlideUp 0.32s ease-out; }
.risk-modal-close { position: sticky; top: 0; float: right; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; margin: -8px -8px 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: var(--text); font-family: var(--display-font); font-size: 1rem; font-weight: 900; cursor: pointer; }
.risk-modal-close:hover, .risk-modal-close:focus-visible { border-color: rgba(103, 242, 200, 0.5); background: rgba(103, 242, 200, 0.14); outline: none; }
.risk-modal-safe { border-color: rgba(80, 227, 164, 0.38); }
.risk-modal-caution { border-color: rgba(255, 187, 85, 0.38); }
.risk-modal-dangerous { border-color: rgba(255, 110, 127, 0.42); }
.risk-warning-banner { margin-bottom: 16px; padding: 13px 14px; border-radius: 8px; border: 1px solid rgba(255, 110, 127, 0.38); background: rgba(255, 110, 127, 0.16); color: #ffd7dc; font-weight: 900; line-height: 1.45; }
.risk-verdict-top { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; }
.risk-verdict-top h2 { margin: 4px 0 8px; font-family: var(--display-font); font-size: 2.6rem; line-height: 1; letter-spacing: 0; }
.threat-type-line { margin-top: 18px; color: var(--accent); font-weight: 900; }
.threat-type-line strong { color: var(--text); }
.risk-indicator { display: grid; place-items: center; width: 112px; aspect-ratio: 1; border-radius: 50%; font-family: var(--display-font); font-weight: 900; font-size: 1.55rem; color: #031017; background: var(--safe); box-shadow: 0 0 46px rgba(80, 227, 164, 0.38); }
.risk-modal-caution .risk-indicator { background: var(--warning); box-shadow: 0 0 46px rgba(255, 187, 85, 0.32); }
.risk-modal-dangerous .risk-indicator { background: var(--danger); box-shadow: 0 0 46px rgba(255, 110, 127, 0.36); }
.score-gauge { --gauge-color: var(--safe); display: grid; place-items: center; width: 112px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--gauge-color) calc(var(--score) * 1%), rgba(255, 255, 255, 0.09) 0); box-shadow: 0 0 46px rgba(80, 227, 164, 0.24); position: relative; }
.score-gauge::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: rgba(8, 16, 29, 0.98); border: 1px solid rgba(255, 255, 255, 0.08); }
.score-gauge span { position: relative; z-index: 1; font-family: var(--display-font); font-size: 1.75rem; font-weight: 900; }
.risk-modal-caution .score-gauge { --gauge-color: var(--warning); box-shadow: 0 0 46px rgba(255, 187, 85, 0.22); }
.risk-modal-dangerous .score-gauge { --gauge-color: var(--danger); box-shadow: 0 0 46px rgba(255, 110, 127, 0.26); }
.decoded-box, .confidence-panel { margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.04); }
.decoded-box p:last-child { margin-bottom: 0; }
.confidence-header { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 14px; }
.confidence-header h3 { margin: 4px 0 0; font-size: 1.35rem; }
.reputation-row { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; padding: 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); color: var(--muted); }
.reason-accordion { display: grid; gap: 10px; }
.reason-row { border: 1px solid var(--line); border-radius: 8px; background: rgba(0, 0, 0, 0.14); overflow: hidden; }
.reason-row summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 14px; cursor: pointer; font-weight: 800; list-style: none; }
.reason-row summary::-webkit-details-marker { display: none; }
.reason-row summary em { margin-left: 8px; color: var(--muted); font-style: normal; font-weight: 700; }
.reason-row p { margin: 0; padding: 0 14px 14px; color: var(--muted); line-height: 1.55; }
.severity-badge { flex: 0 0 auto; padding: 6px 9px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.72rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; }
.severity-badge::before { margin-right: 5px; }
.severity-high::before { content: "X"; }
.severity-medium::before { content: "!"; }
.severity-low::before { content: "OK"; }
.severity-low { color: var(--safe); border-color: rgba(80, 227, 164, 0.28); background: rgba(80, 227, 164, 0.1); }
.severity-medium { color: var(--warning); border-color: rgba(255, 187, 85, 0.28); background: rgba(255, 187, 85, 0.1); }
.severity-high { color: var(--danger); border-color: rgba(255, 110, 127, 0.3); background: rgba(255, 110, 127, 0.11); }
.domain-age-card { display: grid; gap: 12px; margin-bottom: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.04); }
.domain-age-top { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.domain-age-top h3 { margin: 4px 0 0; font-size: 1.2rem; overflow-wrap: anywhere; }
.domain-age-badge { flex: 0 0 auto; padding: 8px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; }
.domain-age-established .domain-age-badge { color: var(--safe); border: 1px solid rgba(80, 227, 164, 0.28); background: rgba(80, 227, 164, 0.1); }
.domain-age-recent .domain-age-badge { color: var(--warning); border: 1px solid rgba(255, 187, 85, 0.3); background: rgba(255, 187, 85, 0.1); }
.domain-age-new .domain-age-badge { color: var(--danger); border: 1px solid rgba(255, 110, 127, 0.3); background: rgba(255, 110, 127, 0.12); }
.domain-age-unknown .domain-age-badge { color: var(--muted); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); }
.domain-age-detail { margin: 0; color: var(--muted); line-height: 1.45; }
.domain-age-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.domain-age-grid div { padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(0, 0, 0, 0.12); min-width: 0; }
.domain-age-grid span { display: block; color: var(--muted); font-size: 0.72rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; }
.domain-age-grid strong { display: block; margin-top: 5px; color: var(--text); font-size: 0.86rem; overflow-wrap: anywhere; }
.ml-panel { display: grid; gap: 14px; margin-bottom: 14px; padding: 16px; border: 1px solid rgba(124, 222, 255, 0.2); border-radius: 8px; background: rgba(124, 222, 255, 0.055); }
.ml-panel-top { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.ml-panel-top h3 { margin: 4px 0 6px; font-size: 1.24rem; overflow-wrap: anywhere; }
.ml-panel-top p { margin: 0; color: var(--muted); line-height: 1.45; }
.ml-model-pill { flex: 0 0 auto; max-width: 180px; padding: 7px 9px; border: 1px solid rgba(124, 222, 255, 0.24); border-radius: 999px; color: #7cdeff; background: rgba(124, 222, 255, 0.08); font-size: 0.7rem; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-probability-bars { display: flex; gap: 2px; height: 11px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
.ml-probability-bars span { display: block; min-width: 2px; }
.ml-safe-bar { background: var(--safe); }
.ml-malicious-bar { background: var(--danger); }
.vt-panel { display: grid; gap: 14px; margin-bottom: 14px; padding: 16px; border: 1px solid rgba(103, 242, 200, 0.2); border-radius: 8px; background: rgba(103, 242, 200, 0.055); }
.vt-panel-top { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.vt-panel-top h3 { margin: 4px 0 6px; font-size: 1.24rem; }
.vt-panel-top p { margin: 0; color: var(--muted); line-height: 1.45; }
.vt-powered { flex: 0 0 auto; color: var(--accent); font-size: 0.78rem; font-weight: 900; text-decoration: none; }
.vt-score-bar { display: flex; gap: 2px; height: 11px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
.vt-score-bar span { display: block; min-width: 2px; }
.vt-score-clean { background: var(--safe); }
.vt-score-unrated { background: rgba(152, 169, 194, 0.68); }
.vt-score-malicious { background: var(--danger); }
.vt-badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.vt-tab { padding: 8px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.04); color: var(--muted); font: inherit; font-size: 0.78rem; font-weight: 900; cursor: pointer; }
.vt-tab.active { color: #031017; border-color: rgba(103, 242, 200, 0.72); background: var(--accent); }
.vt-engine-search { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(0, 0, 0, 0.16); color: var(--text); font: inherit; }
.vt-mobile-toggle { display: none; width: 100%; padding: 11px 12px; border: 1px solid rgba(103, 242, 200, 0.24); border-radius: 8px; background: rgba(103, 242, 200, 0.08); color: var(--accent); font: inherit; font-weight: 900; cursor: pointer; }
.vt-engine-groups { max-height: 230px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: rgba(0, 0, 0, 0.12); }
.vt-engine-group { display: grid; }
.vt-engine-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); color: var(--text); font-size: 0.86rem; }
.vt-engine-row:last-child { border-bottom: 0; }
.vt-pill { flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; font-size: 0.7rem; font-weight: 900; text-transform: uppercase; }
.vt-pill-clean { color: var(--safe); background: rgba(80, 227, 164, 0.12); border: 1px solid rgba(80, 227, 164, 0.24); }
.vt-pill-unrated { color: var(--muted); background: rgba(152, 169, 194, 0.12); border: 1px solid rgba(152, 169, 194, 0.2); }
.vt-pill-malicious { color: var(--danger); background: rgba(255, 110, 127, 0.12); border: 1px solid rgba(255, 110, 127, 0.24); }
.vt-empty { margin: 0; padding: 18px; color: var(--muted); }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.modal-actions .primary-button, .modal-actions .danger-button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; text-align: center; }
.report-status { min-height: 22px; margin: 12px 0 0; color: var(--muted); font-weight: 700; }
@keyframes modalSlideUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }

.wallet-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 18px; background: rgba(3, 8, 15, 0.78); backdrop-filter: blur(16px); }
.wallet-modal-card { position: relative; width: min(430px, 100%); padding: 24px; border: 1px solid rgba(124, 58, 237, 0.42); border-radius: 8px; background: #0b1019; box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5); animation: modalSlideUp 0.26s ease-out; }
.wallet-modal-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255, 110, 127, 0.54); border-radius: 8px; background: rgba(255, 110, 127, 0.12); color: var(--danger); font-family: var(--display-font); font-size: 1rem; font-weight: 900; line-height: 1; cursor: pointer; }
.wallet-modal-close:hover, .wallet-modal-close:focus-visible { border-color: var(--danger); background: rgba(255, 110, 127, 0.22); outline: none; }
.wallet-modal-card h3 { margin: 0 0 10px; font-family: var(--display-font); font-size: 1.25rem; }
.wallet-modal-card p { margin: 0 0 16px; color: var(--muted); line-height: 1.55; }
.wallet-choice-list, .wallet-install-links { display: grid; gap: 10px; }
.wallet-choice-button, .wallet-install-links a, .wallet-close-button, .wallet-retry-button { width: 100%; text-align: center; }
.wallet-install-links a { display: block; padding: 13px 16px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); text-decoration: none; background: rgba(255, 255, 255, 0.04); }
.wallet-install-links .wallet-open-phantom-link { border-color: rgba(103, 242, 200, 0.34); background: linear-gradient(135deg, var(--accent) 0%, #84d9ff 100%); color: #041019; font-weight: 900; }
.wallet-modal-actions { display: grid; gap: 10px; margin-top: 12px; }
.wallet-hint { color: var(--warning) !important; font-size: 0.9rem; }
.wallet-success { color: var(--safe) !important; font-weight: 800; }
.wallet-error { color: var(--danger) !important; font-weight: 800; }

/* Live QR camera scanner modal. */
body.qr-camera-open { overflow: hidden; }
.qr-camera-modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 18px; background: rgba(3, 8, 15, 0.85); backdrop-filter: blur(18px); animation: modalSlideUp 0.22s ease-out; }
.qr-camera-card { width: min(520px, 100%); border: 1px solid rgba(103, 242, 200, 0.35); border-radius: 12px; background: #0b1019; box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55); overflow: hidden; }
.qr-camera-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.qr-camera-header h3 { margin: 0; font-family: var(--display-font); font-size: 1.1rem; }
.qr-camera-close { min-width: 72px; min-height: 36px; padding: 0 13px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--text); font: inherit; font-size: 0.9rem; font-weight: 800; line-height: 1; cursor: pointer; }
.qr-camera-close:hover { border-color: var(--accent); color: var(--accent); }
.qr-camera-stage { position: relative; aspect-ratio: 4 / 5; background: #000; overflow: hidden; }
.qr-camera-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qr-camera-frame { position: absolute; top: 50%; left: 50%; width: min(64%, 280px); aspect-ratio: 1; transform: translate(-50%, -50%); border: 2px solid rgba(103, 242, 200, 0.85); border-radius: 18px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45); pointer-events: none; }
.qr-camera-frame::before, .qr-camera-frame::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: qrCameraSweep 2.2s linear infinite; }
.qr-camera-frame::after { animation-delay: 1.1s; }
@keyframes qrCameraSweep { 0% { top: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.qr-camera-status { margin: 0; padding: 14px 18px 16px; color: var(--muted); font-size: 0.9rem; line-height: 1.45; text-align: center; }
@media (max-width: 520px) { .qr-camera-stage { aspect-ratio: 3 / 4; } }
.wallet-spinner { width: 34px; height: 34px; border: 3px solid rgba(255, 255, 255, 0.13); border-top-color: var(--accent); border-radius: 50%; animation: walletSpin 0.8s linear infinite; }
.wallet-status a { color: var(--accent); text-decoration: none; font-weight: 800; }
@keyframes walletSpin { to { transform: rotate(360deg); } }
.payment-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 22px; align-items: stretch; }
.payment-panel > div { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.04); }
.payment-option-wallet { margin-top: 18px; }
.payment-panel h3 { margin: 0; font-family: var(--display-font); font-size: 1.2rem; }
.payment-panel p { margin-top: 0; }
.payment-button { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 360px; min-height: 48px; margin-top: auto; box-sizing: border-box; text-align: center; white-space: normal; overflow-wrap: anywhere; line-height: 1.25; }
.payment-disabled { opacity: 0.62; cursor: not-allowed; transform: none; }
.payment-note { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.payment-note code { color: var(--accent); overflow-wrap: anywhere; }

.site-footer { margin-top: 42px; margin-left: calc(50% - 50vw); width: 100vw; background-color: #07070a; border-top: 1px solid #1e293b; padding-top: 46px; overflow: visible; }
.footer-newsletter { width: min(864px, calc(100% - 48px)); min-height: 292px; margin: 0 auto 92px; padding: 42px 56px 54px; border: 1px solid #334155; border-radius: 10px; background: #10151d; text-align: center; overflow: visible; }
.footer-newsletter h2 { margin: 0 0 16px; color: #f8fafc; font-size: 1.45rem; line-height: 1.2; }
.footer-newsletter p { margin: 0; color: #94a3b8; line-height: 1.6; }
.footer-newsletter-form { display: grid; grid-template-columns: minmax(220px, 375px) 98px; justify-content: center; gap: 8px; margin: 24px auto 44px; }
.footer-newsletter-form input { min-height: 44px; padding: 0 14px; border: 1px solid #334155; border-radius: 8px; background: #0b1118; color: #f8fafc; font: inherit; }
.footer-newsletter-form input::placeholder { color: #64748b; }
.footer-newsletter-form button { min-height: 44px; border: 0; border-radius: 8px; background: #f8fafc; color: #07070a; font: inherit; cursor: pointer; }
.footer-newsletter-note { font-size: 0.76rem; }
.footer-divider-wide { width: min(864px, calc(100% - 48px)); margin: 0 auto !important; }
.footer-grid { display: grid; grid-template-columns: 240px repeat(4, minmax(120px, max-content)); justify-content: space-between; column-gap: 48px; width: min(864px, calc(100% - 48px)); margin: 0 auto; padding: 50px 0 48px; }
.footer-col { min-width: 120px; }
.footer-brand-name { font-size: 15px; font-weight: 700; color: #f8fafc; display: block; margin-bottom: 8px; }
.footer-brand-desc { font-size: 13px; color: #94a3b8; line-height: 1.6; margin: 0; }
.footer-col-header { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #64748b; margin: 0 0 16px 0; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-links li { display: block; }
.footer-links a { font-size: 14px; color: #94a3b8; text-decoration: none; display: block; transition: color 150ms ease; }
.footer-links a:hover { color: #f8fafc; }
.legal-document a { color: var(--accent); text-decoration: none; }
.legal-document a:hover { color: var(--accent); text-decoration: underline; }
.footer-divider { border: none; border-top: 1px solid #1e293b; width: min(864px, calc(100% - 48px)); margin: 0 auto; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; width: min(864px, calc(100% - 48px)); margin: 0 auto; padding: 26px 0 36px; font-size: 12px; color: #64748b; }
.consent-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; max-width: 980px; margin: 0 auto; padding: 16px; border: 1px solid rgba(103, 242, 200, 0.24); border-radius: 8px; background: rgba(8, 16, 29, 0.98); box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42); }
.consent-title { margin: 0 0 4px; font-weight: 900; color: var(--text); }
.consent-copy { margin: 0; color: var(--muted); line-height: 1.45; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.legal-shell { max-width: 980px; }
.legal-back { display: inline-flex; margin-bottom: 18px; }
.legal-document { padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: var(--shadow); }
.legal-document h1 { margin: 8px 0 4px; font-family: var(--display-font); font-size: 2.4rem; letter-spacing: 0; }
.legal-document h2 { margin-top: 26px; color: var(--text); }
.legal-document p, .legal-document li { color: var(--muted); line-height: 1.65; }
.legal-meta { margin-top: 0; color: var(--accent) !important; font-weight: 800; }
.risk-model-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.risk-model-grid section { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.035); }
.risk-model-grid h3 { margin: 0 0 10px; font-family: var(--display-font); font-size: 1.05rem; letter-spacing: 0; color: var(--text); }
.risk-model-grid ul { margin: 0; padding-left: 18px; }
.legal-table { width: 100%; min-width: 760px; table-layout: fixed; border-collapse: collapse; margin: 18px 0; }
.legal-table th, .legal-table td { padding: 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--muted); overflow-wrap: break-word; word-break: normal; hyphens: auto; }
.legal-table th { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.legal-table th:nth-child(1), .legal-table td:nth-child(1) { width: 19%; overflow-wrap: anywhere; hyphens: none; }
.legal-table th:nth-child(2), .legal-table td:nth-child(2) { width: 16%; }
.legal-table th:nth-child(3), .legal-table td:nth-child(3) { width: 47%; }
.legal-table th:nth-child(4), .legal-table td:nth-child(4) { width: 9%; min-width: 96px; overflow-wrap: normal; hyphens: none; }
.legal-table th:nth-child(5), .legal-table td:nth-child(5) { width: 9%; min-width: 96px; overflow-wrap: normal; hyphens: none; }
.legal-document { overflow-x: auto; }
.legal-form { display: grid; gap: 14px; margin-top: 18px; }
.legal-form label { display: grid; gap: 7px; color: var(--text); font-weight: 800; }
.legal-form input, .legal-form select, .legal-form textarea { width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); color: var(--text); font: inherit; }
.legal-form textarea { resize: vertical; }
.checkbox-row { grid-template-columns: auto 1fr !important; align-items: start; }
.checkbox-row input { width: auto; margin-top: 5px; }
.request-message { padding: 13px 14px; border: 1px solid rgba(103, 242, 200, 0.28); border-radius: 8px; background: rgba(103, 242, 200, 0.09); color: var(--accent); font-weight: 800; }
.rights-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.rights-grid article { padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.035); }
.rights-grid h2 { margin-top: 0; font-size: 1.05rem; }
.legal-json { max-height: 420px; overflow: auto; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(0, 0, 0, 0.22); color: var(--text); white-space: pre-wrap; }

.test-site-page .hero { min-height: auto; padding: 28px 42px; background: linear-gradient(135deg, rgba(13, 24, 43, 0.94), rgba(6, 12, 22, 0.96)); }
.test-site-page .hero::before { background: linear-gradient(112deg, rgba(103, 242, 200, 0.16), transparent 32%), linear-gradient(238deg, rgba(90, 140, 255, 0.16), transparent 42%); }
.test-site-page .hero-copy h1 { max-width: 840px; font-size: clamp(2.6rem, 4.2vw, 3.85rem); line-height: 0.95; }
.test-site-page .hero-text { font-size: 1.12rem; }
.test-site-page .spline-showcase { min-height: 530px; }
.test-site-page .hero-metrics { margin-top: 22px; }
.test-site-page .hero-metrics div { padding: 12px 14px; }
.test-section { margin-top: 20px; padding: 30px; border: 1px solid var(--line); border-radius: 8px; background: rgba(13, 24, 43, 0.78); box-shadow: var(--shadow); overflow: hidden; }
.test-section-header { max-width: 780px; }
.test-section h2 { margin: 8px 0 0; font-family: var(--display-font); font-size: clamp(1.65rem, 3.6vw, 3rem); line-height: 1.05; letter-spacing: 0; }
.test-proof-grid, .test-pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.test-proof-card, .test-price-card, .test-social { border: 1px solid var(--line); border-radius: 8px; background: var(--panel-strong); }
.test-proof-card, .test-price-card { padding: 22px; transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease; }
.test-proof-card:hover, .test-price-card:hover { transform: translateY(-3px); border-color: rgba(103, 242, 200, 0.34); background: rgba(14, 27, 47, 0.96); }
.test-proof-card span { color: var(--accent); font-family: var(--display-font); font-weight: 900; }
.test-proof-card h3, .test-price-card h3 { margin: 12px 0 10px; font-size: 1.3rem; }
.test-proof-card p, .test-price-card p, .test-faq-list p { color: var(--muted); line-height: 1.6; }
.test-social { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; background: linear-gradient(135deg, rgba(103, 242, 200, 0.1), rgba(90, 140, 255, 0.08)), var(--panel-strong); }
.test-stat-row { display: grid; grid-template-columns: repeat(3, minmax(110px, 1fr)); gap: 10px; }
.test-stat-row div { min-height: 92px; padding: 14px; border: 1px solid rgba(255, 255, 255, 0.11); border-radius: 8px; background: rgba(255, 255, 255, 0.04); }
.test-stat-row strong { display: block; color: var(--accent); font-family: var(--display-font); font-size: 1.45rem; }
.test-stat-row span { display: block; margin-top: 6px; color: var(--muted); font-size: 0.9rem; line-height: 1.35; }
.test-price-card { display: flex; min-height: 300px; flex-direction: column; }
.test-price-card.featured { border-color: rgba(103, 242, 200, 0.42); background: radial-gradient(circle at top right, rgba(103, 242, 200, 0.14), transparent 42%), var(--panel-strong); }
.test-price { margin: 0 0 8px; color: var(--text) !important; font-family: var(--display-font); font-size: 2rem; font-weight: 900; }
.test-price-card .primary-button, .test-price-card .secondary-button { margin-top: auto; text-align: center; }
.test-faq-list { display: grid; gap: 10px; margin-top: 22px; }
.test-faq-list details { border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.04); }
.test-faq-list summary { padding: 16px; cursor: pointer; font-weight: 900; list-style: none; }
.test-faq-list summary::-webkit-details-marker { display: none; }
.test-faq-list p { margin: 0; padding: 0 16px 16px; }
.reveal-on-scroll { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; transition-delay: var(--reveal-delay, 0ms); }
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .hero, .top-profile, .story-grid, .token-strip, .airdrop-progress, .wallet-panel, .referral-panel, .airdrop-grid, .scanner-grid, .results-grid, .panel-header, .results-header, .decision-bar, .engine-header, .test-proof-grid, .test-pricing-grid, .test-social { grid-template-columns: 1fr; flex-direction: column; align-items: stretch; }
  .hero { min-height: auto; padding: 24px; }
  .test-section { padding: 22px; }
  .test-stat-row { grid-template-columns: 1fr; }
  .spline-showcase { min-height: 460px; }
  .test-site-page .spline-showcase { min-height: 460px; }
  .model-caption { left: 12px; right: 12px; bottom: 12px; }
  .phone-model { width: min(74%, 260px); }
  .page-shell { width: min(100% - 20px, 1180px); }
  .top-auth { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; align-items: stretch; gap: 8px; }
  .top-auth-spacer { display: none; }
  .top-action-button, .top-profile { width: 100%; min-width: 0; }
  .top-profile { grid-column: 1 / -1; }
  .profile-email { overflow-wrap: anywhere; }
  .signup-terms { text-align: left; }
  .progress-stats, .wallet-actions, .referral-actions { justify-content: stretch; }
  .progress-stats div, .token-address-row, .wallet-actions button, .referral-actions button { flex: 1 1 100%; }
  .token-address-row { grid-template-columns: 1fr; }
  .risk-modal { align-items: stretch; padding: 0; }
  .risk-modal-card { width: 100%; max-height: 100vh; min-height: 100vh; border-radius: 0; padding: 18px; }
  .payment-panel { grid-template-columns: 1fr; }
  .risk-model-grid { grid-template-columns: 1fr; }
  .risk-verdict-top { grid-template-columns: 1fr; text-align: center; }
  .risk-indicator { width: 118px; margin: 0 auto; }
  .confidence-header, .reputation-row { align-items: stretch; flex-direction: column; }
  .domain-age-top { flex-direction: column; }
  .domain-age-grid { grid-template-columns: 1fr 1fr; }
  .ml-panel-top { flex-direction: column; }
  .ml-model-pill { max-width: 100%; }
  .vt-panel-top { flex-direction: column; }
  .vt-mobile-toggle { display: block; }
  .vt-engine-groups { max-height: 0; overflow: hidden; transition: max-height 0.28s ease; }
  .vt-panel.vt-mobile-open .vt-engine-groups { max-height: 230px; overflow: auto; }
  .modal-actions { grid-template-columns: 1fr; }
  .consent-banner, .rights-grid { grid-template-columns: 1fr; }
  .consent-actions { justify-content: stretch; }
  .consent-actions button { width: 100%; }
  .legal-document { padding: 20px; }
}

@media (max-width: 520px) {
  .top-auth { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .site-footer { padding-top: 32px; }
  .footer-newsletter { width: min(100% - 32px, 864px); min-height: auto; margin-bottom: 56px; padding: 30px 18px 34px; }
  .footer-newsletter-form { grid-template-columns: 1fr; margin-bottom: 28px; }
  .footer-newsletter-form button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; padding: 40px 24px 32px 24px; gap: 32px 0; }
  .footer-divider { margin: 0 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; padding: 20px 24px; gap: 6px; }
  .domain-age-grid { grid-template-columns: 1fr; }
}

@media print {
  body { background: #fff; color: #111; }
  .top-auth, .hero, .site-footer, .consent-banner, .legal-back, script { display: none !important; }
  .page-shell, .legal-shell { width: 100%; padding: 0; }
  .legal-document { box-shadow: none; border: 0; background: #fff; color: #111; }
  .legal-document p, .legal-document li, .legal-table td { color: #111; }
  .legal-document a { color: #111; text-decoration: underline; }
}
