@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-main: #050b14;
  --bg-card: rgba(15, 23, 42, 0.78);
  --bg-card-strong: rgba(15, 23, 42, 0.96);
  --bg-soft: rgba(255, 255, 255, 0.035);

  --orange: #ff9900;
  --orange-2: #ff7a18;
  --orange-3: #ffb347;
  --orange-soft: rgba(255, 153, 0, 0.12);
  --orange-border: rgba(255, 153, 0, 0.32);

  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.12);

  --red: #fb7185;
  --red-soft: rgba(251, 113, 133, 0.1);

  --blue: #38bdf8;
  --blue-soft: rgba(56, 189, 248, 0.12);

  --purple: #a78bfa;
  --purple-soft: rgba(167, 139, 250, 0.12);

  --text-main: #f8fafc;
  --text-soft: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dark: #020617;

  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.26);

  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);

  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

html,
body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(255, 153, 0, 0.055), transparent 32%),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.04), transparent 30%),
    linear-gradient(180deg, #050b14 0%, #020617 100%);
}

button,
input,
select {
  font-family: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.app {
  width: 100%;
  min-height: 100vh;
}

.main {
  width: 100%;
  max-width: 1780px;
  margin: 0 auto;
  padding: 34px 64px 100px;
}

/* ============================= */
/* TOPO */
/* ============================= */

.topbar {
  display: grid;
  grid-template-columns: 280px 1fr auto;
  align-items: center;
  gap: 28px;
  margin-bottom: 34px;
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid var(--orange-border);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12), transparent 30%),
    var(--orange-soft);
  color: var(--orange);
  font-size: 24px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 30px rgba(255, 153, 0, 0.08);
}

.brand-area h1 {
  font-size: 29px;
  line-height: 1;
  letter-spacing: -0.06em;
}

.brand-area h1 span {
  color: var(--orange);
}

.brand-area p {
  margin-top: 6px;
  color: #a9c2df;
  font-size: 14px;
}

.greeting-area h2 {
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.06em;
}

.greeting-area p {
  margin-top: 8px;
  color: #a9c2df;
  font-size: 16px;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.today-date,
.top-new-goal-btn,
.reset-day-btn,
.logout-btn,
.small-action-btn,
.details-btn {
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 14px;
  padding: 0 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-main);
  font-weight: 800;
  font-size: 14px;
  transition: 0.22s ease;
}

.today-date {
  color: var(--text-soft);
}

.today-date i {
  color: var(--orange);
}

.top-new-goal-btn {
  border-color: var(--orange-border);
  color: var(--orange);
  background: rgba(255, 153, 0, 0.06);
}

.reset-day-btn {
  border-color: rgba(251, 113, 133, 0.28);
  color: #fb7185;
  background: rgba(251, 113, 133, 0.08);
}

.top-new-goal-btn:hover,
.details-btn:hover,
.small-action-btn:hover,
.today-date:hover,
.logout-btn:hover,
.reset-day-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 153, 0, 0.48);
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 12px 32px rgba(255, 153, 0, 0.08);
}

.reset-day-btn:hover {
  border-color: rgba(251, 113, 133, 0.44);
  box-shadow: 0 12px 32px rgba(251, 113, 133, 0.08);
}

.user-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(59, 130, 246, 0.22);
  background: rgba(30, 64, 175, 0.18);
  color: #f8fafc;
  font-weight: 900;
}

/* ============================= */
/* GRID PRINCIPAL */
/* ============================= */

.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(420px, 1fr);
  grid-template-areas:
    "progress summary"
    "goals calendar"
    "evolution right";
  gap: 22px;
  align-items: start;
}

.progress-card {
  grid-area: progress;
}

.summary-card {
  grid-area: summary;
}

.goals-card,
.recurring-goals-card {
  grid-area: goals;
}

.calendar-card {
  grid-area: calendar;
}

.right-stack {
  grid-area: right;
}

.evolution-card {
  grid-area: evolution;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at top left, rgba(255, 153, 0, 0.045), transparent 32%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.68));
  box-shadow: var(--shadow);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 28%);
}

.progress-card,
.summary-card,
.goals-card,
.calendar-card,
.reminders-card,
.verse-card,
.streak-card,
.status-card {
  padding: 26px;
}

.right-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-self: start;
}

.reminders-card,
.status-card {
  grid-column: 1 / -1;
}

.card-title-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.compact-title-row {
  margin-bottom: 18px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title i {
  color: var(--orange);
  font-size: 18px;
}

.section-title h3 {
  font-size: 23px;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.updated-pill,
.verse-day-pill,
.achievement-pill,
.reminder-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
}

.verse-day-pill,
.reminder-count-pill {
  color: var(--orange);
  border-color: var(--orange-border);
  background: var(--orange-soft);
}

.achievement-pill.unlocked {
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.32);
  background: rgba(34, 197, 94, 0.1);
}

/* ============================= */
/* PROGRESSO PREMIUM LIMPO */
/* ============================= */

.progress-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 34px;
}

.circle-progress {
  --progress-deg: 0deg;

  position: relative;
  width: 170px;
  height: 170px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    conic-gradient(
      from -90deg,
      #ff9900 0deg,
      #ffb347 var(--progress-deg),
      rgba(148, 163, 184, 0.16) var(--progress-deg),
      rgba(148, 163, 184, 0.16) 360deg
    );
  box-shadow:
    0 0 24px rgba(255, 153, 0, 0.16),
    0 0 52px rgba(255, 153, 0, 0.07),
    inset 0 0 28px rgba(255, 153, 0, 0.06);
  isolation: isolate;
}

.circle-progress::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 153, 0, 0.12), transparent 62%);
  filter: blur(10px);
  opacity: 0.75;
  z-index: -1;
}

.circle-progress::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #ff9900;
  box-shadow:
    0 0 14px rgba(255, 153, 0, 0.85),
    0 0 28px rgba(255, 153, 0, 0.36);
  z-index: 5;
}

.circle-inner {
  position: relative;
  width: 122px;
  height: 122px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 70%, rgba(255, 153, 0, 0.09), transparent 38%),
    linear-gradient(145deg, #07111d, #020617);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 0 26px rgba(0, 0, 0, 0.75),
    inset 0 0 16px rgba(255, 153, 0, 0.06);
}

.circle-inner::before {
  content: "";
  position: absolute;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 1px solid rgba(255, 153, 0, 0.14);
  pointer-events: none;
}

.circle-inner strong {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.07em;
  color: #ffffff;
  text-shadow:
    0 0 14px rgba(255, 255, 255, 0.18),
    0 0 18px rgba(255, 153, 0, 0.18);
  z-index: 2;
}

.progress-info h3 {
  font-size: 28px;
  letter-spacing: -0.055em;
  margin-bottom: 20px;
}

.bar,
.achievement-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
}

.bar-fill,
.achievement-bar-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--orange-2));
  transition: width 0.3s ease;
}

.progress-info p {
  margin-top: 18px;
  color: #a9c2df;
  font-size: 15px;
}

.details-btn {
  margin-top: 24px;
  height: 42px;
}

/* ============================= */
/* RESUMO */
/* ============================= */

.summary-horizontal {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.summary-stat {
  min-height: 82px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
}

.summary-stat i {
  color: #a9c2df;
  font-size: 16px;
}

.summary-stat strong {
  display: block;
  margin-top: 6px;
  color: var(--orange);
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.06em;
}

.summary-stat span {
  display: block;
  margin-top: 6px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
}

.summary-message {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 153, 0, 0.2);
  background: rgba(255, 153, 0, 0.065);
  color: #f8fafc;
  font-size: 13px;
}

.weekly-history {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.45);
}

.weekly-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.weekly-history-header div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 900;
}

.weekly-history-header i,
.weekly-history-header strong {
  color: var(--orange);
}

.weekly-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.weekly-day {
  display: grid;
  place-items: center;
  gap: 4px;
  position: relative;
}

.weekly-dot {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(100, 116, 139, 0.65);
  color: #020617;
  font-size: 9px;
  font-weight: 900;
}

.weekly-day.completed .weekly-dot {
  border-color: var(--orange);
  background: var(--orange);
}

.weekly-day.today .weekly-dot {
  border-color: var(--orange);
}

.weekly-label,
.weekly-score {
  font-size: 10px;
  color: #9fb1c7;
  font-weight: 800;
}

.weekly-score {
  display: none;
}

/* ============================= */
/* METAS RECORRENTES */
/* ============================= */

.card-helper-text {
  position: relative;
  z-index: 1;
  margin: -10px 0 18px;
  color: var(--text-muted);
  font-size: 14px;
}

.period-tabs {
  display: inline-flex;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.56);
}

.period-tab {
  height: 34px;
  min-width: 78px;
  border: none;
  border-radius: 11px;
  background: transparent;
  color: var(--text-muted);
  font-weight: 900;
  transition: 0.2s ease;
}

.period-tab.active {
  background: var(--orange-soft);
  color: var(--orange);
  box-shadow: inset 0 0 0 1px var(--orange-border);
}

.goals-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.goal-item {
  display: grid;
  grid-template-columns: 42px 46px minmax(0, 1fr) 220px 90px;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.48);
  transition: 0.22s ease;
}

.goal-item:hover {
  border-color: rgba(255, 153, 0, 0.22);
  background: rgba(15, 23, 42, 0.7);
}

.goal-check {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 2px solid #94a3b8;
  color: #020617;
  font-size: 12px;
  font-weight: 900;
  transition: 0.2s ease;
}

.goal-check:hover {
  border-color: var(--orange);
  background: rgba(255, 153, 0, 0.08);
}

.goal-item.completed .goal-check {
  border-color: var(--orange);
  background: var(--orange);
}

.goal-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  border: 1px solid var(--orange-border);
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 18px;
}

.goal-title {
  min-width: 0;
  color: var(--text-main);
  font-size: 16px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goal-progress-wrap {
  display: grid;
  gap: 7px;
}

.goal-progress-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
}

.goal-progress-info strong {
  color: var(--orange);
}

.goal-mini-bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
}

.goal-mini-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--orange-2));
}

.goal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.goal-edit,
.goal-delete,
.goal-more {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-soft);
  transition: 0.2s ease;
}

.goal-edit:hover {
  color: var(--blue);
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.08);
}

.goal-delete {
  color: #fecdd3;
}

