/* ─── Variáveis ─────────────────────────────────────── */
:root {
  --bg:            #f8f7f4;
  --bg-card:       #ffffff;
  --blue-light:    #c5dff5;
  --blue-medium:   #5b9bd5;
  --purple-light:  #dcc8f5;
  --purple-medium: #9b72cc;
  --gradient:      linear-gradient(135deg, #c5dff5 0%, #dcc8f5 100%);
  --gradient-soft: linear-gradient(135deg, #edf5fd 0%, #f4edfd 100%);
  --text:          #2a2d3e;
  --text-light:    #6b7280;
  --text-xlight:   #9ca3af;
  --border:        #e4d9f5;
  --border-light:  #eff0f5;
  --shadow:        0 2px 16px rgba(100, 80, 160, 0.08);
  --shadow-md:     0 4px 24px rgba(100, 80, 160, 0.13);
  --shadow-hover:  0 10px 40px rgba(100, 80, 160, 0.18);
  --radius:        16px;
  --radius-sm:     10px;
  --radius-xs:     6px;
  --transition:    0.22s ease;
  --nav-h:         60px;
}

/* ─── Reset / Base ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100dvh;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── Navbar ────────────────────────────────────────── */
#navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(248, 247, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  gap: 1rem;
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 600;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.02em;
  padding: 0;
}

.nav-toggle {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: var(--radius-xs);
  transition: background var(--transition);
}
.nav-toggle:hover { background: var(--border-light); }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 98;
}
.nav-overlay.open { display: block; }

.nav-menu {
  position: fixed;
  top: var(--nav-h);
  right: -100%;
  width: min(280px, 80vw);
  height: calc(100dvh - var(--nav-h));
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  z-index: 99;
  overflow-y: auto;
  transition: right 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.75rem 0;
  border-left: 1px solid var(--border);
}
.nav-menu.open { right: 0; }

.nav-menu li { border-bottom: 1px solid var(--border-light); }
.nav-menu li:last-child { border-bottom: none; }
.nav-logout-item button { color: #dc2626 !important; }
.nav-logout-item button:hover { background: #fef2f2 !important; color: #dc2626 !important; }
.nav-menu li button {
  width: 100%;
  text-align: left;
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
  border-radius: 0;
}
.nav-menu li button:hover {
  background: var(--gradient-soft);
  color: var(--purple-medium);
}

/* ─── Main / App ────────────────────────────────────── */
#app { min-height: calc(100dvh - var(--nav-h)); }

/* ─── Home Hero ──────────────────────────────────────── */
.home-hero {
  position: relative;
  text-align: center;
  padding: 4.5rem 1.5rem 3.75rem;
  background: linear-gradient(135deg,
    #9ec8f0 0%,
    #b0a0ee 35%,
    #ca96ee 65%,
    #e8c0f8 100%);
  overflow: hidden;
  border-bottom: none;
}

/* Orbs decorativos de fundo */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  pointer-events: none;
  z-index: 0;
}
.hero-orb-1 {
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(120, 190, 255, 0.65), transparent 70%);
  top: -110px; left: -90px;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(170, 100, 255, 0.5), transparent 70%);
  bottom: -150px; right: -110px;
}
.hero-orb-3 {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(255, 210, 250, 0.45), transparent 70%);
  top: 25%; left: 28%;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-deco-heart {
  font-size: 2.2rem;
  color: rgba(255,255,255,0.8);
  display: block;
  margin: 0 auto 0.5rem;
  animation: pulse 2.4s ease-in-out infinite;
  line-height: 1;
  filter: drop-shadow(0 3px 10px rgba(90, 50, 160, 0.25));
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.14); }
}

.home-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 11vw, 5.5rem);
  font-weight: 600;
  color: white;
  -webkit-text-fill-color: white;
  background: none;
  background-clip: unset;
  letter-spacing: 0.05em;
  line-height: 1.1;
  margin-bottom: 0;
  text-shadow: 0 3px 28px rgba(70, 30, 130, 0.22);
}

.hero-divider {
  width: 48px;
  height: 2px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  margin: 1rem auto;
}

.home-subtitle {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(0.88rem, 2.8vw, 1.08rem);
  color: rgba(255,255,255,0.92);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.78;
  text-shadow: 0 1px 8px rgba(70, 30, 130, 0.15);
}

.home-date { display: none; }

.hero-greeting {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.42);
  border-radius: 30px;
  padding: 0.45rem 1.15rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: none;
}

