/* Phone Intelligence — full design port from React app */

:root {
  --radius: 1rem;
  --background: #003D16;
  --foreground: #f8fafc;
  --card: #0a4a1f;
  --primary: #D97B00;
  --primary-glow: #f0a040;
  --secondary: #0d5224;
  --muted: #0a4a1f;
  --muted-foreground: #b8d4c0;
  --accent: #f0a040;
  --success: #34d399;
  --destructive: #f87171;
  --border: rgba(255, 255, 255, 0.1);
  --input: rgba(255, 255, 255, 0.12);
  --glass: rgba(0, 61, 22, 0.45);
  --glass-border: rgba(255, 255, 255, 0.12);
  --gradient-primary: linear-gradient(135deg, #D97B00, #b86500);
  --gradient-hero:
    radial-gradient(ellipse at top, rgba(217, 123, 0, 0.14), transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(34, 197, 94, 0.18), transparent 60%),
    linear-gradient(180deg, #004a1a 0%, #003D16 45%, #002910 100%);
  --gradient-card: linear-gradient(135deg, rgba(10, 74, 31, 0.75), rgba(0, 45, 16, 0.85));
  --shadow-glow: 0 0 40px -8px rgba(217, 123, 0, 0.6);
  --shadow-glow-cyan: 0 0 40px -8px rgba(240, 160, 64, 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: "Outfit", 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.03em;
  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(10, 74, 31, 0.72), rgba(0, 45, 16, 0.8));
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  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(217, 123, 0, 0.2);
  color: #fecaca;
  border: 1px solid rgba(240, 160, 64, 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 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(217, 123, 0, 0.5); }
  50% { box-shadow: 0 0 40px 0 rgba(217, 123, 0, 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.45); opacity: 0; }
}
@keyframes radar-ring-pulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.015); }
}

.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;
  filter: drop-shadow(0 0 28px rgba(217, 123, 0, 0.22));
}
.center-stage:not(.searching) .radar {
  width: 16rem;
  height: 16rem;
  margin-bottom: 2.5rem;
}
.radar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(217, 123, 0, 0.28);
  box-shadow:
    inset 0 0 24px rgba(217, 123, 0, 0.08),
    0 0 18px rgba(217, 123, 0, 0.12);
  animation: radar-ring-pulse 3.2s ease-in-out infinite;
}
.radar-ring.glass-fill {
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.1), transparent 55%),
    var(--gradient-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: rgba(255, 255, 255, 0.14);
}
.radar-ring.r2 {
  inset: 0.75rem;
  animation-delay: 0.35s;
  border-color: rgba(217, 123, 0, 0.38);
}
.center-stage:not(.searching) .radar-ring.r2 { inset: 1rem; }
.radar-ring.r3 {
  inset: 1.5rem;
  animation-delay: 0.7s;
  border-color: rgba(240, 160, 64, 0.45);
}
.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(217, 123, 0, 0.55));
  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: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow:
    0 0 0 4px rgba(217, 123, 0, 0.18),
    var(--shadow-glow);
}
.center-stage:not(.searching) .radar-core {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
}
.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: 26rem;
  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.75rem;
  background: linear-gradient(165deg, rgba(12, 86, 36, 0.96), rgba(0, 40, 14, 0.97));
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.account-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(217, 123, 0, 0.55), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(34, 197, 94, 0.2), transparent 50%);
}
.account-card > * { position: relative; z-index: 1; }
.account-card--creative { padding: 2.25rem 1.5rem 1.75rem; }
.account-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(28px);
  z-index: 0;
}
.account-orb--a {
  width: 9rem;
  height: 9rem;
  top: -2.5rem;
  left: 50%;
  margin-left: -4.5rem;
  background: rgba(217, 123, 0, 0.35);
  animation: account-orb-float 5s ease-in-out infinite;
}
.account-orb--b {
  width: 7rem;
  height: 7rem;
  bottom: -1.5rem;
  right: -1rem;
  background: rgba(34, 197, 94, 0.22);
  animation: account-orb-float-b 6.5s ease-in-out 0.8s infinite;
}
@keyframes account-orb-float {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(10px); opacity: 1; }
}
@keyframes account-orb-float-b {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(-8px); opacity: 0.9; }
}

