/* ==========================================================================
   Protocolo Testo 900 — Design System iOS 18 / Apple Health & Fitness
   Foco: Cirúrgico, minimalista, OLED Black (#000000), superfícies #1C1C1E,
   acentos em Âmbar Quente (#FF9F0A) e Azul (#0A84FF), tipografia SF Pro / Inter.
   ========================================================================== */

:root {
  --bg: #000000;
  --surface-grouped: #000000;
  --surface-card: #1c1c1e;
  --surface-card-hover: #2c2c2e;
  --surface-elevated: #2c2c2e;
  --surface-border: rgba(255, 255, 255, 0.08);
  --surface-border-subtle: rgba(255, 255, 255, 0.05);

  --text-primary: #ffffff;
  --text-secondary: #8e8e93;
  --text-tertiary: #636366;
  --text-muted: #48484a;

  --accent-amber: #ff9f0a;
  --accent-orange: #ff453a;
  --accent-blue: #0a84ff;
  --accent-green: #30d158;
  --accent-cyan: #64d2ff;
  --accent-gold-bg: rgba(255, 159, 10, 0.12);

  --font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "SF Pro", "Inter", Roboto, sans-serif;
  --radius-card: 20px;
  --radius-subtle: 12px;
  --radius-pill: 9999px;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --transition-apple: all 0.28s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html,
body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ==========================================================================
   Layout & Container Principal
   ========================================================================== */

.app-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 16px 100px;
}

@media (min-width: 768px) {
  .app-wrapper {
    padding: 0 32px 60px;
  }
}

/* Top App Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--surface-border-subtle);
  padding: calc(var(--safe-top) + 12px) 0 12px;
  margin: 0 -16px 20px;
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 768px) {
  .app-header {
    margin: 0 -32px 28px;
    padding-left: 32px;
    padding-right: 32px;
  }
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.header-brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: block;
  object-fit: cover;
}

.brand-icon-img {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: block;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(255, 159, 10, 0.28);
  margin-bottom: 6px;
}

.brand-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo span {
  color: var(--accent-amber);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.streak-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-amber);
}

.user-avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #3a3a3c;
  border: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-apple);
}

.user-avatar-btn:hover {
  background: #48484a;
}

/* ==========================================================================
   Segmented Control Apple (Navegação Superior)
   ========================================================================== */

.segmented-control {
  display: flex;
  background: #1c1c1e;
  padding: 3px;
  border-radius: 12px;
  border: 1px solid var(--surface-border);
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.seg-btn {
  flex: 1;
  min-width: max-content;
  padding: 8px 16px;
  background: transparent;
  border: none;
  border-radius: 9px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-apple);
  text-align: center;
}

.seg-btn:hover {
  color: var(--text-primary);
}

.seg-btn.active {
  background: #3a3a3c;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Dashboard Widgets & Ring
   ========================================================================== */

.hero-ring-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  padding: 32px 24px;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.ring-wrapper {
  position: relative;
  width: 190px;
  height: 190px;
  margin: 0 auto 16px;
}

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

.ring-bg-circle {
  fill: none;
  stroke: #2c2c2e;
  stroke-width: 14;
}

.ring-active-circle {
  fill: none;
  stroke: var(--accent-amber);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 502;
  stroke-dashoffset: 80;
  transition: stroke-dashoffset 1s ease-out;
}

.ring-center-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.testo-val-big {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1;
}

.testo-unit {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 4px;
}

.ring-status-pill {
  display: inline-block;
  background: var(--accent-gold-bg);
  color: var(--accent-amber);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.2px;
}

/* 2x2 Metrics Grid */
.metrics-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .metrics-grid-2x2 {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.metric-widget {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-header {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}

.metric-value {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.metric-sub {
  font-size: 11.5px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* Hero Action Banner */
.hero-action-card {
  background: #1c1c1e;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 768px) {
  .hero-action-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.hero-action-text h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #ffffff;
}

.hero-action-text p {
  font-size: 14px;
  color: var(--text-secondary);
}

.btn-apple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent-amber);
  color: #000000;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-apple);
  text-decoration: none;
}

.btn-apple:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

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

.btn-secondary-apple {
  background: #2c2c2e;
  color: #ffffff;
  border: 1px solid var(--surface-border);
}

.btn-secondary-apple:hover {
  background: #3a3a3c;
}

/* ==========================================================================
   Lista Agrupada iOS (Inset Grouped)
   ========================================================================== */

.section-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 10px 4px;
}

.inset-list {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 24px;
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--surface-border-subtle);
  transition: var(--transition-apple);
}

.list-item:last-child {
  border-bottom: none;
}

.list-item.interactive:hover {
  background: var(--surface-card-hover);
  cursor: pointer;
}

.item-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.item-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #2c2c2e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.item-text h4 {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
}

