@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #050606;
  --panel: #0d0e0e;
  --panel-2: #171817;
  --panel-3: #1e1f1e;
  --line: rgba(255, 255, 255, 0.08);
  --line-gold: rgba(233, 189, 106, 0.18);
  --text: #f4efe4;
  --muted: #a09880;
  --soft: #6c6458;
  --accent: #e9bd6a;
  --accent-2: #c9a248;
  --accent-dim: rgba(201, 162, 72, 0.12);
  --danger: #d96c57;
  --radius: 10px;
  --radius-lg: 20px;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at top left, rgba(201,162,72,0.10), transparent),
    radial-gradient(ellipse 60% 40% at bottom right, rgba(201,162,72,0.06), transparent),
    #080909;
  color: var(--text);
}

button, input { font: inherit; }
button { border: 0; cursor: pointer; }
h1,h2,h3,p { margin-top: 0; }

#app { min-height: 100vh; }

/* ── TITLES use Playfair ── */
h1, h2, h3,
.auth-copy h1,
.topbar h1,
.home-greeting h2,
.continue-card h3,
.lesson-intro h2,
.progress-panel h2,
.module-header h3,
.bonus-intro h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
}

/* ── BUILD PILL ── */
.build-pill {
  display: inline-flex;
  width: fit-content;
  margin: 2px 0 4px;
  padding: 5px 10px;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent-2);
  font-size: 0.62rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── AUTH SCREEN ── */
.auth-screen,
.phone-shell {
  width: min(100%, 460px);
  min-height: 100vh;
  margin: 0 auto;
  background: rgba(8, 9, 9, 0.92);
}

.auth-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 24px;
  overflow: hidden;
  padding: 28px 24px;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,9,9,0.15), rgba(8,9,9,0.68) 40%, #080909 82%),
    linear-gradient(90deg, rgba(8,9,9,0.95), rgba(8,9,9,0.5), rgba(8,9,9,0.15)),
    url("./assets/hero-marido-fotografo.png") center top / cover;
  transform: scale(1.02);
}

.auth-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
}

.login-logo {
  width: min(72vw, 260px);
  height: auto;
  margin-bottom: clamp(20px, 12vh, 100px);
  filter: drop-shadow(0 16px 40px rgba(0,0,0,0.5));
}

