/*
 * Kaave Falı - Custom Mystical CSS
 * Deep purple and gold glassmorphic design system.
 */

:root {
  --bg-dark: #0f051d;
  --bg-card: rgba(29, 15, 51, 0.7);
  --primary-gold: #f3c623;
  --primary-gold-glow: rgba(243, 198, 35, 0.4);
  --accent-magenta: #854f6c;
  --accent-purple: #3d1b5a;
  --text-white: #f5f2f9;
  --text-muted: #bdaec6;
  --text-gold: #ffd700;
  --font-mystical: 'Outfit', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-glass: rgba(243, 198, 35, 0.15);
}

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

body {
  font-family: var(--font-mystical);
  background-color: var(--bg-dark);
  color: var(--text-white);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Stardust Background Particles */
.mystical-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: radial-gradient(circle at 50% 50%, #200f35 0%, var(--bg-dark) 100%);
  overflow: hidden;
}

.stardust-container {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 40px),
    radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 30px),
    radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 40px);
  background-size: 550px 550px, 350px 350px, 250px 250px;
  background-position: 0 0, 40px 60px, 130px 270px;
  opacity: 0.18;
  animation: stardustDrift 120s linear infinite;
}

@keyframes stardustDrift {
  from { background-position: 0 0, 40px 60px, 130px 270px; }
  to { background-position: 550px 1100px, 740px 760px, 1130px 570px; }
}

/* Nebula clouds */
.nebula-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(133, 79, 108, 0.25) 0%, rgba(32, 15, 53, 0) 70%);
  filter: blur(50px);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  animation: floatNebula 20s ease-in-out infinite alternate;
}

.nebula-glow:nth-child(2) {
  bottom: -100px;
  right: -100px;
  background: radial-gradient(circle, rgba(61, 27, 90, 0.4) 0%, rgba(32, 15, 53, 0) 70%);
  animation-duration: 30s;
  animation-delay: -5s;
}

@keyframes floatNebula {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.15); }
}

/* App Wrapper - Native Mobile Aspect Ratio constraint */
.app-container {
  width: 100%;
  max-width: 480px;
  height: 100vh;
  min-height: 568px;
  background: rgba(15, 5, 29, 0.45);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  border-left: 1px solid var(--border-glass);
  border-right: 1px solid var(--border-glass);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(2px);
}

@media (min-width: 481px) {
  .app-container {
    height: 92vh;
    border-radius: 36px;
    border: 1.5px solid var(--border-glass);
  }
}

/* Global Header styling */
header {
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(20, 7, 40, 0.85);
  border-bottom: 1px solid var(--border-glass);
  z-index: 10;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--primary-gold);
  object-fit: cover;
}

.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.brand-name span {
  color: var(--primary-gold);
}

.credits-badge {
  background: rgba(243, 198, 35, 0.12);
  border: 1px solid var(--primary-gold);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.85rem;
  color: var(--text-gold);
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

/* Screen Transitions */
.screen {
  flex: 1;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 20px;
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: var(--transition-smooth);
}

.screen.active {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translateY(0);
}

.screen > * {
  flex-shrink: 0;
}

/* Scrollbars */
.screen::-webkit-scrollbar {
  width: 4px;
}

.screen::-webkit-scrollbar-thumb {
  background: rgba(243, 198, 35, 0.2);
  border-radius: 10px;
}

/* 1. Splash Screen */
#splash-screen {
  justify-content: center;
  align-items: center;
  text-align: center;
  background: radial-gradient(circle at center, #2e1150 0%, var(--bg-dark) 100%);
  padding: 40px;
}

.splash-logo-container {
  position: relative;
  width: 180px;
  height: 180px;
  margin-bottom: 24px;
}

.splash-logo-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-gold-glow) 0%, transparent 70%);
  animation: pulsateGlow 3s ease-in-out infinite;
}

.splash-logo {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid var(--primary-gold);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  object-fit: cover;
}

@keyframes pulsateGlow {
  0% { transform: scale(1.0); opacity: 0.4; }
  50% { transform: scale(1.2); opacity: 0.8; }
  100% { transform: scale(1.0); opacity: 0.4; }
}

