/* ═══════════════════════════════════════════
   Platform Digital HARATI — Design System
   ═══════════════════════════════════════════ */

:root {
  /* Primary Palette */
  --medical-blue: #1565C0;
  --medical-blue-dark: #0D47A1;
  --medical-blue-light: #42A5F5;
  --clean-cyan: #00ACC1;
  --clean-cyan-light: #26C6DA;
  --soft-green: #43A047;
  --soft-green-light: #66BB6A;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0D47A1 0%, #00838F 50%, #00695C 100%);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(240,248,255,0.9));
  --gradient-btn: linear-gradient(135deg, #1565C0 0%, #00838F 100%);
  --gradient-btn-hover: linear-gradient(135deg, #0D47A1 0%, #006064 100%);

  /* Risk Colors */
  --risk-red: #E53935;
  --risk-red-bg: #FFEBEE;
  --risk-red-border: #FFCDD2;
  --risk-yellow: #F9A825;
  --risk-yellow-bg: #FFF8E1;
  --risk-yellow-border: #FFECB3;
  --risk-green: #43A047;
  --risk-green-bg: #E8F5E9;
  --risk-green-border: #C8E6C9;

  /* Neutrals */
  --bg-body: #F0F7FF;
  --bg-card: #FFFFFF;
  --text-primary: #1A2332;
  --text-secondary: #546E7A;
  --text-muted: #90A4AE;
  --border-light: #E0E8F0;

  /* Sizing */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(13, 71, 161, 0.06);
  --shadow-md: 0 4px 20px rgba(13, 71, 161, 0.1);
  --shadow-lg: 0 8px 40px rgba(13, 71, 161, 0.15);
  --shadow-glow: 0 4px 30px rgba(21, 101, 192, 0.3);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ═══════════════════════════
   Reset & Base
   ═══════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app {
  min-height: 100vh;
  position: relative;
}

/* ═══════════════════════════
   Screen Container
   ═══════════════════════════ */
.screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.screen-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

/* ═══════════════════════════
   Landing Page
   ═══════════════════════════ */
.landing-screen {
  background: var(--gradient-primary);
  position: relative;
}

.landing-screen::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,188,212,0.15) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite;
}

.landing-screen::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -15%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(102,187,106,0.12) 0%, transparent 70%);
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.landing-logo-container {
  margin-bottom: 20px;
  animation: fadeInScale 0.8s ease-out;
}