/* ── EYEBROW ── */
.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.68rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── AUTH COPY ── */
.auth-copy h1 {
  margin-bottom: 12px;
  font-size: clamp(2.4rem, 11vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.auth-copy p,
.topbar span,
.list-card span,
.pose-card span,
.guide-card span,
.profile-card p,
.progress-panel span {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.9rem;
}

/* ── AUTH FORM ── */
.auth-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  background: rgba(10,11,11,0.78);
  box-shadow: 0 28px 72px rgba(0,0,0,0.4);
  backdrop-filter: blur(28px);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  padding: 0 14px;
  outline: 0;
  transition: border-color 0.2s;
}

input:focus { border-color: rgba(201,162,72,0.6); }

/* ── BUTTONS ── */
.primary-button, .text-button {
  min-height: 52px;
  border-radius: var(--radius);
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  transition: opacity 0.18s, transform 0.15s;
}

.primary-button {
  background: linear-gradient(135deg, #f0cb7a, #c9a248);
  color: #0d0c0a;
  letter-spacing: 0.04em;
}

.primary-button:hover { opacity: 0.9; transform: translateY(-1px); }
.primary-button.compact { width: fit-content; min-height: 40px; padding: 0 18px; font-size: 0.82rem; }
.text-button { background: transparent; color: var(--accent); }

/* ── PHONE SHELL ── */
.phone-shell {
  position: relative;
  padding-bottom: 96px;
}

/* ── TOPBAR ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 20px 14px;
  background: rgba(5,6,6,0.88);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
}

.topbar h1 {
  margin-bottom: 2px;
  font-size: 1.9rem;
  letter-spacing: -0.01em;
}

/* ── AVATAR / CAMERA ── */
.brand-mark, .profile-avatar, .avatar-button {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #222421, #101111);
  color: var(--accent);
}

.avatar-button {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.camera-glyph {
  position: relative;
  display: block;
  width: 20px;
  height: 15px;
  border: 2px solid var(--accent);
  border-radius: 5px;
}

.camera-glyph::before {
  content: "";
  position: absolute;
  top: -5px; left: 5px;
  width: 8px; height: 4px;
  border-radius: 3px 3px 0 0;
  background: var(--accent);
}

.camera-glyph::after {
  content: "";
  position: absolute;
  top: 3px; left: 5px;
  width: 6px; height: 6px;
  border: 2px solid var(--text);
  border-radius: 50%;
}

/* ── CONTENT GRID ── */
.content { display: grid; gap: 14px; padding: 18px; }

/* ── HOME GREETING ── */
.home-greeting {
  display: grid;
  gap: 16px;
  padding: 22px 20px;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(201,162,72,0.08), transparent 60%),
    #0a0b0b;
}

.home-greeting h2 {
  margin: 0;
  max-width: 320px;
  font-size: 1.4rem;
  line-height: 1.1;
}

.home-progress { display: grid; gap: 10px; }

.home-progress div {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.home-progress span { color: var(--muted); font-size: 0.76rem; }
.home-progress strong { color: var(--text); font-size: 1.9rem; font-family: 'Playfair Display', serif; }

.home-progress i {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
}

.home-progress b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f5d38a, #c9a248);
  transition: width 0.6s ease;
}

/* ── CONTINUE CARD ── */
.continue-card {
  position: relative;
  min-height: 200px;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(100deg, rgba(5,6,6,0.97) 40%, rgba(5,6,6,0.55) 70%, rgba(5,6,6,0.15)),
    linear-gradient(0deg, rgba(5,6,6,0.9), transparent 60%),
    var(--continue-image, url("./assets/hero-marido-fotografo.png")) 62% 24% / cover;
  transition: transform 0.2s;
}

.continue-card:hover { transform: translateY(-2px); }

.continue-card div {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  max-width: 270px;
}

.continue-card p { margin: 0; color: var(--accent); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.continue-card h3 { margin: 0; font-size: 1.2rem; line-height: 1.1; font-family: 'Playfair Display', serif; }
.continue-card span { color: var(--muted); font-size: 0.76rem; }

/* ── METRIC GRID ── */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metric-grid article {
  min-height: 88px;
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.04), transparent),
    var(--panel);
}

.metric-grid strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.5rem;
  font-family: 'Playfair Display', serif;
  color: var(--accent);
}

.metric-grid span { color: var(--muted); font-size: 0.72rem; line-height: 1.4; }

/* ── SECTION HEADING ── */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-heading.flush { padding: 0; }

.section-heading h2 {
  margin: 0;
  font-size: 1.25rem;
}

.section-heading button {
  flex: 0 0 auto;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  transition: color 0.2s, border-color 0.2s;
}

.section-heading button:hover { color: var(--text); border-color: var(--line-gold); }

/* ── LIST CARD ── */
.list-card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0;
  min-height: 80px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  overflow: hidden;
  transition: border-color 0.2s;
  cursor: pointer;
}

.list-card:hover { border-color: var(--line-gold); }
.list-card.slim { grid-template-columns: 1fr auto; padding: 14px; align-items: center; }

.course-thumb {
  background:
    linear-gradient(160deg, rgba(201,162,72,0.2), rgba(201,162,72,0.06)),
    #111313;
  flex-shrink: 0;
}

.card-main {
  padding: 14px 16px;
  display: grid;
  align-content: center;
  gap: 4px;
}

.card-main p { margin: 0; color: var(--accent); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.card-main h3 { margin: 0; font-size: 0.95rem; line-height: 1.2; }
.card-main span { color: var(--muted); font-size: 0.76rem; }

/* ── PROGRESS RING ── */
.progress-ring {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: conic-gradient(
    var(--accent) calc(var(--value, 0) * 1%),
    var(--line) 0%
  );
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 700;
  isolation: isolate;
  position: relative;
}

.progress-ring::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--surface);
  z-index: -1;
}

/* ── BACK BUTTON ── */
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 4px;
  width: 100%;
  justify-content: flex-start;
}

.back-button:hover {
  background: rgba(201,162,72,0.06);
  border-color: var(--line-gold);
}

.back-button::before { content: "←"; font-size: 1rem; }

/* ── LESSON HERO ── */
.lesson-hero {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.lesson-cover {
  height: min(58vw, 270px);
  background-size: cover;
  background-position: center 30%;
  position: relative;
}

.lesson-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8,9,9,0.95) 100%);
}

.lesson-intro {
  padding: 20px;
  background: var(--panel);
}