.goal-delete:hover {
  color: var(--red);
  border-color: rgba(251, 113, 133, 0.35);
  background: rgba(251, 113, 133, 0.08);
}

.add-goal-wide,
.add-reminder-btn {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 14px;
  border-radius: 15px;
  border: 1px solid var(--orange-border);
  background: rgba(255, 153, 0, 0.08);
  color: var(--orange);
  font-size: 15px;
  font-weight: 900;
  transition: 0.22s ease;
}

.add-goal-wide:hover,
.add-reminder-btn:hover {
  background: rgba(255, 153, 0, 0.12);
  transform: translateY(-1px);
}

/* ============================= */
/* ÍCONES / CATEGORIAS DAS METAS */
/* ============================= */

.aws-icon,
.sql-icon,
.book-icon,
.english-icon,
.default-icon {
  color: var(--orange);
  background: var(--orange-soft);
  border-color: var(--orange-border);
}

.category-study,
.goal-icon.study {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.25);
}

.category-programming,
.goal-icon.programming {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.25);
}

.category-database,
.goal-icon.database {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.25);
}

.category-cloud,
.goal-icon.cloud {
  color: #93c5fd;
  background: rgba(147, 197, 253, 0.12);
  border-color: rgba(147, 197, 253, 0.25);
}

.category-gym,
.goal-icon.gym {
  color: #f97316;
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.25);
}

.category-running,
.goal-icon.running {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.25);
}

.category-fight,
.goal-icon.fight {
  color: #fb7185;
  background: rgba(251, 113, 133, 0.12);
  border-color: rgba(251, 113, 133, 0.25);
}

.category-language,
.goal-icon.language {
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(167, 139, 250, 0.25);
}

.category-reading,
.goal-icon.reading {
  color: #facc15;
  background: rgba(250, 204, 21, 0.12);
  border-color: rgba(250, 204, 21, 0.25);
}

.category-work,
.goal-icon.work {
  color: #cbd5e1;
  background: rgba(203, 213, 225, 0.1);
  border-color: rgba(203, 213, 225, 0.2);
}

.category-health,
.goal-icon.health {
  color: #fb7185;
  background: rgba(251, 113, 133, 0.12);
  border-color: rgba(251, 113, 133, 0.25);
}

.category-sleep,
.goal-icon.sleep {
  color: #c084fc;
  background: rgba(192, 132, 252, 0.12);
  border-color: rgba(192, 132, 252, 0.25);
}

.category-money,
.goal-icon.money {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.25);
}

.category-home,
.goal-icon.home {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.25);
}

.category-spiritual,
.goal-icon.spiritual {
  color: #f8fafc;
  background: rgba(248, 250, 252, 0.1);
  border-color: rgba(248, 250, 252, 0.2);
}

.category-food,
.goal-icon.food {
  color: #fb923c;
  background: rgba(251, 146, 60, 0.12);
  border-color: rgba(251, 146, 60, 0.25);
}

.category-water,
.goal-icon.water {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.25);
}

.category-mind,
.goal-icon.mind {
  color: #818cf8;
  background: rgba(129, 140, 248, 0.12);
  border-color: rgba(129, 140, 248, 0.25);
}

.category-personal,
.goal-icon.personal {
  color: var(--orange);
  background: var(--orange-soft);
  border-color: var(--orange-border);
}

/* ============================= */
/* CALENDÁRIO */
/* ============================= */

.calendar-toolbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
}

.calendar-toolbar strong {
  min-width: 170px;
  text-align: center;
  font-size: 17px;
  letter-spacing: -0.035em;
}

.calendar-nav-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  transition: 0.2s ease;
}

.calendar-nav-btn:hover {
  color: var(--orange);
  border-color: var(--orange-border);
}

.calendar-weekdays,
.calendar-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-weekdays {
  margin-bottom: 8px;
}

.calendar-weekdays span {
  text-align: center;
  color: #9fb1c7;
  font-size: 12px;
  font-weight: 900;
}

.calendar-grid {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.34);
}

.calendar-day {
  position: relative;
  min-height: 72px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 13px;
  border: none;
  border-right: 1px solid rgba(148, 163, 184, 0.12);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(255, 255, 255, 0.012);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 900;
  transition: 0.2s ease;
}

.calendar-day:nth-child(7n) {
  border-right: none;
}

.calendar-day:hover {
  background: rgba(255, 153, 0, 0.06);
}

.calendar-day.muted {
  color: rgba(148, 163, 184, 0.45);
}

.calendar-day.today {
  box-shadow: inset 0 0 0 2px rgba(226, 232, 240, 0.7);
}

.calendar-day.selected {
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #020617;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}

.calendar-day .calendar-markers {
  position: absolute;
  left: 50%;
  bottom: 9px;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}

.calendar-marker {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.calendar-marker.goal {
  background: var(--orange);
}

.calendar-marker.reminder {
  background: #93c5fd;
}

.calendar-day.selected .calendar-marker {
  background: #020617;
}

.calendar-legend {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 16px;
  color: #9fb1c7;
  font-size: 13px;
  font-weight: 800;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.orange {
  background: var(--orange);
}

.legend-dot.blue {
  background: #93c5fd;
}

.legend-dot.light {
  background: #e2e8f0;
}

/* ============================= */
/* LEMBRETES */
/* ============================= */

.selected-day-label {
  position: relative;
  z-index: 1;
  margin-top: -8px;
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
}

.reminders-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.reminder-item {
  display: grid;
  grid-template-columns: 38px 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.5);
}

.reminder-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid var(--orange-border);
  background: var(--orange-soft);
  color: var(--orange);
}

.reminder-time {
  color: #a9c2df;
  font-size: 13px;
  font-weight: 900;
}

.reminder-title {
  min-width: 0;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reminder-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 112px;
}

.reminder-check,
.reminder-edit,
.reminder-delete {
  width: 32px;
  height: 32px;
  min-width: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.045);
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1;
  transition: 0.2s ease;
}

.reminder-check {
  border-color: rgba(255, 153, 0, 0.34);
  color: #ff9900;
}

.reminder-check:hover {
  background: #ff9900;
  border-color: #ff9900;
  color: #020617;
}

.reminder-edit:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}

.reminder-delete:hover {
  background: rgba(251, 113, 133, 0.1);
  border-color: rgba(251, 113, 133, 0.35);
  color: #fb7185;
}

.reminder-item.completed {
  border-color: rgba(34, 197, 94, 0.26);
  background: rgba(34, 197, 94, 0.055);
}

.reminder-item.completed .reminder-title {
  color: #94a3b8;
  text-decoration: line-through;
}

.reminder-item.completed .reminder-check {
  background: #22c55e;
  border-color: #22c55e;
  color: #020617;
}

.reminder-item.completed .reminder-icon {
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.32);
  background: rgba(34, 197, 94, 0.1);
}

.reminder-empty {
  padding: 16px;
  border-radius: 14px;
  border: 1px dashed var(--border-strong);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.4;
}

/* ============================= */
/* VERSÍCULO / SEQUÊNCIA / CONQUISTA */
/* ============================= */

.verse-reference {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--orange-border);
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
}

.verse-text {
  margin-top: 18px;
  color: var(--text-main);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.verse-message {
  margin-top: 16px;
  padding: 13px;
  border-radius: 13px;
  border: 1px dashed var(--border-strong);
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.4;
}

.streak-compact strong {
  display: block;
  color: var(--orange);
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.06em;
}

.streak-compact p {
  margin-top: 10px;
  color: #a9c2df;
  line-height: 1.35;
}

.streak-days {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: 22px;
  padding-top: 6px;
}

.streak-days .day {
  position: relative;
  width: 34px;
  height: 34px;
  min-width: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid rgba(100, 116, 139, 0.65);
  background: rgba(15, 23, 42, 0.52);
}

.streak-days .day span {
  position: absolute;
  top: 39px;
  left: 50%;
  transform: translateX(-50%);
  color: #9fb1c7;
  font-size: 11px;
  font-weight: 800;
}

.streak-days .day.done {
  border-color: var(--orange);
  background: var(--orange);
  box-shadow: 0 0 18px rgba(255, 153, 0, 0.25);
}

.streak-days .day.done::after {
  content: "🔥";
  font-size: 15px;
}

.streak-days .day.today:not(.done) {
  border-color: var(--orange);
  background: rgba(255, 153, 0, 0.06);
}

.status-box {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 58px;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
}

.status-box strong {
  display: block;
  color: var(--orange);
  font-size: 15px;
  margin-bottom: 8px;
}

.status-box span {
  display: block;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.35;
}

.status-cloud {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid var(--orange-border);
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 24px;
}

.status-box.success {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
}

.status-box.success strong {
  color: #4ade80;
}

.achievement-progress {
  position: relative;
  z-index: 1;
  margin-top: 16px;
}

.achievement-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 900;
}

.achievement-progress-top strong {
  color: var(--orange);
}

.status-card.achievement-unlocked .achievement-bar-fill {
  background: linear-gradient(90deg, #4ade80, #22c55e);
}

/* ============================= */
/* ESTATÍSTICAS */
/* ============================= */

.evolution-card {
  padding: 28px;
  border-color: rgba(34, 197, 94, 0.16);
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 153, 0, 0.08), transparent 28%),
    radial-gradient(circle at 95% 100%, rgba(34, 197, 94, 0.08), transparent 28%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.84));
}

.evolution-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}

.evolution-header p {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 14px;
}

.evolution-filter {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 215px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.8);
}

.evolution-filter select {
  appearance: none;
  width: 100%;
  height: 100%;
  padding: 0 42px 0 16px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-main);
  font-weight: 900;
  font-size: 14px;
}

.evolution-filter select option {
  background: #0f172a;
  color: var(--text-main);
}

.evolution-filter i {
  position: absolute;
  right: 16px;
  pointer-events: none;
  color: var(--text-muted);
  font-size: 12px;
}

.evolution-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.evolution-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.55);
}

.evolution-stat-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 18px;
}

.evolution-stat-icon.orange {
  color: var(--orange);
  background: var(--orange-soft);
  border: 1px solid var(--orange-border);
}

.evolution-stat-icon.green {
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid rgba(34, 197, 94, 0.22);
}

.evolution-stat-icon.blue {
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid rgba(56, 189, 248, 0.22);
}

.evolution-stat-icon.purple {
  color: var(--purple);
  background: var(--purple-soft);
  border: 1px solid rgba(167, 139, 250, 0.22);
}

