@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-main: #F3F0FA;
  --bg-secondary: #FFFFFF;
  --bg-gradient: linear-gradient(180deg, #EDE7F6 0%, #E8F4FD 100%);
  --primary: #6C63FF;
  --primary-dark: #5A52E0;
  --primary-gradient: linear-gradient(135deg, #7C6FEA, #6366F1);
  --accent-light: #EEEAFF;
  --text-main: #1A1A2E;
  --text-secondary: #4A5568;
  --text-muted: #9CA3AF;
  --danger: #EF4444;
  --success: #10B981;
  --gold: #FBBF24;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  margin: 0; padding: 0; box-sizing: border-box;
  user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  scrollbar-width: none;
}
::-webkit-scrollbar { display: none; }
input, textarea, select { user-select: auto; -webkit-user-select: auto; }

body {
  font-family: var(--font);
  background: var(--bg-main);
  color: var(--text-main);
  overflow: hidden;
  height: 100vh; width: 100vw;
  position: relative;
}

/* ====== SPLASH (21st.dev style) ====== */
#splash {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a0533 0%, #2d1b69 30%, #4c1d95 60%, #1a0533 100%);
  background-size: 400% 400%;
  animation: splashGradient 8s ease infinite;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
@keyframes splashGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
#splash.hide { opacity: 0; transform: scale(1.08); pointer-events: none; }

/* Gooey Text Morph */
#splash .splash-title {
  font-size: 3rem; font-weight: 800; color: white;
  text-shadow: 0 0 40px rgba(124,111,234,0.8), 0 0 80px rgba(99,102,241,0.4);
  animation: gooeyMorph 3s ease-in-out infinite;
  letter-spacing: 2px;
  position: relative; z-index: 2;
}
@keyframes gooeyMorph {
  0%, 100% { transform: scale(1); filter: blur(0px); opacity: 1; }
  25% { transform: scale(1.04); filter: blur(0.5px); }
  50% { transform: scale(0.97); filter: blur(0.3px); opacity: 0.9; }
  75% { transform: scale(1.02); filter: blur(0.5px); }
}
#splash .splash-sub {
  font-size: 0.9rem; color: rgba(255,255,255,0.6); margin-top: 12px;
  letter-spacing: 3px; text-transform: uppercase;
  animation: fadeInUp 1.5s ease 0.5s both;
  position: relative; z-index: 2;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(108,99,255,0.4); }
  50% { transform: scale(1.3); opacity: 0.8; box-shadow: 0 0 0 6px rgba(108,99,255,0); }
}
.guide-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 12px; background: var(--accent-light);
  border: 1px solid rgba(108,99,255,0.15); border-radius: 16px;
  font-size: 0.7rem; font-weight: 600; color: var(--primary);
  cursor: pointer; transition: all 0.15s; animation: fadeIn 0.4s ease;
}
.guide-chip:active { transform: scale(0.95); background: rgba(108,99,255,0.15); }

/* Animated Gradient Blobs */
.splash-blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px);
  mix-blend-mode: screen;
}
.splash-blob:nth-child(1) {
  width: 250px; height: 250px;
  background: radial-gradient(circle, #7C6FEA 0%, transparent 70%);
  top: -5%; left: -15%; opacity: 0.6;
  animation: blob1 8s ease-in-out infinite alternate;
}
.splash-blob:nth-child(2) {
  width: 200px; height: 200px;
  background: radial-gradient(circle, #818CF8 0%, transparent 70%);
  bottom: 10%; right: -10%; opacity: 0.5;
  animation: blob2 10s ease-in-out infinite alternate;
}
.splash-blob:nth-child(3) {
  width: 180px; height: 180px;
  background: radial-gradient(circle, #A78BFA 0%, transparent 70%);
  top: 35%; right: 15%; opacity: 0.4;
  animation: blob3 7s ease-in-out infinite alternate;
}
.splash-blob:nth-child(4) {
  width: 140px; height: 140px;
  background: radial-gradient(circle, #C4B5FD 0%, transparent 70%);
  bottom: 25%; left: 10%; opacity: 0.5;
  animation: blob4 9s ease-in-out infinite alternate;
}
.splash-blob:nth-child(5) {
  width: 120px; height: 120px;
  background: radial-gradient(circle, #6366F1 0%, transparent 70%);
  top: 60%; left: 50%; opacity: 0.3;
  animation: blob5 6s ease-in-out infinite alternate;
}
@keyframes blob1 { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(40px,30px) scale(1.3); } }
@keyframes blob2 { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(-30px,-40px) scale(1.2); } }
@keyframes blob3 { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(20px,-30px) scale(1.4); } }
@keyframes blob4 { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(-20px,20px) scale(1.1); } }
@keyframes blob5 { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(30px,10px) scale(1.3); } }

/* Splash Moon Icon */
#splash .splash-moon {
  font-size: 4rem; color: rgba(255,255,255,0.9);
  animation: moonFloat 4s ease-in-out infinite;
  text-shadow: 0 0 60px rgba(255,255,255,0.3);
  margin-bottom: 20px; position: relative; z-index: 2;
}
@keyframes moonFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(5deg); }
}

/* Splash particles */
.splash-particle {
  position: absolute; width: 3px; height: 3px;
  background: white; border-radius: 50%;
  opacity: 0; animation: particleFloat 4s ease-in-out infinite;
}
@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(0); }
  20% { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(-100px) translateX(20px); }
}

/* ====== SCREENS ====== */
.screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  background: var(--bg-main);
  transition: opacity 0.3s, transform 0.3s;
}
.screen.hidden { display: none; }
.screen.with-nav { padding-bottom: 80px; }
body.nav-is-hidden .screen.with-nav { padding-bottom: 0; }
.screen-content {
  flex: 1; overflow-y: auto;
  padding: 30px 20px 120px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  scroll-behavior: smooth;
}
/* Nav gizli — padding yumusak degil, ani kapat (scroll sirasinda layout jank olmasin) */
body.nav-is-hidden .screen-content { padding-bottom: 20px; }

/* Bottom nav & fab defined at end of file (futuristic version) */

.fab-btn-placeholder {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--primary-gradient);
  display: flex; align-items: center; justify-content: center;
  margin-top: -28px; cursor: pointer;
  box-shadow: 0 4px 20px rgba(108,99,255,0.4);
  animation: fabBreath 3s ease-in-out infinite;
  transition: transform 0.2s;
}
.fab-btn:active { transform: scale(0.9) translateY(2px); }
.fab-btn i { font-size: 1.4rem; color: white; }
@keyframes fabBreath {
  0%, 100% { box-shadow: 0 4px 20px rgba(108,99,255,0.4); }
  50% { box-shadow: 0 4px 30px rgba(108,99,255,0.7); }
}

/* ====== BUTTONS ====== */
.btn-primary {
  background: var(--primary-gradient); color: white;
  border: none; border-radius: 14px; padding: 14px 28px;
  font-size: 0.95rem; font-weight: 600;
  font-family: var(--font); cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(108,99,255,0.3);
}
.btn-primary:active { transform: scale(0.97); }
.btn-secondary {
  background: var(--bg-secondary); color: var(--text-main);
  border: 1px solid #E5E7EB; border-radius: 14px;
  padding: 14px 28px; font-size: 0.95rem; font-weight: 600;
  font-family: var(--font); cursor: pointer;
}

