/* ═══════════════════════════════════════════════════════════════
   Casey & Nicole Wedding — Elegant Marble Theme
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ─── Design Tokens ─── */
:root {
  --font-script: 'Great Vibes', cursive;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --black: #111111;
  --white: #ffffff;
  --gold: #b9955a;
  --gold-light: #d4b97a;
  --gold-dark: #9a7a42;
  --marble-1: #f8f6f3;
  --marble-2: #f0ece6;
  --marble-3: #e8e2da;
  --gray-100: #fafaf8;
  --gray-200: #f0eee9;
  --gray-300: #ddd9d1;
  --gray-400: #b8b3aa;
  --gray-500: #8a8580;
  --gray-600: #6b6660;
  --gray-700: #4a4540;
  --gray-800: #2d2a27;
  --danger: #c0392b;
  --success: #27ae60;
  --info: #2980b9;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-gold: 0 4px 20px rgba(185,149,90,0.2);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --sidebar-width: 260px;
  --topnav-height: 64px;
  --tab-bar-height: 72px;
  --glass-bg: rgba(255,255,255,0.72);
  --glass-blur: 20px;
  --glass-border: rgba(255,255,255,0.2);
  --gradient-gold: linear-gradient(135deg, #b9955a 0%, #d4b97a 50%, #c9a96a 100%);
}

/* ─── Dark Mode ─── */
[data-theme="dark"] {
  --white: #2a2a2a;
  --black: #e8e8e8;
  --marble-1: #1a1a1a;
  --marble-2: #1e1e1e;
  --marble-3: #222222;
  --gray-100: #262626;
  --gray-200: #333333;
  --gray-300: #444444;
  --gray-400: #888888;
  --gray-500: #999999;
  --gray-600: #aaaaaa;
  --gray-700: #cccccc;
  --gray-800: #e0e0e0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-gold: 0 4px 20px rgba(185,149,90,0.3);
  --glass-bg: rgba(30,30,30,0.8);
  --glass-border: rgba(255,255,255,0.08);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--black);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,246,243,0.7) 50%, rgba(240,236,230,0.5) 100%),
    radial-gradient(ellipse at 20% 50%, rgba(185,149,90,0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(200,190,175,0.06) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 80%, rgba(185,149,90,0.04) 0%, transparent 50%);
  background-color: var(--marble-1);
  min-height: 100vh;
}

a { color: var(--gold-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ─── Typography ─── */
.script { font-family: var(--font-script); }
.display { font-family: var(--font-display); }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 600; line-height: 1.3; }

/* ─── Utility ─── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--gold-dark);
  border: 1.5px solid var(--gold);
}
.btn-outline:hover { background: var(--gold); color: var(--white); }

.btn-dark {
  background: var(--black);
  color: var(--white);
}
.btn-dark:hover { background: var(--gray-800); }

.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger);
  padding: 6px 12px;
  font-size: 12px;
}
.btn-danger:hover { background: var(--danger); color: var(--white); }

.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 18px;
}

/* ─── Cards ─── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
}

.card-header h3 {
  font-size: 18px;
  font-weight: 600;
}

/* ─── Forms ─── */
.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: 15px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(185,149,90,0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8580' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ─── Tags ─── */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag-gold { background: rgba(185,149,90,0.15); color: var(--gold-dark); }
.tag-green { background: rgba(39,174,96,0.12); color: #1e8449; }
.tag-red { background: rgba(192,57,43,0.12); color: var(--danger); }
.tag-gray { background: var(--gray-200); color: var(--gray-600); }
.tag-blue { background: rgba(41,128,185,0.12); color: var(--info); }

/* ─── Toast ─── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--black);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 10000;
  pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ─── Modal ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 560px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9) translateY(20px);
  transition: transform var(--transition);
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); }

.modal h2 { margin-bottom: 20px; }

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* ═══════════════════════════════════════════════════════════════
   PUBLIC PAGES
   ═══════════════════════════════════════════════════════════════ */

/* ─── Public Top Nav ─── */
.public-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topnav-height);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 1000;
  transition: box-shadow var(--transition);
}
.public-nav.scrolled { box-shadow: var(--shadow-md); }

.public-nav .nav-brand {
  font-family: var(--font-script);
  font-size: 28px;
  color: var(--black);
}

.public-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.public-nav .nav-links a {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gray-600);
  position: relative;
  padding: 4px 0;
}
.public-nav .nav-links a:hover,
.public-nav .nav-links a.active { color: var(--black); }
.public-nav .nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width var(--transition);
}
.public-nav .nav-links a:hover::after,
.public-nav .nav-links a.active::after { width: 100%; }

.nav-login-btn {
  font-size: 12px !important;
  letter-spacing: 1.5px !important;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  margin: 5px 0;
  transition: all var(--transition);
}

/* ─── Public Hero ─── */
.public-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
  position: relative;
  overflow: hidden;
}

