/* ========== ASKIO V4 - Premium Survey Platform ========== */

/* Variable Fonts - משקלים דינמיים */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@100..900&family=Rubik:wght@300..900&display=swap');

/* ========== Light Theme (default) ========== */
:root {
  --color-primary: #1D4ED8;
  --color-primary-dark: #1E3A8A;
  --color-primary-light: #3B82F6;
  --color-primary-50: #EFF6FF;
  --color-primary-100: #DBEAFE;

  --color-accent: #F43F5E;
  --color-success: #10B981;
  --color-success-bg: #F0FDF4;
  --color-success-border: #BBF7D0;
  --color-warning: #F59E0B;
  --color-warning-bg: #FEF3C7;
  --color-error: #DC2626;
  --color-error-bg: #FEF2F2;
  --color-error-border: #FECACA;

  --color-bg: #FAFAFA;
  --color-surface: #FFFFFF;
  --color-surface-2: #F8FAFC;
  --color-border: #E5E7EB;
  --color-border-light: #F1F5F9;
  --color-text: #0F172A;
  --color-text-muted: #64748B;
  --color-text-light: #94A3B8;

  --skeleton-bg: linear-gradient(90deg, #F1F5F9 0%, #E5E7EB 50%, #F1F5F9 100%);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.10), 0 8px 10px -6px rgba(15, 23, 42, 0.06);

  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== Dark Theme ========== */
[data-theme="dark"] {
  --color-primary: #3B82F6;
  --color-primary-dark: #2563EB;
  --color-primary-light: #60A5FA;
  --color-primary-50: rgba(59, 130, 246, 0.1);
  --color-primary-100: rgba(59, 130, 246, 0.2);

  --color-accent: #FB7185;
  --color-success: #34D399;
  --color-success-bg: rgba(16, 185, 129, 0.1);
  --color-success-border: rgba(16, 185, 129, 0.3);
  --color-warning: #FBBF24;
  --color-warning-bg: rgba(245, 158, 11, 0.1);
  --color-error: #F87171;
  --color-error-bg: rgba(220, 38, 38, 0.1);
  --color-error-border: rgba(220, 38, 38, 0.3);

  --color-bg: #0F172A;
  --color-surface: #1E293B;
  --color-surface-2: #334155;
  --color-border: #334155;
  --color-border-light: #1E293B;
  --color-text: #F1F5F9;
  --color-text-muted: #94A3B8;
  --color-text-light: #64748B;

  --skeleton-bg: linear-gradient(90deg, #1E293B 0%, #334155 50%, #1E293B 100%);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { direction: rtl; scroll-behavior: smooth; }

body {
  font-family: 'Heebo', sans-serif;
  font-weight: 400;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  transition: background-color var(--transition), color var(--transition);
}

/* Variable font weights for typography hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Rubik', sans-serif;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -0.03em; }
h3 { font-size: 1.5rem; font-weight: 700; }
h4 { font-size: 1.25rem; font-weight: 600; }

p { color: var(--color-text-muted); font-weight: 400; }

a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); }

button { font-family: inherit; cursor: pointer; border: none; background: none; font-size: inherit; }
input, select, textarea {
  font-family: inherit; font-size: inherit; color: inherit;
  background-color: var(--color-surface);
}

/* ========== Layout ========== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 640px; margin: 0 auto; padding: 0 24px; }

/* ========== Skeleton Loaders ========== */
.skeleton {
  background: var(--skeleton-bg);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.4s ease-in-out infinite;
  border-radius: var(--radius);
  display: inline-block;
}

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

.skeleton-text { height: 1em; width: 100%; }
.skeleton-num { height: 2.5rem; width: 80px; margin: 0 auto 8px; border-radius: 6px; }
.skeleton-card { height: 200px; width: 100%; }

/* ========== Theme Toggle ========== */
.theme-toggle {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--color-text-muted);
}
.theme-toggle:hover {
  border-color: var(--color-text);
  color: var(--color-text);
  transform: rotate(15deg);
}
.theme-toggle svg { width: 18px; height: 18px; }

[data-theme="light"] .theme-toggle .moon { display: block; }
[data-theme="light"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }

/* ========== Navbar ========== */
.navbar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--color-surface) 85%, transparent);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Mobile - smaller logo to fit nav */
@media (max-width: 640px) {
  .navbar-inner {
    padding: 12px 16px;
  }
  .navbar-inner .logo img {
    height: 70px !important;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Rubik', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-text);
  letter-spacing: -0.02em;
  transition: opacity var(--transition);
}
.logo:hover { opacity: 0.85; }

.nav-links { display: flex; gap: 28px; list-style: none; }

.nav-links a {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 0; right: 0;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--color-text); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-actions { display: flex; gap: 12px; align-items: center; }

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 400ms, height 400ms;
}
.btn:active::before { width: 200px; height: 200px; }

.btn-primary { background: var(--color-primary); color: white; }
.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-secondary { background: var(--color-surface); color: var(--color-text); border-color: var(--color-border); }
.btn-secondary:hover { border-color: var(--color-text); background: var(--color-surface-2); }

.btn-ghost { background: transparent; color: var(--color-text); }
.btn-ghost:hover { background: var(--color-border-light); }

.btn-danger { background: var(--color-accent); color: white; }
.btn-danger:hover { background: #E11D48; }

.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ========== Hero ========== */
.hero {
  padding: 96px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--color-primary-50) 0%, transparent 70%);
  z-index: -1;
  opacity: 0.7;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-primary-50);
  color: var(--color-primary-dark);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid var(--color-primary-100);
}
[data-theme="dark"] .hero-badge { color: var(--color-primary-light); }

.hero h1 { margin-bottom: 20px; }
.hero h1 .accent { color: var(--color-primary); }