/* Category grid */
.categories-section {
  padding: 2rem 1.25rem 3rem;
  max-width: 700px;
  margin: 0 auto;
}

.categories-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--text-light);
  font-weight: 400;
  margin-bottom: 1.5rem;
  text-align: center;
  letter-spacing: 0.04em;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

@media (min-width: 500px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 680px) {
  .categories-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
}

.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  text-align: center;
  user-select: none;
}
.cat-card:hover, .cat-card:active {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--purple-light);
}
.cat-card:active { transform: translateY(-1px); }

.cat-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.cat-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.cat-count {
  font-size: 0.7rem;
  color: var(--text-xlight);
}

/* ─── Page Header ───────────────────────────────────── */
.page-header {
  padding: 2rem 1.25rem 1.5rem;
  text-align: center;
  background: var(--gradient-soft);
  border-bottom: 1px solid var(--border-light);
}

.page-header .back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: white;
  transition: all var(--transition);
}
.page-header .back-btn:hover {
  background: var(--gradient-soft);
  border-color: var(--purple-light);
  color: var(--purple-medium);
}

.page-header .page-icon {
  font-size: 2rem;
  display: block;
  margin: 0 auto 0.5rem;
}

.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 600;
  color: var(--text);
}

.page-header p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-top: 0.35rem;
  font-style: italic;
}

/* ─── Section Content ───────────────────────────────── */
.section-content {
  padding: 1.75rem 1.25rem 3rem;
  max-width: 720px;
  margin: 0 auto;
}

/* ─── Memory Card (Polaroid) ────────────────────────── */
.memories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 520px) {
  .memories-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 700px) {
  .memories-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

.memory-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border-light);
}
.memory-card:hover {
  transform: translateY(-4px) rotate(0.4deg);
  box-shadow: var(--shadow-hover);
}
.memory-card:active { transform: translateY(-2px); }

.memory-photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-xlight);
}
.memory-photo.placeholder {
  aspect-ratio: 4/3;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.memory-body {
  padding: 1rem 1.1rem 1.2rem;
}

.memory-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.tag-date {
  font-size: 0.7rem;
  color: var(--text-xlight);
  letter-spacing: 0.04em;
}

.tag-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 20px;
  background: var(--gradient-soft);
  color: var(--purple-medium);
  border: 1px solid var(--purple-light);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.memory-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
  line-height: 1.35;
}

