/**
 * VeriStock Pulse & Pulse Studio Design System
 * Modern, responsive, high-contrast, theme-adaptive styles
 */

/* ── Container & Layout ─────────────────────────────────────────────── */
.pulse-studio-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 8px 0;
}

.pulse-studio-subnav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-subtle, rgba(226, 232, 240, 0.8));
}

.pulse-subtab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-muted, #64748b);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.pulse-subtab-btn:hover {
  color: var(--text-primary, #0f172a);
}

.pulse-subtab-btn.active {
  color: #1d4ed8;
  border-bottom-color: #1d4ed8;
}

[data-theme="dark"] .pulse-subtab-btn.active {
  color: #60a5fa;
  border-bottom-color: #60a5fa;
}

/* ── Composer Split Pane ───────────────────────────────────────────── */
.pulse-composer-grid {
  display: grid;
  grid-template-columns: minmax(500px, 1.8fr) minmax(340px, 1fr);
  gap: 24px;
  align-items: start;
}

@media (max-width: 1024px) {
  .pulse-composer-grid {
    grid-template-columns: 1fr;
  }
}

.pulse-card-panel {
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .pulse-card-panel {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.3);
}

.pulse-section-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary, #0f172a);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.2px;
}

/* ── Form Fields ───────────────────────────────────────────────────── */
.pulse-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.pulse-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.pulse-form-group label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted, #64748b);
}

