/* ==========================================================================
   DASHBOARD STYLES & WEDDING COUNTDOWN (REDESIGNED SAAS DASHBOARD)
   ========================================================================== */

/* ==========================================================================
   ROMANTIC AMBIENT BACKGROUND ANIMATION (CANVAS PETALS & AURORA MESH)
   ========================================================================== */
.dashboard-ambient-wrap {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 25; /* Float softly across dashboard viewport without blocking clicks */
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.6s ease;
}

/* Option B: Smooth Aurora Mesh Gradient Orbs (Background ambient lighting) */
.dashboard-aurora-glow {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
  filter: blur(80px);
  -webkit-filter: blur(80px);
  opacity: 0.75;
}

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.aurora-orb-1 {
  width: 52vw;
  height: 52vw;
  max-width: 680px;
  max-height: 680px;
  top: -12%;
  right: -8%;
  background: radial-gradient(circle, #FFE4E6 0%, rgba(254, 243, 199, 0.6) 50%, transparent 72%);
  animation: auroraFloat1 24s ease-in-out infinite alternate;
}

.aurora-orb-2 {
  width: 48vw;
  height: 48vw;
  max-width: 580px;
  max-height: 580px;
  bottom: 0%;
  left: -8%;
  background: radial-gradient(circle, #FEF3C7 0%, rgba(255, 237, 213, 0.65) 50%, transparent 72%);
  animation: auroraFloat2 28s ease-in-out infinite alternate;
}

.aurora-orb-3 {
  width: 38vw;
  height: 38vw;
  max-width: 480px;
  max-height: 480px;
  top: 32%;
  left: 28%;
  background: radial-gradient(circle, rgba(254, 205, 211, 0.6) 0%, rgba(254, 243, 199, 0.45) 50%, transparent 72%);
  animation: auroraFloat3 32s ease-in-out infinite alternate;
}

@keyframes auroraFloat1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-8%, 10%) scale(1.1); }
  100% { transform: translate(-14%, 4%) scale(0.96); }
}

@keyframes auroraFloat2 {
  0% { transform: translate(0, 0) scale(0.96); }
  50% { transform: translate(10%, -8%) scale(1.08); }
  100% { transform: translate(5%, -16%) scale(1.02); }
}

@keyframes auroraFloat3 {
  0% { transform: translate(0, 0) scale(1.04); }
  50% { transform: translate(-8%, -6%) scale(0.94); }
  100% { transform: translate(6%, 8%) scale(1.12); }
}

/* Option A: Canvas Floating Petals & Gold Bokeh */
.dashboard-ambient-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Ensure foreground sections sit safely above ambient backdrop */
#tab-dashboard {
  position: relative;
  z-index: 1;
}

.dashboard-hero,
.stats-grid,
.dashboard-layout {
  position: relative;
  z-index: 2;
}

/* Hero Banner & Countdown */
.dashboard-hero {
  background: linear-gradient(135deg, rgba(123, 17, 19, 0.94), rgba(198, 90, 62, 0.9)), 
              url('https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1600&q=80') center/cover;
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.5rem 2.25rem;
  color: white;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(123, 17, 19, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.dashboard-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

/* Single Unified Edit Button on Hero (Top-Right) */
.hero-edit-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 600;
  padding: 0.42rem 0.95rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
  z-index: 5;
  font-family: var(--font-sans);
}
.hero-edit-btn:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: translateY(-1.5px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.couple-title {
  text-align: center;
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 2;
}

/* Dual Personalized Avatars & Invite Partner Slot */
.hero-couple-avatar-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.hero-avatar {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2.5px solid rgba(255, 255, 255, 0.95);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: all var(--transition-fast);
}

.hero-avatar:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Distinct Dashed Invite Partner Button */
.hero-invite-partner-btn {
  background: rgba(255, 255, 255, 0.16) !important;
  border: 2px dashed rgba(255, 255, 255, 0.9) !important;
  cursor: pointer;
  padding: 0 14px;
  width: auto;
  min-width: 48px;
  height: 48px;
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all var(--transition-fast);
}

.hero-invite-partner-btn .invite-icon {
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 700;
  color: #FFF;
  transition: transform var(--transition-fast);
}

.hero-invite-partner-btn .invite-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  line-height: 1;
  white-space: nowrap;
}

.hero-invite-partner-btn:hover {
  background: rgba(255, 255, 255, 0.32) !important;
  border-color: #FFFFFF !important;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.hero-invite-partner-btn:hover .invite-icon {
  transform: scale(1.2) rotate(90deg);
}

.hero-ring-badge {
  display: inline-block;
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
  animation: romanticHeartbeat 1.8s ease-in-out infinite;
  transform-origin: center center;
  will-change: transform, filter;
}

@keyframes romanticHeartbeat {
  0% { transform: scale(1); filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25)); }
  14% { transform: scale(1.18); filter: drop-shadow(0 0 12px rgba(244, 63, 94, 0.85)); }
  28% { transform: scale(1); filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25)); }
  42% { transform: scale(1.12); filter: drop-shadow(0 0 8px rgba(244, 63, 94, 0.65)); }
  70% { transform: scale(1); }
  100% { transform: scale(1); }
}

