/* ============================================
   DNA DEUS NA ALMA — APP ESPIRITUAL
   Identidade Visual: Azul Marinho + Dourado + Branco
   ============================================ */

:root {
  --navy: #0A1628;
  --navy-mid: #0F2044;
  --navy-light: #1A3060;
  --gold: #C9A84C;
  --gold-light: #E8C96A;
  --gold-dark: #A07830;
  --white: #FFFFFF;
  --white-80: rgba(255,255,255,0.8);
  --white-60: rgba(255,255,255,0.6);
  --white-20: rgba(255,255,255,0.2);
  --white-10: rgba(255,255,255,0.1);
  --rose: #B76E79;
  --success: #4CAF50;
  --card-bg: rgba(255,255,255,0.07);
  --card-border: rgba(201,168,76,0.25);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0,0,0,0.3);
  --shadow-gold: 0 4px 20px rgba(201,168,76,0.2);
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
  overscroll-behavior: none;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 4px; }

/* ============ TYPOGRAPHY ============ */
.font-serif { font-family: 'Playfair Display', Georgia, serif; }
.text-gold { color: var(--gold); }
.text-white-60 { color: var(--white-60); }
.text-center { text-align: center; }

h1 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.8rem; font-weight: 700; }
h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.4rem; font-weight: 600; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { line-height: 1.7; color: var(--white-80); }

/* ============ LAYOUT PRINCIPAL ============ */
#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

/* ============ TELAS ============ */
.screen {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 100vh;
  padding-bottom: 80px;
}
.screen.active { display: flex; }

/* ============ SPLASH SCREEN ============ */
#screen-splash {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 0;
  padding-bottom: 0;
}

.splash-content {
  text-align: center;
  animation: fadeInUp 1s ease;
}

.splash-dna {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  position: relative;
}

.dna-helix {
  font-size: 72px;
  animation: float 3s ease-in-out infinite;
  display: block;
}

.splash-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 4px;
  text-shadow: 0 0 30px rgba(201,168,76,0.4);
  line-height: 1;
  margin-bottom: 8px;
}

.splash-subtitle {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  color: var(--white-80);
  font-style: italic;
  margin-bottom: 8px;
}

.splash-author {
  font-size: 0.85rem;
  color: var(--gold-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 48px;
}

.splash-verse {
  font-size: 0.85rem;
  color: var(--white-60);
  font-style: italic;
  max-width: 280px;
  margin: 0 auto;
  line-height: 1.6;
}

.splash-loader {
  width: 60px;
  height: 3px;
  background: var(--white-20);
  border-radius: 3px;
  margin: 32px auto 0;
  overflow: hidden;
}

.splash-loader-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: 3px;
  animation: loading 2s ease-in-out forwards;
}

/* ============ BOTTOM NAV ============ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--card-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
  z-index: 1000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: none;
  color: var(--white-60);
  font-size: 0.65rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  min-width: 60px;
}

.nav-item .nav-icon {
  font-size: 1.4rem;
  transition: var(--transition);
}

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

.nav-item.active .nav-icon {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 8px rgba(201,168,76,0.5));
}

/* ============ PAGE HEADER ============ */
.page-header {
  padding: 56px 20px 20px;
  background: linear-gradient(180deg, rgba(10,22,40,0.95) 0%, transparent 100%);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.page-header h1 {
  font-size: 1.6rem;
  color: var(--white);
}

.page-header p {
  font-size: 0.85rem;
  color: var(--gold);
  margin-top: 4px;
}

/* ============ CARDS ============ */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.card:hover, .card:active {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.card-glass {
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
}

/* ============ BOTÕES ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  text-decoration: none;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
  color: var(--navy);
  box-shadow: 0 4px 15px rgba(201,168,76,0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.4);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
}

.btn-outline:hover {
  background: rgba(201,168,76,0.1);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-full { width: 100%; }

/* ============ BADGE ============ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(201,168,76,0.15);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.3);
}

.badge-complete {
  background: rgba(76,175,80,0.15);
  color: #4CAF50;
  border-color: rgba(76,175,80,0.3);
}

/* ============ PROGRESS BAR ============ */
.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--white-10);
  border-radius: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: 6px;
  transition: width 0.8s ease;
}