.hero p.lead {
  font-size: 1.2rem;
  max-width: 620px;
  margin: 0 auto 36px;
  font-weight: 400;
}

.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  margin-top: 80px;
  padding: 32px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.stat-num {
  font-family: 'Rubik', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.stat-label { color: var(--color-text-muted); font-size: 0.9rem; font-weight: 500; }

/* ========== Hero Preview Mock-up (Dashboard preview) ========== */
.hero-preview {
  margin-top: 48px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
  position: relative;
}
.hero-preview-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: perspective(1500px) rotateX(2deg);
  transition: transform var(--transition-slow);
}
.hero-preview-card:hover {
  transform: perspective(1500px) rotateX(0deg) translateY(-4px);
}

/* glow under preview */
.hero-preview::before {
  content: '';
  position: absolute;
  bottom: -20px; left: 10%; right: 10%;
  height: 40px;
  background: radial-gradient(ellipse, var(--color-primary-50) 0%, transparent 70%);
  filter: blur(20px);
  z-index: -1;
}

/* ========== Features Grid with scroll-reveal ========== */
.features { padding: 80px 0; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { margin-bottom: 12px; }

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

.feature-card {
  background: var(--color-surface);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(20px);
}

.feature-card.in-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 600ms ease-out, transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary-50);
  color: var(--color-primary);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  transition: transform var(--transition);
}
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(-5deg); }
.feature-icon svg { width: 24px; height: 24px; }

.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; font-weight: 700; }
.feature-card p { font-size: 0.95rem; line-height: 1.6; }

/* ========== Auth ========== */
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  background: var(--color-surface);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  justify-content: center;
}

.auth-card h2 { text-align: center; margin-bottom: 8px; font-weight: 700; }
.auth-card .subtitle { text-align: center; margin-bottom: 32px; color: var(--color-text-muted); }

/* ========== Multi-step Form ========== */
.step-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}
.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  transition: all var(--transition);
}
.step-dot.active {
  background: var(--color-primary);
  width: 32px;
  border-radius: 100px;
}
.step-dot.completed { background: var(--color-success); }

.step-counter {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  font-weight: 500;
}

.form-step {
  animation: stepFadeIn 350ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes stepFadeIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ========== Forms ========== */
.form-group { margin-bottom: 18px; position: relative; }

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text);
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  font-size: 0.95rem;
  transition: all var(--transition);
  color: var(--color-text);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-100);
}

/* Validation states */
.form-group.valid .form-control {
  border-color: var(--color-success);
  padding-left: 36px;
}
.form-group.invalid .form-control {
  border-color: var(--color-error);
  padding-left: 36px;
}
.validation-icon {
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  opacity: 0;
  transition: opacity var(--transition);
}
.form-group.valid .validation-icon {
  background: var(--color-success);
  color: white;
  opacity: 1;
}
.form-group.invalid .validation-icon {
  background: var(--color-error);
  color: white;
  opacity: 1;
}
.validation-message {
  font-size: 0.8rem;
  margin-top: 4px;
  min-height: 1em;
  font-weight: 500;
}
.form-group.invalid .validation-message { color: var(--color-error); }
.form-group.valid .validation-message { color: var(--color-success); }

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.form-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text-light);
  font-size: 0.85rem;
  margin: 24px 0;
}

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

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 0.9rem;
  font-weight: 500;
}

.alert-error { background: var(--color-error-bg); color: var(--color-error); border: 1px solid var(--color-error-border); }
.alert-success { background: var(--color-success-bg); color: var(--color-success); border: 1px solid var(--color-success-border); }
.alert-info { background: var(--color-primary-50); color: var(--color-primary-dark); border: 1px solid var(--color-primary-100); }

[data-theme="dark"] .alert-info { color: var(--color-primary-light); }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--color-text);
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}

.step-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

/* ========== Dashboard ========== */
.dashboard { padding: 32px 0 80px; }

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.dashboard-header h1 { font-size: 2rem; margin-bottom: 4px; font-weight: 800; }
.dashboard-header .greeting { color: var(--color-text-muted); font-size: 1rem; font-weight: 400; }

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--color-surface);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.stat-card .stat-icon {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 36px;
  height: 36px;
  background: var(--color-primary-50);
  color: var(--color-primary);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
}
.stat-card .stat-icon svg { width: 20px; height: 20px; }

.stat-card .stat-value {
  font-family: 'Rubik', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 4px;
  letter-spacing: -0.03em;
}
.stat-card .stat-label-sm { color: var(--color-text-muted); font-size: 0.875rem; font-weight: 500; }

/* ========== Survey List ========== */
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.section-title h2 { font-size: 1.5rem; font-weight: 700; }

.survey-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.survey-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.survey-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}
.survey-card:hover::before { transform: scaleX(1); transform-origin: left; }
.survey-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.survey-card-emoji {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.survey-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 12px;
}

.survey-category {
  display: inline-block;
  padding: 4px 10px;
  background: var(--color-primary-50);
  color: var(--color-primary-dark);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}
[data-theme="dark"] .survey-category { color: var(--color-primary-light); }

.survey-card h3 { font-size: 1.15rem; margin-bottom: 8px; line-height: 1.3; font-weight: 700; }
.survey-card .description { color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: 16px; flex: 1; }

.survey-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-light);
  font-size: 0.85rem;
  color: var(--color-text-light);
}
.survey-card-meta .meta-item { display: flex; align-items: center; gap: 4px; }

.completed-badge {
  background: var(--color-success);
  color: white;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
}

/* ========== Typeform-Style Survey ========== */
.survey-fullscreen {
  min-height: 100vh;
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
}

.survey-topbar {
  padding: 16px 24px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--color-surface);
}

.survey-progress-wrap { flex: 1; max-width: 600px; margin: 0 24px; }