.public-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(185,149,90,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(185,149,90,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-overline {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 6px;
  color: var(--gold);
  margin-bottom: 16px;
  position: relative;
}

.hero-names {
  font-family: var(--font-script);
  font-size: clamp(48px, 10vw, 100px);
  color: var(--black);
  line-height: 1.1;
  margin-bottom: 12px;
  position: relative;
}

.hero-ampersand {
  display: block;
  font-size: 0.5em;
  color: var(--gold);
  margin: -8px 0;
}

.hero-date {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 4px;
  color: var(--gray-600);
  margin-top: 8px;
  position: relative;
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 24px auto;
  position: relative;
}

.hero-event-label {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  position: relative;
}

.hero-venue {
  font-size: 14px;
  color: var(--gray-500);
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
}

.hero-cta {
  margin-top: 40px;
  position: relative;
}

/* ─── Champagne decoration ─── */
.champagne-decoration {
  position: absolute;
  top: 60px;
  right: 10%;
  opacity: 0.06;
  font-size: 200px;
  pointer-events: none;
}

/* ─── Public Sections ─── */
.public-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-family: var(--font-script);
  font-size: 42px;
  color: var(--black);
  margin-bottom: 8px;
}

.section-title .subtitle {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gray-500);
}

.section-divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 8px auto 0;
}

/* ─── Love Story ─── */
.love-story-wrap {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.love-story-text {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.8;
  color: var(--gray-700);
  text-align: center;
  font-style: italic;
}

.love-story-edit-btn {
  position: absolute;
  top: -8px;
  right: -36px;
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 16px;
  color: var(--gold);
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  opacity: 0.5;
  line-height: 1;
}

.love-story-edit-btn:hover {
  opacity: 1;
  border-color: var(--gold);
  background: rgba(185,149,90,0.08);
}

/* ─── Event Details ─── */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.detail-card {
  text-align: center;
  padding: 32px 24px;
}

.detail-card .detail-icon {
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--gold);
}

.detail-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.detail-card p {
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.7;
}

.detail-card a {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* ─── RSVP Section ─── */
.rsvp-section { background: var(--gray-100); }

.rsvp-form {
  max-width: 500px;
  margin: 0 auto;
}

.rsvp-form .form-group label {
  color: var(--gray-700);
}

.rsvp-success {
  text-align: center;
  padding: 40px 20px;
}

.rsvp-success h3 {
  font-family: var(--font-script);
  font-size: 36px;
  margin-bottom: 12px;
}

.rsvp-success p {
  color: var(--gray-600);
}

.qr-container {
  text-align: center;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--gray-300);
}

.qr-container h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.qr-container svg {
  max-width: 180px;
  height: auto;
}

/* ─── Celebration Journey ─── */
.celebration-journey-section {
  max-width: 640px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.journey-cards {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.journey-event {
  width: 100%;
  max-width: 540px;
}

.journey-card {
  text-align: center;
  transition: all var(--transition);
}

.journey-active .journey-card {
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-gold);
  padding: 36px 32px;
}

.journey-active .journey-card:hover {
  box-shadow: 0 8px 36px rgba(185,149,90,0.28);
  transform: translateY(-3px);
}

.journey-upcoming .journey-card {
  border: 1.5px dashed var(--gray-300);
  padding: 24px 20px;
  background: rgba(255,255,255,0.7);
}

.journey-upcoming .journey-card:hover {
  border-color: var(--gray-400);
  box-shadow: var(--shadow-sm);
}

.journey-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.journey-icon {
  font-size: 40px;
  line-height: 1;
}

.journey-upcoming .journey-icon {
  font-size: 28px;
  opacity: 0.5;
  filter: grayscale(0.4);
}

.journey-event-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 4px;
}

.journey-upcoming .journey-event-name {
  font-size: 18px;
  color: var(--gray-500);
}

.journey-card-divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 12px auto;
}

.journey-upcoming .journey-card-divider {
  background: var(--gray-300);
}

.journey-event-details {
  margin-bottom: 24px;
}

.journey-detail {
  font-size: 15px;
  color: var(--gray-700);
  padding: 5px 0;
  letter-spacing: 0.2px;
}

.journey-detail-icon {
  margin-right: 6px;
}

.journey-tbd {
  font-size: 14px;
  color: var(--gray-400);
  font-style: italic;
  letter-spacing: 1px;
}

.journey-cta {
  margin-top: 8px;
  min-width: 180px;
}

.journey-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  color: var(--gold);
  font-size: 12px;
  opacity: 0.45;
  letter-spacing: 2px;
}

.journey-finale .journey-event-name {
  font-size: 20px;
}

/* ─── RSVP Event Header ─── */
.rsvp-event-header {
  text-align: center;
  margin-bottom: 32px;
  padding: 24px 20px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(185,149,90,0.04) 0%, rgba(185,149,90,0.08) 100%);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.rsvp-event-icon {
  font-size: 36px;
  margin-bottom: 8px;
  line-height: 1;
}

.rsvp-event-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

.rsvp-event-info {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ─── RSVP Event Tabs (Private) ─── */
.rsvp-event-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.rsvp-tab {
  padding: 8px 16px;
  border: 1px solid var(--gray-300);
  border-radius: 100px;
  background: var(--white);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--gray-600);
}

.rsvp-tab:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  background: rgba(185,149,90,0.04);
}

.rsvp-tab.active {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

/* ─── Footer ─── */
.public-footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid var(--gray-200);
  color: var(--gray-500);
  font-size: 13px;
}

.public-footer .footer-names {
  font-family: var(--font-script);
  font-size: 24px;
  color: var(--black);
  margin-bottom: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════════════════════════════════════ */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  text-align: center;
  padding: 48px 40px;
}

.login-card .login-title {
  font-family: var(--font-script);
  font-size: 42px;
  color: var(--black);
  margin-bottom: 4px;
}

.login-card .login-subtitle {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gray-500);
  margin-bottom: 32px;
}

.login-card .form-group { text-align: left; }

.login-error {
  color: var(--danger);
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}

