/* ============================================
   FlameMatch - Main Stylesheet
   H5 Single Page Dating Site
   ============================================ */

/* ===== CSS VARIABLES ===== */
:root {
  --primary: #9B61ED;
  --primary-light: #B987F5;
  --primary-dark: #7A3FD8;
  --primary-deep: #5A1FB8;
  --accent-pink: #FF6B9D;
  --accent-orange: #FF8A65;
  --accent-purple: #CE93D8;
  --gradient-primary: linear-gradient(135deg, #9B61ED 0%, #CE93D8 50%, #FF6B9D 100%);
  --gradient-hero: linear-gradient(180deg, #1a0a2e 0%, #2d1b4e 40%, #4a1d6e 100%);
  --gradient-card: linear-gradient(135deg, rgba(155, 97, 237, 0.15) 0%, rgba(255, 107, 157, 0.1) 100%);
  
  --bg-dark: #0f0520;
  --bg-card: #1a0d30;
  --bg-elevated: #251345;
  
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.75);
  --text-muted: rgba(255, 255, 255, 0.5);
  
  --border-color: rgba(155, 97, 237, 0.25);
  --border-light: rgba(255, 255, 255, 0.1);
  
  --shadow-glow: 0 0 40px rgba(155, 97, 237, 0.4);
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.3);
  --shadow-float: 0 20px 60px rgba(155, 97, 237, 0.3);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  --nav-height: 70px;
  --container-max: 1200px;
  
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.body-loading {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.body-loaded {
  opacity: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 600;
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(155, 97, 237, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(155, 97, 237, 0.5);
}

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

.btn-glow {
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(155, 97, 237, 0.4); }
  50% { box-shadow: 0 4px 40px rgba(155, 97, 237, 0.7), 0 0 60px rgba(255, 107, 157, 0.3); }
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.btn-full {
  width: 100%;
}

.btn-large {
  padding: 18px 36px;
  font-size: 18px;
}

.btn-arrow {
  transition: transform var(--transition-base);
}

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

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

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(15, 5, 32, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition-base);
}

.nav.scrolled {
  background: rgba(15, 5, 32, 0.95);
  border-bottom-color: var(--border-color);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-icon {
  font-size: 24px;
  -webkit-text-fill-color: initial;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-login {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-login:hover {
  color: var(--text-primary);
}

.nav-signup-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: white;
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition-base);
}

.nav-signup-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(155, 97, 237, 0.4);
}

/* Language Selector */
.lang-selector {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

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

.lang-chevron {
  transition: transform var(--transition-fast);
}

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

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-card);
  z-index: 200;
}

.lang-selector.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  width: 100%;
  padding: 10px 14px;
  text-align: left;
  font-size: 14px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.lang-option:hover,
.lang-option.active {
  background: rgba(155, 97, 237, 0.2);
  color: var(--text-primary);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--bg-card);
  z-index: 200;
  transition: right var(--transition-base);
  padding: 20px;
  overflow-y: auto;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  font-size: 20px;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mobile-close {
  margin-left: auto;
  font-size: 28px;
  color: var(--text-secondary);
  -webkit-text-fill-color: initial;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu-links a {
  padding: 14px 16px;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.mobile-menu-links a:hover {
  background: rgba(155, 97, 237, 0.15);
  color: var(--text-primary);
}

.mobile-signup {
  margin-top: 12px;
  padding: 16px;
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-full);
  font-weight: 600;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: var(--nav-height);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-hero);
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 80%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(155, 97, 237, 0.3) 0%, transparent 70%);
  animation: floatOrb1 20s ease-in-out infinite;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 70%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(255, 107, 157, 0.2) 0%, transparent 70%);
  animation: floatOrb2 25s ease-in-out infinite;
}

@keyframes floatOrb1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.1); }
}

@keyframes floatOrb2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 30px) scale(1.15); }
}

.hero-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg-dark));
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  flex: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  padding: 60px 20px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: rgba(155, 97, 237, 0.2);
  border: 1px solid rgba(155, 97, 237, 0.4);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-light);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #CE93D8 50%, #FF6B9D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: left;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-light);
}

