/* Phone Intelligence — full design port from React app */

:root {
  --radius: 1rem;
  --background: #0f172a;
  --foreground: #f8fafc;
  --card: #1e293b;
  --primary: #3b82f6;
  --primary-glow: #60a5fa;
  --secondary: #334155;
  --muted: #1e293b;
  --muted-foreground: #cbd5e1;
  --accent: #22d3ee;
  --success: #34d399;
  --destructive: #f87171;
  --border: rgba(255, 255, 255, 0.08);
  --input: rgba(255, 255, 255, 0.1);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.1);
  --gradient-primary: linear-gradient(135deg, #3b82f6, #06b6d4);
  --gradient-hero:
    radial-gradient(ellipse at top, rgba(59, 130, 246, 0.25), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(6, 182, 212, 0.15), transparent 60%);
  --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  --shadow-glow: 0 0 40px -8px rgba(59, 130, 246, 0.6);
  --shadow-glow-cyan: 0 0 40px -8px rgba(6, 182, 212, 0.6);
  --shadow-soft: 0 10px 30px -12px rgba(0, 0, 0, 0.5), 0 2px 6px -2px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { color-scheme: dark; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  background-image: var(--gradient-hero);
  background-attachment: fixed;
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--primary-glow); }

button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
}

h1 { font-size: clamp(2rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p { margin: 0; }

.app-shell { min-height: 100vh; display: flex; width: 100%; }
.main { flex: 1; min-width: 0; }

/* Utilities */
.muted { color: var(--muted-foreground); }
.text-secondary { color: #e2e8f0; }
.tiny { font-size: 0.8125rem; }
.tabular { font-variant-numeric: tabular-nums; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w { max-width: 36rem; margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }
.hide-sm { display: none; }
.hide-xs { display: none; }
@media (min-width: 640px) { .hide-xs { display: inline; } }
@media (min-width: 768px) { .hide-sm { display: inline; } }

.glass {
  background: var(--gradient-card);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
}

.glass-strong {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.5rem;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-primary-bg,
.btn-primary {
  background: var(--gradient-primary);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #fff !important;
  border: none;
  border-radius: 0.75rem;
  padding: 0.875rem 1.25rem;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s;
}
.btn-primary:hover { transform: scale(1.02); text-decoration: none; }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--glass);
  color: var(--foreground) !important;
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  padding: 0.875rem 1.25rem;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); text-decoration: none; }

.btn-block { width: 100%; display: inline-flex; }

.icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--muted-foreground);
}
.pill.success { color: var(--success); }
.pill.accent { color: var(--accent); }
.pill.primary { color: var(--primary); }

.badge-danger {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: rgba(239, 68, 68, 0.2);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.55);
}

.page {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}
@media (min-width: 768px) {
  .page { padding-left: 2.5rem; padding-right: 2.5rem; }
}

.eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

.card-panel { padding: 1.25rem; }
@media (min-width: 768px) { .card-panel { padding: 1.5rem; } }

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
}
hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0.75rem 0;
}

.field { display: block; margin-bottom: 1rem; text-align: left; }
.field > span,
.field .label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 0.4rem;
}
.input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.75rem;
  transition: box-shadow 0.2s;
}
.input-wrap:focus-within { box-shadow: var(--shadow-glow); }
.input-wrap select {
  flex: 1;
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
  padding: 0.65rem 0.25rem;
  min-height: 2.5rem;
}
.input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--foreground);
  font-size: 0.875rem;
  min-width: 0;
}
.input-wrap input::placeholder { color: var(--muted-foreground); }

