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

:root {
  --navy: #0b0f1c;
  --navy-1: #121729;
  --navy-2: #1a2138;
  --navy-3: #232c48;
  --gold: #d4af37;
  --gold-soft: #f0dfa0;
  --gold-dim: rgba(212, 175, 55, 0.16);
  --cream: #f6f3ec;
  --muted: #9089a0;
  --muted-2: #6b6478;
  --done: #6fbf8b;
  --danger: #d97757;
  --radius: 18px;
  --radius-sm: 12px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

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

html, body {
  margin: 0;
  height: 100%;
  background: var(--navy);
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  overscroll-behavior-y: none;
}

body {
  display: flex;
  justify-content: center;
}

#app {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background:
    radial-gradient(600px 300px at 50% -80px, rgba(212,175,55,0.10), transparent 60%),
    var(--navy);
}

h1, h2, h3, .display {
  font-family: 'Sora', sans-serif;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

button {
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
}

.screen {
  flex: 1;
  padding: calc(20px + var(--safe-top)) 20px 100px;
  animation: fadeIn 0.25s ease;
}

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

.hidden { display: none !important; }

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.topbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar .brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), #9c7a1f);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 13px;
  color: var(--navy);
}
.topbar .greeting { font-size: 13px; color: var(--muted); }
.topbar .greeting strong { color: var(--cream); font-weight: 600; }

/* ---------- Progress ring ---------- */
.ring-wrap {
  position: relative;
  width: 46px; height: 46px;
}
.ring-wrap svg { transform: rotate(-90deg); }
.ring-wrap .ring-pct {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: var(--gold);
}

/* ---------- Hero / Hack do dia ---------- */
.hero-card {
  background: linear-gradient(155deg, var(--navy-3), var(--navy-1) 70%);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 24px;
  padding: 24px 22px;
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
}
.hero-card::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.18), transparent 70%);
}
.hero-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-soft);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}
.hero-title {
  font-size: 22px;
  line-height: 1.3;
  margin: 10px 0 8px;
  font-weight: 700;
  position: relative;
}
.hero-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: #cfc9dd;
  margin-bottom: 18px;
  position: relative;
}
.hero-actions { display: flex; gap: 10px; position: relative; }

.btn {
  border-radius: 100px;
  padding: 13px 20px;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.96); }
.btn-gold { background: var(--gold); color: var(--navy); flex: 1; }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--cream); border: 1px solid rgba(255,255,255,0.12); }
.btn-done { background: var(--done); color: #0b1f14; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 14px; font-size: 12.5px; }

/* ---------- Section headers ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 26px 0 12px;
}
.section-head h2 { font-size: 15px; font-weight: 700; color: var(--cream); }
.section-head .see-all { font-size: 12.5px; color: var(--gold-soft); font-weight: 600; }

/* ---------- Quick links grid ---------- */
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.quick-card {
  background: var(--navy-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: left;
}
.quick-card .qc-num { font-family:'Sora',sans-serif; color: var(--gold); font-weight: 800; font-size: 20px; }
.quick-card .qc-label { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.quick-card .qc-bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.08); margin-top: 12px; overflow: hidden; }
.quick-card .qc-bar-fill { height: 100%; background: var(--gold); border-radius: 2px; }

/* ---------- Stat strip ---------- */
.stat-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--navy-2);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 6px;
}
.stat-strip .big-num { font-family:'Sora',sans-serif; font-size: 26px; font-weight: 800; color: var(--gold); line-height: 1; }
.stat-strip .big-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.stat-strip .divider { width: 1px; height: 34px; background: rgba(255,255,255,0.1); }

