@charset "UTF-8";

/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */
:root {
  /* Colors - "Radiant Blush" Palette */
  --bg-primary: #FFF7F8;
  --bg-secondary: #FFF1F2;
  --bg-card: #FFFFFF;
  --rose-50: #FFF1F2;
  --rose-100: #FFE4E6;
  --rose-200: #FECDD3;
  --rose-300: #FDA4AF;
  --rose-400: #FB7185;
  --rose-500: #F43F5E;
  --rose-600: #E11D48;
  --champagne: #F7E7CE;
  --gold: #D4A574;
  --gold-dark: #C9956B;
  --lavender: #E8DEF8;
  --lavender-dark: #D0BCFF;
  --sage: #D1E7DD;
  --sage-dark: #A3CFBB;
  --peach: #FFDAB9;
  
  --text-primary: #1C1917;
  --text-secondary: #57534E;
  --text-muted: #A8A29E;
  --text-light: #D6D3D1;
  
  --border: #F5F0EE;
  --border-strong: #E7E0DD;
  --danger: #EF4444;
  --danger-light: #FEE2E2;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(28, 25, 23, 0.04);
  --shadow-md: 0 4px 12px rgba(28, 25, 23, 0.06);
  --shadow-lg: 0 8px 24px rgba(28, 25, 23, 0.08);
  --shadow-xl: 0 12px 32px rgba(28, 25, 23, 0.1);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-accent: 'Cormorant Garamond', Georgia, serif;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: none; /* Prevent iOS rubber band */
  user-select: none; /* App-like feel */
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary);
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: 16px; /* Prevent iOS zoom */
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes floatHeart {
  0% { opacity: 0; transform: translateY(0) scale(0.8) rotate(0deg); }
  50% { opacity: 1; transform: translateY(-50px) scale(1.1) rotate(15deg); }
  100% { opacity: 0; transform: translateY(-100px) scale(1) rotate(-10deg); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(244, 63, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes confetti {
  0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

@keyframes dotFill {
  0% { transform: scale(1); background-color: var(--border-strong); }
  50% { transform: scale(1.2); background-color: var(--rose-500); }
  100% { transform: scale(1); background-color: var(--rose-500); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  50% { transform: translateX(10px); }
  75% { transform: translateX(-10px); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes ripple {
  0% { transform: scale(0); opacity: 0.5; }
  100% { transform: scale(4); opacity: 0; }
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */
#app {
  width: 100%;
  max-width: 428px; /* Mobile first, capped width for desktop */
  margin: 0 auto;
  height: 100vh;
  height: 100dvh;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-primary);
  box-shadow: var(--shadow-xl);
}

.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
  background-color: var(--bg-primary);
  z-index: 10;
}

.screen.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  z-index: 20;
}

/* Header Spacer for scrolling under sticky headers */
.screen-header-spacer {
  height: 16px;
}

.content-body {
  padding: 1rem 1.25rem;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   PIN SCREEN
   ========================================================================== */
#pin-screen {
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.pin-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-lg);
  max-width: 340px;
  margin: 0 auto;
}

.pin-logo-glow {
  position: absolute;
  top: 2rem;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--rose-200) 0%, transparent 70%);
  opacity: 0.5;
  filter: blur(20px);
  z-index: -1;
  animation: pulse 4s infinite;
}

.pin-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.pin-title {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
  color: var(--rose-600);
}

.pin-subtitle {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.pin-dots {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  height: 24px;
  align-items: center;
}

.pin-dots.shake {
  animation: shake 0.4s ease-in-out;
}

.pin-dot {
  width: 14px;
  height: 14px;
  border-radius: var(--radius-full);
  background-color: var(--border-strong);
  transition: background-color 0.2s;
}

.pin-dot.filled {
  animation: dotFill 0.3s forwards;
}

.pin-error {
  color: var(--danger);
  font-size: 0.85rem;
  height: 1rem;
  margin-bottom: 2rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.pin-error.show {
  opacity: 1;
}

.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 1.5rem;
  width: 100%;
}

.pin-key {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: var(--radius-full);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border);
  transition: transform 0.1s, background-color 0.15s;
  /* Ensure min tap target */
  min-width: 44px;
  min-height: 44px;
}

.pin-key:active {
  transform: scale(0.92);
  background: var(--rose-100);
}

.pin-key-empty {
  background: transparent;
  border: none;
  pointer-events: none;
}

.pin-key-delete {
  background: transparent;
  border: none;
  color: var(--text-secondary);
}
.pin-key-delete:active {
  background: var(--bg-secondary);
}

/* ==========================================================================
   HOME SCREEN
   ========================================================================== */
.home-header {
  position: relative;
  padding: calc(3rem + env(safe-area-inset-top)) 1.5rem 3rem;
  background: linear-gradient(135deg, var(--rose-50) 0%, var(--bg-card) 100%);
  background-size: 200% 200%;
  animation: gradientShift 10s ease infinite;
  border-bottom: 1px solid var(--border);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  box-shadow: var(--shadow-sm);
  text-align: center;
  overflow: hidden;
}

.hearts-container {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.heart {
  position: absolute;
  font-size: 1.2rem;
  color: var(--rose-200);
  opacity: 0;
  animation: floatHeart 4s ease-in forwards;
}

.home-header-content {
  position: relative;
  z-index: 2;
}

.home-logo {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  display: inline-block;
  cursor: pointer;
  transition: transform 0.3s;
}

.home-logo:active {
  transform: scale(0.9);
}

.home-title {
  font-size: 2.25rem;
  color: var(--rose-600);
  margin-bottom: 0.25rem;
}

.home-date-range {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.75rem;
  border-radius: var(--radius-md);
  min-width: 65px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.countdown-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--rose-500);
  line-height: 1;
}

.countdown-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  letter-spacing: 0.05em;
}

