/* ════════════════════════════════════════════════════════════
   تحدي الوفرة المالية — 21 يوم
   Premium Dark Luxury Theme
   ════════════════════════════════════════════════════════════ */

/* ─── CSS Variables ──────────────────────────────────────── */
:root {
  --bg-primary: #06060f;
  --bg-secondary: #0d0d1a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(255, 255, 255, 0.08);
  --gold-primary: #d4af37;
  --gold-light: #f0d060;
  --gold-dark: #b8960c;
  --gold-gradient: linear-gradient(135deg, #d4af37, #f0d060);
  --gold-glow: 0 0 30px rgba(212, 175, 55, 0.3);
  --text-primary: #ede8df;
  --text-secondary: #8a8195;
  --text-muted: #5a5468;
  --success: #4ade80;
  --success-glow: rgba(74, 222, 128, 0.2);
  --danger: #f87171;
  --purple: #a78bfa;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Cairo', sans-serif;
  --font-body: 'Tajawal', sans-serif;
}

/* ─── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ─── Screen Management ──────────────────────────────────── */
.screen {
  display: none;
  min-height: 100vh;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.screen.active {
  display: flex;
  flex-direction: column;
  opacity: 1;
  animation: screenFadeIn 0.6s ease forwards;
  overflow-y: auto;
}

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

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.3; }
.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #0a0a1a;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.45);
}

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

.btn-glow::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent, rgba(255,255,255,0.15), transparent 30%);
  animation: btnGlowSpin 4s linear infinite;
}

@keyframes btnGlowSpin {
  to { transform: rotate(360deg); }
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--gold-primary);
  border: 1px solid var(--border-glass);
}

.btn-danger {
  background: rgba(248, 113, 113, 0.1);
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.2);
  font-size: 0.9rem;
  padding: 12px 24px;
}

.btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-icon:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.btn-complete {
  width: 100%;
  margin-top: 24px;
  margin-bottom: 40px;
  padding: 18px;
  font-size: 1.1rem;
  border-radius: var(--radius-xl);
}

/* ─── Glass Card ─────────────────────────────────────────── */
.glass-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ═══════════════════════════════════════════════════════════
   LOADING / SPLASH SCREEN — PREMIUM
   ═══════════════════════════════════════════════════════════ */
#loading-screen {
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 30%, rgba(212,175,55,0.06) 0%, var(--bg-primary) 60%);
  z-index: 100;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Subtle floating particles */
#loading-screen::before,
#loading-screen::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.15), transparent 70%);
  animation: splashFloat 6s ease-in-out infinite;
}
#loading-screen::before {
  width: 300px; height: 300px;
  top: -80px; right: -60px;
  animation-delay: 0s;
}
#loading-screen::after {
  width: 200px; height: 200px;
  bottom: -40px; left: -40px;
  animation-delay: 3s;
}
@keyframes splashFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50% { transform: translateY(-20px) scale(1.1); opacity: 0.6; }
}

.loading-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
  z-index: 2;
  padding: 40px 20px;
}

.premium-loader {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Subtle backdrop glow orb */
.glow-orb {
  position: absolute;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(212,175,55,0.4), transparent 70%);
  border-radius: 50%;
  animation: loadPulse 3s ease-in-out infinite alternate;
  z-index: 0;
}

/* Base style for the loader SVGs */
.loader-circle {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  fill: none;
  stroke-linecap: round;
  z-index: 1;
}

/* The majestic outer ring */
.loader-circle.outer circle {
  stroke: var(--gold-light);
  stroke-width: 2.5;
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
  transform-origin: center;
  animation: drawOuter 4s ease-in-out infinite, rotateOuter 6s linear infinite;
  filter: drop-shadow(0 0 6px rgba(212,175,55,0.6));
}

/* The subtle inner ring revolving counter-clockwise */
.loader-circle.inner circle {
  stroke: var(--gold-dark);
  stroke-width: 1.5;
  stroke-dasharray: 230;
  stroke-dashoffset: 230;
  transform-origin: center;
  animation: drawInner 3s ease-in-out infinite, rotateInner 4s linear infinite reverse;
  opacity: 0.6;
}

@keyframes drawOuter {
  0% { stroke-dashoffset: 280; }
  50% { stroke-dashoffset: 50; }
  100% { stroke-dashoffset: 280; }
}
@keyframes rotateOuter {
  to { transform: rotate(360deg); }
}

@keyframes drawInner {
  0% { stroke-dashoffset: 230; }
  50% { stroke-dashoffset: 80; }
  100% { stroke-dashoffset: 230; }
}
@keyframes rotateInner {
  to { transform: rotate(360deg); }
}

.loading-emoji {
  font-size: 3.2rem;
  animation: loadPulse 2s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(212,175,55,0.5));
  z-index: 2;
}

@keyframes loadPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.15); opacity: 1; filter: drop-shadow(0 6px 18px rgba(212,175,55,0.8)); }
}

.loading-title {
  font-size: 2.6rem;
  font-weight: 900;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
  margin-bottom: 8px;
  text-shadow: none;
  filter: drop-shadow(0 2px 8px rgba(212,175,55,0.3));
  animation: titleReveal 1s ease 0.3s both;
}
@keyframes titleReveal {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.loading-tagline {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 400;
  margin-bottom: 28px;
  opacity: 0;
  animation: taglineReveal 1s ease 0.8s both;
  letter-spacing: 0.5px;
}
@keyframes taglineReveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 0.8; transform: translateY(0); }
}

/* Premium progress bar */
.loading-subtitle {
  color: var(--text-muted);
  margin-top: 0;
  font-size: 0.75rem;
  letter-spacing: 1px;
  opacity: 0;
  animation: taglineReveal 1s ease 1.2s both;
  margin-bottom: 8px;
}

.splash-progress {
  width: 140px;
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
  margin: 0 auto;
  opacity: 0;
  animation: taglineReveal 0.6s ease 1.5s both;
}
.splash-progress-bar {
  width: 0%;
  height: 100%;
  background: var(--gold-gradient);
  border-radius: 4px;
  animation: progressFill 3.5s ease-in-out 1.6s both;
  box-shadow: 0 0 8px rgba(212,175,55,0.4);
}
@keyframes progressFill {
  0% { width: 0%; }
  30% { width: 40%; }
  60% { width: 70%; }
  90% { width: 90%; }
  100% { width: 100%; }
}

