/* ── DESIGN SYSTEM & CONSTANTS ────────────────────────────────────────────────── */
:root {
  --bg-dark: #0d0e14;
  --bg-card: #12131a;
  --bg-input: #191a24;
  --bg-pill: #1a1b26;
  --border-card: rgba(255, 255, 255, 0.08);
  --border-yellow: rgba(255, 252, 0, 0.35);

  --yellow-main: #fffc00;
  --yellow-glow: rgba(255, 252, 0, 0.25);
  --text-main: #ffffff;
  --text-muted: #9ca3af;
  --text-sub: #6b7280;

  --accent-green: #22c55e;
  --accent-danger: #ef4444;

  --radius-card: 20px;
  --radius-pill: 9999px;
  --radius-input: 12px;

  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: #0b0c12;
  background-image: 
    radial-gradient(ellipse at 50% 20%, rgba(255, 252, 0, 0.035) 0%, transparent 60%),
    radial-gradient(circle at 50% 90%, rgba(99, 102, 241, 0.025) 0%, transparent 50%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  overflow-x: hidden;
  position: relative;
}

/* Hide generic AI-template stars & neon orbs */
.bg-stars, .glow-orb {
  display: none !important;
}

/* ── TOP FLOATING TOAST NOTIFICATION ────────────────────────────────────────── */
.top-toast-container {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 520px;
  z-index: 9999;
  pointer-events: none;
}

.top-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(22, 23, 34, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(239, 68, 68, 0.45);
  box-shadow: 0 10px 30px -5px rgba(239, 68, 68, 0.25), 0 0 15px rgba(0, 0, 0, 0.6);
  border-radius: 14px;
  padding: 12px 14px;
  animation: slideDownToast 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.25s ease;
}

.top-toast.hidden {
  display: none !important;
}

.top-toast.shake {
  animation: toastShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes slideDownToast {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastShake {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(3px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

.toast-left {
  flex-shrink: 0;
}

.toast-icon {
  font-size: 1.3rem;
  display: block;
}

.toast-body {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #ff5e5e;
  margin-bottom: 2px;
  letter-spacing: -0.2px;
}

.toast-desc {
  font-size: 0.75rem;
  color: #d1d5db;
  line-height: 1.3;
}

.toast-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.toast-ip-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.72rem;
  color: #fca5a5;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  user-select: none;
}

.toast-ip-badge:hover {
  background: rgba(239, 68, 68, 0.25);
  transform: scale(1.02);
}

.toast-ip-badge:active {
  transform: scale(0.98);
}

.ip-label {
  font-weight: 600;
  opacity: 0.7;
}

.ip-val {
  font-weight: 700;
  font-family: monospace;
}

.ip-copy-icon {
  font-size: 0.75rem;
  margin-left: 2px;
}

.toast-close-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  line-height: 1;
  transition: color 0.15s ease;
}

.toast-close-btn:hover {
  color: #ffffff;
}

/* ── LAYOUT CONTAINERS ──────────────────────────────────────────────────────── */
.main-content {
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 1;
}

.screen {
  display: none;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.screen.fade-out {
  display: block;
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  pointer-events: none;
}

.screen.active {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ── LANGUAGE TOGGLE ──────────────────────────────────────────────────────── */
.lang-toggle-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 16px 0;
  gap: 6px;
}

.lang-btn {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn:hover {
  border-color: rgba(255, 252, 0, 0.4);
  color: var(--yellow-main);
}

.lang-btn.active {
  border-color: var(--yellow-main);
  color: var(--yellow-main);
  background: rgba(255, 252, 0, 0.06);
  box-shadow: 0 0 8px var(--yellow-glow);
}

.lang-sep {
  color: rgba(255,255,255,0.15);
  font-size: 0.8rem;
  user-select: none;
}

.glass-card {
  background: #141520;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 1px 2px rgba(255, 255, 255, 0.05) inset;
  overflow: hidden;
}

/* ── CARD HEADER & LOGO ────────────────────────────────────────────────────── */
.card-header {
  padding: 28px 24px 16px;
  text-align: center;
}

.snap-logo-glow {
  width: 60px;
  height: 60px;
  margin: 0 auto 12px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.snap-ghost-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255, 252, 0, 0.45));
}

.snap-main-title {
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.yellow-plus {
  color: var(--yellow-main);
}

.snap-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* Ticker Pill */
.ticker-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 252, 0, 0.08);
  border: 1px solid rgba(255, 252, 0, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-top: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--yellow-main);
}

/* Feature Badges Row */
.feature-badges-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.f-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ── FORM BODY & GROUPS ────────────────────────────────────────────────────── */
.card-form-body {
  padding: 0 24px 28px;
}

.warning-notice-banner {
  background: rgba(255, 170, 0, 0.08);
  border: 1px solid rgba(255, 170, 0, 0.35);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.w-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.w-text {
  font-size: 0.8rem;
  line-height: 1.35;
  color: #ffd000;
  font-weight: 500;
}

.form-group {
  margin-bottom: 18px;
}

.field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

/* ── PILLS & GRID LAYOUTS ───────────────────────────────────────────────────── */
.pill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pill-btn {
  background: var(--bg-pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);

  user-select: none;
}

.pill-btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-main);
}

.pill-btn.active {
  border: 1.5px solid var(--yellow-main);
  color: var(--yellow-main);
  background: rgba(255, 252, 0, 0.08);
  box-shadow: 0 0 12px var(--yellow-glow);
}

/* Operator Pill Custom Styling */
.operator-pill-grid {
  grid-template-columns: repeat(2, 1fr);
}

/* Operator pills show brand colors ONLY when selected (.active) */
.op-pill-base.active {
  border-color: #a855f7 !important;
  color: #c084fc !important;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.4) !important;
  background: rgba(168, 85, 247, 0.18) !important;
}

.op-pill-orangebe.active {
  border-color: #f97316 !important;
  color: #fb923c !important;
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.4) !important;
  background: rgba(249, 115, 22, 0.18) !important;
}