/* Hero Visual - Profile Cards */
.hero-visual {
  position: relative;
  height: 500px;
  animation: fadeInRight 1s ease-out 0.2s both;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-card-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.profile-card {
  position: absolute;
  width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-float);
  backdrop-filter: blur(10px);
}

.profile-card-1 {
  top: 20px;
  right: 40px;
  animation: cardFloat1 6s ease-in-out infinite;
}

.profile-card-2 {
  top: 170px;
  left: 0;
  animation: cardFloat2 7s ease-in-out infinite;
}

.profile-card-3 {
  top: 330px;
  right: 60px;
  animation: cardFloat3 8s ease-in-out infinite;
}

@keyframes cardFloat1 {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-15px) rotate(0deg); }
}

@keyframes cardFloat2 {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-12px) rotate(-1deg); }
}

@keyframes cardFloat3 {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

.card-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  border: 2px solid var(--primary-light);
}

.card-avatar-1 {
  background: linear-gradient(135deg, #FFB6C1, #FF69B4, #9B61ED);
  position: relative;
}

.card-avatar-2 {
  background: linear-gradient(135deg, #E6E6FA, #DDA0DD, #9B61ED);
  position: relative;
}

.card-avatar-3 {
  background: linear-gradient(135deg, #FFDAB9, #FFA07A, #9B61ED);
  position: relative;
}

.card-info {
  flex: 1;
  min-width: 0;
}

.card-name {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 2px;
}

.card-distance {
  font-size: 12px;
  color: var(--text-muted);
}

.card-match {
  padding: 6px 12px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  color: white;
}

/* Floating hearts */
.float-heart {
  position: absolute;
  font-size: 28px;
  animation: heartFloat 4s ease-in-out infinite;
  opacity: 0.8;
}

.float-heart-1 { top: 80px; left: 30px; animation-delay: 0s; }
.float-heart-2 { top: 250px; right: 20px; animation-delay: 1.5s; }
.float-heart-3 { bottom: 60px; left: 80px; animation-delay: 3s; }

@keyframes heartFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.8; }
  50% { transform: translateY(-20px) scale(1.1); opacity: 1; }
}

/* Countdown Bar */
.countdown-bar {
  position: relative;
  z-index: 2;
  background: linear-gradient(90deg, rgba(255, 107, 157, 0.15), rgba(155, 97, 237, 0.15));
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 20px;
}

.countdown-content {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
}

.countdown-icon {
  font-size: 18px;
  animation: pulse 1.5s ease-in-out infinite;
}

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

.countdown-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.countdown-sep {
  color: var(--text-muted);
}

.countdown-expires {
  color: var(--text-muted);
}

.countdown-timer {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cd-num {
  min-width: 28px;
  text-align: center;
}

.cd-colon {
  margin: 0 2px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ===== LOGIN MODAL ===== */
.login-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  padding: 20px;
}

.login-modal.open {
  opacity: 1;
  visibility: visible;
}

.login-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.login-container {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px 32px 32px;
  overflow-y: auto;
  transform: translateY(30px) scale(0.95);
  transition: transform var(--transition-base);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(155, 97, 237, 0.2);
}

.login-modal.open .login-container {
  transform: translateY(0) scale(1);
}

.login-header {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.login-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
}

.login-subtitle {
  color: var(--text-muted);
  font-size: 14px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  font-size: 16px;
  z-index: 1;
  pointer-events: none;
}

.form-input {
  width: 100%;
  padding: 14px 16px 14px 42px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus {
  border-color: var(--primary);
  background: rgba(155, 97, 237, 0.1);
  box-shadow: 0 0 0 3px rgba(155, 97, 237, 0.15);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}

.password-toggle:hover {
  color: var(--text-primary);
}

.captcha-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.captcha-input-wrap {
  flex: 1;
}

.captcha-code {
  width: 120px;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color var(--transition-fast);
}

.captcha-code:hover {
  border-color: var(--primary);
}

.captcha-code canvas {
  display: block;
}

.captcha-refresh {
  width: 44px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(155, 97, 237, 0.15);
  border: 2px solid rgba(155, 97, 237, 0.3);
  border-radius: var(--radius-md);
  color: var(--primary-light);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.captcha-refresh:hover {
  background: rgba(155, 97, 237, 0.25);
  border-color: var(--primary);
  transform: rotate(180deg);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: -4px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}

.remember-me input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.forgot-password {
  font-size: 13px;
  color: var(--primary-light);
  transition: color var(--transition-fast);
}

.forgot-password:hover {
  color: var(--primary);
  text-decoration: underline;
}

.login-error {
  padding: 10px 14px;
  background: rgba(255, 107, 107, 0.15);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: var(--radius-sm);
  color: #ff8a8a;
  font-size: 13px;
  display: none;
}

.login-error.show {
  display: block;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 12px;
  margin: 4px 0;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

@media (max-width: 480px) {
  .login-container {
    padding: 32px 20px 24px;
  }
  
  .login-title {
    font-size: 22px;
  }
  
  .captcha-row {
    flex-wrap: wrap;
  }
}

/* ===== QUIZ MODAL ===== */
.quiz-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  padding: 20px;
}

.quiz-modal.open {
  opacity: 1;
  visibility: visible;
}

.quiz-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.quiz-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px 32px 32px;
  overflow-y: auto;
  transform: translateY(30px) scale(0.95);
  transition: transform var(--transition-base);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(155, 97, 237, 0.2);
}

.quiz-modal.open .quiz-container {
  transform: translateY(0) scale(1);
}

.quiz-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 24px;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  z-index: 10;
}

.quiz-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.quiz-screen {
  display: none;
  animation: screenFadeIn 0.4s ease-out;
}

.quiz-screen.active {
  display: block;
}

@keyframes screenFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Privacy Screen */
.privacy-icon {
  text-align: center;
  font-size: 56px;
  margin-bottom: 16px;
}

.quiz-title {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
}

.quiz-desc {
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.privacy-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.privacy-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(155, 97, 237, 0.1);
  border: 1px solid rgba(155, 97, 237, 0.2);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.privacy-badge:hover {
  background: rgba(155, 97, 237, 0.15);
  border-color: rgba(155, 97, 237, 0.3);
}

.badge-icon {
  font-size: 22px;
}

.badge-text {
  font-size: 14px;
  font-weight: 500;
}

.quiz-prompt {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

/* Quiz Progress */
.quiz-progress {
  margin-bottom: 32px;
}

.progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 12px;
}

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

.progress-text {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* Quiz Steps */
.quiz-step-container {
  min-height: 300px;
  margin-bottom: 24px;
}

.quiz-step {
  display: none;
  animation: stepSlide 0.3s ease-out;
}

.quiz-step.active {
  display: block;
}

@keyframes stepSlide {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.step-question {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
}

.step-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.step-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.step-option:hover {
  background: rgba(155, 97, 237, 0.1);
  border-color: var(--primary);
}

.step-option.selected {
  background: rgba(155, 97, 237, 0.2);
  border-color: var(--primary);
}

.option-emoji {
  font-size: 28px;
  flex-shrink: 0;
}

.option-label {
  font-size: 16px;
  font-weight: 500;
  flex: 1;
}

.option-check {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.step-option.selected .option-check {
  background: var(--gradient-primary);
  border-color: var(--primary);
}

.step-option.selected .option-check::after {
  content: '✓';
  color: white;
  font-size: 14px;
  font-weight: 700;
}

/* Multi-select */
.step-options.grid-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.step-option.grid-option {
  flex-direction: column;
  align-items: center;
  padding: 20px 12px;
  gap: 8px;
  text-align: center;
}

.grid-option .option-emoji {
  font-size: 32px;
}

.grid-option .option-label {
  font-size: 13px;
  text-align: center;
}

/* Input types */
.step-input {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 16px;
  font-family: inherit;
  transition: all var(--transition-fast);
  outline: none;
}

.step-input:focus {
  border-color: var(--primary);
  background: rgba(155, 97, 237, 0.1);
}

.step-input::placeholder {
  color: var(--text-muted);
}

/* Quiz Navigation */
.quiz-nav {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.quiz-nav .btn {
  flex: 1;
}

/* Matching Screen */
.matching-animation {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 32px;
}

.matching-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 3px solid transparent;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ring-1 {
  width: 160px;
  height: 160px;
  border-top-color: var(--primary);
  animation: spin 1.2s linear infinite;
}

.ring-2 {
  width: 120px;
  height: 120px;
  border-bottom-color: var(--accent-pink);
  animation: spin 1.5s linear infinite reverse;
}

.ring-3 {
  width: 80px;
  height: 80px;
  border-top-color: var(--accent-purple);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.matching-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 36px;
  animation: heartbeat 1.2s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.15); }
}

.matching-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 300px;
  margin: 0 auto;
}

.match-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-muted);
  transition: all var(--transition-base);
}

.match-step.active {
  color: var(--text-primary);
  background: rgba(155, 97, 237, 0.1);
}

.match-step.completed {
  color: var(--text-secondary);
}

.step-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  opacity: 0;
  flex-shrink: 0;
}

.match-step.completed .step-check {
  opacity: 1;
  background: var(--gradient-primary);
  color: white;
}

.match-step.active .step-check {
  opacity: 1;
  background: var(--primary);
  animation: stepPulse 1s ease-in-out infinite;
}

@keyframes stepPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Result Screen */
.result-celebration {
  position: relative;
  text-align: center;
  margin-bottom: 16px;
}

.confetti-container {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 100px;
  pointer-events: none;
  overflow: visible;
}

.confetti-piece {
  position: absolute;
  width: 8px;
  height: 8px;
  top: 0;
  animation: confettiFall 2s ease-out forwards;
}

@keyframes confettiFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100px) rotate(720deg);
    opacity: 0;
  }
}

