:root {
  --bg-deep: #180308;
  --bg-crimson: #380612;
  --bg-rose-dark: #590d22;
  --rose-primary: #c9184a;
  --rose-bright: #ff4d6d;
  --rose-soft: #ff758f;
  --rose-blush: #ffb3c1;
  --rose-cream: #fff0f3;
  --gold-accent: #ffd166;
  --card-glass: rgba(89, 13, 34, 0.58);
  --card-glass-strong: rgba(65, 9, 25, 0.84);
  --card-border: rgba(255, 179, 193, 0.24);
  --card-border-bright: rgba(255, 77, 109, 0.55);
  --text-main: #fff0f3;
  --text-muted: #ffccd5;
  --text-soft: rgba(255, 240, 243, 0.72);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-romantic: 0 18px 40px rgba(15, 0, 5, 0.55), 0 0 25px rgba(255, 77, 109, 0.14);
}

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

html, body {
  min-height: 100%;
  background-color: #2b040c;
  color: var(--text-main);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Guaranteed crimson backdrop behind iOS Status Bar / Dynamic Island */
body::before {
  content: '';
  position: fixed;
  top: -120px;
  left: 0;
  right: 0;
  height: calc(120px + env(safe-area-inset-top, 0px));
  background: #2b040c;
  z-index: 45;
  pointer-events: none;
}

/* Floating Rose Petals & Hearts Background */
.petals-container {
  position: fixed;
  top: -60px;
  left: 0;
  right: 0;
  bottom: -60px;
  background: radial-gradient(circle at 50% 0%, #6e0d25 0%, #2b040c 55%, #140206 100%);
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-petal {
  position: absolute;
  top: -40px;
  user-select: none;
  opacity: 0.35;
  animation: fallAndSway linear infinite;
  filter: drop-shadow(0 2px 6px rgba(255, 77, 109, 0.3));
}

@keyframes fallAndSway {
  0% {
    transform: translateY(-5vh) translateX(0) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 0.42;
  }
  85% {
    opacity: 0.42;
  }
  100% {
    transform: translateY(105vh) translateX(35px) rotate(360deg);
    opacity: 0;
  }
}

/* Main iPhone App Container */
.iphone-shell {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 0;
  padding-bottom: max(36px, env(safe-area-inset-bottom));
}

/* Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) 20px 16px;
  background: rgba(43, 4, 12, 0.92);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(255, 179, 193, 0.18);
  position: sticky;
  top: 0;
  z-index: 35;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.couple-avatars {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.avatar-ring {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--rose-blush);
  background: linear-gradient(135deg, #800f2f, #c9184a);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 17px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.avatar-ring.receiver-avatar {
  margin-left: -10px;
  border-color: #ff4d6d;
}

.avatar-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.couple-heart-connector {
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  font-size: 12px;
  z-index: 2;
  animation: heartbeat 1.8s infinite ease-in-out;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.6));
}

@keyframes heartbeat {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.26); }
}

.header-titles {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.valentine-eyebrow {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--rose-blush);
}

.eyebrow-dot {
  color: rgba(255, 179, 193, 0.5);
  font-size: 10px;
}

.streak-inline {
  font-size: 10.5px;
  font-weight: 600;
  color: #ffe5ec;
}

.app-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--rose-cream);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.profile-trigger-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 240, 243, 0.1);
  border: 1px solid rgba(255, 179, 193, 0.3);
  color: var(--rose-cream);
  padding: 8px 13px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.profile-trigger-btn:hover {
  background: rgba(255, 77, 109, 0.28);
}

/* Mode Navigation Bar */
.sender-mode-bar {
  display: flex;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(34, 4, 11, 0.78);
  border-bottom: 1px solid rgba(255, 179, 193, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.mode-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 179, 193, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease;
}

.mode-tab.active {
  background: linear-gradient(135deg, #c9184a, #ff4d6d);
  color: #ffffff;
  border-color: rgba(255, 240, 243, 0.35);
  box-shadow: 0 6px 16px rgba(201, 24, 74, 0.45);
}

/* Main Content Area */
.app-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.view-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hidden {
  display: none !important;
}

/* Glass Cards */
.glass-card {
  background: var(--card-glass);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow-romantic);
}

.section-eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--rose-blush);
  margin-bottom: 4px;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--rose-cream);
}

/* Push Notification Prompt Banner */
.push-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(164, 19, 60, 0.72), rgba(89, 13, 34, 0.85));
  border-color: rgba(255, 117, 143, 0.45);
}