/* Developer Credits — Premium */
.splash-dev {
  padding: 24px 40px;
  text-align: center;
  margin-top: 32px;
  opacity: 0;
  animation: devReveal 1.2s ease 2.2s both;
}
@keyframes devReveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.splash-dev::before {
  content: '◆';
  display: block;
  font-size: 0.5rem;
  color: var(--gold-primary);
  margin-bottom: 14px;
  letter-spacing: 12px;
  opacity: 0.6;
}
.splash-dev-label {
  font-size: 0.55rem;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 8px;
  font-weight: 500;
}
.splash-dev-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light), var(--gold-primary));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
  animation: shimmerName 3s ease-in-out infinite;
  filter: drop-shadow(0 1px 4px rgba(212,175,55,0.2));
}
@keyframes shimmerName {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ═══════════════════════════════════════════════════════════
   SCREEN 1: LANDING
   ═══════════════════════════════════════════════════════════ */
#screen-landing {
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 24px;
  overflow: hidden;
}

.particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold-primary);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 6s ease-in-out infinite;
}

@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  20% { opacity: 0.6; }
  80% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-20vh) scale(1); }
}

.landing-container {
  text-align: center;
  max-width: 500px;
  position: relative;
  z-index: 1;
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--gold-light);
  margin-bottom: 32px;
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,175,55,0.15); }
  50% { box-shadow: 0 0 0 10px rgba(212,175,55,0); }
}

.landing-title {
  margin-bottom: 20px;
}

.title-line {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.title-line.gold-text {
  font-size: 2.8rem;
  font-weight: 900;
  margin: 4px 0;
  letter-spacing: -1px;
}

.title-line.small {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-secondary);
  font-family: var(--font-body);
}

.landing-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

.landing-description strong {
  color: var(--gold-primary);
}

.landing-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 40px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--text-primary);
  transition: var(--transition);
}

.feature-item:hover {
  border-color: rgba(212, 175, 55, 0.3);
  background: var(--bg-card-hover);
}

.feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.btn-arrow {
  flex-shrink: 0;
}

.landing-note {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 16px;
}

/* ═══════════════════════════════════════════════════════════
   SCREEN 2: ASSESSMENT
   ═══════════════════════════════════════════════════════════ */
#screen-assessment {
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.assessment-container {
  max-width: 500px;
  width: 100%;
  text-align: center;
}

.assessment-header {
  margin-bottom: 32px;
}

.assessment-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 12px;
}

.assessment-progress-fill {
  height: 100%;
  background: var(--gold-gradient);
  border-radius: 2px;
  transition: width 0.5s ease;
  width: 20%;
}

.assessment-step {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.assessment-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.assessment-title {
  font-size: 1.3rem;
  color: var(--gold-primary);
  margin-bottom: 24px;
}

.assessment-question {
  font-size: 1.15rem;
  font-weight: 600;
  font-family: var(--font-heading);
  margin-bottom: 28px;
  line-height: 1.6;
}

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

.option-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  text-align: right;
}

.option-btn:hover {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.08);
  transform: translateX(-4px);
}

.option-btn:active {
  transform: scale(0.98);
}

.option-btn .option-emoji {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.option-btn.selected {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.12);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}

.assessment-ref {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 20px;
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════
   SCREEN 3: RESULT
   ═══════════════════════════════════════════════════════════ */
#screen-result {
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.result-container {
  max-width: 460px;
  text-align: center;
}

.result-score-ring {
  width: 160px;
  height: 160px;
  margin: 0 auto 28px;
  position: relative;
}

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

.ring-bg {
  fill: none;
  stroke: rgba(255,255,255,0.06);
  stroke-width: 8;
}

.ring-fill {
  fill: none;
  stroke: var(--gold-primary);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 339.292;
  stroke-dashoffset: 339.292;
  transition: stroke-dashoffset 1.5s ease;
}

.ring-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ring-emoji {
  font-size: 2rem;
}

.ring-score {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-primary);
}

.result-title {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.result-description {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.result-quote {
  padding: 20px;
  background: rgba(212, 175, 55, 0.06);
  border-right: 3px solid var(--gold-primary);
  border-radius: var(--radius-sm);
  font-style: italic;
  color: var(--gold-light);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 8px;
}

.result-ref {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ═══════════════════════════════════════════════════════════
   SCREEN 4: DASHBOARD
   ═══════════════════════════════════════════════════════════ */
#screen-dashboard {
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  width: 100%;
  box-sizing: border-box;
}

.dashboard-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px 16px 100px;
  width: 100%;
  box-sizing: border-box;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  margin-bottom: 16px;
}

.dash-logo {
  font-size: 1.2rem;
  font-weight: 800;
}

/* Today Card */
.today-card {
  padding: 28px 24px;
  margin-bottom: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.15);
}

.today-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
}

.today-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--gold-primary);
  margin-bottom: 12px;
}

.today-day {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.today-title {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.today-theme {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

/* Progress Section */
.progress-section {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding: 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}

.progress-ring-container {
  position: relative;
  width: 90px;
  min-width: 90px;
  height: 90px;
  flex-shrink: 0;
}

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

.progress-ring .ring-fill {
  stroke-dasharray: 326.726;
  stroke-dashoffset: 326.726;
  transition: stroke-dashoffset 1s ease;
}

.progress-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.progress-percent {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold-primary);
}

.progress-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.progress-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.stat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Tip Card */
.tip-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  margin-bottom: 28px;
}

.tip-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.tip-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Section Titles */
.section-title {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  font-weight: 600;
}

/* Days Grid */
.days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 28px;
}

.day-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.day-cell:hover {
  border-color: rgba(212, 175, 55, 0.3);
  transform: scale(1.05);
}

.day-cell.completed {
  background: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.3);
  color: var(--success);
}

.day-cell.completed::after {
  content: '✓';
  position: absolute;
  top: 2px;
  left: 2px;
  font-size: 0.55rem;
  color: var(--success);
}

.day-cell.current {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
  animation: currentDayPulse 2s ease-in-out infinite;
}