.progress-bar {
  height: 6px;
  background: var(--color-border-light);
  border-radius: 100px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  border-radius: 100px;
  transition: width 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.survey-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  position: relative;
}

.question-stage {
  width: 100%;
  max-width: 720px;
  animation: slideInUp 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

.question-counter-big {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.question-counter-big svg { width: 14px; height: 14px; }

.question-text-big {
  font-family: 'Rubik', sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.question-subtitle {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 36px;
  line-height: 1.5;
}

.question-required-mark { color: var(--color-accent); margin-right: 4px; }

.answer-area { margin-bottom: 32px; }

.choice-options-big { display: flex; flex-direction: column; gap: 12px; }

.choice-option-big {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--color-surface);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text);
}

.choice-option-big:hover {
  border-color: var(--color-primary);
  transform: translateX(-4px);
}

.choice-option-big.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-50);
}

.choice-letter {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--color-border);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-family: 'Rubik', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-muted);
  background: var(--color-surface);
  flex-shrink: 0;
  transition: all var(--transition);
}

.choice-option-big.selected .choice-letter {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.choice-option-big input[type="radio"], .choice-option-big input[type="checkbox"] { display: none; }

/* Yes/No */
.yesno-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.yesno-btn {
  padding: 32px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  color: var(--color-text);
}
.yesno-btn:hover { border-color: var(--color-primary); transform: translateY(-2px); }
.yesno-btn.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-50);
  color: var(--color-primary-dark);
}
[data-theme="dark"] .yesno-btn.selected { color: var(--color-primary-light); }
.yesno-btn.no.selected { border-color: var(--color-accent); background: var(--color-error-bg); color: var(--color-error); }

/* Scale */
.scale-container {
  background: var(--color-bg);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.scale-buttons { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; margin-bottom: 12px; }

.scale-btn {
  aspect-ratio: 1;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  font-weight: 600;
  font-family: 'Rubik', sans-serif;
  font-size: 1rem;
  transition: all var(--transition);
  display: grid;
  place-items: center;
  color: var(--color-text);
}
.scale-btn:hover { border-color: var(--color-primary); color: var(--color-primary); transform: scale(1.05); }
.scale-btn.selected { background: var(--color-primary); color: white; border-color: var(--color-primary); }

.scale-labels { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--color-text-muted); margin-top: 8px; }

/* NPS */
.nps-container {
  background: linear-gradient(90deg, #FEE2E2 0%, #FEF3C7 50%, #D1FAE5 100%);
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}
[data-theme="dark"] .nps-container {
  background: linear-gradient(90deg, rgba(220,38,38,0.2) 0%, rgba(245,158,11,0.2) 50%, rgba(16,185,129,0.2) 100%);
}

.nps-buttons { display: grid; grid-template-columns: repeat(11, 1fr); gap: 6px; margin-bottom: 12px; }

.nps-btn {
  aspect-ratio: 1;
  border: 2px solid var(--color-surface);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--color-surface) 70%, transparent);
  font-weight: 700;
  font-family: 'Rubik', sans-serif;
  font-size: 1rem;
  transition: all var(--transition);
  display: grid;
  place-items: center;
  color: var(--color-text);
}
.nps-btn:hover { transform: scale(1.1); background: var(--color-surface); box-shadow: var(--shadow); }
.nps-btn.selected { background: var(--color-primary); color: white; border-color: var(--color-primary); transform: scale(1.05); }

.nps-labels { display: flex; justify-content: space-between; font-size: 0.8rem; font-weight: 600; color: var(--color-text); }

/* Stars */
.stars-container {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 24px;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}
.star-btn {
  font-size: 3rem;
  color: var(--color-border);
  cursor: pointer;
  transition: all 150ms;
  line-height: 1;
}
.star-btn:hover, .star-btn.active { color: #F59E0B; transform: scale(1.15); }

/* Matrix */
.matrix-container {
  overflow-x: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.matrix-table { width: 100%; border-collapse: collapse; }
.matrix-table th, .matrix-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border-light);
  text-align: center;
}
.matrix-table th {
  background: var(--color-surface-2);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
}
.matrix-table th:first-child, .matrix-table td:first-child { text-align: right; font-weight: 500; }

.matrix-radio {
  width: 24px; height: 24px;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-block;
}
.matrix-radio:hover { border-color: var(--color-primary); }
.matrix-radio.selected {
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: inset 0 0 0 4px var(--color-surface);
}

/* Ranking */
.ranking-list { display: flex; flex-direction: column; gap: 8px; }
.ranking-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  cursor: grab;
  transition: all var(--transition);
}
.ranking-item:hover { border-color: var(--color-primary); }
.ranking-item.dragging { opacity: 0.5; cursor: grabbing; }
.ranking-item.drag-over { border-color: var(--color-primary); border-style: dashed; }

.ranking-num {
  font-family: 'Rubik', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-primary);
  min-width: 32px;
}
.ranking-handle { color: var(--color-text-light); margin-right: auto; cursor: grab; }

textarea.form-control { min-height: 140px; resize: vertical; font-family: 'Heebo', sans-serif; line-height: 1.6; }

.question-actions-big {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  gap: 12px;
  align-items: center;
}

.keyboard-hint {
  font-size: 0.8rem;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.kbd {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--color-text);
}

/* ========== Admin Panel ========== */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 70px); gap: 0; }

.admin-sidebar {
  background: var(--color-surface);
  border-left: 1px solid var(--color-border);
  padding: 24px 16px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--transition);
  margin-bottom: 4px;
}
.sidebar-link:hover { background: var(--color-border-light); color: var(--color-text); }
.sidebar-link.active { background: var(--color-primary-50); color: var(--color-primary-dark); }
[data-theme="dark"] .sidebar-link.active { color: var(--color-primary-light); }
.sidebar-link svg { width: 18px; height: 18px; }