/* ═══════════════════════════════════════════════════════════════
   PRIVATE / DASHBOARD LAYOUT
   ═══════════════════════════════════════════════════════════════ */

.private-layout {
  display: flex;
  min-height: 100vh;
}

/* ─── Sidebar ─── */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--black);
  color: var(--white);
  display: flex;
  flex-direction: column;
  z-index: 900;
  transition: transform var(--transition);
}

.sidebar-header {
  padding: 28px 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-header .brand {
  font-family: var(--font-script);
  font-size: 28px;
  color: var(--white);
}

.sidebar-header .brand-sub {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin-top: 2px;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 24px;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.04);
}

.sidebar-nav a.active {
  color: var(--white);
  background: rgba(185,149,90,0.12);
  border-left-color: var(--gold);
}

.sidebar-nav a .nav-icon {
  width: 20px;
  text-align: center;
  font-size: 16px;
  flex-shrink: 0;
}

.sidebar-nav .nav-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 8px 24px;
}

.save-indicator {
  padding: 8px 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  transition: color 0.4s ease;
}

.save-indicator.just-saved {
  color: var(--gold);
}

.save-indicator .save-icon {
  font-size: 12px;
  line-height: 1;
}

.sidebar-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.sidebar-user .user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  color: var(--white);
}

.sidebar-user .user-name {
  font-size: 14px;
  font-weight: 500;
}

.sidebar-logout {
  display: block;
  width: 100%;
  padding: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
}
.sidebar-logout:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

/* ─── Main Content ─── */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 32px;
  min-height: 100vh;
}

.page-header {
  margin-bottom: 28px;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 700;
}

.page-header .page-subtitle {
  font-size: 14px;
  color: var(--gray-500);
  margin-top: 4px;
}

/* ─── Private Section Panels ─── */
.private-section { display: none; }
.private-section.active { display: block; }

/* ─── Dashboard ─── */
.countdown-hero {
  text-align: center;
  padding: 40px 24px;
  margin-bottom: 28px;
  background: linear-gradient(135deg, var(--black) 0%, var(--gray-800) 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.countdown-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(185,149,90,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.countdown-hero .couple-name {
  font-family: var(--font-script);
  font-size: 48px;
  color: var(--white);
  position: relative;
}

.countdown-event-label {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
  margin-top: 8px;
  position: relative;
  opacity: 0.85;
}

.countdown-hero .wedding-date-text {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--gold);
  margin-top: 4px;
  position: relative;
}

.countdown-numbers {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 28px;
  position: relative;
}

.countdown-item {
  text-align: center;
}

.countdown-item .count-num {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.countdown-item .count-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.stat-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
}

.stat-card .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.stat-card .stat-icon.gold { background: rgba(185,149,90,0.12); color: var(--gold); }
.stat-card .stat-icon.green { background: rgba(39,174,96,0.12); color: var(--success); }
.stat-card .stat-icon.blue { background: rgba(41,128,185,0.12); color: var(--info); }
.stat-card .stat-icon.red { background: rgba(192,57,43,0.12); color: var(--danger); }

.stat-card .stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-500);
}

.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-top: 2px;
}

.stat-card .stat-detail {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  border-radius: var(--radius-md);
  background: var(--gray-100);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
}

.quick-link:hover {
  border-color: var(--gold);
  background: rgba(185,149,90,0.06);
  color: var(--gold-dark);
  transform: translateY(-2px);
}

.quick-link .ql-icon { font-size: 22px; }

/* ─── Budget Section ─── */
.budget-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.budget-controls .control-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.budget-controls label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-500);
  white-space: nowrap;
}

.budget-controls input,
.budget-controls select {
  padding: 6px 10px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--white);
}

.budget-controls input:focus,
.budget-controls select:focus {
  outline: none;
  border-color: var(--gold);
}

.budget-summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.summary-card {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--gray-200);
}

.summary-card .sc-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-500);
}

.summary-card .sc-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-top: 4px;
}

.budget-chart {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.donut-wrap {
  position: relative;
  flex-shrink: 0;
}

.donut {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  position: relative;
}

.donut-center {
  position: absolute;
  inset: 30px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.donut-center .donut-amount {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}

.donut-center small {
  font-size: 10px;
  color: var(--gray-500);
}

.legend { flex: 1; }

.legend-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 13px;
}

.legend-row .bar {
  height: 6px;
  background: var(--gray-200);
  border-radius: 3px;
  margin-top: 2px;
  overflow: hidden;
}

.legend-row .bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  font-style: normal;
}

.legend-row span {
  font-size: 12px;
  color: var(--gray-500);
  white-space: nowrap;
  margin-left: 12px;
}

/* Budget Table */
.budget-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
}

.budget-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.budget-table thead th {
  padding: 10px 12px;
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-500);
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  white-space: nowrap;
  position: sticky;
  top: 0;
}

.budget-table tbody td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: top;
}

.budget-table tbody tr:hover { background: rgba(185,149,90,0.03); }

.budget-table tbody tr.optional-row { opacity: 0.65; }
.budget-table tbody tr.excluded-row { opacity: 0.35; text-decoration: line-through; }

.budget-table input,
.budget-table textarea {
  width: 100%;
  padding: 4px 6px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: transparent;
  transition: border-color var(--transition);
}

.budget-table input:focus,
.budget-table textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}

.budget-table .item-input { min-width: 180px; font-weight: 500; }
.budget-table .cat-input { min-width: 100px; }
.budget-table .num-input { width: 80px; text-align: right; }
.budget-table .status-input { min-width: 110px; }
.budget-table .notes-input { min-width: 200px; min-height: 32px; resize: vertical; }

