:root {
  --brand-bg: #0D0047;
  --brand-btn: #EA0800;
  --brand-btn-text: #ffffff;
  --brand-accent: #E3A509;
  --bg: #0D0047;
  --bg-mid: #0D0047;
  --bg-card: rgba(255, 255, 255, 0.06);
  --bg-card-hover: rgba(255, 255, 255, 0.1);
  --accent: #E3A509;
  --accent-2: #E3A509;
  --accent-3: #ffffff;
  --accent-glow: rgba(227, 165, 9, 0.38);
  --danger: #fb7185;
  --warning: #fbbf24;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --border: rgba(255, 255, 255, 0.14);
  --radius: 18px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --font: 'Outfit', system-ui, sans-serif;
  --font-display: 'Syne', 'Outfit', sans-serif;
  --gradient-main: #E3A509;
  --gradient-soft: rgba(227, 165, 9, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  line-height: 1.55;
  text-align: center;
}

a {
  color: var(--text);
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2rem;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.container--top {
  justify-content: flex-start;
  padding-top: 1.25rem;
}

/* Header */
.site-header {
  text-align: center;
  padding: 0.5rem 0 1.25rem;
  width: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--brand-accent);
  color: #0D0047;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

.intro-card {
  width: 100%;
  margin-bottom: 0.85rem;
  padding: 1.15rem 1.2rem;
}

.intro-text {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}

.intro-text strong {
  color: var(--text);
  font-weight: 600;
}

.card--form {
  margin-top: 0;
}

/* Cards */
.card {
  width: 100%;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card + .card {
  margin-top: 1rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.15rem;
  width: 100%;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  text-align: center;
}

.input-wrap {
  position: relative;
  width: 100%;
}

.input-wrap .prefix {
  display: block;
  text-align: center;
  color: var(--accent-3);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  letter-spacing: 0.05em;
}

/* Phone: country code + namba */
.phone-input-group {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  align-items: stretch;
}

/* Custom country picker — dark theme */
.country-picker {
  position: relative;
  flex: 0 0 auto;
  min-width: 3.75rem;
  max-width: 4.25rem;
  z-index: 20;
}

.country-picker__trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 100%;
  padding: 0.85rem 0.45rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.country-picker__trigger:hover,
.country-picker.is-open .country-picker__trigger {
  border-color: rgba(168, 85, 247, 0.5);
}

.country-picker__trigger:focus {
  border-color: var(--brand-btn);
  box-shadow: 0 0 0 3px rgba(227, 165, 9, 0.22);
}

.country-picker__flag {
  font-size: 1.45rem;
  line-height: 1;
}

.country-picker__option-flag {
  margin-right: 0.35rem;
}

.country-picker__arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.country-picker.is-open .country-picker__arrow {
  transform: rotate(180deg);
  border-top-color: var(--accent-3);
}

.country-picker__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  min-width: 9.5rem;
  max-height: 240px;
  overflow-y: auto;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: #0D0047;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  z-index: 100;
  -webkit-overflow-scrolling: touch;
}

.country-picker__menu[hidden] {
  display: none;
}

.country-picker__option {
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-align: left;
}

.country-picker__option:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.country-picker__option.is-selected {
  background: rgba(227, 165, 9, 0.18);
  color: var(--text);
  border: 1px solid rgba(227, 165, 9, 0.45);
}

.phone-input-group .phone-local-input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1rem;
  text-align: center;
}

input[type="tel"],
input[type="text"] {
  width: 100%;
  padding: 1rem 1.15rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font-size: 1.1rem;
  font-family: var(--font);
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.04em;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input.no-prefix {
  padding: 1rem 1.15rem;
}

input:focus {
  border-color: var(--brand-btn);
  box-shadow: 0 0 0 4px rgba(227, 165, 9, 0.22);
}

input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
  padding: 1rem 1.25rem;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.15s;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--brand-btn);
  color: var(--brand-btn-text);
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.btn-primary:hover {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  background: transparent;
  color: var(--brand-btn-text);
  border: 2px solid rgba(255, 255, 255, 0.38);
  margin-top: 0.75rem;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--brand-btn-text);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  margin-top: 0.75rem;
  font-size: 0.9rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
}