.couple-title h2 {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 700;
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.25;
}

.couple-title .ampersand {
  color: var(--primary-gold);
  font-weight: 400;
  margin: 0 0.5rem;
}

.hero-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.65rem;
  flex-wrap: wrap;
}

.hero-meta-pill {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Countdown Ticker */
.countdown-container {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.countdown-box {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem;
  min-width: 96px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-bounce);
}

.countdown-box:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.25);
}

.countdown-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1;
  margin-bottom: 0.25rem;
  display: inline-block;
  font-variant-numeric: tabular-nums;
  -webkit-font-feature-settings: "tnum";
  font-feature-settings: "tnum";
  letter-spacing: -0.01em;
  min-width: 1.5ch;
  text-align: center;
  will-change: transform;
}

@keyframes digitTickSlide {
  0% {
    transform: translateY(-2px) scale(1.03);
    opacity: 0.94;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.countdown-number.tick-animate {
  animation: digitTickSlide 0.22s cubic-bezier(0.25, 1, 0.5, 1);
}

.countdown-label {
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* Quick KPI Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.35rem 1.5rem;
  position: relative;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.22s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.22s ease;
  cursor: pointer;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  border-color: rgba(212, 175, 55, 0.4);
}

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

.stat-icon.gold {
  background: var(--primary-gold-light);
  color: #B8972E;
}

.stat-icon.rose {
  background: var(--rose-gold-light);
  color: var(--rose-gold-dark);
}

.stat-icon.green {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.stat-info {
  flex: 1;
  min-width: 0;
}

/* Align stat header row and status badges on baseline */
.stat-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  line-height: 1;
}

.stat-info .label {
  font-size: 13.5px;
  color: #475569;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  display: flex;
  align-items: center;
}

.stat-info .value {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: #1E293B;
  margin-top: 0.35rem;
  letter-spacing: -0.01em;
}

.stat-info .sub-value {
  font-size: 12.5px;
  color: #64748B;
  margin-top: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Stat Card Empty State & High-Affordance Action Pill Button */
.stat-empty-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.stat-empty-title {
  font-size: 13px;
  color: #64748B;
  font-weight: 500;
}

.stat-pill-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: #FFFDF8;
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: #927218;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 1px 3px rgba(212, 175, 55, 0.12);
  line-height: 1.3;
}

.stat-pill-cta-btn:hover {
  background: linear-gradient(135deg, #FAF0D7, #FDF6E2);
  border-color: #B8972E;
  color: #785A0F;
  transform: translateY(-1.5px);
  box-shadow: 0 3px 8px rgba(184, 151, 46, 0.2);
}

.stat-pill-cta-btn:active {
  transform: translateY(0);
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  background: #F1F5F9;
  color: #475569;
}
.stat-badge.badge-unconfigured {
  background: #FFF7ED;
  color: #C2410C;
  border: 1px solid rgba(234, 88, 12, 0.2);
}
.stat-badge.badge-neutral {
  background: #F1F5F9;
  color: #64748B;
  border: 1px solid rgba(100, 116, 139, 0.15);
}
.stat-badge.done {
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid rgba(22, 101, 52, 0.15);
}
.stat-badge.rsvp {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid rgba(37, 99, 235, 0.18);
}

/* Progress bar inside card */
.mini-progress {
  height: 6px;
  background: var(--border-subtle);
  border-radius: var(--radius-full);
  margin-top: 0.6rem;
  overflow: hidden;
}

.mini-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--rose-gold), var(--primary-gold));
  border-radius: var(--radius-full);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dashboard 2-column layout with balanced height alignment */
.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr);
  gap: 1.5rem;
  align-items: stretch;
  min-width: 0;
  width: 100%;
}