/* ============ VERSÍCULO CARD ============ */
.verse-card {
  background: linear-gradient(135deg, rgba(201,168,76,0.1) 0%, rgba(201,168,76,0.05) 100%);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.verse-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 15px;
  font-size: 80px;
  color: rgba(201,168,76,0.15);
  font-family: Georgia, serif;
  line-height: 1;
}

.verse-text {
  font-style: italic;
  color: var(--white-80);
  line-height: 1.7;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

.verse-ref {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 10px;
  display: block;
}

/* ============ HOME SCREEN ============ */
.home-hero {
  background: linear-gradient(160deg, var(--navy-light) 0%, var(--navy) 60%);
  padding: 50px 20px 30px;
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: '🧬';
  position: absolute;
  right: -20px;
  top: 10px;
  font-size: 140px;
  opacity: 0.06;
  transform: rotate(15deg);
}

.home-greeting {
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.home-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.home-quote {
  font-style: italic;
  color: var(--white-60);
  font-size: 0.9rem;
  line-height: 1.6;
  border-left: 2px solid var(--gold);
  padding-left: 14px;
  margin-bottom: 24px;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 20px 20px;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align: center;
}

.stat-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  color: var(--gold);
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--white-60);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: 0.75rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 14px;
}

.home-sections {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.quick-action {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 18px 14px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-action:hover, .quick-action:active {
  border-color: var(--gold);
  transform: scale(0.98);
}

.quick-action .qa-icon { font-size: 1.8rem; }
.quick-action .qa-title { font-size: 0.9rem; font-weight: 600; color: var(--white); }
.quick-action .qa-sub { font-size: 0.75rem; color: var(--white-60); }

/* ============ DEVOCIONAL ============ */
.devo-list {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.devo-item:hover, .devo-item:active {
  border-color: var(--gold);
  background: rgba(201,168,76,0.05);
}

.devo-item.completed {
  border-color: rgba(76,175,80,0.3);
  background: rgba(76,175,80,0.05);
}

.devo-day {
  min-width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--white-10);
  color: var(--white-60);
  flex-shrink: 0;
}

.devo-item.completed .devo-day {
  background: rgba(76,175,80,0.2);
  color: #4CAF50;
}

.devo-item.today .devo-day {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
  color: var(--navy);
}

.devo-info { flex: 1; overflow: hidden; }
.devo-week { font-size: 0.7rem; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
.devo-title { font-size: 0.95rem; font-weight: 600; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.devo-verse { font-size: 0.78rem; color: var(--white-60); margin-top: 2px; }

/* ============ DEVOCIONAL DETAIL ============ */
.devo-detail {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.devo-detail-header {
  text-align: center;
  padding: 40px 20px 0;
}

.devo-day-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
  color: var(--navy);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.devo-detail-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.3;
}

.devo-theme-icon { font-size: 2.5rem; margin-bottom: 12px; }

.devo-text-block {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
}

.devo-section-label {
  font-size: 0.75rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.devo-body-text {
  font-size: 0.95rem;
  color: var(--white-80);
  line-height: 1.8;
}

.prayer-block {
  background: linear-gradient(135deg, rgba(201,168,76,0.08) 0%, rgba(201,168,76,0.03) 100%);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: var(--radius);
  padding: 22px;
}

.reflection-question {
  background: var(--white-10);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-style: italic;
  color: var(--white-80);
  font-size: 0.9rem;
  margin-bottom: 10px;
  border-left: 3px solid var(--gold);
}

/* ============ MENTORIA ============ */
.mentoria-list {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.module-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.module-card:hover { border-color: var(--gold); }

.module-header {
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.module-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(201,168,76,0.05));
  border: 1px solid rgba(201,168,76,0.2);
  flex-shrink: 0;
}

.module-info { flex: 1; }
.module-num { font-size: 0.7rem; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; }
.module-name { font-size: 1rem; font-weight: 600; color: var(--white); margin-top: 2px; }
.module-desc { font-size: 0.8rem; color: var(--white-60); margin-top: 4px; }

.module-footer {
  padding: 0 18px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.module-progress-text {
  font-size: 0.78rem;
  color: var(--white-60);
}

/* ============ TIMER ORAÇÃO ============ */
.timer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
  gap: 24px;
}

.timer-circle-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 20px auto 0;
}

.timer-svg {
  transform: rotate(-90deg);
  width: 220px;
  height: 220px;
}

.timer-track {
  fill: none;
  stroke: var(--white-10);
  stroke-width: 8;
}

.timer-fill {
  fill: none;
  stroke: url(#timerGradient);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 628;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}

.timer-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.timer-time {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.8rem;
  color: var(--white);
  font-weight: 700;
  line-height: 1;
}

.timer-label {
  font-size: 0.78rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
}

.timer-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
}

.timer-preset {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.8rem;
  color: var(--white-80);
}

.timer-preset.active {
  border-color: var(--gold);
  background: rgba(201,168,76,0.1);
  color: var(--gold);
}

.timer-controls {
  display: flex;
  gap: 14px;
}

.timer-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: var(--transition);
}

.timer-btn-play {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(201,168,76,0.3);
  width: 72px;
  height: 72px;
  font-size: 1.8rem;
}

.timer-btn-reset {
  background: var(--white-10);
  color: var(--white-60);
}

.timer-verse {
  width: 100%;
}

.prayer-types {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.prayer-type-btn {
  padding: 7px 14px;
  border-radius: 50px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--white-60);
  font-size: 0.78rem;
  cursor: pointer;
  transition: var(--transition);
}

.prayer-type-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.1);
}

/* ============ DIÁRIO ============ */
.diary-container {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.diary-write-area {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
}

.diary-date {
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.diary-prompt {
  font-size: 0.85rem;
  color: var(--white-60);
  font-style: italic;
  margin-bottom: 14px;
  line-height: 1.5;
  padding: 10px 14px;
  background: var(--white-10);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold);
}

.diary-textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--white-20);
  color: var(--white);
  font-size: 0.95rem;
  line-height: 1.7;
  resize: none;
  outline: none;
  padding: 8px 0;
  min-height: 120px;
  font-family: inherit;
}

.diary-textarea::placeholder {
  color: var(--white-60);
  font-style: italic;
}

.diary-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
}