@keyframes currentDayPulse {
  0%, 100% { box-shadow: 0 0 15px rgba(212,175,55,0.2); }
  50% { box-shadow: 0 0 25px rgba(212,175,55,0.35); }
}

.day-cell.locked {
  opacity: 0.35;
  cursor: default;
}

.day-cell-icon {
  font-size: 0.75rem;
  margin-bottom: 2px;
}

/* Achievements */
.achievements-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
}

.achievement-item {
  padding: 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition);
}

.achievement-item.unlocked {
  border-color: rgba(212, 175, 55, 0.3);
  background: rgba(212, 175, 55, 0.06);
}

.achievement-item.locked {
  opacity: 0.4;
}

.achievement-icon {
  font-size: 1.8rem;
  margin-bottom: 6px;
  display: block;
}

.achievement-item.locked .achievement-icon {
  filter: grayscale(1);
}

.achievement-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.achievement-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   SCREEN 5: CAPSULE
   ═══════════════════════════════════════════════════════════ */
#screen-capsule {
  padding: 0;
}

.capsule-container {
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 20px 20px;
}

.capsule-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 20px;
  position: sticky;
  top: 0;
  background: var(--bg-primary);
  z-index: 10;
}

.capsule-day-badge {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.1);
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.capsule-icon-large {
  text-align: center;
  font-size: 3.5rem;
  margin-bottom: 16px;
  animation: iconBounce 2.5s ease-in-out infinite;
}

.capsule-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.capsule-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.capsule-chapter {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-glass);
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid var(--border-glass);
}

.capsule-theme-tag {
  font-size: 0.8rem;
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.08);
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid rgba(212, 175, 55, 0.15);
}

/* Sections */
.capsule-section {
  margin-bottom: 28px;
}

.capsule-section-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.capsule-text {
  font-size: 1.02rem;
  line-height: 2;
  color: var(--text-secondary);
  white-space: pre-line;
}

/* Insight */
.capsule-insight {
  display: flex;
  gap: 14px;
  padding: 18px;
  margin-bottom: 28px;
  border-color: rgba(212, 175, 55, 0.15);
}

.insight-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.insight-text {
  font-size: 0.95rem;
  color: var(--gold-light);
  font-weight: 500;
  line-height: 1.8;
}

/* Task Card */
.task-card {
  padding: 18px;
}

.task-text {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-primary);
  white-space: pre-line;
}

/* Affirmation */
.affirmation-card {
  padding: 20px;
  background: rgba(167, 139, 250, 0.06);
  border: 1px solid rgba(167, 139, 250, 0.15);
  border-radius: var(--radius-lg);
}

.affirmation-preset {
  font-size: 1.05rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--purple);
  margin-bottom: 16px;
  line-height: 1.7;
  text-align: center;
}

.affirmation-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  resize: none;
  transition: var(--transition);
  direction: rtl;
}

.affirmation-input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.15);
}

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

/* Quote */
.capsule-quote {
  padding: 20px;
  background: rgba(212, 175, 55, 0.04);
  border-right: 3px solid var(--gold-primary);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.capsule-quote p {
  font-style: italic;
  color: var(--gold-light);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 8px;
}

.quote-source {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   SCREEN 6: PROGRESS PAGE
   ═══════════════════════════════════════════════════════════ */
#screen-progress {
  padding: 0;
}

.progress-page-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 16px 20px 40px;
}

.progress-page-title {
  font-size: 1.1rem;
}

.progress-mindset {
  padding: 20px;
  margin-bottom: 28px;
  text-align: center;
}

.mindset-emoji {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 8px;
}

.mindset-type {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.mindset-score-text {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Journal */
.journal-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.journal-item {
  padding: 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
}

.journal-day {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 6px;
}

.journal-affirmation {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
}

.journal-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Reset */
.reset-section {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid var(--border-glass);
}

/* ═══════════════════════════════════════════════════════════
   ACHIEVEMENT TOAST
   ═══════════════════════════════════════════════════════════ */
.achievement-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-120px);
  z-index: 1000;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.achievement-toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  min-width: 280px;
}

.toast-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.toast-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--gold-primary);
  display: block;
}

.toast-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════════
   CONFETTI CANVAS
   ═══════════════════════════════════════════════════════════ */
#confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}

/* ═══════════════════════════════════════════════════════════
   BOTTOM NAVIGATION
   ═══════════════════════════════════════════════════════════ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: none;
  align-items: center;
  justify-content: space-around;
  background: rgba(6, 6, 15, 0.95);
  border-top: 1px solid var(--border-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  z-index: 50;
}

.bottom-nav.visible {
  display: flex;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.65rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.nav-item svg {
  transition: var(--transition);
}

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

.nav-item.active::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--gold-gradient);
  border-radius: 2px;
}

.page-with-nav {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px 16px 100px;
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}

.page-header {
  text-align: center;
  padding: 16px 0 28px;
}

.page-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ═══════════════════════════════════════════════════════════
   BOOK LIBRARY
   ═══════════════════════════════════════════════════════════ */
.chapters-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chapter-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.chapter-card:hover {
  border-color: rgba(212, 175, 55, 0.3);
  background: var(--bg-card-hover);
  transform: translateX(-4px);
}

.chapter-card-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.08);
  border-radius: var(--radius-sm);
}

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

.chapter-card-num {
  font-size: 0.7rem;
  color: var(--gold-primary);
  font-weight: 600;
}

.chapter-card-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 2px;
}

.chapter-card-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
}

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

.lesson-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: rgba(74, 222, 128, 0.06);
  border: 1px solid rgba(74, 222, 128, 0.15);
  border-radius: var(--radius-md);
}

.lesson-num {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 222, 128, 0.15);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--success);
  flex-shrink: 0;
}

.lesson-text {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   BUDGET CALCULATOR
   ═══════════════════════════════════════════════════════════ */
.budget-input-card {
  padding: 24px;
  margin-bottom: 24px;
  text-align: center;
}

.budget-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.budget-input-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.budget-input {
  width: 200px;
  padding: 14px;
  background: rgba(255,255,255,0.04);
  border: 2px solid var(--border-glass);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-primary);
  text-align: center;
  direction: ltr;
  transition: var(--transition);
}

.budget-input:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}

