/* ═══════════════════════════════════════════════════
   NORMASHIELD - GLOBAL STYLES
   Design System: Forensic Record v3.0
   Palette: Warm dark · Amber gold · Steel blue
════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Surfaces (warm near-black, olive undertone) */
  --bg:        #0c0c09;
  --bg2:       #131310;
  --bg3:       #1a1b16;
  --bg4:       #22231d;

  /* ── Borders */
  --border:    rgba(230,220,170,0.07);
  --border-hi: rgba(230,220,170,0.13);

  /* ── Text (warm off-white) */
  --text:      #e8e4d9;
  --muted:     #8a8670;
  --muted2:    #6a6655;

  /* ── Primary accent: amber gold (evidence seal) */
  --gold:      #c4901f;
  --gold-hi:   #e0a830;
  --gold-pale: rgba(196,144,31,0.10);

  /* ── Secondary: steel blue (precision) */
  --steel:     #4a7fa3;
  --steel-hi:  #6b9fc4;

  /* ── Legacy aliases for backwards compat */
  --blue:      #4a7fa3;
  --blue-glow: rgba(74,127,163,0.15);
  --green:     #3d7a56;
  --green-glow:rgba(61,122,86,0.15);
  --amber:     #c4901f;
  --amber-glow:rgba(196,144,31,0.15);
  --cyan:      #4a7fa3;
  --purple:    #7a6fa3;

  /* ── Shape */
  --radius:    4px;
  --font:      'Inter', system-ui, sans-serif;
  --mono:      'JetBrains Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* ── SCROLLBAR ── */
* { scrollbar-width: thin; scrollbar-color: rgba(196,144,31,0.15) transparent; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(196,144,31,0.18); border-radius: 2px; }

/* ── TOUCH TARGETS ── */
button, a, [onclick], label, select { touch-action: manipulation; }
input, textarea, select { -webkit-appearance: none; appearance: none; }

/* ── CROSS-BROWSER FOCUS ── */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }

/* ── iOS SAFE AREA ── */
.navbar { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.nav-inner { padding-left: max(2rem, env(safe-area-inset-left)); padding-right: max(2rem, env(safe-area-inset-right)); }
.footer { padding-bottom: max(3.5rem, calc(2rem + env(safe-area-inset-bottom))); }

/* ── UTILITY ── */
.gradient-text {
  color: var(--gold-hi);
}

/* ═══════════════════════════════════════════════════
   NAVBAR
════════════════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 2rem;
  height: 58px; display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-link { line-height: 0; display: flex; align-items: center; flex-shrink: 0; }
.logo-icon { width: 32px; height: 32px; }
.logo-text { font-size: 1.1rem; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.logo-accent { color: var(--gold-hi); }
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 0.87rem; font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--gold) !important;
  color: #0c0c09 !important; padding: 0.45rem 1.1rem;
  border-radius: var(--radius); font-weight: 700 !important;
  font-size: 0.85rem !important;
  transition: background 0.15s !important;
}
.nav-cta:hover { background: var(--gold-hi) !important; }
.nav-cta-secondary {
  background: transparent !important;
  color: var(--muted) !important;
  border: 1px solid var(--border-hi);
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem !important;
  font-weight: 500 !important;
}
.nav-cta-secondary:hover {
  color: var(--text) !important;
  border-color: var(--gold);
}
.session-user {
  color: var(--muted);
  font-size: 0.79rem;
  padding: 0.3rem 0.55rem;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: var(--bg3);
}
.token-balance-pill {
  display: inline-flex; align-items: center;
  font-size: 0.76rem; font-weight: 700;
  padding: 0.28rem 0.65rem; border-radius: 3px;
  border: 1px solid;
  font-family: var(--mono);
  gap: 5px;
}
.tpill-ok    { background: rgba(61,122,86,0.12); color: #5aaf7a; border-color: rgba(61,122,86,0.3); }
.tpill-empty { background: rgba(158,48,37,0.12); color: #d0695f; border-color: rgba(158,48,37,0.3); }

.no-tokens-box {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 2.5rem 1.5rem; gap: 0.75rem;
}
.no-tokens-box svg { width: 48px; height: 48px; color: var(--gold); margin-bottom: 0.25rem; }
.no-tokens-box h3  { font-size: 1.15rem; color: var(--text); }
.no-tokens-box p   { color: var(--muted); font-size: 0.88rem; line-height: 1.6; }

.session-logout {
  border: 1px solid rgba(158,48,37,0.3);
  background: rgba(158,48,37,0.08);
  color: #d0695f;
  border-radius: var(--radius);
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.session-logout:hover {
  background: rgba(158,48,37,0.16);
  color: #e07068;
}

/* ═══════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden; padding: 90px 2rem 72px;
}

/* Subtle diagonal hatch pattern - replaces gradient blobs */
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 28px,
      rgba(196,144,31,0.025) 28px,
      rgba(196,144,31,0.025) 29px
    );
}