.dashboard-layout > .card:first-child {
  height: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.dashboard-layout > .card:first-child .task-mini-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.75rem;
}

.dashboard-layout > div:last-child {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.dashboard-layout > div:last-child > .card:last-child {
  margin-bottom: 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.section-header h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #1E293B;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}

/* Urgent Tasks widget */
.task-mini-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.task-mini-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.85rem 1.1rem;
  background: var(--bg-surface-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--rose-gold);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.task-mini-item:hover {
  background: #FFF;
  border-color: var(--primary-gold);
  box-shadow: var(--shadow-sm);
  transform: translateX(2px);
}

.task-mini-item.completed {
  opacity: 0.5;
  background: var(--bg-surface-alt);
  transform: scale(0.99);
}

.task-mini-item.completed .task-mini-title {
  color: #64748B;
}

.task-mini-item.completed .task-mini-title::after {
  width: 100%;
}

.task-mini-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
  min-width: 0;
}

/* Tactile Circular Checkbox Button: border-2 border-slate-300, cursor-pointer, hover:border-rose-400 hover:bg-rose-50 */
.task-circle-check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #CBD5E1; /* border-2 border-slate-300 */
  background: #FFFFFF;
  color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.task-circle-check:hover {
  border-color: #FB7185; /* hover:border-rose-400 */
  background: #FFF1F2; /* hover:bg-rose-50 */
  color: #E11D48;
  transform: scale(1.12);
  box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.18);
}

@keyframes checkSpring {
  0% { transform: scale(0.6); }
  45% { transform: scale(1.3); }
  75% { transform: scale(0.92); }
  100% { transform: scale(1); }
}

.task-circle-check.checked {
  animation: checkSpring 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: #16A34A !important;
  border-color: #16A34A !important;
  color: #FFFFFF !important;
  transform: scale(1);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.25);
}

.task-mini-meta {
  flex: 1;
  min-width: 0;
}

.task-mini-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: #1E293B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  display: inline-block;
  transition: color 0.35s ease;
}

.task-mini-title::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1.5px;
  background: #64748B;
  transition: width 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.task-mini-sub {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  flex-wrap: wrap;
}

/* Romantic Sparks / Confetti Particle Animation Fallback */
@keyframes romanticSparkBurst {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(0.5) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(1.35) rotate(var(--rot));
  }
}

.romantic-spark-particle {
  position: fixed;
  pointer-events: none;
  font-size: 14px;
  line-height: 1;
  z-index: 10000;
  animation: romanticSparkBurst 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}

/* Tiered Urgency & Priority Badges */
.urgent-deadline-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
}
.urgent-deadline-badge.overdue {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid rgba(220, 38, 38, 0.25);
}
.urgent-deadline-badge.today {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid rgba(180, 83, 9, 0.25);
  font-weight: 700;
}
/* Task 1: subtle red/amber badge */
.urgent-deadline-badge.high-priority {
  background: #FFF1F2;
  color: #BE123C;
  border: 1px solid rgba(244, 63, 94, 0.3);
}
/* Task 2: neutral amber badge */
.urgent-deadline-badge.this-week {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid rgba(217, 119, 6, 0.28);
}
/* Task 3: soft slate badge */
.urgent-deadline-badge.this-month {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
}
.urgent-deadline-badge.soon {
  background: #F8FAFC;
  color: #64748B;
  border: 1px solid #E2E8F0;
}