.budget-table .money-cell {
  font-family: var(--font-display);
  font-weight: 600;
  white-space: nowrap;
  text-align: right;
}

.budget-table .checkbox-cell {
  text-align: center;
}

.budget-table .checkbox-cell input[type="checkbox"] {
  width: auto;
  cursor: pointer;
}

.budget-table .delete-cell { text-align: center; }

.budget-table .delete-btn {
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  border-radius: 50%;
  transition: all var(--transition);
}
.budget-table .delete-btn:hover { color: var(--danger); background: rgba(192,57,43,0.08); }

.budget-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  align-items: center;
}

.budget-actions .spacer { flex: 1; }

/* ─── Checklist ─── */
.checklist-progress {
  margin-bottom: 24px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--gray-200);
}

.progress-bar-wrap {
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 4px;
  transition: width 0.5s ease;
}

.checklist-group-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-dark);
  margin: 24px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gray-200);
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
}

.checklist-item:hover { background: var(--gray-100); }

.checklist-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--gold);
}

.checklist-item.done .check-text {
  text-decoration: line-through;
  color: var(--gray-400);
}

.checklist-item .check-tag {
  margin-left: auto;
  flex-shrink: 0;
}

.add-checklist-row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.add-checklist-row input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.add-checklist-row select {
  padding: 8px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

/* ─── Vendor Cards ─── */
.vendor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.vendor-card h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.vendor-card .vendor-status {
  margin-bottom: 12px;
}

.vendor-card .vendor-contact {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 12px;
}

.vendor-card .vendor-contact div {
  padding: 2px 0;
}

.vendor-card .vendor-questions {
  list-style: none;
  padding: 0;
}

.vendor-card .vendor-questions li {
  padding: 4px 0 4px 16px;
  font-size: 13px;
  color: var(--gray-600);
  position: relative;
}

.vendor-card .vendor-questions li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.vendor-card .vendor-notes {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-200);
  font-size: 13px;
  color: var(--gray-600);
}

/* ─── Guest List ─── */
.guest-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.guest-stat {
  text-align: center;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--gray-200);
}

.guest-stat .gs-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
}

.guest-stat .gs-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-500);
  margin-top: 2px;
}

.guest-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
}

.guest-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.guest-table thead th {
  padding: 10px 12px;
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-500);
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}

.guest-table tbody td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--gray-100);
}

.guest-table tbody tr:hover { background: rgba(185,149,90,0.03); }

.guest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

/* ─── Timeline ─── */
.timeline-event-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.timeline-list {
  position: relative;
  padding-left: 40px;
}

.timeline-list::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}

.timeline-item {
  position: relative;
  padding: 12px 0 24px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
}

.timeline-item .tl-time {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-dark);
  white-space: nowrap;
  min-width: 80px;
}

.timeline-item .tl-event {
  font-weight: 600;
  font-size: 16px;
  flex: 1;
}

.timeline-item .tl-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity var(--transition);
}

.timeline-item:hover .tl-actions {
  opacity: 1;
}

.tl-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--gray-400);
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  line-height: 1;
}

.tl-action-btn:hover {
  color: var(--gold-dark);
  background: rgba(185,149,90,0.08);
}

.tl-action-btn.tl-delete:hover {
  color: var(--danger);
  background: rgba(192,57,43,0.08);
}

.timeline-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--gray-400);
  font-size: 15px;
  font-style: italic;
}

.milestones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.milestone-card { padding: 20px; }

.milestone-card .ms-label {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.milestone-card .ms-date {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 12px;
}

.milestone-card ul {
  list-style: none;
  padding: 0;
}

.milestone-card ul li {
  padding: 3px 0;
  font-size: 13px;
  color: var(--gray-600);
  padding-left: 16px;
  position: relative;
}

.milestone-card ul li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.milestone-card.past { opacity: 0.5; }
.milestone-card.current { border-color: var(--gold); box-shadow: var(--shadow-gold); }

/* ─── Notes ─── */
.notes-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
}

.notes-sidebar {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
}

.notes-sidebar .ns-header {
  padding: 12px 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-500);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notes-sidebar .note-item {
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition);
  font-size: 14px;
}

.notes-sidebar .note-item:hover { background: var(--gray-100); }
.notes-sidebar .note-item.active { background: rgba(185,149,90,0.08); border-left: 3px solid var(--gold); }

.note-editor {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  padding: 20px;
}

.note-editor .ne-title {
  font-size: 20px;
  font-weight: 600;
  border: none;
  width: 100%;
  margin-bottom: 12px;
  padding: 4px 0;
  border-bottom: 1px solid var(--gray-200);
}
.note-editor .ne-title:focus { outline: none; border-bottom-color: var(--gold); }

.note-editor .ne-body {
  width: 100%;
  min-height: 400px;
  border: none;
  resize: vertical;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
}
.note-editor .ne-body:focus { outline: none; }