.memory-legenda {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.memory-tags {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.memory-tag {
  font-size: 0.65rem;
  padding: 0.1rem 0.45rem;
  background: var(--blue-light);
  color: var(--blue-medium);
  border-radius: 20px;
  font-weight: 500;
  opacity: 0.85;
}

/* ─── Ticket (Sessões) ──────────────────────────────── */
.tickets-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.filter-btn {
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-light);
  background: white;
  transition: all var(--transition);
  cursor: pointer;
}
.filter-btn:hover { border-color: var(--blue-medium); color: var(--blue-medium); }
.filter-btn.active {
  background: var(--blue-medium);
  border-color: var(--blue-medium);
  color: white;
}

.ticket-wrapper {
  position: relative;
  margin-bottom: 1.25rem;
}

.ticket {
  display: flex;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.ticket:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.ticket:active { transform: translateY(-1px); }

.ticket-main {
  flex: 1;
  padding: 1.1rem 1.25rem;
  border-right: 2px dashed var(--border);
  min-width: 0;
}

.ticket-stub {
  width: 72px;
  min-width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 0.4rem;
  background: var(--gradient);
}

.ticket-stub-num {
  font-family: 'Playfair Display', serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.12em;
  opacity: 0.9;
}

.ticket-stub-label {
  font-size: 0.55rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
  writing-mode: vertical-rl;
}

.ticket-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.ticket-type-badge {
  font-size: 0.63rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 20px;
  background: var(--gradient-soft);
  color: var(--purple-medium);
  border: 1px solid var(--purple-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ticket-num-label {
  font-size: 0.68rem;
  color: var(--text-xlight);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-left: auto;
}

.ticket-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.45rem;
  line-height: 1.3;
}

.ticket-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.ticket-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.ticket-info-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-xlight);
  font-weight: 600;
}

.ticket-info-value {
  font-size: 0.8rem;
  color: var(--text);
  font-weight: 500;
}

.ticket-notas {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.nota-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.nota-label {
  font-size: 0.58rem;
  color: var(--text-xlight);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nota-value {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ticket-legenda {
  font-size: 0.79rem;
  color: var(--text-light);
  font-style: italic;
  line-height: 1.5;
  margin-top: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hole cutouts */
.ticket-hole {
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--bg);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid var(--border-light);
  z-index: 2;
}
.ticket-hole.left  { left: calc(100% - 72px - 9px); }
.ticket-hole.right { left: calc(100% - 72px - 9px); } /* same x */

/* Actually position them vertically offset */
.ticket-hole.top-hole {
  top: -9px;
  left: calc(100% - 72px - 9px);
  transform: none;
}
.ticket-hole.bot-hole {
  bottom: -9px;
  top: auto;
  left: calc(100% - 72px - 9px);
  transform: none;
}

/* ─── Shows ─────────────────────────────────────────── */
.show-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  padding: 1.25rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.show-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.show-icon-wrap {
  width: 52px;
  min-width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.show-body { flex: 1; min-width: 0; }
.show-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.show-meta { font-size: 0.78rem; color: var(--text-light); }
.show-musica { font-size: 0.78rem; color: var(--purple-medium); font-style: italic; margin-top: 0.3rem; }

/* ─── Viagens ───────────────────────────────────────── */
.viagem-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  margin-bottom: 1.25rem;
}
.viagem-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.viagem-banner {
  height: 140px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  object-fit: cover;
}

.viagem-body { padding: 1.1rem 1.25rem 1.25rem; }
.viagem-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.viagem-meta { font-size: 0.8rem; color: var(--text-light); margin-bottom: 0.6rem; }

.viagem-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.highlight-item {
  background: var(--gradient-soft);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.7rem;
}

.highlight-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-xlight);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.highlight-value {
  font-size: 0.78rem;
  color: var(--text);
  line-height: 1.4;
}

/* ─── Comidas ───────────────────────────────────────── */
.comida-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  margin-bottom: 1rem;
}
.comida-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.comida-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.comida-emoji { font-size: 1.75rem; line-height: 1; }

.comida-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.comida-meta { font-size: 0.76rem; color: var(--text-light); margin-top: 0.15rem; }

.comida-pedidos {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}

.pedido-item {
  background: var(--gradient-soft);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  flex: 1;
  min-width: 120px;
}

.pedido-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-xlight);
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.pedido-value { font-size: 0.82rem; color: var(--text); }

.comida-nota {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-light);
}

.nota-stars {
  color: #f59e0b;
  letter-spacing: -1px;
}

/* ─── Coisas Nossas ─────────────────────────────────── */
.coisa-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  margin-bottom: 1rem;
}
.coisa-card:hover {
  transform: translateY(-3px) rotate(-0.3deg);
  box-shadow: var(--shadow-hover);
}

.coisa-tipo {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-medium);
  margin-bottom: 0.35rem;
}

.coisa-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.coisa-texto {
  font-size: 0.84rem;
  color: var(--text-light);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Músicas ───────────────────────────────────────── */
.musica-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.musica-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-hover);
}

.musica-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--border);
  min-width: 28px;
  text-align: center;
}