/* ====== CARDS ====== */
.card {
  background: var(--bg-secondary);
  border: 1px solid #E5E7EB;
  border-radius: 16px; padding: 18px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.card-gradient {
  background: var(--primary-gradient);
  border-radius: 18px; padding: 20px;
  color: white; position: relative; overflow: hidden;
}
.card-gradient::before {
  content: ''; position: absolute; top: -20px; right: -20px;
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

/* ====== CTA BANNER ====== */
.cta-banner {
  background: var(--primary-gradient);
  border-radius: 20px; padding: 22px 20px;
  display: flex; align-items: center; gap: 16px;
  cursor: pointer; position: relative; overflow: hidden;
  box-shadow: 0 4px 20px rgba(108,99,255,0.25);
  transition: transform 0.15s;
}
.cta-banner:active { transform: scale(0.98); }
.cta-banner .cta-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cta-banner .cta-icon i { font-size: 1.2rem; color: white; }
.cta-banner .cta-text h3 { font-size: 1.1rem; font-weight: 700; color: white; margin-bottom: 4px; }
.cta-banner .cta-text p { font-size: 0.8rem; color: rgba(255,255,255,0.8); }
.cta-banner .cta-arrow {
  margin-left: auto; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
}
.cta-banner .cta-arrow i { color: white; font-size: 0.9rem; }

/* Lamp banner defined at end of file (enhanced version) */

/* ====== COLLAPSIBLE HEADER ====== */
.home-header {
  text-align: center; padding: 16px 20px 0;
  transition: opacity 0.3s, height 0.3s;
}
.home-header .greeting {
  font-size: 1.5rem; font-weight: 800; color: var(--text-main);
}
.home-header .sub {
  font-size: 0.8rem; color: var(--text-muted); margin-top: 4px;
}

/* ====== STAT CARD ====== */
.stat-card {
  background: var(--bg-secondary); border: 1px solid #E5E7EB;
  border-radius: 16px; padding: 20px;
  display: flex; margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.stat-item {
  flex: 1; text-align: center;
}
.stat-item img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; margin: 0 auto 8px; display: block; }
.stat-item .stat-value { font-size: 1.8rem; font-weight: 800; color: var(--text-main); }
.stat-item .stat-label { font-size: 0.75rem; color: var(--text-muted); }
.stat-divider { width: 1px; background: #E5E7EB; }

/* ====== DREAM INPUT ====== */
.dream-input-area {
  background: var(--bg-secondary); border: 2px solid rgba(99,102,241,0.25);
  border-radius: 18px; padding: 18px; margin: 0 6px 16px;
  position: relative;
  box-shadow: 0 0 20px rgba(99,102,241,0.08), 0 0 60px rgba(99,102,241,0.04);
  transition: border-color 0.3s, box-shadow 0.3s;
  animation: borderGlow 3s ease-in-out infinite;
  will-change: border-color;
}
@keyframes borderGlow {
  0%, 100% { border-color: rgba(99,102,241,0.2); }
  50% { border-color: rgba(99,102,241,0.5); }
}
.dream-input-area:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(99,102,241,0.2), 0 0 60px rgba(99,102,241,0.1);
  animation: none;
}
.dream-input-area textarea {
  width: 100%; min-height: 100px; border: none; outline: none;
  font-family: var(--font); font-size: 0.9rem; color: var(--text-main);
  background: transparent; resize: none; line-height: 1.5;
}
.dream-input-area textarea::placeholder { color: var(--text-muted); }
.dream-input-footer {
  display: flex; align-items: center; justify-content: space-between; margin-top: 8px;
}
.char-count { font-size: 0.7rem; color: var(--text-muted); }
.mic-btn {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent-light); border: 2px solid rgba(99,102,241,0.15);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: transform 0.15s;
}
.mic-btn:active { transform: scale(0.9); }
.mic-btn.recording {
  background: var(--primary); border-color: var(--primary); animation: micPulse 1.5s ease-in-out infinite;
}
.mic-btn i { font-size: 1.15rem; color: var(--primary); }
.mic-btn.recording i { color: white; }
@keyframes micPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(108,99,255,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(108,99,255,0); }
}

/* ====== SECTION HEADERS ====== */
.section-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.section-header i { font-size: 0.9rem; }
.section-header span { font-size: 0.95rem; font-weight: 700; color: var(--text-main); }
.section-header .badge {
  margin-left: auto; font-size: 0.7rem; color: var(--primary);
  background: var(--accent-light); padding: 2px 8px; border-radius: 8px;
}

/* ====== RECENT DREAMS CAROUSEL ====== */
.dream-carousel {
  display: flex; gap: 12px; overflow-x: auto;
  padding: 4px 0 16px; scroll-snap-type: x mandatory;
}
.dream-card-mini {
  min-width: 150px; max-width: 170px; height: 200px; flex-shrink: 0;
  background: var(--primary-gradient);
  border-radius: 16px; padding: 16px; cursor: pointer;
  scroll-snap-align: start;
  box-shadow: 0 2px 12px rgba(108,99,255,0.2);
  transition: transform 0.15s;
  overflow: hidden; display: flex; flex-direction: column;
}
.dream-card-mini .dream-preview {
  font-size: 0.78rem; font-weight: 600; color: white; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-word;
}
.dream-card-mini:active { transform: scale(0.96); }
.dream-card-mini.has-image {
  background: var(--primary-gradient); /* fallback */
  box-shadow: 0 4px 18px rgba(20,16,50,0.35);
}
.dream-card-mini.has-image .dream-preview {
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

/* ====== DAILY WISDOM ====== */
.wisdom-card {
  background: var(--bg-secondary); border: 1px solid #E5E7EB;
  border-radius: 16px; padding: 20px; text-align: center;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.wisdom-card .wisdom-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(108,99,255,0.15), rgba(99,102,241,0.1));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 2px 12px rgba(108,99,255,0.12);
}
.wisdom-card .wisdom-text {
  font-size: 0.9rem; color: var(--text-secondary);
  font-style: italic; line-height: 1.5;
}
@keyframes wisdomPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* ====== MODALS ====== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content {
  background: var(--bg-secondary);
  border-radius: 24px 24px 0 0;
  width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto;
  padding: 28px 24px 40px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-handle {
  width: 36px; height: 4px; border-radius: 2px;
  background: #D1D5DB; margin: 0 auto 20px;
}

/* ====== CUSTOM ALERT ====== */
.alert-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.alert-overlay.active { opacity: 1; pointer-events: auto; }
.alert-box {
  background: var(--bg-secondary); border-radius: 20px;
  padding: 30px 24px; width: 85%; max-width: 340px;
  text-align: center;
  transform: scale(0.9); transition: transform 0.25s;
}
.alert-overlay.active .alert-box { transform: scale(1); }

/* ====== ANALYSIS ANIMATION ====== */
.analysis-screen {
  position: fixed; inset: 0; z-index: 400;
  background: radial-gradient(ellipse at center, #4F46E5 0%, #2E1B6C 60%, #1A0E4A 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: white; text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s;
  overflow: hidden;
}
.analysis-screen.active { opacity: 1; pointer-events: auto; }

/* Arka planda yavas hareket eden nebula + yildizlar */
.analysis-screen::before {
  content: ''; position: absolute; inset: -10%; pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 80% 20%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 90% 60%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 15% 85%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 70% 40%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 50% 15%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 30% 50%, rgba(255,255,255,0.5), transparent),
    radial-gradient(2px 2px at 75% 85%, rgba(255,255,255,0.6), transparent);
  animation: analysis-stars 8s linear infinite, stars-twinkle 3s ease-in-out infinite alternate;
}
@keyframes analysis-stars {
  from { transform: translateY(0); }
  to { transform: translateY(-40px); }
}

/* Orb + yorungede donen yildizlar */
.analysis-orb-wrap {
  position: relative; width: 200px; height: 200px; margin-bottom: 30px;
  display: flex; align-items: center; justify-content: center;
}
.analysis-orb-wrap::before, .analysis-orb-wrap::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  animation: orbit-ring 6s linear infinite;
}
.analysis-orb-wrap::after {
  inset: 10px;
  border-color: rgba(255,255,255,0.08);
  animation-duration: 9s;
  animation-direction: reverse;
}
@keyframes orbit-ring {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

.analysis-orb {
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FBBF24 0%, #F59E0B 45%, #92400E 100%);
  display: flex; align-items: center; justify-content: center;
  animation: orbPulse 2.5s ease-in-out infinite;
  box-shadow: 0 0 60px rgba(251,191,36,0.5), inset -20px -20px 40px rgba(0,0,0,0.3);
  position: relative; z-index: 2;
}
.analysis-orb i { font-size: 2.8rem; color: rgba(255,255,255,0.95); filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3)); }
@keyframes orbPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 60px rgba(251,191,36,0.45), inset -20px -20px 40px rgba(0,0,0,0.3); }
  50% { transform: scale(1.08); box-shadow: 0 0 100px rgba(251,191,36,0.75), inset -20px -20px 40px rgba(0,0,0,0.3); }
}