.push-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.push-bell {
  font-size: 24px;
}

.push-banner-left strong {
  display: block;
  font-size: 13px;
  color: #fff;
  margin-bottom: 2px;
}

.push-banner-left p {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.35;
}

.mini-rose-btn {
  background: #fff0f3;
  color: #800f2f;
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* ========================================================================= */
/* TODAY'S HERO CARD: PENDING vs DELIVERED                                   */
/* ========================================================================= */

.today-pending-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 30px 22px;
  background: linear-gradient(160deg, rgba(105, 14, 39, 0.85) 0%, rgba(56, 6, 18, 0.92) 100%);
  border: 1.5px dashed rgba(255, 179, 193, 0.45);
  border-radius: 28px;
  box-shadow: var(--shadow-romantic);
}

.pending-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 183, 3, 0.16);
  border: 1px solid rgba(255, 209, 102, 0.45);
  color: #ffe599;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffd166;
  box-shadow: 0 0 8px #ffd166;
  animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.wax-envelope-illustration {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 77, 109, 0.32) 0%, rgba(128, 15, 47, 0.2) 70%);
  border: 1px solid rgba(255, 179, 193, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  animation: floatGentle 3s ease-in-out infinite;
}

@keyframes floatGentle {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

.pending-title {
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 700;
  color: var(--rose-cream);
  margin-bottom: 10px;
}

.pending-message {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 340px;
  margin: 0 auto 16px;
}

.pending-footer-note {
  display: inline-block;
  font-size: 12px;
  color: var(--rose-blush);
  background: rgba(255, 255, 255, 0.06);
  padding: 8px 14px;
  border-radius: 12px;
}

/* DELIVERED TODAY LOVE LETTER CARD */
.today-delivered-card {
  position: relative;
  overflow: hidden;
  padding: 26px 22px;
  background: linear-gradient(155deg, rgba(164, 19, 60, 0.88) 0%, rgba(89, 13, 34, 0.94) 65%, rgba(48, 5, 18, 0.96) 100%);
  border: 1.5px solid rgba(255, 179, 193, 0.45);
  border-radius: 28px;
  box-shadow: 0 22px 48px rgba(20, 0, 6, 0.65), 0 0 32px rgba(255, 77, 109, 0.25);
}

.delivered-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.delivered-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 77, 109, 0.28);
  border: 1px solid rgba(255, 179, 193, 0.5);
  color: #fff0f3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.note-date-label {
  font-size: 12px;
  color: var(--rose-blush);
  font-weight: 600;
}

.note-category-pill {
  display: inline-block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: #ffd166;
  margin-bottom: 10px;
}

.love-letter-quote {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.48;
  color: #ffffff;
  margin-bottom: 18px;
  white-space: pre-wrap;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.note-photo-frame {
  margin-bottom: 18px;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(255, 240, 243, 0.28);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  position: relative;
}

.note-photo-frame img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.note-photo-frame:hover img {
  transform: scale(1.02);
}

.signature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 179, 193, 0.2);
}

.signature-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--rose-blush);
  background: #800f2f;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 14px;
}

.mini-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.signature-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--rose-blush);
}

/* Reaction Bar */
.reactions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.reaction-label {
  font-size: 11.5px;
  color: var(--rose-blush);
  font-weight: 600;
}

.reaction-buttons {
  display: flex;
  gap: 6px;
}

.emoji-react-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 179, 193, 0.24);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.emoji-react-btn:hover {
  transform: scale(1.12);
}

.emoji-react-btn.reacted {
  background: rgba(255, 77, 109, 0.42);
  border-color: #fff0f3;
  box-shadow: 0 0 12px rgba(255, 77, 109, 0.55);
}

/* Replies Section inside a Love Card */
.replies-box {
  background: rgba(22, 2, 7, 0.42);
  border-radius: 16px;
  padding: 12px;
  border: 1px solid rgba(255, 179, 193, 0.14);
}

.replies-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.reply-bubble {
  background: rgba(255, 240, 243, 0.08);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.4;
}

.reply-bubble strong {
  color: var(--rose-blush);
  font-size: 11.5px;
  margin-right: 6px;
}

.reply-form {
  display: flex;
  gap: 8px;
}

.reply-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 179, 193, 0.25);
  border-radius: 999px;
  padding: 8px 14px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 13px;
  outline: none;
}

.reply-input::placeholder {
  color: rgba(255, 204, 213, 0.55);
}