.home-body {
  padding: 1.5rem 1.25rem;
}

.quote-card {
  position: relative;
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  text-align: center;
  border: 1px solid var(--border);
}

.quote-mark {
  position: absolute;
  top: -10px;
  left: 15px;
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--rose-100);
  line-height: 1;
  z-index: 0;
}

.quote-text {
  font-family: var(--font-accent);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

.weather-widget {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  scrollbar-width: none; /* Firefox */
}
.weather-widget::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.weather-card {
  flex: 0 0 auto;
  background: var(--bg-card);
  padding: 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  min-width: 100px;
  text-align: center;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.weather-card .day {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.weather-card .icon {
  font-size: 1.75rem;
  margin: 0.25rem 0;
}
.weather-card .temp {
  font-weight: 600;
  color: var(--text-primary);
}

.section-heading {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.day-pills {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  margin-bottom: 0.5rem;
  scrollbar-width: none;
}
.day-pills::-webkit-scrollbar {
  display: none;
}

.day-pill {
  flex: 0 0 auto;
  padding: 0.6rem 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.2s;
  min-height: 44px; /* Tap target */
  display: flex;
  align-items: center;
}

.day-pill.active {
  background: var(--rose-500);
  color: white;
  border-color: var(--rose-500);
  box-shadow: 0 4px 10px rgba(244, 63, 94, 0.3);
}

.day-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.day-overview-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: fadeIn 0.4s ease forwards;
}

.day-overview-card:active {
  transform: scale(0.98);
}

.day-overview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.day-overview-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-primary);
}

.day-overview-date {
  font-size: 0.85rem;
  color: var(--rose-500);
  font-weight: 500;
  background: var(--rose-50);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.day-overview-preview {
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   COMMON HEADER STYLES
   ========================================================================== */
.screen-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(1rem + env(safe-area-inset-top)) 1.25rem 1rem;
  background: rgba(255, 255, 248, 0.85); /* Matches bg-primary */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.screen-title {
  font-size: 1.25rem;
  margin: 0;
  flex: 1;
  text-align: center;
}

.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  color: var(--text-primary);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: background-color 0.2s;
}

.back-btn:active {
  background: var(--bg-secondary);
}

/* ==========================================================================
   DAY VIEW SCREEN
   ========================================================================== */
.day-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: calc(1.5rem + env(safe-area-inset-top)) 1.25rem 1.5rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.day-header-top {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.day-header-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-left: 1rem;
  color: var(--text-primary);
}

.day-header-date {
  font-size: 1rem;
  color: var(--rose-500);
  font-weight: 500;
  margin-left: 4.25rem; /* align with title taking back btn into account */
}

.day-body {
  padding: 1.5rem 1.25rem;
}

.day-activities {
  position: relative;
  padding-left: 1.5rem;
}

/* Timeline vertical line */
.day-activities::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 5px;
  width: 2px;
  background: var(--border-strong);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.4s ease forwards;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* Timeline dot */
.timeline-item::before {
  content: '';
  position: absolute;
  top: 16px;
  left: -1.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--rose-400);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 1px var(--rose-200);
  z-index: 2;
}

.activity-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.activity-time {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.activity-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.activity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.category-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
}

/* Category Colors */
.category-pill[data-category="sightseeing"] { background: var(--rose-100); color: var(--rose-600); }
.category-pill[data-category="food"] { background: var(--champagne); color: var(--gold-dark); }
.category-pill[data-category="relaxation"] { background: var(--lavender); color: var(--lavender-dark); }
.category-pill[data-category="adventure"] { background: #E0F2FE; color: #0369A1; } /* Blue */
.category-pill[data-category="shopping"] { background: var(--peach); color: #C2410C; } /* Orange */
.category-pill[data-category="travel"] { background: var(--sage); color: #15803D; } /* Green */
.category-pill[data-category="other"] { background: #F3F4F6; color: var(--text-secondary); }

.activity-location {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.activity-location svg {
  margin-right: 0.25rem;
}

.activity-notes {
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  white-space: pre-wrap;
}

.activity-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

.action-btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  min-height: 44px;
}
.action-btn.edit {
  color: var(--rose-600);
  background: var(--rose-50);
}
.action-btn.delete {
  color: var(--danger);
  background: var(--danger-light);
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}
.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* ==========================================================================
   HOTELS SCREEN
   ========================================================================== */
.hotels-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hotel-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  animation: fadeIn 0.4s ease forwards;
}

.hotel-image-placeholder {
  height: 140px;
  background: linear-gradient(45deg, var(--champagne), var(--rose-100));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.hotel-content {
  padding: 1.25rem;
}

.hotel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.hotel-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.hotel-location-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.hotel-dates {
  display: inline-block;
  background: var(--rose-50);
  color: var(--rose-600);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hotel-details {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.hotel-detail-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}
.hotel-detail-row:last-child {
  margin-bottom: 0;
}
.hotel-detail-icon {
  color: var(--rose-400);
  margin-right: 0.75rem;
  margin-top: 0.1rem;
}
.hotel-detail-text {
  color: var(--text-secondary);
  flex: 1;
}
.hotel-detail-label {
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.1rem;
}

.hotel-edit-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  color: var(--rose-500);
  transition: background 0.2s;
  flex-shrink: 0;
}
.hotel-edit-btn:active {
  background: var(--rose-100);
}

.hotel-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

/* Hotel card padding (JS renders flat, no image-placeholder/content wrapper) */
.hotel-card {
  padding: 1.25rem;
}

.hotel-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hotel-detail-item {
  background: var(--bg-secondary);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  text-align: center;
}

.detail-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: block;
  margin-bottom: 0.25rem;
}

.detail-value {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.hotel-info-section {
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

.hotel-notes-box {
  background: var(--bg-secondary);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  white-space: pre-wrap;
}

/* ==========================================================================
   GUESTS SCREEN
   ========================================================================== */
.guests-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.guest-group {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  animation: fadeIn 0.4s ease forwards;
}

.guest-group-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.guest-group-icon {
  font-size: 1.75rem;
}
.guest-group-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-primary);
}

.guest-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.guest-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.guest-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--rose-100);
  color: var(--rose-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
}
.guest-name {
  font-weight: 500;
  color: var(--text-primary);
}
.guest-relation {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.guest-day-grid {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.guest-day-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text-muted);
}
.guest-day-badge.present {
  background: var(--rose-50);
  color: var(--rose-600);
  font-weight: 600;
}

/* ==========================================================================
   SETTINGS SCREEN
   ========================================================================== */
.settings-group {
  margin-bottom: 2rem;
}
.settings-group-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

.settings-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.settings-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  min-height: 56px;
}
.settings-item:last-child {
  border-bottom: none;
}

.settings-label {
  font-weight: 500;
  color: var(--text-primary);
}
.settings-value {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.settings-btn {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}
.settings-btn.danger {
  color: var(--danger);
}
.settings-btn:active {
  background: var(--bg-secondary);
}

/* ==========================================================================
   SECRET PROPOSAL SCREEN
   ========================================================================== */
.secret-pin-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--bg-primary);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}

.secret-content {
  height: 100%;
  overflow-y: auto;
}

.secret-body {
  padding-bottom: 4rem;
}

.secret-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--rose-200);
  position: relative;
  overflow: hidden;
}

