:root, [data-theme="obsidian"] {
  --bg-base: #0B0E14;
  --bg-surface: #121722;
  --bg-card: #161D2B;
  --bg-card-hover: #1C2537;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.4);
  --primary: #6366F1;
  --primary-glow: rgba(99, 102, 241, 0.25);
  --accent-cyan: #06B6D4;
  --accent-emerald: #10B981;
  --accent-rose: #F43F5E;
  --accent-amber: #F59E0B;
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --shadow-card: 0 12px 35px -10px rgba(0, 0, 0, 0.65);
  --radius-card: 20px;
  --radius-pill: 9999px;
  --header-bg: rgba(11, 14, 20, 0.88);
  --bg-gradient-1: rgba(99, 102, 241, 0.07);
  --bg-gradient-2: rgba(6, 182, 212, 0.06);
}

[data-theme="daylight"] {
  --bg-base: #F8F5EE;
  --bg-surface: #EFECE3;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FAF8F3;
  --border-subtle: rgba(15, 23, 42, 0.09);
  --border-focus: rgba(79, 70, 229, 0.5);
  --primary: #4F46E5;
  --primary-glow: rgba(79, 70, 229, 0.15);
  --accent-cyan: #0284C7;
  --accent-emerald: #059669;
  --accent-rose: #E11D48;
  --accent-amber: #D97706;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --shadow-card: 0 8px 30px -8px rgba(15, 23, 42, 0.10), 0 2px 6px rgba(15, 23, 42, 0.04);
  --radius-card: 20px;
  --radius-pill: 9999px;
  --header-bg: rgba(248, 245, 238, 0.92);
  --bg-gradient-1: rgba(217, 119, 6, 0.04);
  --bg-gradient-2: rgba(79, 70, 229, 0.03);
}

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

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 90px;
  background-image: 
    radial-gradient(circle at 10% 15%, var(--bg-gradient-1) 0%, transparent 45%),
    radial-gradient(circle at 90% 85%, var(--bg-gradient-2) 0%, transparent 45%);
  background-attachment: fixed;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Header */
header {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.nav-inner {
  position: relative;
  width: 100%;
  max-width: 500px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, #4338CA, #6366F1, #06B6D4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #FFF;
  font-size: 19px;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #FFF;
}

.brand-subtitle {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  font-weight: 700;
}

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

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #34D399;
  font-size: 11.5px;
  font-weight: 600;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.icon-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: 10px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.icon-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  color: #FFF;
  border-color: var(--primary);
}

/* Search Box */
.search-container {
  width: 100%;
  max-width: 500px;
  padding: 0 16px 10px;
}

.search-box {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  pointer-events: none;
}

#searchInput {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 8px 12px 8px 36px;
  font-size: 13px;
  color: #FFF;
  outline: none;
  transition: border-color 0.2s;
}
#searchInput:focus {
  border-color: var(--primary);
}
#searchInput::placeholder {
  color: var(--text-muted);
}

/* Filter Bar */
.filter-bar {
  width: 100%;
  max-width: 500px;
  padding: 0 16px 12px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }

.filter-pill {
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-pill:hover, .filter-pill.active {
  background: rgba(99, 102, 241, 0.16);
  border-color: var(--primary);
  color: #FFF;
}

/* Feed Container */
.feed-container {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 16px 14px;
}

/* Post Card */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.post-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

/* Post Header */
.post-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.creator-info {
  display: flex;
  align-items: center;
  gap: 11px;
}

.creator-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #EC4899, #8B5CF6, #3B82F6);
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #0F172A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #FFF;
}

.creator-names {
  display: flex;
  flex-direction: column;
}

.creator-handle-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.creator-handle {
  font-weight: 700;
  font-size: 13.5px;
  color: #FFF;
}

.post-time {
  font-size: 12px;
  color: var(--text-muted);
}

.pub-source-badge {
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
}

.category-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.15);
  color: #A5B4FC;
  border: 1px solid rgba(99, 102, 241, 0.28);
}