.evolution-stat-card span {
  display: block;
  color: #9fb1c7;
  font-size: 12px;
  font-weight: 800;
}

.evolution-stat-card strong {
  display: block;
  margin-top: 3px;
  color: var(--text-main);
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.06em;
}

.evolution-stat-card small {
  display: block;
  margin-top: 7px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}

.evolution-chart-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  min-height: 260px;
}

.evolution-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px 0 42px;
  color: #9fb1c7;
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.evolution-chart {
  position: relative;
  height: 260px;
  min-height: 260px;
  padding: 12px 14px 42px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background:
    linear-gradient(to top, rgba(255, 153, 0, 0.05), transparent 60%),
    repeating-linear-gradient(
      to top,
      rgba(148, 163, 184, 0.1) 0,
      rgba(148, 163, 184, 0.1) 1px,
      transparent 1px,
      transparent 25%
    ),
    rgba(2, 6, 23, 0.18);
  overflow: hidden;
}

.evolution-loading {
  height: 100%;
  display: grid;
  place-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 800;
}

.evolution-svg {
  position: absolute;
  inset: 12px 14px 42px 14px;
  width: calc(100% - 28px);
  height: calc(100% - 54px);
  overflow: visible;
}

.evolution-area {
  fill: url(#evolutionGradient);
  opacity: 0.62;
}

.evolution-line {
  fill: none;
  stroke: var(--orange);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(255, 153, 0, 0.28));
}

.evolution-point {
  fill: #0f172a;
  stroke: var(--orange);
  stroke-width: 3;
}

.evolution-point-label {
  display: none;
  fill: var(--text-main);
  font-size: 12px;
  font-weight: 900;
  text-anchor: middle;
}

.evolution-svg g:last-of-type .evolution-point-label {
  display: block;
}

.evolution-x-axis {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
}

.evolution-week-label {
  text-align: center;
  color: #7f93ad;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
}

.evolution-week-label strong {
  display: block;
  color: #cbd5e1;
}

.evolution-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  color: #718096;
  font-size: 12px;
  font-weight: 800;
}

/* ============================= */
/* MODAIS */
/* ============================= */

.modal-overlay,
.confirm-overlay,
.profile-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(12px);
}

.modal-overlay.active,
.confirm-overlay.active,
.profile-overlay.active {
  display: flex;
}

.modal,
.confirm-box,
.profile-modal {
  width: min(560px, 100%);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  border-radius: 24px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at top left, rgba(255, 153, 0, 0.08), transparent 35%),
    linear-gradient(145deg, #111827, #0f172a);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
  padding: 24px;
}

.goal-modal,
.progress-details-modal {
  width: min(760px, 100%);
}

.modal-header,
.confirm-actions,
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.modal-title-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.modal-icon,
.profile-modal-icon,
.confirm-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  border: 1px solid var(--orange-border);
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 20px;
}

.modal-title-area h3,
.confirm-content h3,
.profile-modal h3 {
  font-size: 22px;
  letter-spacing: -0.045em;
}

.modal-title-area p,
.confirm-content p,
.profile-modal p {
  margin-top: 5px;
  color: var(--text-muted);
  line-height: 1.4;
}

.modal-close {
  width: 38px;
  height: 38px;
  min-width: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  transition: 0.2s ease;
}

.modal-close:hover {
  color: #ffffff;
  border-color: var(--orange-border);
  background: rgba(255, 153, 0, 0.08);
}

.modal-body {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.modal-field {
  display: grid;
  gap: 8px;
}

.modal-field label,
.modal-body label,
.profile-modal-field label {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 900;
}

.modal-label-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.modal-label-row span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.modal-body input,
.modal-body select,
.profile-modal-field input,
.modal-select {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.45);
  color: var(--text-main);
  padding: 0 14px;
  outline: none;
  font-weight: 700;
}

.modal-body input:focus,
.modal-body select:focus,
.profile-modal-field input:focus,
.modal-select:focus {
  border-color: var(--orange-border);
  box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.08);
}

.modal-body select option {
  background: #0f172a;
  color: var(--text-main);
}

.modal-actions {
  margin-top: 24px;
  justify-content: flex-end;
}

.cancel-btn,
.save-btn,
.confirm-cancel-btn,
.confirm-danger-btn,
.profile-modal-save {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 13px;
  border: 1px solid var(--border);
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cancel-btn,
.confirm-cancel-btn {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
}

.save-btn,
.profile-modal-save {
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #020617;
  border-color: transparent;
}

.confirm-danger-btn {
  background: rgba(251, 113, 133, 0.16);
  color: #fecdd3;
  border-color: rgba(251, 113, 133, 0.28);
}

/* ============================= */
/* SELETOR DE CATEGORIA / ÍCONE */
/* ============================= */

.goal-category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  max-height: 330px;
  overflow-y: auto;
  padding: 4px 4px 8px;
}

.goal-category-option {
  min-height: 82px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 12px 8px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.55);
  color: var(--text-soft);
  transition: 0.2s ease;
}

.goal-category-option i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--orange);
  background: rgba(255, 153, 0, 0.1);
  border: 1px solid rgba(255, 153, 0, 0.2);
  font-size: 15px;
}

.goal-category-option span {
  font-size: 11px;
  line-height: 1.1;
  font-weight: 900;
  text-align: center;
}

.goal-category-option:hover {
  transform: translateY(-1px);
  color: var(--text-main);
  border-color: rgba(255, 153, 0, 0.28);
  background: rgba(255, 153, 0, 0.055);
}

.goal-category-option.active {
  border-color: var(--orange-border);
  background:
    radial-gradient(circle at top, rgba(255, 153, 0, 0.16), transparent 52%),
    rgba(255, 153, 0, 0.08);
  color: #ffffff;
  box-shadow:
    0 0 0 1px rgba(255, 153, 0, 0.1),
    0 14px 30px rgba(255, 153, 0, 0.08);
}

.goal-category-option.active i {
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #020617;
  border-color: transparent;
}

/* ============================= */
/* MODAL DE DETALHES DO PROGRESSO */
/* ============================= */

.progress-details-summary {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.progress-detail-stat {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
}

.progress-detail-stat span {
  display: block;
  color: #9fb1c7;
  font-size: 12px;
  font-weight: 800;
}

.progress-detail-stat strong {
  display: block;
  margin-top: 8px;
  color: var(--orange);
  font-size: 25px;
  line-height: 1;
  letter-spacing: -0.06em;
}

.progress-details-list-header {
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 14px;
  margin-top: 24px;
  padding: 0 4px 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.progress-details-list {
  display: grid;
  gap: 10px;
}

.progress-detail-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 170px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.5);
}

.progress-detail-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  border: 1px solid var(--orange-border);
  background: var(--orange-soft);
  color: var(--orange);
}

.progress-detail-name {
  min-width: 0;
}

.progress-detail-name strong {
  display: block;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.progress-detail-name span {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.progress-detail-performance {
  display: grid;
  gap: 7px;
}

.progress-detail-performance-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 900;
}

.progress-detail-performance-top strong {
  color: var(--orange);
}

.progress-detail-bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
}

.progress-detail-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--orange-2));
}

.progress-details-empty {
  display: none;
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed var(--border-strong);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.4;
  gap: 8px;
}

.progress-details-empty.active {
  display: flex;
  align-items: center;
}

/* ============================= */
/* PROFILE / CONFIRM */
/* ============================= */

.profile-modal {
  text-align: center;
}

.profile-modal-icon {
  margin: 0 auto 16px;
}

.profile-modal-field {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  text-align: left;
}

.profile-modal-message {
  color: #fb7185 !important;
  min-height: 20px;
}

.profile-modal-save {
  width: 100%;
  margin-top: 10px;
}

.confirm-box {
  width: min(460px, 100%);
  text-align: center;
}

.confirm-icon {
  margin: 0 auto 16px;
}

.confirm-actions {
  margin-top: 22px;
  justify-content: center;
}

/* ============================= */
/* LOGIN */
/* ============================= */

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.auth-card {
  width: min(460px, 100%);
  border-radius: 30px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at top right, rgba(255, 153, 0, 0.08), transparent 32%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.82));
  box-shadow: var(--shadow);
  padding: 34px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.auth-brand h1 {
  font-size: 31px;
  letter-spacing: -0.06em;
}

.auth-brand h1 span {
  color: var(--orange);
}

.auth-brand p,
.auth-header p,
.auth-note {
  color: #a9c2df;
}

.auth-header h2 {
  font-size: 34px;
  letter-spacing: -0.06em;
  margin-bottom: 8px;
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.auth-field.hidden {
  display: none;
}

.auth-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 900;
}

.auth-input {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.45);
  padding: 0 14px;
}

.auth-input i {
  color: var(--orange);
}

.auth-input input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 700;
}

.auth-message {
  min-height: 20px;
  font-size: 14px;
  font-weight: 800;
}

.auth-message.error {
  color: #fb7185;
}

.auth-message.success {
  color: #4ade80;
}

.auth-message.info {
  color: #93c5fd;
}

.auth-submit-btn {
  height: 56px;
  border: none;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #020617;
  font-weight: 900;
  font-size: 16px;
}

.auth-switch {
  margin-top: 20px;
  text-align: center;
  color: #a9c2df;
}

.auth-switch button {
  border: none;
  background: transparent;
  color: var(--orange);
  font-weight: 900;
}

.auth-note {
  display: flex;
  gap: 10px;
  margin-top: 26px;
  padding: 15px;
  border-radius: 16px;
  border: 1px solid var(--orange-border);
  background: rgba(255, 153, 0, 0.06);
  font-size: 14px;
}

.auth-note i {
  color: var(--orange);
}

/* ============================= */
/* MOBILE NAV */
/* ============================= */

.mobile-bottom-bar {
  display: none;
}

/* ============================= */
/* RESPONSIVO */
/* ============================= */

@media (max-width: 1500px) {
  .goal-item {
    grid-template-columns: 42px 46px minmax(0, 1fr) 190px 90px;
  }

  .evolution-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1320px) {
  .main {
    padding: 28px 28px 100px;
  }

  .dashboard {
    grid-template-columns: 1fr;
    grid-template-areas:
      "progress"
      "summary"
      "goals"
      "calendar"
      "right"
      "evolution";
  }

  .right-stack {
    grid-template-columns: 1fr 1fr;
  }

  .evolution-card {
    margin-top: 0;
  }
}