.secret-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 4px; height: 100%;
  background: var(--rose-400);
}

.secret-section-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--rose-600);
  margin-bottom: 1rem;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.checklist-item input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--rose-500);
}
.checklist-item label {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.4;
}

.secret-textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  font-family: var(--font-accent);
  font-size: 1.1rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  resize: vertical;
  min-height: 100px;
}
.secret-textarea:focus {
  outline: none;
  border-color: var(--rose-400);
  background: var(--bg-card);
}

.confetti-container {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 100;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: var(--rose-500);
  animation: confetti 3s ease-in forwards;
}

/* ==========================================================================
   MODALS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(28, 25, 23, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: flex-end; /* Mobile bottom sheet style */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active,
.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-card);
  width: 100%;
  max-height: 90vh;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: var(--shadow-xl);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1);
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .modal-content,
.modal-overlay.show .modal-content {
  transform: translateY(0);
}

.modal-content-sm {
  margin: auto 1rem;
  border-radius: var(--radius-lg);
  width: calc(100% - 2rem);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1), opacity 0.3s;
}

#confirm-modal {
  align-items: center;
  justify-content: center;
}

#confirm-modal.show .modal-content-sm,
#confirm-modal.active .modal-content-sm {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text-primary);
}

.modal-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  color: var(--text-secondary);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: 60vh;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  background: var(--bg-card);
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
}