.diary-char-count {
  font-size: 0.75rem;
  color: var(--white-60);
}

.diary-entries {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.diary-entry {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: var(--transition);
}

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

.diary-entry-date {
  font-size: 0.78rem;
  color: var(--gold);
}

.diary-entry-mood {
  font-size: 1rem;
}

.diary-entry-preview {
  font-size: 0.88rem;
  color: var(--white-60);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mood-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.mood-btn {
  font-size: 1.6rem;
  background: none;
  border: 2px solid transparent;
  border-radius: 50%;
  padding: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.mood-btn.selected {
  border-color: var(--gold);
  background: rgba(201,168,76,0.1);
  transform: scale(1.15);
}

/* ============ BIBLIOTECA ÁUDIOS ============ */
.audio-list {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.audio-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px;
  transition: var(--transition);
}

.audio-card.playing {
  border-color: var(--gold);
  background: rgba(201,168,76,0.05);
}

.audio-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.audio-play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(201,168,76,0.25);
}

.audio-play-btn:hover {
  transform: scale(1.05);
}

.audio-info { flex: 1; }
.audio-title { font-size: 0.95rem; font-weight: 600; color: var(--white); }
.audio-meta { font-size: 0.78rem; color: var(--white-60); margin-top: 2px; }

.audio-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}

.audio-progress .progress-bar { flex: 1; cursor: pointer; height: 4px; }
.audio-time { font-size: 0.75rem; color: var(--white-60); min-width: 80px; text-align: right; }

/* ============ PERFIL ============ */
.profile-container {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-hero {
  text-align: center;
  padding: 40px 20px 20px;
  background: linear-gradient(160deg, var(--navy-light) 0%, var(--navy) 100%);
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
  color: var(--navy);
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(201,168,76,0.3);
  border: 3px solid var(--gold);
}

.profile-name-display {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 6px;
}

.profile-since {
  font-size: 0.8rem;
  color: var(--white-60);
}

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

.achievement {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 14px 8px;
  text-align: center;
  transition: var(--transition);
}

.achievement.unlocked {
  border-color: rgba(201,168,76,0.4);
  background: rgba(201,168,76,0.05);
}

.achievement.locked {
  opacity: 0.4;
}

.achievement-icon { font-size: 1.8rem; margin-bottom: 6px; }
.achievement-name { font-size: 0.7rem; color: var(--white-60); line-height: 1.3; }
.achievement.unlocked .achievement-name { color: var(--gold); }

.settings-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.setting-item:hover {
  border-color: var(--gold);
}

.setting-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.setting-icon { font-size: 1.2rem; }
.setting-label { font-size: 0.95rem; color: var(--white); }
.setting-arrow { color: var(--white-60); }

/* ============ MODALS ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,22,40,0.92);
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-sheet {
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  background: var(--navy-mid);
  border-radius: 24px 24px 0 0;
  border-top: 1px solid var(--card-border);
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

.modal-overlay.open .modal-sheet {
  transform: translateY(0);
}

.modal-handle {
  width: 40px;
  height: 4px;
  background: var(--white-20);
  border-radius: 4px;
  margin: 14px auto 8px;
}

.modal-content {
  padding: 8px 24px 32px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--white-10);
  border: none;
  color: var(--white-60);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============ TOAST ============ */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy-light);
  border: 1px solid var(--gold);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.88rem;
  z-index: 3000;
  opacity: 0;
  transition: all 0.3s ease;
  white-space: nowrap;
}

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