.op-pill-proximus.active {
  border-color: #06b6d4 !important;
  color: #38bdf8 !important;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.4) !important;
  background: rgba(6, 182, 212, 0.18) !important;
}

.op-pill-telenet.active {
  border-color: #6366f1 !important;
  color: #818cf8 !important;
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.4) !important;
  background: rgba(99, 102, 241, 0.18) !important;
}

/* France operator pills */
.op-pill-orange.active {
  border-color: #f97316 !important;
  color: #fb923c !important;
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.4) !important;
  background: rgba(249, 115, 22, 0.18) !important;
}

.op-pill-sfr.active {
  border-color: #ef4444 !important;
  color: #f87171 !important;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.4) !important;
  background: rgba(239, 68, 68, 0.18) !important;
}

.op-pill-bouygues.active {
  border-color: #0284c7 !important;
  color: #38bdf8 !important;
  box-shadow: 0 0 14px rgba(2, 132, 199, 0.4) !important;
  background: rgba(2, 132, 199, 0.18) !important;
}

/* Country selector pills */
.country-pill-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 4px;
}

.country-pill.active {
  border-color: #ef4444 !important;
  color: #f87171 !important;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.35) !important;
  background: rgba(239, 68, 68, 0.12) !important;
}

/* ── INPUT FIELDS ─────────────────────────────────────────────────────────── */
.field-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-input);
  padding: 12px 14px;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 500;
  outline: none;
  transition: var(--transition);
}

.field-input:focus {
  border-color: var(--yellow-main);
  box-shadow: 0 0 10px var(--yellow-glow);
}

/* Username Input Row */
.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix-icon {
  position: absolute;
  left: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  pointer-events: none;
}

.input-with-icon .field-input {
  padding-left: 32px;
}

/* Phone Input Row */
.phone-input-row {
  display: flex;
  gap: 8px;
}

.country-prefix-badge {
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-input);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  flex-shrink: 0;
}

.badge-flag {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--yellow-main);
}

.field-hint {
  font-size: 0.75rem;
  color: var(--text-sub);
  margin-top: 6px;
}

/* ── TURNSTILE CAPTCHA BOX ────────────────────────────────────────────────── */
.captcha-box-group {
  margin-top: 22px;
}

.captcha-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 8px;
  font-weight: 500;
}

.cf-turnstile-box {
  background: #15161f;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cf-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.cf-checkbox {
  display: none;
}

.cf-custom-checkmark {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.cf-check-svg {
  width: 16px;
  height: 16px;
}

.cf-status-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
}

.cf-branding {
  text-align: right;
}

.cf-logo-text {
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #f97316;
}

.cf-links {
  font-size: 0.6rem;
  color: #6b7280;
}

/* ── BUTTONS ────────────────────────────────────────────────────────────────── */
.btn-yellow-submit {
  width: 100%;
  background: #FFFC00;
  color: #000000;
  border: none;
  border-radius: 14px;
  padding: 15px 20px;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  box-shadow: 0 4px 18px rgba(255, 252, 0, 0.22);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-yellow-submit:hover {
  background: #fffb1a;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 26px rgba(255, 252, 0, 0.35);
}

.btn-arrow-icon {
  font-size: 1.3rem;
  line-height: 1;
  margin-top: -2px;
}

.card-footer-disclaimer {
  font-size: 0.72rem;
  color: var(--text-sub);
  text-align: center;
  line-height: 1.4;
  margin-top: 16px;
}

.form-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  font-size: 0.8rem;
  padding: 10px 12px;
  border-radius: 8px;
  margin-top: 14px;
  text-align: center;
}

