:root {
  --bg-0: #0a0612;
  --bg-1: rgba(20, 14, 38, 0.55);
  --bg-2: rgba(255, 255, 255, 0.04);
  --bg-3: rgba(255, 255, 255, 0.06);
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.18);
  --text: #f1ecff;
  --text-dim: #b0a8c9;
  --text-mute: #948cb3;
  --accent: #ef4444;
  --accent-2: #f97316;
  --accent-3: #a855f7;
  --good: #22c55e;
  --warn: #f59e0b;
  --bad: #ef4444;
  --ring-track: rgba(255,255,255,0.07);
  --shadow-lg: 0 24px 80px rgba(0,0,0,0.55), 0 4px 20px rgba(168,85,247,0.12);
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.25);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --glass-blur: 22px;
}

[data-theme="light"] {
  --bg-0: #f0eaff;
  --bg-1: rgba(255, 255, 255, 0.55);
  --bg-2: rgba(255, 255, 255, 0.45);
  --bg-3: rgba(255, 255, 255, 0.65);
  --border: rgba(15,18,28,0.08);
  --border-strong: rgba(15,18,28,0.16);
  --text: #1a1430;
  --text-dim: #4a4264;
  --text-mute: #7a7393;
  --ring-track: rgba(15,18,28,0.08);
  --shadow-lg: 0 24px 60px rgba(168,85,247,0.18), 0 4px 18px rgba(15,18,28,0.06);
  --shadow-sm: 0 2px 6px rgba(15,18,28,0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-0);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Animated gradient orbs for glassmorphism backdrop */
body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
  animation: float 18s ease-in-out infinite alternate;
}
body::before {
  width: 520px; height: 520px;
  top: -120px; right: -120px;
  background: radial-gradient(circle, rgba(239,68,68,0.45), transparent 70%);
}
body::after {
  width: 600px; height: 600px;
  bottom: -180px; left: -150px;
  background: radial-gradient(circle, rgba(168,85,247,0.40), transparent 70%);
  animation-delay: -8s;
}
.orb {
  position: fixed;
  width: 380px; height: 380px;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  background: radial-gradient(circle, rgba(249,115,22,0.30), transparent 70%);
  top: 40%; left: 45%;
  animation: float 22s ease-in-out infinite alternate;
  animation-delay: -4s;
}
@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, -40px) scale(1.15); }
}

.nav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(168,85,247,0.45);
}
.brand-mark svg { width: 17px; height: 17px; }

.toggle {
  background: var(--bg-2);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .18s ease;
}
.toggle:hover { color: var(--text); border-color: var(--border-strong); }

.container {
  max-width: 1080px;
  margin: 12px auto 60px;
  padding: 0 24px;
}

.hero {
  text-align: center;
  margin: 18px 0 36px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-2);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
  margin-bottom: 16px;
}
.pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 10px var(--good);
}
h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
h1 .grad {
  background: linear-gradient(135deg, #ef4444, #f97316, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sub {
  margin: 12px auto 0;
  max-width: 580px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.55;
}

.grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 22px;
  align-items: start;
}
@media (max-width: 880px) {
  .grid { grid-template-columns: 1fr; }
}

/* Glassmorphism card */
.card {
  background: var(--bg-1);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.02) 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.card-sub {
  color: var(--text-dim);
  font-size: 13px;
  margin: 0 0 22px;
}

.stepper {
  display: flex;
  gap: 6px;
  margin-bottom: 22px;
}
.step {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--ring-track);
  overflow: hidden;
  position: relative;
}
.step .fill {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.step.active .fill { transform: scaleX(1); }

.form-step { display: none; }
.form-step.active { display: block; animation: fadeUp .35s ease both; }
.step-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 16px;
}
.step-label .step-num {
  color: var(--accent-3);
  margin-right: 6px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

.input, .select {
  width: 100%;
  background: var(--bg-2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 13px 14px;
  border-radius: var(--radius-md);
  font-size: 14.5px;
  font-family: inherit;
  transition: all .18s ease;
  outline: none;
}
.input:focus, .select:focus {
  border-color: rgba(168,85,247,0.6);
  box-shadow: 0 0 0 4px rgba(168,85,247,0.14);
  background: var(--bg-3);
}
.input::placeholder { color: var(--text-mute); }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M3 4.5L6 7.5L9 4.5' stroke='%239aa3b2' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

.input-group {
  position: relative;
}
.input-group .prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-mute);
  font-size: 14px;
  pointer-events: none;
  font-weight: 500;
}
.input-group .input { padding-left: 30px; }