/* Yorungede donen yildizlar (moon around orbit) */
.analysis-orbit-star {
  position: absolute; width: 10px; height: 10px; top: 50%; left: 50%;
  margin: -5px 0 0 -5px; transform-origin: 0 0;
}
.analysis-orbit-star::before {
  content: ''; position: absolute; width: 8px; height: 8px;
  border-radius: 50%; background: white;
  box-shadow: 0 0 12px rgba(255,255,255,0.9), 0 0 20px rgba(167,139,250,0.6);
  top: -4px; left: 85px;
}
.analysis-orbit-star.a { animation: orbit 4s linear infinite; }
.analysis-orbit-star.b { animation: orbit 6s linear infinite reverse; }
.analysis-orbit-star.b::before { left: 70px; background: #FBBF24; box-shadow: 0 0 10px rgba(251,191,36,0.9); }
.analysis-orbit-star.c { animation: orbit 5s linear infinite; animation-delay: -2s; }
.analysis-orbit-star.c::before { left: 95px; width: 5px; height: 5px; top: -2.5px; background: #A78BFA; box-shadow: 0 0 8px rgba(167,139,250,0.9); }
@keyframes orbit {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

.analysis-screen h3,
.analysis-screen p { position: relative; z-index: 2; }

.analysis-steps { display: flex; gap: 8px; margin-top: 24px; position: relative; z-index: 2; }
.analysis-step {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transition: all 0.4s;
}
.analysis-step.active {
  background: white; width: 24px; border-radius: 4px;
  box-shadow: 0 0 8px rgba(255,255,255,0.6);
}

/* ====== RESULT SCREEN ====== */
.result-screen {
  position: fixed; inset: 0; z-index: 300;
  background: var(--bg-main);
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}
.result-screen.active { transform: translateY(0); }
.result-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; position: sticky; top: 0;
  background: var(--bg-main); z-index: 5;
}
.result-header .back-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-secondary); border: 1px solid #E5E7EB;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.result-section {
  background: var(--bg-secondary);
  border: 1px solid #E5E7EB;
  border-radius: 16px; padding: 20px;
  margin: 0 20px 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.result-actions {
  display: flex; gap: 12px; padding: 16px 20px 40px;
}
.result-actions .btn-share {
  flex: 1; background: var(--primary-gradient); color: white;
  border: none; border-radius: 14px; padding: 16px;
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  font-family: var(--font);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.result-actions .btn-retry {
  flex: 1; background: var(--bg-secondary); color: var(--text-main);
  border: 1px solid #E5E7EB; border-radius: 14px; padding: 16px;
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  font-family: var(--font);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}

/* ====== ONBOARDING ====== */
.onboarding-screen {
  position: fixed; inset: 0; z-index: 800;
  background: var(--bg-main);
  display: flex; flex-direction: column;
}
.onboarding-slide {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 30px; text-align: center;
}
.onboarding-slide img {
  width: 220px; height: 220px; border-radius: 30px;
  object-fit: cover; margin-bottom: 30px;
  box-shadow: 0 8px 40px rgba(108,99,255,0.2);
}

/* ====== ONBOARDING IMAGE — CINEMATIC DREAM FRAME ====== */
/* Frame: aurora border + multi-halo glow + parallax tilt + cinematic transition */
.ob-image-frame {
  position: relative; width: 240px; height: 240px;
  margin: 0 auto 30px;
  display: flex; align-items: center; justify-content: center;
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* MULTI-HALO GLOW — 4 köşeden farklı renk, AGRESIF gorunurluk */
.ob-glow-halo {
  position: absolute; width: 200px; height: 200px;
  border-radius: 50%; pointer-events: none;
  filter: blur(32px);
  opacity: 0.85;
  will-change: transform, opacity;
  z-index: 0;
}
.halo-tl { top: -55px; left: -55px; background: #6366F1; animation: halo-pulse-1 6s ease-in-out infinite; }
.halo-tr { top: -55px; right: -55px; background: #EC4899; animation: halo-pulse-2 7s ease-in-out infinite; }
.halo-bl { bottom: -55px; left: -55px; background: #A78BFA; animation: halo-pulse-3 8s ease-in-out infinite; }
.halo-br { bottom: -55px; right: -55px; background: #F59E0B; animation: halo-pulse-4 9s ease-in-out infinite; opacity: 0.7; }
@keyframes halo-pulse-1 { 0%, 100% { transform: scale(1) translate(0,0); opacity: 0.7; } 50% { transform: scale(1.3) translate(10px, 8px); opacity: 1; } }
@keyframes halo-pulse-2 { 0%, 100% { transform: scale(1.15) translate(0,0); opacity: 0.85; } 50% { transform: scale(0.85) translate(-8px, 10px); opacity: 0.6; } }
@keyframes halo-pulse-3 { 0%, 100% { transform: scale(0.95) translate(0,0); opacity: 0.65; } 50% { transform: scale(1.35) translate(8px, -10px); opacity: 1; } }
@keyframes halo-pulse-4 { 0%, 100% { transform: scale(1) translate(0,0); opacity: 0.55; } 50% { transform: scale(1.25) translate(-10px, -8px); opacity: 0.85; } }

/* INNER WRAP — Ken Burns container + havada ucma golgesi + light sweep */
.ob-image-wrap {
  position: relative; width: 220px; height: 220px;
  border-radius: 30px; overflow: hidden;
  box-shadow:
    0 20px 60px rgba(108,99,255,0.5),
    0 8px 24px rgba(236,72,153,0.3),
    inset 0 0 0 1px rgba(255,255,255,0.12);
  z-index: 2;
}
/* LIGHT SWEEP — diagonal isik geciyor (premium parilti) */
.ob-image-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg,
    transparent 30%,
    rgba(255,255,255,0.18) 45%,
    rgba(255,255,255,0.45) 50%,
    rgba(255,255,255,0.18) 55%,
    transparent 70%);
  transform: translateX(-120%);
  animation: light-sweep 4.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 4;
  border-radius: inherit;
}
@keyframes light-sweep {
  0%, 60%, 100% { transform: translateX(-120%); }
  80% { transform: translateX(120%); }
}
.ob-image {
  width: 100%; height: 100%; object-fit: cover; display: block;
  margin: 0 !important;
  animation: kenburns-zoom 18s ease-in-out infinite alternate,
             ob-breathe 6s ease-in-out infinite;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.ob-image-reverse {
  animation: kenburns-zoom-rev 18s ease-in-out infinite alternate,
             ob-breathe 6s ease-in-out infinite;
}

@keyframes kenburns-zoom {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.18) translate(-4%, -2%); }
}
@keyframes kenburns-zoom-rev {
  0% { transform: scale(1.15) translate(3%, -2%); }
  100% { transform: scale(1) translate(0, 2%); }
}
@keyframes ob-breathe {
  0%, 100% { filter: brightness(1) saturate(1); }
  50% { filter: brightness(1.08) saturate(1.15); }
}

/* CINEMATIC OVERLAYS — vignette + soft alt glow */
.ob-image-glow {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(circle at 50% 100%, rgba(167,139,250,0.4) 0%, transparent 65%);
  mix-blend-mode: overlay;
  animation: ob-glow-pulse 4s ease-in-out infinite;
}
.ob-image-vignette {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.35) 100%);
  mix-blend-mode: multiply;
}
@keyframes ob-glow-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* SPARKLES — premium, az ve kaliteli */
.ob-sparkles {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  border-radius: inherit; z-index: 3;
}
.ob-sparkle {
  position: absolute; border-radius: 50%;
  background: white;
  animation: ob-sparkle-twinkle 4.5s ease-in-out infinite;
  opacity: 0;
}
.ob-sparkle.s-sm { width: 5px; height: 5px; box-shadow: 0 0 10px rgba(255,255,255,1), 0 0 20px rgba(167,139,250,0.85); }
.ob-sparkle.s-md { width: 8px; height: 8px; box-shadow: 0 0 14px rgba(255,255,255,1), 0 0 28px rgba(236,72,153,0.8); }
.ob-sparkle.s-lg { width: 11px; height: 11px; box-shadow: 0 0 18px rgba(255,255,255,1), 0 0 36px rgba(245,158,11,0.85); }
@keyframes ob-sparkle-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.4) rotate(0deg); }
  35%, 65% { opacity: 1; transform: scale(1) rotate(180deg); }
  50% { opacity: 0.85; transform: scale(1.3) rotate(270deg); }
}

/* CINEMATIC SLIDE TRANSITION — fade + scale + blur */
.onboarding-slide {
  opacity: 1;
  transform: scale(1);
  filter: blur(0px);
  transition: opacity 0.45s ease, transform 0.5s cubic-bezier(0.22,1,0.36,1), filter 0.45s ease;
}
.onboarding-slide.ob-leaving {
  opacity: 0;
  transform: scale(0.94);
  filter: blur(8px);
}
.onboarding-slide.ob-entering {
  opacity: 0;
  transform: scale(1.06);
  filter: blur(8px);
}
.onboarding-slide h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 12px; color: var(--text-main); position: relative; z-index: 2; text-shadow: 0 1px 12px var(--bg); }
.onboarding-slide p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.5; position: relative; z-index: 2; text-shadow: 0 1px 10px var(--bg); }
.onboarding-dots {
  display: flex; gap: 8px; justify-content: center; margin: 20px 0;
}
.onboarding-dots .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #D1D5DB; transition: all 0.3s;
}
.onboarding-dots .dot.active { width: 24px; border-radius: 4px; background: var(--primary); }