.budget-input::placeholder { color: var(--text-muted); font-weight: 400; }
.budget-input::-webkit-outer-spin-button,
.budget-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.budget-currency {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 700;
}

.budget-breakdown {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
  animation: screenFadeIn 0.5s ease;
}

.budget-item {
  padding: 18px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
}

.budget-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.budget-item-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.budget-item-icon { font-size: 1.5rem; }

.budget-item-percent {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.budget-item-amount {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gold-primary);
}

.budget-bar {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.budget-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s ease;
}

.essentials-fill { background: #60a5fa; }
.wants-fill { background: #a78bfa; }
.savings-fill { background: var(--success); }

.budget-item-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.budget-yearly {
  padding: 20px;
  margin-bottom: 24px;
  text-align: center;
  animation: screenFadeIn 0.5s ease;
}

.budget-yearly-title {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.budget-yearly-stats {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.yearly-stat { text-align: center; }

.yearly-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--success);
  margin-bottom: 4px;
}

.yearly-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.budget-tips {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.budget-tip-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
}

.budget-tip-icon { font-size: 1.2rem; flex-shrink: 0; }

.budget-tip-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Wealth Seed Counter */
.wealth-seed-card {
  text-align: center;
  padding: 28px 20px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(212,175,55,0.08), rgba(212,175,55,0.02));
  border: 1px solid rgba(212,175,55,0.25);
}
.wealth-seed-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.wealth-seed-amount {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--gold-primary);
  letter-spacing: -1px;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}
