/* ==========================================================================
   s|KYLIFE Whitelist System — dark black & purple
   Scoped to body.whitelist so the rest of the site keeps its own palette.
   ========================================================================== */

.whitelist {
  --wl-purple: #a855f7;
  --wl-purple-bright: #d8b4fe;
  --wl-purple-deep: #2b1050;
  --wl-purple-soft: #e9ddff;
  --wl-surface: #08050f;
  --wl-panel: #100b20;
  --wl-panel-2: #191033;
  --wl-line: rgba(168, 85, 247, 0.22);
  --wl-line-strong: rgba(216, 180, 254, 0.42);
}

.whitelist body,
body.whitelist {
  background:
    radial-gradient(58% 44% at 80% -8%, rgba(168, 85, 247, 0.34), transparent 68%),
    radial-gradient(46% 34% at 6% 2%, rgba(45, 212, 238, 0.14), transparent 70%),
    radial-gradient(30% 30% at 92% 82%, rgba(247, 201, 72, 0.06), transparent 72%),
    #07040f;
}

.whitelist .btn--primary {
  background: linear-gradient(115deg, #a855f7, #6d5cff 48%, #2dd4ee);
  border-color: rgba(216, 180, 254, 0.5);
  color: #0f0420;
  box-shadow: 0 18px 40px -22px rgba(168, 85, 247, 0.95);
}

.whitelist .btn--primary:hover {
  background: linear-gradient(115deg, #c084fc, #7c6dff 48%, #67e8f9);
  color: #0f0420;
  box-shadow: 0 24px 52px -22px rgba(168, 85, 247, 1);
}

.whitelist .btn--ghost {
  border-color: var(--wl-line-strong);
  color: var(--wl-purple-soft);
}

.whitelist .eyebrow,
.whitelist .wl-kicker {
  color: var(--wl-purple-bright);
}

.whitelist .input:focus,
.whitelist .textarea:focus,
.whitelist .select:focus {
  border-color: var(--wl-purple);
  background: rgba(14, 9, 28, 0.96);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2), 0 12px 30px -24px rgba(168, 85, 247, 1);
}

.whitelist .input,
.whitelist .textarea,
.whitelist .select {
  border-color: rgba(168, 85, 247, 0.24);
  background: rgba(10, 7, 20, 0.92);
  border-radius: 12px;
}

.whitelist .wl-kicker {
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.18), rgba(45, 212, 238, 0.08));
  color: var(--wl-purple-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.whitelist .wl-hero h1 {
  background: linear-gradient(100deg, #ffffff 0%, #e9ddff 34%, #a78bfa 60%, #67e8f9 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hero -------------------------------------------------------------------- */
.wl-hero {
  position: relative;
  padding: clamp(40px, 6vw, 76px) 0 clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--wl-line);
  overflow: hidden;
}

.wl-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(167, 139, 250, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167, 139, 250, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 80% at 50% 0%, #000 20%, transparent 78%);
  pointer-events: none;
}

.wl-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.wl-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 7px 14px;
  border: 1px solid var(--wl-line-strong);
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.1);
}

.wl-hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  line-height: 1.04;
  margin: 18px 0 14px;
  letter-spacing: -0.03em;
}

.wl-lead {
  color: var(--text-dim);
  max-width: 56ch;
  font-size: 1.02rem;
  margin: 0 0 20px;
}

.wl-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wl-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--wl-line);
  background: rgba(18, 15, 29, 0.8);
  color: var(--text-dim);
}

.wl-pill--ok {
  border-color: rgba(62, 214, 160, 0.35);
  color: #9ff0d2;
}

.wl-pill--warn {
  border-color: rgba(183, 156, 255, 0.4);
  color: var(--wl-purple-soft);
}

.wl-hero__card {
  border: 1px solid var(--wl-line-strong);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(168, 85, 247, 0.24), transparent 60%),
    linear-gradient(160deg, rgba(32, 22, 58, 0.94), rgba(10, 7, 20, 0.94));
  box-shadow: 0 40px 90px -60px rgba(0, 0, 0, 1), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 24px;
}
.wl-hero__card::before {
  content: "";
  display: block;
  height: 2px;
  width: 64px;
  margin: -6px 0 16px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--wl-purple), #2dd4ee, #f7c948);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.8);
}

.wl-hero__card h2 {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 18px;
}

/* Steps ------------------------------------------------------------------- */
.wl-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  counter-reset: wlstep;
}

.wl-steps li {
  position: relative;
  counter-increment: wlstep;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding-left: 2px;
}

.wl-steps li::before {
  content: counter(wlstep);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: #1a0b2e;
  background: linear-gradient(150deg, var(--wl-purple-bright), var(--wl-purple));
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 20px -12px rgba(168, 85, 247, 1);
}

.wl-steps strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.4;
}

.wl-steps span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-faint);
  line-height: 1.5;
}

.wl-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}