/* Remove glow blobs */
.hero-glow { display: none; }
.glow-blue, .glow-purple { display: none; }

.hero-inner {
  position: relative; z-index: 1;
  text-align: center; max-width: 780px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg3); border: 1px solid var(--border-hi);
  border-left: 2px solid var(--gold);
  border-radius: var(--radius); padding: 5px 14px;
  font-size: 0.78rem; font-weight: 600; color: var(--gold-hi);
  margin-bottom: 1.75rem;
  letter-spacing: 0.03em; text-transform: uppercase;
}
.badge-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 900; line-height: 1.1;
  letter-spacing: -0.03em; color: var(--text);
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1rem; color: var(--muted);
  max-width: 580px; margin: 0 auto 2.25rem;
  line-height: 1.7;
}
.hero-subtitle strong { color: var(--text); }

.hero-stats {
  display: inline-flex; align-items: center; gap: 2rem;
  padding: 1.1rem 2rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
}
.stat { text-align: center; }
.stat-value { display: block; font-size: 1rem; font-weight: 700; color: var(--text); font-family: var(--mono); }
.stat-label { display: block; font-size: 0.68rem; color: var(--muted); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.09em; }
.stat-divider { width: 1px; height: 32px; background: var(--border); }

.hero-scroll {
  position: absolute; bottom: 2rem;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  color: var(--muted); font-size: 0.72rem;
  animation: bounce 2.4s infinite;
}
.hero-scroll svg { width: 14px; height: 14px; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ═══════════════════════════════════════════════════
   SECTION HEADER
════════════════════════════════════════════════════ */
.section-header {
  text-align: center; max-width: 560px; margin: 0 auto 3rem;
}
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800; color: var(--text); margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}
.section-header p { color: var(--muted); font-size: 0.95rem; line-height: 1.7; }

.local-storage-notice {
  max-width: 1240px;
  margin: 0 auto 1.75rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(196,144,31,0.22);
  border-left: 3px solid var(--gold);
  background: rgba(196,144,31,0.06);
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.55;
}
.local-storage-notice strong { color: var(--gold-hi); }