.wealth-seed-amount.pulse-glow {
  animation: pulseGlow 1.5s ease;
}
@keyframes pulseGlow {
  0% { transform: scale(1); text-shadow: none; }
  50% { transform: scale(1.08); text-shadow: 0 0 30px rgba(212,175,55,0.5); }
  100% { transform: scale(1); text-shadow: none; }
}
.wealth-seed-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Savings Rate Slider */
.savings-rate-card {
  padding: 24px;
  margin-bottom: 20px;
  text-align: center;
  animation: screenFadeIn 0.4s ease;
}
.savings-slider-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 16px 0 12px;
  justify-content: center;
}
.savings-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 70%;
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}
.savings-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold-primary);
  box-shadow: 0 0 12px rgba(212,175,55,0.4);
  cursor: pointer;
  transition: transform 0.2s;
}
.savings-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
.savings-rate-display {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gold-primary);
  min-width: 50px;
}
.savings-rate-hint {
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

/* Daily Tracker */
.daily-tracker {
  padding: 24px;
  margin-bottom: 20px;
  animation: screenFadeIn 0.4s ease;
}
.daily-tracker-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 18px;
  text-align: center;
}
.daily-tracker-inputs {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.daily-input-group {
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  background: rgba(255,255,255,0.02);
}
.daily-input-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.daily-input-group.saved { border-color: rgba(212,175,55,0.3); }
.daily-input-group.gave { border-color: rgba(76,175,80,0.3); }
.daily-input-group.spent { border-color: rgba(255,82,82,0.2); }
.daily-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.daily-input-wrap input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
}
.daily-input-wrap input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px rgba(212,175,55,0.1);
}
.daily-input-wrap input::-webkit-outer-spin-button,
.daily-input-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; }
.daily-currency {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  min-width: 30px;
}
.btn-save-daily {
  display: none;
  width: 100%;
  padding: 14px;
  margin-top: 16px;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: #000;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-save-daily:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,175,55,0.3);
}
.daily-feedback {
  display: none;
  margin-top: 14px;
  padding: 14px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-primary);
  background: rgba(212,175,55,0.06);
  border-radius: var(--radius-md);
  border: 1px solid rgba(212,175,55,0.15);
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* History */
.budget-history {
  margin-bottom: 24px;
}
.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 12px;
}
.history-date {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  min-width: 80px;
}
.history-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.history-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
}
.history-tag.saved { background: rgba(212,175,55,0.12); color: var(--gold-primary); }
.history-tag.gave { background: rgba(76,175,80,0.12); color: #4CAF50; }
.history-tag.spent { background: rgba(255,82,82,0.12); color: #FF5252; }

/* ═══════════════════════════════════════════════════════════
   HABIT TRACKER v4.0
   ═══════════════════════════════════════════════════════════ */
.habits-hero {
  padding: 24px 20px;
  background: linear-gradient(135deg, rgba(212,175,55,0.08), rgba(212,175,55,0.02));
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: var(--radius-xl);
  margin-bottom: 20px;
  position: relative; overflow: hidden;
}
.habits-hero::before {
  content: ''; position: absolute; top: -50%; right: -50%;
  width: 100%; height: 100%;
  background: radial-gradient(circle, rgba(212,175,55,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.habits-hero-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.habits-date {
  font-family: var(--font-heading);
  font-size: 0.8rem; color: var(--text-secondary);
}
.habits-streak-badge {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 50px;
  background: rgba(255,107,0,0.1);
  border: 1px solid rgba(255,107,0,0.2);
  font-size: 0.8rem; font-weight: 700; color: #ff6b00;
}
.habits-hero-center {
  display: flex; align-items: center; gap: 20px;
}
.habits-progress-ring {
  position: relative; width: 90px; height: 90px; flex-shrink: 0;
}
.habits-progress-ring svg {
  width: 100%; height: 100%; transform: rotate(-90deg);
}
.habits-progress-ring .ring-fill {
  stroke-dasharray: 213.628; stroke-dashoffset: 213.628;
  transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.habits-progress-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.habits-status-emoji { font-size: 1.4rem; }
.habits-progress-text {
  font-family: var(--font-heading); font-size: 0.75rem;
  font-weight: 800; color: var(--gold-primary);
}
.habits-hero-info { flex: 1; }
.habits-score-label {
  font-family: var(--font-heading); font-size: 1.1rem;
  font-weight: 800; margin-bottom: 4px; display: block;
}
.habits-week-summary {
  font-size: 0.78rem; color: var(--text-muted); margin-bottom: 8px;
}
.habits-week-bar {
  width: 100%; height: 5px; border-radius: 3px;
  background: rgba(255,255,255,0.06); overflow: hidden;
}
.habits-week-bar-fill {
  height: 100%; border-radius: 3px;
  background: var(--gold-gradient); transition: width 1s ease;
}
.habits-achievements {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 2px 0 12px; margin-bottom: 16px;
  scrollbar-width: none;
}
.habits-achievements::-webkit-scrollbar { display: none; }
.achievement-badge {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; min-width: 60px; padding: 10px 6px;
  background: var(--bg-glass); border: 1px solid var(--border-glass);
  border-radius: var(--radius-md); font-size: 1.2rem;
  opacity: 0.3; filter: grayscale(1); transition: var(--transition);
}
.achievement-badge.unlocked {
  opacity: 1; filter: none;
  border-color: rgba(212,175,55,0.3);
  background: rgba(212,175,55,0.06);
}
.achievement-badge-label {
  font-size: 0.55rem; color: var(--text-muted);
  text-align: center; line-height: 1.2;
}
.achievement-badge.unlocked .achievement-badge-label {
  color: var(--gold-primary);
}
.habits-section-title {
  font-family: var(--font-heading); font-size: 0.85rem;
  font-weight: 700; color: var(--text-secondary);
  margin-bottom: 12px; padding-right: 4px;
}
.habits-list { display: flex; flex-direction: column; gap: 8px; }
.habit-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--bg-glass); border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  cursor: pointer; transition: all 0.3s ease;
  position: relative; overflow: hidden;
}
.habit-item::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(74,222,128,0.08); opacity: 0;
  transition: opacity 0.3s ease;
}
.habit-item.checked::after { opacity: 1; }
.habit-item:active { transform: scale(0.98); }
.habit-item.checked { border-color: rgba(74,222,128,0.25); }
.habit-checkbox {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--border-glass);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.3s ease;
  font-size: 0.75rem; position: relative; z-index: 1;
}
.habit-item.checked .habit-checkbox {
  border-color: var(--success); background: var(--success);
  color: #0a0a1a; font-weight: 900;
  animation: habitCheck 0.4s ease;
}
@keyframes habitCheck {
  0% { transform: scale(1); }
  40% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
.habit-info { flex: 1; min-width: 0; position: relative; z-index: 1; }
.habit-title {
  font-family: var(--font-heading); font-size: 0.85rem; font-weight: 700;
  transition: opacity 0.3s;
}
.habit-item.checked .habit-title { opacity: 0.5; }
.habit-desc { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }
.habit-meta { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.habit-book-ref {
  font-size: 0.6rem; color: var(--gold-primary); opacity: 0.6;
  background: rgba(212,175,55,0.08); padding: 2px 8px; border-radius: 50px;
}
.habit-week-dots { display: flex; gap: 3px; }
.habit-week-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.habit-week-dot.filled { background: var(--success); }
.habit-week-dot.today { border: 1px solid var(--gold-primary); }
.habit-icon { font-size: 1.3rem; flex-shrink: 0; position: relative; z-index: 1; }
.habits-section { margin-top: 24px; }
.heatmap-grid {
  display: grid; grid-template-columns: auto repeat(7, 1fr);
  gap: 3px; font-size: 0.55rem;
}
.heatmap-header {
  font-size: 0.55rem; color: var(--text-muted);
  text-align: center; padding: 2px 0;
}
.heatmap-label {
  font-size: 0.5rem; color: var(--text-muted);
  display: flex; align-items: center; padding-right: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 50px;
}
.heatmap-cell {
  aspect-ratio: 1; border-radius: 3px;
  background: rgba(255,255,255,0.04); transition: background 0.3s;
}
.heatmap-cell.level-1 { background: rgba(74,222,128,0.15); }
.heatmap-cell.level-2 { background: rgba(74,222,128,0.35); }
.heatmap-cell.level-3 { background: rgba(74,222,128,0.6); }
.heatmap-cell.today-cell { border: 1px solid var(--gold-primary); }
.mini-calendar {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 4px; margin-top: 8px;
}
.cal-header {
  font-size: 0.6rem; color: var(--text-muted);
  text-align: center; padding: 4px 0; font-weight: 600;
}
.cal-day {
  aspect-ratio: 1; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; color: var(--text-muted);
  background: rgba(255,255,255,0.02);
}
.cal-day.empty { background: none; }
.cal-day.green { background: rgba(74,222,128,0.2); color: var(--success); }
.cal-day.yellow { background: rgba(255,193,7,0.15); color: #ffc107; }
.cal-day.red { background: rgba(239,68,68,0.12); color: #ef4444; }
.cal-day.today-cal {
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary); font-weight: 700;
}
.cal-day.future { opacity: 0.3; }
.habits-stats-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px;
}
.habits-stat-card {
  padding: 14px; background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md); text-align: center;
}
.habits-stat-value {
  font-family: var(--font-heading); font-size: 1.2rem;
  font-weight: 800; color: var(--gold-primary); display: block;
}
.habits-stat-label {
  font-size: 0.65rem; color: var(--text-muted); margin-top: 2px;
}
/* ═══════════════════════════════════════════════════════════
   INSPIRATION GALLERY (PREMIUM)
   ═══════════════════════════════════════════════════════════ */
.inspiration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 10px 4px;
}

.premium-story-card {
  position: relative;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  display: flex;
  flex-direction: column;
  min-height: 380px;
}

.premium-story-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 20px rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.4);
}

.story-hero-image {
  height: 200px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.story-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.premium-story-card:hover .story-hero-image img {
  transform: scale(1.08);
}

.story-hero-image::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(10, 10, 12, 0) 0%, rgba(10, 10, 12, 0.8) 100%);
}

.story-icon-badge {
  position: absolute;
  bottom: 12px;
  right: 16px;
  background: rgba(10, 10, 12, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.premium-story-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.story-card-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.story-card-subtitle {
  font-size: 0.85rem;
  color: var(--gold-primary);
  margin-bottom: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.story-card-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.story-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-glass);
  padding-top: 12px;
}

.story-card-action {
  color: var(--gold-primary);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s ease;
}

.premium-story-card:hover .story-card-action {
  gap: 10px;
}

/* Story Detail View Enhancements */
.story-hero-header {
  position: relative;
  width: 100%;
  height: 350px;
  margin-bottom: -40px;
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.story-hero-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.story-hero-header::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, var(--bg-primary) 0%, rgba(10, 10, 12, 0.4) 100%);
}