.item-text p {
  font-size: 13px;
  color: var(--text-secondary);
}

.item-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ==========================================================================
   Switch Nativo iOS 18
   ========================================================================== */

.ios-switch {
  position: relative;
  display: inline-block;
  width: 51px;
  height: 31px;
}

.ios-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #39393d;
  transition: var(--transition-apple);
  border-radius: 31px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 27px;
  width: 27px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: var(--transition-apple);
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.ios-switch input:checked + .switch-slider {
  background-color: var(--accent-amber);
}

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

/* ==========================================================================
   Jornada dos 60 Dias (Timeline & Cards)
   ========================================================================== */

.timeline-phase-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent-amber);
  margin: 28px 0 12px 4px;
  letter-spacing: -0.01em;
}

.days-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .days-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .days-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.day-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition-apple);
  position: relative;
}

.day-card:hover {
  background: var(--surface-card-hover);
  border-color: rgba(255, 159, 10, 0.3);
  transform: translateY(-2px);
}

.day-card.completed {
  border-color: rgba(48, 209, 88, 0.4);
}

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

.day-num-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  background: #2c2c2e;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.day-card.completed .day-num-badge {
  color: var(--accent-green);
  background: rgba(48, 209, 88, 0.12);
}

.day-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.day-card-sub {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 14px;
}

.day-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-tertiary);
  border-top: 1px solid var(--surface-border-subtle);
  padding-top: 10px;
}

/* ==========================================================================
   Drawer Modal / Bottom Sheet iOS 18 (Orientação Prática do Dia)
   ========================================================================== */

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-apple);
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.drawer-sheet {
  background: #1c1c1e;
  border-top: 1px solid var(--surface-border);
  border-radius: 28px 28px 0 0;
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 16px 24px calc(var(--safe-bottom) + 32px);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
}

@media (min-width: 768px) {
  .drawer-overlay {
    align-items: center;
  }
  .drawer-sheet {
    border-radius: 28px;
    border: 1px solid var(--surface-border);
    max-height: 85vh;
  }
}

.drawer-overlay.active .drawer-sheet {
  transform: translateY(0);
}

.drawer-pull-pill {
  width: 40px;
  height: 5px;
  background: #3a3a3c;
  border-radius: var(--radius-pill);
  margin: 0 auto 16px;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.drawer-day-meta {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-amber);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.drawer-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.btn-close-drawer {
  background: #2c2c2e;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-apple);
}

.btn-close-drawer:hover {
  background: #3a3a3c;
  color: #fff;
}

/* Seções de Leitura e Protocolo */
.drawer-block {
  background: #242426;
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 18px;
  border: 1px solid var(--surface-border-subtle);
}

.drawer-block-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.drawer-block-text {
  font-size: 14.5px;
  line-height: 1.65;
  color: #d1d1d6;
}

.drawer-block-text p {
  margin-bottom: 12px;
}

.drawer-block-text p:last-child {
  margin-bottom: 0;
}

/* Checklist Dentro do Drawer */
.checklist-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #2c2c2e;
  border-radius: 12px;
  margin-bottom: 10px;
}

.checklist-info h5 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.checklist-info p {
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* Golden Tip Card */
.golden-tip-box {
  background: rgba(255, 159, 10, 0.08);
  border: 1px solid rgba(255, 159, 10, 0.25);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.golden-tip-box h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent-amber);
  margin-bottom: 6px;
}

.golden-tip-box p {
  font-size: 13.5px;
  color: #f2f2f7;
  font-style: italic;
}

/* ==========================================================================
   Módulos de Nutrição, Suplementação & Calculadora
   ========================================================================== */

.step-tag-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background: rgba(255, 159, 10, 0.12);
  color: var(--accent-amber);
  border: 1px solid rgba(255, 159, 10, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.protocol-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  padding: 24px;
  margin-bottom: 20px;
}

.protocol-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.table-apple {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}

.table-apple th,
.table-apple td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--surface-border-subtle);
  font-size: 13.5px;
}

.table-apple th {
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11.5px;
  letter-spacing: 0.5px;
}

.table-apple td {
  color: #ffffff;
}

/* Inputs da Calculadora */
.calc-input-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