.confirm-message {
  color: var(--text-secondary);
  font-size: 0.95rem;
  text-align: center;
  padding: 0.5rem 0;
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
.form-group {
  margin-bottom: 1.25rem;
}
.form-row {
  display: flex;
  gap: 1rem;
}
.form-group-half {
  flex: 1;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--rose-400);
  box-shadow: 0 0 0 3px var(--rose-100);
  background: var(--bg-card);
}

.form-textarea {
  resize: vertical;
}

/* Category Picker */
.category-picker {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}
.category-picker::-webkit-scrollbar { display: none; }

.category-chip {
  flex: 0 0 auto;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  min-height: 44px;
}
.category-chip.active {
  background: var(--rose-50);
  border-color: var(--rose-400);
  color: var(--rose-600);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  min-height: 48px;
  transition: transform 0.1s, opacity 0.2s;
  flex: 1;
}
.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--rose-400), var(--rose-600));
  color: white;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn-danger {
  background: var(--danger-light);
  color: var(--danger);
}

/* ==========================================================================
   FAB & NAVIGATION
   ========================================================================== */
.fab {
  position: fixed;
  bottom: calc(28px + env(safe-area-inset-bottom));
  right: 1.5rem;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--rose-400), var(--rose-600));
  color: white;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.4);
  z-index: 40;
  transition: transform 0.2s;
  animation: pulse 2s infinite;
}
#day-screen.active .fab,
.screen.active ~ .fab {
  /* FAB shows via JS, this is a fallback */
}
.fab:active {
  transform: scale(0.9);
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  padding: 0.75rem 0 calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 1px solid var(--border);
  z-index: 50;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 60px;
  min-height: 48px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-item.active {
  color: var(--rose-600);
}

.nav-icon {
  margin-bottom: 0.2rem;
  transition: transform 0.2s;
}
.nav-item.active .nav-icon {
  transform: translateY(-2px);
}

.nav-label {
  font-size: 0.7rem;
  font-weight: 500;
}

/* ==========================================================================
   UTILITIES & COMPONENTS
   ========================================================================== */
.toast {
  position: fixed;
  bottom: calc(100px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text-primary);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1), opacity 0.3s;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast-icon {
  color: var(--sage);
}

.sync-indicator {
  position: fixed;
  top: calc(1rem + env(safe-area-inset-top));
  right: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 100;
  backdrop-filter: blur(4px);
  border: 1px solid var(--border);
}
.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.sync-dot.synced { background: #10B981; } /* Green */
.sync-dot.syncing { background: #F59E0B; animation: pulse 1s infinite; } /* Amber */
.sync-dot.offline { background: var(--danger); }

.loading-skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--border) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: var(--radius-sm);
  color: transparent !important;
}
.loading-skeleton * {
  visibility: hidden;
}

.phase-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-left: 0.5rem;
}
.phase-badge.just-us,
.phase-badge.couple {
  background: var(--rose-50);
  color: var(--rose-600);
}
.phase-badge.family {
  background: var(--lavender);
  color: #7C3AED;
}