/* Poster Canvas (Instagram 4:5 Ratio) */
.poster-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.8;
  background: #0B0E17;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.post-card:hover .poster-img {
  transform: scale(1.02);
}

/* High-contrast Infographic Canvas */
.infographic-banner {
  width: 100%;
  height: 100%;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  background: linear-gradient(165deg, #111827 0%, #0F172A 50%, #080C14 100%);
}

.banner-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 2;
}

.audience-pill {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  color: #E2E8F0;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.style-pill {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-cyan);
}

.banner-center {
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: auto 0;
}

.metric-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.4);
  padding: 8px 14px;
  border-radius: 12px;
  max-width: fit-content;
}

.metric-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #FFF;
  line-height: 1;
}

.metric-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #A5B4FC;
}

.canvas-headline {
  font-size: 23px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.5px;
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.canvas-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
  border-left: 2px solid var(--accent-cyan);
  padding-left: 10px;
}

.banner-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.mood-text {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Action Bar */
.action-bar {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.action-group-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-group-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.action-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 8px;
  transition: all 0.15s ease;
}
.action-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #FFF;
}
.action-btn.liked {
  color: var(--accent-rose);
}
.action-btn.liked svg {
  fill: var(--accent-rose);
  stroke: var(--accent-rose);
}

/* Minimalist Action Icon Buttons (Parity with Mobile Feed) */
.icon-action-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  transition: all 0.18s ease;
  text-decoration: none;
}
.icon-action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFF;
}
.icon-action-btn.active,
.icon-action-btn.clean-view-btn.active {
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.14);
}
.icon-action-btn.clean-view-btn.active svg {
  stroke: var(--accent-cyan);
}

/* Native Instagram-Style Inline Carousel Dots */
.carousel-dots-inline {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
}
.carousel-dots-inline .carousel-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: all 0.2s ease;
}
.carousel-dots-inline .carousel-dot.active {
  width: 7px;
  height: 7px;
  background: var(--accent-cyan);
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.6);
}

/* Clean View: Smoothly fade out text overlays and scrims to reveal pure artwork */
.carousel-view.clean-view .slide-hook-content,
.carousel-view.clean-view .slide-hook-top-scrim,
.carousel-view.clean-view .slide-hook-bottom-scrim,
.carousel-view.clean-view .tactile-news-fragment,
.carousel-view.clean-view .slide-counter-badge,
.carousel-view.clean-view .critique-body,
.carousel-view.clean-view .critique-badge-row,
.carousel-view.clean-view .slide-critique-glow,
.carousel-view.clean-view .slide-hook-top,
.carousel-view.clean-view .slide-hook-bottom {
  opacity: 0 !important;
  pointer-events: none !important;
}

.slide-hook-content,
.slide-hook-top-scrim,
.slide-hook-bottom-scrim,
.tactile-news-fragment,
.slide-counter-badge,
.critique-body,
.critique-badge-row {
  transition: opacity 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}

.tag-action-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #E2E8F0;
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.tag-action-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--primary);
  color: #FFF;
}

/* Post Content */
.post-content {
  padding: 10px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.post-headline {
  font-size: 16.5px;
  font-weight: 800;
  color: #FFF;
  line-height: 1.35;
  letter-spacing: -0.3px;
}

.post-hook {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 14px;
  color: #CBD5E1;
  line-height: 1.45;
}

.post-curated-angle-box {
  margin: 2px 0 6px;
  padding: 8px 12px;
  background: rgba(245, 158, 11, 0.08);
  border-left: 3.5px solid #F59E0B;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  line-height: 1.45;
}

.curated-angle-tag {
  font-weight: 800;
  color: #F59E0B;
  margin-right: 6px;
  font-size: 12.5px;
  letter-spacing: 0.2px;
  display: inline-block;
}

.curated-angle-text {
  font-weight: 600;
  color: #F8FAFC;
  font-size: 13px;
}

.post-summary-snippet {
  font-size: 13px;
  line-height: 1.46;
  color: #CBD5E1;
  margin-top: 1px;
}

.post-creator-handle {
  font-weight: 700;
  color: #F8FAFC;
  margin-right: 4px;
}

.post-caption-text {
  color: rgba(241, 245, 249, 0.88);
}

.read-more-btn {
  color: var(--primary);
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-left: 4px;
}
.read-more-btn:hover {
  text-decoration: underline;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.modal-overlay.open,
.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #FFF;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-audience-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #A5B4FC;
  font-size: 12px;
  font-weight: 700;
  max-width: fit-content;
}

.modal-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  color: #FFF;
}