/* ─── Contract Watch-Outs ─── */
.contract-section .contract-note {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 24px;
  padding: 16px;
  border-left: 3px solid var(--gold);
  background: rgba(185,149,90,0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.sources-list {
  list-style: none;
  padding: 0;
  margin-top: 24px;
}

.sources-list li {
  padding: 8px 0 8px 20px;
  font-size: 13px;
  color: var(--gray-600);
  position: relative;
}

.sources-list li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ─── RSVP Management (Private) ─── */
.rsvp-entries { margin-top: 20px; }

.rsvp-entry {
  padding: 16px;
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  background: var(--white);
}

.rsvp-entry .re-name {
  font-weight: 600;
  font-size: 16px;
}

.rsvp-entry .re-details {
  font-size: 13px;
  color: var(--gray-600);
  margin-top: 4px;
}

.rsvp-entry .re-message {
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-style: italic;
  color: var(--gray-700);
}

/* ─── Settings ─── */
.settings-user-card {
  display: flex;
  align-items: center;
}

.settings-user-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.settings-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  color: var(--white);
  flex-shrink: 0;
}

.settings-display-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}

.settings-role {
  font-size: 13px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 2px;
}

.settings-password-card {
  max-width: 480px;
}

.settings-form .form-group:last-of-type {
  margin-bottom: 24px;
}

.settings-msg {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
}

.settings-msg-error {
  background: rgba(192,57,43,0.08);
  color: var(--danger);
  border: 1px solid rgba(192,57,43,0.2);
}

.settings-msg-success {
  background: rgba(39,174,96,0.08);
  color: var(--success);
  border: 1px solid rgba(39,174,96,0.2);
}

/* ─── Invitation Builder ─── */
.inv-event-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.inv-tab {
  padding: 8px 16px;
  border: 1px solid var(--gray-300);
  border-radius: 100px;
  background: var(--white);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--gray-600);
}

.inv-tab:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  background: rgba(185,149,90,0.04);
}

.inv-tab.active {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.inv-builder {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 28px;
  align-items: start;
}

.inv-editor {
  position: sticky;
  top: 20px;
}

.inv-editor .card-header { margin-bottom: 12px; }

.inv-preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.inv-preview-card {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 5 / 7;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.inv-marble-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, #f5f2ef 0%, #eae5df 25%, #f0ece7 50%, #e8e3dc 75%, #f3f0ec 100%);
  z-index: 0;
}

.inv-marble-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(200,195,188,0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 60%, rgba(190,185,175,0.2) 0%, transparent 45%),
    radial-gradient(ellipse at 40% 80%, rgba(210,205,198,0.15) 0%, transparent 40%),
    radial-gradient(ellipse at 85% 15%, rgba(195,190,182,0.18) 0%, transparent 35%);
}

.inv-marble-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(45deg, transparent 48%, rgba(220,215,208,0.12) 50%, transparent 52%),
    linear-gradient(135deg, transparent 45%, rgba(200,195,188,0.08) 50%, transparent 55%),
    linear-gradient(60deg, transparent 47%, rgba(215,210,203,0.06) 50%, transparent 53%);
}

.inv-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 32px;
}