/* Loading overlay */
.loading-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(227, 165, 9, 0.14), transparent 42%),
    radial-gradient(circle at 80% 85%, rgba(227, 165, 9, 0.08), transparent 38%),
    rgba(13, 0, 71, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.loading-panel {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 1.35rem 1.2rem 1.2rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.loading-panel__glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 55%;
  background: radial-gradient(circle, rgba(227, 165, 9, 0.18) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.loading-panel__top {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.15rem;
}

.loading-panel__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(227, 165, 9, 0.16);
  border: 1px solid rgba(227, 165, 9, 0.35);
}

.loading-panel__badge::before {
  content: '';
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #E3A509;
  box-shadow: 0 0 10px rgba(227, 165, 9, 0.75);
  animation: loading-badge-pulse 1.4s ease-in-out infinite;
}

@keyframes loading-badge-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}

.loading-spinner-wrap {
  position: relative;
  width: 84px;
  height: 84px;
}

.loading-spinner-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
}

.loading-spinner-ring--outer {
  border-top-color: #E3A509;
  border-right-color: rgba(227, 165, 9, 0.35);
  animation: spin 1.1s linear infinite;
}

.loading-spinner-ring--inner {
  inset: 10px;
  border-bottom-color: rgba(255, 255, 255, 0.55);
  border-left-color: rgba(255, 255, 255, 0.12);
  animation: spin 0.85s linear infinite reverse;
}

.loading-spinner-core {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: rgba(13, 0, 71, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 18px rgba(227, 165, 9, 0.12);
}

.loading-spinner-pulse {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #E3A509;
  box-shadow: 0 0 16px rgba(227, 165, 9, 0.65);
  animation: loading-badge-pulse 1.2s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  position: relative;
  z-index: 1;
  margin-top: 0.95rem;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  min-height: 1.4em;
  letter-spacing: -0.01em;
}

.loading-phone {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-top: 0.55rem;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  min-height: 1.2em;
}

.loading-phone:empty {
  display: none;
  margin: 0;
  padding: 0;
  border: 0;
}

.loading-sub {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.8rem;
  margin-top: 0.45rem;
}

.loading-progress-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.1rem;
  width: 100%;
}

.loading-progress-track {
  flex: 1;
  height: 9px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.loading-progress-bar {
  position: relative;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #c99608 0%, #E3A509 55%, #f0c040 100%);
  transition: width 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 18px rgba(227, 165, 9, 0.35);
  overflow: hidden;
}

.loading-progress-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
  transform: translateX(-120%);
  animation: loading-shine 1.8s ease-in-out infinite;
}

@keyframes loading-shine {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(220%); }
}

.loading-percent {
  font-size: 0.8rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
  min-width: 2.5rem;
  text-align: right;
}

.loading-capture {
  position: relative;
  z-index: 1;
  margin: 1.05rem 0 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.loading-capture__label {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(227, 165, 9, 0.88);
}

.loading-capture__viewport {
  --capture-row-h: 3.55rem;
  height: var(--capture-row-h);
  overflow: hidden;
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(227, 165, 9, 0.22);
  background: rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 0 24px rgba(227, 165, 9, 0.06);
}

.loading-capture__viewport::after {
  content: '';
  display: block;
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(227, 165, 9, 0.08) 45%,
    rgba(227, 165, 9, 0.18) 50%,
    rgba(227, 165, 9, 0.08) 55%,
    transparent 100%
  );
  transform: translateX(-120%);
  animation: capture-scan 2.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes capture-scan {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

.loading-capture__track {
  list-style: none;
  margin: 0;
  padding: 0;
  transition: transform 0.85s cubic-bezier(0.33, 1, 0.38, 1);
  will-change: transform;
}

.loading-capture-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 0.45rem 0.65rem;
  min-height: var(--capture-row-h, 3.55rem);
  margin-bottom: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 0;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.42);
  background: transparent;
  border: none;
  transition: opacity 0.45s ease, color 0.45s ease;
}

.loading-capture-row .step-check,
.loading-capture-row .step-indicator {
  display: none;
}

.loading-capture-row .step-icon-wrap {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  font-size: 1.15rem;
}

.loading-capture-row .step-label--capture {
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-align: left;
}

