/* 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: system-ui, -apple-system, "Segoe UI", Roboto, 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: scroll;
  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;
  isolation: isolate;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.5rem 1.25rem 3rem;
  max-width: 52rem;
  margin: 0 auto;
  overflow: hidden;
}
.hero-grid,
.hero-glow {
  position: absolute;
  pointer-events: none;
  z-index: -1;
}
.hero-grid {
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 15%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 15%, transparent 72%);
}
.hero-glow {
  width: 28rem;
  height: 28rem;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 40%, rgba(59, 130, 246, 0.45), transparent 58%),
    radial-gradient(circle at 70% 60%, rgba(34, 211, 238, 0.28), transparent 55%);
  filter: blur(18px);
  animation: float 7s ease-in-out infinite;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.4rem 0.85rem 0.4rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #dbeafe;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.35);
}
.hero-badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7);
  animation: wait-ring 1.8s ease-out infinite;
}
.hero h1 { line-height: 1.08; text-wrap: balance; }
.hero-sub {
  margin: 1.1rem auto 0;
  max-width: 30rem;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--muted-foreground);
  line-height: 1.6;
}
.hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin: 1.75rem 0 0;
  padding: 0;
}
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem 0.45rem 0.45rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 500;
}
.hero-point-icon {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.18);
  color: #7dd3fc;
}
.hero-point-icon .icon { width: 0.9rem; height: 0.9rem; }

.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: 2rem; }
.search-hint {
  margin: 0.7rem 0 0;
  color: #94a3b8;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}
.search-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.45rem 0.45rem 0.35rem;
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  transition: box-shadow 0.25s, border-color 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 1rem;
}
#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;
}
.info-box .lookup-name {
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: right;
  max-width: 65%;
  line-height: 1.3;
}
.account-verify-note {
  margin: 0.35rem 0 0;
  padding: 0.65rem 0.1rem 0;
  color: #e2e8f0;
  font-size: 0.875rem;
  line-height: 1.55;
  text-align: left;
}
.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-owner-name {
  margin-top: 0.5rem;
  font-size: clamp(1.15rem, 3.2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.92);
}
.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; }

button.finding-card {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Source unlock modal (dashboard) */
.source-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.source-modal[hidden] {
  display: none !important;
}
.source-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 23, 0.72);
  backdrop-filter: blur(6px);
}
.source-modal-panel {
  position: relative;
  width: min(100%, 22rem);
  padding: 1.5rem 1.35rem 1.25rem;
  border-radius: var(--radius-lg, 1rem);
  box-shadow: var(--shadow-card);
  animation: anim-fade-up 0.35s ease-out both;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.source-modal-panel.is-danger {
  width: min(100%, 27rem);
  padding: 1.65rem 1.5rem 1.35rem;
  border: 1px solid rgba(239, 68, 68, 0.38);
  background: linear-gradient(165deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
  box-shadow:
    0 0 0 1px rgba(239, 68, 68, 0.08),
    0 28px 56px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(239, 68, 68, 0.14);
}
.source-modal-panel.is-unlock-step {
  width: min(100%, 27rem);
  padding: 1.65rem 1.5rem 1.35rem;
  border: 1px solid rgba(59, 130, 246, 0.42);
  background: linear-gradient(165deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.1),
    0 28px 56px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(59, 130, 246, 0.16);
}
.source-modal-panel.is-unlock-step .source-modal-badge {
  color: #bfdbfe;
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.15);
}
.source-modal-danger-icon.is-success {
  background: rgba(52, 211, 153, 0.18);
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.45);
  box-shadow: 0 0 24px rgba(52, 211, 153, 0.22);
}
.source-modal-panel.is-unlock-step .source-modal-danger-icon.is-success svg path:first-child {
  stroke: currentColor;
  fill: none;
}
.source-modal-spinner {
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 2px solid rgba(59, 130, 246, 0.25);
  border-top-color: var(--primary, #3b82f6);
  animation: source-modal-spin 0.85s linear infinite;
}
@keyframes source-modal-spin {
  to { transform: rotate(360deg); }
}
.source-modal-heading {
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.35rem;
}
.source-modal-msg {
  text-align: center;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.source-modal-bar-wrap {
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.source-modal-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3b82f6, #22d3ee);
  transition: width 0.08s linear;
}
.source-modal-danger-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}
.source-modal-danger-icon {
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(239, 68, 68, 0.18);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.45);
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.25);
}
.source-modal-badge {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  color: #fecaca;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.12);
}
.source-modal-heading-danger {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.source-modal-body {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.88);
  margin-bottom: 1rem;
  text-align: center;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}