/* ====== PROFILE ====== */
.profile-hero {
  text-align: center; padding: 20px; position: relative;
}
.profile-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; font-size: 2rem;
  border: 3px solid rgba(108,99,255,0.2);
  overflow: hidden; position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.profile-hero-name {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem; font-weight: 900;
  color: rgba(108,99,255,0.06);
  white-space: nowrap; pointer-events: none;
  letter-spacing: 8px; text-transform: uppercase;
}

/* ====== SETTINGS LIST ====== */
.settings-group {
  margin-bottom: 20px;
}
.settings-group-title {
  font-size: 0.75rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px;
  padding: 0 4px; margin-bottom: 8px;
}
.settings-item {
  background: var(--bg-secondary); border: 1px solid #E5E7EB;
  border-radius: 14px; padding: 14px 16px;
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 8px; cursor: pointer;
  transition: transform 0.1s;
}
.settings-item:active { transform: scale(0.98); }
.settings-item .si-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.settings-item .si-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.settings-item .si-text { flex: 1; }
.settings-item .si-text .si-title { font-size: 0.9rem; font-weight: 600; color: var(--text-main); }
.settings-item .si-text .si-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.settings-item .si-arrow { color: var(--text-muted); font-size: 0.7rem; }

/* ====== DOC VIEWER (iframe tabanli) ====== */
#doc-overlay.active { display: flex !important; }

/* ====== DREAM CARD DELETE MODE (long-press) ====== */
.dream-card-mini {
  position: relative;
  transition: transform 0.2s ease, filter 0.3s ease;
  -webkit-user-select: none;
  user-select: none;
}
.dream-card-mini.delete-mode,
.history-card.delete-mode {
  transform: scale(0.96);
}
/* Karartmayi parent'a degil, overlay'in arkasi ile yap — boylece sil butonu tam parlak kalir */
.dream-card-mini .card-delete-overlay,
.history-card .card-delete-overlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(0,0,0,0.62);
  border-radius: inherit;
  z-index: 5;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: cardDeleteFade 0.25s ease;
}
.dream-card-mini.delete-mode .card-delete-overlay,
.history-card.delete-mode .card-delete-overlay {
  display: flex;
}
@keyframes cardDeleteFade {
  from { opacity: 0; transform: scale(1.05); }
  to { opacity: 1; transform: scale(1); }
}
.card-delete-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #FF5C73, #E11D48);
  color: white;
  border: 2px solid rgba(255,255,255,0.85);
  border-radius: 12px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.18), 0 10px 28px rgba(225,29,72,0.85), 0 0 36px rgba(255,92,115,0.7);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  animation: cardDeleteBtnIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.card-delete-btn i {
  font-size: 0.95rem;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}
.card-delete-cancel {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.95);
  color: #1F2937;
  border: 2px solid rgba(255,255,255,1);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4), 0 0 0 3px rgba(0,0,0,0.15);
  animation: cardDeleteBtnIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s backwards;
}
@keyframes cardDeleteBtnIn {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

/* ====== BELL PULSE (hatirlatici kurulu degilken) ====== */
@keyframes bellRing {
  0%, 60%, 100% { transform: rotate(0deg); }
  68% { transform: rotate(12deg); }
  76% { transform: rotate(-10deg); }
  84% { transform: rotate(8deg); }
  92% { transform: rotate(-6deg); }
}
@keyframes bellHaloPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.35); }
  50% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
}
.bell-pulse {
  animation: bellRing 3.5s ease-in-out infinite;
  transform-origin: 50% 10%;
}
.bell-halo {
  animation: bellHaloPulse 2.5s ease-in-out infinite;
}

/* ====== TOGGLE SWITCH ====== */
.toggle-switch {
  position: relative;
  width: 46px; height: 26px;
  flex-shrink: 0;
  cursor: pointer;
  display: inline-block;
}
.toggle-switch input {
  opacity: 0; width: 0; height: 0;
  position: absolute;
}
.toggle-slider {
  position: absolute; inset: 0;
  background: #D1D5DB;
  border-radius: 34px;
  transition: background 0.25s ease;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  height: 20px; width: 20px;
  left: 3px; top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--primary);
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}
.toggle-switch:active .toggle-slider::before {
  width: 24px;
}

/* ====== TOGGLE ROW ====== */
.toggle-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #F3F4F6;
}
.toggle-row:last-child { border-bottom: none; }
.toggle-row .tr-text { flex: 1; min-width: 0; }
.toggle-row .tr-title {
  font-size: 0.88rem; font-weight: 600;
  color: var(--text-main); margin-bottom: 3px;
}
.toggle-row .tr-sub {
  font-size: 0.73rem; color: var(--text-muted);
  line-height: 1.4;
}