.splash-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.splash-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.mystical-btn {
  background: linear-gradient(135deg, var(--primary-gold) 0%, #d4a717 100%);
  color: #1a0b2e;
  border: none;
  border-radius: 30px;
  padding: 14px 44px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--primary-gold-glow);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mystical-btn:hover, .mystical-btn:active {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(243, 198, 35, 0.6);
}

.mystical-btn-secondary {
  background: transparent;
  color: var(--text-white);
  border: 1px solid var(--border-glass);
  border-radius: 30px;
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mystical-btn-secondary:hover, .mystical-btn-secondary:active {
  background: rgba(255,255,255,0.05);
  border-color: var(--primary-gold);
}

/* 2. Home Screen */
.home-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 24px;
  backdrop-filter: blur(12px);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.home-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
}

.avatar-large-container {
  width: 100px;
  height: 100px;
  margin: 0 auto 16px auto;
  position: relative;
}

.avatar-large {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--primary-gold);
  object-fit: cover;
}

.teller-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-white);
}

.teller-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.4;
}

.reward-section {
  display: flex;
  background: rgba(20, 7, 40, 0.6);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.reward-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.reward-icon {
  color: var(--primary-gold);
}

/* History preview lists */
.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.history-item:hover, .history-item:active {
  background: rgba(243, 198, 35, 0.05);
  border-color: rgba(243, 198, 35, 0.3);
}

.history-item-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.history-item-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.empty-history {
  text-align: center;
  color: var(--text-muted);
  padding: 30px;
  font-size: 0.9rem;
  background: rgba(255,255,255,0.02);
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,0.08);
}

/* 3. Upload View */
.step-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  position: relative;
}

.step-indicator::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: rgba(255,255,255,0.08);
  z-index: 1;
}

.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2a1148;
  border: 2px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
  z-index: 2;
  transition: var(--transition-smooth);
}

.step-dot.active {
  background: var(--primary-gold);
  border-color: var(--primary-gold);
  color: #1a0b2e;
  box-shadow: 0 0 15px var(--primary-gold-glow);
}

.step-dot.completed {
  background: #4caf50;
  border-color: #4caf50;
  color: #fff;
}

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

.photo-upload-card {
  aspect-ratio: 1 / 1.25;
  background: rgba(255,255,255,0.03);
  border: 2px dashed rgba(243, 198, 35, 0.25);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.photo-upload-card:hover {
  background: rgba(243, 198, 35, 0.04);
  border-color: var(--primary-gold);
}

.photo-upload-card svg {
  color: var(--primary-gold);
  margin-bottom: 8px;
}

.photo-upload-card span {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.photo-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

.photo-remove-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  font-size: 0.7rem;
}

.simulation-hint {
  background: rgba(243, 198, 35, 0.08);
  border: 1px solid rgba(243, 198, 35, 0.2);
  border-radius: 16px;
  padding: 14px;
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 24px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.simulation-hint svg {
  color: var(--primary-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Modal for Simulated cup choices */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #1d0f33;
  border: 1.5px solid var(--border-glass);
  border-radius: 24px;
  max-width: 400px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
  text-align: center;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-gold);
}

.modal-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

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

.modal-option-btn {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 12px;
  border-radius: 14px;
  color: var(--text-white);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.modal-option-btn:hover {
  background: rgba(243, 198, 35, 0.08);
  border-color: var(--primary-gold);
}

/* 4. Details Form Screen */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-gold);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--text-white);
  font-family: var(--font-mystical);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-gold);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 8px rgba(243, 198, 35, 0.25);
}

.gender-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.chip-btn {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 10px;
  color: var(--text-white);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.chip-btn.active {
  background: var(--primary-gold);
  color: #1a0b2e;
  border-color: var(--primary-gold);
  box-shadow: 0 4px 12px var(--primary-gold-glow);
}

.textarea-control {
  resize: none;
  height: 90px;
}

/* 5. Loading Screen */
#loading-screen {
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
}