.inv-border-top,
.inv-border-bottom {
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.inv-border-top { margin-bottom: auto; }
.inv-border-bottom { margin-top: auto; }

.inv-headline {
  font-family: var(--font-body);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.inv-ornament {
  font-size: 10px;
  letter-spacing: 8px;
  color: var(--gold);
  margin-bottom: 12px;
}

.inv-couple-names {
  font-family: var(--font-script);
  font-size: clamp(36px, 5vw, 52px);
  color: var(--black);
  line-height: 1.2;
  margin-bottom: 6px;
}

.inv-message-line {
  font-family: var(--font-display);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.inv-divider {
  width: 50px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 20px;
}

.inv-event-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.inv-detail-row {
  font-family: var(--font-body);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.inv-detail-row.inv-dress {
  color: var(--gold-dark);
  font-size: 12px;
  margin-top: 4px;
}

.inv-qr-wrap {
  margin: 18px 0 12px;
}

.inv-qr-wrap svg {
  max-width: 100px;
  height: auto;
}

.inv-qr-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gray-500);
  margin-top: 4px;
}

.inv-rsvp-line {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 8px;
}

/* ─── Invitation Photo Upload ─── */
.inv-photo-upload {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inv-photo-dropzone {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inv-photo-dropzone:hover {
  border-color: var(--gold);
  background: rgba(185,149,90,0.04);
}

.inv-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--gray-500);
  font-size: 13px;
}

.inv-photo-icon {
  font-size: 24px;
  margin-bottom: 2px;
}

.inv-photo-hint {
  font-size: 11px;
  color: var(--gray-400);
}

.inv-photo-preview img {
  max-width: 100%;
  max-height: 120px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.inv-photo-remove {
  align-self: flex-start;
}

/* ─── Invitation Preview Photo ─── */
.inv-photo-frame {
  width: 55%;
  max-width: 260px;
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.inv-photo-frame img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 200px;
}

.inv-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

/* ─── Page Header Flex ─── */
.page-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

.sidebar-toggle {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 950;
  background: var(--black);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 20px;
}

@media (max-width: 768px) {
  input, select, textarea { font-size: 16px !important; }

  .hamburger, .sidebar-toggle { display: none !important; }
  .sidebar { display: none !important; pointer-events: none; }
  .sidebar-nav a { min-height: 44px; }

  .modal-overlay.active { align-items: flex-end; }
  .modal {
    width: 100%;
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .page-header-flex { flex-direction: column; align-items: flex-start; gap: 12px; }

  .btn { min-height: 44px; }

  .countdown-numbers { gap: 16px; }
  .countdown-item .count-num { font-size: 32px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .quick-links { grid-template-columns: repeat(3, 1fr); }

  .budget-chart { flex-direction: column; align-items: center; }
  .budget-controls { flex-direction: column; align-items: stretch; }
  .budget-controls .control-group { width: 100%; }
  .budget-controls input,
  .budget-controls select { width: 100% !important; }
  .budget-summary-cards { grid-template-columns: repeat(2, 1fr); }

  .guest-table { font-size: 12px; }
  .guest-summary { grid-template-columns: repeat(3, 1fr); }

  .vendor-grid { grid-template-columns: 1fr; }

  .add-checklist-row { flex-direction: column; }
  .add-checklist-row input,
  .add-checklist-row select { width: 100%; }

  .notes-layout { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .details-grid { grid-template-columns: 1fr; }

  .celebration-journey-section { padding-left: 16px; padding-right: 16px; }
  .journey-active .journey-card { padding: 28px 20px; }
  .journey-icon { font-size: 32px; }

  .rsvp-event-tabs,
  .timeline-event-tabs,
  .inv-event-tabs { gap: 6px; }
  .rsvp-tab,
  .inv-tab { padding: 8px 14px; font-size: 12px; min-height: 44px; display: inline-flex; align-items: center; }

  .inv-builder { grid-template-columns: 1fr; }
  .inv-editor { position: static; }
  .inv-preview-card { max-width: 100%; }
  .inv-actions { width: 100%; justify-content: center; }

  .timeline-item .tl-actions { opacity: 1; }
  .milestones-grid { grid-template-columns: 1fr; }

  .love-story-edit-btn {
    position: static;
    display: block;
    margin: 12px auto 0;
  }
}

@media (max-width: 480px) {
  .hero-names { font-size: 48px; }
  .countdown-item .count-num { font-size: 28px; }
  .countdown-hero .couple-name { font-size: 36px; }
  .countdown-event-label { font-size: 13px; letter-spacing: 2px; }
  .public-section { padding: 60px 16px; }
  .login-card { padding: 32px 24px; }
  .budget-summary-cards { grid-template-columns: 1fr; }
  .guest-summary { grid-template-columns: repeat(2, 1fr); }
  .quick-links { grid-template-columns: repeat(2, 1fr); }
  .section-title h2 { font-size: 36px; }
  .inv-couple-names { font-size: 32px; }
}

/* ─── Animations ─── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes countPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes sparkle {
  0%, 100% { box-shadow: var(--shadow-gold); }
  50% { box-shadow: 0 0 30px rgba(185,149,90,0.4), 0 0 60px rgba(185,149,90,0.15); }
}

@keyframes bounceCheck {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.fade-in { animation: fadeIn 0.5s ease forwards; }

.animate-in { opacity: 0; transform: translateY(30px); }
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.animate-in.visible:nth-child(2) { transition-delay: 0.08s; }
.animate-in.visible:nth-child(3) { transition-delay: 0.16s; }
.animate-in.visible:nth-child(4) { transition-delay: 0.24s; }
.animate-in.visible:nth-child(5) { transition-delay: 0.32s; }
.animate-in.visible:nth-child(6) { transition-delay: 0.40s; }
.animate-in.visible:nth-child(7) { transition-delay: 0.48s; }
.animate-in.visible:nth-child(8) { transition-delay: 0.56s; }

.section-enter { animation: slideUp 0.4s ease forwards; }
.countdown-item .count-num { animation: countPulse 2s ease-in-out infinite; }
.journey-active .journey-card { animation: sparkle 3s ease-in-out infinite; }
.checklist-item input[type="checkbox"]:checked { animation: bounceCheck 0.3s ease; }

/* ─── Overlay for mobile sidebar ─── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 899;
}
.sidebar-overlay.active { display: block; }

/* ─── Mobile Tab Bar ─── */
.mobile-tab-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--tab-bar-height);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-top: 1px solid var(--glass-border);
  z-index: 1000;
  justify-content: space-around;
  align-items: center;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
  min-width: 56px;
  color: var(--gray-500);
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.tab-item.active { color: var(--gold); }
.tab-item:active { transform: scale(0.92); }
.tab-icon { font-size: 24px; line-height: 1; }
.tab-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── More Menu ─── */
.more-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1100;
}
.more-menu-overlay.active { display: block; }

.more-menu-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: 20px 20px 0 0;
  padding: 12px 20px calc(20px + env(safe-area-inset-bottom, 0));
  box-shadow: var(--shadow-lg);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  z-index: 1101;
  max-height: 70vh;
  overflow-y: auto;
}
.more-menu-overlay.active .more-menu-sheet { transform: translateY(0); }

.more-menu-handle {
  width: 36px;
  height: 4px;
  background: var(--gray-300);
  border-radius: 2px;
  margin: 0 auto 16px;
}
.more-menu-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
  color: var(--black);
}
.more-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.more-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 8px;
  border-radius: 16px;
  background: var(--gray-100);
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-700);
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.more-menu-item:active { transform: scale(0.95); background: var(--gray-200); }
.more-menu-icon { font-size: 28px; line-height: 1; }
.more-menu-divider { height: 1px; background: var(--gray-200); margin: 12px 0; }
.more-menu-logout {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--danger);
  background: transparent;
  color: var(--danger);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}