.error { color: #fecaca; font-size: 0.85rem; margin: 0.5rem 0; }
.alert {
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.alert a { color: inherit; text-decoration: underline; }
.alert-warn {
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.35);
  color: #fde68a;
}
.alert-ok {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #a7f3d0;
}

/* Animations */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scale-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px -4px rgba(59, 130, 246, 0.5); }
  50% { box-shadow: 0 0 40px 0 rgba(59, 130, 246, 0.7); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes wait-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

.anim-fade-up { animation: fade-up 0.6s ease both; }
.anim-fade-up-d1 { animation: fade-up 0.5s ease 0.15s both; }
.anim-fade-up-d2 { animation: fade-up 0.5s ease 0.3s both; }
.anim-scale-in { animation: scale-in 0.45s ease both; }
.anim-pulse-glow { animation: pulse-glow 2.5s ease-in-out infinite; }
.anim-float { animation: float 4s ease-in-out infinite; }

/* ===== Hero / Home ===== */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.25rem;
  max-width: 48rem;
  margin: 0 auto;
}
.hero h1 { line-height: 1.05; }
.hero-sub {
  margin: 1rem auto 0;
  max-width: 28rem;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--muted-foreground);
  line-height: 1.5;
}

.search-error {
  margin: 0.75rem auto 0;
  max-width: 36rem;
  text-align: center;
  color: #fca5a5;
  font-size: 0.85rem;
  font-weight: 500;
}
.search-error[hidden] { display: none !important; }

.search-bar { width: 100%; max-width: 36rem; margin-top: 2.5rem; }
.search-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  box-shadow: var(--shadow-soft);
  border-radius: 1rem;
  transition: box-shadow 0.25s;
}
.search-inner:focus-within { box-shadow: var(--shadow-glow); }
.country-wrap { position: relative; }
.country-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: none;
  color: var(--foreground);
  padding: 0.75rem;
  border-radius: 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s;
}
.country-btn:hover { background: rgba(255, 255, 255, 0.05); }
.country-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  padding: 0.25rem;
  min-width: 140px;
  z-index: 30;
  box-shadow: var(--shadow-card);
  border-radius: 0.75rem;
}
.country-option {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: none;
  color: var(--foreground);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  text-align: left;
}
.country-option:hover { background: rgba(255, 255, 255, 0.1); }
.divider { width: 1px; height: 2rem; background: rgba(255, 255, 255, 0.1); }
#phone-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--foreground);
  font-size: 0.875rem;
  padding: 0.75rem 0.5rem;
}
#phone-input::placeholder { color: var(--muted-foreground); }
.search-submit { flex-shrink: 0; padding: 0.75rem 1.25rem; }

/* ===== Loading / Searching ===== */
.center-stage {
  min-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
}
.searching { justify-content: flex-start; padding-top: 2.5rem; min-height: calc(100vh - 6rem); }

.radar {
  position: relative;
  width: 10rem;
  height: 10rem;
  margin-bottom: 1.5rem;
}
.center-stage:not(.searching) .radar {
  width: 16rem;
  height: 16rem;
  margin-bottom: 2.5rem;
}
.radar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
}
.radar-ring.glass-fill { background: var(--gradient-card); backdrop-filter: blur(20px); }
.radar-ring.r2 { inset: 0.75rem; }
.center-stage:not(.searching) .radar-ring.r2 { inset: 1rem; }
.radar-ring.r3 { inset: 1.5rem; }
.center-stage:not(.searching) .radar-ring.r3 { inset: 2.5rem; }

.radar-sweep-wrap {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(circle, black 60%, transparent 61%);
  mask-image: radial-gradient(circle, black 60%, transparent 61%);
}
.radar-sweep {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 50%;
  background: linear-gradient(180deg, transparent, rgba(6, 182, 212, 0.5));
  transform-origin: 50% 100%;
  animation: spin 2s linear infinite;
}
.radar-core {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  color: #fff;
}
.center-stage:not(.searching) .radar-core {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
}
.loading-msg { font-size: 1.125rem; font-weight: 500; margin-bottom: 0.25rem; }

.progress-track {
  width: 100%;
  max-width: 16rem;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  margin-top: 1.25rem;
}
.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-primary);
}

.feed {
  width: 100%;
  max-width: 28rem;
  margin-top: 1.5rem;
  display: grid;
  gap: 0.5rem;
}
.feed-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  text-align: left;
  border-radius: 0.75rem;
  animation: fade-up 0.25s ease both;
}
.feed-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-glow 1.5s infinite;
  flex-shrink: 0;
}