/* Quick Add Inline Form */
.urgent-quick-add-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.urgent-quick-add-form input {
  flex: 1;
  font-size: 13px;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-full);
}
.urgent-quick-add-form button {
  padding: 0.5rem 0.95rem;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

/* ==========================================================================
   ELEVATED QUICK ACTIONS & 3D INVITATION CARD WIDGET (WARM IVORY / BLUSH THEME)
   ========================================================================== */

/* Active 3D Invitation Widget Card (Warm Ivory / Blush Theme with Balanced Vertical Spacing) */
.invitation-widget-card {
  background: linear-gradient(145deg, #FFFDFB 0%, #FFF8F3 60%, #FEF3EC 100%);
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  padding: 1.15rem 1.25rem 1.2rem;
  color: #1E293B;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 24px rgba(184, 151, 46, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
}

.invitation-widget-card::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -15%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(224, 122, 95, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.invitation-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
  line-height: 1;
}

.invitation-widget-badge {
  background: #FFFBEB;
  border: 1px solid #F59E0B;
  color: #B45309;
  font-size: 11px;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.15);
}

/* Embedded Smartphone Mockup Style Preview Box */
.invitation-widget-preview {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 14px;
  padding: 1rem 1rem;
  margin-bottom: 0;
  text-align: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.invitation-widget-preview::before {
  content: "";
  display: block;
  width: 36px;
  height: 3.5px;
  background: #CBD5E1;
  border-radius: 4px;
  margin: 0 auto 0.45rem;
}

.invitation-widget-names {
  font-family: var(--font-heading);
  font-size: 16.5px;
  font-weight: 700;
  color: #7B1113;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.25;
}

.invitation-widget-sub {
  font-size: 11.5px;
  color: #64748B;
  margin-top: 0.25rem;
  line-height: 1.35;
}

.invitation-widget-actions {
  display: flex;
  gap: 0.65rem;
  position: relative;
  z-index: 2;
  margin-top: 0;
  flex-wrap: wrap;
}

.invitation-widget-actions .btn {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  padding: 0.55rem 0.8rem;
  white-space: nowrap;
}

.invitation-widget-actions .btn-outline {
  color: #7B1113 !important;
  border-color: rgba(123, 17, 19, 0.35) !important;
  background: #FFFFFF !important;
}

.invitation-widget-actions .btn-outline:hover {
  background: #FFF1F2 !important;
  border-color: #7B1113 !important;
}

/* Quick Actions High-Affordance Grid with Category Soft Tint Backgrounds */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.15rem 0.85rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: relative;
}

/* Category Tint 1: Thêm việc mới (Neutral / Blue-Gray Tint) */
.quick-action-btn#quick-add-task-btn {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
}
.quick-action-btn#quick-add-task-btn:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(100, 116, 139, 0.16);
}

/* Category Tint 2: Ghi khoản chi (Amber / Gold Tint) */
.quick-action-btn#quick-add-expense-btn {
  background: #FFFDF7;
  border: 1px solid rgba(212, 175, 55, 0.35);
}
.quick-action-btn#quick-add-expense-btn:hover {
  background: #FEF9EB;
  border-color: #B8972E;
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(184, 151, 46, 0.18);
}

/* Category Tint 3: Thêm khách (Teal / Violet Tint) */
.quick-action-btn#quick-add-guest-btn {
  background: #F0FDFA;
  border: 1px solid rgba(20, 184, 166, 0.28);
}
.quick-action-btn#quick-add-guest-btn:hover {
  background: #CCFBF1;
  border-color: #0D9488;
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.18);
}

/* Category Tint 4: Ghép đôi (Pink / Rose Tint) */
.quick-action-btn#quick-add-couple-btn,
.quick-action-btn:nth-child(4) {
  background: #FFF1F2;
  border: 1px solid rgba(244, 63, 94, 0.25);
}
.quick-action-btn#quick-add-couple-btn:hover,
.quick-action-btn:nth-child(4):hover {
  background: #FFE4E6;
  border-color: #E11D48;
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.18);
}

.quick-action-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  margin-bottom: 0.55rem;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

.quick-action-btn:hover .quick-action-icon {
  transform: scale(1.15) rotate(-3deg);
}