.spinning-cup-container {
  width: 140px;
  height: 140px;
  margin-bottom: 30px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cup-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px dashed var(--primary-gold);
  animation: spin 8s linear infinite;
}

.coffee-cup-icon {
  width: 70px;
  height: 70px;
  color: var(--primary-gold);
  animation: floatCup 3s ease-in-out infinite;
}

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

@keyframes floatCup {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(4deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.loading-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.loading-step-text {
  color: var(--text-gold);
  font-size: 0.95rem;
  margin-bottom: 30px;
  min-height: 24px;
}

.progress-bar-container {
  width: 100%;
  max-width: 280px;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-magenta), var(--primary-gold));
  transition: width 0.4s ease;
  border-radius: 10px;
}

/* 6. Result Screen */
.result-header {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.result-header-logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid var(--primary-gold);
}

.result-header-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.result-header-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Tab controls */
.tabs-navigation {
  display: flex;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 20px;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 4px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 10px;
  transition: var(--transition-smooth);
  text-align: center;
}

.tab-btn.active {
  background: var(--bg-card);
  color: var(--primary-gold);
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  border: 1px solid rgba(243, 198, 35, 0.15);
}

.tab-pane {
  display: none;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #ebdff5;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 20px;
  border-radius: 20px;
  margin-bottom: 20px;
  min-height: 150px;
  white-space: pre-line; /* preserves paragraph breaks */
}

.tab-pane.active {
  display: block;
}

/* Metrics panel */
.scores-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.score-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 12px;
  text-align: center;
}

.score-card-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 600;
}

.score-circle-container {
  position: relative;
  width: 60px;
  height: 60px;
  margin: 0 auto;
}

.score-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-gold);
}

.score-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-svg-bg {
  fill: none;
  stroke: rgba(255,255,255,0.06);
  stroke-width: 4px;
}

.score-svg-fill {
  fill: none;
  stroke: var(--primary-gold);
  stroke-width: 4px;
  stroke-linecap: round;
  stroke-dasharray: 176; /* 2 * PI * r (r=28) */
  stroke-dashoffset: 176;
  transition: stroke-dashoffset 1.5s ease-out;
}

/* Lucky section */
.lucky-panel {
  background: linear-gradient(135deg, rgba(133, 79, 108, 0.15) 0%, rgba(61, 27, 90, 0.15) 100%);
  border: 1px dashed var(--primary-gold);
  padding: 18px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.lucky-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.08);
}

.lucky-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.lucky-row:first-child {
  padding-top: 0;
}

.lucky-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.lucky-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-gold);
  flex: 1;
  text-align: right;
  word-break: break-word;
}

/* History view extra styling */
.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.history-clear-btn {
  background: transparent;
  border: none;
  color: #ff5252;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Navigation footer menu (Sticky at bottom) */
footer.navigation-bar {
  background: rgba(20, 7, 40, 0.95);
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  z-index: 10;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.nav-item.active {
  color: var(--primary-gold);
}

.nav-item svg {
  width: 22px;
  height: 22px;
}

/* Auth Screen Card & Inputs Styling */
.auth-card {
  width: 100%;
  background: var(--bg-card);
  border: 1.5px solid var(--border-glass);
  border-radius: 28px;
  padding: 30px 24px;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  text-align: center;
  margin: auto 0;
}

.auth-header {
  margin-bottom: 24px;
}

.auth-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--primary-gold);
  margin-bottom: 12px;
}

.auth-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.auth-toggle-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 20px;
}

.auth-toggle-link {
  color: var(--primary-gold);
  cursor: pointer;
  text-decoration: underline;
  font-weight: 600;
}

/* ==========================================================================
   v1.2 Premium Styling (Teller Selection, Tarot, Angel Card, Sihirli Küre)
   ========================================================================== */

/* Teller Selection */
.teller-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 8px;
}

.teller-chip {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 12px 16px;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: left;
  width: 100%;
}

.teller-chip.active {
  background: rgba(243, 198, 35, 0.08);
  border-color: var(--primary-gold);
  box-shadow: 0 4px 15px rgba(243, 198, 35, 0.15);
}