.lesson-intro h2 {
  font-size: 1.5rem;
  line-height: 1.1;
  margin-bottom: 10px;
}

/* ── LESSON BLOCKS ── */
.lesson-block, .lesson-step {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.lesson-step { border-left: 3px solid var(--accent); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }

.lesson-block .eyebrow, .lesson-step .eyebrow { margin-bottom: 4px; }

/* ── LESSON STEPS (passo a passo) ── */
.lesson-steps {
  display: grid;
  gap: 20px;
}

.lesson-steps article {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
}

.lesson-steps article > strong {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(201,162,72,0.12);
  border: 1px solid var(--line-gold);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.lesson-steps article > div {
  display: grid;
  gap: 10px;
}

.lesson-steps article h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

/* ── TEACHING NOTES ── */
.teaching-note {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--panel-2);
  border-left: 2px solid var(--line);
}

.teaching-note > span {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.teaching-note > p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

.success-note {
  border-left-color: var(--accent);
  background: rgba(201,162,72,0.06);
}

.success-note > span { color: var(--accent); }

/* ── LESSON EXAMPLE (imagem dentro do passo) ── */
.lesson-example {
  display: grid;
  gap: 8px;
  margin: 0;
}

.lesson-example img {
  width: 100%;
  height: min(52vw, 220px);
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--radius);
  background: var(--panel-2);
}

.lesson-example figcaption {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}

.clean-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.clean-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.clean-list li::before { content: "—"; color: var(--accent); flex-shrink: 0; }
.warning-list li::before { content: "×"; color: var(--danger); }

/* ── LESSON STEP IMAGE ── */
.step-image {
  width: 100%;
  height: 180px;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center 30%;
  background: var(--panel-2);
}

/* ── EXERCISE CARD ── */
.exercise-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(201,162,72,0.10), transparent), var(--panel);
}

.exercise-card h3 { font-size: 1.05rem; line-height: 1.3; }

.lesson-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.lesson-actions .primary-button { flex: 1; min-width: 140px; }

/* ── HERO PANEL ── */
.hero-panel, .progress-panel {
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(216,180,106,0.12), transparent), var(--panel);
}

.hero-panel {
  position: relative;
  min-height: 620px;
  aspect-ratio: 9/16;
  align-content: end;
  overflow: hidden;
  background: #111313;
}

.hero-art {
  position: absolute;
  inset: 0;
  background: url("./assets/hero-marido-fotografo.png") center top / cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  justify-items: center;
  padding-bottom: 2px;
}

.hero-action { width: 100%; margin-top: -4px; }

.hero-panel h2, .progress-panel h2 { margin-bottom: 8px; font-size: 1.55rem; line-height: 1.05; }

/* ── COURSES ── */
.course-map { display: grid; gap: 16px; }

.module-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.04), transparent),
    var(--panel);
  transition: border-color 0.2s;
}

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

.module-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}

.module-header > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(201,162,72,0.35);
  border-radius: 50%;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  background: rgba(201,162,72,0.08);
  flex-shrink: 0;
}

.module-header p { margin-bottom: 4px; color: var(--accent-2); font-size: 0.72rem; font-weight: 600; }
.module-header h3 { margin-bottom: 6px; font-size: 1.05rem; line-height: 1.2; }
.module-header em { color: var(--muted); font-style: normal; line-height: 1.5; font-size: 0.84rem; }

/* ── LESSON LIST ── */
.lesson-list { display: grid; gap: 6px; }

.lesson-list button {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.025);
  color: var(--text);
  text-align: left;
  transition: background 0.18s, border-color 0.18s;
  overflow: hidden;
}

.lesson-list button:hover { background: rgba(201,162,72,0.06); border-color: var(--line-gold); }

.lesson-list button.completed {
  border-color: rgba(201,162,72,0.35);
  background: rgba(201,162,72,0.07);
}

