/* ========================================================
   CÁPSULA DO TEMPO • GUILHERME & MILENA
   Design System Fiel ao Mockup Apple HIG (6 Telas)
   Zero Emojis • Vetores Puros • Modo Claro Padrão & Dark Mode
   ======================================================== */

:root {
  color-scheme: light;
  --bg-main: #f8f8fa;
  --card-bg: #ffffff;
  --card-elevated: #ffffff;
  --text-primary: #000000;
  --text-secondary: #8e8e93;
  --text-tertiary: #aeaeb2;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-light: rgba(0, 0, 0, 0.05);
  
  --accent-pink: #ff2d55;
  --accent-pink-hover: #e0264b;
  --accent-pink-subtle: rgba(255, 45, 85, 0.08);
  
  --dock-bg: rgba(255, 255, 255, 0.86);
  --dock-border: rgba(0, 0, 0, 0.08);
  --btn-circle-bg: rgba(0, 0, 0, 0.05);

  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
  --radius-hero: 28px;
  --radius-card: 20px;
  --radius-thumb: 16px;
  --radius-pill: 9999px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg-main: #000000;
  --card-bg: #1c1c1e;
  --card-elevated: #2c2c2e;
  --text-primary: #ffffff;
  --text-secondary: #8e8e93;
  --text-tertiary: #636366;
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-light: rgba(255, 255, 255, 0.08);
  
  --dock-bg: rgba(28, 28, 30, 0.86);
  --dock-border: rgba(255, 255, 255, 0.12);
  --btn-circle-bg: rgba(255, 255, 255, 0.12);
}

html {
  height: 100%;
  overscroll-behavior-y: none;
  background-color: var(--bg-main);
  transition: background-color 0.25s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  transition: background-color 0.25s ease, color 0.25s ease;
  -webkit-font-smoothing: antialiased;
}

body.no-vertical-scroll,
.ios-device-container.no-vertical-scroll {
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  overscroll-behavior-y: none;
}

/* Container que emula o iPhone com perfeição e centraliza no Desktop */
.ios-device-container {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  background-color: var(--bg-main);
  display: flex;
  flex-direction: column;
}

/* Tela Memórias: travada no viewport exato sem scroll vertical */
#viewMemories {
  height: 100%;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  overscroll-behavior-y: none;
  touch-action: pan-x;
  display: flex;
  flex-direction: column;
}

#viewMemories .albums-horizontal-scroller {
  overflow-x: auto;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

/* Outras telas com listas rolam normalmente acima do Dock */
#viewCapsules,
#viewPlans {
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 16px));
  min-height: 100vh;
}

/* Barra de preenchimento absoluto da safe-area do entalhe/Dynamic Island */
.safe-area-top-fill {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: env(safe-area-inset-top, 0px);
  background-color: var(--bg-main);
  z-index: 999;
  pointer-events: none;
  transition: background-color 0.25s ease;
}

/* ========================================================
   HEADER PRINCIPAL (MEMÓRIAS)
   ======================================================== */
.ios-header-home {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 22px 12px 22px;
  background-color: var(--bg-main);
  transition: background-color 0.25s ease;
}

.ios-header-left {
  display: flex;
  flex-direction: column;
}

.ios-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.ios-title-hero {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.8px;
  color: var(--text-primary);
}

.ios-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}

.ios-round-action-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.ios-round-action-btn:active {
  transform: scale(0.92);
}

.ios-round-action-btn svg {
  width: 19px;
  height: 19px;
}

/* ========================================================
   CARD HERO DE DESTAQUE (TELA 1)
   ======================================================== */
.hero-memory-card {
  margin: 12px 20px 24px 20px;
  height: 370px;
  border-radius: var(--radius-hero);
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.hero-memory-card:active {
  transform: scale(0.985);
}

.hero-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.4) 65%, rgba(0,0,0,0.85) 100%);
  pointer-events: none;
}

.hero-card-content {
  position: absolute;
  bottom: 22px;
  left: 22px;
  right: 22px;
  color: #ffffff;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.hero-location-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 6px;
}

.hero-location-badge svg {
  width: 13px;
  height: 13px;
}

.hero-card-title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
  color: #ffffff;
}

.hero-card-meta {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
}

/* ========================================================
   SEÇÃO ÁLBUNS HORIZONTAL (TELA 1)
   ======================================================== */