.modal-why-box {
  background: rgba(6, 182, 212, 0.08);
  border-left: 3px solid var(--accent-cyan);
  padding: 12px 16px;
  border-radius: 4px 12px 12px 4px;
  font-size: 13.5px;
  color: #E2E8F0;
  line-height: 1.5;
}

.modal-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.modal-takeaways-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.modal-takeaways-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: #CBD5E1;
  line-height: 1.5;
}
.modal-takeaways-list li span.bullet-icon {
  color: var(--accent-emerald);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
}

.modal-full-summary {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  white-space: pre-line;
}

.modal-footer {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-pub-source {
  font-size: 12px;
  color: var(--text-muted);
}

/* Paper Cut Lightbox */
.lightbox-img-wrap {
  width: 100%;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 14px;
  background: #000;
}
.lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

/* Tactile Paper Cut Archival Card Fallback */
.paper-cut-archival-inner {
  background: #FDFBF7;
  color: #1E293B;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  box-shadow: inset 0 0 40px rgba(217, 119, 6, 0.05), 0 10px 25px rgba(0, 0, 0, 0.4);
  font-family: 'Georgia', serif;
  text-align: left;
}
.paper-cut-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.paper-cut-pub-title {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #475569;
  font-family: system-ui, -apple-system, sans-serif;
}
.paper-cut-verified-stamp {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #B45309;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: system-ui, -apple-system, sans-serif;
}
.paper-cut-rule {
  height: 2px;
  background: #1E293B;
  margin: 8px 0 12px 0;
}
.paper-cut-rule.subtle {
  height: 1px;
  background: #CBD5E1;
  margin: 12px 0;
}
.paper-cut-headline {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 10px 0;
}
.paper-cut-quote-box {
  background: rgba(241, 245, 249, 0.85);
  border-left: 3px solid #D97706;
  padding: 12px 14px;
  border-radius: 4px;
  margin: 12px 0;
}
.paper-cut-quote-label {
  display: block;
  font-size: 9.5px;
  font-weight: 800;
  color: #64748B;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
  font-family: system-ui, -apple-system, sans-serif;
}
.paper-cut-quote-text {
  font-size: 13.5px;
  line-height: 1.5;
  color: #334155;
  font-style: italic;
  margin: 0;
}
.paper-cut-footer-meta {
  font-size: 11px;
  color: #64748B;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: system-ui, -apple-system, sans-serif;
}

/* ============================================================
   3-SLIDE CAROUSEL TRIO STYLES (MATCHES APP CAROUSEL STUDIO)
   ============================================================ */

.carousel-slide-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 14px 4px;
}

.carousel-tab-btn {
  flex: 1;
  padding: 6px 4px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.carousel-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFF;
}

.carousel-tab-btn.active {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.45);
  color: #A5B4FC;
}

/* 4:5 Instagram Carousel Frame */
.carousel-view {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #070B12;
  overflow: hidden;
  user-select: none;
}

.carousel-track {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.carousel-slide {
  width: 33.333333%;
  height: 100%;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  flex-shrink: 0;
}

/* Top-Right Floating Slide Badge */
.slide-counter-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: 3px 9px;
  font-size: 10.5px;
  font-weight: 700;
  color: #FFF;
  letter-spacing: 0.5px;
  z-index: 10;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Navigation Arrows */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  font-size: 18px;
  line-height: 1;
}

.carousel-nav-btn:hover {
  background: rgba(99, 102, 241, 0.9);
  border-color: #A5B4FC;
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav-btn.prev-btn { left: 8px; }
.carousel-nav-btn.next-btn { right: 8px; }

/* Bottom Dots */
.carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
  pointer-events: auto;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.25s ease;
}