.reply-send-btn {
  background: linear-gradient(135deg, #c9184a, #ff4d6d);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

/* ========================================================================= */
/* PREVIOUS LOVE NOTES TIMELINE                                              */
/* ========================================================================= */
.previous-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 6px;
}

.previous-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--rose-cream);
}

.count-badge {
  background: rgba(255, 179, 193, 0.16);
  border: 1px solid var(--card-border);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--rose-blush);
}

.archive-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.archive-filters::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  background: rgba(89, 13, 34, 0.55);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip.active {
  background: var(--rose-bright);
  color: #fff;
  border-color: #fff0f3;
}

.previous-messages-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.past-note-card {
  background: rgba(72, 10, 28, 0.62);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(12, 0, 4, 0.4);
}

.past-note-Card-quote {
  font-family: var(--font-serif);
  font-size: 17.5px;
  line-height: 1.48;
  color: var(--rose-cream);
  margin: 8px 0 14px;
  white-space: pre-wrap;
}

/* ========================================================================= */
/* SENDER CONTROL PANEL STYLES                                               */
/* ========================================================================= */
.status-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-pill.pending {
  background: rgba(255, 183, 3, 0.18);
  border: 1px solid rgba(255, 209, 102, 0.5);
  color: #ffd166;
}

.status-pill.delivered {
  background: rgba(46, 196, 182, 0.2);
  border: 1px solid rgba(114, 239, 221, 0.55);
  color: #a8f9ef;
}

.status-pill.delivered .pulse-dot {
  background: #2ec4b6;
  box-shadow: 0 0 8px #2ec4b6;
}