.teller-chip-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.15);
  object-fit: cover;
}

.teller-chip.active .teller-chip-img {
  border-color: var(--primary-gold);
}

.teller-chip-info {
  display: flex;
  flex-direction: column;
}

.teller-chip-info strong {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 2px;
}

.teller-chip-info span {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.jasmine-filter {
  filter: hue-rotate(110deg) saturate(1.2);
}

.kadir-filter {
  filter: grayscale(100%) contrast(1.1);
}

/* Voice synthesis speak button style */
.speak-btn-floating {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(243, 198, 35, 0.1);
  border: 1px solid var(--primary-gold);
  color: var(--text-gold);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-smooth);
}

.speak-btn-floating:hover {
  background: var(--primary-gold);
  color: #1a0b2e;
  box-shadow: 0 0 10px var(--primary-gold-glow);
}

.speak-btn-floating.speaking {
  background: #ff5252;
  border-color: #ff5252;
  color: #fff;
  animation: pulseSpeak 1.5s infinite;
}

@keyframes pulseSpeak {
  0% { box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(255, 82, 82, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 82, 82, 0); }
}

.speak-btn-container {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.speak-btn-floating.inline-btn {
  position: static;
  margin-left: auto;
}

/* Tarot Screen */
.tarot-deck {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 10px 0 20px 0;
  padding: 10px;
  background: rgba(0,0,0,0.15);
  border-radius: 16px;
  border: 1px solid var(--border-glass);
}

@media (max-width: 420px) {
  .tarot-deck {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tarot-card-item {
  aspect-ratio: 1 / 1.5;
  background: linear-gradient(135deg, #2b114d 0%, #0f051c 100%);
  border: 1.5px solid rgba(243, 198, 35, 0.25);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 3px 6px rgba(0,0,0,0.4);
}

.tarot-card-item::after {
  content: '★';
  color: var(--primary-gold);
  font-size: 1.1rem;
  opacity: 0.4;
}

.tarot-card-item:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: var(--primary-gold);
  box-shadow: 0 6px 12px rgba(243, 198, 35, 0.35);
}

.tarot-card-item.selected {
  border-color: #4caf50;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
  opacity: 0.65;
  transform: translateY(-2px);
}

.tarot-status {
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-gold);
  margin: 12px 0;
}

.tarot-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.tarot-slot {
  aspect-ratio: 1 / 1.5;
  border: 1.5px dashed rgba(255,255,255,0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(0,0,0,0.2);
  text-align: center;
  padding: 8px;
  font-weight: 600;
}

.tarot-slot.filled {
  border-color: var(--primary-gold);
  border-style: solid;
  background: linear-gradient(135deg, #3d1b5a 0%, #1d0f33 100%);
  color: var(--text-gold);
  box-shadow: 0 4px 15px rgba(243, 198, 35, 0.2);
  animation: cardDeal 0.4s ease-out;
}

@keyframes cardDeal {
  from { transform: scale(0.8) rotate(-5deg); opacity: 0; }
  to { transform: scale(1) rotate(0deg); opacity: 1; }
}

.tarot-result-box {
  animation: slideUpFade 0.5s ease-out forwards;
}

/* Angel Card draw view */
.angel-draw-card {
  width: 170px;
  height: 250px;
  perspective: 1000px;
  margin: 20px auto 10px auto;
  cursor: pointer;
}

.card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.angel-draw-card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  width: 100%;
  height: 100%;
  position: absolute;
  backface-visibility: hidden;
  border-radius: 18px;
  border: 2px solid var(--primary-gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.card-front {
  background: linear-gradient(135deg, #2b114d 0%, #0f051c 100%);
}

.card-back {
  background: linear-gradient(135deg, #1d0f33 0%, #3d1b5a 100%);
  transform: rotateY(180deg);
  text-align: center;
}

/* Sihirli Küre Crystal Ball */
.crystal-ball-container {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}

.crystal-ball {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8) 0%, rgba(243, 198, 35, 0.3) 30%, rgba(61, 27, 90, 0.7) 70%, #0f051d 100%);
  border: 4px solid var(--border-glass);
  position: relative;
  cursor: pointer;
  box-shadow: 0 0 35px rgba(133, 79, 108, 0.5), inset 0 0 25px rgba(243, 198, 35, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.crystal-ball:hover {
  box-shadow: 0 0 50px rgba(243, 198, 35, 0.5), inset 0 0 35px rgba(243, 198, 35, 0.35);
  transform: scale(1.02);
}

.ball-glow {
  position: absolute;
  top: 8%;
  left: 8%;
  width: 84%;
  height: 84%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.ball-reflection {
  position: absolute;
  top: 12px;
  left: 28px;
  width: 25px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: rotate(-15deg);
  pointer-events: none;
}

.ball-answer {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(243, 198, 35, 0.8), 0 0 15px #000;
  text-align: center;
  padding: 12px;
  line-height: 1.4;
  z-index: 2;
  pointer-events: none;
  animation: textPulse 2.5s infinite;
}

@keyframes textPulse {
  0% { opacity: 0.75; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.02); }
  100% { opacity: 0.75; transform: scale(0.98); }
}

.crystal-ball.shaking {
  animation: shakeEffect 0.55s ease-in-out;
  box-shadow: 0 0 70px rgba(243, 198, 35, 0.7), inset 0 0 45px rgba(243, 198, 35, 0.4);
}

@keyframes shakeEffect {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  12%, 36%, 60%, 84% { transform: translate(-5px, 3px) rotate(-4deg); }
  24%, 48%, 72% { transform: translate(5px, -3px) rotate(4deg); }
}

/* Mystic tab displays */
.mystic-tab-content {
  display: none;
}

.mystic-tab-content.active {
  display: block;
}

/* ==========================================================================
   Desktop Responsive Split-Screen Layout (For Standard Web viewports)
   ========================================================================== */

@media (min-width: 900px) {
  /* Expand mobile container into a normal desktop wrapper */
  .app-container {
    max-width: 1200px;
    height: 94vh;
    border-radius: 28px;
    border: 1.5px solid var(--border-glass);
    flex-direction: column;
    align-items: stretch;
    margin: auto;
  }
  
  .screen {
    padding: 30px;
  }
  
  /* Desktop Header Navigation */
  .desktop-nav-menu {
    display: flex !important;
    gap: 16px;
    align-items: center;
    margin: 0 auto;
  }

  .desktop-nav-item {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 14px;
    transition: var(--transition-smooth);
    border-radius: 12px;
  }

  .desktop-nav-item:hover, .desktop-nav-item.active {
    color: var(--primary-gold);
    background: rgba(243, 198, 35, 0.08);
  }

  /* Hide bottom footer navigation completely on desktop */
  footer.navigation-bar {
    display: none !important;
  }

  /* Home Screen layout - Grid Columns */
  #home-screen.active {
    display: grid !important;
    grid-template-columns: 1.45fr 1fr !important;
    gap: 24px !important;
    align-content: start;
    overflow-y: auto;
  }

  .home-hero-desktop {
    grid-column: 1 / 3 !important;
    margin-bottom: 12px !important;
  }

  .services-grid {
    grid-column: 1 !important;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
    margin-bottom: 0 !important;
  }

  .home-sidebar-widgets {
    grid-column: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }

  /* Result screen grid split */
  #result-screen.active {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 20px;
    align-content: start;
    overflow-y: auto;
  }

  #result-screen .result-header {
    grid-column: 1 / 3;
    margin-bottom: 0;
  }

  #result-screen .scores-container {
    grid-column: 2;
    grid-row: 2;
    margin-bottom: 0;
  }

  #result-screen .tabs-navigation {
    grid-column: 1;
    grid-row: 2;
    margin-bottom: 0;
    align-self: center;
  }

  #result-screen .tab-pane-container {
    grid-column: 1;
    grid-row: 3;
    margin-bottom: 0;
  }

  #result-screen .lucky-panel {
    grid-column: 2;
    grid-row: 3;
    margin-bottom: 0;
  }

  #result-screen > div[style*="display:flex"] {
    grid-column: 1 / 3;
    grid-row: 4;
  }
  
  /* Mystic Screen Side Panel layout */
  #mystic-screen.active {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    align-content: start;
    overflow-y: auto;
  }
  
  #mystic-screen .tabs-navigation {
    flex-direction: column;
    height: auto;
    padding: 8px;
    gap: 8px;
    grid-column: 1;
    grid-row: 1;
    background: rgba(0,0,0,0.2);
  }
  
  #mystic-screen .tabs-navigation .tab-btn {
    flex: none;
    width: 100%;
    padding: 12px 10px;
    text-align: left;
  }
  
  #mystic-screen .mystic-tab-content {
    grid-column: 2;
    grid-row: 1;
  }
  
  /* Upload Screen grid layout */
  #upload-screen.active {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    align-content: start;
    overflow-y: auto;
  }
  
  #upload-screen .step-indicator {
    grid-column: 1 / 3;
    margin-bottom: 12px;
  }
  
  #upload-screen h3, #upload-screen p {
    grid-column: 1 / 3;
  }
  
  #upload-screen .photos-grid {
    grid-column: 1;
    grid-row: 3 / 5;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 0;
  }
  
  #upload-screen .photo-upload-card {
    aspect-ratio: 16 / 9;
    flex-direction: row;
    gap: 16px;
    padding: 16px;
  }
  
  #upload-screen .photo-upload-card svg {
    margin-bottom: 0;
  }

  #upload-screen .simulation-hint {
    grid-column: 2;
    grid-row: 3;
    margin-bottom: 0;
    align-self: start;
  }
  
  #upload-screen > div[style*="margin-top:auto"] {
    grid-column: 2;
    grid-row: 4;
    align-self: end;
  }
  
  /* Form page split */
  #form-screen.active {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    align-content: start;
    overflow-y: auto;
  }
  
  #form-screen .step-indicator {
    grid-column: 1 / 3;
  }
  
  #form-screen h3 {
    grid-column: 1 / 3;
  }
  
  #form-screen form {
    grid-column: 1 / 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  
  #form-screen form .form-group:nth-child(6) {
    grid-column: 1 / 3;
  }
  
  #form-screen form .form-group:nth-child(7) {
    grid-column: 1 / 3;
  }
  
  #form-screen form > div[style*="display:flex"] {
    grid-column: 1 / 3;
    flex-direction: row !important;
  }
}