.admin-content { padding: 32px; }

.question-editor {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}
.question-editor-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }

.q-num {
  background: var(--color-primary);
  color: white;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: 'Rubik', sans-serif;
}

.option-row { display: flex; gap: 8px; margin-bottom: 8px; }
.option-row input { flex: 1; }

/* ========== Results ========== */
.results-page { padding: 32px 0 80px; }

.results-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px; flex-wrap: wrap; gap: 16px;
}

.filter-bar {
  background: var(--color-surface);
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  margin-bottom: 24px;
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
}

.filter-bar select {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: 0.9rem;
  color: var(--color-text);
}

.results-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }

.result-card {
  background: var(--color-surface);
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.result-question {
  font-family: 'Rubik', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.4;
}

.result-bar-row { margin-bottom: 14px; }
.result-bar-label { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 0.95rem; }
.result-bar-label .name { font-weight: 500; }
.result-bar-label .count { color: var(--color-text-muted); font-size: 0.85rem; }

.result-bar { height: 28px; background: var(--color-border-light); border-radius: var(--radius-sm); overflow: hidden; }

.result-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; padding: 0 10px;
  color: white; font-weight: 600; font-size: 0.85rem;
  transition: width 600ms cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 40px;
}

.demographic-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.demo-stat { background: var(--color-bg); padding: 16px; border-radius: var(--radius); }
.demo-stat-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.demo-stat-value {
  font-family: 'Rubik', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
}

.text-responses-list { max-height: 400px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.text-response {
  background: var(--color-bg);
  padding: 12px 16px;
  border-radius: var(--radius);
  border-right: 3px solid var(--color-primary);
  font-size: 0.95rem;
  color: var(--color-text);
}

.chart-wrap { position: relative; height: 280px; margin-bottom: 20px; }
.chart-wrap-tall { height: 360px; }

.crosstab-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.crosstab-table th, .crosstab-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border-light);
  text-align: center;
  color: var(--color-text);
}
.crosstab-table th { background: var(--color-bg); font-weight: 600; position: sticky; top: 0; }
.crosstab-table th:first-child, .crosstab-table td:first-child { text-align: right; font-weight: 500; }

.crosstab-cell { position: relative; }
.crosstab-cell-bg {
  position: absolute; top: 0; right: 0; height: 100%;
  background: var(--color-primary-100);
  z-index: 0;
}
.crosstab-cell-text { position: relative; z-index: 1; font-weight: 600; }

/* ========== Loading ========== */
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-page { min-height: 80vh; display: grid; place-items: center; }

.empty-state {
  text-align: center;
  padding: 48px 24px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--color-border);
}
.empty-state h3 { margin-bottom: 8px; color: var(--color-text); }
.empty-state p { margin-bottom: 16px; }

/* ========== Animations ========== */
.fade-in { animation: fadeIn 400ms cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.stagger > * { opacity: 0; animation: fadeIn 400ms cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.stagger > *:nth-child(1) { animation-delay: 50ms; }
.stagger > *:nth-child(2) { animation-delay: 100ms; }
.stagger > *:nth-child(3) { animation-delay: 150ms; }
.stagger > *:nth-child(4) { animation-delay: 200ms; }
.stagger > *:nth-child(5) { animation-delay: 250ms; }
.stagger > *:nth-child(6) { animation-delay: 300ms; }

/* ========== Footer ========== */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  margin-top: 80px;
}

.footer-content {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 56px 0 48px; }
  .question-text-big { font-size: 1.4rem; }
  .scale-buttons, .nps-buttons { gap: 4px; }
  .scale-btn, .nps-btn { font-size: 0.85rem; }
  .nps-buttons { grid-template-columns: repeat(11, 1fr); }
  .auth-card { padding: 28px 24px; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-content { padding: 20px; }
  .dashboard-header { flex-direction: column; align-items: stretch; }
  .features-grid { grid-template-columns: 1fr; }
  .yesno-row { grid-template-columns: 1fr; }
  .stars-container { gap: 4px; }
  .star-btn { font-size: 2.25rem; }
  .survey-progress-wrap { margin: 0 12px; }
  .hero-preview-card { transform: none; }
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   V5 Premium Styles
============================================================ */

/* Mobile-only utilities */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
}

/* ========== Zero-Friction Hero ========== */
.zero-friction-hero {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  max-width: 720px;
  margin: 32px auto 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.zero-friction-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary-50) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
}

.zero-friction-hero > * { position: relative; z-index: 1; }

.zf-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-accent);
  color: white;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.zf-question {
  font-family: 'Rubik', sans-serif;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 24px;
  color: var(--color-text);
}

.zf-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
  padding: 4px;
}

.zf-option {
  padding: 14px 16px;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 150ms;
  text-align: center;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text);
}

.zf-option:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-50);
  transform: translateY(-2px);
}

.zf-option.selected {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: white;
  transform: scale(1.02);
}

.zf-cta {
  margin-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ========== Social Auth Buttons ========== */
.social-auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition);
  width: 100%;
}