/* Custom searchable dropdown */
.combo {
  position: relative;
}
.combo-trigger {
  width: 100%;
  background: var(--bg-2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 13px 14px;
  padding-right: 38px;
  border-radius: var(--radius-md);
  font-size: 14.5px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all .18s ease;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M3 4.5L6 7.5L9 4.5' stroke='%239aa3b2' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.combo-trigger:hover { border-color: var(--border-strong); }
.combo-trigger.open {
  border-color: rgba(168,85,247,0.6);
  box-shadow: 0 0 0 4px rgba(168,85,247,0.14);
}
.combo-trigger .placeholder { color: var(--text-mute); }
.combo-trigger .flag { font-size: 18px; line-height: 1; }
.combo-panel {
  position: absolute;
  z-index: 50;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: rgba(20, 14, 38, 0.92);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  max-height: 320px;
  display: none;
  flex-direction: column;
}
[data-theme="light"] .combo-panel {
  background: rgba(255,255,255,0.95);
}
.combo-panel.open { display: flex; }
.combo-search {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  margin-bottom: 6px;
}
.combo-search:focus { border-color: rgba(168,85,247,0.6); }
.combo-list {
  flex: 1;
  overflow-y: auto;
  padding-right: 2px;
}
.combo-list::-webkit-scrollbar { width: 6px; }
.combo-list::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.combo-item {
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background .12s ease;
}
.combo-item:hover, .combo-item.highlight {
  background: rgba(168,85,247,0.18);
}
.combo-item .flag { font-size: 16px; line-height: 1; }
.combo-item .code {
  margin-left: auto;
  color: var(--text-mute);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.combo-empty {
  text-align: center;
  color: var(--text-mute);
  padding: 18px 10px;
  font-size: 13px;
}

/* Phone group */
.phone-group {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 8px;
}
.phone-group .combo-trigger {
  padding-right: 30px;
  background-position: right 10px center;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--bg-2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  cursor: pointer;
  transition: all .15s ease;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip:hover {
  border-color: var(--border-strong);
  color: var(--text);
}
.chip.active {
  background: linear-gradient(135deg, rgba(239,68,68,0.18), rgba(168,85,247,0.18));
  color: var(--text);
  border-color: rgba(168,85,247,0.55);
  box-shadow: 0 4px 16px rgba(168,85,247,0.22);
}
.chip .check {
  width: 12px; height: 12px;
  opacity: 0;
  transform: scale(.6);
  transition: all .15s ease;
}
.chip.active .check { opacity: 1; transform: scale(1); }

.conditional {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .35s ease, opacity .25s ease, margin .25s ease;
}
.conditional.show {
  max-height: 200px;
  opacity: 1;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.btn {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3));
  background-size: 180% 180%;
  color: white;
  box-shadow: 0 10px 28px rgba(168,85,247,0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(168,85,247,0.45); background-position: 100% 100%; }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.btn-ghost {
  background: var(--bg-2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-dim);
  border: 1px solid var(--border);
  flex: 0 0 auto;
  padding: 14px 18px;
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-strong); }

.spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Result card */
.result {
  position: sticky;
  top: 24px;
}

.gauge-wrap {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 8px auto 18px;
}
.gauge-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge-track {
  fill: none;
  stroke: var(--ring-track);
  stroke-width: 14;
}
.gauge-prog {
  fill: none;
  stroke: url(#gaugeGrad);
  stroke-width: 14;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.1s cubic-bezier(.2,.8,.2,1);
}
.gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.gauge-num {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, #ef4444, #f97316, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gauge-num .pct { font-size: 24px; vertical-align: super; margin-left: 2px; }
.gauge-label {
  color: var(--text-dim);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.verdict {
  text-align: center;
  margin: 0 0 18px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.verdict-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}
.v-low { background: rgba(239,68,68,0.16); color: #f87171; }
.v-mid { background: rgba(245,158,11,0.16); color: #fbbf24; }
.v-high { background: rgba(34,197,94,0.16); color: #4ade80; }

.summary {
  background: var(--bg-2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.factors {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.factor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
}
.factor .name { color: var(--text); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.factor .val { font-weight: 600; font-variant-numeric: tabular-nums; }
.pos { color: var(--good); }
.neg { color: var(--bad); }
.neu { color: var(--text-mute); }

.disclaimer {
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.28);
  color: #f0bb5d;
  font-size: 13px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  line-height: 1.6;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 500;
}
.disclaimer svg { flex-shrink: 0; margin-top: 1px; }

/* Loading state */
.loading-state {
  text-align: center;
  padding: 32px 20px;
  animation: fadeIn .3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.loading-orb {
  width: 92px; height: 92px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  position: relative;
  animation: spin 2.4s linear infinite;
  box-shadow: 0 12px 40px rgba(168,85,247,0.45);
}
.loading-orb::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--bg-0);
}
.loading-orb::after {
  content: 'AI';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: spin 2.4s linear infinite reverse;
}
.loading-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.loading-sub {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0;
}
.loading-dots span {
  display: inline-block;
  width: 5px; height: 5px;
  margin: 0 2px;
  border-radius: 50%;
  background: var(--accent-3);
  animation: dot 1.4s ease-in-out infinite;
}
.loading-dots span:nth-child(2) { animation-delay: .2s; }
.loading-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes dot {
  0%, 60%, 100% { opacity: .3; transform: scale(.8); }
  30% { opacity: 1; transform: scale(1); }
}

/* Empty state */
.empty {
  text-align: center;
  padding: 24px 0;
  color: var(--text-mute);
}
.empty .icon {
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--bg-2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  display: grid; place-items: center;
}
.empty h3 { color: var(--text); margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.empty p { margin: 0; font-size: 13.5px; line-height: 1.55; max-width: 280px; margin: 0 auto; }

.footer {
  text-align: center;
  color: var(--text-mute);
  font-size: 12px;
  margin-top: 36px;
}

/* Animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: fadeUp .45s ease both; }

.icon-sm { width: 14px; height: 14px; opacity: .7; }

/* ============================================================
   Plugin overrides — Select2 (country & continent picker)
   ============================================================ */
.select2-container { width: 100% !important; }
.select2-container--default .select2-selection--single {
  background: var(--bg-2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  transition: all .18s ease;
}
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: rgba(168,85,247,0.6);
  box-shadow: 0 0 0 4px rgba(168,85,247,0.14);
  background: var(--bg-3);
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--text);
  line-height: 46px;
  padding: 0;
  font-size: 14.5px;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: var(--text-mute);
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 46px;
  right: 10px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: var(--text-mute) transparent transparent transparent;
}
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent var(--text-mute) transparent;
}
.select2-dropdown {
  background: rgba(20, 14, 38, 0.96);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  color: var(--text);
  overflow: hidden;
}
[data-theme="light"] .select2-dropdown {
  background: rgba(255,255,255,0.96);
}
.select2-search--dropdown { padding: 8px; }
.select2-search--dropdown .select2-search__field {
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13.5px;
  outline: none;
}
.select2-search--dropdown .select2-search__field:focus {
  border-color: rgba(168,85,247,0.6);
}
.select2-results__option {
  color: var(--text);
  padding: 9px 14px;
  font-size: 13.5px;
}
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background: rgba(168,85,247,0.22);
  color: var(--text);
}
.select2-container--default .select2-results__option[aria-selected=true],
.select2-container--default .select2-results__option--selected {
  background: rgba(168,85,247,0.12);
}
.select2-container--default .select2-results__group {
  color: var(--accent-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 14px 6px;
  background: rgba(255,255,255,0.02);
}
.select2-results__options::-webkit-scrollbar { width: 6px; }
.select2-results__options::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

/* ============================================================
   jquery.validate — error styling
   ============================================================ */
.field-error {
  color: #f87171;
  font-size: 12px;
  font-weight: 500;
  margin-top: -2px;
  display: block;
}
.input.error,
.select.error,
.iti input[type="tel"].error {
  border-color: rgba(239,68,68,0.6);
  box-shadow: 0 0 0 4px rgba(239,68,68,0.12);
}
.select2-container--error .select2-selection--single {
  border-color: rgba(239,68,68,0.6);
  box-shadow: 0 0 0 4px rgba(239,68,68,0.12);
}
.chips.chips-error {
  outline: 1px dashed rgba(239,68,68,0.5);
  outline-offset: 6px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   Plugin overrides — intl-tel-input (WhatsApp)
   ============================================================ */
.iti { width: 100%; display: block; }
.iti__tel-input,
.iti input[type="tel"] {
  width: 100%;
  background: var(--bg-2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 13px 14px;
  border-radius: var(--radius-md);
  font-size: 14.5px;
  font-family: inherit;
  transition: all .18s ease;
  outline: none;
  height: 48px;
}
.iti__tel-input:focus,
.iti input[type="tel"]:focus {
  border-color: rgba(168,85,247,0.6);
  box-shadow: 0 0 0 4px rgba(168,85,247,0.14);
  background: var(--bg-3);
}
.iti__tel-input::placeholder { color: var(--text-mute); }
.iti--separate-dial-code .iti__selected-flag {
  background: var(--bg-3);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  border-right: 1px solid var(--border);
}
.iti__country-list {
  background: rgba(20, 14, 38, 0.96);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  color: var(--text);
  max-height: 280px;
}
[data-theme="light"] .iti__country-list {
  background: rgba(255,255,255,0.96);
  color: var(--text);
}
.iti__country.iti__highlight,
.iti__country:hover {
  background: rgba(168,85,247,0.18);
}
.iti__dial-code { color: var(--text-mute); }
.iti--separate-dial-code .iti__selected-dial-code { color: var(--text); }
.iti__search-input {
  background: var(--bg-2);
  color: var(--text);
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
  font-size: 13.5px;
  outline: none;
}