/* thumbnail da aula na lista */
.lesson-thumb {
  width: 64px;
  height: 48px;
  border-radius: 6px;
  background-color: var(--panel-2);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.lesson-info {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.lesson-list span { color: var(--accent); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.lesson-list strong { font-size: 0.88rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lesson-list em { justify-self: start; margin-top: 2px; color: var(--accent-2); font-size: 0.68rem; font-style: normal; font-weight: 800; text-transform: uppercase; }

/* anel de progresso no cabeçalho do módulo */
.module-progress-ring {
  margin-left: auto;
  flex-shrink: 0;
}

.lesson-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(201,162,72,0.25);
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

/* ── SEGMENTED CONTROL ── */
.segmented {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  scrollbar-width: none;
}

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

.segmented button {
  flex: 0 0 auto;
  padding: 0 16px;
  min-height: 36px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.18s;
}

.segmented .selected { background: var(--panel-2); color: var(--text); }

/* ── POSE PACK ── */
.pose-pack-grid { display: grid; gap: 14px; }

.pose-pack {
  display: grid;
  gap: 12px;
  min-height: 240px;
  padding: 18px;
  align-content: end;
}

.pose-pack ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.84rem;
}

/* ── GUIDE CARDS ── */
.guide-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.guide-visual {
  position: relative;
  min-height: 200px;
  overflow: hidden;
  align-content: end;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(5,6,6,0.08), rgba(5,6,6,0.94)),
    var(--guide-image, url("./assets/hero-marido-fotografo.png")) var(--guide-position) / cover;
  transition: transform 0.2s;
}

.guide-visual:hover { transform: scale(1.01); }

.guide-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.guide-header p { margin: 0 0 4px; color: var(--accent); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.guide-header h3 { margin: 0; font-size: 1.05rem; line-height: 1.25; }

.guide-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.84rem;
}

.guide-meta { color: var(--muted); font-size: 0.78rem; }

/* ── BONUS ── */
.bonus-intro {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgba(201,162,72,0.2);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(201,162,72,0.14), rgba(28,28,30,0.88));
}

.bonus-intro h2 { font-size: 1.4rem; }
.bonus-intro span { color: var(--muted); line-height: 1.6; font-size: 0.88rem; }

.bonus-status {
  justify-self: start;
  display: inline-flex;
  padding: 5px 10px;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  background: rgba(8,9,9,0.6);
  color: var(--accent-2);
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── GUIDE LINK ── */
.guide-link {
  justify-self: start;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f0cb7a, #c9a248);
  color: #0d0c0a;
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: opacity 0.18s, transform 0.15s;
}

.guide-link:hover { opacity: 0.9; transform: translateY(-1px); }
.guide-link.disabled { opacity: 0.55; cursor: default; transform: none; }

/* ── ICON BUTTON ── */
.icon-button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  transition: all 0.18s;
}

.icon-button:hover { border-color: var(--line-gold); color: var(--accent); }
.icon-button.saved { color: var(--accent); border-color: rgba(201,162,72,0.4); background: rgba(201,162,72,0.08); }

/* ── PROGRESS VIEW ── */
.big-progress {
  font-size: 3.6rem;
  font-weight: 400;
  font-family: 'Playfair Display', serif;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.progress-modules { display: grid; gap: 12px; }

.progress-modules article {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.progress-modules div { display: flex; justify-content: space-between; gap: 12px; }
.progress-modules h3 { font-size: 0.9rem; margin: 0; }
.progress-modules span { color: var(--muted); font-size: 0.76rem; white-space: nowrap; }

.progress-modules i {
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
}

.progress-modules b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #f5d38a, #c9a248);
  border-radius: inherit;
}

/* ── TIMELINE ── */
.timeline { display: grid; gap: 8px; }

.timeline div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--muted);
  font-size: 0.84rem;
  cursor: pointer;
  transition: border-color 0.18s;
}

.timeline div:hover { border-color: var(--line-gold); }

.timeline span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(201,162,72,0.3);
  border: 1px solid rgba(201,162,72,0.4);
  flex-shrink: 0;
}

.timeline div.done { color: var(--text); border-color: rgba(201,162,72,0.3); }
.timeline div.done span { background: var(--accent); box-shadow: 0 0 0 3px rgba(201,162,72,0.15); }

/* ── PROFILE ── */
.profile-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 28px 18px;
  text-align: center;
}

.profile-avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  font-size: 1.4rem;
}

.settings-list { display: grid; gap: 8px; }

.settings-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  transition: border-color 0.18s;
}

.settings-list button:hover { border-color: var(--line-gold); }
.settings-list button span { color: var(--muted); font-size: 0.88rem; }
.settings-list button strong { color: var(--accent); font-size: 0.9rem; }

/* ── POSE CARD ── */
.pose-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  min-height: 140px;
  padding: 14px;
}

.pose-visual {
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(130,166,162,0.18), rgba(201,162,72,0.10)),
    #151717;
  color: var(--accent);
  font-size: 1.8rem;
}