@media (min-width: 640px) {
  .calc-input-group {
    grid-template-columns: repeat(2, 1fr);
  }
}

.input-apple {
  width: 100%;
  background: #2c2c2e;
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  color: #ffffff;
  outline: none;
  transition: var(--transition-apple);
}

.input-apple:focus {
  border-color: var(--accent-amber);
  background: #323236;
}

.calc-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

/* Bottom Nav para Mobile */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(28, 28, 30, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--surface-border-subtle);
  display: flex;
  justify-content: space-around;
  padding: 8px 0 calc(var(--safe-bottom) + 8px);
  z-index: 80;
}

@media (min-width: 768px) {
  .bottom-nav {
    display: none;
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 10.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition-apple);
  padding: 4px 12px;
}

.bottom-nav-item .nav-icon {
  font-size: 20px;
}

.bottom-nav-item.active {
  color: var(--accent-amber);
}

/* View States */
.view-panel {
  display: none;
}

.view-panel.active {
  display: block;
}

/* ==========================================================================
   NOVA ARQUITETURA: HUB DE MÓDULOS & VISTAS DEDICADAS (iOS 18)
   ========================================================================== */

.app-view {
  display: none;
  animation: fadeInView 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.app-view.active {
  display: block;
}

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

.header-tag-pill {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(255, 159, 10, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(255, 159, 10, 0.3);
  padding: 3px 8px;
  border-radius: 999px;
  margin-left: 6px;
}

/* ===== 1. WIDGET DE CALIBRAÇÃO HORMONAL ===== */
.hormonal-status-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 22px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-apple-card);
}

.status-card-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
}

@media (min-width: 680px) {
  .status-card-inner {
    grid-template-columns: 180px 1fr;
    gap: 28px;
  }
}

.status-ring-box {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto;
}

.status-info-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

@media (min-width: 680px) {
  .status-info-box {
    text-align: left;
  }
}

.status-badge-pill {
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.status-badge-pill.warning {
  background: rgba(255, 159, 10, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(255, 159, 10, 0.3);
}

.status-badge-pill.success {
  background: rgba(48, 209, 88, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(48, 209, 88, 0.3);
}

.status-badge-pill.alert {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.status-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.status-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  justify-content: center;
}

@media (min-width: 680px) {
  .status-actions-row {
    justify-content: flex-start;
  }
}

.btn-sub-pill {
  background: #2c2c2e;
  color: #f2f2f7;
  border: 1px solid var(--surface-border);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition-apple);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-sub-pill:hover {
  background: #3a3a3c;
  border-color: var(--accent-amber);
  color: #fff;
}

.exam-verified-strip {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--surface-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.verified-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(48, 209, 88, 0.15);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.verified-text {
  flex: 1;
  font-size: 13px;
  color: #ffffff;
}

.verified-text small {
  display: block;
  font-size: 11.5px;
  color: var(--text-tertiary);
}

.btn-mini-text {
  background: none;
  border: none;
  color: var(--accent-amber);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* ===== 2. HERO ACTION CARD (AÇÃO DO DIA) ===== */
.today-action-hero {
  background: linear-gradient(
    135deg,
    rgba(255, 159, 10, 0.12) 0%,
    rgba(28, 28, 30, 0.95) 100%
  );
  border: 1px solid rgba(255, 159, 10, 0.3);
  border-radius: 22px;
  padding: 24px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

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

.today-hero-header .meta-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-amber);
  letter-spacing: 0.8px;
}

.phase-tag-indicator {
  font-size: 10.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--text-secondary);
}

.today-hero-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.35;
}

.today-hero-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 18px;
}

.btn-apple-primary {
  background: var(--accent-amber);
  color: #000000;
  border: none;
  border-radius: 14px;
  padding: 14px 22px;
  font-size: 14.5px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition-apple);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-apple-primary:hover {
  background: #ffb340;
  transform: translateY(-1px);
}

.btn-apple-secondary {
  background: #2c2c2e;
  color: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition-apple);
}

.btn-apple-secondary:hover {
  background: #3a3a3c;
}

.btn-apple-outline {
  background: transparent;
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition-apple);
}

.btn-apple-outline.red {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

.btn-apple-outline.red:hover {
  background: rgba(239, 68, 68, 0.12);
}

/* ===== 3. HUB DE MÓDULOS NA HOME ===== */
.modules-hub-section {
  margin-bottom: 30px;
}

.hub-header {
  margin-bottom: 18px;
}

.hub-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.hub-sub {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.modules-grid-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 680px) {
  .modules-grid-2col {
    grid-template-columns: repeat(2, 1fr);
  }
}

.module-card-apple {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  padding: 22px;
  cursor: pointer;
  transition: var(--transition-apple);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-apple-card);
}