.account-lock-stage {
  position: relative;
  width: 7.5rem;
  height: 7.5rem;
  margin: 0 auto 0.35rem;
  display: grid;
  place-items: center;
}
.account-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed rgba(217, 123, 0, 0.35);
  animation: spin 14s linear infinite;
}
.account-orbit--2 {
  inset: 0.7rem;
  border-style: solid;
  border-color: rgba(240, 160, 64, 0.22);
  animation-direction: reverse;
  animation-duration: 10s;
}
.account-lead {
  color: #d8ebe0;
  font-size: 0.9375rem;
  line-height: 1.55;
  max-width: 22rem;
  margin: 0.85rem auto 0;
}
.account-card .account-status-badge { margin-top: 0.85rem; }
.account-title {
  margin-top: 1rem;
  font-size: clamp(1.65rem, 4vw, 2rem);
  color: #fff;
  letter-spacing: -0.03em;
}
.account-card .badge-danger { margin-top: 1.35rem; }
.account-card .account-meta .badge-danger { margin-top: 0; }
.icon-lock {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto;
  color: #fff;
  box-shadow:
    0 0 0 5px rgba(217, 123, 0, 0.18),
    var(--shadow-glow);
}

.account-price-panel {
  position: relative;
  margin: 1.35rem 0 1rem;
  padding: 1rem 1.15rem 1.1rem;
  border-radius: 1.15rem;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(217, 123, 0, 0.22), rgba(0, 45, 16, 0.55));
  border: 1px solid rgba(217, 123, 0, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.account-price-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f0c48a;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.account-price-value {
  display: block;
  font-size: clamp(1.65rem, 4vw, 2rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.account-price-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.14) 48%, transparent 62%);
  background-size: 200% 100%;
  animation: shimmer 3.2s ease-in-out infinite;
  pointer-events: none;
}

.account-meta {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0.2rem 0.15rem;
  text-align: left;
}
.account-meta li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.85rem;
  background: rgba(0, 45, 16, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.account-meta li + li { margin-top: 0.45rem; }
.account-meta-label {
  color: #a8cbb4;
  font-size: 0.8125rem;
  font-weight: 500;
}
.account-meta-value {
  color: #f8fafc;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: right;
}

.account-cta {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  padding: 1rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.account-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.22) 50%, transparent 75%);
  background-size: 220% 100%;
  animation: shimmer 2.8s ease-in-out infinite;
  pointer-events: none;
}