.musica-icon {
  width: 46px;
  min-width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.musica-body { flex: 1; min-width: 0; }

.musica-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.musica-artista { font-size: 0.78rem; color: var(--text-light); }

.musica-motivo {
  font-size: 0.75rem;
  color: var(--purple-medium);
  font-style: italic;
  margin-top: 0.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Cartinhas ─────────────────────────────────────── */
.cartinhas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 520px) {
  .cartinhas-grid { grid-template-columns: repeat(2, 1fr); }
}

.cartinha-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.cartinha-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.cartinha-banner {
  height: 8px;
  background: var(--gradient);
}

.cartinha-body { padding: 1.25rem; }

.cartinha-icon {
  font-size: 1.75rem;
  margin-bottom: 0.6rem;
  display: block;
}

.cartinha-titulo {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.cartinha-preview {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.6;
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cartinha-data {
  font-size: 0.7rem;
  color: var(--text-xlight);
  margin-top: 0.75rem;
  letter-spacing: 0.04em;
}

/* ─── Timeline ──────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient);
  border-radius: 2px;
}

.timeline-year {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--purple-medium);
  margin-bottom: 1rem;
  margin-top: 0.5rem;
  position: relative;
}
.timeline-year::before {
  content: '';
  position: absolute;
  left: -1.7rem;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gradient);
  border: 2px solid white;
  box-shadow: 0 0 0 2px var(--purple-light);
}

.timeline-events { margin-bottom: 1.75rem; }

.timeline-event {
  background: white;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  padding: 0.85rem 1rem;
  margin-bottom: 0.7rem;
  box-shadow: var(--shadow);
  position: relative;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.timeline-event:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}
.timeline-event::before {
  content: '';
  position: absolute;
  left: -1.7rem;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--blue-medium);
}

.timeline-event-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.timeline-event-date {
  font-size: 0.72rem;
  color: var(--text-xlight);
}

.timeline-event-desc {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.25rem;
  line-height: 1.5;
}

/* ─── Planos ────────────────────────────────────────── */
.planos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
@media (min-width: 520px) {
  .planos-grid { grid-template-columns: repeat(2, 1fr); }
}

.plano-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.plano-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.plano-status-bar {
  height: 5px;
}
.plano-status-bar.sonho     { background: var(--gradient); }
.plano-status-bar.planejando { background: linear-gradient(90deg, var(--blue-medium), #7ec8e3); }
.plano-status-bar.realizado  { background: linear-gradient(90deg, #68d391, #48bb78); }

.plano-body { padding: 1.1rem 1.25rem 1.25rem; }

.plano-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  margin-bottom: 0.5rem;
}
.plano-status-badge.sonho      { background: var(--gradient-soft); color: var(--purple-medium); border: 1px solid var(--purple-light); }
.plano-status-badge.planejando { background: #eff8ff; color: var(--blue-medium); border: 1px solid var(--blue-light); }
.plano-status-badge.realizado  { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }

.plano-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.plano-motivo {
  font-size: 0.81rem;
  color: var(--text-light);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.plano-emoji {
  font-size: 1.5rem;
  float: right;
  margin-left: 0.75rem;
  margin-top: 0.15rem;
}

/* ─── Modal ─────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 40, 0.55);
  z-index: 200;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-overlay.open {
  display: flex;
}

@media (min-width: 600px) {
  .modal-overlay { align-items: center; }
  .modal-box {
    border-radius: var(--radius) !important;
    max-height: 90vh !important;
    width: min(600px, 96vw) !important;
  }
}

.modal-box {
  background: white;
  width: 100%;
  max-height: 93dvh;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}

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

.modal-close {
  position: sticky;
  top: 0.75rem;
  float: right;
  margin: 0.75rem 0.75rem 0 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border-light);
  font-size: 1.2rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background var(--transition);
}
.modal-close:hover { background: var(--purple-light); }

.modal-inner {
  padding: 0.5rem 1.5rem 2rem;
  clear: both;
}

.modal-photo {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
}

.modal-photo-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--gradient-soft);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  margin-bottom: 1.25rem;
}

.modal-category {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-medium);
  margin-bottom: 0.4rem;
}

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--gradient-soft);
  border-radius: var(--radius-sm);
}

.modal-meta-item { display: flex; flex-direction: column; gap: 0.1rem; }
.modal-meta-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-xlight);
  font-weight: 600;
}
.modal-meta-value { font-size: 0.85rem; color: var(--text); font-weight: 500; }

.modal-legenda {
  font-style: italic;
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.65;
  border-left: 3px solid var(--purple-light);
  padding-left: 0.85rem;
  margin-bottom: 1rem;
}

.modal-descricao {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

/* carta modal */
.carta-full {
  background: var(--gradient-soft);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text);
  white-space: pre-wrap;
  border: 1px solid var(--border);
}

/* ─── Empty state ───────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-xlight);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 0.75rem; display: block; }
.empty-state p { font-size: 0.9rem; }

/* ─── Utilities ─────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border-light);
  margin: 1.5rem 0;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--purple-light); }

/* ─── Transitions page ──────────────────────────────── */
#app { transition: opacity 0.15s ease; }
#app.fading { opacity: 0; }

/* ─── Seleção de usuário ─────────────────────────────── */
.user-select-screen {
  min-height: calc(100dvh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 1.5rem;
  background: var(--gradient-soft);
  text-align: center;
}

.user-select-btns {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.user-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 2rem;
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  min-width: 130px;
  box-shadow: var(--shadow);
}
.user-btn span:first-child { font-size: 2rem; }
.user-btn:hover {
  border-color: var(--purple-medium);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* ─── Navbar — coração centralizado ─────────────────── */
#navbar { position: relative; } /* needed for absolute center child */

.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  pointer-events: none; /* container only */
}

.nav-heart-btn {
  pointer-events: all;
  font-size: 1.3rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}
.nav-heart-btn:hover {
  border-color: var(--purple-light);
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

/* ─── Login screen ───────────────────────────────────── */
.login-screen {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(135deg,
    #9ec8f0 0%,
    #b0a0ee 35%,
    #ca96ee 65%,
    #e8c0f8 100%);
}

.login-card {
  background: white;
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(80, 40, 140, 0.22);
  width: 100%;
  max-width: 360px;
  overflow: hidden;
}

.login-header {
  padding: 2.25rem 1.5rem 2rem;
  text-align: center;
  background: linear-gradient(135deg,
    #9ec8f0 0%,
    #b0a0ee 45%,
    #ca96ee 100%);
  position: relative;
  overflow: hidden;
}
.login-header::before {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%);
  top: -80px; right: -60px;
}
.login-header::after {
  content: '';
  position: absolute;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 70%);
  bottom: -70px; left: -40px;
}

.login-heart {
  display: block;
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
  animation: pulse 2.4s ease-in-out infinite;
  position: relative; z-index: 1;
  filter: drop-shadow(0 3px 10px rgba(80, 40, 130, 0.2));
}

.login-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 600;
  color: white;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 16px rgba(70, 30, 120, 0.2);
  position: relative; z-index: 1;
}

.login-subtitle {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
  margin-top: 0.3rem;
  position: relative; z-index: 1;
}

.login-body {
  padding: 1.75rem 1.5rem 2rem;
}

.login-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  font-size: 0.82rem;
  margin-bottom: 1rem;
  display: none;
}
.login-error.show { display: block; }

.login-btn {
  width: 100%;
  padding: 0.88rem;
  background: linear-gradient(135deg, #6aaee0 0%, #9b72cc 100%);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  margin-top: 1.25rem;
  transition: opacity var(--transition), transform var(--transition);
  letter-spacing: 0.03em;
}
.login-btn:hover  { opacity: 0.88; }
.login-btn:active { transform: scale(0.97); }
.login-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ─── FAB ────────────────────────────────────────────── */
.fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  font-size: 1.6rem;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(100, 80, 160, 0.35);
  border: none;
  cursor: pointer;
  z-index: 50;
  transition: transform var(--transition), box-shadow var(--transition);
  line-height: 1;
}
.fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(100, 80, 160, 0.45);
}
.fab:active { transform: scale(0.96); }
.fab span { margin-top: -2px; }

/* ─── Forms ──────────────────────────────────────────── */
.form-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.req { color: var(--purple-medium); }

.form-hint {
  font-size: 0.7rem;
  color: var(--text-xlight);
  margin-top: -0.15rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-size: 16px; /* evita zoom iOS */
  font-family: inherit;
  color: var(--text);
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--purple-medium);
  box-shadow: 0 0 0 3px rgba(155, 114, 204, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.6;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca3af' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.2rem;
  cursor: pointer;
}

/* ─── Photo upload ───────────────────────────────────── */
.photo-upload-area {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--blue-light);
  cursor: pointer;
  overflow: hidden;
  position: relative;
  background: var(--gradient-soft);
  transition: border-color var(--transition);
  margin-bottom: 0.25rem;
}
.photo-upload-area:hover { border-color: var(--blue-medium); }

.photo-upload-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: var(--text-xlight);
  pointer-events: none;
}
.photo-placeholder span   { font-size: 2rem; }
.photo-placeholder p      { font-size: 0.85rem; font-weight: 500; }
.photo-placeholder small  { font-size: 0.72rem; }

.photo-remove {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: white;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  z-index: 5;
  transition: background var(--transition);
}
.photo-remove:hover { background: rgba(0,0,0,0.75); }

/* ─── Form actions ───────────────────────────────────── */
.form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.btn-primary {
  flex: 1;
  padding: 0.8rem 1.5rem;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
  font-family: inherit;
}
.btn-primary:hover   { opacity: 0.9; }
.btn-primary:active  { transform: scale(0.97); }

.btn-secondary {
  padding: 0.8rem 1.25rem;
  background: white;
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.btn-secondary:hover { border-color: var(--purple-light); color: var(--purple-medium); }

.btn-danger {
  padding: 0.8rem 1.25rem;
  background: white;
  color: #dc2626;
  border: 1.5px solid #fecaca;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.btn-danger:hover { background: #fef2f2; border-color: #dc2626; }

/* ─── Modal actions ──────────────────────────────────── */
.modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

/* ─── Empty state with CTA ───────────────────────────── */
.btn-add-empty {
  margin-top: 1rem;
  padding: 0.7rem 1.5rem;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: opacity var(--transition);
}
.btn-add-empty:hover { opacity: 0.88; }