@media (max-width: 1050px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .top-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .right-stack {
    grid-template-columns: 1fr;
  }

  .reminders-card,
  .verse-card,
  .streak-card,
  .status-card {
    grid-column: 1 / -1;
  }

  .goal-item {
    grid-template-columns: 36px 42px 1fr;
  }

  .goal-progress-wrap,
  .goal-actions {
    grid-column: 1 / -1;
  }

  .goal-actions {
    justify-content: flex-start;
  }

  .goal-category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 720px) {
  body {
    background:
      radial-gradient(circle at top, rgba(255, 153, 0, 0.07), transparent 28%),
      linear-gradient(180deg, #050b14 0%, #020617 100%);
  }

  .main {
    padding: 22px 14px 112px;
  }

  .topbar {
    margin-bottom: 22px;
  }

  .brand-area h1 {
    font-size: 28px;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .greeting-area h2 {
    font-size: 29px;
  }

  .greeting-area p {
    font-size: 14px;
  }

  .top-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .today-date,
  .top-new-goal-btn,
  .reset-day-btn,
  .logout-btn {
    width: 100%;
    height: 44px;
    font-size: 13px;
    padding: 0 10px;
  }

  .user-avatar {
    position: absolute;
    top: 22px;
    right: 14px;
    width: 44px;
    height: 44px;
  }

  .card {
    border-radius: 22px;
  }

  .progress-card,
  .summary-card,
  .goals-card,
  .calendar-card,
  .reminders-card,
  .verse-card,
  .streak-card,
  .status-card,
  .evolution-card {
    padding: 20px;
  }

  .card-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .section-title h3 {
    font-size: 21px;
  }

  .progress-content {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .circle-progress {
    width: 145px;
    height: 145px;
    margin: 0 auto;
  }

  .circle-progress::after {
    width: 15px;
    height: 15px;
  }

  .circle-inner {
    width: 104px;
    height: 104px;
  }

  .circle-inner::before {
    width: 112px;
    height: 112px;
  }

  .circle-inner strong {
    font-size: 34px;
  }

  .progress-info {
    text-align: center;
  }

  .progress-info h3 {
    font-size: 23px;
  }

  .summary-horizontal {
    grid-template-columns: repeat(2, 1fr);
  }

  .period-tabs {
    width: 100%;
  }

  .period-tab {
    flex: 1;
  }

  .calendar-day {
    min-height: 54px;
    font-size: 13px;
    padding-top: 10px;
  }

  .calendar-legend {
    justify-content: flex-start;
    font-size: 12px;
  }

  .reminder-item {
    grid-template-columns: 34px 48px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .reminder-time {
    font-size: 12px;
  }

  .reminder-actions {
    min-width: 96px;
    gap: 5px;
  }

  .reminder-check,
  .reminder-edit,
  .reminder-delete {
    width: 28px;
    height: 28px;
    min-width: 28px;
    font-size: 11px;
  }

  .streak-days {
    gap: 6px;
  }

  .streak-days .day {
    width: 30px;
    height: 30px;
    min-width: 30px;
  }

  .streak-days .day span {
    top: 35px;
    font-size: 10px;
  }

  .evolution-stats {
    grid-template-columns: 1fr;
  }

  .evolution-header {
    align-items: stretch;
    flex-direction: column;
  }

  .evolution-filter {
    width: 100%;
  }

  .evolution-chart-wrap {
    grid-template-columns: 38px 1fr;
  }

  .evolution-chart {
    height: 250px;
    min-height: 250px;
    padding-bottom: 52px;
  }

  .evolution-svg {
    inset: 12px 8px 52px 8px;
    width: calc(100% - 16px);
    height: calc(100% - 64px);
  }

  .evolution-x-axis {
    left: 8px;
    right: 8px;
    bottom: 10px;
  }

  .evolution-week-label {
    font-size: 9px;
  }

  .modal,
  .confirm-box,
  .profile-modal {
    padding: 20px;
  }

  .goal-category-grid {
    grid-template-columns: repeat(3, 1fr);
    max-height: 310px;
  }

  .goal-category-option {
    min-height: 74px;
  }

  .progress-details-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .progress-details-list-header {
    display: none;
  }

  .progress-detail-item {
    grid-template-columns: 40px 1fr;
  }

  .progress-detail-performance {
    grid-column: 1 / -1;
  }

  .mobile-bottom-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 80;
    height: 70px;
    display: grid;
    grid-template-columns: 1fr 1fr 72px 1fr 1fr;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(8, 17, 31, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
  }

  .mobile-nav-btn {
    display: grid;
    place-items: center;
    gap: 3px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 800;
  }

  .mobile-nav-btn i {
    font-size: 18px;
  }

  .mobile-nav-btn.active {
    color: var(--orange);
  }

  .mobile-main-add-btn {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--orange-2));
    color: #020617;
    font-size: 24px;
    box-shadow: 0 12px 32px rgba(255, 153, 0, 0.32);
    transform: translateY(-16px);
  }
}

@media (max-width: 460px) {
  .summary-horizontal {
    grid-template-columns: 1fr 1fr;
  }

  .calendar-day {
    min-height: 48px;
  }

  .goal-title {
    font-size: 14px;
  }

  .evolution-stat-card {
    align-items: flex-start;
  }

  .goal-category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .progress-details-summary {
    grid-template-columns: 1fr;
  }

  .reminder-item {
    grid-template-columns: 34px 46px 1fr;
  }

  .reminder-actions {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: flex-end;
  }
}

/* ============================= */
/* AUTOFILL */
/* ============================= */

.auth-input input:-webkit-autofill,
.auth-input input:-webkit-autofill:hover,
.auth-input input:-webkit-autofill:focus,
.auth-input input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #0d1620 inset !important;
  -webkit-text-fill-color: #f8fafc !important;
  caret-color: #f8fafc !important;
  border: none !important;
  transition: background-color 9999s ease-in-out 0s;
}

.auth-input input:-moz-autofill {
  box-shadow: 0 0 0 1000px #0d1620 inset !important;
  -moz-text-fill-color: #f8fafc !important;
}
/* ===================================== */
/* BOTÕES DO TOPO - LEMBRETE E RESETAR */
/* ===================================== */

.reminder-top-btn,
.reset-progress-btn {
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  border-radius: 14px;
  padding: 0 18px;

  font-weight: 800;
  font-size: 14px;

  transition: 0.22s ease;
}

/* Botão Lembrete */
.reminder-top-btn {
  border: 1px solid rgba(251, 113, 133, 0.28);
  background: rgba(251, 113, 133, 0.08);
  color: #fb7185;
}

.reminder-top-btn i {
  color: #fb7185;
}

.reminder-top-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(251, 113, 133, 0.44);
  background: rgba(251, 113, 133, 0.12);
  box-shadow: 0 12px 32px rgba(251, 113, 133, 0.08);
}

/* Botão Resetar */
.reset-progress-btn {
  border: 1px solid rgba(248, 113, 113, 0.32);
  background:
    radial-gradient(circle at top left, rgba(248, 113, 113, 0.12), transparent 38%),
    rgba(127, 29, 29, 0.12);

  color: #fca5a5;
}

.reset-progress-btn i {
  color: #fb7185;
}

.reset-progress-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(248, 113, 113, 0.54);
  background:
    radial-gradient(circle at top left, rgba(248, 113, 113, 0.18), transparent 40%),
    rgba(127, 29, 29, 0.18);

  color: #fecaca;

  box-shadow:
    0 12px 32px rgba(248, 113, 113, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* deixa a área dos botões preparada para mais ações */
.top-actions {
  flex-wrap: wrap;
}

/* ===================================== */
/* MOBILE - BOTÃO RESETAR NO TOPO */
/* ===================================== */

@media (max-width: 720px) {
  .reminder-top-btn,
  .reset-progress-btn {
    width: 100%;
    height: 44px;
    padding: 0 10px;
    font-size: 13px;
  }

  .top-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

@media (max-width: 430px) {
  .top-actions {
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   PATCH 01 - VERSÍCULO + SEQUÊNCIA DE FOCO
   Cole no FINAL do style.css
   ========================================================= */

/* ===== CARD DO VERSÍCULO ===== */

.verse-card {
  position: relative;
  border-color: rgba(255, 153, 0, 0.18);
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 153, 0, 0.12), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.06), transparent 32%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.72));
}

.verse-card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 153, 0, 0.08);
  filter: blur(12px);
  pointer-events: none;
}

.verse-reference {
  position: relative;
  z-index: 1;
  box-shadow:
    0 0 0 1px rgba(255, 153, 0, 0.06),
    0 10px 24px rgba(255, 153, 0, 0.08);
}

.verse-text {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding-left: 14px;
  border-left: 3px solid var(--orange);
  color: #ffffff;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: -0.035em;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.06);
}

.verse-message {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding: 14px 15px;
  border-radius: 15px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 153, 0, 0.08), rgba(255, 255, 255, 0.025));
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.45;
}

/* ===== CARD DE SEQUÊNCIA ===== */

.streak-card {
  position: relative;
  border-color: rgba(255, 153, 0, 0.18);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 153, 0, 0.13), transparent 36%),
    radial-gradient(circle at 100% 90%, rgba(251, 113, 133, 0.06), transparent 34%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.72));
}

.streak-card::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -42px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 153, 0, 0.08);
  filter: blur(14px);
  pointer-events: none;
}

.streak-card.streak-on {
  border-color: rgba(255, 153, 0, 0.36);
  box-shadow:
    var(--shadow),
    0 0 34px rgba(255, 153, 0, 0.08);
}

.streak-card.streak-off {
  border-color: rgba(148, 163, 184, 0.14);
}

.streak-compact strong {
  position: relative;
  z-index: 1;
  display: inline-block;
  color: var(--orange);
  font-size: 44px;
  line-height: 0.95;
  letter-spacing: -0.075em;
  text-shadow:
    0 0 20px rgba(255, 153, 0, 0.2),
    0 0 34px rgba(255, 153, 0, 0.08);
}

.streak-card.streak-on .streak-compact strong::after {
  content: "🔥";
  margin-left: 10px;
  font-size: 25px;
  vertical-align: 8px;
  filter: drop-shadow(0 0 12px rgba(255, 153, 0, 0.35));
}

.streak-compact p {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.42;
}

.streak-days {
  position: relative;
  z-index: 1;
  margin-top: 24px;
}