.section-albums {
  padding: 0 20px;
}

.section-albums-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--text-primary);
}

.section-link-btn {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-pink);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
}

.albums-horizontal-scroller {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 -20px;
  padding: 4px 0 16px 0;
}

.albums-horizontal-scroller::-webkit-scrollbar {
  display: none;
}

.albums-horizontal-scroller > *:first-child {
  margin-left: 20px;
}

.albums-horizontal-scroller > *:last-child {
  margin-right: 20px;
}

.album-card-item {
  flex-shrink: 0;
  width: 144px;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.album-card-item:active {
  transform: scale(0.96);
}

.album-thumb-img {
  width: 144px;
  height: 110px;
  border-radius: var(--radius-thumb);
  object-fit: cover;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.album-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 8px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.album-card-count {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ========================================================
   TELA 2: DETALHE DO ÁLBUM (OVERLAY)
   ======================================================== */
.subview-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: var(--bg-main);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  max-width: 440px;
  margin: 0 auto;
}

.subview-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 20px 14px 20px;
  position: sticky;
  top: 0;
  background: var(--bg-main);
  z-index: 10;
}

.subview-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--btn-circle-bg);
  border: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.subview-nav-btn svg {
  width: 20px;
  height: 20px;
}

.album-detail-body {
  padding: 0 20px 80px 20px;
  display: flex;
  flex-direction: column;
}

.album-detail-header {
  margin-bottom: 20px;
}

.album-detail-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.album-detail-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--text-primary);
  margin: 4px 0;
}