.btn-social:hover {
  border-color: var(--color-text);
  background: var(--color-surface-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-social svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-google { /* Special Google brand styling */ }
.btn-apple { background: #000; color: #fff; border-color: #000; }
.btn-apple:hover { background: #1a1a1a; border-color: #1a1a1a; }
[data-theme="dark"] .btn-apple { background: #fff; color: #000; border-color: #fff; }
[data-theme="dark"] .btn-apple:hover { background: #f1f5f9; }

/* Magic link mode visual */
.magic-link-input {
  position: relative;
  margin-bottom: 16px;
}

.magic-link-info {
  background: var(--color-primary-50);
  color: var(--color-primary-dark);
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 16px;
  border: 1px solid var(--color-primary-100);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
[data-theme="dark"] .magic-link-info { color: var(--color-primary-light); }

.magic-link-info svg { flex-shrink: 0; margin-top: 2px; }

/* Magic link sent confirmation */
.magic-sent {
  text-align: center;
  padding: 32px 20px;
  background: var(--color-success-bg);
  border: 1px solid var(--color-success-border);
  border-radius: var(--radius-lg);
}
.magic-sent .icon {
  width: 64px;
  height: 64px;
  background: var(--color-success);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  color: white;
  font-size: 2rem;
}

/* ========== Progressive Profiling Modal ========== */
.profiling-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  animation: fadeIn 300ms;
}

.profiling-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  position: relative;
  animation: slideInUp 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.profiling-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
  text-align: center;
}

.profiling-question {
  font-family: 'Rubik', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  line-height: 1.3;
}

.profiling-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.profiling-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.profiling-option {
  padding: 14px 18px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 150ms;
  text-align: right;
  font-weight: 500;
  color: var(--color-text);
}
.profiling-option:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-50);
}

.profiling-skip {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-light);
  cursor: pointer;
  margin-top: 12px;
}
.profiling-skip:hover { color: var(--color-text-muted); }

/* ========== Storytelling Stats ========== */
.story-stat {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  padding: 24px;
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.story-stat::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.story-stat-text {
  font-family: 'Rubik', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  position: relative;
}

.story-stat-share {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.btn-share {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}
.btn-share:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-1px);
}

/* ========== Native Mobile - Thumb Zone ========== */
@media (max-width: 768px) {
  .question-actions-big {
    position: sticky;
    bottom: 0;
    background: var(--color-surface);
    padding: 14px 0 max(14px, env(safe-area-inset-bottom));
    margin: 24px -24px -40px;
    padding-left: 24px;
    padding-right: 24px;
    border-top: 1px solid var(--color-border);
    z-index: 10;
  }
  .question-actions-big .btn { min-height: 48px; min-width: 100px; }
  .choice-option-big {
    min-height: 56px;
    padding: 14px 16px;
    font-size: 1rem;
  }
}

/* ========== Instant Feedback (V check before "Next") ========== */
.choice-option-big.selected::after {
  content: '✓';
  position: absolute;
  left: 16px;
  width: 24px;
  height: 24px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  animation: checkPop 250ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.choice-option-big {
  position: relative;
}

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

/* ========== AI Survey Builder ========== */
.ai-builder {
  background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: white;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.ai-builder::before {
  content: '✨';
  position: absolute;
  top: 20px; left: 20px;
  font-size: 4rem;
  opacity: 0.2;
}

.ai-builder h3 {
  color: white;
  margin-bottom: 8px;
}

.ai-builder p { color: rgba(255,255,255,0.9); margin-bottom: 16px; }

.ai-input-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ai-input {
  flex: 1;
  min-width: 200px;
  padding: 12px 14px;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  background: rgba(255,255,255,0.95);
  color: var(--color-text);
}

.ai-input:focus { outline: 2px solid white; }

.btn-ai {
  background: white;
  color: #6366F1;
  font-weight: 700;
  border-radius: var(--radius);
  padding: 12px 20px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-ai:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.btn-ai:disabled { opacity: 0.6; cursor: wait; }

/* AI Loading */
.ai-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: white;
  font-size: 0.9rem;
}

.ai-dots {
  display: inline-flex;
  gap: 4px;
}
.ai-dots span {
  width: 8px; height: 8px;
  background: white;
  border-radius: 50%;
  animation: ai-bounce 1.4s infinite ease-in-out both;
}
.ai-dots span:nth-child(2) { animation-delay: 0.16s; }
.ai-dots span:nth-child(3) { animation-delay: 0.32s; }

@keyframes ai-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* ========== Slide transitions for survey ========== */
.question-stage.slide-out-left {
  animation: slideOutLeft 350ms cubic-bezier(0.4, 0, 1, 1) forwards;
}
.question-stage.slide-out-right {
  animation: slideOutRight 350ms cubic-bezier(0.4, 0, 1, 1) forwards;
}
@keyframes slideOutLeft {
  to { opacity: 0; transform: translateX(-60px); }
}
@keyframes slideOutRight {
  to { opacity: 0; transform: translateX(60px); }
}

/* ============================================================
   V6 - Premium Results Page
============================================================ */

/* ========== Live indicator ========== */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--color-error-bg);
  color: var(--color-error);
  border: 1px solid var(--color-error-border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.live-dot {
  width: 8px; height: 8px;
  background: var(--color-error);
  border-radius: 50%;
  animation: live-pulse 1.5s ease-in-out infinite;
}

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

/* ========== Animated bar fill (grow from zero) ========== */
@keyframes grow-bar {
  from { width: 0%; }
}

.result-bar-fill {
  animation: grow-bar 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========== Bar update flash (when new data arrives via realtime) ========== */
@keyframes bar-flash {
  0% { background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%); }
  50% { background: linear-gradient(90deg, #F59E0B 0%, #FCD34D 100%); }
  100% { background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%); }
}

.result-bar-fill.flash {
  animation: bar-flash 800ms ease-out;
}

/* "+1" pop indicator on counter when new response arrives */
.counter-pop {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--color-success);
  color: white;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  animation: counter-pop 1.5s ease-out forwards;
  pointer-events: none;
}

@keyframes counter-pop {
  0% { opacity: 0; transform: translateY(0) scale(0.5); }
  20% { opacity: 1; transform: translateY(-12px) scale(1); }
  80% { opacity: 1; transform: translateY(-12px) scale(1); }
  100% { opacity: 0; transform: translateY(-24px) scale(0.8); }
}

/* ========== Demographic Comparison Cards ========== */
.demo-comparison-card {
  background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
  color: white;
  padding: 24px;
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.demo-comparison-card::before {
  content: '';
  position: absolute;
  top: -30%; right: -20%;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.demo-comparison-card::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -20%;
  width: 150px; height: 150px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.demo-comparison-text {
  font-family: 'Rubik', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

.demo-comparison-pct {
  font-size: 3rem;
  font-weight: 800;
  font-family: 'Rubik', sans-serif;
  display: block;
  line-height: 1;
  margin-bottom: 4px;
  background: linear-gradient(180deg, #fff 0%, #FCD34D 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.demo-comparison-cta {
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

/* ========== Viral Certificate ========== */
.viral-cert-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  animation: fadeIn 300ms;
  overflow-y: auto;
}

.viral-cert-content {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 540px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  animation: slideInUp 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.viral-cert-content h2 {
  text-align: center;
  margin-bottom: 8px;
}
.viral-cert-content p.subtitle {
  text-align: center;
  margin-bottom: 24px;
  color: var(--color-text-muted);
}

#viral-cert-canvas {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
  margin: 0 auto;
}

.viral-cert-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.viral-cert-actions .btn-share {
  background: var(--color-primary);
  color: white;
  border: 1px solid var(--color-primary);
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}
.viral-cert-actions .btn-share:hover { background: var(--color-primary-dark); transform: translateY(-1px); }

.viral-cert-actions .btn-share-wa { background: #25D366; border-color: #25D366; }
.viral-cert-actions .btn-share-wa:hover { background: #1DA851; border-color: #1DA851; }

.viral-cert-actions .btn-share-x { background: #000; border-color: #000; }
.viral-cert-actions .btn-share-x:hover { background: #1a1a1a; }

.viral-cert-close {
  position: absolute;
  top: 12px;
  left: 12px;
  background: none;
  color: var(--color-text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}
.viral-cert-close:hover { background: var(--color-surface-2); color: var(--color-text); }

/* ========== Update toast (live notification) ========== */
.live-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: var(--color-text);
  color: var(--color-surface);
  padding: 12px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  z-index: 200;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastSlide 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastSlide {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.live-toast.exiting {
  animation: toastSlideOut 300ms ease-out forwards;
}

@keyframes toastSlideOut {
  to { transform: translateY(120%); opacity: 0; }
}

.live-toast .live-dot { background: #4ADE80; }

/* Total responses counter container - relative for pop effect */
.total-counter-wrap {
  position: relative;
  display: inline-block;
}

.total-counter-wrap .num {
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.total-counter-wrap .num.bumped {
  transform: scale(1.15);
}

/* ============================================================
   V7 - Accessibility, Cookies, Legal
============================================================ */

/* ========== Accessibility Menu ========== */
.a11y-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  border: 3px solid white;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  z-index: 90;
  display: grid;
  place-items: center;
  transition: all var(--transition);
}
.a11y-trigger:hover { transform: scale(1.1); background: var(--color-primary-dark); }
.a11y-trigger:focus { outline: 3px solid var(--color-warning); outline-offset: 3px; }
.a11y-trigger svg { width: 26px; height: 26px; }

@media (max-width: 768px) {
  .a11y-trigger {
    bottom: 16px;
    right: 16px;
    width: 46px;
    height: 46px;
  }
  .a11y-trigger svg { width: 22px; height: 22px; }
}

.a11y-panel {
  position: fixed;
  bottom: 88px;
  right: 24px;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-xl);
  z-index: 91;
  max-height: 80vh;
  overflow-y: auto;
}

.a11y-panel h3 {
  margin-bottom: 16px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.a11y-section { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--color-border-light); }
.a11y-section:last-child { border-bottom: none; padding-bottom: 0; }
.a11y-section h4 { font-size: 0.85rem; font-weight: 600; color: var(--color-text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; }

.a11y-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.a11y-btn {
  padding: 10px;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all var(--transition);
  text-align: center;
}
.a11y-btn:hover { border-color: var(--color-primary); }
.a11y-btn.active { background: var(--color-primary); color: white; border-color: var(--color-primary); }

.a11y-btn-full {
  width: 100%;
  padding: 10px;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.a11y-btn-full:hover { border-color: var(--color-primary); }
.a11y-btn-full.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}
.a11y-btn-full .check {
  width: 18px; height: 18px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.a11y-btn-full.active .check { background: white; color: var(--color-primary); }

.a11y-reset {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--color-error);
  background: transparent;
  color: var(--color-error);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 8px;
}
.a11y-reset:hover { background: var(--color-error-bg); }

/* ========== A11Y Modes ========== */

/* גודל גופן */
[data-a11y-font="large"] {
  font-size: 18px;
}
[data-a11y-font="xlarge"] {
  font-size: 21px;
}

/* ניגודיות גבוהה (light mode) */
[data-a11y-contrast="high"] {
  --color-text: #000000;
  --color-text-muted: #1a1a1a;
  --color-text-light: #2a2a2a;
  --color-bg: #FFFFFF;
  --color-surface: #FFFFFF;
  --color-border: #000000;
  --color-border-light: #555555;
  --color-primary: #0000EE;
  --color-primary-dark: #000099;
}
[data-a11y-contrast="high"] .navbar { background: #FFFFFF !important; }
[data-a11y-contrast="high"] * { text-shadow: none !important; }
[data-a11y-contrast="high"] img:not(.logo img) { filter: contrast(1.2); }

/* ניגודיות הפוכה (לבן על שחור) */
[data-a11y-contrast="inverted"] {
  --color-text: #FFFFFF;
  --color-text-muted: #E0E0E0;
  --color-text-light: #C0C0C0;
  --color-bg: #000000;
  --color-surface: #0a0a0a;
  --color-border: #FFFFFF;
  --color-border-light: #555555;
  --color-primary: #FFFF00;
  --color-primary-dark: #FFCC00;
  --color-primary-50: #1a1a00;
  --color-primary-100: #333300;
}

/* ביטול הנפשות */
[data-a11y-motion="off"] *,
[data-a11y-motion="off"] *::before,
[data-a11y-motion="off"] *::after {
  animation-duration: 0.001s !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001s !important;
}

/* הדגשת קישורים */
[data-a11y-links="highlight"] a {
  text-decoration: underline !important;
  text-underline-offset: 3px;
  font-weight: 600 !important;
}
[data-a11y-links="highlight"] a:hover {
  background: var(--color-warning-bg);
}

/* פוקוס מודגש (לניווט במקלדת) */
[data-a11y-focus="enhanced"] *:focus,
[data-a11y-focus="enhanced"] *:focus-visible {
  outline: 4px solid var(--color-warning) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.3) !important;
}

/* Skip to content link (קפיצה לתוכן הראשי) */
.skip-link {
  position: absolute;
  top: -100px;
  right: 12px;
  background: var(--color-primary);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  z-index: 10000;
  text-decoration: none;
  transition: top 200ms;
}
.skip-link:focus {
  top: 12px;
  outline: 3px solid var(--color-warning);
  color: white;
}

/* ========== Cookie Consent Banner ========== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-top: 2px solid var(--color-primary);
  padding: 20px 24px;
  z-index: 95;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  animation: slideUp 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  min-width: 280px;
  font-size: 0.95rem;
  color: var(--color-text);
}

.cookie-banner-text strong { color: var(--color-text); }

.cookie-banner-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .cookie-banner { padding: 16px; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1; }
}

/* Cookie preferences modal */
.cookie-prefs-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  animation: fadeIn 300ms;
  overflow-y: auto;
}

.cookie-prefs-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 540px;
  width: 100%;
  box-shadow: var(--shadow-xl);
}

.cookie-prefs-card h2 { margin-bottom: 8px; }
.cookie-prefs-card .subtitle { color: var(--color-text-muted); margin-bottom: 24px; }

.cookie-category {
  background: var(--color-surface-2);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--color-border);
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.cookie-category-header strong { font-size: 1rem; }
.cookie-category-header .required-badge {
  background: var(--color-success);
  color: white;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
}

.cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--color-border);
  border-radius: 100px;
  cursor: pointer;
  transition: background var(--transition);
}
.cookie-toggle::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  top: 3px;
  right: 3px;
  transition: all var(--transition);
}
.cookie-toggle.on { background: var(--color-primary); }
.cookie-toggle.on::after { right: 23px; }
.cookie-toggle.disabled { opacity: 0.5; cursor: not-allowed; }

.cookie-category-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ========== Legal Pages ========== */
.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  line-height: 1.7;
}

.legal-page h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.legal-page .updated {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.legal-page h2 {
  font-size: 1.4rem;
  margin: 32px 0 12px;
  padding-top: 16px;
  font-weight: 700;
}

.legal-page h3 {
  font-size: 1.1rem;
  margin: 20px 0 8px;
  font-weight: 600;
}

.legal-page p {
  margin-bottom: 12px;
  color: var(--color-text);
}

.legal-page ul, .legal-page ol {
  margin: 12px 0 12px 0;
  padding-right: 28px;
}

.legal-page li {
  margin-bottom: 8px;
  color: var(--color-text);
}

.legal-page strong { font-weight: 700; color: var(--color-text); }

.legal-toc {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 24px 0;
}

.legal-toc strong { display: block; margin-bottom: 8px; }
.legal-toc ol { padding-right: 20px; margin: 0; }
.legal-toc a { color: var(--color-primary); }

/* 404 page */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 24px;
}
.error-code {
  font-family: 'Rubik', sans-serif;
  font-size: clamp(6rem, 20vw, 10rem);
  font-weight: 900;
  color: var(--color-primary);
  line-height: 0.9;
  margin-bottom: 16px;
  letter-spacing: -0.05em;
}

/* ============================================================
   V8 - UI/UX Refinements
============================================================ */

/* ========== Mobile fix - keep a11y trigger from blocking content ========== */
@media (max-width: 768px) {
  /* Push survey actions up to avoid a11y trigger */
  .survey-fullscreen .question-actions-big {
    padding-bottom: max(70px, env(safe-area-inset-bottom)) !important;
  }
  /* Cookie banner needs to push up too when active */
  .cookie-banner ~ .a11y-trigger {
    bottom: 130px !important;
  }
}

/* ========== Animated Counter ========== */
.counter-animated {
  font-variant-numeric: tabular-nums;
  display: inline-block;
}

/* ========== Dark Mode Legal Pages Fix ========== */
[data-theme="dark"] .legal-page {
  color: var(--color-text);
}
[data-theme="dark"] .legal-page p,
[data-theme="dark"] .legal-page li {
  color: #E2E8F0; /* Lighter for readability */
}
[data-theme="dark"] .legal-page h2,
[data-theme="dark"] .legal-page h3 {
  color: #F8FAFC;
}
[data-theme="dark"] .legal-page .updated {
  color: #94A3B8;
}
[data-theme="dark"] .legal-toc {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.3);
}
[data-theme="dark"] .legal-toc a {
  color: #60A5FA;
}
[data-theme="dark"] .legal-page strong {
  color: #F8FAFC;
}

/* ========== Thank You Screen with Animated Checkmark ========== */
.thank-you-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px;
  animation: fadeIn 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.thank-you-checkmark {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--color-success);
  display: grid;
  place-items: center;
  margin: 0 auto 32px;
  animation: checkmark-bounce 700ms cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4);
}

@keyframes checkmark-bounce {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.thank-you-checkmark svg {
  width: 64px;
  height: 64px;
  color: white;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: draw-check 800ms ease-out 400ms forwards;
}

@keyframes draw-check {
  to { stroke-dashoffset: 0; }
}

.thank-you-checkmark::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 3px solid var(--color-success);
  opacity: 0;
  animation: ripple 1.4s ease-out 600ms infinite;
}

@keyframes ripple {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

.thank-you-title {
  font-family: 'Rubik', sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 12px;
  animation: fadeInUp 600ms cubic-bezier(0.16, 1, 0.3, 1) 600ms both;
}

.thank-you-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  animation: fadeInUp 600ms cubic-bezier(0.16, 1, 0.3, 1) 750ms both;
  max-width: 480px;
}

.thank-you-actions {
  animation: fadeInUp 600ms cubic-bezier(0.16, 1, 0.3, 1) 900ms both;
}

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

/* ========== FAQ Section ========== */
.faq-section {
  padding: 80px 0;
  background: var(--color-surface);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item:hover {
  border-color: var(--color-primary);
}

.faq-question {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-text);
  user-select: none;
  background: transparent;
  border: none;
  width: 100%;
  text-align: right;
  font-family: inherit;
}

.faq-question:hover {
  background: var(--color-surface-2);
}

.faq-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--color-primary-50);
  color: var(--color-primary);
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--color-primary);
  color: white;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 24px 24px;
  color: var(--color-text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.faq-answer-inner a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ========== Validation Hebrew Styles ========== */
.error-msg-he {
  color: var(--color-error);
  font-size: 0.85rem;
  margin-top: 6px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ========== Auto-save indicator ========== */
.autosave-indicator {
  position: fixed;
  bottom: 90px;
  right: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  box-shadow: var(--shadow);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transition: opacity var(--transition);
}

.autosave-indicator.show { opacity: 1; }

.autosave-indicator.saved {
  color: var(--color-success);
}

@media (max-width: 768px) {
  .autosave-indicator {
    bottom: 80px;
    right: 12px;
    font-size: 0.75rem;
  }
}

/* ========== Try Now Buttons in Feature Cards ========== */
.feature-card-cta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-light);
}

.feature-card-cta a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap var(--transition);
}
.feature-card-cta a:hover {
  gap: 8px;
}

/* ========== Language Switcher (V9.6) ========== */
.lang-switcher {
  position: relative;
  display: inline-block;
}

.lang-btn {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 6px 12px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.lang-btn:hover {
  background: var(--color-surface-2);
  border-color: var(--color-primary);
}

.lang-flag {
  font-size: 1.1rem;
  line-height: 1;
}

.lang-globe {
  color: var(--color-primary);
  flex-shrink: 0;
}

.lang-name {
  font-weight: 500;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  z-index: 1000;
  min-width: 160px;
}

[dir="ltr"] .lang-menu {
  right: auto;
  left: 0;
}

.lang-menu button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: transparent;
  border: none;
  text-align: right;
  font-size: 0.9rem;
  color: var(--color-text);
  cursor: pointer;
  transition: background var(--transition);
  font-family: inherit;
}

[dir="ltr"] .lang-menu button {
  text-align: left;
}

.lang-menu button:hover {
  background: var(--color-surface-2);
}

.lang-menu button.active {
  background: var(--color-primary);
  color: white;
  font-weight: 600;
}

/* RTL adjustments for Arabic - same as Hebrew */
html[lang="ar"] body {
  font-family: 'Cairo', 'Tajawal', 'Heebo', sans-serif;
}

/* LTR for English */
html[lang="en"][dir="ltr"] body {
  font-family: 'Inter', 'Heebo', sans-serif;
}

/* Mobile language switcher */
@media (max-width: 768px) {
  .lang-btn .lang-name {
    display: none;
  }
  .lang-btn {
    padding: 6px 8px;
  }
}

/* ============================================================ */
/* Contact Section + Professional Footer (V9.7)                 */
/* ============================================================ */

.contact-section {
  background: linear-gradient(135deg, var(--color-primary-50) 0%, var(--color-surface-2) 100%);
  padding: 80px 24px;
  text-align: center;
  border-top: 1px solid var(--color-border);
}

[data-theme="dark"] .contact-section {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, var(--color-surface) 100%);
}

.contact-section .contact-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.contact-section h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.contact-section .contact-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 540px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 32px 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(29, 78, 216, 0.12);
  border-color: var(--color-primary);
}

.contact-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--color-primary-50);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.contact-card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
}

.contact-card-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-card-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  word-break: break-word;
}

.contact-card.contact-card-link .contact-card-value {
  color: var(--color-primary);
}

/* ============= Professional Footer (V9.7) ============= */

.footer-pro {
  background: #0B1020;
  color: #B4BACC;
  padding: 64px 24px 28px;
  margin-top: 0;
}

.footer-pro .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  max-width: 1200px;
  margin: 0 auto 48px;
}

.footer-brand {
  max-width: 360px;
}

.footer-brand img {
  height: 56px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(1.05);
}

.footer-brand p {
  color: #B4BACC;
  line-height: 1.65;
  font-size: 0.95rem;
  margin: 0;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 18px;
  letter-spacing: 0.01em;
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: #B4BACC;
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease, padding 0.2s ease;
  display: inline-block;
}

.footer-col a:hover {
  color: #FFFFFF;
}

[dir="rtl"] .footer-col a:hover {
  padding-right: 4px;
}

[dir="ltr"] .footer-col a:hover {
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: #6E7491;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .footer-pro .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }
  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 560px) {
  .footer-pro .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contact-section {
    padding: 56px 20px;
  }
  .contact-card {
    padding: 24px 20px;
  }
}