.capsule-header.on-hero {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: transparent;
  border: none;
}

.story-meta {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.principles-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.principle-tag {
  padding: 8px 16px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 50px;
  font-size: 0.82rem;
  color: var(--gold-primary);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 380px) {
  .title-line.gold-text { font-size: 2.2rem; }
  .landing-features { grid-template-columns: 1fr; }
  .days-grid { gap: 5px; }
  .day-cell { font-size: 0.75rem; }
  .achievements-grid { grid-template-columns: 1fr; }
  .nav-item { font-size: 0.6rem; padding: 6px 8px; }
  .weekly-grid { gap: 4px; }
}

@media (min-width: 600px) {
  .title-line.gold-text { font-size: 3.2rem; }
  .capsule-title { font-size: 1.8rem; }
  .capsule-text { font-size: 1.08rem; }
}

/* ─── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(212,175,55,0.2); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(212,175,55,0.4); }

/* ─── Selection ──────────────────────────────────────────── */
::selection {
  background: rgba(212, 175, 55, 0.3);
  color: var(--text-primary);
}

/* ─── Currency Selector ─────────────────────────────────── */
.currency-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.currency-btn {
  flex: 1;
  min-width: 70px;
  padding: 10px 12px;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.currency-btn:hover {
  border-color: rgba(212, 175, 55, 0.3);
  color: var(--gold-primary);
}

.currency-btn.active {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

/* ═══════════════════════════════════════════════════════════
   APP HEADER
   ═══════════════════════════════════════════════════════════ */
.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(6, 6, 15, 0.92);
  border-bottom: 1px solid var(--border-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-56px);
  transition: all 0.4s ease;
}
.app-header.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.header-lang-btn {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.78rem; font-weight: 600;
  font-family: var(--font-heading);
  text-decoration: none;
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  transition: var(--transition);
  flex-shrink: 0;
}
.header-lang-btn:hover {
  background: rgba(212, 175, 55, 0.15);
}
.header-brand {
  display: flex; align-items: center; gap: 10px;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.header-logo {
  width: 30px; height: 30px;
  border-radius: 8px; object-fit: cover;
}
.header-title {
  font-family: var(--font-heading);
  font-size: 1.05rem; font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; white-space: nowrap;
}
.header-action-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
  flex-shrink: 0;
}
.header-action-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}
.header-actions {
  display: flex; align-items: center; gap: 8px;
}
.header-music-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-primary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
  flex-shrink: 0;
  opacity: 0.7;
}
.header-music-btn:hover {
  opacity: 1;
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.4);
}
.header-music-btn.playing {
  opacity: 1;
  animation: headerMusicPulse 2s ease-in-out infinite;
}
@keyframes headerMusicPulse {
  0%, 100% { border-color: rgba(212, 175, 55, 0.2); }
  50% { border-color: var(--gold-primary); box-shadow: 0 0 8px rgba(212, 175, 55, 0.3); }
}

/* ─── Screen offset for fixed header ──────────────────────── */
.screen:not(#loading-screen) { padding-top: 64px; }
#screen-landing { padding-top: 80px; }

/* ═══════════════════════════════════════════════════════════
   DASHBOARD GREETING
   ═══════════════════════════════════════════════════════════ */
.dashboard-greeting {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0 8px; margin-bottom: 8px;
}
.greeting-emoji { font-size: 1.8rem; }
.greeting-text {
  font-size: 0.92rem; color: var(--text-secondary); line-height: 1.6;
}
.greeting-text strong { color: var(--gold-primary); font-weight: 700; }

/* ═══════════════════════════════════════════════════════════
   PROFILE PAGE
   ═══════════════════════════════════════════════════════════ */
.profile-container {
  max-width: 500px; margin: 0 auto; padding: 0 20px 100px;
}
.profile-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  margin-bottom: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--gold-primary);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.profile-back-btn:hover {
  background: rgba(212,175,55,0.1);
  border-color: rgba(212,175,55,0.3);
  transform: translateX(-3px);
}
.profile-page-title {
  text-align: center; font-size: 1.3rem; font-weight: 800;
  margin-bottom: 24px;
}
.profile-mindset-card {
  text-align: center; padding: 28px 24px; margin-bottom: 24px;
  border: 1px solid rgba(212, 175, 55, 0.15);
  position: relative; overflow: hidden;
}
.profile-mindset-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--gold-gradient);
}
.profile-mindset-emoji { font-size: 3rem; margin-bottom: 12px; display: block; }
.profile-mindset-type {
  font-family: var(--font-heading); font-size: 1.3rem;
  font-weight: 800; color: var(--gold-primary); margin-bottom: 4px;
}
.profile-mindset-score {
  font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 16px;
}
.profile-retake-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 50px;
  font-size: 0.85rem; font-weight: 600;
  font-family: var(--font-heading); cursor: pointer;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--gold-primary); transition: var(--transition);
}
.profile-retake-btn:hover { background: rgba(212, 175, 55, 0.15); }