.streak-days .day {
  border-color: rgba(148, 163, 184, 0.22);
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.04), transparent 45%),
    rgba(15, 23, 42, 0.64);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.streak-days .day:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 153, 0, 0.38);
}

.streak-days .day.done {
  border-color: rgba(255, 153, 0, 0.72);
  background:
    radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.28), transparent 32%),
    linear-gradient(135deg, var(--orange), var(--orange-2));
  box-shadow:
    0 0 18px rgba(255, 153, 0, 0.24),
    0 10px 24px rgba(255, 153, 0, 0.12);
}

.streak-days .day.done::after {
  font-size: 16px;
  transform: translateY(-1px);
}

.streak-days .day.today {
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow:
    0 0 0 3px rgba(255, 153, 0, 0.13),
    0 0 18px rgba(255, 153, 0, 0.12);
}

.streak-days .day span {
  color: #a9c2df;
}

.streak-days .day.done span {
  color: #f8fafc;
}

/* ===== AJUSTE MOBILE SOMENTE DESSES DOIS CARDS ===== */

@media (max-width: 720px) {
  .verse-text {
    font-size: 17px;
    line-height: 1.38;
  }

  .verse-message {
    font-size: 13px;
  }

  .streak-compact strong {
    font-size: 38px;
  }

  .streak-days {
    gap: 7px;
    margin-top: 22px;
  }

  .streak-days .day {
    width: 31px;
    height: 31px;
    min-width: 31px;
  }

  .streak-days .day span {
    top: 36px;
  }
}
/* =========================================================
   PATCH 02 - LEMBRETES MAIS BONITOS E ORGANIZADOS
   Cole no FINAL do style.css, depois do Patch 01
   ========================================================= */

.reminders-card {
  position: relative;
  border-color: rgba(56, 189, 248, 0.16);
  background:
    radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.08), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(255, 153, 0, 0.08), transparent 34%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.72));
}

.selected-day-label {
  color: #a9c2df;
  font-size: 14px;
  font-weight: 800;
}

.reminder-item {
  border-color: rgba(148, 163, 184, 0.18);
  background:
    radial-gradient(circle at left, rgba(255, 153, 0, 0.045), transparent 44%),
    rgba(15, 23, 42, 0.58);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.reminder-item:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 153, 0, 0.28);
  background:
    radial-gradient(circle at left, rgba(255, 153, 0, 0.075), transparent 44%),
    rgba(15, 23, 42, 0.72);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.reminder-icon {
  border-color: rgba(56, 189, 248, 0.24);
  background: rgba(56, 189, 248, 0.09);
  color: #38bdf8;
}

.reminder-time {
  color: #ffb347;
  font-weight: 950;
}

.reminder-title {
  color: #f8fafc;
  font-weight: 850;
}

.reminder-actions {
  gap: 7px;
}

.reminder-check,
.reminder-edit,
.reminder-delete {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 11px;
  background: rgba(2, 6, 23, 0.26);
  backdrop-filter: blur(8px);
}

.reminder-check {
  color: #ff9900;
  border-color: rgba(255, 153, 0, 0.32);
}

.reminder-check:hover {
  color: #020617;
  background: linear-gradient(135deg, #ff9900, #ffb347);
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(255, 153, 0, 0.18);
}

.reminder-edit {
  color: #93c5fd;
  border-color: rgba(147, 197, 253, 0.2);
}

.reminder-edit:hover {
  color: #020617;
  background: linear-gradient(135deg, #38bdf8, #93c5fd);
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(56, 189, 248, 0.16);
}

.reminder-delete {
  color: #fecdd3;
  border-color: rgba(251, 113, 133, 0.22);
}

.reminder-delete:hover {
  color: #020617;
  background: linear-gradient(135deg, #fb7185, #fda4af);
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(251, 113, 133, 0.16);
}

.reminder-item.completed {
  border-color: rgba(34, 197, 94, 0.28);
  background:
    radial-gradient(circle at left, rgba(34, 197, 94, 0.09), transparent 44%),
    rgba(15, 23, 42, 0.52);
}

.reminder-item.completed .reminder-icon {
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.32);
  background: rgba(34, 197, 94, 0.1);
}

.reminder-item.completed .reminder-check {
  color: #020617;
  background: linear-gradient(135deg, #22c55e, #86efac);
  border-color: transparent;
}

.reminder-item.completed .reminder-title {
  color: #94a3b8;
  text-decoration: line-through;
}

.reminder-empty {
  border-color: rgba(56, 189, 248, 0.2);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.07), transparent 42%),
    rgba(15, 23, 42, 0.5);
  color: #a9c2df;
}

.add-reminder-btn {
  border-color: rgba(56, 189, 248, 0.24);
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(255, 153, 0, 0.055));
  color: #f8fafc;
}

.add-reminder-btn i {
  color: #38bdf8;
}

.add-reminder-btn:hover {
  border-color: rgba(255, 153, 0, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 153, 0, 0.1), rgba(56, 189, 248, 0.08));
}

/* MOBILE DOS LEMBRETES */
@media (max-width: 720px) {
  .reminder-item {
    grid-template-columns: 34px 52px minmax(0, 1fr);
    gap: 8px;
  }

  .reminder-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    margin-top: 4px;
  }

  .reminder-check,
  .reminder-edit,
  .reminder-delete {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }
}
/* =========================================================
   PATCH 03 - CALENDÁRIO MAIS PREMIUM
   Cole no FINAL do style.css, depois do Patch 02
   ========================================================= */

.calendar-card {
  border-color: rgba(255, 153, 0, 0.16);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 153, 0, 0.105), transparent 34%),
    radial-gradient(circle at 100% 90%, rgba(56, 189, 248, 0.055), transparent 34%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.72));
}

.calendar-toolbar {
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.13);
  background: rgba(2, 6, 23, 0.18);
}

.calendar-toolbar strong {
  color: #f8fafc;
  font-weight: 950;
  text-transform: capitalize;
}

.calendar-nav-btn {
  border-color: rgba(255, 153, 0, 0.18);
  background: rgba(255, 153, 0, 0.055);
  color: #ffb347;
}

.calendar-nav-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 153, 0, 0.105);
  box-shadow: 0 10px 24px rgba(255, 153, 0, 0.08);
}

.calendar-weekdays {
  margin-top: 4px;
  margin-bottom: 10px;
}

.calendar-weekdays span {
  color: #a9c2df;
  letter-spacing: 0.02em;
}

.calendar-grid {
  border-color: rgba(148, 163, 184, 0.17);
  background:
    radial-gradient(circle at top left, rgba(255, 153, 0, 0.045), transparent 38%),
    rgba(15, 23, 42, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 16px 36px rgba(0, 0, 0, 0.14);
}

.calendar-day {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.025), transparent 42%),
    rgba(255, 255, 255, 0.012);
}

.calendar-day:hover {
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 153, 0, 0.11), transparent 48%),
    rgba(255, 153, 0, 0.055);
}

.calendar-day.muted {
  background: rgba(2, 6, 23, 0.14);
}

.calendar-day.today {
  color: #ffffff;
  box-shadow:
    inset 0 0 0 2px rgba(255, 153, 0, 0.56),
    inset 0 -18px 30px rgba(255, 153, 0, 0.045);
}

.calendar-day.today::before {
  content: "hoje";
  position: absolute;
  top: 34px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffb347;
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  pointer-events: none;
}

.calendar-day.selected {
  background:
    radial-gradient(circle at 35% 15%, rgba(255, 255, 255, 0.32), transparent 34%),
    linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #020617;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.52),
    0 0 24px rgba(255, 153, 0, 0.18);
}

.calendar-day.selected::before {
  color: rgba(2, 6, 23, 0.78);
}

.calendar-marker {
  width: 7px;
  height: 7px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.16);
}

.calendar-marker.goal {
  background: #ff9900;
  box-shadow: 0 0 12px rgba(255, 153, 0, 0.34);
}

.calendar-marker.reminder {
  background: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.calendar-day.selected .calendar-marker {
  background: #020617;
  box-shadow: none;
}

.calendar-legend {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.16);
}

.calendar-legend span {
  color: #a9c2df;
}

/* MOBILE DO CALENDÁRIO */
@media (max-width: 720px) {
  .calendar-toolbar {
    gap: 10px;
    padding: 9px;
  }

  .calendar-toolbar strong {
    min-width: 120px;
    font-size: 15px;
  }

  .calendar-day.today::before {
    display: none;
  }

  .calendar-marker {
    width: 5px;
    height: 5px;
  }
}
/* =========================================================
   PATCH 04 - METAS RECORRENTES MAIS PREMIUM
   Cole no FINAL do style.css, depois do Patch 03
   ========================================================= */

.goals-card,
.recurring-goals-card {
  border-color: rgba(255, 153, 0, 0.16);
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 153, 0, 0.11), transparent 36%),
    radial-gradient(circle at 100% 90%, rgba(34, 197, 94, 0.055), transparent 34%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.72));
}

.card-helper-text {
  color: #a9c2df;
  line-height: 1.45;
}

/* Abas Mensal / Anual */
.period-tabs {
  border-color: rgba(255, 153, 0, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 153, 0, 0.045), rgba(255, 255, 255, 0.025)),
    rgba(15, 23, 42, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.period-tab {
  color: #a9c2df;
}

.period-tab:hover {
  color: #ffffff;
  background: rgba(255, 153, 0, 0.055);
}

.period-tab.active {
  color: #020617;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  box-shadow:
    0 10px 24px rgba(255, 153, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* Lista das metas */
.goals-list {
  gap: 13px;
}

.goal-item {
  position: relative;
  overflow: hidden;
  border-color: rgba(148, 163, 184, 0.17);
  background:
    radial-gradient(circle at left, rgba(255, 153, 0, 0.045), transparent 40%),
    rgba(15, 23, 42, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 10px 28px rgba(0, 0, 0, 0.08);
}

.goal-item::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 35%);
  opacity: 0;
  transition: 0.22s ease;
}

.goal-item:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 153, 0, 0.28);
  background:
    radial-gradient(circle at left, rgba(255, 153, 0, 0.075), transparent 42%),
    rgba(15, 23, 42, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 14px 32px rgba(0, 0, 0, 0.16);
}

.goal-item:hover::before {
  opacity: 1;
}

.goal-item.completed {
  border-color: rgba(34, 197, 94, 0.28);
  background:
    radial-gradient(circle at left, rgba(34, 197, 94, 0.08), transparent 42%),
    rgba(15, 23, 42, 0.58);
}

/* Check da meta */
.goal-check {
  position: relative;
  z-index: 1;
  border-color: rgba(148, 163, 184, 0.7);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 45%),
    rgba(2, 6, 23, 0.25);
}