/* ====== SECTION CARD (ikonlu baslik + ic gruplar) ====== */
.section-card {
  background: var(--bg-secondary);
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
}
.section-card-title {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
  font-size: 0.92rem; font-weight: 700;
  color: var(--text-main);
}
.section-card-title-icon {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ====== ACCORDION / COLLAPSIBLE ====== */
.accordion {
  background: var(--bg-secondary);
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}
.accordion summary {
  list-style: none;
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  font-size: 0.88rem; font-weight: 600;
  color: var(--text-main);
  user-select: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.7rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}
.accordion[open] summary::after { transform: rotate(180deg); }
.accordion-body {
  padding: 0 16px 14px;
  font-size: 0.82rem; color: var(--text-secondary);
  line-height: 1.6;
  animation: accordionOpen 0.3s ease;
}
@keyframes accordionOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ====== INFO BANNER (rakip app'teki mor sparkle) ====== */
.info-banner {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--accent-light);
  border: 1px solid rgba(79,70,229,0.15);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
}
.info-banner-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: white;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.info-banner-text { flex: 1; }
.info-banner-title {
  font-size: 0.85rem; font-weight: 700;
  color: var(--primary); margin-bottom: 3px;
}
.info-banner-sub {
  font-size: 0.74rem; color: var(--text-secondary);
  line-height: 1.4;
}

/* ====== SOURCE/OPTION CARD (Ibn Sirin tarzi secim karti) ====== */
.option-card {
  background: var(--bg-secondary);
  border: 2px solid #E5E7EB;
  border-radius: 14px;
  padding: 14px;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.option-card:active { transform: scale(0.98); }
.option-card.selected {
  border-color: var(--primary);
  background: var(--accent-light);
}
.option-card .oc-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.option-card.selected .oc-icon { background: white; }
.option-card .oc-body { flex: 1; min-width: 0; }
.option-card .oc-title {
  font-size: 0.88rem; font-weight: 700;
  color: var(--text-main);
}
.option-card .oc-sub {
  font-size: 0.72rem; color: var(--text-muted);
  margin-top: 2px;
}
.option-card .oc-badge {
  background: #FBBF24; color: #78350F;
  font-size: 0.62rem; font-weight: 700;
  padding: 3px 8px; border-radius: 6px;
}

/* ====== PAYWALL ====== */
.paywall-hero {
  background: var(--primary-gradient);
  border-radius: 0 0 30px 30px; padding: 40px 24px 30px;
  text-align: center; color: white; position: relative; overflow: hidden;
}
.price-cards { display: flex; gap: 12px; padding: 0 20px; margin: -20px 0 20px; }
.price-card {
  flex: 1; background: var(--bg-secondary);
  border: 2px solid #E5E7EB; border-radius: 16px;
  padding: 16px; text-align: center; cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
  position: relative;
}
.price-card.selected { border-color: var(--primary) !important; background: var(--accent-light) !important; box-shadow: 0 0 0 2px var(--primary), 0 8px 20px rgba(108,99,255,0.25) !important; transform: translateY(-3px); }
.price-card:active { transform: scale(0.97); }
.price-card .popular-tag {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: white;
  font-size: 0.6rem; font-weight: 700; padding: 2px 10px;
  border-radius: 6px; white-space: nowrap;
}

/* Popular yearly card — gold glow (does not block .selected) */
.price-card.popular { box-shadow: 0 6px 24px rgba(245,158,11,0.25); background: linear-gradient(180deg, #FFFBEB 0%, var(--bg-secondary) 70%); }
body.dark-mode .price-card.popular { background: linear-gradient(180deg, rgba(245,158,11,0.08) 0%, #1A1230 70%); }

/* Radio indicator */
.price-radio {
  position: absolute; top: 8px; right: 8px;
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid #CBD5E1; background: transparent;
  transition: all 0.2s ease;
}
.price-card.selected .price-radio {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: inset 0 0 0 3px white;
}

/* ====== PAYWALL ANIMASYONLAR ====== */
@keyframes paywall-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes paywall-logo-in {
  from { opacity: 0; transform: scale(0.6); }
  60% { transform: scale(1.08); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes paywall-card-pop {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes cta-pulse-glow {
  0%, 100% { box-shadow: 0 6px 18px rgba(99,102,241,0.35); }
  50% { box-shadow: 0 8px 28px rgba(99,102,241,0.55); }
}

/* Trigger when modal is active */
.modal-overlay.active #paywall-overlay-root .anim-logo { animation: paywall-logo-in 0.55s cubic-bezier(0.34,1.56,0.64,1) both; }
.modal-overlay.active .anim-fade-up { animation: paywall-fade-up 0.5s ease both; }
.modal-overlay.active .anim-card-1 { animation: paywall-card-pop 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.15s both; }
.modal-overlay.active .anim-card-2 { animation: paywall-card-pop 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.28s both; }
.modal-overlay.active .anim-card-3 { animation: paywall-card-pop 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.41s both; }
.modal-overlay.active .anim-cta { animation: paywall-fade-up 0.5s ease 0.55s both, cta-pulse-glow 2.4s ease-in-out 1s infinite; }
.modal-overlay.active .anim-chip { animation: paywall-fade-up 0.45s ease both; }
.modal-overlay.active .anim-chip-1 { animation-delay: 0.6s; }
.modal-overlay.active .anim-chip-2 { animation-delay: 0.66s; }
.modal-overlay.active .anim-chip-3 { animation-delay: 0.72s; }
.modal-overlay.active .anim-chip-4 { animation-delay: 0.78s; }
.modal-overlay.active .anim-chip-5 { animation-delay: 0.84s; }
.modal-overlay.active .anim-chip-6 { animation-delay: 0.9s; }

/* ====== EMPTY STATE ANIMASYONLARI ====== */
@keyframes empty-breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(108,99,255,0.2); }
  50% { transform: scale(1.05); box-shadow: 0 0 24px 10px rgba(108,99,255,0.15); }
}
@keyframes empty-moon-tilt {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(6deg); }
}
.empty-z {
  position: absolute; font-size: 1.6rem; font-weight: 800;
  color: var(--primary); font-family: serif;
  opacity: 0;
  animation: empty-z-float 3.5s ease-in-out infinite;
}
.empty-z-sm { font-size: 1.2rem; color: rgba(108,99,255,0.7); }
.empty-z-xs { font-size: 0.9rem; color: rgba(108,99,255,0.5); }
@keyframes empty-z-float {
  0% { opacity: 0; transform: translateY(0) scale(0.6); }
  30% { opacity: 1; transform: translateY(-8px) scale(1); }
  70% { opacity: 0.6; transform: translateY(-18px) scale(1.05); }
  100% { opacity: 0; transform: translateY(-30px) scale(1.1); }
}

/* ====== RATING CELEBRATION (confetti + gift pop) ====== */
#celebrate-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: none; align-items: center; justify-content: center;
  background: rgba(10,5,30,0.6); backdrop-filter: blur(4px);
  pointer-events: none;
}
#celebrate-overlay.active { display: flex; animation: celebrate-bg 0.3s ease; }
@keyframes celebrate-bg {
  from { opacity: 0; }
  to { opacity: 1; }
}
.celebrate-gift {
  font-size: 5rem;
  animation: gift-pop 1s cubic-bezier(0.34,1.56,0.64,1);
  filter: drop-shadow(0 8px 20px rgba(251,191,36,0.6));
}
@keyframes gift-pop {
  0% { transform: scale(0) rotate(-30deg); }
  40% { transform: scale(1.4) rotate(10deg); }
  60% { transform: scale(0.9) rotate(-5deg); }
  100% { transform: scale(1) rotate(0); }
}
.confetti {
  position: absolute; width: 10px; height: 14px; top: 50%; left: 50%;
  opacity: 0;
  animation: confetti-burst 1.6s ease-out;
}
@keyframes confetti-burst {
  0% { opacity: 1; transform: translate(0, 0) rotate(0); }
  100% { opacity: 0; transform: var(--end-transform) rotate(720deg); }
}

/* ====== RESULT SCREEN STAGGER ENTRANCE ====== */
@keyframes result-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.result-screen.active .result-section,
.result-screen.active .result-hero-card,
.result-screen.active .result-actions,
.result-screen.active #result-image-section,
.result-screen.active #result-premium-cta {
  animation: result-fade-up 0.55s ease both;
}
.result-screen.active .result-hero-card { animation-delay: 0.05s; }
.result-screen.active #result-image-section { animation-delay: 0.15s; }
.result-screen.active .result-section:nth-of-type(1) { animation-delay: 0.22s; }
.result-screen.active .result-section:nth-of-type(2) { animation-delay: 0.3s; }
.result-screen.active .result-section:nth-of-type(3) { animation-delay: 0.38s; }
.result-screen.active .result-section:nth-of-type(4) { animation-delay: 0.46s; }
.result-screen.active .result-section:nth-of-type(5) { animation-delay: 0.54s; }
.result-screen.active .result-section:nth-of-type(6) { animation-delay: 0.62s; }
.result-screen.active .result-actions { animation-delay: 0.7s; }
.result-screen.active #result-premium-cta { animation-delay: 0.78s; }

/* ====== STREAK FLAME POP ANIMASYONU ====== */
@keyframes streak-flame-pop {
  0%, 100% { transform: scale(1) rotate(0); filter: drop-shadow(0 0 0 transparent); }
  20% { transform: scale(1.35) rotate(-8deg); filter: drop-shadow(0 0 10px rgba(249,115,22,0.9)); }
  40% { transform: scale(1.15) rotate(6deg); filter: drop-shadow(0 0 8px rgba(249,115,22,0.7)); }
  60% { transform: scale(1.2) rotate(-4deg); filter: drop-shadow(0 0 6px rgba(249,115,22,0.6)); }
  80% { transform: scale(1.05) rotate(2deg); filter: drop-shadow(0 0 4px rgba(249,115,22,0.4)); }
}
.streak-pop { animation: streak-flame-pop 1.2s ease-in-out; }

/* Streak yanindaki parilti partikulleri */
.streak-sparkle {
  position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: #FBBF24; pointer-events: none; opacity: 0;
}
@keyframes sparkle-fly {
  0% { opacity: 1; transform: translate(0,0) scale(1); }
  100% { opacity: 0; transform: var(--end-transform) scale(0); }
}

/* ====== TYPEWRITER EFFECT (result interpretation) ====== */
@keyframes typewriter-cursor {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
.typewriter-cursor::after {
  content: '|'; display: inline-block;
  color: var(--primary);
  animation: typewriter-cursor 0.7s infinite;
  margin-left: 2px;
}

/* ====== KLAVYE-AWARE BODY PADDING ====== */
/* Ruyami Yorumla butonu: artik sticky/fixed degil. Klavye acilinca JS body'ye
   padding-bottom ekler -> tum icerik dogal akista yukari kayar. CSS cascade
   karmasasini onlemek icin button'a hicbir ozel kural yok. Sadece smooth gecis. */
body { transition: padding-bottom 0.18s ease; }

/* ====== JOB CHIPS (onboarding) ====== */
.job-chip {
  display: inline-block; padding: 6px 12px;
  border: 1px solid #E5E7EB; border-radius: 16px;
  background: var(--bg-secondary);
  font-size: 0.72rem; font-weight: 600; color: var(--text-main);
  cursor: pointer; transition: all 0.15s ease;
}
.job-chip:hover { border-color: var(--primary); }
.job-chip.selected {
  background: var(--primary); color: white; border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(108,99,255,0.3);
}
body.dark-mode .job-chip { background: #1A1230; border-color: rgba(108,99,255,0.2); color: #F0EBF8; }
body.dark-mode .job-chip.selected { background: var(--primary); }

/* ====== RATING MODAL ====== */
.rating-star {
  font-size: 2.4rem; color: #E5E7EB; cursor: pointer;
  transition: all 0.15s ease; padding: 4px;
}
.rating-star:hover { transform: scale(1.1); }
.rating-star.filled {
  color: #F59E0B;
  animation: star-pop 0.35s cubic-bezier(0.34,1.56,0.64,1);
  filter: drop-shadow(0 0 8px rgba(245,158,11,0.6));
}
@keyframes star-pop {
  0% { transform: scale(0.7); }
  60% { transform: scale(1.25); }
  100% { transform: scale(1); }
}
#rating-stars {
  display: flex; justify-content: center; gap: 6px; margin: 16px 0 8px;
}

/* ====== PREMIUM PAYWALL AMBIENT (stars + glow + shimmer) ====== */
/* Arka plan yuzen yildizlar */
.paywall-stars {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.paywall-stars::before, .paywall-stars::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 80% 20%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,0.5), transparent),
    radial-gradient(2px 2px at 90% 60%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 15% 85%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 70% 40%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 50% 15%, rgba(255,255,255,0.6), transparent);
  animation: stars-twinkle 4s ease-in-out infinite alternate;
}
.paywall-stars::after {
  animation-delay: 2s;
  transform: translateY(6px);
}
@keyframes stars-twinkle {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

/* Logo arkasi radial glow pulse */
.paywall-logo-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 70%);
  animation: logo-breath 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes logo-breath {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.95); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* Gold ribbon sparkle */
.ribbon-sparkle {
  position: relative;
  background: linear-gradient(135deg, #F59E0B 0%, #EF4444 50%, #F59E0B 100%);
  background-size: 200% 100%;
  animation: ribbon-shine 2.5s linear infinite;
}
@keyframes ribbon-shine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Secili kart ustunde shimmer sweep */
.price-card.selected::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.5) 50%, transparent 60%);
  background-size: 250% 100%;
  animation: card-shine 1.8s ease-out;
}
@keyframes card-shine {
  0% { background-position: 200% 0; }
  100% { background-position: -100% 0; }
}

/* CTA crown icon parilti */
.anim-cta .fa-crown { animation: crown-twinkle 2.5s ease-in-out infinite; display: inline-block; }
@keyframes crown-twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 0 gold); }
  50% { transform: scale(1.15) rotate(-8deg); filter: drop-shadow(0 0 8px rgba(251,191,36,0.9)); }
}