.carousel-dot.active {
  width: 18px;
  border-radius: 6px;
  background: #6366F1;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.6);
}

/* ------------------------------------------------------------
   SLIDE 1: HOOK POSTER (VISUAL ARTWORK + HEADLINE)
   ------------------------------------------------------------ */
.slide-hook {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #060911;
  position: relative;
  overflow: hidden;
}

.slide-hook-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.slide-hook-top-scrim {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.25) 60%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.slide-hook-bottom-scrim {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52%;
  background: linear-gradient(0deg, rgba(6, 9, 17, 0.98) 0%, rgba(6, 9, 17, 0.82) 42%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.slide-hook-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 14px 14px 16px;
  box-sizing: border-box;
}

.slide-hook-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slide-hook-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Tactile Ripped Broadsheet Newspaper Fragment on Slide 1 */
.tactile-news-fragment {
  margin-bottom: 7px;
  background: linear-gradient(135deg, #FAF7EE 0%, #F3ECE0 50%, #EBE2D2 100%);
  border: 1px solid rgba(220, 210, 190, 0.95);
  border-radius: 4px;
  box-shadow: 0 3.5px 10px rgba(0, 0, 0, 0.70);
  overflow: hidden;
  position: relative;
}

.tactile-news-fragment::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(214, 205, 191, 0.85);
}

.tactile-news-inner {
  padding: 5px 9px 6px;
  display: flex;
  flex-direction: column;
  gap: 2.5px;
}

.tactile-news-header {
  display: inline-flex;
  align-items: center;
  gap: 4.5px;
  font-size: 7.8px;
  font-weight: 800;
  color: #786F5E;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.tactile-news-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 11.2px;
  font-weight: 900;
  color: #141414;
  line-height: 1.22;
  letter-spacing: -0.2px;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slide-source-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #94A3B8;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.slide-context-anchor {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 4px 8px;
  max-width: 95%;
  margin-bottom: 2px;
}

.anchor-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6366F1;
  flex-shrink: 0;
}

.anchor-text {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slide-hook-headline {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.18;
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.90);
  margin: 0;
  letter-spacing: -0.5px;
}

.slide-hook-desc {
  font-size: 12.5px;
  line-height: 1.42;
  color: #E2E8F0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

/* ------------------------------------------------------------
   SLIDE 2: CURATOR TAKE & CRITIQUE (DEEP EDITORIAL CANVAS)
   ------------------------------------------------------------ */
.slide-critique {
  background: #070B12;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.slide-critique-glow {
  position: absolute;
  top: -20%;
  right: -20%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.critique-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.critique-verdict-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #FBBF24;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.critique-body {
  position: relative;
  z-index: 2;
  margin: auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.critique-quote-mark {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 36px;
  line-height: 0.8;
  color: #818CF8;
  opacity: 0.7;
}

.critique-opinion-text {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.42;
  color: #F8FAFC;
  margin: 0;
}

.critique-why-box {
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid #6366F1;
  border-radius: 0 8px 8px 0;
  padding: 8px 12px;
}

.critique-why-title {
  font-size: 10px;
  font-weight: 800;
  color: #A5B4FC;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.critique-why-content {
  font-size: 11.5px;
  line-height: 1.4;
  color: #CBD5E1;
  margin: 0;
}

.critique-takeaways {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.critique-takeaways li {
  font-size: 11px;
  line-height: 1.35;
  color: #94A3B8;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.critique-takeaways li .check {
  color: #10B981;
  font-weight: 800;
}

.critique-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
  z-index: 2;
}

.critique-creator {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: #FFF;
}

/* ------------------------------------------------------------
   SLIDE 3: THE RECEIPT (AUTHENTIC NEWSPRINT BROADSHEET)
   ------------------------------------------------------------ */
.slide-receipt {
  background: #F7F5EE;
  color: #1E293B;
  padding: 14px 18px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
  position: relative;
  overflow: hidden;
  border: 1.5px solid #D6CEBE;
}

.stamp-verified {
  position: absolute;
  top: 8px;
  right: 12px;
  transform: rotate(-10deg);
  border: 1.8px solid #DC2626;
  color: #DC2626;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 6.8px;
  font-weight: 900;
  letter-spacing: 1.0px;
  text-align: center;
  line-height: 1.15;
  background: rgba(220, 38, 38, 0.07);
  z-index: 10;
  pointer-events: none;
  font-family: 'Inter', system-ui, sans-serif;
  text-transform: uppercase;
}

.receipt-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  flex-shrink: 0;
}

.receipt-masthead-thick {
  width: 100%;
  height: 2.2px;
  background: #0F172A;
}

.receipt-masthead-thin {
  width: 100%;
  height: 0.7px;
  background: #475569;
  margin-top: 2px;
  margin-bottom: 4px;
}

.receipt-pub-title {
  font-family: 'Playfair Display', 'Merriweather', Georgia, serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: #0F172A;
  margin: 3px 0 2px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.15;
}

.receipt-rules {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 7.2px;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.5px;
  font-family: 'Merriweather', Georgia, serif;
  margin: 2px 0 4px;
}

.receipt-rules-center {
  font-weight: 900;
  color: #0F172A;
  letter-spacing: 0.8px;
}

.receipt-masthead-bottom {
  width: 100%;
  height: 1.2px;
  background: #0F172A;
}

.receipts-headline-box {
  margin-top: 6px;
  flex-shrink: 0;
}

.receipt-headline {
  font-family: 'Merriweather', 'Playfair Display', Georgia, serif;
  font-size: 17.5px;
  font-weight: 900;
  line-height: 1.22;
  color: #0F172A;
  margin: 0 0 4px;
  text-align: left;
  letter-spacing: -0.2px;
}

.receipts-byline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 7.5px;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  font-family: 'Merriweather', Georgia, serif;
}