.wl-progress span {
  font-size: 0.7rem;
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--wl-line);
  color: var(--text-faint);
}

.wl-progress span.is-done {
  border-color: rgba(62, 214, 160, 0.4);
  color: #9ff0d2;
  background: rgba(62, 214, 160, 0.08);
}

.wl-progress span.is-active {
  border-color: var(--wl-line-strong);
  color: var(--wl-purple-soft);
  background: rgba(139, 92, 246, 0.12);
}

/* Layout ------------------------------------------------------------------ */
.wl-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
  gap: 22px;
  align-items: start;
}

.wl-card {
  border: 1px solid var(--wl-line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(168, 85, 247, 0.1), transparent 58%),
    linear-gradient(180deg, rgba(24, 17, 44, 0.88), rgba(10, 7, 20, 0.94));
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 30px 70px -60px #000, inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.wl-card:focus-within {
  border-color: var(--wl-line-strong);
  box-shadow: 0 30px 70px -50px #000, 0 0 0 1px rgba(168, 85, 247, 0.18);
}

.wl-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--wl-line);
}

.wl-card__head h2,
.wl-card__head h3 {
  margin: 0;
  font-size: 1.18rem;
}

.wl-card__head p {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--text-faint);
}

.wl-legend {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wl-purple-bright);
  margin: 26px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--wl-line);
}

.wl-legend:first-child { margin-top: 0; }

.wl-aside h3 {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 14px;
}

.wl-checklist {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.wl-checklist li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  font-size: 0.86rem;
  color: var(--text-dim);
  line-height: 1.55;
}

.wl-checklist svg {
  color: var(--wl-purple-bright);
  margin-top: 3px;
}

.wl-note {
  border: 1px solid var(--wl-line);
  border-left: 3px solid var(--wl-purple);
  border-radius: var(--radius);
  background: rgba(139, 92, 246, 0.07);
  padding: 14px 16px;
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.wl-note strong { color: var(--text); }

/* Fields ------------------------------------------------------------------ */
.field__error {
  font-size: 0.76rem;
  color: var(--rose);
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.field.has-error .input,
.field.has-error .textarea {
  border-color: rgba(240, 113, 138, 0.55);
}

.wl-help {
  font-size: 0.74rem;
  color: var(--text-faint);
}

/* Status ------------------------------------------------------------------ */
.wl-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--wl-line);
  color: var(--text-dim);
}

.wl-badge--success {
  color: #9ff0d2;
  border-color: rgba(62, 214, 160, 0.4);
  background: rgba(62, 214, 160, 0.09);
}

.wl-badge--warning {
  color: var(--wl-purple-soft);
  border-color: var(--wl-line-strong);
  background: rgba(139, 92, 246, 0.12);
}

.wl-badge--danger {
  color: #ffb3c2;
  border-color: rgba(240, 113, 138, 0.42);
  background: rgba(240, 113, 138, 0.09);
}

.wl-status {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 20px;
  align-items: start;
}

.wl-status__main h1 {
  margin: 12px 0 8px;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.12;
}

.wl-status__main p {
  color: var(--text-dim);
  margin: 0;
  max-width: 60ch;
}

.wl-timeline {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  position: relative;
}

.wl-timeline li {
  position: relative;
  padding: 0 0 22px 34px;
}

.wl-timeline li:last-child { padding-bottom: 0; }

.wl-timeline li::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 22px;
  bottom: 0;
  width: 1px;
  background: var(--wl-line);
}

.wl-timeline li:last-child::before { display: none; }

.wl-timeline__dot {
  position: absolute;
  left: 0;
  top: 2px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 1px solid var(--wl-line-strong);
  display: grid;
  place-items: center;
  color: transparent;
  background: var(--wl-panel);
}

.wl-timeline li.is-done .wl-timeline__dot {
  border-color: rgba(62, 214, 160, 0.5);
  background: rgba(62, 214, 160, 0.16);
  color: #9ff0d2;
}

.wl-timeline__label {
  font-family: var(--font-display);
  font-size: 0.86rem;
  margin: 0;
}

.wl-timeline__body {
  font-size: 0.78rem;
  color: var(--text-faint);
  margin: 2px 0 0;
}

.wl-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px;
  margin: 0;
}

.wl-detail-grid > div {
  border-bottom: 1px solid var(--wl-line);
  padding-bottom: 10px;
}

.wl-detail-grid dt {
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 3px;
}

.wl-detail-grid dd {
  margin: 0;
  font-size: 0.9rem;
  word-break: break-word;
}

/* Admin ------------------------------------------------------------------- */
.wl-stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.wl-stat {
  border: 1px solid var(--wl-line);
  border-radius: var(--radius-lg);
  background: rgba(18, 15, 29, 0.8);
  padding: 14px 16px;
}

.wl-stat span {
  display: block;
  font-family: var(--font-display);
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.wl-stat strong {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.1;
}

.wl-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.wl-tabs a {
  font-size: 0.78rem;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--wl-line);
  color: var(--text-dim);
}