.source-modal-geo {
  margin-bottom: 1.15rem;
  padding: 0.75rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(239, 68, 68, 0.32);
  background: rgba(2, 6, 23, 0.45);
}
.source-modal-geo-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
  color: #fca5a5;
  margin-bottom: 0.65rem;
}
.source-modal-geo-pulse {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.65);
  animation: results-pulse 1.5s ease-out infinite;
}
.source-modal-geo-list {
  margin: 0;
  display: grid;
  gap: 0.4rem;
}
.source-modal-geo-row {
  display: grid;
  grid-template-columns: 6.75rem 1fr;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.source-modal-geo-list dt {
  margin: 0;
}
.source-modal-geo-label {
  font-size: 0.72rem;
  color: var(--muted-foreground);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.source-modal-geo-value {
  margin: 0;
  color: #f8fafc;
  font-weight: 600;
  font-size: 0.84rem;
  word-break: break-word;
  text-align: right;
}
.source-modal-geo-value.tabular {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.source-modal-actions {
  margin-top: 0.15rem;
}
.source-modal-cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.35);
}
.source-modal-cta:hover {
  box-shadow: 0 14px 32px rgba(59, 130, 246, 0.45);
}
.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 ===== */
.upgrade-page.page {
  max-width: 40rem;
  padding: 0.75rem 0.85rem 1.25rem;
}
.upgrade-layout {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.upgrade-top {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.65rem;
}
.upgrade-back {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.upgrade-back:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
}
.upgrade-back-spacer {
  width: 3.25rem;
}
.upgrade-top-text {
  text-align: center;
  padding-right: 3.25rem;
}
.upgrade-kicker {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93c5fd;
  font-weight: 700;
}
.upgrade-top h1 {
  margin: 0.15rem 0 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.upgrade-warning {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: center;
  color: rgba(226, 232, 240, 0.9);
  padding: 0.55rem 0.65rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.06);
}
.upgrade-warning strong {
  color: #fca5a5;
}
.upgrade-exposure {
  padding: 0.65rem 0.7rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(239, 68, 68, 0.28);
  background: rgba(2, 6, 23, 0.35);
}
.upgrade-exposure-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
  color: #fca5a5;
  margin-bottom: 0.5rem;
}
.upgrade-exposure-pulse {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.65);
  animation: results-pulse 1.5s ease-out infinite;
}
.upgrade-exposure-grid {
  margin: 0;
  display: grid;
  gap: 0.35rem;
}
.upgrade-exposure-grid > div {
  display: grid;
  grid-template-columns: 4.75rem 1fr;
  gap: 0.45rem;
  align-items: baseline;
  font-size: 0.72rem;
}
.upgrade-exposure-grid dt {
  margin: 0;
  color: var(--muted-foreground);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.upgrade-exposure-grid dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
  color: #f8fafc;
  word-break: break-word;
}
.upgrade-offers {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.vpn-offer {
  position: relative;
  border-radius: 0.85rem;
  padding: 0.65rem 0.7rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.vpn-offer-featured {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.12);
}
.vpn-offer-chip {
  position: absolute;
  top: -0.45rem;
  right: 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  color: #fff;
  background: var(--gradient-primary);
}
.vpn-offer-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.45rem 0.55rem;
  align-items: center;
}
.vpn-offer-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}
.vpn-offer-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.6rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.vpn-offer-icon.is-primary {
  color: #fff;
  background: var(--gradient-primary);
  border-color: transparent;
}
.vpn-offer-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.vpn-offer-tag {
  margin: 0.1rem 0 0;
  font-size: 0.68rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vpn-offer-price {
  text-align: right;
  line-height: 1.1;
}
.vpn-offer-amount {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}
.vpn-offer-period {
  font-size: 0.62rem;
}
.vpn-offer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.35rem;
  padding: 0.45rem 0.65rem !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  border-radius: 0.55rem !important;
  white-space: nowrap;
}
.vpn-offer-details,
.vpn-offer-features {
  display: none;
}
@media (min-width: 641px) {
  .upgrade-page.page {
    max-width: 56rem;
    padding: 1.5rem 2rem 2rem;
  }
  .upgrade-exposure {
    order: 2;
  }
  .upgrade-offers {
    order: 3;
  }
  .upgrade-top h1 {
    font-size: clamp(1.65rem, 3vw, 2.1rem);
  }
  .upgrade-warning {
    font-size: 0.925rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
  }
  .upgrade-exposure {
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0.85rem 1rem;
  }
  .upgrade-exposure-grid > div {
    grid-template-columns: 6.5rem 1fr;
    font-size: 0.8rem;
  }
  .upgrade-offers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    margin-top: 0.35rem;
  }
  .vpn-offer {
    padding: 1rem 1rem 1.05rem;
    border-radius: 1rem;
  }
  .vpn-offer-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .vpn-offer-price {
    text-align: left;
  }
  .vpn-offer-amount {
    font-size: 1.35rem;
  }
  .vpn-offer-period {
    font-size: 0.8rem;
  }
  .vpn-offer-btn {
    width: 100%;
    min-height: 2.65rem;
    font-size: 0.9rem !important;
  }
  .vpn-offer-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.65rem;
    font-size: 0.75rem;
  }
  .vpn-offer-features {
    display: grid;
    gap: 0.35rem;
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.8rem;
    color: rgba(226, 232, 240, 0.85);
  }
  .vpn-offer-features li::before {
    content: "✓ ";
    color: var(--success);
    font-weight: 700;
  }
}
@media (min-width: 1024px) {
  .upgrade-offers {
    grid-template-columns: repeat(3, 1fr);
  }
}
.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); } }