.more-menu-logout:active { background: var(--danger); color: #ffffff; }

/* ─── FAB ─── */
.fab {
  position: fixed;
  bottom: calc(var(--tab-bar-height) + 20px);
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--gradient-gold);
  color: #ffffff;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.fab:active { transform: scale(0.92); }

/* ─── Progress Ring ─── */
.progress-ring-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.progress-ring { transform: rotate(-90deg); }
.progress-ring-bg { fill: none; stroke: var(--gray-200); stroke-width: 6; }
.progress-ring-fill {
  fill: none;
  stroke: var(--gold);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease;
}
.progress-ring-text {
  position: absolute;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
}

/* ─── Gradient Button Override ─── */
.btn-primary { background: var(--gradient-gold); }

/* ─── Dark Mode Toggle ─── */
.dark-mode-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.dark-mode-toggle-label { font-size: 15px; font-weight: 500; }
.dark-mode-toggle-desc { font-size: 13px; color: var(--gray-500); margin-top: 2px; }
.toggle-switch { position: relative; width: 52px; height: 28px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--gray-300);
  border-radius: 28px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}
.toggle-switch input:checked + .toggle-slider { background: var(--gold); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(24px); }

/* ─── Mobile Budget Cards ─── */
.budget-mobile-cards { display: none; }
.budget-mobile-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  transition: all var(--transition);
}
.budget-mobile-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.budget-mobile-card-name { font-weight: 600; font-size: 15px; }
.budget-mobile-card-amount {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-dark);
}
.budget-mobile-card-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--gray-500);
  flex-wrap: wrap;
}
.budget-mobile-card-paid { font-size: 13px; color: var(--success); margin-top: 8px; }