.goal-check:hover {
  transform: scale(1.04);
  border-color: rgba(255, 153, 0, 0.8);
  box-shadow: 0 0 18px rgba(255, 153, 0, 0.12);
}

.goal-item.completed .goal-check {
  border-color: transparent;
  background:
    radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.3), transparent 34%),
    linear-gradient(135deg, var(--orange), var(--orange-2));
  box-shadow:
    0 0 18px rgba(255, 153, 0, 0.18),
    0 10px 24px rgba(255, 153, 0, 0.12);
}

/* Ícone e título */
.goal-icon {
  position: relative;
  z-index: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 24px rgba(0, 0, 0, 0.1);
}

.goal-title {
  position: relative;
  z-index: 1;
  letter-spacing: -0.025em;
}

.goal-item.completed .goal-title {
  color: #e2e8f0;
}

/* Progresso de cada meta */
.goal-progress-wrap {
  position: relative;
  z-index: 1;
}

.goal-progress-info {
  color: #a9c2df;
}

.goal-progress-info strong {
  color: #ffb347;
}

.goal-mini-bar {
  height: 8px;
  background: rgba(148, 163, 184, 0.16);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.22);
}

.goal-mini-bar-fill {
  background: linear-gradient(90deg, var(--orange), var(--orange-2), #ffb347);
  box-shadow: 0 0 16px rgba(255, 153, 0, 0.2);
}

/* Botões editar/excluir */
.goal-actions {
  position: relative;
  z-index: 1;
}

.goal-edit,
.goal-delete,
.goal-more {
  background: rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(8px);
}

.goal-edit:hover {
  transform: translateY(-1px);
  color: #020617;
  border-color: transparent;
  background: linear-gradient(135deg, #38bdf8, #93c5fd);
  box-shadow: 0 10px 24px rgba(56, 189, 248, 0.14);
}

.goal-delete:hover {
  transform: translateY(-1px);
  color: #020617;
  border-color: transparent;
  background: linear-gradient(135deg, #fb7185, #fda4af);
  box-shadow: 0 10px 24px rgba(251, 113, 133, 0.14);
}

/* Botão grande de adicionar meta */
.add-goal-wide {
  background:
    radial-gradient(circle at left, rgba(255, 153, 0, 0.11), transparent 48%),
    rgba(255, 153, 0, 0.075);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 10px 26px rgba(255, 153, 0, 0.06);
}

.add-goal-wide:hover {
  border-color: rgba(255, 153, 0, 0.46);
  background:
    radial-gradient(circle at left, rgba(255, 153, 0, 0.16), transparent 48%),
    rgba(255, 153, 0, 0.105);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 14px 30px rgba(255, 153, 0, 0.1);
}

/* MOBILE DAS METAS */
@media (max-width: 720px) {
  .goal-item {
    min-height: 74px;
    padding: 13px;
  }

  .goal-title {
    white-space: normal;
    line-height: 1.25;
  }

  .goal-progress-wrap {
    margin-top: 2px;
  }

  .goal-actions {
    justify-content: flex-end;
  }

  .goal-edit,
  .goal-delete,
  .goal-more {
    width: 32px;
    height: 32px;
  }
}
/* =========================================================
   PATCH 05 - GRÁFICO DE EVOLUÇÃO MAIS PREMIUM
   Cole no FINAL do style.css, depois do Patch 04
   ========================================================= */

.evolution-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(34, 197, 94, 0.2);
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 153, 0, 0.115), transparent 32%),
    radial-gradient(circle at 92% 100%, rgba(34, 197, 94, 0.105), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.055), transparent 30%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.78));
}

.evolution-card::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.075);
  filter: blur(14px);
  pointer-events: none;
}

.evolution-header {
  position: relative;
  z-index: 1;
}

.evolution-header .section-title i,
.evolution-header i {
  color: #4ade80;
}

.evolution-header p {
  color: #a9c2df;
}

/* Filtro do gráfico */
.evolution-filter {
  border-color: rgba(34, 197, 94, 0.22);
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.065), rgba(255, 153, 0, 0.035)),
    rgba(15, 23, 42, 0.72);
}

.evolution-filter:hover {
  border-color: rgba(34, 197, 94, 0.36);
}

.evolution-filter select {
  color: #f8fafc;
}

.evolution-filter i {
  color: #4ade80;
}

/* Cards de estatísticas */
.evolution-stats {
  position: relative;
  z-index: 1;
}

.evolution-stat-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(148, 163, 184, 0.17);
  background:
    radial-gradient(circle at left, rgba(255, 255, 255, 0.045), transparent 46%),
    rgba(15, 23, 42, 0.58);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.evolution-stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 38%);
  opacity: 0;
  transition: 0.2s ease;
}

.evolution-stat-card:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 197, 94, 0.28);
  background:
    radial-gradient(circle at left, rgba(34, 197, 94, 0.075), transparent 46%),
    rgba(15, 23, 42, 0.72);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.evolution-stat-card:hover::before {
  opacity: 1;
}

.evolution-stat-card span,
.evolution-stat-card strong,
.evolution-stat-card small,
.evolution-stat-icon {
  position: relative;
  z-index: 1;
}

.evolution-stat-card strong {
  color: #ffffff;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.06);
}

.evolution-stat-card small {
  color: #86efac;
}

/* Área do gráfico */
.evolution-chart-wrap {
  position: relative;
  z-index: 1;
}

.evolution-y-axis {
  color: #a9c2df;
}

.evolution-chart {
  border-color: rgba(34, 197, 94, 0.15);
  background:
    linear-gradient(to top, rgba(34, 197, 94, 0.055), transparent 62%),
    linear-gradient(to right, rgba(255, 153, 0, 0.035), transparent 40%),
    repeating-linear-gradient(
      to top,
      rgba(148, 163, 184, 0.105) 0,
      rgba(148, 163, 184, 0.105) 1px,
      transparent 1px,
      transparent 25%
    ),
    rgba(2, 6, 23, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    inset 0 -22px 44px rgba(34, 197, 94, 0.025),
    0 14px 32px rgba(0, 0, 0, 0.12);
}

.evolution-chart::before {
  content: "";
  position: absolute;
  inset: 12px 14px 42px 14px;
  pointer-events: none;
  border-radius: 16px;
  background:
    radial-gradient(circle at 10% 90%, rgba(255, 153, 0, 0.07), transparent 32%),
    radial-gradient(circle at 90% 10%, rgba(34, 197, 94, 0.07), transparent 32%);
}

.evolution-area {
  opacity: 0.78;
}

.evolution-line {
  stroke: #ff9900;
  stroke-width: 4;
  filter:
    drop-shadow(0 0 9px rgba(255, 153, 0, 0.32))
    drop-shadow(0 0 18px rgba(255, 153, 0, 0.12));
}

.evolution-point {
  fill: #020617;
  stroke: #ffb347;
  stroke-width: 4;
  filter: drop-shadow(0 0 10px rgba(255, 153, 0, 0.28));
}

.evolution-svg g:hover .evolution-point {
  fill: #ff9900;
  stroke: #ffb347;
}

.evolution-svg g:hover .evolution-point-label {
  display: block;
}

.evolution-point-label {
  fill: #ffffff;
  font-size: 12px;
  font-weight: 950;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.45);
}

.evolution-x-axis {
  color: #9fb1c7;
}

.evolution-week-label {
  color: #8fa3bd;
}

.evolution-week-label strong {
  color: #e2e8f0;
}

.evolution-footer {
  color: #8fa3bd;
}

.evolution-footer i {
  color: #4ade80;
}

/* MOBILE DO GRÁFICO */
@media (max-width: 720px) {
  .evolution-card {
    padding: 20px;
  }

  .evolution-stat-card {
    min-height: 82px;
  }

  .evolution-chart {
    border-radius: 18px;
  }

  .evolution-line {
    stroke-width: 3.4;
  }

  .evolution-point {
    stroke-width: 3;
  }

  .evolution-point-label {
    font-size: 10px;
  }
}
/* =========================================================
   PATCH 06 - TOPO MAIS PREMIUM E ORGANIZADO
   Cole no FINAL do style.css, depois do Patch 05
   ========================================================= */

.topbar {
  position: relative;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 153, 0, 0.105), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.065), transparent 34%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.86), rgba(2, 6, 23, 0.46));
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 38%);
}

.brand-area,
.greeting-area,
.top-actions,
.user-avatar {
  position: relative;
  z-index: 1;
}

.brand-logo {
  border-color: rgba(255, 153, 0, 0.36);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(255, 153, 0, 0.18), rgba(255, 122, 24, 0.1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    0 14px 34px rgba(255, 153, 0, 0.12),
    0 0 28px rgba(255, 153, 0, 0.06);
}

.brand-area h1 {
  color: #ffffff;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.045);
}

.brand-area p {
  color: #a9c2df;
  font-weight: 700;
}

.greeting-area h2 {
  color: #ffffff;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.04);
}

.greeting-area p {
  color: #a9c2df;
  font-weight: 700;
}

/* Botões do topo */
.today-date,
.top-new-goal-btn,
.reset-day-btn,
.logout-btn {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 10px 26px rgba(0, 0, 0, 0.08);
}

.today-date::before,
.top-new-goal-btn::before,
.reset-day-btn::before,
.logout-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 45%);
  opacity: 0;
  transition: 0.22s ease;
}

.today-date:hover::before,
.top-new-goal-btn:hover::before,
.reset-day-btn:hover::before,
.logout-btn:hover::before {
  opacity: 1;
}

.today-date {
  border-color: rgba(56, 189, 248, 0.18);
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.07), rgba(255, 255, 255, 0.025));
}

.today-date i {
  color: #38bdf8;
}

.top-new-goal-btn {
  border-color: rgba(255, 153, 0, 0.34);
  background:
    radial-gradient(circle at left, rgba(255, 153, 0, 0.13), transparent 48%),
    rgba(255, 153, 0, 0.075);
}

.top-new-goal-btn i {
  color: #ffb347;
}