.hidden { display: none !important; }

/* ── SCANNER & BLOCKED CARDS ───────────────────────────────────────────────── */
.scanner-card, .blocked-card, .waiting-card, .otp-card, .vault-card {
  padding: 32px 24px;
  text-align: center;
}

.radar-container {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 252, 0, 0.2);
}

.circle-1 { width: 40px; height: 40px; }
.circle-2 { width: 80px; height: 80px; }
.circle-3 { width: 120px; height: 120px; }

.radar-sweep {
  width: 120px;
  height: 120px;
  position: absolute;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(255, 252, 0, 0.3) 30%, transparent 40%);
  animation: sweep 2s linear infinite;
}

@keyframes sweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-center-dot {
  width: 10px; height: 10px;
  background: var(--yellow-main);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--yellow-main);
}

.scan-title { font-size: 1.3rem; font-weight: 800; }
.scan-subtitle { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

.scan-checklist {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.check-item {
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ── OTP DIGIT INPUTS ──────────────────────────────────────────────────────── */
.otp-header { margin-bottom: 20px; }
.otp-icon { font-size: 2.5rem; margin-bottom: 8px; }

.otp-inputs-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 20px 0;
}

.otp-digit {
  width: 44px;
  height: 52px;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--yellow-main);
  outline: none;
}

.otp-digit:focus {
  border-color: var(--yellow-main);
  box-shadow: 0 0 10px var(--yellow-glow);
}

.otp-timer-box { margin-top: 18px; font-size: 0.8rem; color: var(--text-muted); }
.btn-resend-otp {
  background: transparent;
  border: none;
  color: var(--yellow-main);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
  text-decoration: underline;
}
.btn-resend-otp.disabled { opacity: 0.5; cursor: not-allowed; text-decoration: none; }

/* ── VAULT REWARDS ────────────────────────────────────────────────────────── */
.success-badge-icon { font-size: 3rem; margin-bottom: 10px; }
.vault-title { font-size: 1.5rem; font-weight: 900; }
.vault-subtitle { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

.vault-rewards-list {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reward-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.reward-icon { font-size: 1.4rem; }
.reward-info strong { display: block; font-size: 0.85rem; }
.reward-info small { font-size: 0.75rem; color: var(--text-muted); }

/* ── VALIDATION EN COURS (SCREEN WAITING) ────────────────────────────────── */
.waiting-card-body {
  text-align: center;
  padding: 10px 20px 24px;
}

.paper-plane-wrapper {
  display: flex;
  justify-content: center;
  margin: 10px 0 18px;
}

.paper-plane-box {
  position: relative;
  width: 64px;
  height: 64px;
  background: #1c1d28;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.paper-plane-icon {
  width: 28px;
  height: 28px;
  color: #ffffff;
  transform: rotate(15deg);
}

.plane-spinner-ring {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  border: 2.5px solid rgba(255, 252, 0, 0.2);
  border-top-color: var(--yellow-main);
  border-radius: 50%;
  animation: spinRing 1s linear infinite;
  background: #12131a;
}

@keyframes spinRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.validation-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.validation-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.45;
}

.validation-subtitle strong {
  color: #ffffff;
  font-weight: 700;
}

.danger-warning-box {
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 14px;
  padding: 14px 16px;
  text-align: center;
  margin: 18px 0;
}

.danger-warning-title {
  color: #ef4444;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.danger-warning-sub {
  color: #fca5a5;
  font-size: 0.85rem;
  font-weight: 500;
}

.loading-dots-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 20px 0 10px;
}

.loading-dots-row .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4b5563;
  animation: dotPulse 1.4s infinite ease-in-out both;
}

.loading-dots-row .d-1 { animation-delay: -0.32s; }
.loading-dots-row .d-2 { animation-delay: -0.16s; }

@keyframes dotPulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; background: #4b5563; }
  40% { transform: scale(1.2); opacity: 1; background: var(--yellow-main); }
}

.waiting-step-status {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.estimated-time-box {
  background: #181924;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  color: #e5e7eb;
  font-weight: 600;
  margin-bottom: 16px;
}

.yellow-text {
  color: var(--yellow-main);
  font-weight: 800;
}

.support-contact-hint {
  font-size: 0.82rem;
  color: #6b7280;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.45;
  padding: 0 10px;
}

.security-badge-row {
  font-size: 0.78rem;
  color: #6b7280;
  text-align: center;
  margin-bottom: 16px;
  opacity: 0.85;
}