.module-card-apple:hover {
  border-color: rgba(255, 159, 10, 0.4);
  background: #242426;
  transform: translateY(-2px);
}

.module-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.module-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.module-icon-box.amber {
  background: rgba(255, 159, 10, 0.12);
  border: 1px solid rgba(255, 159, 10, 0.3);
}
.module-icon-box.orange {
  background: rgba(255, 107, 0, 0.12);
  border: 1px solid rgba(255, 107, 0, 0.3);
}
.module-icon-box.gold {
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.3);
}
.module-icon-box.cyan {
  background: rgba(100, 210, 255, 0.12);
  border: 1px solid rgba(100, 210, 255, 0.3);
}
.module-icon-box.purple {
  background: rgba(175, 82, 222, 0.12);
  border: 1px solid rgba(175, 82, 222, 0.3);
}
.module-icon-box.red {
  background: rgba(255, 69, 58, 0.12);
  border: 1px solid rgba(255, 69, 58, 0.3);
}

.module-pill {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--text-secondary);
}

.module-title {
  font-size: 17.5px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.35;
}

.module-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.module-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--surface-border-subtle);
  padding-top: 12px;
  margin-top: auto;
}

.module-progress-text {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 500;
}

.module-arrow {
  font-size: 12.5px;
  color: var(--accent-amber);
  font-weight: 700;
}

/* ===== 4. SUBTELAS DE MÓDULOS ===== */
.module-view-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}

.btn-back-nav {
  align-self: flex-start;
  background: #2c2c2e;
  color: var(--accent-amber);
  border: 1px solid var(--surface-border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-apple);
}

.btn-back-nav:hover {
  background: #3a3a3c;
}

.module-view-title-group h2 {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.module-view-title-group p {
  font-size: 14.5px;
  color: var(--text-secondary);
}

/* Sub-abas do Módulo */
.subtabs-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 24px;
  -webkit-overflow-scrolling: touch;
}

.subtab-btn {
  background: var(--surface-card);
  color: var(--text-secondary);
  border: 1px solid var(--surface-border);
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-apple);
}

.subtab-btn.active {
  background: var(--accent-amber);
  color: #000000;
  border-color: var(--accent-amber);
}

.module-content-area {
  min-height: 300px;
}

/* Timeline Phase Bar */
.phase-filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 20px;
}

.phase-btn {
  background: var(--surface-card);
  color: var(--text-secondary);
  border: 1px solid var(--surface-border);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-apple);
}

.phase-btn.active {
  background: rgba(255, 159, 10, 0.15);
  color: var(--accent-amber);
  border-color: rgba(255, 159, 10, 0.4);
}

/* ===== 5. MODAIS: ADAM & EXAME REAL ===== */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.active {
  display: flex;
  animation: fadeInModal 0.2s ease-out;
}

@keyframes fadeInModal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-card {
  background: #1c1c1e;
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.modal-badge-tag {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--accent-amber);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.modal-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 2px;
}

.btn-close-modal {
  background: #2c2c2e;
  border: none;
  color: #8e8e93;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-close-modal:hover {
  background: #3a3a3c;
  color: #fff;
}

.modal-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Quiz ADAM Questions */
.adam-questions-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.adam-q-item {
  background: #242426;
  border: 1px solid var(--surface-border-subtle);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.adam-q-text {
  font-size: 13.5px;
  color: #ffffff;
  line-height: 1.4;
  font-weight: 500;
}

.adam-btn-group {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.adam-choice-btn {
  background: #2c2c2e;
  color: #8e8e93;
  border: 1px solid var(--surface-border);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-apple);
}

.adam-choice-btn.selected-yes {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: #ef4444;
}

.adam-choice-btn.selected-no {
  background: rgba(48, 209, 88, 0.2);
  color: var(--accent-green);
  border-color: var(--accent-green);
}

.modal-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--surface-border-subtle);
  padding-top: 18px;
  margin-top: 18px;
}

/* Exam Form Fields */
.form-grid-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