/* ====== SHIMMER ====== */
.shimmer {
  background: linear-gradient(90deg, transparent 0%, rgba(108,99,255,0.08) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Rainbow glow defined at end of file (enhanced CTA version) */
.rainbow-glow { position: relative; }

/* ====== VOICE INPUT ====== */
.voice-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(160deg, #0c0420 0%, #1a0b3a 50%, #2d1457 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: white; text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.voice-overlay.active { opacity: 1; pointer-events: auto; }
.voice-circle {
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  animation: micPulse 1.5s ease-in-out infinite;
}
.voice-circle i { font-size: 2.5rem; color: white; }
.voice-bars {
  display: flex; gap: 4px; align-items: center; height: 40px; margin-top: 24px;
}
.voice-bars div {
  width: 4px; border-radius: 2px; background: var(--primary);
  animation: voiceBar 0.8s ease-in-out infinite alternate;
}
@keyframes voiceBar {
  0% { height: 8px; }
  100% { height: 32px; }
}

/* ====== HISTORY CARDS ====== */
.history-card {
  background: var(--bg-secondary); border: 1px solid #E5E7EB;
  border-radius: 16px; padding: 16px;
  display: flex; gap: 14px; align-items: flex-start;
  cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  /* Performans: viewport disindaki kartlari render etme (Android WebView'de scroll lag fix) */
  content-visibility: auto;
  contain-intrinsic-size: 0 110px;
}
.history-card:active { transform: scale(0.98); }
.history-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 14px;
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
}
.history-icon i { font-size: 1.1rem; color: var(--primary); }

/* ====== FOLLOW-UP ====== */
.followup-screen {
  position: fixed; inset: 0; z-index: 350;
  background: var(--bg-main);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 24px; text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.followup-screen.active { opacity: 1; pointer-events: auto; }
.mood-chip {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 16px; background: var(--bg-secondary);
  border: 2px solid #E5E7EB; border-radius: 16px;
  cursor: pointer; transition: all 0.2s; min-width: 80px;
}
.mood-chip:active { transform: scale(0.93); }
.mood-chip.selected {
  border-color: var(--primary); background: var(--accent-light);
  box-shadow: 0 2px 12px rgba(79,70,229,0.15);
}

/* ====== MISC ====== */
.badge-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 0.7rem; font-weight: 600;
}
.divider { height: 1px; background: #E5E7EB; margin: 16px 0; }

/* ====== STAR RATING ====== */
.star-rating { display: flex; gap: 6px; justify-content: center; }
.star-rating i {
  font-size: 1.8rem; color: #E5E7EB; cursor: pointer;
  transition: color 0.15s, transform 0.15s;
}
.star-rating i.active { color: var(--gold); }
.star-rating i:active { transform: scale(1.2); }


/* ====== COLLAPSIBLE HEADER ====== */
.lamp-banner {
  height: 170px;
  display: flex; align-items: center; justify-content: center;
  margin: -30px -20px 8px;
  overflow: hidden;
  position: relative;
  background: url('public/banner_moon.jpg') center/cover;
}
.lamp-banner::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(243,240,250,0) 0%, rgba(243,240,250,0) 35%, rgba(243,240,250,0.6) 75%, var(--bg-main) 100%);
  pointer-events: none;
}
.home-logo {
  height: 120px; max-width: 95%;
  object-fit: contain;
  position: relative; z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(255,255,255,0.7)) drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}
.lamp-banner.collapsed { height: 0; opacity: 0; margin-top: 0; margin-bottom: 0; }

/* Mini header (scroll'da gorunur) */
.mini-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(243,240,250,0.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 12px 20px; display: flex; align-items: center; gap: 12px;
  opacity: 0; transform: translateY(-10px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.mini-header.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ====== REVEAL-UP CARDS ====== */
.reveal-card {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  will-change: opacity, transform;
}
.reveal-card.visible {
  opacity: 1; transform: translateY(0);
  will-change: auto;
}

/* Magnetic hover */
@media (hover: hover) {
  .card:hover, .history-card:hover, .settings-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(108,99,255,0.12);
    transition: transform 0.2s, box-shadow 0.2s;
  }
}

/* ====== CTA RAINBOW GLOW (enhanced) ====== */
.cta-banner.rainbow-glow::after {
  content: ''; position: absolute; inset: -3px;
  border-radius: inherit; z-index: -1;
  background: linear-gradient(90deg, #6366F1, #818CF8, #A78BFA, #C4B5FD, #818CF8, #6366F1);
  background-size: 400% 100%;
  animation: rainbowFlow 4s linear infinite;
  filter: blur(12px); opacity: 0.6;
}
@keyframes rainbowFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 400% 50%; }
}

/* ====== GUNUN BILGELIGI TEXT ROTATE ====== */
.wisdom-text-rotate {
  display: inline-block;
  animation: wisdomFadeIn 1s ease both;
}
.wisdom-word {
  display: inline-block;
  opacity: 0; filter: blur(4px);
  animation: wordBlurIn 0.4s ease forwards;
}
@keyframes wordBlurIn {
  to { opacity: 1; filter: blur(0); }
}