.profile-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px; margin-bottom: 24px;
}
.profile-stat-card {
  text-align: center; padding: 16px 8px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
}
.profile-stat-value {
  font-family: var(--font-heading); font-size: 1.4rem;
  font-weight: 900; color: var(--gold-primary); display: block;
}
.profile-stat-label {
  font-size: 0.7rem; color: var(--text-secondary); margin-top: 4px;
}
.profile-section-title {
  font-size: 1rem; color: var(--text-secondary);
  margin-bottom: 12px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.profile-settings-card {
  padding: 0; margin-bottom: 24px; overflow: hidden;
}
.profile-setting-item {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-glass);
}
.profile-setting-item:last-child { border-bottom: none; }
.profile-setting-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; color: var(--text-primary);
}
.setting-icon { font-size: 1.2rem; }
.profile-currency-btns {
  display: flex; gap: 6px;
}
.profile-currency-btns .currency-btn {
  min-width: auto; padding: 6px 12px; font-size: 0.8rem; flex: none;
}
.profile-lang-link {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 50px;
  font-size: 0.82rem; font-weight: 600;
  text-decoration: none; color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  transition: var(--transition);
}
.profile-journal-preview {
  padding: 16px 20px; margin-bottom: 24px; cursor: pointer;
}
.profile-journal-preview:hover { background: var(--bg-card-hover); }
.profile-version {
  text-align: center; color: var(--text-muted);
  font-size: 0.75rem; padding: 16px 0;
}
/* Developer footer */
.developer-footer {
  text-align: center; padding: 20px 0 0;
  border-top: 1px solid var(--border-glass);
  margin-top: 20px;
}
.developer-footer p {
  font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px;
}
.developer-name {
  font-family: var(--font-heading); font-size: 0.95rem;
  font-weight: 800; color: var(--gold-primary);
  letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════════════════
   MUSIC PLAYER
   ═══════════════════════════════════════════════════════════ */
.music-panel {
  position: fixed; top: 56px; right: 12px;
  width: 280px; max-width: calc(100vw - 24px);
  background: rgba(13, 13, 26, 0.97);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  z-index: 200; overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  animation: panelSlideIn 0.25s ease;
}
@keyframes panelSlideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.music-panel-header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-glass);
  font-size: 0.9rem; font-weight: 700; color: var(--gold-primary);
}
.music-panel-close {
  background: none; border: none;
  color: var(--text-secondary); cursor: pointer; font-size: 1.1rem;
}
.music-track {
  display: block; width: 100%; padding: 12px 16px;
  background: none; border: none;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-secondary); font-size: 0.85rem;
  font-family: var(--font-body); text-align: right;
  cursor: pointer; transition: var(--transition);
}
.music-track:hover, .music-track.active {
  color: var(--gold-primary); background: rgba(212, 175, 55, 0.06);
}
.music-controls {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--border-glass);
}
.music-play-btn {
  padding: 8px 18px; border-radius: 50px;
  background: var(--gold-gradient); color: #0a0a1a;
  border: none; font-size: 0.82rem; font-weight: 700;
  font-family: var(--font-heading); cursor: pointer;
  transition: var(--transition); flex-shrink: 0;
}
.music-volume {
  flex: 1; -webkit-appearance: none; appearance: none;
  height: 4px; background: rgba(255,255,255,0.1);
  border-radius: 2px; outline: none;
}
.music-volume::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px;
  background: var(--gold-primary); border-radius: 50%; cursor: pointer;
}
.meditation-timer { padding: 14px 16px; }
.meditation-timer > span {
  font-size: 0.82rem; color: var(--text-secondary);
  display: block; margin-bottom: 8px;
}
.timer-options { display: flex; gap: 8px; }
.timer-options button {
  flex: 1; padding: 8px;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  background: var(--bg-glass); color: var(--text-primary);
  font-size: 0.82rem; font-family: var(--font-heading);
  cursor: pointer; transition: var(--transition);
}
.timer-options button:hover {
  border-color: var(--gold-primary); color: var(--gold-primary);
}
.timer-display {
  display: flex; align-items: center;
  justify-content: center; gap: 12px; margin-top: 10px;
}
.timer-countdown {
  font-family: var(--font-heading); font-size: 1.5rem;
  font-weight: 800; color: var(--gold-primary);
}
.timer-stop-btn {
  padding: 6px 14px;
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: 50px; background: rgba(248, 113, 113, 0.1);
  color: var(--danger); font-size: 0.8rem; cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════
   ENHANCED AFFIRMATIONS
   ═══════════════════════════════════════════════════════════ */
.affirmation-actions {
  display: flex; gap: 8px; margin: 14px 0;
}
.affirmation-action-btn {
  flex: 1; padding: 10px 12px;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  background: var(--bg-glass); color: var(--text-primary);
  font-size: 0.82rem; font-family: var(--font-body);
  cursor: pointer; transition: var(--transition); text-align: center;
}
.affirmation-action-btn:hover {
  border-color: var(--gold-primary); color: var(--gold-primary);
}
.affirmation-write-label {
  font-size: 0.85rem; color: var(--text-secondary);
  margin-bottom: 10px; font-weight: 600;
}
.affirmation-write-section .affirmation-input { margin-bottom: 8px; }
.affirmation-counter {
  text-align: center; font-size: 0.8rem;
  color: var(--text-muted); padding: 10px 0;
}

/* ═══════════════════════════════════════════════════════════
   PREMIUM VOICE AFFIRMATION PLAYER
   ═══════════════════════════════════════════════════════════ */
.voice-player {
  margin: 16px 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(30, 30, 60, 0.6));
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 16px;
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.voice-player::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.voice-player-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; position: relative; z-index: 1;
}
.voice-player-label {
  font-family: var(--font-heading);
  font-size: 0.82rem; font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.voice-player-time {
  font-family: 'Courier New', monospace;
  font-size: 0.78rem; color: var(--gold-primary);
  opacity: 0.8; letter-spacing: 0.5px;
}
.voice-player-body {
  display: flex; align-items: center; gap: 12px;
  position: relative; z-index: 1;
}
.voice-play-btn {
  width: 48px; height: 48px; min-width: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-primary), #b8860b);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35);
  transition: all 0.3s ease;
  position: relative;
}
.voice-play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(212, 175, 55, 0.5);
}
.voice-play-btn:active { transform: scale(0.95); }
.voice-play-btn.playing {
  animation: voicePulseGlow 1.5s ease-in-out infinite;
}
@keyframes voicePulseGlow {
  0%, 100% { box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35); }
  50% { box-shadow: 0 4px 32px rgba(212, 175, 55, 0.65), 0 0 48px rgba(212, 175, 55, 0.15); }
}
.voice-play-icon {
  width: 22px; height: 22px; color: #1a1a2e;
}
.voice-hidden { display: none; }
.voice-progress-wrap {
  flex: 1; height: 40px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  position: relative; overflow: hidden;
  cursor: pointer;
}
.voice-progress-bar {
  position: absolute; top: 0; left: 0;
  height: 100%; width: 0%;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.08));
  border-radius: 8px;
  transition: width 0.15s linear;
  pointer-events: none;
}
.voice-waveform {
  display: flex; align-items: center; justify-content: center;
  gap: 2px; height: 100%;
  padding: 0 10px;
  pointer-events: none;
}
.voice-waveform .wave-bar {
  width: 3px; border-radius: 2px;
  background: var(--gold-primary);
  opacity: 0.3;
  transition: height 0.15s ease, opacity 0.15s ease;
}
.voice-waveform.active .wave-bar {
  opacity: 0.7;
  animation: waveBarAnimate 0.8s ease-in-out infinite alternate;
}
.voice-waveform.active .wave-bar:nth-child(odd) { animation-delay: 0.1s; }
.voice-waveform.active .wave-bar:nth-child(3n) { animation-delay: 0.25s; }
.voice-waveform.active .wave-bar:nth-child(5n) { animation-delay: 0.4s; }
@keyframes waveBarAnimate {
  0% { height: 8px; opacity: 0.4; }
  100% { height: 28px; opacity: 0.9; }
}
.voice-player-repeat {
  margin-top: 10px; position: relative; z-index: 1;
}
.voice-repeat-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; color: var(--text-secondary);
  cursor: pointer;
}
.voice-repeat-label input[type="checkbox"] {
  accent-color: var(--gold-primary);
  width: 16px; height: 16px;
}