/* ==========================================================================
   v1.2 Portal Redesign & Services Grid Styling
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  
  .home-hero-desktop {
    display: block !important;
  }
  
  .main-coffee-action-card {
    display: none !important;
  }
  
  /* Expand the app container to feel like a full portal website on desktop */
  .app-container {
    max-width: 1200px !important;
    height: 94vh !important;
    border-radius: 28px !important;
  }
  
  .screen {
    padding: 40px !important;
  }
}

.service-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.service-card:hover {
  transform: translateY(-6px);
  background: rgba(243, 198, 35, 0.05);
  border-color: var(--primary-gold);
  box-shadow: 0 8px 25px rgba(243, 198, 35, 0.18);
}

.service-icon-bg {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(133, 79, 108, 0.25) 0%, rgba(61, 27, 90, 0.25) 100%);
  border: 1px solid rgba(243, 198, 35, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gold);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon-bg {
  background: var(--primary-gold);
  color: #1a0b2e;
  box-shadow: 0 0 12px var(--primary-gold-glow);
}

.service-info h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.service-info p {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin: 4px 0 0 0;
}

/* Astrological Compatibility Card Input Styles */
.compatibility-inputs select {
  background: rgba(26, 11, 46, 0.4) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border-radius: 12px !important;
  cursor: pointer;
}