.info-box {
  padding: 0.75rem 0.9rem;
  text-align: left;
  margin: 1.25rem 0;
  border-radius: 1rem;
  background: rgba(0, 45, 16, 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;
}
.perks--chips {
  gap: 0.4rem;
  margin-top: 1.25rem;
}
.perks--chips span {
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.65rem 0.35rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.7rem;
  color: #d8ebe0;
  line-height: 1.25;
}
.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(10, 74, 31, 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(217, 123, 0, 0.4);
  box-shadow: 0 0 20px rgba(217, 123, 0, 0.15);
  animation: wait-ring 1.8s ease-out infinite;
}
.wait-pulse .ring.r2 {
  border-color: rgba(240, 160, 64, 0.35);
  animation-delay: 0.55s;
}
.spinner-box {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow:
    0 0 0 4px rgba(217, 123, 0, 0.16),
    var(--shadow-glow);
}
.spinner-box .spin {
  width: 2rem;
  height: 2rem;
  border: 2.5px solid rgba(217, 123, 0, 0.25);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.success-check {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 1.5rem;
  color: #fff;
  box-shadow:
    0 0 0 5px rgba(217, 123, 0, 0.18),
    var(--shadow-glow);
  animation: scale-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.fail-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 1.5rem;
  background: rgba(217, 123, 0, 0.2);
  color: var(--destructive);
  font-size: 1.75rem;
  box-shadow: 0 0 0 4px rgba(217, 123, 0, 0.12);
}

/* ===== 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(217, 123, 0, 0.45);
  background: rgba(217, 123, 0, 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(240, 160, 64, 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(217, 123, 0, 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: 50%;
  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(10, 74, 31, 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(13, 82, 36, 0.9);
  border-color: rgba(217, 123, 0, 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(217, 123, 0, 0.45);
  box-shadow: 0 0 0 3px rgba(217, 123, 0, 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(217, 123, 0, 0.15);
  border: 1px solid rgba(217, 123, 0, 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(10, 74, 31, 0.9), rgba(0, 45, 16, 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(217, 123, 0, 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(217, 123, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(217, 123, 0, 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(217, 123, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(217, 123, 0, 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;
}

/* ===== Admin payment integrations ===== */
.settings-stack {
  display: grid;
  gap: 1rem;
}
.admin-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}
.admin-section-head h2 { margin: 0 0 0.35rem; }
.mobile-money-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-color: rgba(217, 123, 0, 0.35) !important;
  box-shadow: 0 0 0 1px rgba(217, 123, 0, 0.12);
}
.mobile-money-bar h2 { margin: 0 0 0.25rem; font-size: 1.2rem; }
.mobile-money-switch .switch-label-mm::after { content: "OFF"; }
.mobile-money-switch:has(input:checked) .switch-label-mm::after { content: "ON"; }
.mobile-money-switch:has(input:checked) .switch-track {
  background: linear-gradient(135deg, #D97B00, #b86500);
  border-color: rgba(217, 123, 0, 0.7);
  box-shadow: 0 0 16px -4px rgba(217, 123, 0, 0.7);
}
.mobile-money-switch:has(input:checked) .switch-thumb {
  transform: translateX(1.15rem);
  background: #fff;
}
.mobile-money-switch:has(input:checked) .switch-label-mm { color: #f0c48a; }
.integration-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 960px) {
  .integration-grid { grid-template-columns: repeat(3, 1fr); }
}
.integration-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.15rem 1.1rem 1.1rem;
  border-radius: 1.15rem;
  background: linear-gradient(165deg, rgba(10, 74, 31, 0.55), rgba(0, 45, 16, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.integration-card:hover {
  border-color: rgba(217, 123, 0, 0.35);
}
.integration-card.is-active,
.integration-card:has(input[type="radio"]:checked) {
  border-color: rgba(217, 123, 0, 0.65);
  box-shadow:
    0 0 0 1px rgba(217, 123, 0, 0.25),
    0 12px 36px -18px rgba(217, 123, 0, 0.55);
}
.integration-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.integration-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
}
.switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  user-select: none;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.switch-track {
  position: relative;
  width: 2.6rem;
  height: 1.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}
.switch-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a8cbb4;
  min-width: 3.2rem;
}
.switch-label::after { content: "Off"; }
.integration-card:has(.switch input:checked) .switch-track,
.switch:has(input:checked) .switch-track {
  background: linear-gradient(135deg, #D97B00, #b86500);
  border-color: rgba(217, 123, 0, 0.7);
  box-shadow: 0 0 16px -4px rgba(217, 123, 0, 0.7);
}
.integration-card:has(.switch input:checked) .switch-thumb,
.switch:has(input:checked) .switch-thumb {
  transform: translateX(1.15rem);
  background: #fff;
}
.integration-card:has(.switch input:checked) .switch-label {
  color: #f0c48a;
}
.integration-card:has(.switch input:checked) .switch-label::after {
  content: "Active";
}
.integration-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.integration-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-primary);
  box-shadow: 0 0 0 3px rgba(217, 123, 0, 0.18);
}
.integration-brand h3 {
  margin: 0;
  font-size: 1.05rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.integration-brand p {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: #b8d4c0;
  line-height: 1.4;
}
.integration-tag {
  display: inline-flex;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f0c48a;
  background: rgba(217, 123, 0, 0.16);
  border: 1px solid rgba(217, 123, 0, 0.3);
}
.integration-status {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}
.integration-status.ok {
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.integration-status.off {
  color: #fecaca;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.28);
}
.integration-card .field { margin-bottom: 0; }
.integration-meta {
  margin-top: auto;
  display: grid;
  gap: 0.55rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.integration-code {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.68rem;
  word-break: break-all;
  color: #e2e8f0;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.55rem;
  padding: 0.45rem 0.55rem;
}
.integration-docs {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-glow);
}
.integration-docs:hover { color: #fff; }
.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(217, 123, 0, 0.15); color: var(--accent); }
.status-failed { background: rgba(248, 113, 113, 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; }