.landing-logo {
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.landing-logo svg {
  width: 56px;
  height: 56px;
  color: #fff;
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.landing-badge svg {
  width: 14px;
  height: 14px;
}

.landing-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  text-align: center;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.landing-title span {
  display: block;
  background: linear-gradient(90deg, #80DEEA, #A5D6A7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  text-align: center;
  max-width: 320px;
  line-height: 1.6;
  margin-bottom: 48px;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.landing-cta {
  animation: fadeInUp 0.6s ease-out 0.5s both;
  width: 100%;
  max-width: 320px;
}

.landing-footer {
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.6s ease-out 0.6s both;
  text-align: center;
  padding-bottom: 32px;
}

.landing-footer a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.landing-footer a:hover {
  color: rgba(255,255,255,0.9);
}

.landing-footer a svg {
  width: 16px;
  height: 16px;
}

/* ═══════════════════════════
   Buttons
   ═══════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--gradient-btn);
  color: #fff;
  box-shadow: var(--shadow-glow);
  width: 100%;
}

.btn-primary:hover {
  background: var(--gradient-btn-hover);
  box-shadow: 0 6px 35px rgba(21, 101, 192, 0.4);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-white {
  background: #fff;
  color: var(--medical-blue);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.btn-white:hover {
  background: #F5F9FF;
  box-shadow: 0 10px 45px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

.btn-white svg {
  width: 22px;
  height: 22px;
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 2px solid var(--border-light);
  padding: 14px 24px;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-outline:hover {
  border-color: var(--medical-blue-light);
  color: var(--medical-blue);
  background: rgba(21, 101, 192, 0.04);
}

.btn-answer {
  width: 100%;
  padding: 20px 28px;
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.btn-answer:hover {
  border-color: var(--medical-blue-light);
  background: #F0F7FF;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-answer.selected {
  border-color: var(--medical-blue);
  background: linear-gradient(135deg, #E3F2FD, #E0F7FA);
  color: var(--medical-blue-dark);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.15), var(--shadow-md);
}

.btn-answer.selected .btn-answer-check {
  opacity: 1;
  transform: scale(1);
}

.btn-answer-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--medical-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: all var(--transition-spring);
  margin-left: auto;
}

.btn-answer-check svg {
  width: 14px;
  height: 14px;
}

.btn-answer-content {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.btn-answer-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-answer-icon.yes-icon {
  background: #FFEBEE;
  color: var(--risk-red);
}

.btn-answer-icon.no-icon {
  background: #E8F5E9;
  color: var(--risk-green);
}

.btn-answer-icon svg {
  width: 22px;
  height: 22px;
}

/* ═══════════════════════════
   Progress Bar
   ═══════════════════════════ */
.progress-header {
  width: 100%;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.progress-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.progress-back-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--bg-body);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
  -webkit-tap-highlight-color: transparent;
}

.progress-back-btn:hover {
  background: #E3F2FD;
  color: var(--medical-blue);
}

.progress-back-btn svg {
  width: 20px;
  height: 20px;
}

.progress-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.progress-bar-track {
  width: 100%;
  height: 6px;
  background: #E8EFF5;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--gradient-btn);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4));
  border-radius: var(--radius-full);
}

/* ═══════════════════════════
   Form Elements
   ═══════════════════════════ */
.form-group {
  width: 100%;
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-input, .form-select {
  width: 100%;
  padding: 16px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus, .form-select:focus {
  border-color: var(--medical-blue-light);
  box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.1);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2390A4AE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
}

/* ═══════════════════════════
   Card
   ═══════════════════════════ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 32px 24px;
  width: 100%;
}

.card-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.card-icon svg {
  width: 36px;
  height: 36px;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 8px;
}

/* ═══════════════════════════
   Data Form Screen
   ═══════════════════════════ */
.data-form-screen {
  background: var(--bg-body);
}

.data-form-screen .screen-content {
  justify-content: flex-start;
  padding-top: 40px;
}

.data-form-header {
  text-align: center;
  margin-bottom: 36px;
}

.data-form-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #E3F2FD, #E0F7FA);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--medical-blue);
}

.data-form-icon svg {
  width: 32px;
  height: 32px;
}

.data-form-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.data-form-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.data-form-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 28px 24px;
  width: 100%;
}

/* ═══════════════════════════
   Question Screen
   ═══════════════════════════ */
.question-screen {
  background: var(--bg-body);
}

.question-screen .screen-content {
  justify-content: flex-start;
  padding-top: 32px;
}

.question-number {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #E3F2FD, #E0F7FA);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--medical-blue);
  margin-bottom: 20px;
}

.question-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.5;
  margin-bottom: 40px;
  max-width: 380px;
}

.answer-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.question-nav {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-top: 32px;
}

.question-nav .btn {
  flex: 1;
}

/* ═══════════════════════════
   Result Screen
   ═══════════════════════════ */
.result-screen {
  background: var(--bg-body);
}

.result-screen .screen-content {
  justify-content: center;
}

.result-card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 36px 24px;
  width: 100%;
  text-align: center;
  border: 2px solid transparent;
}

.result-card.risk-high {
  background: var(--risk-red-bg);
  border-color: var(--risk-red-border);
}

.result-card.risk-high .result-icon {
  background: #FFCDD2;
  color: var(--risk-red);
}

.result-card.risk-high .result-level {
  color: var(--risk-red);
}

.result-card.risk-medium {
  background: var(--risk-yellow-bg);
  border-color: var(--risk-yellow-border);
}

.result-card.risk-medium .result-icon {
  background: #FFECB3;
  color: var(--risk-yellow);
}

.result-card.risk-medium .result-level {
  color: #E65100;
}