/* ============ ONBOARDING ============ */
#screen-onboard {
  background: linear-gradient(160deg, var(--navy-light) 0%, var(--navy) 100%);
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 30px;
  padding-bottom: 40px;
}

.onboard-icon { font-size: 4rem; margin-bottom: 20px; }
.onboard-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 12px;
}
.onboard-text {
  color: var(--white-60);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.onboard-input {
  width: 100%;
  background: var(--white-10);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--white);
  font-size: 1rem;
  outline: none;
  margin-bottom: 12px;
  font-family: inherit;
  transition: var(--transition);
}

.onboard-input:focus {
  border-color: var(--gold);
  background: rgba(201,168,76,0.05);
}

.onboard-input::placeholder { color: var(--white-60); }

/* ============ BACK BTN ============ */
.back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 14px 20px 0;
  font-weight: 500;
}

/* ============ EMPTY STATE ============ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--white-60);
}

.empty-icon { font-size: 3rem; margin-bottom: 12px; opacity: 0.5; }
.empty-title { font-size: 1rem; color: var(--white-80); margin-bottom: 8px; }
.empty-text { font-size: 0.85rem; line-height: 1.6; }

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes loading {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

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

.animate-in { animation: fadeInUp 0.4s ease forwards; }
.pulse { animation: pulse 2s ease-in-out infinite; }

/* ============ SCROLLABLE CONTENT ============ */
.scroll-content {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

/* ============ DIVIDER ============ */
.divider {
  height: 1px;
  background: var(--white-10);
  margin: 4px 0;
}

/* ============ SWITCH ============ */
.switch {
  position: relative;
  width: 44px;
  height: 24px;
}

.switch input { display: none; }

.switch-slider {
  position: absolute;
  inset: 0;
  background: var(--white-20);
  border-radius: 24px;
  cursor: pointer;
  transition: var(--transition);
}

.switch-slider::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  transition: var(--transition);
}

.switch input:checked + .switch-slider {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
}

.switch input:checked + .switch-slider::before {
  transform: translateX(20px);
}

/* ============ TABS ============ */
.tab-bar {
  display: flex;
  gap: 4px;
  padding: 0 20px 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tab-bar::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--white-60);
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
  color: var(--navy);
  border-color: transparent;
  font-weight: 600;
}

/* ============ MEDIA QUERIES ============ */
@media (min-width: 480px) {
  #app {
    border-left: 1px solid var(--card-border);
    border-right: 1px solid var(--card-border);
  }

  .bottom-nav {
    border-radius: 0 0 0 0;
  }
}