/* ====== BOTTOM NAV (Futuristic) ====== */
.bottom-nav {
  position: fixed; bottom: 12px; left: 12px; right: 12px;
  height: 68px; z-index: 100;
  display: grid; grid-template-columns: 1fr 1fr auto 1fr 1fr; align-items: center;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 28px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.bottom-nav.nav-hidden {
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.06);
}
/* Modal acikken nav'i otomatik gizle (ENTER CODE gibi alt inputlar nav arkasinda kalmasin) */
body.modal-open .bottom-nav,
/* Klavye acikken nav'i gizle (Ruyami Yorumla butonu uzerine gelmesin) */
body.kb-active .bottom-nav {
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
}
.nav-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 3px; cursor: pointer; padding: 8px 14px;
  position: relative; transition: transform 0.2s;
}
.nav-item:active { transform: scale(0.85); }
.nav-item i { font-size: 1.15rem; color: rgba(100,100,120,0.6); transition: color 0.3s; }
.nav-item span { font-size: 0.58rem; color: rgba(100,100,120,0.6); font-weight: 500; transition: color 0.3s; }
.nav-item.active i { color: #A78BFA; }
.nav-item.active span { color: #A78BFA; font-weight: 700; }
/* Glow dot indicator */
.nav-item.active::after {
  content: ''; position: absolute; bottom: 2px;
  width: 4px; height: 4px; border-radius: 50%;
  background: #A78BFA;
  box-shadow: 0 0 8px 2px rgba(167,139,250,0.6);
}

/* FAB breathing glow (enhanced) */
.fab-btn {
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, #7C6FEA 0%, #6366F1 50%, #818CF8 100%);
  display: flex; align-items: center; justify-content: center;
  margin-top: -30px; cursor: pointer;
  box-shadow: 0 4px 24px rgba(108,99,255,0.5);
  animation: fabBreathe 3s ease-in-out infinite;
  transition: transform 0.2s;
  border: 2px solid rgba(255,255,255,0.15);
}
.fab-btn:active { transform: scale(0.88) translateY(2px); }
.fab-btn i { font-size: 1.5rem; color: white; }
@keyframes fabBreathe {
  0%, 100% { box-shadow: 0 4px 24px rgba(108,99,255,0.4); }
  50% { box-shadow: 0 6px 36px rgba(108,99,255,0.75), 0 0 60px rgba(108,99,255,0.2); }
}

/* ====== SCREEN TRANSITIONS ====== */
.screen { animation: screenSlideIn 0.35s ease both; }
@keyframes screenSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ====== PROFILE HERO SHIMMER ====== */
.profile-hero-name {
  background: linear-gradient(90deg, rgba(108,99,255,0.04) 0%, rgba(108,99,255,0.1) 50%, rgba(108,99,255,0.04) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  animation: heroShimmer 3s linear infinite;
}
@keyframes heroShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ====== SPIN + SLIDE ANIMATIONS ====== */
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes slideDown { from { transform: translateY(-100%); opacity:0; } to { transform: translateY(0); opacity:1; } }

/* ====== KARANLIK MOD ====== */
body.dark-mode {
  --bg-main: #0F0A1E;
  --bg-secondary: #1A1230;
  --accent-light: rgba(108,99,255,0.15);
  --text-main: #F0EBF8;
  --text-secondary: #B8B0CC;
  --text-muted: #6B6384;
}
body.dark-mode .card,
body.dark-mode .settings-item,
body.dark-mode .history-card,
body.dark-mode .stat-card,
body.dark-mode .dream-input-area,
body.dark-mode .wisdom-card {
  background: #1A1230;
  border-color: rgba(108,99,255,0.15);
}
body.dark-mode .modal-content {
  background: #1A1230;
}
body.dark-mode .alert-box {
  background: #1A1230;
}
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
  color: #F0EBF8 !important;
  background: #1A1230 !important;
  border-color: rgba(108,99,255,0.25) !important;
}
body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
  color: rgba(240,235,248,0.45);
}
body.dark-mode select option {
  background: #1A1230;
  color: #F0EBF8;
}
/* Dark mode'da inline background:white override */
body.dark-mode [style*="background:white"],
body.dark-mode [style*="background: white"],
body.dark-mode [style*="background:#fff"],
body.dark-mode [style*="background: #fff"] {
  background: #1A1230 !important;
  color: #F0EBF8 !important;
}
body.dark-mode .mini-header {
  background: rgba(15,10,30,0.95);
}
body.dark-mode .lamp-banner::after {
  background: linear-gradient(180deg, transparent 20%, #0F0A1E 100%);
}
body.dark-mode .screen {
  background: #0F0A1E;
}
body.dark-mode .price-card {
  background: #1A1230;
  border-color: rgba(108,99,255,0.2);
}
body.dark-mode .settings-group-title {
  color: #6B6384;
}

/* ===== CUSTOM SELECT (DROPDOWN) — tema uyumlu ===== */
.cs-host { position: relative; cursor: pointer; z-index: 1; }
.cs-host.cs-open { z-index: 500; }
.cs-host .cs-label { flex: 1; font-family: var(--font); font-size: 0.85rem; color: var(--text-main); }
.cs-host .cs-label.cs-placeholder { color: var(--text-muted); }
.cs-host .cs-arrow { color: var(--text-muted); font-size: 0.7rem; transition: transform 0.2s ease; margin-left: 4px; }
.cs-host.cs-open .cs-arrow { transform: rotate(180deg); color: var(--primary); }
.cs-host.cs-open { border-color: var(--primary) !important; box-shadow: 0 0 0 3px rgba(108,99,255,0.12); }
.cs-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--bg-secondary);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(108,99,255,0.18), 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid rgba(108,99,255,0.12);
  max-height: 260px; overflow-y: auto;
  z-index: 500;
  opacity: 0; pointer-events: none;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top center;
  transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 6px;
}
.cs-host.cs-open .cs-options {
  opacity: 1; pointer-events: auto;
  transform: translateY(0) scale(1);
}
.cs-host.cs-flip-up .cs-options {
  top: auto;
  bottom: calc(100% + 6px);
  transform-origin: bottom center;
  transform: translateY(6px) scale(0.98);
}
.cs-host.cs-flip-up.cs-open .cs-options {
  transform: translateY(0) scale(1);
}
.cs-option {
  padding: 12px 14px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text-main);
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.cs-option:hover { background: var(--accent-light); }
.cs-option.cs-selected { background: var(--accent-light); color: var(--primary); font-weight: 600; }
.cs-option.cs-selected::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.75rem;
  color: var(--primary);
}
body.dark-mode .cs-options {
  background: #1A1230;
  border-color: rgba(108,99,255,0.25);
  box-shadow: 0 14px 40px rgba(0,0,0,0.5);
}
body.dark-mode .cs-option:hover { background: rgba(108,99,255,0.15); }
body.dark-mode .cs-option.cs-selected { background: rgba(108,99,255,0.2); }

/* ===== SETUP SCREEN — subtle premium dokunuslar ===== */
/* Baslik ikonu halo glow (mini versiyon) */
.setup-icon-halo {
  position: relative;
}
.setup-icon-halo::before,
.setup-icon-halo::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(18px);
  z-index: -1;
  opacity: 0.55;
}
.setup-icon-halo::before {
  background: radial-gradient(circle, #A78BFA 0%, transparent 70%);
  animation: setup-halo-pulse-a 5s ease-in-out infinite;
}
.setup-icon-halo::after {
  background: radial-gradient(circle, #EC4899 0%, transparent 70%);
  animation: setup-halo-pulse-b 6.5s ease-in-out infinite;
}
@keyframes setup-halo-pulse-a {
  0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.45; }
  50% { transform: scale(1.25) translate(4px, -3px); opacity: 0.7; }
}
@keyframes setup-halo-pulse-b {
  0%, 100% { transform: scale(1.15) translate(0, 0); opacity: 0.35; }
  50% { transform: scale(0.9) translate(-5px, 4px); opacity: 0.6; }
}

/* Adim gecis animasyonu */
#setup-screen [id^="setup-step-"] {
  animation: setup-step-fade-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes setup-step-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Progress bar shimmer */
#setup-progress {
  background: linear-gradient(90deg, var(--primary) 0%, #8B7DFF 50%, var(--primary) 100%) !important;
  background-size: 200% 100% !important;
  animation: setup-progress-shimmer 3s linear infinite;
}
@keyframes setup-progress-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Devam/Tamamla butonu breathing pulse */
#setup-screen .btn-primary {
  animation: setup-btn-breathe 2.8s ease-in-out infinite;
}
@keyframes setup-btn-breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 6px 20px rgba(108,99,255,0.35); }
  50% { transform: scale(1.015); box-shadow: 0 8px 28px rgba(108,99,255,0.5); }
}