.card-grid { display: grid; gap: 12px; }

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

.pose-tile {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 220px;
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, transparent 25%, rgba(5,6,6,0.18) 50%, rgba(5,6,6,0.92)),
    var(--pose-image, url("./assets/hero-marido-fotografo.png")) var(--pose-position) / cover;
  transition: transform 0.2s;
}

.pose-tile:hover { transform: scale(1.02); }
.pose-tile h3 { margin-bottom: 0; font-size: 0.95rem; }
.pose-tile p { margin-bottom: 5px; color: var(--accent); font-size: 0.68rem; font-weight: 700; }
.pose-tile .icon-button { position: absolute; top: 10px; right: 10px; }

/* ── FAVORITES ── */
.list-card.slim { grid-template-columns: 1fr auto; padding: 14px; align-items: center; }

/* ── BOTTOM NAV ── */
.bottom-nav {
  position: fixed;
  right: 0; bottom: 0; left: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(100%, 460px);
  margin: 0 auto;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(6,7,7,0.94);
  backdrop-filter: blur(24px);
}

.bottom-nav button {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-height: 52px;
  border-radius: var(--radius);
  background: transparent;
  color: var(--soft);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.18s, background 0.18s;
}

.bottom-nav button:hover { color: var(--muted); }

.bottom-nav span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
}

.bottom-nav svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-nav .active {
  color: var(--accent);
  background: rgba(201,162,72,0.08);
  border-radius: var(--radius);
}

/* ── FALLBACK ── */
.fallback-preview {
  display: grid;
  min-height: 100vh;
  place-content: center;
  justify-items: center;
  gap: 16px;
  padding: 24px;
  color: var(--muted);
}

/* ── DESKTOP ── */
@media (min-width: 760px) {
  body { padding: 32px 0; }

  .auth-screen,
  .phone-shell {
    min-height: calc(100vh - 64px);
    border: 1px solid var(--line);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
  }

  .bottom-nav {
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
    border-radius: 0 0 32px 32px;
  }
}

/* ── AVATAR COM FOTO ── */
.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ── PROFILE AVATAR UPLOAD ── */
.profile-avatar-wrap {
  cursor: pointer;
  display: block;
}

.profile-avatar {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--line-gold);
  transition: border-color 0.2s;
}

.profile-avatar.has-photo {
  border-color: var(--accent);
}

.profile-avatar-wrap:hover .profile-avatar {
  border-color: var(--accent);
}

.avatar-img-large {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-edit-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 50%;
  background: rgba(5,6,6,0.72);
  color: var(--accent);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.2s;
}

.profile-avatar-wrap:hover .avatar-edit-overlay {
  opacity: 1;
}

/* ── PROFILE NAME EDITABLE ── */
.profile-name-wrap {
  display: grid;
  gap: 2px;
  text-align: center;
}

.profile-name {
  outline: none;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.2s;
  padding: 2px 8px;
  border-radius: 4px;
  min-width: 80px;
}

.profile-name:focus {
  border-bottom-color: var(--accent);
  background: rgba(201,162,72,0.06);
}

.profile-name-hint {
  color: var(--soft);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

/* ── BOOT STATES (loading / erro) ── */
.boot-screen {
  width: min(100%, 460px);
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  text-align: center;
  background: rgba(8, 9, 9, 0.92);
}

.boot-spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  animation: mf-spin 0.8s linear infinite;
}

@keyframes mf-spin {
  to { transform: rotate(360deg); }
}

.boot-screen p { color: var(--muted); font-size: 0.9rem; margin: 0; }
.boot-screen h2 { margin: 0; font-size: 1.4rem; }

/* ── FORM MESSAGES (auth) ── */
.form-error {
  margin: -4px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(217, 108, 87, 0.35);
  border-radius: var(--radius);
  background: rgba(217, 108, 87, 0.1);
  color: var(--danger);
  font-size: 0.82rem;
}

.form-success {
  margin: -4px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(233, 189, 106, 0.3);
  border-radius: var(--radius);
  background: var(--accent-dim);
  color: var(--accent-2);
  font-size: 0.82rem;
}

/* ── TOAST ── */
.mf-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 12px);
  max-width: min(90vw, 400px);
  padding: 12px 18px;
  border-radius: var(--radius);
  background: #17181a;
  border: 1px solid var(--line-gold);
  color: var(--text);
  font-size: 0.85rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 50;
}

.mf-toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