.compatibility-inputs select:focus {
  border-color: var(--primary-gold) !important;
  box-shadow: 0 0 10px rgba(243, 198, 35, 0.2);
}

/* Anonymous Tarot Slot styling */
.tarot-slot.filled {
  background: linear-gradient(135deg, #1d0f33 0%, #2b114d 100%) !important;
  border: 1.5px solid var(--primary-gold) !important;
  color: var(--text-gold) !important;
  box-shadow: 0 4px 15px rgba(243, 198, 35, 0.25) !important;
  background-image: radial-gradient(circle, rgba(243, 198, 35, 0.15) 1px, transparent 1px) !important;
  background-size: 8px 8px !important;
}

.tarot-slot.filled span, .tarot-slot.filled strong {
  display: none !important;
}

.tarot-slot.filled::before {
  content: '★';
  font-size: 1.6rem;
  color: var(--primary-gold);
  text-shadow: 0 0 8px var(--primary-gold-glow);
  animation: cardGlowPulse 2s infinite ease-in-out;
}

@keyframes cardGlowPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; text-shadow: 0 0 15px var(--primary-gold); }
}

/* Bacı's Dream bubble style */
.bacı-dream-bubble-container {
  animation: slideUpFade 0.4s ease-out forwards;
}

.bacı-dream-bubble {
  border-color: rgba(243, 198, 35, 0.25) !important;
  background: rgba(30, 12, 54, 0.7) !important;
}