/* ===== Account ===== */
.account-wrap {
  max-width: 36rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.account-card {
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border-radius: 1.5rem;
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.account-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background: var(--gradient-primary);
  filter: blur(48px);
}
.account-card > * { position: relative; }
.account-lead {
  color: #e2e8f0;
  font-size: 0.9375rem;
  line-height: 1.55;
  max-width: 22rem;
  margin: 0.85rem auto 0;
}
.account-card .badge-danger { margin-top: 1.35rem; }
.icon-lock {
  width: 5rem;
  height: 5rem;
  border-radius: 1.5rem;
  display: grid;
  place-items: center;
  margin: 0 auto;
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.info-box {
  padding: 0.75rem 0.9rem;
  text-align: left;
  margin: 1.25rem 0;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.info-box .row { margin: 0.3rem 0; font-size: 0.9rem; }
.info-box hr { margin: 0.4rem 0; }
.info-box .label {
  color: #94a3b8;
  font-size: 0.8125rem;
  font-weight: 500;
}
.info-box .value {
  color: #f8fafc;
  font-size: 0.875rem;
  font-weight: 500;
}
.info-box .value-price {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 1.15rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: #e2e8f0;
}
.perks span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}
.note {
  padding: 1rem 1.1rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #e2e8f0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-align: left;
  border-radius: 1rem;
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.note .icon { color: var(--accent); margin-top: 0.15rem; flex-shrink: 0; }

/* ===== Payment ===== */
.payment-wrap {
  max-width: 28rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}
.payment-wrap h1 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
}
.payment-status-card {
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-card);
  animation: fade-up 0.35s ease both;
}
.payment-status-card .wait-pulse {
  margin-bottom: 1.5rem;
}
.payment-status-card .success-check,
.payment-status-card .fail-icon {
  margin-bottom: 1.25rem;
}
.wait-pulse {
  position: relative;
  width: 8rem;
  height: 8rem;
  margin: 0 auto 2rem;
}
.wait-pulse .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(59, 130, 246, 0.3);
  animation: wait-ring 1.6s ease-out infinite;
}
.wait-pulse .ring.r2 {
  border-color: rgba(6, 182, 212, 0.3);
  animation-delay: 0.5s;
}
.spinner-box {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 5rem;
  height: 5rem;
  border-radius: 1.5rem;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-glow);
}
.spinner-box .spin {
  width: 2rem;
  height: 2rem;
  border: 2.5px solid rgba(59, 130, 246, 0.25);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.success-check {
  width: 6rem;
  height: 6rem;
  border-radius: 1.5rem;
  display: grid;
  place-items: center;
  margin: 0 auto 1.5rem;
  color: #fff;
  animation: scale-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.fail-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 1.5rem;
  display: grid;
  place-items: center;
  margin: 0 auto 1.5rem;
  background: rgba(239, 68, 68, 0.2);
  color: var(--destructive);
  font-size: 1.75rem;
}

/* ===== Dashboard results ===== */
.results-page { max-width: 64rem; }
.results-hero {
  margin-bottom: 0.25rem;
  padding-bottom: 0;
  border-bottom: none;
}
.results-card {
  padding: 1.25rem 1.35rem 1.4rem;
  margin-bottom: 0.25rem;
  box-shadow: var(--shadow-card);
}
@media (min-width: 640px) {
  .results-card { padding: 1.5rem 1.75rem 1.65rem; }
}
.results-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.results-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  font-weight: 600;
}
.results-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--success);
}
.results-live-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  animation: results-pulse 1.6s ease-out infinite;
}
@keyframes results-pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.results-phone {
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
}
.results-phone-sub {
  margin-top: 0.35rem;
  font-size: 0.875rem;
}
.results-sources-inline strong {
  font-weight: 700;
}
.results-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.25rem;
}
.results-step {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
}
.results-step.is-active {
  color: #fff;
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.15);
}
.results-step.is-done {
  color: var(--success);
  border-color: rgba(52, 211, 153, 0.25);
  background: rgba(52, 211, 153, 0.08);
}
.results-step-line {
  width: 1.25rem;
  height: 1px;
  background: var(--border);
}
.results-hint {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #e2e8f0;
  max-width: 36rem;
  line-height: 1.45;
}