.receipts-archive-tag {
  font-weight: 800;
  color: #991B1B;
  letter-spacing: 0.5px;
}

.receipts-hairline {
  width: 100%;
  height: 0.6px;
  background: #94A3B8;
}

.receipt-paragraphs {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.receipt-spacer-top {
  flex: 1;
  min-height: 8px;
}

.receipt-spacer-mid {
  flex: 2;
  min-height: 14px;
}

.receipt-spacer-bottom {
  flex: 1;
  min-height: 8px;
}

.receipt-p1 {
  font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
  font-size: 11.2px;
  line-height: 1.45;
  color: #1E293B;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: justify;
}

.receipt-highlight {
  background: #FEF08A;
  border: 1px solid #FDE047;
  border-left: 5px solid #CA8A04;
  padding: 8px 12px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(234, 179, 8, 0.35);
  margin: 0;
  text-align: left;
  flex-shrink: 0;
}

.highlighter-label {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.9px;
  color: #854D0E;
  text-transform: uppercase;
  margin-bottom: 3px;
  font-family: 'Merriweather', Georgia, serif;
  display: flex;
  align-items: center;
  gap: 5px;
}

.highlighter-text {
  font-family: 'Merriweather', 'Playfair Display', Georgia, serif;
  font-size: 12px;
  font-weight: 900;
  color: #0F172A;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.receipt-p3 {
  font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
  font-size: 10.8px;
  line-height: 1.45;
  color: #334155;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: justify;
}

.receipt-footer {
  flex-shrink: 0;
  margin-top: 4px;
}

.receipt-folio-rule {
  width: 100%;
  height: 0.8px;
  background: #0F172A;
}

.receipt-folio-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 7.2px;
  font-weight: 800;
  color: #334155;
  letter-spacing: 0.4px;
  font-family: 'Merriweather', Georgia, serif;
  margin-top: 3px;
}

.receipt-folio-source {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.receipt-folio-author {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}

/* ============================================================
   READING ATMOSPHERE SELECTOR & DAYLIGHT PAPER STYLING
   ============================================================ */

/* Reading Atmosphere Dropdown Menu */
.theme-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  gap: 4px;
  min-width: 280px;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: themeMenuPop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-dropdown-menu.open {
  display: flex;
}

@keyframes themeMenuPop {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.theme-menu-header {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 10px 4px;
}

.theme-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
  width: 100%;
}

.theme-menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="daylight"] .theme-menu-item:hover {
  background: rgba(15, 23, 42, 0.05);
}