.settings-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.settings-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 960px) {
  .settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .settings-card-wide {
    grid-column: 1 / -1;
  }
}
.settings-card {
  padding: 1.15rem 1.2rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-soft);
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.88));
}
.settings-password-card {
  margin-top: 1rem;
}
.settings-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.settings-card-head.compact {
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}
.settings-card-copy h2,
.settings-card-copy h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.settings-card-copy p {
  margin: 0.25rem 0 0;
  line-height: 1.45;
}
.settings-card-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.settings-card-icon .icon { width: 1.25rem; height: 1.25rem; }
.settings-card-icon.pay { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.settings-card-icon.tigopay { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.settings-card-icon.leopay { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.settings-card-icon.abliner { background: linear-gradient(135deg, #0ea5e9, #14b8a6); }
.settings-card-icon.site { background: linear-gradient(135deg, #334155, #475569); }
.settings-card-icon.lock { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.settings-card-body { display: flex; flex-direction: column; gap: 0.85rem; }
.settings-card-body .field .label,
.settings-code .label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.settings-check {
  margin-top: 0.15rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.settings-note {
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.18);
  line-height: 1.5;
}
.settings-code {
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.settings-code code {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  word-break: break-all;
  color: #cbd5e1;
}
.settings-status {
  margin-left: auto;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.settings-status.live {
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(96, 165, 250, 0.35);
}
.settings-status.ok {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(74, 222, 128, 0.28);
}
.settings-status.warn {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(251, 191, 36, 0.28);
}
.provider-segment {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.35rem;
  border-radius: 0.85rem;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.provider-option {
  position: relative;
  cursor: pointer;
}
.provider-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.provider-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  border-radius: 0.65rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #94a3b8;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.provider-option input:checked + span {
  color: #fff;
  background: var(--gradient-primary);
  box-shadow: var(--shadow-glow);
}
.settings-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.25rem 0.15rem 0.5rem;
}

.admin-pay-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}
.admin-approve-form {
  margin: 0;
}
.btn-approve {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(74, 222, 128, 0.35);
  background: rgba(34, 197, 94, 0.16);
  color: #bbf7d0;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn-approve:hover {
  background: rgba(34, 197, 94, 0.28);
  border-color: rgba(134, 239, 172, 0.55);
}

.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; }