.findings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}
@media (min-width: 1024px) {
  .findings-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
}
.finding-card {
  padding: 1.15rem 1.25rem;
  text-align: left;
  color: inherit;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  animation: fade-up 0.4s ease both;
  display: flex;
  flex-direction: column;
}
.finding-card:nth-child(1) { animation-delay: 0.06s; }
.finding-card:nth-child(2) { animation-delay: 0.12s; }
.finding-card:nth-child(3) { animation-delay: 0.18s; }
.finding-card:nth-child(4) { animation-delay: 0.24s; }
.finding-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(96, 165, 250, 0.35);
}
.finding-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.finding-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 0;
}
.finding-lock {
  color: var(--muted-foreground);
  opacity: 0.7;
}
.finding-title { font-weight: 600; margin-bottom: 0.25rem; }
.finding-cta {
  margin-top: auto;
  padding-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-glow);
}
.finding-card:hover .finding-cta { color: #fff; }
.accent-success .finding-icon { color: var(--success); }
.accent-primary .finding-icon { color: var(--primary); }
.accent-accent .finding-icon { color: var(--accent); }
.accent-danger .finding-icon { color: var(--destructive); }
.finding-icon-wa {
  background: rgba(37, 211, 102, 0.12) !important;
  border-color: rgba(37, 211, 102, 0.35) !important;
}
.whatsapp-icon { fill: #25D366; stroke: none !important; }

@media (max-width: 640px) {
  .results-step-line { display: none; }
}

/* ===== VPN / Upgrade ===== */
.vpn-grid {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .vpn-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .vpn-grid { grid-template-columns: repeat(3, 1fr); } }
.vpn-card {
  padding: 1.5rem;
  position: relative;
  border-radius: 1.5rem;
  animation: fade-up 0.45s ease both;
}
.vpn-card:nth-child(1) { animation-delay: 0.06s; }
.vpn-card:nth-child(2) { animation-delay: 0.12s; }
.vpn-card:nth-child(3) { animation-delay: 0.18s; }
.vpn-card:nth-child(4) { animation-delay: 0.24s; }
.vpn-card:nth-child(5) { animation-delay: 0.3s; }
.vpn-card:nth-child(6) { animation-delay: 0.36s; }
.vpn-card.highlight {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: var(--shadow-glow);
}
.vpn-badge {
  position: absolute;
  top: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}
.vpn-head { display: flex; align-items: center; gap: 0.75rem; }
.vpn-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.vpn-icon.btn-primary { color: #fff; }
.vpn-icon:not(.btn-primary) { color: var(--accent); }
.vpn-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.vpn-meta span { display: inline-flex; align-items: center; gap: 0.25rem; }
.vpn-price { margin-top: 1.25rem; display: flex; align-items: baseline; gap: 0.25rem; }
.vpn-price .price { font-size: 1.875rem; font-weight: 600; letter-spacing: -0.02em; }
.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
  font-size: 0.875rem;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.5rem 0;
}
.feature-list .icon { color: var(--success); margin-top: 0.125rem; width: 1rem; height: 1rem; }

/* ===== History ===== */
.list { overflow: hidden; border-radius: 1rem; }
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  color: inherit;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s;
}
.list-row:last-child { border-bottom: none; }
.list-row:hover { background: rgba(255, 255, 255, 0.05); }
.list-row.compact { padding: 0.65rem 0.75rem; }
.empty {
  padding: 2.5rem 1.5rem;
  border-radius: 1rem;
}

/* ===== Admin ===== */
.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.admin-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.35rem;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  border-radius: 1rem;
}
.admin-tabs a {
  flex: 1;
  text-align: center;
  padding: 0.65rem 1rem;
  border-radius: 0.75rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none !important;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.admin-tabs a:hover { color: var(--foreground); background: rgba(255, 255, 255, 0.05); }
.admin-tabs a.active {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .stats-grid { grid-template-columns: repeat(6, 1fr); } }
.stat { padding: 1rem; border-radius: 1rem; }
.stat strong { display: block; margin-top: 0.35rem; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.form-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) { .form-grid { grid-template-columns: repeat(2, 1fr); } }

.filter-wrap {
  margin-bottom: 1.25rem;
}
.filter-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}
.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(30, 41, 59, 0.85);
  color: #f1f5f9;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.filter-toggle:hover {
  background: rgba(51, 65, 85, 0.9);
  border-color: rgba(59, 130, 246, 0.4);
}
.filter-toggle .icon { width: 15px; height: 15px; color: var(--accent); }
.filter-toggle .chevron {
  width: 14px;
  height: 14px;
  color: #94a3b8;
  transition: transform 0.2s ease;
}
.filter-wrap.is-open .filter-toggle {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.filter-wrap.is-open .filter-toggle .chevron { transform: rotate(180deg); }
.filter-summary {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.filter-pill {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  font-size: 0.7rem;
  font-weight: 600;
}

.filter-panel {
  padding: 0.85rem;
  border-radius: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-soft);
  animation: fade-up 0.25s ease both;
}
.filter-panel[hidden] {
  display: none !important;
}
.filter-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}
.filter-segment {
  display: inline-flex;
  padding: 0.2rem;
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 0.15rem;
}
.seg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  padding: 0.45rem 0.8rem;
  border-radius: 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.seg:hover { color: #f1f5f9; background: rgba(255, 255, 255, 0.06); }
.seg.active {
  color: #fff;
  background: var(--gradient-primary);
  box-shadow: 0 0 20px -6px rgba(59, 130, 246, 0.7);
}
.filter-divider {
  width: 1px;
  height: 1.6rem;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .filter-divider { display: none; }
  .filter-segment { width: 100%; }
  .seg { flex: 1; }
}

.filter-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}
.filter-dates-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.date-field {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.65rem;
  border-radius: 0.65rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.date-field:focus-within {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.date-field .icon {
  width: 14px;
  height: 14px;
  color: #64748b;
  flex-shrink: 0;
}
.date-field input[type="date"] {
  background: transparent;
  border: none;
  outline: none;
  color: #f1f5f9;
  font-size: 0.8rem;
  font-family: inherit;
  min-width: 8.5rem;
}
.date-field input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7);
  cursor: pointer;
  opacity: 0.7;
}
.date-sep {
  color: #64748b;
  font-size: 0.85rem;
  padding: 0 0.15rem;
}