.bacı-dream-avatar {
  box-shadow: 0 4px 12px rgba(243, 198, 35, 0.3);
}

/* Astrology Tab result styling */
#astrology-result-panel {
  animation: slideUpFade 0.45s ease-out forwards;
}

/* Horoscope Tab layouts inside Daily Horoscope Card */
.horo-tab-btn {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: var(--text-muted) !important;
  transition: all 0.25s ease !important;
  font-weight: 500;
  text-align: center;
}
.horo-tab-btn.active {
  background: var(--primary-gold) !important;
  color: #1a0b2e !important;
  border-color: var(--primary-gold) !important;
  font-weight: 700 !important;
  box-shadow: 0 0 10px var(--primary-gold-glow) !important;
}
.horo-pane {
  display: none;
  animation: slideUpFade 0.35s ease-out forwards;
}
.horo-pane.active {
  display: block;
}

/* Astroloji Birth Chart Cards Layout */
.astro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 16px 0;
}
@media (min-width: 600px) {
  .astro-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.astro-card-sub {
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.astro-card-sub:hover {
  transform: translateY(-3px);
  border-color: var(--primary-gold);
}
.astro-card-sub-header {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-gold);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}
.astro-card-sub p {
  font-size: 0.76rem;
  line-height: 1.45;
  color: #ebdff5;
  margin: 0;
}
.astro-element-box {
  background: rgba(243, 198, 35, 0.03);
  border: 1px solid rgba(243, 198, 35, 0.15);
  border-radius: 16px;
  padding: 16px;
  margin-top: 16px;
  text-align: left;
}
.astro-element-box strong {
  font-size: 0.9rem;
  color: var(--text-gold);
  display: block;
  margin-bottom: 6px;
}
.astro-element-box p {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #ebdff5;
  margin: 0;
}

/* Tarot Result Card Hover Effect */
.tarot-result-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 12px 32px rgba(243, 198, 35, 0.25) !important;
  border-color: var(--primary-gold) !important;
}
.tarot-result-card:hover img {
  opacity: 1 !important;
}

/* Beating heart compatibility animations */
@keyframes heartBeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.12); }
  28% { transform: scale(1); }
  42% { transform: scale(1.12); }
  70% { transform: scale(1); }
}

/* Dream Journal Controls styling */
.emotion-btn {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.emotion-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  transform: translateY(-2px);
}
.emotion-btn.active {
  background: rgba(243, 198, 35, 0.12) !important;
  border-color: var(--primary-gold) !important;
  box-shadow: 0 4px 12px rgba(243, 198, 35, 0.15);
}

.clarity-btn {
  transition: all 0.25s ease !important;
}
.clarity-btn:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.05) !important;
}
.clarity-btn.active {
  background: var(--bg-card) !important;
  border: 1px solid rgba(243, 198, 35, 0.15) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