.theme-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.theme-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.theme-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.theme-desc {
  font-size: 10.5px;
  color: var(--text-secondary);
}

.theme-check {
  font-size: 14px;
  font-weight: 900;
  color: var(--primary);
  width: 16px;
  text-align: center;
}

/* Daylight Paper Theme Component Overrides */
[data-theme="daylight"] .brand-title {
  color: #0F172A;
}

[data-theme="daylight"] .creator-handle {
  color: #0F172A;
}

[data-theme="daylight"] .post-headline {
  color: #0F172A;
}

[data-theme="daylight"] .post-hook {
  color: #334155;
}

[data-theme="daylight"] .post-caption-text {
  color: #1E293B;
}

[data-theme="daylight"] .post-creator-handle {
  color: #0F172A;
}

[data-theme="daylight"] .audience-tag {
  background: rgba(79, 70, 229, 0.08);
  color: #4338CA;
  border: 1px solid rgba(79, 70, 229, 0.18);
}

[data-theme="daylight"] .pub-source-badge {
  color: #64748B;
}

[data-theme="daylight"] .post-summary-snippet {
  color: #334155;
}

[data-theme="daylight"] .post-curated-angle-box {
  background: rgba(245, 158, 11, 0.12);
  border-left-color: #D97706;
}

[data-theme="daylight"] .curated-angle-tag {
  color: #B45309;
}

[data-theme="daylight"] .curated-angle-text {
  color: #1E293B;
}

[data-theme="daylight"] .carousel-tab-btn {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.08);
  color: #475569;
}

[data-theme="daylight"] .carousel-tab-btn:hover {
  background: rgba(15, 23, 42, 0.07);
  color: #0F172A;
}

[data-theme="daylight"] .carousel-tab-btn.active {
  background: rgba(79, 70, 229, 0.10);
  border-color: rgba(79, 70, 229, 0.35);
  color: #4338CA;
}

[data-theme="daylight"] .tag-action-btn {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.10);
  color: #334155;
}

[data-theme="daylight"] .tag-action-btn:hover {
  background: rgba(79, 70, 229, 0.12);
  color: #1E1B4B;
}

[data-theme="daylight"] .action-bar {
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

[data-theme="daylight"] .action-btn {
  color: #475569;
}

[data-theme="daylight"] .action-btn:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #0F172A;
}

[data-theme="daylight"] .icon-action-btn {
  color: #475569;
}

[data-theme="daylight"] .icon-action-btn:hover {
  background: rgba(15, 23, 42, 0.07);
  color: #0F172A;
}

[data-theme="daylight"] .icon-btn {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.10);
  color: #334155;
}

[data-theme="daylight"] .icon-btn:hover {
  background: rgba(79, 70, 229, 0.12);
  color: #1E1B4B;
}

[data-theme="daylight"] #searchInput {
  background: #FFFFFF;
  border-color: rgba(15, 23, 42, 0.12);
  color: #0F172A;
}

[data-theme="daylight"] .filter-pill {
  background: #FFFFFF;
  border-color: rgba(15, 23, 42, 0.10);
  color: #475569;
}

[data-theme="daylight"] .filter-pill:hover,
[data-theme="daylight"] .filter-pill.active {
  background: rgba(79, 70, 229, 0.10);
  border-color: var(--primary);
  color: #4338CA;
}

[data-theme="daylight"] .modal-card {
  background: #FFFFFF;
  color: #0F172A;
}

[data-theme="daylight"] .modal-title {
  color: #0F172A;
}

[data-theme="daylight"] .modal-close {
  background: rgba(15, 23, 42, 0.06);
  color: #0F172A;
}

[data-theme="daylight"] .modal-why-box {
  background: rgba(79, 70, 229, 0.06);
  color: #1E293B;
}

[data-theme="daylight"] .modal-takeaways-list li {
  color: #334155;
}