.reset-day-btn {
  border-color: rgba(251, 113, 133, 0.3);
  background:
    radial-gradient(circle at left, rgba(251, 113, 133, 0.12), transparent 48%),
    rgba(251, 113, 133, 0.075);
}

.reset-day-btn i {
  color: #fb7185;
}

.logout-btn {
  border-color: rgba(148, 163, 184, 0.16);
  background:
    radial-gradient(circle at left, rgba(148, 163, 184, 0.055), transparent 48%),
    rgba(255, 255, 255, 0.035);
}

.logout-btn:hover {
  color: #ffffff;
}

.user-avatar {
  border-color: rgba(255, 153, 0, 0.28);
  background:
    radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 153, 0, 0.24), rgba(56, 189, 248, 0.16));
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.14),
    0 0 22px rgba(255, 153, 0, 0.08);
}

/* Ajuste mobile do topo */
@media (max-width: 720px) {
  .topbar {
    padding: 16px;
    border-radius: 24px;
  }

  .brand-area {
    padding-right: 58px;
  }

  .greeting-area h2 {
    font-size: 28px;
  }

  .greeting-area p {
    font-size: 13px;
    line-height: 1.35;
  }

  .top-actions {
    margin-top: 2px;
  }

  .today-date,
  .top-new-goal-btn,
  .reset-day-btn,
  .logout-btn {
    border-radius: 14px;
  }
}

@media (max-width: 460px) {
  .brand-area h1 {
    font-size: 25px;
  }

  .brand-area p {
    font-size: 12px;
  }

  .greeting-area h2 {
    font-size: 25px;
  }
}
/* ===== Ajuste do avatar do usuário no mobile ===== */
@media (max-width: 720px) {
  .topbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: start;
  }

  .brand-area,
  .greeting-area,
  .top-actions {
    grid-column: 1 / -1;
  }

  .top-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: center;
  }

  .logout-btn {
    grid-column: 1 / 2;
  }

  .user-avatar {
    grid-column: 2 / 3;
    justify-self: end;
    align-self: center;
    margin: 0;
    width: 52px;
    height: 52px;
  }
}
/* =========================================================
   PATCH 07 - CORRIGIR POSIÇÃO DO AVATAR NO MOBILE
   Cole no FINAL do style.css
   ========================================================= */

@media (max-width: 720px) {
  .topbar {
    position: relative;
    overflow: hidden;
    padding-bottom: 20px;
  }

  .user-avatar {
    position: absolute !important;
    top: auto !important;
    right: 30px !important;
    bottom: 22px !important;
    margin: 0 !important;
    width: 46px !important;
    height: 46px !important;
    z-index: 5;
  }

  .logout-btn {
    width: calc(50% - 6px) !important;
    max-width: 210px;
  }
}
/* =========================================================
   PATCH FINAL - AVATAR ALINHADO COM O BOTÃO SAIR NO MOBILE
   ========================================================= */

@media (max-width: 720px) {
  .top-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    align-items: center !important;
  }

  .today-date {
    grid-column: 1 / 2 !important;
    grid-row: 1 !important;
  }

  .top-new-goal-btn {
    grid-column: 2 / 3 !important;
    grid-row: 1 !important;
  }

  .top-actions .top-new-goal-btn:nth-of-type(2),
  .top-actions .small-action-btn,
  .top-actions .add-reminder-btn {
    grid-column: 1 / 2 !important;
    grid-row: 2 !important;
  }

  .reset-day-btn {
    grid-column: 2 / 3 !important;
    grid-row: 2 !important;
  }

  .logout-btn {
    grid-column: 1 / 2 !important;
    grid-row: 3 !important;
    width: 100% !important;
    max-width: none !important;
  }

  .user-avatar {
    position: static !important;
    grid-column: 2 / 3 !important;
    grid-row: 3 !important;
    justify-self: end !important;
    align-self: center !important;
    margin: 0 !important;
    width: 46px !important;
    height: 46px !important;
    transform: none !important;
  }
}
/* =========================================================
   PATCH 08 - MENU INFERIOR MOBILE MAIS PREMIUM
   Cole no FINAL do style.css
   ========================================================= */

@media (max-width: 720px) {
  .main {
    padding-bottom: 150px;
  }

  .mobile-bottom-bar {
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    height: 74px;
    padding: 8px 10px;
    border-radius: 26px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background:
      radial-gradient(circle at 50% 0%, rgba(255, 153, 0, 0.12), transparent 42%),
      linear-gradient(145deg, rgba(8, 17, 31, 0.96), rgba(2, 6, 23, 0.92));
    backdrop-filter: blur(18px);
    box-shadow:
      0 18px 50px rgba(0, 0, 0, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.045);
  }

  .mobile-bottom-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 38%);
  }

  .mobile-nav-btn,
  .mobile-main-add-btn {
    position: relative;
    z-index: 1;
  }

  .mobile-nav-btn {
    min-height: 52px;
    border-radius: 18px;
    color: #94a3b8;
    transition:
      color 0.2s ease,
      background 0.2s ease,
      transform 0.2s ease;
  }

  .mobile-nav-btn i {
    font-size: 19px;
    margin-bottom: 2px;
  }

  .mobile-nav-btn span {
    font-size: 10px;
    font-weight: 900;
  }

  .mobile-nav-btn:hover {
    transform: translateY(-1px);
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.035);
  }

  .mobile-nav-btn.active {
    color: var(--orange);
    background:
      radial-gradient(circle at 50% 20%, rgba(255, 153, 0, 0.14), transparent 42%),
      rgba(255, 153, 0, 0.055);
  }

  .mobile-nav-btn.active i {
    filter: drop-shadow(0 0 10px rgba(255, 153, 0, 0.28));
  }

  .mobile-main-add-btn {
    width: 64px;
    height: 64px;
    transform: translateY(-18px);
    border-radius: 50%;
    background:
      radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.35), transparent 32%),
      linear-gradient(135deg, var(--orange), var(--orange-2));
    color: #020617;
    box-shadow:
      0 18px 38px rgba(255, 153, 0, 0.32),
      0 0 34px rgba(255, 153, 0, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease;
  }

  .mobile-main-add-btn:hover {
    transform: translateY(-21px) scale(1.03);
    box-shadow:
      0 22px 46px rgba(255, 153, 0, 0.38),
      0 0 42px rgba(255, 153, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.32);
  }

  .mobile-main-add-btn i {
    font-size: 25px;
  }
}

@media (max-width: 460px) {
  .main {
    padding-bottom: 155px;
  }

  .mobile-bottom-bar {
    left: 8px;
    right: 8px;
    height: 72px;
    border-radius: 24px;
  }

  .mobile-nav-btn i {
    font-size: 18px;
  }

  .mobile-nav-btn span {
    font-size: 9px;
  }

  .mobile-main-add-btn {
    width: 62px;
    height: 62px;
  }
}
/* =========================================================
   PATCH 09 - MODAIS MAIS PREMIUM E ORGANIZADOS
   Cole no FINAL do style.css
   ========================================================= */

/* Fundo escuro dos modais */
.modal-overlay,
.confirm-overlay,
.profile-overlay {
  background:
    radial-gradient(circle at top left, rgba(255, 153, 0, 0.12), transparent 30%),
    radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.08), transparent 30%),
    rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(16px);
}

/* Caixa principal dos modais */
.modal,
.confirm-box,
.profile-modal {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border-color: rgba(148, 163, 184, 0.2);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 153, 0, 0.12), transparent 35%),
    radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.06), transparent 35%),
    linear-gradient(145deg, rgba(17, 24, 39, 0.98), rgba(15, 23, 42, 0.94));
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  animation: metaflowModalIn 0.22s ease;
}

.modal::before,
.confirm-box::before,
.profile-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 38%);
}

/* Cabeçalho */
.modal-header,
.modal-title-area,
.modal-body,
.modal-actions,
.confirm-content,
.confirm-actions,
.profile-modal > * {
  position: relative;
  z-index: 1;
}

.modal-header {
  padding-bottom: 4px;
}

.modal-title-area h3,
.confirm-content h3,
.profile-modal h3 {
  color: #ffffff;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.055em;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.045);
}

.modal-title-area p,
.confirm-content p,
.profile-modal p {
  color: #a9c2df;
  font-size: 14px;
  line-height: 1.45;
}

/* Ícones dos modais */
.modal-icon,
.profile-modal-icon,
.confirm-icon {
  border-color: rgba(255, 153, 0, 0.34);
  background:
    radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.22), transparent 34%),
    rgba(255, 153, 0, 0.12);
  color: #ffb347;
  box-shadow:
    0 12px 30px rgba(255, 153, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Botão fechar */
.modal-close {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.28);
  color: #cbd5e1;
  backdrop-filter: blur(8px);
}

.modal-close:hover {
  transform: translateY(-1px);
  color: #020617;
  border-color: transparent;
  background: linear-gradient(135deg, #ff9900, #ffb347);
  box-shadow: 0 12px 26px rgba(255, 153, 0, 0.15);
}

/* Campos */
.modal-body {
  gap: 18px;
}

.modal-field label,
.modal-body label,
.profile-modal-field label {
  color: #cbd5e1;
  font-size: 13px;
  letter-spacing: -0.01em;
}

.modal-label-row span {
  color: #8fa3bd;
}

.modal-body input,
.modal-body select,
.profile-modal-field input,
.modal-select {
  height: 52px;
  border-radius: 16px;
  border-color: rgba(148, 163, 184, 0.18);
  background:
    radial-gradient(circle at left, rgba(255, 153, 0, 0.035), transparent 48%),
    rgba(2, 6, 23, 0.38);
  color: #f8fafc;
  font-weight: 800;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.modal-body input::placeholder,
.profile-modal-field input::placeholder {
  color: rgba(148, 163, 184, 0.72);
}

.modal-body input:focus,
.modal-body select:focus,
.profile-modal-field input:focus,
.modal-select:focus {
  border-color: rgba(255, 153, 0, 0.48);
  background:
    radial-gradient(circle at left, rgba(255, 153, 0, 0.065), transparent 48%),
    rgba(2, 6, 23, 0.5);
  box-shadow:
    0 0 0 3px rgba(255, 153, 0, 0.09),
    0 12px 28px rgba(0, 0, 0, 0.14);
}

/* Select */
.modal-body select,
.modal-select {
  cursor: pointer;
}

.modal-body select option,
.modal-select option {
  background: #0f172a;
  color: #f8fafc;
}

/* Grid de categorias */
.goal-category-grid {
  padding: 6px 6px 10px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.18);
}

.goal-category-option {
  position: relative;
  overflow: hidden;
  border-color: rgba(148, 163, 184, 0.16);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.035), transparent 44%),
    rgba(15, 23, 42, 0.58);
}