/* Mirror Mode Overlay */
.mirror-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0, 0, 0, 0.97);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 32px;
}
.mirror-text {
  font-family: var(--font-heading); font-size: 2rem;
  font-weight: 800; text-align: center; line-height: 1.6;
  background: var(--gold-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 24px;
  animation: mirrorPulse 3s ease-in-out infinite;
}
@keyframes mirrorPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.02); }
}
.mirror-hint {
  color: var(--text-secondary); font-size: 0.9rem;
  margin-bottom: 28px; text-align: center;
}
.mirror-close-btn {
  padding: 12px 28px; border-radius: 50px;
  background: var(--bg-glass); border: 1px solid var(--border-glass);
  color: var(--text-primary); font-size: 0.9rem;
  font-family: var(--font-heading); cursor: pointer;
  transition: var(--transition);
}

/* ═══════════════════════════════════════════════════════════
   MORNING MOTIVATION
   ═══════════════════════════════════════════════════════════ */
.morning-toast {
  position: fixed; top: 70px; left: 50%;
  transform: translateX(-50%) translateY(-20px);
  padding: 14px 24px; border-radius: var(--radius-lg);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
  color: var(--gold-light); font-size: 0.88rem;
  text-align: center; z-index: 145;
  opacity: 0; pointer-events: none;
  transition: all 0.5s ease; max-width: calc(100vw - 40px);
}
.morning-toast.show {
  opacity: 1; transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* ═══════════════════════════════════════════════════════════
   SHARE BUTTON
   ═══════════════════════════════════════════════════════════ */
.share-section {
  padding: 20px; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(212,175,55,0.08), rgba(212,175,55,0.02));
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: var(--radius-lg); text-align: center;
}
.share-section p {
  font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 14px;
}
.share-btns {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.share-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 50px; border: none;
  font-size: 0.8rem; font-weight: 700; cursor: pointer;
  transition: all 0.3s ease; font-family: var(--font-body);
}
.share-btn:active { transform: scale(0.95); }
.share-btn.whatsapp {
  background: #25D366; color: #fff;
}
.share-btn.twitter {
  background: #1DA1F2; color: #fff;
}
.share-btn.copy-link {
  background: var(--bg-glass); color: var(--text-primary);
  border: 1px solid var(--border-glass);
}
.share-btn.native {
  background: var(--gold-gradient); color: #0a0a1a;
}

/* ═══════════════════════════════════════════════════════════
   PWA INSTALL PROMPT
   ═══════════════════════════════════════════════════════════ */
.install-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
.install-overlay.show {
  opacity: 1; pointer-events: auto;
}
.install-modal {
  background: linear-gradient(145deg, #0f0f2a, #0a0a1a);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: var(--radius-xl);
  padding: 32px 24px; max-width: 360px; width: 100%;
  text-align: center; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(212,175,55,0.08);
  animation: installSlide 0.5s ease;
}
@keyframes installSlide {
  from { transform: translateY(30px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.install-modal-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; color: var(--text-muted);
  font-size: 1.2rem; cursor: pointer; padding: 4px;
}
.install-icon {
  width: 64px; height: 64px; margin: 0 auto 16px;
  border-radius: 16px; overflow: hidden;
}
.install-icon img {
  width: 100%; height: 100%; object-fit: cover;
}
.install-title {
  font-family: var(--font-heading); font-size: 1.2rem;
  font-weight: 800; margin-bottom: 8px;
  background: var(--gold-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.install-desc {
  font-size: 0.82rem; color: var(--text-secondary);
  line-height: 1.6; margin-bottom: 20px;
}
.install-features {
  display: flex; justify-content: center; gap: 16px;
  margin-bottom: 20px;
}
.install-feature {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 0.65rem; color: var(--text-muted);
}
.install-feature span:first-child { font-size: 1.3rem; }
.install-btn {
  width: 100%; padding: 14px; border: none; border-radius: var(--radius-md);
  background: var(--gold-gradient); color: #0a0a1a;
  font-family: var(--font-heading); font-size: 1rem;
  font-weight: 800; cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(212,175,55,0.3);
}
.install-btn:active { transform: scale(0.97); }
.install-later {
  background: none; border: none; color: var(--text-muted);
  font-size: 0.78rem; cursor: pointer; margin-top: 12px;
  padding: 8px; font-family: var(--font-body);
}

/* ═══════════════════════════════════════════════════════════
   SECTION TITLES & ACHIEVEMENTS GRID (Dashboard)
   ═══════════════════════════════════════════════════════════ */
.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 28px 0 14px;
  padding-right: 4px;
}

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

.achievement-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 8px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.achievement-item.locked {
  opacity: 0.4;
  filter: grayscale(1);
}

.achievement-item.unlocked {
  opacity: 1;
  filter: none;
  border-color: rgba(212, 175, 55, 0.4);
  background: linear-gradient(135deg, rgba(212,175,55,0.08), rgba(240,208,96,0.04));
  box-shadow: 0 2px 12px rgba(212, 175, 55, 0.15);
}

.achievement-item.unlocked::after {
  content: '✓';
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 0.6rem;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-primary);
  color: #0a0a1a;
  border-radius: 50%;
  font-weight: bold;
}

.achievement-icon {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.achievement-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
  line-height: 1.3;
}

.achievement-desc {
  font-size: 0.6rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Days Grid (Journey Map) */
.days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}