.album-detail-meta {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Grade Escalonada (1 Panorama + 2 Verticais) */
.album-staggered-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.album-photo-large {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-card);
  object-fit: cover;
  display: block;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.album-photo-large:active {
  transform: scale(0.98);
}

.album-photos-row-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.album-photo-vertical {
  width: 100%;
  height: 230px;
  border-radius: var(--radius-card);
  object-fit: cover;
  display: block;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.album-photo-vertical:active {
  transform: scale(0.97);
}

.album-upload-section {
  margin-top: 24px;
}

.btn-add-photos-pill {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-pill);
  border: 2px dashed var(--accent-pink);
  background: var(--accent-pink-subtle);
  color: var(--accent-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.btn-add-photos-pill svg {
  width: 18px;
  height: 18px;
}

/* ========================================================
   TELA 3: VISUALIZADOR EM ECRÃ CHEIO (LIGHTBOX)
   ======================================================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background-color: #000000;
  z-index: 200;
  display: flex;
  flex-direction: column;
  max-width: 440px;
  margin: 0 auto;
}

.lightbox-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 20px 14px 20px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.lightbox-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.lightbox-nav-btn svg {
  width: 20px;
  height: 20px;
}

.lightbox-media-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
}

.lightbox-media-wrapper img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 12px;
}

.lightbox-footer {
  padding: 20px 24px calc(24px + env(safe-area-inset-bottom, 12px)) 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: #ffffff;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85));
}

.lightbox-footer-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.lightbox-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.lightbox-location svg {
  width: 14px;
  height: 14px;
}

.lightbox-date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.lightbox-counter {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

/* ========================================================
   TELA 5 & 6: CABEÇALHOS DAS PÁGINAS E LISTAS INSET
   ======================================================== */
.ios-header-page {
  padding: calc(16px + env(safe-area-inset-top, 0px)) 22px 14px 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.ios-subtitle-page {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.ios-inset-list {
  padding: 8px 20px 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ios-list-card-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--card-bg);
  border-radius: var(--radius-card);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.ios-list-card-item:active {
  transform: scale(0.98);
}

.ios-list-thumb {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-thumb);
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.ios-list-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ios-list-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.ios-list-sub {
  font-size: 13px;
  color: var(--text-secondary);
}

.ios-list-meta {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.ios-list-chevron {
  width: 16px;
  height: 16px;
  stroke: #c7c7cc;
  flex-shrink: 0;
}

/* ========================================================
   BOTÕES PILL EM ROSA VIBRANTE (TELA 4 & 6)
   ======================================================== */
.plans-bottom-cta {
  padding: 10px 20px 40px 20px;
}

.btn-primary-pill {
  width: 100%;
  height: 52px;
  background-color: var(--accent-pink);
  color: #ffffff;
  border-radius: var(--radius-pill);
  border: none;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 45, 85, 0.32);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn-primary-pill:active {
  transform: scale(0.98);
  background-color: var(--accent-pink-hover);
}

.btn-primary-pill svg {
  width: 20px;
  height: 20px;
}

/* ========================================================
   TELA 4: MODAL NOVO ÁLBUM (BOTTOM SHEET HIG)
   ======================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.ios-bottom-sheet {
  width: 100%;
  max-width: 440px;
  background: var(--card-bg);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  padding: 18px 22px calc(24px + env(safe-area-inset-bottom, 16px)) 22px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sheet-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.sheet-btn-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--btn-circle-bg);
  border: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sheet-btn-close svg {
  width: 18px;
  height: 18px;
}

.sheet-header-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.sheet-body-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.album-cover-picker-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 6px;
}

.album-cover-preview {
  width: 90px;
  height: 90px;
  border-radius: 22px;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.album-cover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
  display: block;
}

.camera-badge-btn {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--text-primary);
  color: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.camera-badge-btn svg {
  width: 16px;
  height: 16px;
}

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

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

.sheet-input-text {
  width: 100%;
  height: 48px;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 0 14px;
  font-size: 15px;
  color: var(--text-primary);
  font-family: var(--font-family);
  outline: none;
}

.sheet-input-text:focus {
  border-color: var(--accent-pink);
}

.sheet-list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg-main);
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
}

.sheet-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}

.sheet-row-icon {
  width: 18px;
  height: 18px;
  color: var(--text-primary);
}

.sheet-row-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sheet-badge-priv {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ========================================================
   DOCK FLUTUANTE APPLE LIQUID GLASS (RODAPÉ)
   ======================================================== */
.ios-floating-dock {
  position: fixed;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 44px);
  max-width: 380px;
  height: 64px;
  background: var(--dock-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--dock-border);
  border-radius: 36px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 90;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.dock-item {
  background: none;
  border: none;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 16px;
  cursor: pointer;
  transition: color 0.18s ease, transform 0.15s ease;
  flex: 1;
}

.dock-item:active {
  transform: scale(0.92);
}

.dock-item svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.dock-item span {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: -0.1px;
}

.dock-item.active {
  color: var(--accent-pink);
}

/* Utilitários */
.hidden {
  display: none !important;
}

.ios-floating-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 400;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  animation: fadeInDown 0.25s ease;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ========================================================
   ESTILOS ADICIONAIS: CHECKLIST DE PLANOS, CÁPSULAS TRANCADAS & ACTION SHEET
   ======================================================== */

/* Badges de Cápsula Trancada / Liberada */
.badge-locked {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 45, 85, 0.08);
  color: var(--accent-pink);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  margin-top: 4px;
  align-self: flex-start;
}

.badge-locked svg {
  width: 12px;
  height: 12px;
}

.badge-unlocked {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(52, 199, 89, 0.12);
  color: #34c759;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  margin-top: 4px;
  align-self: flex-start;
}

/* Modal Detalhe do Plano (Checklist de Ideias) */
.plan-detail-hero-banner {
  position: relative;
  width: 100%;
  height: 140px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 16px;
}

.plan-detail-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.plan-detail-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.75) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px 16px;
  color: #ffffff;
}

.plan-detail-banner-overlay h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 2px;
}

.plan-detail-banner-overlay p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

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

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

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

.plan-checklist-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 14px;
  padding-right: 2px;
}

.checklist-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-main);
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.checklist-item-row:active {
  transform: scale(0.98);
}

.checkbox-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #c7c7cc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.checklist-item-row.done .checkbox-circle {
  background: var(--accent-pink);
  border-color: var(--accent-pink);
  color: #ffffff;
}

.checklist-item-row.done .checkbox-circle svg {
  width: 14px;
  height: 14px;
}

.checklist-item-text {
  font-size: 14px;
  color: var(--text-primary);
  flex: 1;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.checklist-item-row.done .checklist-item-text {
  color: var(--text-secondary);
  text-decoration: line-through;
}

.add-idea-input-box {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-circle-add {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-pink);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 45, 85, 0.3);
}

.btn-circle-add svg {
  width: 20px;
  height: 20px;
}