.quick-action-icon.task {
  background: #E2E8F0;
  color: #334155;
}

.quick-action-icon.expense {
  background: #FEF3C7;
  color: #B45309;
}

.quick-action-icon.guest {
  background: #99F6E4;
  color: #0F766E;
}

.quick-action-icon.couple {
  background: #FECDD3;
  color: #BE123C;
}

.quick-action-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #1E293B;
}

.quick-action-desc {
  font-size: 11.5px;
  color: #64748B;
  margin-top: 0.18rem;
}

/* Page Load Entrance (Staggered Reveal) */
@keyframes fadeInUpStagger {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-hero {
  animation: fadeInUpStagger 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0ms;
}

.reveal-metrics {
  animation: fadeInUpStagger 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 100ms;
}

.reveal-dashboard-main {
  animation: fadeInUpStagger 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 200ms;
}

@media (max-width: 992px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .dashboard-layout > .card:first-child,
  .dashboard-layout > div:last-child {
    height: auto;
  }
  .couple-title h2 {
    font-size: 2rem;
  }
  .hero-edit-btn {
    top: 1rem;
    right: 1rem;
  }
}

/* Accessibility: Respect Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-ring-badge {
    animation: none !important;
  }
  .countdown-number.tick-animate {
    animation: none !important;
  }
  .task-circle-check.checked {
    animation: none !important;
  }
  .reveal-hero, .reveal-metrics, .reveal-dashboard-main {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .aurora-orb {
    animation: none !important;
    transform: none !important;
  }
  .dashboard-ambient-wrap {
    opacity: 0.45 !important;
  }
  .skeleton-shimmer {
    animation: none !important;
  }
}

/* ==========================================================================
   PERFORMANCE & PERCEIVED LOAD: PULSE SHIMMER SKELETON SCREENS
   Matches exact geometry of Hero Countdown, 3 Metric Cards, and Urgent Tasks
   Prevents Cumulative Layout Shift (CLS = 0)
   ========================================================================== */
.skeleton-shimmer {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 25%, rgba(255, 255, 255, 0.22) 50%, rgba(255, 255, 255, 0.08) 75%);
  background-size: 200% 100%;
  animation: skeletonPulseShimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
  display: inline-block;
  pointer-events: none;
}

.skeleton-shimmer-light {
  background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
  background-size: 200% 100%;
  animation: skeletonPulseShimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
  display: inline-block;
  pointer-events: none;
}

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

/* 1. Hero Countdown Skeleton Geometry */
.hero-skeleton-title {
  width: 280px;
  height: 38px;
  max-width: 80%;
  border-radius: var(--radius-md);
  margin: 0 auto 0.65rem;
}

.hero-skeleton-pill {
  width: 220px;
  height: 24px;
  border-radius: var(--radius-full);
  margin: 0 auto 1.5rem;
}

.countdown-box.is-skeleton {
  min-height: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.countdown-skeleton-number {
  width: 44px;
  height: 36px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
}

.countdown-skeleton-label {
  width: 32px;
  height: 14px;
  border-radius: 4px;
}

/* 2. Metric Cards Skeleton Geometry */
.metric-skeleton-header {
  width: 90px;
  height: 16px;
  border-radius: 4px;
}

.metric-skeleton-badge {
  width: 42px;
  height: 18px;
  border-radius: var(--radius-full);
}

.metric-skeleton-val {
  width: 140px;
  height: 26px;
  margin: 8px 0 6px;
  border-radius: 6px;
}

.metric-skeleton-sub {
  width: 180px;
  height: 14px;
  border-radius: 4px;
}

.metric-skeleton-bar {
  width: 100%;
  height: 6px;
  margin-top: 10px;
  border-radius: var(--radius-full);
}

/* 3. Urgent Task Items Skeleton Geometry */
.task-skeleton-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: #F8FAFC;
  border: 1px solid #EDF2F7;
}

.task-skeleton-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
}

.task-skeleton-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.task-skeleton-title {
  width: 65%;
  height: 16px;
  border-radius: 4px;
}

.task-skeleton-sub {
  width: 38%;
  height: 12px;
  border-radius: 4px;
}