.wl-tabs a.is-active {
  border-color: var(--wl-line-strong);
  background: rgba(139, 92, 246, 0.14);
  color: var(--wl-purple-soft);
}

.wl-search {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 16px;
}

.wl-search .field { flex: 1 1 240px; margin: 0; }

.wl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.wl-table th {
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 10px 12px;
  border-bottom: 1px solid var(--wl-line);
  white-space: nowrap;
}

.wl-table td {
  padding: 12px;
  border-bottom: 1px solid var(--wl-line);
  vertical-align: top;
}

.wl-table tr:last-child td { border-bottom: 0; }

.wl-table tbody tr:hover { background: rgba(139, 92, 246, 0.05); }

.wl-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.wl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.wl-action-card {
  border: 1px solid var(--wl-line);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(18, 15, 29, 0.65);
}

.wl-action-card h4 {
  margin: 0 0 8px;
  font-size: 0.92rem;
}

.wl-action-card p {
  margin: 0 0 12px;
  font-size: 0.78rem;
  color: var(--text-faint);
  line-height: 1.55;
}

.wl-stack {
  display: grid;
  gap: 14px;
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 980px) {
  .wl-hero__inner,
  .wl-layout,
  .wl-status { grid-template-columns: 1fr; }
  .wl-hero__card { order: -1; }
  .wl-stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .wl-stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wl-detail-grid { grid-template-columns: 1fr; }
  .wl-card { padding: 18px; }
  .wl-hero { padding-top: 30px; }
}

/* Form alerts ------------------------------------------------------------- */
.wl-alert {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.wl-alert[hidden] { display: none; }

.wl-alert--error {
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.4);
  color: #ffb3c0;
}

.wl-alert--success {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.4);
  color: #a7f3d0;
}

.wl-alert--warning {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.35);
  color: #fde68a;
}

.whitelist .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}


/* Country code + mobile number -------------------------------------------- */
.phone-field {
  display: grid;
  grid-template-columns: minmax(112px, 172px) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.phone-field__code { position: relative; min-width: 0; }

.phone-picker__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  font: inherit;
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
}

.phone-picker__flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 20px;
  height: 15px;
  font-size: 0.7rem;
  line-height: 1;
}

.phone-picker__flag-img {
  display: block;
  width: 20px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.phone-picker__flag-text {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.phone-picker__dial {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text);
}

.phone-picker__caret {
  margin-left: auto;
  font-size: 0.68rem;
  color: var(--text-faint);
}

.phone-field__number { width: 100%; }

.phone-picker__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  width: min(340px, calc(100vw - 48px));
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(168, 85, 247, 0.35);
  background: rgba(9, 6, 18, 0.98);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.95);
}

.phone-picker__panel[hidden] { display: none; }

.phone-picker__search {
  width: 100%;
  margin-bottom: 8px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(168, 85, 247, 0.28);
  background: rgba(10, 7, 20, 0.95);
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
}

.phone-picker__search:focus {
  outline: none;
  border-color: var(--wl-purple);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.18);
}

.phone-picker__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 268px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.phone-picker__option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 0.86rem;
  cursor: pointer;
}

.phone-picker__option:hover,
.phone-picker__option.is-active { background: rgba(168, 85, 247, 0.16); }

.phone-picker__option[aria-selected="true"] { background: rgba(168, 85, 247, 0.26); }

.phone-picker__name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-picker__code {
  color: var(--wl-purple-soft);
  font-variant-numeric: tabular-nums;
}

.phone-picker__empty {
  margin: 6px 4px 2px;
  font-size: 0.8rem;
  color: var(--text-faint);
}

.field.has-error .phone-picker__button { border-color: rgba(240, 113, 138, 0.55); }

/* WhatsApp OTP verification */
.wl-otp {
  margin: 4px 0 6px;
  padding: 16px;
  border: 1px solid var(--wl-line);
  border-radius: 14px;
  background: rgba(25, 16, 51, 0.55);
}

.wl-otp__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.wl-otp__head strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.wl-otp__actions { margin-top: 12px; }

.wl-otp__panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--wl-line);
}

.wl-otp__panel[hidden] { display: none; }

.wl-otp__verify {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.wl-otp__verify label { grid-column: 1 / -1; margin-bottom: -4px; }

.wl-otp__code {
  letter-spacing: 0.35em;
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  text-align: center;
}

.wl-otp__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.wl-linkbtn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--wl-purple-soft);
  font: inherit;
  font-size: 0.86rem;
  text-decoration: underline;
  cursor: pointer;
}

.wl-linkbtn[disabled] {
  color: var(--text-faint);
  text-decoration: none;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .phone-field { grid-template-columns: 1fr; }
  .wl-otp__verify { grid-template-columns: 1fr; }
  .wl-otp__verify .btn { width: 100%; }
  .phone-picker__panel {
    position: static;
    width: 100%;
    margin-top: 8px;
  }
}