.result-card.risk-low {
  background: var(--risk-green-bg);
  border-color: var(--risk-green-border);
}

.result-card.risk-low .result-icon {
  background: #C8E6C9;
  color: var(--risk-green);
}

.result-card.risk-low .result-level {
  color: var(--risk-green);
}

.result-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.result-icon svg {
  width: 40px;
  height: 40px;
}

.result-level {
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.result-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 28px;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 12px;
}

/* ═══════════════════════════
   Loading Spinner
   ═══════════════════════════ */
.loading-screen {
  background: var(--bg-body);
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.spinner {
  width: 64px;
  height: 64px;
  border: 4px solid #E8EFF5;
  border-top-color: var(--medical-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.loading-dots::after {
  content: '';
  animation: dots 1.5s infinite;
}

@keyframes dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}

/* ═══════════════════════════
   Dashboard
   ═══════════════════════════ */
.dashboard-screen {
  background: var(--bg-body);
  min-height: 100vh;
}

.dashboard-header {
  background: var(--gradient-primary);
  padding: 24px 20px;
  color: #fff;
}

.dashboard-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.dashboard-back-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.dashboard-back-btn:hover {
  background: rgba(255,255,255,0.25);
}

.dashboard-back-btn svg {
  width: 20px;
  height: 20px;
}

.dashboard-title {
  font-size: 1.3rem;
  font-weight: 800;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  text-align: center;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.8;
}

.dashboard-body {
  padding: 20px;
}

.dashboard-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-section-title svg {
  width: 18px;
  height: 18px;
  color: var(--medical-blue);
}

.dashboard-login-card {
  max-width: 400px;
  margin: 80px auto;
  padding: 36px 24px;
}

.submission-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.submission-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: box-shadow var(--transition-fast);
  border-left: 4px solid transparent;
}

.submission-card:hover {
  box-shadow: var(--shadow-md);
}

.submission-card.risk-high-row {
  border-left-color: var(--risk-red);
  background: linear-gradient(90deg, #FFF5F5, var(--bg-card));
}

.submission-card.risk-medium-row {
  border-left-color: var(--risk-yellow);
  background: linear-gradient(90deg, #FFFDF5, var(--bg-card));
}

.submission-card.risk-low-row {
  border-left-color: var(--risk-green);
}

.submission-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.submission-card.risk-high-row .submission-avatar {
  background: #FFCDD2;
  color: var(--risk-red);
}

.submission-card.risk-medium-row .submission-avatar {
  background: #FFECB3;
  color: #E65100;
}

.submission-card.risk-low-row .submission-avatar {
  background: #C8E6C9;
  color: var(--risk-green);
}

.submission-info {
  flex: 1;
  min-width: 0;
}

.submission-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.submission-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.submission-badge {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-high {
  background: var(--risk-red-bg);
  color: var(--risk-red);
}

.badge-medium {
  background: var(--risk-yellow-bg);
  color: #E65100;
}

.badge-low {
  background: var(--risk-green-bg);
  color: var(--risk-green);
}

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}

.empty-state svg {
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  opacity: 0.4;
}

.empty-state p {
  font-size: 0.9rem;
}

/* ═══════════════════════════
   Slide Animation Classes
   ═══════════════════════════ */
.slide-enter {
  opacity: 0;
  transform: translateX(60px);
}

.slide-enter-active {
  opacity: 1;
  transform: translateX(0);
  transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-exit {
  opacity: 1;
  transform: translateX(0);
}

.slide-exit-active {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-back-enter {
  opacity: 0;
  transform: translateX(-60px);
}

.slide-back-enter-active {
  opacity: 1;
  transform: translateX(0);
  transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-back-exit-active {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════
   Fade / Scale Keyframes
   ═══════════════════════════ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out both;
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s ease-out both;
}

.animate-pop-in {
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Delay helpers */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* ═══════════════════════════
   Responsive
   ═══════════════════════════ */
@media (min-width: 768px) {
  .landing-title {
    font-size: 2.8rem;
  }
  .screen-content {
    max-width: 520px;
  }
}