.loading-capture-row.active {
  color: #ffffff;
}

.loading-capture-row.active .step-icon-wrap {
  background: rgba(227, 165, 9, 0.2);
  border-color: rgba(227, 165, 9, 0.45);
  box-shadow: 0 0 16px rgba(227, 165, 9, 0.25);
}

.loading-capture-row.active .step-label--capture {
  color: #fff;
  text-shadow: 0 0 18px rgba(227, 165, 9, 0.35);
}

.loading-steps {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 1.05rem 0 0;
  padding: 0.85rem 0 0;
  text-align: left;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.loading-step {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 0.45rem 0.6rem;
  padding: 0.58rem 0.62rem;
  border-radius: 14px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: opacity 0.35s ease, background 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

.loading-step .step-indicator {
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-step .step-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.loading-step .step-icon-wrap {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.loading-step .step-icon {
  font-size: 0.95rem;
  line-height: 1;
  opacity: 0.75;
}

.loading-step .step-label {
  font-weight: 600;
}

.loading-step .step-label--capture {
  font-family: ui-monospace, 'Cascadia Mono', 'Segoe UI Mono', monospace;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.loading-step .step-check {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: transparent;
  background: transparent;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.loading-step.active {
  color: #ffffff;
  background: rgba(227, 165, 9, 0.12);
  border-color: rgba(227, 165, 9, 0.28);
  transform: translateX(2px);
  box-shadow: inset 3px 0 0 #E3A509;
}

.loading-step.active .step-dot {
  background: #E3A509;
  box-shadow: 0 0 12px rgba(227, 165, 9, 0.55);
  animation: step-pulse 1.1s ease infinite;
}

.loading-step.active .step-icon-wrap {
  background: rgba(227, 165, 9, 0.16);
  border-color: rgba(227, 165, 9, 0.28);
}

.loading-step.active .step-icon {
  opacity: 1;
}

.loading-step.done {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.loading-step.done .step-dot {
  transform: scale(0);
  opacity: 0;
}

.loading-step.done .step-icon-wrap {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.28);
}

.loading-step.done .step-check {
  opacity: 1;
  transform: scale(1);
  color: #052e1e;
  background: #34d399;
}

@keyframes step-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

/* Legacy handle — modals nyingine */
.loading-panel__handle {
  width: 48px;
  height: 4px;
  margin: 0 auto 1.1rem;
  border-radius: 999px;
  background: var(--brand-btn);
}

/* Legacy spinner (modal mini-loader) */
.spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent);
  border-right-color: var(--accent-2);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

/* Results */
.results-header {
  margin-bottom: 1.25rem;
  width: 100%;
  text-align: center;
}

.results-header h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.results-header .phone-display {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0.35rem 0;
}

.results-header .meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  width: 100%;
}

.data-tile {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 0.75rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, border-color 0.2s, box-shadow 0.2s;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.data-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-soft);
  pointer-events: none;
}

.data-tile:active {
  transform: scale(0.96);
}

.data-tile:hover {
  background: var(--bg-card-hover);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 8px 28px rgba(168, 85, 247, 0.2);
}

.data-tile .icon {
  font-size: 2rem;
  margin-bottom: 0.4rem;
  display: block;
  position: relative;
}

.data-tile .label {
  font-size: 0.88rem;
  font-weight: 700;
  position: relative;
}

.data-tile .count {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  position: relative;
}

.data-tile.wide {
  grid-column: span 2;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 0, 71, 0.88);
  backdrop-filter: blur(6px);
  z-index: 900;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-sheet {
  background: #0D0047;
  border-radius: var(--radius) var(--radius) 0 0;
  width: 100%;
  max-width: 420px;
  max-height: 90dvh;
  overflow-y: auto;
  padding: 1.5rem 1.35rem;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  text-align: center;
}

.modal-backdrop.active .modal-sheet {
  transform: translateY(0);
}

.modal-handle {
  width: 44px;
  height: 4px;
  background: var(--brand-btn);
  border-radius: 2px;
  margin: 0 auto 1.15rem;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.modal-body {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
  text-align: center;
}

.modal-body .status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: rgba(251, 113, 133, 0.15);
  color: var(--danger);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.activation-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: 1.15rem;
  margin-top: 0.5rem;
  text-align: center;
}

.activation-box h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.85rem;
}

.verify-msg {
  font-size: 0.85rem;
  margin-top: 0.55rem;
  min-height: 1.2em;
  text-align: center;
}

.verify-msg.error {
  color: var(--danger);
}

.verify-msg.success {
  color: #ffffff;
  font-weight: 600;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
}

.btn-wa-pay {
  text-decoration: none;
  gap: 0.55rem;
}

.btn-wa-pay .fa-whatsapp {
  font-size: 1.35rem;
  color: var(--brand-btn-text);
}

.modal-sheet > .btn-wa-pay {
  margin-top: 0.25rem;
}

.footer-links {
  width: 100%;
  text-align: center;
  margin-top: 1rem;
  font-size: 0.82rem;
}

.footer-links a {
  font-weight: 600;
  color: var(--text);
}

.footer-note {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: auto;
  padding: 1.5rem 0 0.5rem;
  opacity: 0.65;
  width: 100%;
}

.mini-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 0;
}

.mini-loader .spinner {
  width: 42px;
  height: 42px;
}

.hidden {
  display: none !important;
}

.success-banner {
  background: var(--gradient-soft);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  color: var(--accent-3);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  font-weight: 600;
  text-align: center;
}

@media (min-width: 481px) {
  .modal-backdrop {
    align-items: center;
    padding: 1rem;
  }

  .modal-sheet {
    border-radius: var(--radius);
    max-height: 85vh;
    border: 1px solid rgba(168, 85, 247, 0.25);
  }

  .modal-backdrop.active .modal-sheet {
    transform: translateY(0);
  }
}

@media (max-width: 360px) {
  .data-grid {
    gap: 0.55rem;
  }

  .data-tile .icon {
    font-size: 1.65rem;
  }
}

/* ——— Activated: download / website steps ——— */
.view-actions {
  width: 100%;
  margin-top: 0.5rem;
  text-align: center;
}

.view-actions-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.view-actions-step-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
}