[data-theme="daylight"] .modal-full-summary {
  color: #1E293B;
}

/* ============================================================
   AUTHENTICATION & USER PROFILE STYLING
   ============================================================ */

/* Header Auth Button */
.auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #C7D2FE;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-btn:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(168, 85, 247, 0.28));
  border-color: #818CF8;
  color: #FFF;
  transform: translateY(-1px);
}

[data-theme="daylight"] .auth-btn {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(124, 58, 237, 0.08));
  border: 1px solid rgba(79, 70, 229, 0.35);
  color: #4338CA;
}

[data-theme="daylight"] .auth-btn:hover {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(124, 58, 237, 0.15));
  border-color: #4F46E5;
  color: #312E81;
}

/* User Avatar Button */
.user-avatar-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  padding: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.user-avatar-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px var(--primary-glow);
}

.user-avatar-letter {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-surface);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.user-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* User Dropdown Menu */
.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  gap: 3px;
  min-width: 240px;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: themeMenuPop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-dropdown-menu.open {
  display: flex;
}

.user-menu-profile {
  padding: 8px 10px 6px;
}

.user-menu-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-menu-email {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.user-menu-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 4px 0;
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
  width: 100%;
  font-size: 13px;
  color: var(--text-secondary);
}

.user-menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

[data-theme="daylight"] .user-menu-item:hover {
  background: rgba(15, 23, 42, 0.05);
  color: var(--text-primary);
}

.user-item-icon {
  font-size: 16px;
  line-height: 1;
}

.user-item-label {
  flex: 1;
  font-weight: 600;
}

.user-item-count {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary);
}

.user-menu-item.user-sign-out:hover {
  color: #F43F5E;
  background: rgba(244, 63, 94, 0.08);
}

/* User Filter Pills */
.filter-pill.user-pill {
  border-color: rgba(99, 102, 241, 0.35);
  color: var(--text-primary);
}

.filter-pill.user-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFF;
}

/* Postcard Bookmark Button */
.bookmark-btn {
  transition: all 0.2s ease;
}

.bookmark-btn.is-saved {
  color: #F59E0B !important;
}

.bookmark-btn.is-saved svg {
  fill: #F59E0B;
  stroke: #F59E0B;
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.4));
}

/* Auth Modal Styling */
.auth-modal-card {
  max-width: 400px;
  text-align: center;
  padding: 28px 24px;
}

.auth-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 22px;
}

.auth-badge-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  color: #FFF;
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -4px rgba(99, 102, 241, 0.4);
  margin-bottom: 12px;
}

.auth-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.auth-desc {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted);
}

.oauth-login-btn {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #1F2937;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.oauth-login-btn:hover {
  background: #F9FAFB;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.auth-separator {
  position: relative;
  margin: 18px 0;
  text-align: center;
}

.auth-separator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-subtle);
}

.auth-separator span {
  position: relative;
  background: var(--bg-card);
  padding: 0 10px;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}

[data-theme="daylight"] .auth-separator span {
  background: #FFFFFF;
}

.auth-field {
  text-align: left;
  margin-bottom: 10px;
}

.auth-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.auth-field input {
  width: 100%;
  height: 42px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0 14px;
  font-size: 13.5px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.auth-helper-text {
  font-size: 12px;
  color: var(--text-muted);
  text-align: left;
  margin-bottom: 14px;
  line-height: 1.4;
}

.auth-primary-btn {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  background: var(--primary);
  border: none;
  color: #FFF;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.auth-primary-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.auth-status-msg {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.4;
  text-align: left;
}

.auth-status-msg.success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34D399;
}

.auth-status-msg.error {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #FB7185;
}

[data-theme="daylight"] .auth-status-msg.success {
  background: rgba(5, 150, 105, 0.08);
  border-color: rgba(5, 150, 105, 0.3);
  color: #047857;
}

[data-theme="daylight"] .auth-status-msg.error {
  background: rgba(225, 29, 72, 0.08);
  border-color: rgba(225, 29, 72, 0.3);
  color: #BE123C;
}

.auth-terms-note {
  margin-top: 14px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-muted);
}