/* ─── Mobile Guest Cards ─── */
.guest-mobile-cards { display: none; }
.guest-mobile-search {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 8px 0 16px;
  background: var(--marble-1);
}
.guest-mobile-search input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  font-size: 16px;
  background: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238a8580' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
}
.guest-mobile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  margin-bottom: 8px;
  transition: all var(--transition);
  cursor: pointer;
}
.guest-mobile-card:active { transform: scale(0.98); background: var(--gray-100); }
.guest-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #ffffff;
  flex-shrink: 0;
}
.guest-mobile-info { flex: 1; min-width: 0; }
.guest-mobile-name {
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.guest-mobile-email {
  font-size: 12px;
  color: var(--gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.guest-rsvp-badge {
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.guest-rsvp-badge.attending { background: rgba(39,174,96,0.12); color: #1e8449; }
.guest-rsvp-badge.declined { background: rgba(192,57,43,0.12); color: var(--danger); }
.guest-rsvp-badge.pending { background: var(--gray-200); color: var(--gray-600); }

/* ─── Checklist Progress Ring ─── */
.checklist-progress-ring-wrap { display: none; text-align: center; margin-bottom: 12px; }

/* ─── Theme Transition ─── */
body.theme-transitioning,
body.theme-transitioning *,
body.theme-transitioning *::before,
body.theme-transitioning *::after {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* ─── Dark Mode Overrides ─── */
[data-theme="dark"] body {
  background: #1a1a1a;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(185,149,90,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(185,149,90,0.03) 0%, transparent 40%);
}
[data-theme="dark"] .public-nav { background: rgba(26,26,26,0.92); }
[data-theme="dark"] .public-hero::before {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(185,149,90,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(185,149,90,0.06) 0%, transparent 50%);
}
[data-theme="dark"] .sidebar { background: #111111; color: #ffffff; }
[data-theme="dark"] .sidebar-header .brand { color: #ffffff; }
[data-theme="dark"] .sidebar-header .brand-sub { color: var(--gold); }
[data-theme="dark"] .sidebar-header { border-bottom-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .sidebar-nav a { color: rgba(255,255,255,0.5); }
[data-theme="dark"] .sidebar-nav a:hover { color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.04); }
[data-theme="dark"] .sidebar-nav a.active { color: #ffffff; background: rgba(185,149,90,0.12); border-left-color: var(--gold); }
[data-theme="dark"] .sidebar-nav .nav-divider { background: rgba(255,255,255,0.06); }
[data-theme="dark"] .sidebar-footer { border-top-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .sidebar-user .user-avatar { color: #ffffff; }
[data-theme="dark"] .sidebar-user .user-name { color: #ffffff; }
[data-theme="dark"] .save-indicator { color: rgba(255,255,255,0.3); }
[data-theme="dark"] .save-indicator.just-saved { color: var(--gold); }
[data-theme="dark"] .sidebar-logout { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); }
[data-theme="dark"] .sidebar-logout:hover { background: rgba(255,255,255,0.1); color: #ffffff; }
[data-theme="dark"] .countdown-hero { background: linear-gradient(135deg, #1a1a1a 0%, #222222 100%); color: #ffffff; }
[data-theme="dark"] .countdown-hero .couple-name { color: #ffffff; }
[data-theme="dark"] .countdown-event-label { color: #ffffff; }
[data-theme="dark"] .countdown-item .count-label { color: rgba(255,255,255,0.5); }
[data-theme="dark"] .toast { background: #e8e8e8; color: #1a1a1a; }
[data-theme="dark"] .btn-dark { background: #e8e8e8; color: #1a1a1a; }
[data-theme="dark"] .btn-primary { color: #ffffff; }
[data-theme="dark"] .btn-outline:hover { color: #ffffff; }
[data-theme="dark"] .btn-danger:hover { color: #ffffff; }
[data-theme="dark"] .rsvp-tab.active { color: #ffffff; }
[data-theme="dark"] .inv-tab.active { color: #ffffff; }
[data-theme="dark"] .settings-avatar { color: #ffffff; }
[data-theme="dark"] .rsvp-section { background: var(--gray-100); }
[data-theme="dark"] .hamburger span { background: var(--black); }
[data-theme="dark"] .journey-upcoming .journey-card { background: rgba(42,42,42,0.7); }
[data-theme="dark"] .login-card { box-shadow: var(--shadow-lg); }
[data-theme="dark"] .guest-mobile-search { background: #1a1a1a; }
[data-theme="dark"] .mobile-tab-bar { background: rgba(26,26,26,0.88); border-top-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .more-menu-sheet { background: #2a2a2a; }
[data-theme="dark"] .toggle-slider::before { background: #ffffff; }
[data-theme="dark"] .countdown-hero::before {
  background: radial-gradient(ellipse at 50% 0%, rgba(185,149,90,0.2) 0%, transparent 60%);
}

/* ─── Enhanced Mobile ─── */
@media (max-width: 768px) {
  input, select, textarea { font-size: 16px !important; }
  .mobile-tab-bar { display: flex; }
  .sidebar-toggle { display: none !important; }
  .sidebar-overlay { display: none !important; }
  .sidebar { display: none !important; pointer-events: none; }
  .main-content { margin-left: 0 !important; padding: 20px 16px calc(var(--tab-bar-height) + 20px) !important; }
  .fab { display: flex; }
  .toast { bottom: calc(var(--tab-bar-height) + 12px); right: 16px; left: 16px; text-align: center; }
  .checklist-progress-ring-wrap { display: block; }
  .progress-bar-wrap { display: none; }
  .budget-table-wrap { display: none; }
  .budget-mobile-cards { display: block; }
  .guest-table-wrap { display: none; }
  .guest-mobile-cards { display: block; }
  .card { border-radius: 20px; }
  .stat-card { border-radius: 20px; }
  .summary-card { border-radius: 14px; }
  .guest-stat { border-radius: 14px; }

  /* Public nav: show compact inline links, hide hamburger */
  .hamburger { display: none !important; }
  .public-nav { padding: 0 12px; }
  .public-nav .nav-brand { font-size: 20px; }
  .public-nav .nav-links {
    display: flex !important;
    gap: 6px;
    align-items: center;
  }
  .public-nav .nav-links li { list-style: none; }
  .public-nav .nav-links a {
    font-size: 10px;
    letter-spacing: 1px;
    padding: 4px 2px;
    min-height: auto;
  }
  .public-nav .nav-links a::after { display: none; }
  .public-nav .nav-links .nav-login-btn.btn {
    padding: 5px 10px !important;
    font-size: 10px !important;
    min-height: 28px !important;
    letter-spacing: 1px !important;
    border-width: 1px;
  }

  .sidebar-nav a { min-height: 44px; }
  .modal-overlay.active { align-items: flex-end; }
  .modal { width: 100%; max-width: 100%; max-height: 90vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .page-header-flex { flex-direction: column; align-items: flex-start; gap: 12px; }
  .btn { min-height: 44px; }
  .countdown-numbers { gap: 16px; }
  .countdown-item .count-num { font-size: 32px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .quick-links { grid-template-columns: repeat(3, 1fr); }
  .budget-chart { flex-direction: column; align-items: center; }
  .budget-controls { flex-direction: column; align-items: stretch; }
  .budget-controls .control-group { width: 100%; }
  .budget-controls input, .budget-controls select { width: 100% !important; }
  .budget-summary-cards { grid-template-columns: repeat(2, 1fr); }
  .guest-summary { grid-template-columns: repeat(3, 1fr); }
  .vendor-grid { grid-template-columns: 1fr; }
  .add-checklist-row { flex-direction: column; }
  .add-checklist-row input, .add-checklist-row select { width: 100%; }
  .notes-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .details-grid { grid-template-columns: 1fr; }
  .celebration-journey-section { padding-left: 16px; padding-right: 16px; }
  .journey-active .journey-card { padding: 28px 20px; }
  .journey-icon { font-size: 32px; }
  .rsvp-event-tabs, .timeline-event-tabs, .inv-event-tabs { gap: 6px; }
  .rsvp-tab, .inv-tab { padding: 8px 14px; font-size: 12px; min-height: 44px; display: inline-flex; align-items: center; }
  .inv-builder { grid-template-columns: 1fr; }
  .inv-editor { position: static; }
  .inv-preview-card { max-width: 100%; }
  .inv-actions { width: 100%; justify-content: center; }
  .timeline-item .tl-actions { opacity: 1; }
  .milestones-grid { grid-template-columns: 1fr; }
  .love-story-edit-btn { position: static; display: block; margin: 12px auto 0; }
}

@media (max-width: 480px) {
  .hero-names { font-size: 48px; }
  .countdown-item .count-num { font-size: 28px; }
  .countdown-hero .couple-name { font-size: 36px; }
  .countdown-event-label { font-size: 13px; letter-spacing: 2px; }
  .public-section { padding: 60px 16px; }
  .login-card { padding: 32px 24px; }
  .budget-summary-cards { grid-template-columns: 1fr; }
  .guest-summary { grid-template-columns: repeat(2, 1fr); }
  .quick-links { grid-template-columns: repeat(2, 1fr); }
  .section-title h2 { font-size: 36px; }
  .inv-couple-names { font-size: 32px; }
}

/* ─── Print ─── */
@media print {
  .sidebar, .sidebar-toggle, .public-nav, .btn, .toast, .mobile-tab-bar, .fab, .more-menu-overlay { display: none !important; }
  .main-content { margin-left: 0; }
  .card { break-inside: avoid; }
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