.filter-search-row {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0.5rem;
  min-width: 14rem;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  padding: 0.45rem 0.75rem;
  border-radius: 0.65rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-field:focus-within {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.search-field .icon {
  width: 15px;
  height: 15px;
  color: #64748b;
  flex-shrink: 0;
}
.search-field input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #f8fafc;
  font-size: 0.85rem;
  min-width: 0;
}
.search-field input::placeholder { color: #64748b; }
.filter-go {
  padding: 0.55rem 1.1rem;
  font-size: 0.8rem;
  border-radius: 0.65rem;
  white-space: nowrap;
}
.filter-reset {
  font-size: 0.8rem;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none !important;
  padding: 0.45rem 0.6rem;
  border-radius: 0.5rem;
}
.filter-reset:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

/* legacy chips kept harmless */
.filter-bar { display: none; }

.max-form { max-width: 24rem; }

.admin-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}
.admin-login-gate {
  width: 100%;
  max-width: 26rem;
}
.admin-login-head {
  margin-bottom: 1.5rem;
}
.admin-login-head h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: #fff;
}
.admin-login-card {
  width: 100%;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}
.admin-login-card h2 {
  color: #fff;
  margin-bottom: 0.35rem;
}
.admin-login-hint {
  color: #e2e8f0;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  line-height: 1.45;
}
.admin-login-card .label {
  display: block;
  font-size: 0.8125rem;
  color: #94a3b8;
  font-weight: 500;
  margin-bottom: 0.4rem;
}
.check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  margin: 1rem 0;
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
th, td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
th {
  color: var(--muted-foreground);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: capitalize;
}
.status-completed { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.status-pending { background: rgba(6, 182, 212, 0.15); color: var(--accent); }
.status-failed { background: rgba(239, 68, 68, 0.15); color: var(--destructive); }
.linkish {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
}
code {
  font-size: 0.8em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1rem 0.35rem;
  border-radius: 0.35rem;
  font-family: ui-monospace, monospace;
}

.space-y > * + * { margin-top: 1rem; }