/* ---------- Method list ---------- */
.method-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.method-row:last-child { border-bottom: none; }
.method-badge {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--navy-2);
  border: 1px solid rgba(212,175,55,0.25);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  color: var(--gold);
  font-size: 14px;
  flex-shrink: 0;
}
.method-row.complete .method-badge { background: var(--done); color: #0b1f14; border-color: var(--done); }
.method-info { flex: 1; min-width: 0; }
.method-info .m-title { font-size: 14.5px; font-weight: 600; color: var(--cream); }
.method-info .m-bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.08); margin-top: 8px; overflow: hidden; }
.method-info .m-bar-fill { height: 100%; background: var(--gold); border-radius: 2px; }
.method-row .m-count { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.chev { color: var(--muted-2); font-size: 18px; }

/* ---------- Hack list item ---------- */
.hack-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hack-item:last-child { border-bottom: none; }
.hack-check {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(212,175,55,0.4);
  flex-shrink: 0;
  margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  transition: all 0.15s ease;
}
.hack-item.done .hack-check {
  background: var(--done);
  border-color: var(--done);
  color: #0b1f14;
}
.hack-body .h-num { font-size: 10.5px; color: var(--gold-soft); font-weight: 700; letter-spacing: 0.06em; }
.hack-body .h-title { font-size: 14.5px; font-weight: 600; margin: 3px 0 4px; color: var(--cream); }
.hack-item.done .h-title { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(144,137,160,0.5); }
.hack-body .h-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ---------- Detail header ---------- */
.detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.back-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--navy-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.detail-header h1 { font-size: 18px; font-weight: 700; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.tag-pill {
  font-size: 11.5px;
  padding: 6px 12px;
  border-radius: 100px;
  background: var(--gold-dim);
  color: var(--gold-soft);
  border: 1px solid rgba(212,175,55,0.3);
}

.step-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.step-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--navy);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.step-title { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.step-desc { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.tip-box {
  background: var(--gold-dim);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 16px 0;
}
.tip-box .tip-title { font-size: 13px; font-weight: 700; color: var(--gold-soft); margin-bottom: 4px; }
.tip-box .tip-body { font-size: 13px; color: #d8d0e8; line-height: 1.5; }

.warning-box {
  background: rgba(217,119,87,0.12);
  border-left: 3px solid var(--danger);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 14px 0;
  font-size: 12.5px;
  color: #f0c9ba;
  line-height: 1.5;
}

/* ---------- Bottom nav ---------- */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: flex;
  justify-content: center;
  z-index: 20;
}
.bottom-nav-inner {
  width: 100%;
  max-width: 480px;
  display: flex;
  background: rgba(18,23,41,0.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 10px 8px calc(10px + var(--safe-bottom));
}
.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
  color: var(--muted);
}
.nav-btn .nav-icon { font-size: 19px; line-height: 1; }
.nav-btn .nav-label { font-size: 10.5px; font-weight: 600; }
.nav-btn.active { color: var(--gold); }

/* ---------- Onboarding ---------- */
.onboard-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 26px;
  max-width: 480px;
  margin: 0 auto;
}
.onboard-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 30px;
}
.onboard-progress span {
  flex: 1; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,0.12);
}
.onboard-progress span.on { background: var(--gold); }
.onboard-step .display {
  font-size: 15px; color: var(--gold-soft); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px;
}
.onboard-step h1 { font-size: 24px; line-height: 1.35; margin-bottom: 28px; }
.opt-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--navy-2);
  border: 1.5px solid rgba(255,255,255,0.08);
  margin-bottom: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--cream);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.opt-btn:active { border-color: var(--gold); background: var(--navy-3); }

.splash {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 40px;
}
.splash .brand-mark { width: 84px; height: 84px; border-radius: 22px; font-size: 26px; }
.splash h1 { font-size: 22px; }
.splash p { color: var(--muted); font-size: 14px; max-width: 280px; }

/* ---------- Celebration ---------- */
.celebrate {
  text-align: center;
  padding: 40px 20px;
}
.celebrate .emoji { font-size: 46px; margin-bottom: 14px; }
.celebrate h2 { font-size: 19px; margin-bottom: 8px; }
.celebrate p { color: var(--muted); font-size: 13.5px; }

/* ---------- Profile ---------- */
.profile-card {
  background: var(--navy-2);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  text-align: center;
}
.profile-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #9c7a1f);
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: var(--navy);
  font-family: 'Sora', sans-serif;
}
.list-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 14px; font-weight: 600;
}
.list-link .ll-sub { font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 2px; }

.cross-card {
  background: linear-gradient(135deg, #1c1710, var(--navy-2));
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}
.cross-card .cc-icon { font-size: 26px; }
.cross-card .cc-title { font-size: 13.5px; font-weight: 700; }
.cross-card .cc-desc { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

::-webkit-scrollbar { display: none; }

/* ---------- Table of contents rows (Home) ---------- */
.toc-list { display: flex; flex-direction: column; gap: 8px; }
.toc-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--navy-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: left;
  width: 100%;
}
.toc-num {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--navy-3);
  border: 1px solid rgba(212,175,55,0.25);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  color: var(--gold);
  font-size: 14px;
  flex-shrink: 0;
}
.toc-text { flex: 1; min-width: 0; }
.toc-title { font-size: 14px; font-weight: 700; color: var(--cream); }
.toc-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.toc-count { font-size: 11.5px; color: var(--muted); white-space: nowrap; }

.music-card {
  background: var(--navy-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 8px;
}

/* ---------- Author screen ---------- */
.autor-wrap { text-align: center; }
.autor-photo {
  width: 130px; height: 130px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: block;
  border: 3px solid var(--gold);
}
.autor-subtitle { color: var(--muted); font-size: 12px; margin-bottom: 16px; }
.autor-wrap p:not(.autor-subtitle) { text-align: left; }

/* ---------- Install banner + guide ---------- */
.install-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #1c1710, var(--navy-2));
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 18px;
}
.install-icon { font-size: 22px; flex-shrink: 0; }
.install-text { flex: 1; min-width: 0; }
.install-title { font-size: 13px; font-weight: 700; color: var(--cream); line-height: 1.3; }
.install-sub { font-size: 11px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.install-close {
  position: absolute; top: 8px; right: 8px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--muted);
  font-size: 11px;
  display: flex; align-items: center; justify-content: center;
}
.install-step {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 13.5px;
  color: #d8d0e8;
  line-height: 1.5;
}
.install-step strong { color: var(--gold-soft); }
.install-step-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--navy-2);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-weight: 700;
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}