.result-badge {
  font-size: 56px;
  animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popIn {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

.result-title {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.result-online {
  text-align: center;
  margin: 24px 0;
}

.online-count {
  margin-bottom: 8px;
}

.count-number {
  font-size: 64px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: countPop 0.6s ease-out;
}

@keyframes countPop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.online-text {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 4px;
}

.online-sub {
  color: var(--text-muted);
  font-size: 14px;
}

.result-matches {
  display: flex;
  justify-content: center;
  gap: -12px;
  margin-bottom: 28px;
}

.mini-match {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid var(--bg-card);
  overflow: hidden;
  margin-left: -12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: matchFadeIn 0.5s ease-out forwards;
  opacity: 0;
}

.mini-match:first-child {
  margin-left: 0;
}

.mini-match:nth-child(1) { animation-delay: 0.1s; }
.mini-match:nth-child(2) { animation-delay: 0.2s; }
.mini-match:nth-child(3) { animation-delay: 0.3s; }
.mini-match:nth-child(4) { animation-delay: 0.4s; }

@keyframes matchFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mini-avatar {
  width: 100%;
  height: 100%;
}

.mini-avatar-1 { background: linear-gradient(135deg, #FFB6C1, #FF69B4); }
.mini-avatar-2 { background: linear-gradient(135deg, #E6E6FA, #DDA0DD); }
.mini-avatar-3 { background: linear-gradient(135deg, #FFDAB9, #FFA07A); }

.mini-more {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  font-size: 12px;
  font-weight: 700;
  color: white;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===== SECTION SHARED ===== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(155, 97, 237, 0.15);
  border: 1px solid rgba(155, 97, 237, 0.3);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-light);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #CE93D8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== FEATURES ===== */
.features {
  padding: 100px 0;
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-float);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 80px 0 100px;
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(155, 97, 237, 0.05) 50%, var(--bg-dark) 100%);
}

.steps-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
}

.step-card {
  flex: 1;
  max-width: 320px;
  padding: 40px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
}

.step-number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 50%;
  font-weight: 700;
  font-size: 16px;
  color: white;
}

.step-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.step-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-arrow {
  display: flex;
  align-items: center;
  padding: 0 8px;
  flex-shrink: 0;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 100px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-float);
}

.testimonial-rating {
  font-size: 16px;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}

.author-avatar-1 { background: linear-gradient(135deg, #FFB6C1, #FF69B4, #9B61ED); }
.author-avatar-2 { background: linear-gradient(135deg, #E6E6FA, #DDA0DD, #9B61ED); }
.author-avatar-3 { background: linear-gradient(135deg, #FFDAB9, #FFA07A, #9B61ED); }

.author-info {
  min-width: 0;
}

.author-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}

.author-location {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== CTA SECTION ===== */
.cta-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(155, 97, 237, 0.15) 0%, rgba(255, 107, 157, 0.1) 100%);
}

.cta-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(155, 97, 237, 0.2) 0%, transparent 70%);
  animation: ctaGlow 6s ease-in-out infinite;
}

@keyframes ctaGlow {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.cta-content {
  position: relative;
  text-align: center;
  z-index: 1;
}

.cta-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-subtitle {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* ===== FOOTER ===== */
.footer {
  background: #0a0318;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  font-size: 16px;
  transition: all var(--transition-fast);
}

.social-icon:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-col a {
  display: block;
  padding: 6px 0;
  color: var(--text-muted);
  font-size: 14px;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--primary-light);
}

.footer-lang-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.footer-lang {
  text-align: left;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.footer-lang:hover,
.footer-lang.active {
  background: rgba(155, 97, 237, 0.2);
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-disclaimer {
  text-align: right;
}

/* ===== FLOATING CTA ===== */
.floating-cta {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 16px;
  z-index: 90;
  box-shadow: 0 4px 20px rgba(155, 97, 237, 0.5);
  animation: floatCtaBounce 2s ease-in-out infinite;
  white-space: nowrap;
}

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

.fcta-icon {
  font-size: 18px;
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ===== UTILITY ===== */
.desktop-only { display: flex; }
.mobile-only { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    padding: 40px 20px;
  }
  
  .hero-content {
    order: 1;
  }
  
  .hero-visual {
    order: 2;
    height: 380px;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .features-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }
  
  .desktop-only { display: none !important; }
  .mobile-only { display: flex !important; }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .nav-login,
  .nav-signup-btn {
    display: none;
  }
  
  .hero-container {
    padding: 30px 16px;
    gap: 30px;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .hero-visual {
    height: 320px;
  }
  
  .profile-card {
    width: 240px;
    padding: 12px;
  }
  
  .card-avatar {
    width: 48px;
    height: 48px;
  }
  
  .card-name {
    font-size: 14px;
  }
  
  .card-distance {
    font-size: 11px;
  }
  
  .hero-stats {
    gap: 16px;
  }
  
  .stat-value {
    font-size: 22px;
  }
  
  .stat-label {
    font-size: 11px;
  }
  
  .countdown-content {
    font-size: 12px;
    gap: 8px;
  }
  
  .countdown-timer {
    font-size: 15px;
  }
  
  .features {
    padding: 60px 0;
  }
  
  .features-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .section-header {
    margin-bottom: 36px;
  }
  
  .how-it-works {
    padding: 60px 0;
  }
  
  .steps-row {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .step-card {
    width: 100%;
    max-width: 320px;
  }
  
  .step-arrow {
    transform: rotate(90deg);
    padding: 0;
    height: 30px;
  }
  
  .testimonials {
    padding: 60px 0;
  }
  
  .cta-section {
    padding: 60px 0;
  }
  
  .footer {
    padding: 40px 0 24px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 28px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-disclaimer {
    text-align: center;
  }
  
  /* Quiz mobile adjustments */
  .quiz-container {
    padding: 32px 20px 24px;
    max-width: 100%;
    max-height: 95vh;
  }
  
  .quiz-title {
    font-size: 22px;
  }
  
  .step-options.grid-options {
    grid-template-columns: 1fr 1fr;
  }
  
  .floating-cta {
    display: flex;
    width: calc(100% - 40px);
    justify-content: center;
  }
  
  .matching-animation {
    width: 120px;
    height: 120px;
  }
  
  .ring-1 { width: 120px; height: 120px; }
  .ring-2 { width: 90px; height: 90px; }
  .ring-3 { width: 60px; height: 60px; }
  
  .matching-center {
    font-size: 28px;
  }
  
  .count-number {
    font-size: 48px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }
  
  .profile-card {
    width: 220px;
  }
  
  .profile-card-1 { right: 10px; }
  .profile-card-2 { left: -10px; }
  .profile-card-3 { right: 20px; }
  
  .feature-card,
  .testimonial-card {
    padding: 24px 20px;
  }
  
  .step-card {
    padding: 32px 20px;
  }
}

/* RTL support */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .btn-arrow {
  transform: scaleX(-1);
}

[dir="rtl"] .btn:hover .btn-arrow {
  transform: scaleX(-1) translateX(4px);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-dark);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Selection */
::selection {
  background: rgba(155, 97, 237, 0.4);
  color: white;
}
