/* =========================================================
   MODERN DATING PRELANDING DESIGN SYSTEM
   Theme: Sleek Dark / Trust & Security Glassmorphism
   ========================================================= */

:root {
  --bg-main: #090c15;
  --card-bg: rgba(18, 23, 37, 0.75);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-glow: rgba(255, 75, 114, 0.25);
  
  --primary-start: #ff4b72;
  --primary-end: #ff7557;
  --primary-gradient: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
  --primary-glow: rgba(255, 75, 114, 0.35);

  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.3);
  --danger: #ef4444;

  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-full: 9999px;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
}

/* ---------------- Фоновое изображение и затемнение ---------------- */
.bg-image-layer {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  opacity: 0;
  filter: brightness(0.65) contrast(1.05);
  transform: scale(1.02);
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.bg-image-layer.has-image {
  opacity: 1;
}

.bg-image-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(9, 12, 21, 0.6) 0%, rgba(9, 12, 21, 0.92) 100%);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.bg-image-layer.has-image ~ .bg-image-overlay {
  opacity: 1;
}

/* ---------------- Фоновые градиентные свечения ---------------- */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.bg-glow-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(255, 75, 114, 0.25) 0%, transparent 70%);
  top: -100px;
  right: -50px;
}

.bg-glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, transparent 70%);
  bottom: -120px;
  left: -80px;
}

.bg-glow-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 117, 87, 0.15) 0%, transparent 70%);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ---------------- Контейнер страницы ---------------- */
.page-wrapper {
  width: 100%;
  max-width: 460px;
  padding: 20px 16px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------------- Верхний бар безопасности и языков ---------------- */
.top-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 18px;
  animation: fadeInDown 0.6s ease-out;
}

.security-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  color: #cbd5e1;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  min-width: 7px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success);
  animation: pulseGreen 2s infinite ease-in-out;
}

.icon-lock {
  width: 13px;
  height: 13px;
  min-width: 13px;
  stroke: #94a3b8;
}

/* ---------------- Переключатель языков ---------------- */
.lang-picker {
  position: relative;
  z-index: 20;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: #f1f5f9;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.lang-flag {
  font-size: 14px;
  line-height: 1;
}

.lang-code {
  letter-spacing: 0.5px;
}

.icon-chevron {
  width: 12px;
  height: 12px;
  stroke: #94a3b8;
  transition: transform 0.2s ease;
}

.lang-picker.open .icon-chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 148px;
  background: rgba(18, 23, 38, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 6px;
  backdrop-filter: blur(24px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.95);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
}

.lang-picker.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: #cbd5e1;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
  width: 100%;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.lang-option.active {
  background: rgba(255, 75, 114, 0.18);
  color: #ff7557;
  font-weight: 700;
}

.opt-flag {
  font-size: 15px;
}

/* ---------------- Карточка шлюза ---------------- */
.gate-card {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 
              inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transition: border-color 0.3s ease;
}

.gate-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