/* Kucuk ekran (iPhone SE, kucuk Android) — compact mode */
@media (max-height: 720px) {
  #setup-screen > div { padding: 20px 20px !important; }
  #setup-screen > div > div:first-child { margin-bottom: 6px !important; }
  #setup-screen .setup-icon-halo {
    transform: scale(0.72);
    margin-top: 0 !important;
    margin-bottom: 2px !important;
  }
  #setup-screen [id^="setup-step-"] > div:first-child { margin-bottom: 12px !important; }
  #setup-screen [id^="setup-step-"] h2 { font-size: 1.1rem !important; margin-bottom: 4px !important; }
  #setup-screen [id^="setup-step-"] p { font-size: 0.72rem !important; line-height: 1.4 !important; }
  #setup-screen [id^="setup-step-"] > div[style*="margin-bottom:16px"],
  #setup-screen [id^="setup-step-"] > div[style*="margin-bottom: 16px"] {
    margin-bottom: 10px !important;
  }
  #setup-screen [id^="setup-step-"] label { font-size: 0.7rem !important; margin-bottom: 4px !important; }
  #setup-screen [id^="setup-step-"] .card { padding: 10px !important; }
  #setup-screen [id^="setup-step-"] #job-chips { gap: 4px !important; margin-bottom: 6px !important; }
  #setup-screen [id^="setup-step-"] .job-chip { padding: 5px 10px !important; font-size: 0.75rem !important; }
  #setup-screen .btn-primary { padding: 12px !important; margin-bottom: 4px !important; font-size: 0.95rem !important; }
  #setup-screen [id^="setup-step-"] > p { margin-top: 2px !important; font-size: 0.6rem !important; }
  /* Progress + header daha sikisik */
  #setup-screen > div > div:first-child { margin-bottom: 4px !important; }
  #setup-screen #setup-progress { height: 3px !important; }
  #setup-screen > div > div[style*="height:4px"] { margin-bottom: 16px !important; height: 3px !important; }
}

/* ===== ANA EKRAN ANIMASYONLARI ===== */

/* 1. "Ruyami Yorumla" butonu breathing pulse */
#btn-analyze:not([data-premium-mode="1"]) {
  animation: btn-analyze-breathe 2.8s ease-in-out infinite;
}
@keyframes btn-analyze-breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 20px rgba(55,48,163,0.4); }
  50% { transform: scale(1.015); box-shadow: 0 8px 28px rgba(55,48,163,0.55); }
}

/* 2. Takvim emoji pop-in — rüya kaydı olan günlerdeki emoji */
.calendar-day-with-emoji .calendar-emoji,
.cal-dream-emoji {
  animation: cal-emoji-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes cal-emoji-pop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* 3. Stats sayı count-up — opaklık ile soft reveal (sayisal icerik JS'ten gelir) */
.stat-count-up {
  display: inline-block;
  animation: stat-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes stat-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Premium taç pulse (greeting üstündeki crown — sadece premium kullanici) */
@keyframes premCrownPulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.12); filter: drop-shadow(0 3px 10px rgba(245,158,11,0.7)); }
}

/* 4. Rozet kazanma kutlama */
.badge-celebrate {
  animation: badge-pop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes badge-pop {
  0% { transform: scale(1); }
  30% { transform: scale(1.15) rotate(-3deg); filter: drop-shadow(0 0 20px #FBBF24); }
  60% { transform: scale(1.08) rotate(2deg); filter: drop-shadow(0 0 15px #F59E0B); }
  100% { transform: scale(1); filter: none; }
}
/* Konfeti partikulleri */
.confetti-container {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 9999; overflow: hidden;
}
.confetti-piece {
  position: absolute; width: 8px; height: 8px;
  background: var(--primary); border-radius: 2px;
  animation: confetti-fall 2.2s linear forwards;
}
@keyframes confetti-fall {
  0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* 5. Gunun Bilgeligi yildiz twinkle */
.wisdom-star-twinkle {
  animation: wisdom-twinkle 3.5s ease-in-out infinite;
  transform-origin: center;
}
@keyframes wisdom-twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 4px rgba(108,99,255,0.3)); }
  50% { transform: scale(1.12) rotate(10deg); filter: drop-shadow(0 0 14px rgba(251,191,36,0.85)); }
}

/* 6. Baslik ikonlari icin halo glow (generic, her ekran icin) */
.screen-title-halo {
  position: relative;
}
.screen-title-halo::before,
.screen-title-halo::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(14px);
  z-index: -1;
  opacity: 0.5;
}
.screen-title-halo::before {
  background: radial-gradient(circle, #A78BFA 0%, transparent 70%);
  animation: screen-halo-pulse-a 5s ease-in-out infinite;
}
.screen-title-halo::after {
  background: radial-gradient(circle, #EC4899 0%, transparent 70%);
  animation: screen-halo-pulse-b 6.5s ease-in-out infinite;
}
@keyframes screen-halo-pulse-a {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.2); opacity: 0.65; }
}
@keyframes screen-halo-pulse-b {
  0%, 100% { transform: scale(1.15); opacity: 0.35; }
  50% { transform: scale(0.92); opacity: 0.55; }
}

/* 7. Son Ruyalar kart tap feedback (daha belirgin) */
.dream-card-mini {
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.dream-card-mini:active {
  transform: scale(0.97) !important;
  box-shadow: 0 8px 24px rgba(108,99,255,0.35) !important;
}

/* ====== Voice overlay guzelletirmeleri (kayit sirasinda gosterilen wow effects) ====== */
.vc-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.vc-star {
  position: absolute;
  bottom: -10px;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, #FCD34D 0%, rgba(252,211,77,0.4) 60%, transparent 100%);
  border-radius: 50%;
  animation: vcStarRise linear infinite;
  opacity: 0;
}
@keyframes vcStarRise {
  0%   { transform: translateY(0) scale(0.6); opacity: 0; }
  10%  { opacity: 0.9; }
  60%  { opacity: 0.7; }
  100% { transform: translateY(-280px) scale(1.1); opacity: 0; }
}
.vc-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(192,132,252,0.55);
  width: 72px;
  height: 72px;
  animation: vcRingPulse 2.4s ease-out infinite;
}
.vc-ring-1 { animation-delay: 0s; }
.vc-ring-2 { animation-delay: 0.8s; }
.vc-ring-3 { animation-delay: 1.6s; }
@keyframes vcRingPulse {
  0%   { transform: scale(1); opacity: 0.85; border-color: rgba(192,132,252,0.65); }
  70%  { opacity: 0.18; }
  100% { transform: scale(2.4); opacity: 0; border-color: rgba(252,211,77,0.4); }
}

/* Radial bars — mikrofon ikonu etrafinda dairesel dagilim */
.vc-radial {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
/* YENI badge pulse */
.new-badge-pulse {
  animation: newBadgePulse 1.8s ease-in-out infinite;
}
@keyframes newBadgePulse {
  0%   { box-shadow: 0 0 0 0 rgba(168,85,247,0.6); transform: scale(1); }
  50%  { box-shadow: 0 0 0 8px rgba(168,85,247,0);  transform: scale(1.06); }
  100% { box-shadow: 0 0 0 0 rgba(168,85,247,0);   transform: scale(1); }
}

.vc-radial-bar {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(180deg, #c084fc 0%, #6d28d9 100%);
  box-shadow: 0 0 8px rgba(192,132,252,0.6);
  /* Mikrofon (96px daire) ortadan baslangic — 72px disa it, sonra rotate */
  transform: translate(-50%, -50%) rotate(var(--ang)) translateY(-72px);
  transform-origin: center center;
}

/* ====== UNIVERSAL TAP STATES (Apple/Spotify pattern — premium hissi) ====== */
button, .btn-primary, .btn-secondary, .btn-share, .btn-ghost,
.nav-item, .cta-banner, .settings-item, .source-chip, .tone-chip,
.bottom-nav-add, [role="button"] {
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.12s ease, box-shadow 0.18s ease;
  touch-action: manipulation;
}
button:active:not(:disabled),
.btn-primary:active, .btn-secondary:active, .btn-share:active, .btn-ghost:active,
.nav-item:active, .cta-banner:active, .settings-item:active,
.source-chip:active, .tone-chip:active, .bottom-nav-add:active,
[role="button"]:active {
  transform: scale(0.96);
}

/* ====== SCREEN TRANSITION (sekme degisiminde fade-up) ====== */
.screen.active {
  animation: screenFadeUp 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes screenFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ====== SKELETON SHIMMER (yukleme placeholder'lari icin) ====== */
.skeleton {
  background: linear-gradient(110deg, rgba(124,58,237,0.08) 8%, rgba(124,58,237,0.18) 18%, rgba(124,58,237,0.08) 33%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s linear infinite;
  border-radius: 14px;
}
body.dark-mode .skeleton {
  background: linear-gradient(110deg, rgba(192,132,252,0.06) 8%, rgba(192,132,252,0.16) 18%, rgba(192,132,252,0.06) 33%);
  background-size: 200% 100%;
}
@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
}
.skeleton-image i {
  font-size: 2rem;
  opacity: 0.7;
  animation: skeletonIconPulse 2s ease-in-out infinite;
}
@keyframes skeletonIconPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

/* ====== ACCESSIBILITY: Reduce motion (sistem ayarinda "animasyonu azalt" acikken) ====== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