@media (min-width: 540px) {
  .form-grid-2col {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.apple-input {
  background: #2c2c2e;
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14.5px;
  font-family: inherit;
  color: #ffffff;
  outline: none;
  transition: var(--transition-apple);
}

.apple-input:focus {
  border-color: var(--accent-amber);
  background: #323236;
}

.field-hint {
  font-size: 11px;
  color: var(--text-tertiary);
}

/* Bottom Nav Apple iOS 18 */
.bottom-nav-apple {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(28, 28, 30, 0.94);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-around;
  padding: 8px 12px calc(var(--safe-bottom) + 8px);
  z-index: 100;
}

@media (min-width: 768px) {
  .bottom-nav-apple {
    display: none;
  }
}

.bnav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  color: #8e8e93;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-apple);
  padding: 4px 10px;
}

.bnav-btn .bnav-icon {
  font-size: 20px;
}

.bnav-btn.active {
  color: var(--accent-amber);
}

/* Perfil */
.profile-content-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-avatar-big {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #3a3a3c;
  border: 2px solid var(--accent-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.profile-info-text h3 {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
}

.profile-info-text p {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.profile-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  background: rgba(48, 209, 88, 0.15);
  color: var(--accent-green);
  padding: 3px 8px;
  border-radius: 6px;
}

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

@media (min-width: 640px) {
  .profile-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.profile-stat-box {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
}

.profile-stat-box .stat-num {
  display: block;
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
}

.profile-stat-box .stat-label {
  font-size: 11.5px;
  color: var(--text-secondary);
}

.profile-actions-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================================
   GAUNTLET LOOP UI/UX ELEVATION SYSTEM
   Foco: Micro-interações, HUD Toast iOS 18, Física de Mola, Indicadores
   de Densidade Nutricional, Calculadora Vermeulen Reativa & Cronômetro
   ========================================================================== */

/* 1. iOS Dynamic Island HUD Toast */
.ios-hud-toast {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%) translateY(-120px) scale(0.85);
  z-index: 99999;
  background: rgba(28, 28, 30, 0.94);
  backdrop-filter: blur(28px) saturate(210%);
  -webkit-backdrop-filter: blur(28px) saturate(210%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.75),
    0 0 1px rgba(255, 255, 255, 0.25);
  padding: 10px 22px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.ios-hud-toast.show {
  transform: translateX(-50%) translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.ios-hud-toast .hud-icon {
  font-size: 16px;
}

/* 2. Micro-Interactions: Spring Physics & Active Compression Feedback */
.module-card-apple:active,
.btn-apple:active,
.btn-apple-primary:active,
.btn-apple-secondary:active,
.btn-back-nav:active,
.subtab-btn:active,
.phase-btn:active,
.checklist-item-row:active,
.timeline-day-card:active,
.bnav-btn:active,
.user-avatar-btn:active,
.streak-pill:active {
  transform: scale(0.972) !important;
  transition: transform 0.12s cubic-bezier(0.2, 0.9, 0.4, 1) !important;
}

/* 3. Pulsing Halo & Live Glow for Hormonal Ring */
.ring-active-circle {
  filter: drop-shadow(0 0 12px rgba(255, 159, 10, 0.45));
}

@keyframes pulseBeacon {
  0% {
    transform: scale(0.9);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
    filter: drop-shadow(0 0 8px #ff9f0a);
  }
  100% {
    transform: scale(0.9);
    opacity: 0.75;
  }
}

.ring-pulse-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-amber);
  display: inline-block;
  margin-right: 6px;
  animation: pulseBeacon 2.2s infinite ease-in-out;
}

/* 4. Vermeulen Live Interactive Gauge Bar */
.vermeulen-gauge-container {
  background: #1c1c1e;
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  padding: 20px;
  margin-top: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.gauge-bar-track {
  height: 12px;
  background: #2c2c2e;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  margin: 12px 0 8px;
}

.gauge-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #ef4444 0%,
    #ff9f0a 50%,
    #30d158 85%,
    #64d2ff 100%
  );
  width: 0%;
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.gauge-legend-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 600;
}

/* 5. Interactive Grocery Shopping Checklist */
.grocery-check-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #202023;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--transition-apple);
  user-select: none;
}

.grocery-check-row:hover {
  background: #28282b;
}

.grocery-check-row.checked {
  opacity: 0.5;
}

.grocery-check-row.checked .grocery-text {
  text-decoration: line-through;
  color: var(--text-secondary);
}

.grocery-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid #545458;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #000;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.grocery-check-row.checked .grocery-checkbox {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: #000;
}

/* 6. Built-in 3-Min Neuro Rest Timer for Treinos */
.rest-timer-box {
  background: #1c1c1e;
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  padding: 22px;
  text-align: center;
  margin-bottom: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.rest-timer-display {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
  margin: 10px 0 16px;
  text-shadow: 0 0 20px rgba(255, 159, 10, 0.25);
}

.rest-timer-display.running {
  color: var(--accent-amber);
}

.rest-timer-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* 7. Enhanced Sticky Header for Drawer */
.drawer-sheet {
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.drawer-header {
  position: sticky;
  top: 0;
  background: rgba(28, 28, 30, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10;
  padding: 8px 0 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--surface-border-subtle);
}

/* 8. Copyable Script Box for Medical Appointment */
.medical-script-box {
  background: #141416;
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  padding: 16px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #e2e8f0;
  margin-bottom: 14px;
  white-space: pre-wrap;
}

/* 9. Safe-Area & Viewport Fit */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .bottom-nav-apple {
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }
}

/* ==========================================================================
   P2 — Tela de Login (Gate de Acesso) + Manuais PDF + Aviso Legal
   ========================================================================== */

/* `hidden` sempre manda (classes com display:flex não podem vazá-la) */
[hidden] {
  display: none !important;
}

.module-icon-box.blue {
  background: rgba(10, 132, 255, 0.12);
  border: 1px solid rgba(10, 132, 255, 0.3);
}

.login-view {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(255, 159, 10, 0.1) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(10, 132, 255, 0.08) 0%,
      transparent 40%
    ),
    var(--bg);
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  padding: 32px 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.login-title {
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.login-desc {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.5;
  margin-bottom: 20px;
}

.login-label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 16px 0 6px;
  font-weight: 700;
}

.input-field {
  width: 100%;
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  color: var(--text-primary);
  font-size: 16px;
  font-family: var(--font-family);
  outline: none;
  transition: border-color 0.2s ease;
}

.input-field:focus {
  border-color: var(--accent-amber);
}

.input-field::placeholder {
  color: var(--text-tertiary);
}

.login-hint {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 6px 0 0;
}

.login-hint strong {
  color: var(--accent-amber);
}

.btn-block {
  width: 100%;
  margin-top: 24px;
}

.login-error {
  margin-top: 14px;
  padding: 12px;
  background: rgba(255, 69, 58, 0.12);
  border: 1px solid rgba(255, 69, 58, 0.4);
  border-radius: 12px;
  color: #ff6961;
  font-size: 13px;
  text-align: center;
}

.login-error.error {
  background: rgba(255, 69, 58, 0.12);
  border-color: rgba(255, 69, 58, 0.4);
  color: #ff6961;
}

.login-error.show {
  display: block;
}

.login-support {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--surface-border);
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: center;
  line-height: 1.5;
}

/* Manuais em PDF */
.materiais-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  width: 100%;
}