/* Modal Cápsula Trancada */
.locked-capsule-icon-glow {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 45, 85, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-pink);
  margin-bottom: 16px;
  animation: pulseGlow 2s infinite ease-in-out;
}

.locked-capsule-icon-glow svg {
  width: 36px;
  height: 36px;
}

@keyframes pulseGlow {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 45, 85, 0.2); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 12px rgba(255, 45, 85, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 45, 85, 0); }
}

.locked-modal-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.locked-modal-desc {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-secondary);
  max-width: 320px;
  margin-bottom: 20px;
}

.countdown-grid-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 320px;
}

.countdown-unit {
  background: var(--bg-main);
  padding: 10px 4px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.count-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.count-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Action Sheet iOS */
.action-sheet-group {
  background: var(--bg-main);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 12px;
}

.action-sheet-btn {
  width: 100%;
  padding: 16px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-pink);
  cursor: pointer;
}

.action-sheet-btn:last-child {
  border-bottom: none;
}

.action-sheet-btn svg {
  width: 18px;
  height: 18px;
}

.action-sheet-btn-cancel {
  width: 100%;
  padding: 16px;
  background: var(--bg-main);
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
}

/* ========================================================
   MODAIS CENTRALIZADOS (CARDZINHO NO MEIO) & CLIQUE FORA
   ======================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInBackdrop 0.2s ease;
}

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

.ios-center-card {
  width: 100%;
  max-width: 380px;
  background: var(--card-bg);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border-subtle);
  animation: popCenter 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@keyframes popCenter {
  0% { opacity: 0; transform: scale(0.92); }
  100% { opacity: 1; transform: scale(1); }
}

/* ========================================================
   CARD PRINCIPAL HERO: STORIES DE 3.5s & FILA DE 10 FOTOS
   ======================================================== */
.hero-memory-card {
  margin: 12px 20px 24px 20px;
  height: 380px;
  border-radius: var(--radius-hero);
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.14);
  background: #1c1c1e;
  user-select: none;
}

/* Barras de Progresso estilo Stories no topo do Card */
.story-progress-container {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  gap: 5px;
  z-index: 10;
}

.story-bar-segment {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 9999px;
  overflow: hidden;
}

.story-bar-fill {
  height: 100%;
  background: #ffffff;
  width: 0%;
  border-radius: 9999px;
}

.story-bar-fill.active {
  animation: storyProgress 3.5s linear forwards;
}

.story-bar-fill.done {
  width: 100%;
}

@keyframes storyProgress {
  from { width: 0%; }
  to { width: 100%; }
}

/* Botão Flutuante de Adicionar Foto (em forma de ícone na foto) */
.story-add-floating-btn {
  position: absolute;
  top: 30px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, background 0.15s ease;
}

.story-add-floating-btn:active {
  transform: scale(0.9);
  background: rgba(255, 45, 85, 0.8);
}

.story-add-floating-btn svg {
  width: 20px;
  height: 20px;
}

/* Áreas de Toque Invisíveis (Esquerda volta, Direita avança) */
.story-touch-left {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 45%;
  z-index: 8;
  cursor: pointer;
}

.story-touch-right {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 55%;
  z-index: 8;
  cursor: pointer;
}

/* ========================================================
   ÁLBUNS REFINADOS (ESTILO APPLE PHOTOS)
   ======================================================== */
.album-card-item {
  flex-shrink: 0;
  width: 155px;
  scroll-snap-align: start;
  cursor: pointer;
  position: relative;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.album-card-item:active {
  transform: scale(0.95);
}

.album-thumb-wrapper {
  position: relative;
  width: 155px;
  height: 125px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-light);
}

.album-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.album-badge-count {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.album-badge-count svg {
  width: 11px;
  height: 11px;
}

.album-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 8px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.album-card-count {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Card especial para criar novo álbum */
.album-card-item-add {
  flex-shrink: 0;
  width: 155px;
  height: 125px;
  border-radius: 22px;
  border: 2px dashed var(--accent-pink);
  background: var(--accent-pink-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--accent-pink);
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.18s ease;
}

.album-card-item-add:active {
  transform: scale(0.95);
}

.album-card-item-add svg {
  width: 26px;
  height: 26px;
}

.album-card-item-add span {
  font-size: 13px;
  font-weight: 700;
}