.view-actions-badge {
  align-self: center;
  display: inline-block;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-btn-text);
  background: var(--brand-btn);
  box-shadow: 0 4px 14px var(--accent-glow);
}

.view-actions-badge--alt {
  background: var(--brand-btn);
  color: var(--brand-btn-text);
}

.view-actions-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text);
  text-align: center;
}

.view-actions .btn-action {
  width: 100%;
  min-height: 3rem;
  padding: 0.85rem 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 14px;
}

.view-actions .btn-action i {
  font-size: 1.15rem;
}

.view-actions .btn-primary.btn-action {
  box-shadow: 0 8px 28px var(--accent-glow);
}

.view-actions .btn-action--web {
  border-width: 1.5px;
  border-color: var(--brand-btn);
  background: var(--brand-btn);
  color: var(--brand-btn-text);
}

.view-actions .btn-action--web:hover {
  background: #ecc032;
  border-color: #ecc032;
  color: var(--brand-btn-text);
}

.page-select .view-actions {
  margin-left: auto;
  margin-right: auto;
}

.vpn-file-hint {
  margin: 0.75rem 0 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.vpn-file-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.vpn-file-form input {
  width: 100%;
  min-height: 3.65rem;
  padding: 0.85rem 1rem;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
}

.vpn-file-input {
  font-family: ui-monospace, 'Cascadia Code', 'Consolas', monospace;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  outline: none;
}

.vpn-file-input:focus {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12);
}

.vpn-between-btns {
  margin: 0.85rem 0 0.5rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
  text-align: center;
}

.vpn-get-file-btn {
  width: 100%;
  margin-top: 0;
}

.page-select .btn-action {
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Brand palette — buttons */
.btn-wa-pay,
a.btn-wa-pay,
button.btn-wa-pay,
#buyModal .btn-wa-pay,
#vpnBuyModal .btn-wa-pay,
.shuhuda-cta {
  background: var(--brand-btn) !important;
  color: var(--brand-btn-text) !important;
}

.btn-wa-pay .fa-whatsapp,
#buyModal .btn-wa-pay .fa-whatsapp,
#vpnBuyModal .btn-wa-pay .fa-whatsapp {
  color: var(--brand-btn-text) !important;
}