/* ═══════════════════════════════════════════════════
   ACQUIRE SECTION - CARDS
════════════════════════════════════════════════════ */
.acquire-section {
  padding: 4.5rem 2rem 5.5rem;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.acquire-grid {
  max-width: 1240px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}
.acquire-grid .acquire-card { grid-column: span 2; }

.acquire-card {
  position: relative; overflow: hidden;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: left; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  display: flex; flex-direction: column; gap: 0.85rem;
}
.acquire-card:hover { background: var(--bg4); border-color: var(--border-hi); }

/* Left accent border replaces glow */
.card-glow { display: none; }

/* Blue card → Steel */
.card-blue { border-left: 3px solid var(--steel); }
.card-blue:hover { border-color: var(--border-hi); border-left-color: var(--steel-hi); }
.card-blue .card-icon-wrap { color: var(--steel-hi); background: rgba(74,127,163,0.1); }
.card-blue .card-number { color: rgba(74,127,163,0.25); }
.card-blue .card-cta { color: var(--steel-hi); }
.card-blue .card-tags span { background: rgba(74,127,163,0.1); color: #8cb8d4; border-color: rgba(74,127,163,0.2); }

/* Green card → Forensic green */
.card-green { border-left: 3px solid var(--green); }
.card-green:hover { border-color: var(--border-hi); border-left-color: #4d9968; }
.card-green .card-icon-wrap { color: #4d9968; background: rgba(61,122,86,0.1); }
.card-green .card-number { color: rgba(61,122,86,0.25); }
.card-green .card-cta { color: #4d9968; }
.card-green .card-tags span { background: rgba(61,122,86,0.1); color: #7ac49a; border-color: rgba(61,122,86,0.2); }

/* Amber card → Gold */
.card-amber { border-left: 3px solid var(--gold); }
.card-amber:hover { border-color: var(--border-hi); border-left-color: var(--gold-hi); }
.card-amber .card-icon-wrap { color: var(--gold-hi); background: var(--gold-pale); }
.card-amber .card-number { color: rgba(196,144,31,0.25); }
.card-amber .card-cta { color: var(--gold-hi); }
.card-amber .card-tags span { background: var(--gold-pale); color: #d4aa50; border-color: rgba(196,144,31,0.2); }

/* Purple card → Slate */
.card-purple { border-left: 3px solid #7a6fa3; }
.card-purple:hover { border-color: var(--border-hi); border-left-color: #9b90c4; }
.card-purple .card-icon-wrap { color: #9b90c4; background: rgba(122,111,163,0.1); }
.card-purple .card-number { color: rgba(122,111,163,0.25); }
.card-purple .card-cta { color: #9b90c4; }
.card-purple .card-tags span { background: rgba(122,111,163,0.1); color: #b8aed8; border-color: rgba(122,111,163,0.2); }

/* Pink card → Dusty rose */
.card-pink { border-left: 3px solid #a35a7a; }
.card-pink:hover { border-color: var(--border-hi); border-left-color: #c47a9a; }
.card-pink .card-icon-wrap { color: #c47a9a; background: rgba(163,90,122,0.1); }
.card-pink .card-number { color: rgba(163,90,122,0.25); }
.card-pink .card-cta { color: #c47a9a; }
.card-pink .card-tags span { background: rgba(163,90,122,0.1); color: #d49ab8; border-color: rgba(163,90,122,0.2); }

/* Teal card → Email forensics */
.card-teal { border-left: 3px solid #0d7a8a; }
.card-teal:hover { border-color: var(--border-hi); border-left-color: #14b8c8; }
.card-teal .card-icon-wrap { color: #14b8c8; background: rgba(13,122,138,0.1); }
.card-teal .card-number { color: rgba(13,122,138,0.25); }
.card-teal .card-cta { color: #14b8c8; }
.card-teal .card-tags span { background: rgba(13,122,138,0.1); color: #67dde8; border-color: rgba(13,122,138,0.2); }

/* card-ai – AI Recognition (Tool 07) */
.card-ai { border-left: 3px solid #5b51d8; }
.card-ai:hover { border-color: var(--border-hi); border-left-color: #818cf8; }
.card-ai .card-icon-wrap { color: #818cf8; background: rgba(91,81,216,0.1); }
.card-ai .card-number { color: rgba(91,81,216,0.25); }
.card-ai .card-cta { color: #818cf8; }
.card-ai .card-tags span { background: rgba(91,81,216,0.1); color: #a5b4fc; border-color: rgba(91,81,216,0.2); }

/* card-log – Log Triage & Analysis (Tool 08) */
.card-log { border-left: 3px solid #c2410c; }
.card-log:hover { border-color: var(--border-hi); border-left-color: #f97316; }
.card-log .card-icon-wrap { color: #f97316; background: rgba(194,65,12,0.1); }
.card-log .card-number { color: rgba(194,65,12,0.25); }
.card-log .card-cta { color: #f97316; }
.card-log .card-tags span { background: rgba(194,65,12,0.1); color: #fb923c; border-color: rgba(194,65,12,0.2); }

/* card-breach – Verifica Esposizione Email (Tool 09) */
.card-breach { border-left: 3px solid #991b1b; }
.card-breach:hover { border-color: var(--border-hi); border-left-color: #ef4444; }
.card-breach .card-icon-wrap { color: #ef4444; background: rgba(153,27,27,0.1); }
.card-breach .card-number { color: rgba(153,27,27,0.25); }
.card-breach .card-cta { color: #ef4444; }
.card-breach .card-tags span { background: rgba(153,27,27,0.1); color: #fca5a5; border-color: rgba(153,27,27,0.2); }

/* ════════ SOCIAL ACQUISITION MODAL ════════ */
.social-step-card {
  display: flex; gap: .75rem; align-items: flex-start;
  background: var(--bg4); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .85rem .95rem; margin-bottom: .85rem;
}
.social-step-num {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 3px;
  background: var(--gold); color: #0c0c09;
  font-size: .75rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.social-step-body { flex: 1; min-width: 0; }
.social-step-title { font-size: .86rem; font-weight: 700; color: var(--text); margin-bottom: .25rem; }
.social-step-desc { font-size: .78rem; color: var(--muted); line-height: 1.55; }
.btn-social-open {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px;
  background: rgba(163,90,122,0.1); border: 1px solid rgba(163,90,122,0.3);
  color: #d49ab8; border-radius: var(--radius); padding: 6px 11px;
  font-size: .78rem; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: all .18s;
}
.btn-social-open:hover:not(:disabled) { background: rgba(163,90,122,0.2); }
.btn-social-open:disabled { opacity: .4; cursor: not-allowed; }
.social-browser-bar {
  display: flex; align-items: center; gap: .35rem;
  background: var(--bg); border: 1px solid var(--border);
  border-bottom: none; border-radius: var(--radius) var(--radius) 0 0; padding: .4rem .55rem;
}
.social-browser-indicator { width: 18px; display: flex; align-items: center; justify-content: center; }
.social-browser-address {
  flex: 1; background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 3px; color: var(--text);
  font-size: .76rem; padding: .28rem .55rem; outline: none;
}
.social-browser-address:focus { border-color: rgba(163,90,122,0.5); }
.social-browser-go {
  background: rgba(163,90,122,0.12); border: 1px solid rgba(163,90,122,0.3);
  color: #d49ab8; border-radius: 3px; font-size: .73rem;
  padding: .28rem .65rem; cursor: pointer; white-space: nowrap; transition: background .18s;
}
.social-browser-go:hover { background: rgba(163,90,122,0.22); }
.social-browser-viewport {
  position: relative; width: 100%;
  min-height: 220px;
  aspect-ratio: 16 / 9;
  background: #0a0a07; border: 1px solid var(--border);
  border-top: none; overflow: hidden;
}
.social-browser-spinner-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(0,0,0,.5); z-index: 3;
}
.social-browser-keyboard {
  display: flex; gap: .35rem; align-items: center; flex-wrap: wrap;
  background: var(--bg); border: 1px solid var(--border);
  border-top: none; border-radius: 0 0 var(--radius) var(--radius); padding: .4rem .55rem;
}
.social-browser-keyboard input {
  flex: 1; min-width: 110px; background: var(--bg3);
  border: 1px solid var(--border); border-radius: 3px; color: var(--text);
  font-size: .76rem; padding: .28rem .55rem; outline: none;
}
.social-browser-keyboard input:focus { border-color: rgba(163,90,122,0.4); }
.social-kb-btn {
  background: var(--bg4); border: 1px solid var(--border);
  color: var(--muted); border-radius: 3px; font-size: .73rem;
  padding: .28rem .5rem; cursor: pointer; white-space: nowrap; transition: all .12s;
}
.social-kb-btn:hover { background: var(--bg3); color: var(--text); }
.btn-capture-session {
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  margin-top: .65rem; width: 100%;
  background: rgba(163,90,122,0.1);
  border: 1px solid rgba(163,90,122,0.35); color: #d49ab8; border-radius: var(--radius);
  font-size: .83rem; font-weight: 600; padding: .6rem 1.1rem; cursor: pointer; transition: all .18s;
}
.btn-capture-session:hover { background: rgba(163,90,122,0.22); }
.btn-capture-session:disabled { opacity: .45; cursor: not-allowed; }
.btn-social { background: var(--gold) !important; color: #0c0c09 !important; }

.card-icon-wrap {
  width: 48px; height: 48px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.card-icon-wrap svg { width: 24px; height: 24px; }

.card-number {
  font-family: var(--mono); font-size: 2.2rem; font-weight: 700;
  line-height: 1; margin-bottom: -0.4rem;
}

.card-title {
  font-size: 1.05rem; font-weight: 700; color: var(--text); line-height: 1.3;
}

.card-desc { font-size: 0.83rem; color: var(--muted); line-height: 1.65; flex: 1; }

.card-tags {
  display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto;
}
.card-tags span {
  font-size: 0.68rem; font-weight: 600;
  padding: 2px 9px; border-radius: 2px;
  border: 1px solid;
  font-family: var(--mono);
  text-transform: uppercase; letter-spacing: 0.04em;
}

.card-cta {
  display: flex; align-items: center; gap: 5px;
  font-weight: 600; font-size: 0.85rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--border);
  transition: gap 0.18s;
}
.card-cta svg { width: 14px; height: 14px; }
.acquire-card:hover .card-cta { gap: 9px; }

/* ═══════════════════════════════════════════════════
   METHODOLOGY SECTION
════════════════════════════════════════════════════ */
.methodology-section {
  padding: 5rem 2rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.method-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.section-badge {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--gold-hi); margin-bottom: 0.85rem;
  border-bottom: 1px solid rgba(196,144,31,0.3); padding-bottom: 2px;
}
.method-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800; color: var(--text); line-height: 1.2; margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.method-text p { color: var(--muted); line-height: 1.75; margin-bottom: 1.1rem; font-size: 0.9rem; }
.method-text p strong { color: var(--text); }
.method-text p em { color: var(--gold-hi); font-style: normal; }

.method-steps { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.1rem; }
.step { display: flex; align-items: flex-start; gap: 0.9rem; }
.step-icon {
  width: 36px; height: 36px; border-radius: var(--radius); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.step-icon svg { width: 16px; height: 16px; }
.step-1 { background: rgba(74,127,163,0.1); color: var(--steel-hi); }
.step-2 { background: rgba(61,122,86,0.1); color: #4d9968; }
.step-3 { background: var(--gold-pale); color: var(--gold-hi); }
.step-4 { background: rgba(122,111,163,0.1); color: #9b90c4; }
.step > div:last-child { display: flex; flex-direction: column; gap: 2px; }
.step strong { color: var(--text); font-size: 0.88rem; }
.step span { color: var(--muted); font-size: 0.8rem; }

/* Visual code card */
.visual-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius); overflow: hidden;
}
.visual-header {
  display: flex; align-items: center; gap: 5px;
  padding: 10px 14px; background: var(--bg4);
  border-bottom: 1px solid var(--border);
}
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot.red { background: #9e3025; }
.dot.yellow { background: #c4901f; }
.dot.green { background: #3d7a56; }
.visual-title { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); margin-left: 4px; }
.visual-code {
  padding: 1.25rem; font-family: var(--mono); font-size: 0.76rem;
  line-height: 1.85; color: var(--muted); white-space: pre;
}
.c-key { color: var(--steel-hi); }
.c-str { color: #7ac49a; }
.c-num { color: #d4aa50; }

/* ═══════════════════════════════════════════════════
   FEATURES STRIP
════════════════════════════════════════════════════ */
.features-strip {
  padding: 4.5rem 2rem;
  background: var(--bg2);
}
.features-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.feature-item {
  padding: 1.5rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
  transition: border-color 0.18s;
}
.feature-item:hover { border-color: var(--border-hi); border-left-color: var(--gold-hi); }
.fi-icon {
  width: 40px; height: 40px; border-radius: var(--radius);
  background: var(--gold-pale); color: var(--gold-hi);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.85rem;
}
.fi-icon svg { width: 18px; height: 18px; }
.feature-item h4 { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 0.4rem; }
.feature-item p { font-size: 0.8rem; color: var(--muted); line-height: 1.65; }

/* ═══════════════════════════════════════════════════
   HISTORY SECTION
════════════════════════════════════════════════════ */
.history-section {
  padding: 4.5rem 2rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.history-table-wrap {
  max-width: 1000px; margin: 0 auto;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.history-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 0.65rem;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--border);
}
.history-toolbar-actions {
  display: flex; align-items: center; gap: 0.55rem;
  flex-wrap: wrap;
}
.history-selection-summary {
  font-size: 0.76rem;
  color: var(--text);
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-gold);
  background: var(--gold-pale);
  white-space: nowrap;
}
.history-search {
  flex: 1; max-width: 260px;
  padding: 5px 11px;
  background: var(--bg4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text); font-size: 0.8rem; font-family: inherit;
  transition: border-color 0.18s;
}
.history-search:focus { outline: none; border-color: var(--gold); }
.history-search::placeholder { color: var(--muted2); }
.history-label {
  max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.history-operator {
  font-size: 0.8rem; color: var(--muted); white-space: nowrap;
}
.btn-refresh {
  display: flex; align-items: center; gap: 5px;
  background: var(--bg4); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 5px 12px;
  color: var(--muted); font-size: 0.8rem; font-weight: 500; cursor: pointer;
  transition: all 0.18s; text-decoration: none;
}
.btn-refresh:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn-refresh:disabled { opacity: 0.45; cursor: not-allowed; color: var(--muted); border-color: var(--border); }
.btn-refresh svg { width: 13px; height: 13px; }
.btn-refresh-secondary { background: var(--bg); }
@media (max-width: 820px) {
  .history-toolbar { flex-direction: column; align-items: stretch; }
  .history-search { max-width: none; }
  .history-toolbar-actions { justify-content: flex-end; flex-wrap: wrap; }
}
.history-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.85rem; padding: 3.5rem; color: var(--muted); text-align: center;
}
.history-empty svg { width: 44px; height: 44px; opacity: 0.25; }
.history-empty p { font-size: 0.88rem; }
.history-table { width: 100%; border-collapse: collapse; }
.history-table th {
  text-align: left; padding: 0.65rem 1.1rem;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--muted2); background: var(--bg4);
  border-bottom: 1px solid var(--border);
}
.history-table td {
  padding: 0.8rem 1.1rem; font-size: 0.83rem; color: var(--text);
  border-bottom: 1px solid var(--border); vertical-align: middle;
}
.history-table tr:last-child td { border-bottom: none; }
.history-table tr:hover td { background: rgba(196,144,31,0.03); }
.history-row-selected td { background: rgba(196,144,31,0.06); }
.history-row-selected:hover td { background: rgba(196,144,31,0.09); }
.history-select-head,
.history-select-cell {
  width: 40px;
  text-align: center !important;
  padding-left: 0.75rem !important;
  padding-right: 0.75rem !important;
}
.history-checkbox { width: 15px; height: 15px; accent-color: var(--gold); cursor: pointer; }
.type-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px; border-radius: 2px;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em;
}
.type-url { background: rgba(74,127,163,0.12); color: #8cb8d4; }
.type-camera { background: rgba(61,122,86,0.12); color: #7ac49a; }
.type-file { background: var(--gold-pale); color: #d4aa50; }
.hash-cell {
  font-family: var(--mono); font-size: 0.7rem; color: var(--muted);
  max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.btn-download {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 11px; border-radius: var(--radius);
  background: var(--bg4); border: 1px solid var(--border);
  color: var(--muted); font-size: 0.73rem; text-decoration: none; cursor: pointer;
  transition: all 0.18s;
}
.btn-download:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn-download svg { width: 12px; height: 12px; }

.history-actions { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; }
.history-action-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  padding: 4px 11px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg4);
  color: var(--muted); font-size: 0.73rem; font-weight: 600; cursor: pointer;
  transition: all 0.18s;
}
.history-action-btn:hover { color: var(--text); border-color: var(--border-hi); background: var(--bg3); }
.history-action-danger {
  color: #d0695f; border-color: rgba(158,48,37,0.25); background: rgba(158,48,37,0.07);
}
.history-action-danger:hover { color: #e07068; border-color: rgba(158,48,37,0.4); background: rgba(158,48,37,0.12); }

/* ═══════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════ */
.footer {
  padding: 2.5rem 2rem 3rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.footer-inner { max-width: 1240px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.25rem; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; gap: 0.6rem; max-width: 580px; }
.footer-logo { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; font-weight: 700; color: var(--text); }
.footer-logo .logo-icon { width: 22px; height: 22px; }
.footer-tagline { font-size: 0.85rem; color: var(--muted); line-height: 1.65; }
.footer-links {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.55rem;
}
.footer-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 34px; padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--muted); text-decoration: none;
  font-size: 0.79rem; font-weight: 600; transition: all 0.18s;
}
.footer-link:hover { color: var(--text); border-color: var(--gold); background: var(--bg4); }
.footer-meta { display: grid; gap: 0.55rem; padding-top: 0.85rem; border-top: 1px solid var(--border); }
.footer-copy { font-size: 0.79rem; color: var(--muted2); }
.footer-legal, .footer-note { font-size: 0.73rem; color: var(--muted2); line-height: 1.7; max-width: 960px; }

@media (max-width: 720px) {
  .footer { padding: 2rem 1.25rem 2.5rem; }
  .footer-top, .footer-brand { align-items: center; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-meta { text-align: center; justify-items: center; }
}

/* ═══════════════════════════════════════════════════
   MODAL
════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.75);
  display: flex; align-items: center; justify-content: center; padding: 1.25rem;
  opacity: 0; pointer-events: none; transition: opacity 0.22s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  position: relative;
  background: var(--bg3); border: 1px solid var(--border-hi);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius); padding: 2rem;
  width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  transform: translateY(16px); transition: transform 0.22s;
}
.modal-wide { max-width: 1000px; }
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 32px; height: 32px; border-radius: var(--radius);
  background: var(--bg4); border: 1px solid var(--border);
  color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.18s;
}
.modal-close:hover { background: var(--bg); color: var(--text); border-color: var(--border-hi); }
.modal-close svg { width: 14px; height: 14px; }

.modal-title { font-size: 1.2rem; font-weight: 800; color: var(--text); margin-bottom: 0.35rem; }
.modal-subtitle { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.75rem; }

.history-modal-loading {
  display: flex; align-items: center; gap: 0.65rem;
  color: var(--muted); font-size: 0.88rem;
}

.modal-success { max-width: 480px; text-align: center; }

.success-modal-icon {
  width: 68px; height: 68px; margin: 0 auto 1.1rem;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: #7ac49a;
  background: rgba(61,122,86,0.1);
  border: 1px solid rgba(61,122,86,0.25);
}
.success-modal-icon svg { width: 30px; height: 30px; }
.success-modal-actions { display: flex; justify-content: center; }

.post-submit-home-link { display: flex; justify-content: center; margin-top: 1.25rem; }
.post-submit-home-anchor {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; color: var(--gold-hi);
  font-weight: 600; font-size: 0.9rem;
  padding: 0.65rem 1.1rem; border-radius: var(--radius);
  border: 1px solid rgba(196,144,31,0.25);
  background: var(--gold-pale); transition: all 0.18s;
}
.post-submit-home-anchor:hover { color: var(--text); border-color: var(--gold); background: rgba(196,144,31,0.15); }

.form-group { margin-bottom: 1.1rem; }
.case-form-block {
  margin-bottom: 1.25rem; padding: 0.9rem 0.9rem 0.1rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg4);
}
.case-form-header { margin-bottom: 0.8rem; }
.case-form-title { margin: 0 0 0.25rem; font-size: 0.87rem; font-weight: 700; color: var(--text); }
.case-form-subtitle { margin: 0; font-size: 0.78rem; color: var(--muted); line-height: 1.5; }
.case-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 0.9rem; }
.case-form-full { grid-column: 1 / -1; }
.form-label {
  display: block; font-size: 0.76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--muted2); margin-bottom: 0.4rem;
}
.form-input {
  width: 100%; padding: 0.65rem 0.85rem;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-family: var(--font); font-size: 0.88rem;
  transition: border-color 0.18s; outline: none;
}
.form-input:focus { border-color: var(--gold); }
.form-input::placeholder { color: var(--muted2); }
.form-textarea { min-height: 84px; resize: vertical; line-height: 1.5; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.55rem 1.2rem;
  background: var(--bg4); color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius); font-weight: 600; font-size: 0.85rem;
  cursor: pointer; transition: all 0.18s;
}
.btn-secondary:hover { background: var(--bg3); color: var(--text); border-color: var(--border-hi); }
.btn-secondary:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-primary {
  width: 100%; padding: 0.8rem;
  border-radius: var(--radius); border: none; cursor: pointer;
  font-size: 0.95rem; font-weight: 700; color: #0c0c09;
  background: var(--gold);
  transition: background 0.18s, transform 0.1s;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.btn-primary:hover { background: var(--gold-hi); }
.btn-primary:active { transform: scale(0.99); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn-blue  { background: var(--steel) !important; color: var(--text) !important; }
.btn-blue:hover  { background: var(--steel-hi) !important; }
.btn-green { background: var(--green) !important; color: var(--text) !important; }
.btn-green:hover { background: #4d9968 !important; }
.btn-amber { background: var(--gold) !important; color: #0c0c09 !important; }
.btn-amber:hover { background: var(--gold-hi) !important; }
.btn-onion { background: #7a6fa3 !important; color: var(--text) !important; }
.btn-onion:hover { background: #9b90c4 !important; }

/* Progress */
.progress-wrap {
  display: none; margin-top: 1.25rem;
  background: var(--bg4); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.1rem;
}
.progress-label { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.65rem; display: flex; align-items: center; gap: 7px; }
.progress-bar-track { height: 3px; background: var(--bg); border-radius: 2px; overflow: hidden; }
.progress-bar-fill {
  height: 100%; border-radius: 2px;
  background: var(--gold);
  transition: width 0.4s ease; width: 0%;
}
.spinner {
  width: 13px; height: 13px; border: 2px solid rgba(196,144,31,0.2);
  border-top-color: var(--gold); border-radius: 50%;
  animation: spin 0.8s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Result box */
.result-box {
  display: none; margin-top: 1.25rem;
  background: rgba(61,122,86,0.05); border: 1px solid rgba(61,122,86,0.2);
  border-left: 3px solid var(--green);
  border-radius: var(--radius); padding: 1.25rem;
}
.result-box.error {
  background: rgba(158,48,37,0.05); border-color: rgba(158,48,37,0.2);
  border-left-color: #9e3025;
}
.result-title { font-size: 0.87rem; font-weight: 700; color: #7ac49a; margin-bottom: 0.85rem; display: flex; align-items: center; gap: 5px; }
.result-box.error .result-title { color: #d0695f; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.result-item { display: flex; flex-direction: column; gap: 2px; }
.result-item .ri-label { font-size: 0.67rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted2); }
.result-item .ri-value { font-size: 0.8rem; color: var(--text); font-family: var(--mono); word-break: break-all; }
.result-full { grid-column: 1 / -1; }
.result-download {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 0.85rem; padding: 0.55rem 1.1rem;
  background: rgba(61,122,86,0.1); border: 1px solid rgba(61,122,86,0.28);
  border-radius: var(--radius); color: #7ac49a; font-size: 0.82rem; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: all 0.18s;
  appearance: none; -webkit-appearance: none; font-family: inherit;
}
button.result-download:disabled { cursor: default; }
.result-download:hover { background: rgba(61,122,86,0.18); }
.result-download svg { width: 13px; height: 13px; }
.result-primary-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 0.85rem; }
.result-primary-actions .result-download { margin-top: 0; }
.result-download-secondary {
  background: var(--bg4); border-color: var(--border); color: var(--muted);
}
.result-download-secondary:hover { background: var(--bg3); color: var(--text); }
@media (max-width: 720px) {
  .case-form-grid { grid-template-columns: 1fr; }
  .case-form-full { grid-column: auto; }
}

.url-result-section { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.url-result-section:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.url-section-title { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 0.8rem; }
.url-section-note { margin-top: 0.75rem; color: var(--muted); font-size: 0.79rem; line-height: 1.65; }

.url-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
.url-summary-card {
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 0.85rem 0.9rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg4);
}
.url-summary-card-wide { grid-column: 1 / -1; }
.url-card-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted2); }
.url-card-value { color: var(--text); font-size: 0.83rem; font-family: var(--mono); word-break: break-word; }

.url-preview-shell {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--bg4);
}
.url-preview-image { display: block; width: 100%; height: auto; }

.url-inline-links, .url-result-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 0.85rem; }
.url-inline-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 0.45rem 0.85rem; border-radius: var(--radius);
  border: 1px solid var(--border-hi); background: var(--bg4);
  color: var(--muted); text-decoration: none; font-size: 0.79rem; font-weight: 600;
  transition: all 0.18s;
}
.url-inline-link:hover { color: var(--text); border-color: var(--gold); }
.url-inline-link-strong { border-color: rgba(61,122,86,0.25); background: rgba(61,122,86,0.07); color: #7ac49a; }
.url-inline-link-strong:hover { border-color: rgba(61,122,86,0.4); }

.url-table-wrap {
  overflow-x: auto; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--bg4);
}
.url-data-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.url-data-table th,
.url-data-table td { padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.url-data-table tr:last-child td { border-bottom: none; }
.url-data-table th { color: var(--muted2); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.09em; background: var(--bg3); }
.url-data-table td { color: var(--text); font-size: 0.78rem; }

.url-host-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
.url-host-card { padding: 0.85rem 0.9rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg4); }
.url-host-topline { display: flex; align-items: center; justify-content: space-between; gap: 0.65rem; margin-bottom: 0.35rem; }
.url-host-name { color: var(--text); font-size: 0.83rem; font-weight: 700; word-break: break-all; }
.url-host-badge {
  flex-shrink: 0; padding: 0.18rem 0.5rem; border-radius: 2px;
  font-size: 0.65rem; font-weight: 700; color: var(--steel-hi);
  background: rgba(74,127,163,0.1); border: 1px solid rgba(74,127,163,0.18);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.url-host-meta { color: var(--muted); font-size: 0.77rem; line-height: 1.6; }
.url-file-link { color: var(--steel-hi); text-decoration: none; }
.url-file-link:hover { color: var(--text); text-decoration: underline; }

/* Camera view */
#cameraPreview { width: 100%; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16/9; display: none; margin-bottom: 0.85rem; }
#cameraPreview video { width: 100%; height: 100%; object-fit: cover; }
#capturedCanvas { display: none; width: 100%; border-radius: var(--radius); margin-bottom: 0.85rem; }

/* File drop zone */
.drop-zone {
  border: 1px dashed var(--border-hi); border-radius: var(--radius);
  padding: 2.25rem; text-align: center; cursor: pointer;
  transition: all 0.18s; margin-bottom: 1.1rem;
}
.drop-zone:hover, .drop-zone.dragover { border-color: var(--gold); background: var(--gold-pale); }
.drop-zone svg { width: 36px; height: 36px; color: var(--muted); margin-bottom: 0.65rem; }
.drop-zone p { color: var(--muted); font-size: 0.85rem; }
.drop-zone p strong { color: var(--text); }
.drop-zone .file-selected { color: var(--gold-hi); font-weight: 600; margin-top: 0.45rem; font-size: 0.83rem; }
#fileInput { display: none; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════ */

/* ── ≤ 1024px - Tablet landscape ── */
@media (max-width: 1024px) {
  .acquire-grid { grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
  .acquire-grid .acquire-card { grid-column: span 1; }

  .method-inner { gap: 3rem; }
  .acquire-section { padding: 4rem 1.5rem 4.5rem; }
  .methodology-section { padding: 4rem 1.5rem; }
  .features-strip { padding: 3.5rem 1.5rem; }
  .history-section { padding: 3.5rem 1.5rem; }
  .section-header { margin-bottom: 2.5rem; }
}

/* ── ≤ 900px - Tablet portrait ── */
@media (max-width: 900px) {
  .nav-links a:not(.nav-cta):not(.nav-cta-secondary) { display: none; }
  .nav-inner { padding: 0 1.25rem; }

  .hero { padding: 72px 1.5rem 44px; }
  .acquire-section, .methodology-section, .features-strip, .history-section { padding-left: 1.25rem; padding-right: 1.25rem; }

  .method-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .features-inner { grid-template-columns: repeat(2, 1fr); }

  .modal-overlay { padding: 0.75rem; align-items: flex-end; }
  .modal { border-radius: var(--radius) var(--radius) 0 0; max-height: 92vh; }
  .modal-wide { max-width: 100%; }
}

/* ── ≤ 640px - Mobile ── */
@media (max-width: 640px) {
  .nav-inner { height: 52px; padding: 0 1rem; }
  .logo-text { font-size: 1rem; }

  .hero { padding: 64px 1rem 40px; min-height: auto; }
  .hero-title { font-size: clamp(1.9rem, 7vw, 2.8rem); }
  .hero-subtitle { font-size: 0.93rem; }
  .hero-stats { gap: 1.25rem; padding: 0.9rem 1.25rem; }
  .stat-value { font-size: 0.9rem; }

  .acquire-grid { grid-template-columns: 1fr; gap: 0.9rem; }
  .acquire-grid .acquire-card { grid-column: 1; }
  .acquire-card { padding: 1.35rem 1.2rem; }

  .method-inner { gap: 2rem; }
  .features-inner { grid-template-columns: 1fr; }

  .history-table th { font-size: 0.64rem; padding: 0.55rem 0.75rem; }
  .history-table td { font-size: 0.79rem; padding: 0.65rem 0.75rem; }

  .modal { padding: 1.5rem 1.25rem; }
  .modal-title { font-size: 1.1rem; }

  .result-grid { grid-template-columns: 1fr; }
  .url-summary-grid { grid-template-columns: 1fr; }
  .url-host-grid { grid-template-columns: 1fr; }
}

/* ── ≤ 480px - Small mobile ── */
@media (max-width: 480px) {
  .hero-stats { display: none; }
  .hero-badge { font-size: 0.72rem; }

  .acquire-card { padding: 1.2rem 1rem; }
  .card-number { font-size: 1.8rem; }

  .history-toolbar { padding: 0.6rem 0.75rem; }
  .history-search { font-size: 0.76rem; }

  .footer { padding: 1.75rem 1rem 2rem; }

  .modal { padding: 1.25rem 1rem; }
}