/* ---------------- Скрытый Honeypot ---------------- */
.hp-trap {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ---------------- Шаги (Steps) ---------------- */
.step {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.step.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 1;
  transform: translateY(0);
}

/* Иконки-бейджы */
.badge-icon {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.badge-age {
  background: linear-gradient(135deg, rgba(255, 75, 114, 0.2) 0%, rgba(255, 117, 87, 0.1) 100%);
  border: 1px solid rgba(255, 75, 114, 0.35);
  color: #ff5e7e;
}

.badge-age svg {
  width: 32px;
  height: 32px;
}

.badge-number {
  position: absolute;
  font-size: 10px;
  font-weight: 800;
  background: var(--primary-gradient);
  color: #fff;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  bottom: -4px;
  right: -4px;
  box-shadow: 0 2px 8px var(--primary-glow);
}

.badge-security {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
  border: 1px solid rgba(124, 58, 237, 0.35);
  color: #a78bfa;
}

.badge-security svg {
  width: 32px;
  height: 32px;
}

.badge-denied {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: var(--danger);
}

.badge-denied svg {
  width: 34px;
  height: 34px;
}

/* Заголовки карточки */
.card-header {
  margin-bottom: 22px;
  max-width: 380px;
}

.card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ff7557;
  margin-bottom: 8px;
}

.tag-success {
  color: var(--success);
}

.tag-denied {
  color: var(--danger);
}

.card-title {
  font-size: 23px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
  line-height: 1.25;
}

.card-subtitle {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Блок акцента вопроса */
.question-highlight {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 24px;
}

.question-icon {
  font-size: 20px;
}

.question-text {
  font-size: 15px;
  font-weight: 700;
  color: #f1f5f9;
}

/* ---------------- Кнопки ---------------- */
.actions-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn {
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 8px 24px var(--primary-glow),
              inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 75, 114, 0.45);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border-color: rgba(255, 255, 255, 0.14);
}

.btn-secondary:active {
  transform: scale(0.98);
}

.btn-text {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s;
  padding: 6px;
}

.btn-text:hover {
  color: #cbd5e1;
}

/* ---------------- Интерактивный слайдер проверки (Anti-Bot) ---------------- */
.slider-container {
  width: 100%;
  margin: 16px 0 20px;
}

.slider-track {
  width: 100%;
  height: 58px;
  background: rgba(10, 14, 25, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.slider-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
  padding-left: 36px;
}

.shimmer-text {
  font-size: 13.5px;
  font-weight: 600;
  background: linear-gradient(90deg, #64748b 0%, #cbd5e1 50%, #64748b 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 2.5s infinite;
}

.slider-chevrons {
  width: 16px;
  height: 16px;
  stroke: #94a3b8;
  animation: bounceRight 1.5s infinite;
}

.slider-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(90deg, rgba(255, 75, 114, 0.3) 0%, rgba(255, 117, 87, 0.4) 100%);
  border-radius: var(--radius-full);
  transition: width 0.05s linear;
}

.slider-thumb {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  box-shadow: 0 4px 14px var(--primary-glow),
              inset 0 1px 2px rgba(255, 255, 255, 0.4);
  z-index: 2;
  transition: transform 0.05s linear, box-shadow 0.2s ease;
}

.slider-thumb:active {
  cursor: grabbing;
  box-shadow: 0 6px 20px rgba(255, 75, 114, 0.6);
}

.icon-thumb-arrow {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
  transition: opacity 0.2s ease;
}

.thumb-spinner {
  display: none;
  width: 22px;
  height: 22px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.slider-thumb.verifying .icon-thumb-arrow {
  display: none;
}

.slider-thumb.verifying .thumb-spinner {
  display: block;
}

/* ---------------- Экран успеха ---------------- */
.success-icon-wrap {
  width: 80px;
  height: 80px;
  margin-bottom: 22px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 1.5px solid var(--success);
  box-shadow: 0 0 24px var(--success-glow);
  animation: ringPulse 2s infinite ease-out;
}

.icon-success-check {
  width: 44px;
  height: 44px;
  stroke: var(--success);
  position: relative;
  z-index: 1;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: checkDraw 0.6s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.redirect-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  margin: 16px 0 24px;
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: var(--primary-gradient);
  border-radius: var(--radius-full);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------------- Нижний блок доверия ---------------- */
.trust-footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-item svg {
  width: 14px;
  height: 14px;
  stroke: #64748b;
}

.trust-divider {
  color: rgba(255, 255, 255, 0.15);
}

/* ---------------- Анимации ---------------- */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes bounceRight {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

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

@keyframes ringPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  70% { transform: scale(1.15); opacity: 0; }
  100% { transform: scale(1.15); opacity: 0; }
}

@keyframes checkDraw {
  to { stroke-dashoffset: 0; }
}

/* ---------------- Адаптивность под мобильные экраны ---------------- */
@media (max-width: 420px) {
  .page-wrapper {
    padding: 14px 12px;
  }

  .gate-card {
    padding: 26px 18px;
    border-radius: 24px;
  }

  .card-title {
    font-size: 20px;
  }

  .card-subtitle {
    font-size: 12.5px;
  }

  .btn {
    padding: 14px 16px;
    font-size: 14.5px;
  }

  .slider-track {
    height: 54px;
  }

  .slider-thumb {
    width: 46px;
    height: 46px;
  }

  .trust-footer {
    gap: 8px;
    font-size: 10.5px;
  }
}