.location-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  background: var(--bg-secondary);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

/* Day Header Badges */
.day-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.day-title-wrapper {
  flex: 1;
  text-align: center;
}

.day-date-sub {
  font-size: 0.85rem;
  color: var(--rose-500);
  font-weight: 500;
  font-family: var(--font-body);
}

/* Activity Card Header */
.activity-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

/* Edit Activity Button */
.edit-activity-btn {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  color: var(--rose-600);
  background: var(--rose-50);
  border: 1px solid var(--rose-200);
  min-height: 36px;
  transition: background 0.2s;
}
.edit-activity-btn:active {
  background: var(--rose-100);
}

/* Secret Delete Checklist */
.secret-del-check {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: color 0.2s;
}
.secret-del-check:active {
  color: var(--danger);
}

.completed-text {
  text-decoration: line-through;
  opacity: 0.5;
}

/* Day Overview Card sub-elements */
.day-location, .day-hotel {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.day-activities-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.day-date, .day-overview-card .day-date {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Weather sub-elements */
.weather-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}
.weather-scroll::-webkit-scrollbar { display: none; }

.weather-day {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.weather-icon {
  font-size: 1.75rem;
  margin: 0.25rem 0;
}
.weather-temp {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}
.weather-rain {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Empty State */
.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Pin Container Shake (for secret PIN) */
.pin-container.shake {
  animation: shake 0.4s ease-in-out;
}

/* Quote text transition */
.quote-text {
  transition: opacity 0.5s ease;
}

/* ========================================================================
   UTILITY CLASSES
   ======================================================================== */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.5rem; }
.ml-2 { margin-left: 0.5rem; }
.text-center { text-align: center; }
.text-sm { font-size: 0.85rem; color: var(--text-secondary); }
.text-xl { font-size: 1.25rem; }
.font-serif { font-family: var(--font-accent); font-style: italic; }
.p-3 { padding: 0.75rem; }
.flex { display: flex; gap: 0.5rem; align-items: center; }