.goal-category-option::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 42%);
  opacity: 0;
  transition: 0.2s ease;
}

.goal-category-option:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 153, 0, 0.32);
  background:
    radial-gradient(circle at top, rgba(255, 153, 0, 0.08), transparent 48%),
    rgba(15, 23, 42, 0.68);
}

.goal-category-option:hover::before {
  opacity: 1;
}

.goal-category-option i,
.goal-category-option span {
  position: relative;
  z-index: 1;
}

.goal-category-option i {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.goal-category-option.active {
  border-color: rgba(255, 153, 0, 0.48);
  background:
    radial-gradient(circle at top, rgba(255, 153, 0, 0.2), transparent 54%),
    rgba(255, 153, 0, 0.095);
  box-shadow:
    0 0 0 1px rgba(255, 153, 0, 0.08),
    0 16px 34px rgba(255, 153, 0, 0.09);
}

.goal-category-option.active i {
  background:
    radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.3), transparent 34%),
    linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #020617;
}

/* Botões dos modais */
.modal-actions,
.confirm-actions {
  gap: 12px;
}

.cancel-btn,
.confirm-cancel-btn {
  min-height: 46px;
  border-radius: 15px;
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.28);
  color: #cbd5e1;
  transition: 0.2s ease;
}

.cancel-btn:hover,
.confirm-cancel-btn:hover {
  transform: translateY(-1px);
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.save-btn,
.profile-modal-save {
  min-height: 46px;
  border-radius: 15px;
  background:
    radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.32), transparent 32%),
    linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #020617;
  box-shadow:
    0 14px 32px rgba(255, 153, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.save-btn:hover,
.profile-modal-save:hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 40px rgba(255, 153, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.confirm-danger-btn {
  min-height: 46px;
  border-radius: 15px;
  border-color: rgba(251, 113, 133, 0.34);
  background:
    radial-gradient(circle at left, rgba(251, 113, 133, 0.15), transparent 48%),
    rgba(251, 113, 133, 0.1);
  color: #fecdd3;
  transition: 0.2s ease;
}

.confirm-danger-btn:hover {
  transform: translateY(-1px);
  color: #020617;
  border-color: transparent;
  background: linear-gradient(135deg, #fb7185, #fda4af);
  box-shadow: 0 14px 32px rgba(251, 113, 133, 0.16);
}

/* Modal de confirmação */
.confirm-box {
  border-color: rgba(251, 113, 133, 0.22);
}

.confirm-icon {
  border-color: rgba(251, 113, 133, 0.32);
  background: rgba(251, 113, 133, 0.1);
  color: #fb7185;
}

/* Modal de perfil */
.profile-modal {
  border-color: rgba(56, 189, 248, 0.18);
}

.profile-modal-icon {
  border-color: rgba(56, 189, 248, 0.24);
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
}

.profile-modal-message {
  font-weight: 800;
}

/* Detalhes do progresso */
.progress-details-modal {
  border-color: rgba(34, 197, 94, 0.18);
}

.progress-details-summary {
  gap: 14px;
}

.progress-detail-stat {
  border-color: rgba(148, 163, 184, 0.17);
  background:
    radial-gradient(circle at left, rgba(255, 153, 0, 0.055), transparent 46%),
    rgba(15, 23, 42, 0.55);
}

.progress-detail-item {
  border-color: rgba(148, 163, 184, 0.17);
  background:
    radial-gradient(circle at left, rgba(255, 153, 0, 0.045), transparent 44%),
    rgba(15, 23, 42, 0.52);
}

.progress-detail-item:hover {
  border-color: rgba(255, 153, 0, 0.28);
}

/* Animação */
@keyframes metaflowModalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* MOBILE DOS MODAIS */
@media (max-width: 720px) {
  .modal-overlay,
  .confirm-overlay,
  .profile-overlay {
    padding: 14px;
    align-items: flex-end;
  }

  .modal,
  .confirm-box,
  .profile-modal {
    width: 100%;
    max-height: calc(100vh - 28px);
    padding: 20px;
    border-radius: 26px 26px 22px 22px;
  }

  .modal-header {
    align-items: flex-start;
  }

  .modal-title-area {
    gap: 12px;
  }

  .modal-icon,
  .profile-modal-icon,
  .confirm-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 14px;
    font-size: 18px;
  }

  .modal-title-area h3,
  .confirm-content h3,
  .profile-modal h3 {
    font-size: 20px;
  }

  .modal-title-area p,
  .confirm-content p,
  .profile-modal p {
    font-size: 13px;
  }

  .goal-category-grid {
    grid-template-columns: repeat(3, 1fr);
    max-height: 300px;
  }

  .goal-category-option {
    min-height: 78px;
    padding: 10px 6px;
  }

  .goal-category-option i {
    width: 34px;
    height: 34px;
  }

  .modal-actions,
  .confirm-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cancel-btn,
  .save-btn,
  .confirm-cancel-btn,
  .confirm-danger-btn,
  .profile-modal-save {
    width: 100%;
  }

  .progress-details-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 460px) {
  .goal-category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .progress-details-summary {
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   PATCH 10 - LOGIN / CADASTRO MAIS PREMIUM
   Cole no FINAL do style.css
   ========================================================= */

.auth-page {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 153, 0, 0.16), transparent 34%),
    radial-gradient(circle at 100% 18%, rgba(56, 189, 248, 0.10), transparent 34%),
    radial-gradient(circle at 50% 100%, rgba(34, 197, 94, 0.055), transparent 34%),
    linear-gradient(180deg, #050b14 0%, #020617 100%);
}

.auth-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 78%);
}

.auth-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-color: rgba(255, 153, 0, 0.18);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 153, 0, 0.14), transparent 38%),
    radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.07), transparent 38%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.97), rgba(8, 17, 31, 0.92));
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.48),
    0 0 60px rgba(255, 153, 0, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 42%);
}

.auth-brand,
.auth-header,
.auth-form,
.auth-switch,
.auth-note {
  position: relative;
  z-index: 1;
}

.auth-brand {
  padding-bottom: 20px;
  margin-bottom: 26px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.auth-brand .brand-logo,
.auth-brand-logo {
  border-color: rgba(255, 153, 0, 0.35);
  background:
    radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.24), transparent 34%),
    rgba(255, 153, 0, 0.12);
  box-shadow:
    0 14px 34px rgba(255, 153, 0, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.auth-brand h1 {
  color: #ffffff;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.045);
}

.auth-brand h1 span {
  color: var(--orange);
}

.auth-brand p,
.auth-header p {
  color: #a9c2df;
  font-weight: 700;
  line-height: 1.45;
}

.auth-header h2 {
  color: #ffffff;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.05);
}

.auth-form {
  gap: 17px;
}

.auth-field label {
  color: #cbd5e1;
  font-size: 13px;
  letter-spacing: -0.01em;
}

.auth-input {
  height: 54px;
  border-radius: 17px;
  border-color: rgba(148, 163, 184, 0.18);
  background:
    radial-gradient(circle at left, rgba(255, 153, 0, 0.045), transparent 48%),
    rgba(2, 6, 23, 0.42);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.auth-input:focus-within {
  transform: translateY(-1px);
  border-color: rgba(255, 153, 0, 0.48);
  background:
    radial-gradient(circle at left, rgba(255, 153, 0, 0.075), transparent 48%),
    rgba(2, 6, 23, 0.55);
  box-shadow:
    0 0 0 3px rgba(255, 153, 0, 0.09),
    0 14px 30px rgba(0, 0, 0, 0.16);
}

.auth-input i {
  color: #ffb347;
  filter: drop-shadow(0 0 10px rgba(255, 153, 0, 0.18));
}

.auth-input input {
  color: #f8fafc;
}

.auth-input input::placeholder {
  color: rgba(148, 163, 184, 0.72);
}

.auth-submit-btn {
  position: relative;
  overflow: hidden;
  height: 58px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.34), transparent 32%),
    linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #020617;
  box-shadow:
    0 18px 40px rgba(255, 153, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.auth-submit-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 42%);
  opacity: 0;
  transition: 0.2s ease;
}

.auth-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 22px 48px rgba(255, 153, 0, 0.32),
    0 0 34px rgba(255, 153, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.auth-submit-btn:hover::before {
  opacity: 1;
}

.auth-message {
  display: flex;
  align-items: center;
  min-height: 22px;
  line-height: 1.4;
}

.auth-message.error {
  color: #fb7185;
}

.auth-message.success {
  color: #4ade80;
}

.auth-message.info {
  color: #93c5fd;
}

.auth-switch {
  padding-top: 4px;
  color: #a9c2df;
}

.auth-switch button {
  color: var(--orange);
  transition: 0.2s ease;
}

.auth-switch button:hover {
  color: #ffb347;
  text-decoration: underline;
}

.auth-note {
  border-color: rgba(255, 153, 0, 0.24);
  background:
    radial-gradient(circle at left, rgba(255, 153, 0, 0.1), transparent 46%),
    rgba(255, 153, 0, 0.055);
  color: #cbd5e1;
}

.auth-note i {
  color: #ffb347;
}

/* MOBILE DO LOGIN */
@media (max-width: 720px) {
  .auth-page {
    padding: 18px;
    place-items: center;
  }

  .auth-card {
    padding: 24px;
    border-radius: 26px;
  }

  .auth-brand {
    margin-bottom: 24px;
  }

  .auth-brand h1 {
    font-size: 28px;
  }

  .auth-header h2 {
    font-size: 29px;
  }

  .auth-header p {
    font-size: 14px;
  }

  .auth-input {
    height: 52px;
  }

  .auth-submit-btn {
    height: 56px;
  }

  .auth-note {
    font-size: 13px;
    line-height: 1.45;
  }
}

@media (max-width: 430px) {
  .auth-card {
    padding: 22px;
    border-radius: 24px;
  }

  .auth-brand {
    align-items: flex-start;
  }

  .auth-brand h1 {
    font-size: 26px;
  }

  .auth-header h2 {
    font-size: 27px;
  }
}