.status-subtext {
  font-size: 13px;
  line-height: 1.48;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.sender-today-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.schedule-toggle-group {
  display: flex;
  gap: 8px;
  margin: 14px 0;
  background: rgba(24, 3, 8, 0.5);
  padding: 5px;
  border-radius: 14px;
  border: 1px solid var(--card-border);
}

.sched-toggle-btn {
  flex: 1;
  padding: 9px 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sched-toggle-btn.active {
  background: linear-gradient(135deg, #c9184a, #ff4d6d);
  color: #fff;
  box-shadow: 0 4px 12px rgba(201, 24, 74, 0.4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--rose-blush);
}

.inspire-link-btn {
  background: none;
  border: none;
  color: #ffd166;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cat-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.cat-chip.active {
  background: rgba(255, 77, 109, 0.35);
  border-color: #fff0f3;
  color: #ffffff;
}

.valentine-input,
.valentine-textarea {
  width: 100%;
  background: rgba(20, 2, 7, 0.55);
  border: 1px solid rgba(255, 179, 193, 0.32);
  border-radius: 14px;
  padding: 12px 14px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.2s ease;
}

.valentine-input:focus,
.valentine-textarea:focus {
  border-color: var(--rose-bright);
  box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.2);
}

.field-hint {
  font-size: 11.5px;
  color: var(--text-soft);
}

/* Photo Upload Dropzone */
.hidden-file-input {
  display: none;
}

.photo-upload-area {
  border: 1.5px dashed rgba(255, 179, 193, 0.38);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  background: rgba(24, 3, 8, 0.35);
  cursor: pointer;
  transition: all 0.2s ease;
}

.photo-upload-area:hover {
  border-color: var(--rose-bright);
  background: rgba(201, 24, 74, 0.15);
}

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

.photo-icon {
  font-size: 26px;
}

.photo-placeholder small {
  font-size: 11px;
  color: var(--text-soft);
}

.photo-preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.photo-preview-wrap img {
  max-height: 190px;
  border-radius: 12px;
  border: 1px solid var(--rose-blush);
}

.remove-photo-btn {
  background: rgba(255, 77, 109, 0.25);
  border: 1px solid var(--rose-bright);
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  cursor: pointer;
}

/* Buttons */
.primary-valentine-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #c9184a 0%, #ff4d6d 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 240, 243, 0.35);
  border-radius: 16px;
  padding: 14px 18px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(201, 24, 74, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.primary-valentine-btn:active {
  transform: scale(0.98);
}

.secondary-rose-btn {
  background: rgba(255, 240, 243, 0.1);
  border: 1px solid rgba(255, 179, 193, 0.35);
  color: var(--rose-cream);
  border-radius: 12px;
  padding: 9px 14px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.danger-outline-btn {
  background: rgba(255, 77, 109, 0.12);
  border: 1px solid rgba(255, 77, 109, 0.4);
  color: #ffccd5;
  border-radius: 12px;
  padding: 9px 14px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

/* Scheduled Queue Items */
.scheduled-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scheduled-item {
  background: rgba(24, 3, 8, 0.48);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scheduled-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.scheduled-date-badge {
  background: rgba(255, 209, 102, 0.18);
  color: #ffd166;
  border: 1px solid rgba(255, 209, 102, 0.4);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}

.scheduled-item-actions {
  display: flex;
  gap: 6px;
}

/* ========================================================================= */
/* LIVE iOS HOME SCREEN WIDGET PREVIEW                                       */
/* ========================================================================= */
.iphone-homescreen-mockup {
  background: linear-gradient(165deg, #2b0712 0%, #120206 100%);
  border: 2px solid rgba(255, 179, 193, 0.25);
  border-radius: 28px;
  padding: 18px;
  margin: 14px 0 18px;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6);
}

.ios-native-widget {
  border-radius: 22px;
  padding: 16px 18px;
  color: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
  min-height: 155px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.ios-native-widget.delivered-widget {
  background: linear-gradient(135deg, #880d1e 0%, #c9184a 55%, #ff4d6d 100%);
}

.ios-native-widget.pending-widget {
  background: linear-gradient(135deg, #590d22 0%, #800f2f 55%, #a4133c 100%);
}

.widget-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.7px;
  color: #ffb3c1;
}

.widget-cat-line {
  font-style: italic;
  font-size: 11.5px;
  color: #ffccd5;
  margin-top: 4px;
}

.widget-body-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0;
}

.widget-main-text {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.38;
  color: #ffffff;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.widget-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.widget-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  color: #ffb3c1;
  font-weight: 600;
}

.mock-app-icons-row {
  display: flex;
  justify-content: space-around;
  margin-top: 16px;
}

.mock-app-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: rgba(255, 240, 243, 0.8);
}

.mock-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.rose-box { background: linear-gradient(135deg, #800f2f, #ff4d6d); }
.photos-box { background: linear-gradient(135deg, #ff758f, #ffb3c1); }
.messages-box { background: linear-gradient(135deg, #2ec4b6, #20a4f3); }
.music-box { background: linear-gradient(135deg, #ff4d6d, #f72585); }

.widget-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.center-link {
  width: 100%;
}

/* Setup Steps */
.setup-step {
  display: flex;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 179, 193, 0.16);
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--rose-bright);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-body h3 {
  font-size: 14.5px;
  color: #fff;
  margin-bottom: 5px;
}

.step-body p,
.clean-steps-list li {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

.clean-steps-list {
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.step-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 6px;
}

/* ========================================================================= */
/* PROFILE & ROLE MODAL                                                      */
/* ========================================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 1, 4, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-card {
  width: 100%;
  max-width: 430px;
  background: var(--card-glass-strong);
  border: 1.5px solid rgba(255, 179, 193, 0.38);
  max-height: 92vh;
  overflow-y: auto;
}

.modal-header {
  text-align: center;
  margin-bottom: 16px;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 24px;
  color: #fff;
  margin: 4px 0 6px;
}

.modal-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

.role-selector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.role-choice-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 179, 193, 0.22);
  border-radius: 18px;
  padding: 14px 10px;
  text-align: center;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.role-choice-card.selected {
  background: linear-gradient(155deg, rgba(201, 24, 74, 0.48), rgba(89, 13, 34, 0.75));
  border-color: #ff4d6d;
  box-shadow: 0 0 20px rgba(255, 77, 109, 0.35);
}

.role-card-emoji {
  font-size: 26px;
}

.role-card-title {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.role-card-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 179, 193, 0.2);
  color: var(--rose-blush);
}

.role-card-desc {
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-muted);
}

.profile-avatar-upload {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.avatar-upload-circle {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 2.5px dashed var(--rose-blush);
  background: rgba(24, 3, 8, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.avatar-upload-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#profile-avatar-placeholder {
  font-size: 28px;
}

.avatar-edit-pill {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  background: rgba(201, 24, 74, 0.85);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  text-align: center;
  padding: 3px 0;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.text-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  padding: 6px;
  cursor: pointer;
}

/* Lightbox */
.lightbox-inner {
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox-inner img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 18px;
  border: 2px solid var(--rose-blush);
}

.lightbox-close-btn {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid var(--rose-blush);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 90%;
  max-width: 380px;
  pointer-events: none;
}

.valentine-toast {
  background: linear-gradient(135deg, #880d1e, #c9184a);
  color: #fff;
  border: 1px solid #ffb3c1;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  text-align: center;
  animation: slideUpToast 0.25s ease;
}

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