.materiais-empty {
  font-size: 13px;
  color: var(--text-secondary);
}

.manual-link-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-grouped);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition-apple);
}

.manual-link-row:active {
  background: var(--surface-card-hover);
}

.manual-link-icon {
  font-size: 20px;
}

.manual-link-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.manual-link-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.manual-link-size {
  font-size: 12px;
  color: var(--text-secondary);
}

.manual-link-open {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-amber);
  white-space: nowrap;
}

/* Rodapé legal do app (view perfil) */
.profile-legal-footer {
  margin-top: 24px;
  padding: 16px;
  border-top: 1px solid var(--surface-border);
  text-align: center;
}

.profile-legal-footer p {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.profile-legal-footer a {
  font-size: 13px;
  color: var(--accent-amber);
  font-weight: 600;
  text-decoration: none;
}

/* Timeline dos dias (renderDaysTimeline gera .timeline-day-card dentro de
   #daysTimelineContainer.days-timeline-grid): reutiliza o visual de
   .day-card/.days-grid para não cair em bloco sem estilo. */
.days-timeline-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .days-timeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .days-timeline-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.timeline-day-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition-apple);
}

.timeline-day-card:hover {
  background: var(--surface-card-hover);
  border-color: rgba(255, 159, 10, 0.3);
  transform: translateY(-2px);
}

.timeline-day-card.completed {
  border-color: rgba(48, 209, 88, 0.4);
}

/* Mobile 320–480px: cards horizontais das LPs viram coluna, modais e drawer
   ganham padding menor para não estourar a viewport. */
@media (max-width: 480px) {
  .step-horizontal-item {
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    padding: 18px 16px;
  }
  .modal-card {
    padding: 20px 16px;
    border-radius: 18px;
  }
  .drawer-sheet {
    padding-left: 16px;
    padding-right: 16px;
  }
}