.pulse-input,
.pulse-select,
.pulse-textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 13.5px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle, #cbd5e1);
  background: var(--bg-surface-elevated, #f8fafc);
  color: var(--text-primary, #0f172a);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

[data-theme="dark"] .pulse-input,
[data-theme="dark"] .pulse-select,
[data-theme="dark"] .pulse-textarea {
  background: #0f172a;
  border-color: #334155;
  color: #f8fafc;
}

.pulse-input:focus,
.pulse-select:focus,
.pulse-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* ── Industry Matrix Checkboxes ────────────────────────────────────── */
.pulse-industry-matrix {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 280px;
  overflow-y: auto;
  padding: 12px;
  background: var(--bg-surface-elevated, #f8fafc);
  border: 1px solid var(--border-subtle, #cbd5e1);
  border-radius: 10px;
}

[data-theme="dark"] .pulse-industry-matrix {
  background: #0f172a;
  border-color: #334155;
}

.pulse-dna-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pulse-dna-title {
  font-size: 11px;
  font-weight: 800;
  color: #3b82f6;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--border-subtle, #e2e8f0);
}

.pulse-industry-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}

.pulse-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-primary, #1e293b);
}

[data-theme="dark"] .pulse-checkbox-label {
  color: #e2e8f0;
}

/* ── Live Phone Card Preview ───────────────────────────────────────── */
.pulse-preview-sticky {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pulse-phone-mockup {
  background: #000;
  border: 8px solid #1e293b;
  border-radius: 36px;
  padding: 18px 12px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
  max-width: 360px;
  margin: 0 auto;
  width: 100%;
}

.pulse-phone-screen {
  background: var(--bg-surface, #ffffff);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 480px;
}

[data-theme="dark"] .pulse-phone-screen {
  background: #0f172a;
}

.pulse-phone-header {
  padding: 12px 14px;
  background: var(--bg-surface-elevated, #f8fafc);
  border-bottom: 1px solid var(--border-subtle, #e2e8f0);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
}

[data-theme="dark"] .pulse-phone-header {
  background: #1e293b;
  border-bottom-color: #334155;
}

.pulse-preview-card {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
}

.pulse-badge.sponsored {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.pulse-badge.tip {
  background: rgba(139, 92, 246, 0.15);
  color: #7c3aed;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.pulse-badge.compliance {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.pulse-badge.update {
  background: rgba(59, 130, 246, 0.15);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.pulse-preview-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: #334155;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 12px;
}

.pulse-preview-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-primary, #0f172a);
}

.pulse-preview-body {
  font-size: 12.5px;
  color: var(--text-secondary, #475569);
  line-height: 1.45;
  max-height: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="dark"] .pulse-preview-body {
  color: #94a3b8;
}

.pulse-preview-cta {
  width: 100%;
  padding: 8px 12px;
  background: #1d4ed8;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 12px;
  text-align: center;
  cursor: pointer;
}

.pulse-preview-actions {
  display: flex;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle, #e2e8f0);
  font-size: 12px;
  color: var(--text-muted, #64748b);
}

/* ── Data Tables & Grids ───────────────────────────────────────────── */
.pulse-table-wrap {
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 12px;
  overflow-x: auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .pulse-table-wrap {
  background: #1e293b;
  border-color: #334155;
}

.pulse-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.pulse-table th {
  padding: 12px 16px;
  background: var(--bg-surface-elevated, #f8fafc);
  font-weight: 700;
  color: var(--text-muted, #64748b);
  border-bottom: 1px solid var(--border-subtle, #e2e8f0);
  white-space: nowrap;
}

[data-theme="dark"] .pulse-table th {
  background: #0f172a;
  border-bottom-color: #334155;
}

.pulse-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle, #e2e8f0);
  vertical-align: middle;
}

[data-theme="dark"] .pulse-table td {
  border-bottom-color: #334155;
}

.pulse-table tr:hover td {
  background: rgba(59, 130, 246, 0.03);
}

/* ── Budget Progress Bar ───────────────────────────────────────────── */
.pulse-budget-track {
  width: 120px;
  height: 8px;
  background: var(--border-subtle, #e2e8f0);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 4px;
}

.pulse-budget-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.pulse-budget-fill.green {
  background: #10b981;
}

.pulse-budget-fill.amber {
  background: #f59e0b;
}

.pulse-budget-fill.red {
  background: #ef4444;
}

/* ── Analytics & Revenue Metric Tiles ──────────────────────────────── */
.pulse-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.pulse-metric-tile {
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

[data-theme="dark"] .pulse-metric-tile {
  background: #1e293b;
  border-color: #334155;
}

.pulse-tile-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted, #64748b);
  text-transform: uppercase;
}

.pulse-tile-val {
  font-size: 26px;
  font-weight: 900;
  color: var(--text-primary, #0f172a);
  letter-spacing: -0.5px;
}

[data-theme="dark"] .pulse-tile-val {
  color: #f8fafc;
}

.pulse-tile-meta {
  font-size: 11.5px;
  color: var(--text-muted, #94a3b8);
}

/* ── VeriStock Pulse B2B Reels & Stories Strip ─────────────────────── */
.pulse-stories-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 12px 4px 16px 4px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.pulse-stories-strip::-webkit-scrollbar {
  height: 6px;
}
.pulse-stories-strip::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.pulse-story-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex: 0 0 84px;
  max-width: 84px;
  text-align: center;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: transparent;
  border: none;
  padding: 0;
}
.pulse-story-pill:hover {
  transform: translateY(-3px) scale(1.04);
}

.pulse-story-ring {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #f59e0b, #ec4899, #8b5cf6, #3b82f6);
  position: relative;
  box-shadow: 0 4px 16px rgba(236, 72, 153, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pulse-story-ring.active {
  animation: pulse-ring-glow 2.5s infinite ease-in-out;
}
@keyframes pulse-ring-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.6); }
  50% { box-shadow: 0 0 0 6px rgba(236, 72, 153, 0); }
}

.pulse-story-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #0f172a;
  border: 2px solid #0f172a;
  display: block;
}

.pulse-story-badge {
  position: absolute;
  bottom: -4px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.pulse-story-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-primary, #f8fafc);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 84px;
}

/* Story Shimmer Placeholder */
.pulse-story-shimmer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 84px;
  max-width: 84px;
}
.pulse-story-shimmer-avatar {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 25%, rgba(255, 255, 255, 0.16) 50%, rgba(255, 255, 255, 0.06) 75%);
  background-size: 200% 100%;
  animation: pulse-shimmer-anim 1.5s infinite;
}
.pulse-story-shimmer-label {
  width: 54px;
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 25%, rgba(255, 255, 255, 0.16) 50%, rgba(255, 255, 255, 0.06) 75%);
  background-size: 200% 100%;
  animation: pulse-shimmer-anim 1.5s infinite;
}
@keyframes pulse-shimmer-anim {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Fullscreen / Modal Reels Viewer ───────────────────────────────── */
.pulse-reels-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(4, 7, 16, 0.88);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.pulse-reels-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.pulse-reels-player-frame {
  width: 100%;
  max-width: 420px;
  height: 92vh;
  max-height: 860px;
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  background: #000;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
}

.pulse-sound-banner {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9999px;
  z-index: 30;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  animation: pulseMutePillFloat 1.8s ease-in-out infinite alternate;
}

@keyframes pulseMutePillFloat {
  0% { transform: translateX(-50%) translateY(0); }
  100% { transform: translateX(-50%) translateY(4px); }
}

.pulse-reels-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pulse-reels-buffering-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: pulseSpin 0.75s linear infinite;
  z-index: 25;
  pointer-events: none;
  display: none;
}

.pulse-reels-playpause-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  width: 72px;
  height: 72px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #fff;
  z-index: 26;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.pulse-reels-playpause-overlay.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@keyframes pulseSpin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.pulse-reels-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 16px;
  background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pulse-reels-creator-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pulse-reels-creator-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
  background: #1e293b;
}

.pulse-reels-creator-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
  margin: 0;
}

.pulse-reels-creator-trust {
  font-size: 10px;
  font-weight: 700;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.2);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(34, 197, 94, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.pulse-reels-close-btn {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.pulse-reels-close-btn:hover {
  background: rgba(239, 68, 68, 0.8);
  border-color: #ef4444;
}

.pulse-reels-nav-btn {
  position: absolute;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  z-index: 20;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}
.pulse-reels-nav-btn:hover {
  background: #2563eb;
  border-color: #60a5fa;
  transform: scale(1.1);
}
.pulse-reels-nav-btn.prev {
  top: 50%;
  transform: translateY(-50px);
}
.pulse-reels-nav-btn.next {
  top: 50%;
  transform: translateY(10px);
}

.pulse-reels-hud {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 24px 16px 20px;
  background: linear-gradient(0deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 60%, rgba(0,0,0,0) 100%);
}

.pulse-hud-card {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 16px 72px 16px 16px; /* Article 48 & Article 53: 72px clearance for right rail action buttons */
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.pulse-hud-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 2px 8px;
  border-radius: 9999px;
  margin-bottom: 8px;
}

.pulse-hud-product-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.pulse-hud-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.pulse-hud-wholesale-price {
  font-size: 22px;
  font-weight: 900;
  color: #4ade80;
  letter-spacing: -0.5px;
}

.pulse-hud-mrp {
  font-size: 12.5px;
  color: #94a3b8;
  text-decoration: line-through;
}

.pulse-hud-margin-badge {
  font-size: 10px;
  font-weight: 800;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.pulse-hud-actions {
  display: flex;
  gap: 8px;
}

.pulse-btn-clone {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.pulse-btn-clone:hover {
  background: rgba(255, 255, 255, 0.22);
}

.pulse-btn-order {
  flex: 1.2;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: none;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.pulse-btn-order:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  transform: translateY(-1px);
}

/* ── Interactive B2B Order Sheet Modal ─────────────────────────────── */
.pulse-order-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.pulse-order-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.pulse-order-sheet {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 24px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pulse-shortfall-alert {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

/* ── Reel Right Rail Actions (4-Launcher Cap & TikTok Parity) ── */
.pulse-reels-right-rail {
  position: absolute;
  right: 14px;
  bottom: 230px;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.pulse-rail-action-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.pulse-rail-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.pulse-rail-btn:hover {
  transform: scale(1.1);
  background: rgba(37, 99, 235, 0.85);
  border-color: #60a5fa;
}

.pulse-rail-btn.active {
  background: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
  color: #f87171;
  animation: pulseHeartPop 0.35s ease;
}

@keyframes pulseHeartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.pulse-rail-count {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* ── Reel Comments Slide-Up Sheet ─────────────────────────────────── */
.pulse-comments-drawer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 35%;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px 24px 0 0;
  z-index: 35;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
}

.pulse-comments-drawer.open {
  transform: translateY(0);
}

.pulse-comments-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pulse-comments-header h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-comments-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pulse-comment-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 14px;
}

.pulse-comment-user {
  font-size: 12px;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
}

.pulse-comment-text {
  font-size: 13px;
  color: #e2e8f0;
  line-height: 1.4;
  margin: 0;
}

.pulse-comments-input-bar {
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 10px;
  background: rgba(15, 23, 42, 0.9);
}

.pulse-comments-input-bar input {
  flex: 1;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  color: #fff;
  outline: none;
}

.pulse-comments-input-bar input:focus {
  border-color: #38bdf8;
}

.pulse-comments-input-bar button {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.pulse-comments-input-bar button:hover {
  transform: scale(1.05);
}

/* ── Product Catalog Picker Modal & Saved Drafts ──────────────────────── */
.pulse-picker-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.pulse-picker-modal-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  width: 100%;
  max-width: 580px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.pulse-picker-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pulse-picker-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.pulse-picker-body {
  padding: 16px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pulse-picker-search {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #1e293b;
  color: #fff;
  font-size: 13.5px;
  outline: none;
}

.pulse-picker-search:focus {
  border-color: #38bdf8;
}

.pulse-picker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pulse-picker-item:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: #3b82f6;
  transform: translateX(2px);
}

.pulse-draft-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pulse-draft-chip:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
}

.pulse-draft-chip .del-btn {
  color: #ef4444;
  cursor: pointer;
  font-size: 13px;
  padding: 0 2px;
}

.pulse-draft-chip .del-btn:hover {
  color: #f87171;
}



/* Double-Tap Heart Burst Overlay */
.pulse-floating-heart {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.2);
  font-size: 80px;
  pointer-events: none;
  z-index: 100;
  user-select: none;
  animation: pulseHeartPop 0.8s ease-out forwards;
}

@keyframes pulseHeartPop {
  0% { transform: translate(-50%, -50%) scale(0.2); opacity: 0; }
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

/* UGC Reels & Connect Media Moderation */
.pulse-ugc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
}

.pulse-ugc-card {
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 12px;
  padding: 14px;
  background: var(--bg-surface-elevated, #fff);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .pulse-ugc-card {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.pulse-ugc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

