/* ── Landing Header Actions ─────────────────────── */

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

.header-login {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.header-login:hover {
  color: #fff;
}

.header-signup {
  font-size: 0.875rem;
  font-weight: 500;
  background: #fff;
  color: #000;
  padding: 6px 16px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.header-signup:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* ── Hero Section ────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px 16px 80px;
  overflow: hidden;
}

/* Video background (full page) */
.page-video-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transform: scale(1.1);
}

/* Ambient glow */
.hero-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 768px;
  height: 500px;
  background: rgba(99, 102, 241, 0.1);
  filter: blur(120px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1024px;
  width: 100%;
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero-title .gradient-text {
  background: linear-gradient(to right, #818cf8, #a78bfa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  padding-right: 16px;
}

.hero-subtitle {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  max-width: 768px;
  margin: 0 auto 48px;
}

/* ── Code Input (hero) ───────────────────────────── */
.hero-code-form {
  position: relative;
  max-width: 448px;
  width: 100%;
  margin: 0 auto 64px;
  display: flex;
  align-items: center;
}

.hero-code-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 16px 96px 16px 24px;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 1.125rem;
  letter-spacing: 0.15em;
  text-align: center;
  outline: none;
  transition: all 0.2s;
}

.hero-code-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
  font-family: "Inter", sans-serif;
}

.hero-code-input:focus {
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.15);
}

.hero-join-btn {
  position: absolute;
  right: 8px;
  top: 8px;
  bottom: 8px;
  padding: 0 24px;
  font-weight: 600;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
}

.hero-join-btn.active {
  background: #fff;
  color: #000;
}

.hero-join-btn.active:hover {
  background: rgba(236, 254, 255, 1);
}

/* ── Feedback Icons ──────────────────────────────── */
.feedback-icons {
  display: flex;
  justify-content: center;
  gap: 32px;
  opacity: 0.8;
  margin-bottom: 64px;
}

.feedback-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.feedback-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.feedback-circle.helpful {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.feedback-circle.insightful {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.feedback-circle.unclear {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.feedback-label {
  font-size: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.5);
}

/* ── Presenter CTA ───────────────────────────────── */
.presenter-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 672px;
  margin: 0 auto;
  width: 100%;
}

.presenter-cta-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.presenter-cta-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-create {
  padding: 12px 32px;
  background: #6366f1;
  color: #fff;
  font-weight: 600;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 1rem;
  box-shadow: 0 0 20px -5px rgba(99, 102, 241, 0.4);
}

.btn-create:hover {
  background: #4f46e5;
}

.btn-login {
  padding: 12px 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 600;
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 1rem;
}

.btn-login:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 640px) {
  .feedback-icons {
    gap: 16px;
  }

  .presenter-cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-create, .btn-login {
    width: 100%;
    text-align: center;
  }
}

/* ── Home Page (Authenticated) ──────────────────── */

.home-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 16px 16px 96px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Authenticated header user section */
.header-user {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.header-help-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.header-help-btn:hover {
  color: #fff;
}

.header-help-btn svg {
  width: 24px;
  height: 24px;
  display: block;
}

.header-avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  padding: 0;
  transition: border-color 0.2s;
}

.header-avatar-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

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

.header-user-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: rgba(20, 20, 26, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 8px;
  z-index: 100;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.header-user-menu.open {
  display: block;
}

.header-menu-user {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 4px;
}

.header-menu-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: #fff;
}

.header-menu-email {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

.header-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}

.header-menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.header-menu-item.danger {
  color: #f87171;
}

.header-menu-item.danger:hover {
  background: rgba(248, 113, 113, 0.1);
}

.header-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin: 4px 0;
}

/* Profile header card */
.home-profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.home-profile-left {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 32px;
}

.home-profile-avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  position: relative;
}

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

.avatar-edit-btn {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #1a1a2e;
  background: rgba(99, 102, 241, 0.9);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s;
  z-index: 2;
}

.avatar-edit-btn:hover {
  background: rgba(129, 132, 255, 1);
}

.avatar-spinner[hidden] {
  display: none;
}

.avatar-spinner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.avatar-spinner-ring {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: avatar-spin 0.7s linear infinite;
}

@keyframes avatar-spin {
  to { transform: rotate(360deg); }
}

.home-profile-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-profile-name {
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.home-profile-bio {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 28rem;
  line-height: 1.6;
}

.home-profile-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 24px 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  flex-shrink: 0;
}

.home-profile-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 60px;
}

.home-profile-stat-value {
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

.home-profile-stat-label {
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.home-profile-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
}

.home-create-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 64px;
  background: #fff;
  color: #000;
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 25px 50px -12px rgba(255, 255, 255, 0.05);
  white-space: nowrap;
  overflow: hidden;
}

.home-create-btn:hover {
  background: #3b82f6;
  color: #fff;
}

.home-create-btn:active {
  transform: scale(0.98);
}

.home-create-btn svg {
  width: 18px;
  height: 18px;
}

/* Presentations section */
.home-pres-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
}

.home-section-title {
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.home-pres-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 16px;
}

.home-pres-grid:not([hidden]) {
  display: grid;
}

.home-pres-empty {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  margin-top: 16px;
}

.home-pres-empty:not([hidden]) {
  display: flex;
}

.home-pres-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-pres-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.home-pres-thumb .thumb-no-image-placeholder {
  position: absolute;
  inset: 0;
}

.home-pres-thumb.thumb-no-image::before,
.home-pres-thumb .thumb-no-image-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.15)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='20' height='14' rx='2'/%3E%3Cline x1='8' y1='21' x2='16' y2='21'/%3E%3Cline x1='12' y1='17' x2='12' y2='21'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 40%;
}

.home-pres-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-pres-card:hover .home-pres-thumb img {
  transform: scale(1.05);
}

.home-pres-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  transition: background 0.5s;
}

.home-pres-card:hover .home-pres-thumb-overlay {
  background: rgba(0, 0, 0, 0.4);
}

.home-pres-lock-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  padding: 6px;
  border-radius: 9999px;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.home-pres-lock-btn:hover {
  background: rgba(0, 0, 0, 0.4);
}

.home-pres-lock-btn:active {
  background: rgba(0, 0, 0, 0.6);
}

.home-pres-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 4px;
}

.home-modal-thumb-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.home-modal-thumb-preview[hidden] {
  display: none;
}

.home-modal-thumb-preview img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.thumb-change-link {
  background: none;
  border: none;
  color: #818cf8;
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: underline;
}

.thumb-change-link:hover {
  color: #a5b4fc;
}

.thumb-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
  gap: 8px;
}

.thumb-spinner[hidden] {
  display: none;
}

.thumb-spinner-ring {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: #818cf8;
  border-radius: 50%;
  animation: avatar-spin 0.7s linear infinite;
}

.home-pres-title {
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: color 0.2s;
}

.home-pres-title:hover {
  color: #60a5fa;
}

.home-pres-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-pres-meta-text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

.home-pres-meta-code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.15em;
}

.home-pres-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-pres-open-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-weight: 400;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.home-pres-open-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

.home-pres-open-btn:active {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.7);
}

/* Three-dot menu */
.home-pres-menu-wrap {
  position: relative;
  flex-shrink: 0;
}

.home-btn-menu {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.home-btn-menu:hover {
  background: rgba(255, 255, 255, 0.1);
}

.home-btn-menu.is-open {
  background: rgba(255, 255, 255, 0.2);
}

.home-pres-menu-dropdown {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  width: 192px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  z-index: 30;
  padding: 8px 0;
  overflow: hidden;
}

.home-pres-menu-dropdown[hidden] {
  display: none;
}

.home-pres-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  font-size: 0.875rem;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
}

.home-pres-menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.home-pres-menu-item.home-menu-delete {
  color: #f87171;
}

/* Create presentation modal */
.home-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.home-modal-overlay.open {
  display: flex;
}

.home-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.home-modal {
  position: relative;
  width: 100%;
  max-width: 512px;
  background: #14141a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  padding: 32px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.home-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.home-modal-form {
  flex-direction: column;
  gap: 24px;
}

.home-modal-form:not([hidden]) {
  display: flex;
}

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

.home-modal-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
  margin-left: 8px;
}

.home-modal-input,
.home-modal-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.home-modal-input::placeholder,
.home-modal-textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.home-modal-input:focus,
.home-modal-textarea:focus {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.home-modal-textarea {
  height: 128px;
  resize: none;
}

.home-modal-buttons {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.home-modal-cancel {
  flex: 1;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.home-modal-cancel:hover {
  background: rgba(255, 255, 255, 0.1);
}

.home-modal-submit {
  flex: 1;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  color: #000;
  font-weight: 700;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.home-modal-submit:hover {
  background: rgba(255, 255, 255, 0.9);
}

.home-modal-submit:active {
  transform: scale(0.98);
}

.home-modal-submit:disabled {
  opacity: 0.5;
  cursor: default;
}

/* Drop zone */
.home-modal-dropzone {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 16px;
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.home-modal-dropzone:not([hidden]) {
  display: flex;
}

.home-modal-dropzone:hover {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(99, 102, 241, 0.05);
}

.home-modal-dropzone.drag-over {
  border-color: rgba(99, 102, 241, 0.7);
  background: rgba(99, 102, 241, 0.1);
}

.home-modal-dropzone svg {
  color: rgba(255, 255, 255, 0.4);
}

.dropzone-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.dropzone-hint {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

.dropzone-file {
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 12px;
}

.dropzone-file:not([hidden]) {
  display: flex;
}

.dropzone-file-name {
  flex: 1;
  font-size: 0.875rem;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropzone-file-size {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.dropzone-file-remove {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.15s;
}

.dropzone-file-remove:hover {
  color: #ef4444;
}

/* Modal error */
.home-modal-error {
  font-size: 0.8125rem;
  color: #ef4444;
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
}

/* Modal progress bar */
.home-modal-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.home-modal-progress-bar {
  height: 100%;
  width: 0%;
  background: #6366f1;
  border-radius: 2px;
  transition: width 0.2s;
}

/* Success state */
.home-modal-success {
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 16px 0;
}

.home-modal-success:not([hidden]) {
  display: flex;
}

.success-icon {
  margin-bottom: 4px;
}

.success-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.success-code-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
}

.success-code {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #6366f1;
  font-family: "SF Mono", "Fira Code", monospace;
}

.success-link-row {
  display: flex;
  width: 100%;
  gap: 8px;
}

.success-link {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8125rem;
  font-family: "SF Mono", "Fira Code", monospace;
  outline: none;
  min-width: 0;
}

.success-copy-btn {
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 600;
  font-size: 0.8125rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.success-copy-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.success-done-btn {
  margin-top: 8px;
  width: 100%;
}

/* Rename modal */
.home-rename-modal {
  max-width: 448px;
}

.home-rename-modal .home-modal-title {
  margin-bottom: 20px;
}

.home-rename-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.home-rename-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
  outline: none;
  resize: none;
  transition: border-color 0.2s;
}

.home-rename-textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.home-rename-textarea:focus {
  border-color: #3b82f6;
}

.home-rename-save:hover {
  background: #3b82f6 !important;
  color: #fff !important;
}

.home-rename-save:active {
  background: #2563eb !important;
}

/* Share modal */
.home-share-modal {
  max-width: 512px;
}

.home-share-header {
  margin-bottom: 24px;
  justify-content: space-between;
}

.home-share-header .home-modal-title {
  margin-bottom: 0;
}

/* Privacy toggle row */
.home-share-privacy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 20px;
}

.home-share-privacy-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.home-share-privacy-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
  transition: background 0.5s, color 0.5s, box-shadow 0.5s;
  flex-shrink: 0;
}

.home-share-privacy-icon.is-private {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: none;
}

.home-share-privacy-icon .share-icon-globe { display: block; }
.home-share-privacy-icon .share-icon-lock  { display: none;  }
.home-share-privacy-icon.is-private .share-icon-globe { display: none;  }
.home-share-privacy-icon.is-private .share-icon-lock  { display: block; }

.home-share-privacy-label {
  font-size: 1.25rem;
  font-weight: 500;
  color: #fff;
}

/* Toggle button */
.home-share-toggle {
  position: relative;
  width: 64px;
  height: 36px;
  border-radius: 9999px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.4s;
}

.home-share-toggle.is-on {
  background: #10b981;
}

.home-share-toggle-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.home-share-toggle.is-on .home-share-toggle-thumb {
  transform: translateX(28px);
}

/* Description */
.home-share-desc {
  font-size: 0.875rem;
  color: #fff;
  line-height: 1.6;
  padding: 0 8px;
  margin-bottom: 20px;
}

.home-share-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.home-share-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.home-share-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s;
}

.home-share-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.home-share-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-share-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.4);
}

.home-share-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-share-code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 1.5rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.1em;
}

.home-share-link {
  font-size: 0.875rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.home-share-copy-btn {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.625rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.home-share-copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.home-share-copy-btn:active {
  background: rgba(255, 255, 255, 0.3);
}

.home-share-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
}

/* Delete confirmation modal */
.home-delete-modal {
  max-width: 448px;
}

.home-modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.home-delete-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ef4444;
}

.home-delete-message {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #fff;
  margin-bottom: 32px;
}

.home-delete-message span {
  font-weight: 600;
  color: #fff;
}

.home-delete-buttons {
  flex-direction: column-reverse;
  gap: 12px;
}

.home-delete-submit {
  background: #ef4444 !important;
  color: #fff !important;
}

.home-delete-submit:hover {
  background: #dc2626 !important;
}

.home-delete-submit:active {
  background: #b91c1c !important;
}

@media (min-width: 641px) {
  .home-delete-buttons {
    flex-direction: row;
    gap: 16px;
  }
}

/* Toast notification */
.home-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1e1e2a;
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 200;
}

.home-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Home page responsive */
@media (min-width: 641px) {
  .home-container {
    padding: 16px 24px 96px;
  }
}

@media (min-width: 1025px) {
  .home-container {
    padding: 16px 32px 96px;
  }
}

@media (max-width: 1024px) {
  .home-pres-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .home-profile {
    flex-direction: column;
  }

  .home-profile-left {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .home-profile-bio {
    max-width: none;
  }

  .home-profile-name {
    font-size: 2rem;
  }

  .home-profile {
    gap: 16px;
  }

  .home-profile-stats {
    width: 100%;
  }

  .home-profile-stat-divider {
    display: none;
  }

  .home-pres-header-row {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .home-create-btn {
    justify-content: center;
  }

  .home-pres-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Preview Page ─────────────────────────────────── */

.preview-content-state[hidden],
.preview-viewer[hidden] {
  display: none;
}

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

@keyframes preview-spin {
  to { transform: rotate(360deg); }
}

.preview-content-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  gap: 16px;
  text-align: center;
  padding: 24px;
}

.preview-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: #fff;
  border-radius: 50%;
  animation: preview-spin 0.8s linear infinite;
}

.preview-error-heading {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.preview-error-body {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 28rem;
  line-height: 1.5;
}

.preview-container {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #0a0a0a;
  z-index: 1;
}

.preview-topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 56px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.preview-logo {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}

.preview-topbar-center {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-leave-btn {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  padding: 6px 12px;
  background: none;
  border: 1px solid #ef4444;
  border-radius: 9999px;
  color: #ef4444;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.live-leave-btn:hover {
  color: #dc2626;
  border-color: #dc2626;
}

.live-leave-btn[hidden] {
  display: none;
}

.preview-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-owner-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
}

.live-badge {
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  margin-left: 8px;
}

.preview-close-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.preview-topbar .preview-close-btn {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.preview-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.preview-close-btn svg {
  width: 14px;
  height: 14px;
}

.preview-slide-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
  min-height: 0;
}

.preview-slide-frame {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-slide-frame canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.preview-nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.preview-nav-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(226, 232, 240, 0.45);
  color: #fff;
}

.preview-nav-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.preview-nav-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.live-nav-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  color: #fff;
  flex-shrink: 0;
}

.preview-page-indicator {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
  min-width: 60px;
  text-align: center;
}

.preview-footer {
  padding: 8px 24px;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  line-height: 1.6;
}

.preview-footer a {
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.15s;
}

.preview-footer a:hover {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .preview-topbar {
    padding: 0 12px;
    height: 48px;
  }

  .preview-logo {
    left: 12px;
  }

  .preview-topbar .preview-close-btn {
    right: 12px;
  }

  .preview-slide-area {
    padding: 12px;
  }

  .preview-nav-btn {
    padding: 10px 16px;
  }

  .live-panel-nav .preview-nav-btn span {
    display: none;
  }

  .preview-footer {
    padding: 6px 16px;
  }

  .live-leave-btn {
    right: 12px;
  }

  .live-ended-card {
    padding: 24px;
  }
}

@media (min-width: 641px) {
  .live-ended-card {
    padding: 32px;
  }
}

/* --- Live Mode (Presenter) --- */

/* Ensure hidden attribute works on elements with explicit display */
.home-share-card[hidden],
.live-panel[hidden],
.live-audience-count[hidden],
.live-counts-bar[hidden],
.live-feed-panel[hidden],
.live-feed-toggle[hidden],
.live-feed-badge[hidden],
.live-name-modal[hidden] {
    display: none;
}

.live-panel {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 0px 32px 16px 32px;
    background: #000;
}

.live-panel-actions,
.live-panel-status,
.live-panel-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.live-panel-actions,
.live-panel-nav {
    flex: 1 1 0;
}

.live-panel-actions {
    justify-content: flex-start;
}

.live-panel-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    min-width: 0;
}

.live-panel-status {
    flex: 0 1 auto;
    justify-content: center;
}

.live-panel-nav {
    justify-content: flex-end;
}

.live-status-cluster {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-width: 0;
    max-width: 100%;
}

.live-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}

.live-toggle-btn:hover { background: #4f46e5; }
.live-toggle-btn.active { background: #dc2626; }
.live-toggle-btn.active:hover { background: #b91c1c; }

.live-close-btn {
    position: static;
    right: auto;
    top: auto;
    transform: none;
    flex-shrink: 0;
}

.live-secondary-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 9999px;
    font: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.live-secondary-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(226, 232, 240, 0.45);
    color: #fff;
}

.live-toggle-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
}

.live-toggle-btn.active .live-toggle-dot {
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.live-audience-count {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin-left: 8px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.live-audience-icon {
    width: 16px;
    height: 16px;
    color: #94a3b8;
    flex-shrink: 0;
}

.live-audience-count em {
    font-style: normal;
    font-weight: 600;
    color: #fff;
    min-width: 1ch;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.live-counts-bar {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 10px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: #e2e8f0;
    font-size: 0.9rem;
}

.live-count {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
}

.live-count:first-child {
    padding-left: 0;
}

.live-count:last-child {
    padding-right: 0;
}

.live-count + .live-count::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 18px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
}

.live-count-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.live-count[data-kind="helpful"] .live-count-icon,
.live-count[data-kind="insightful"] .live-count-icon {
    color: #60a5fa;
}

.live-count[data-kind="unclear"] .live-count-icon,
.live-count[data-kind="too_fast"] .live-count-icon {
    color: #fbbf24;
}

.live-count em {
    font-style: normal;
    font-weight: 600;
    min-width: 1.4ch;
    color: #fff;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.live-status-clock {
    display: inline-flex;
    align-items: center;
    padding: 10px 0;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}

.live-page-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    padding: 8px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

@media (max-width: 980px) {
    .live-panel {
        gap: 12px;
        padding: 10px 12px;
    }

    .live-panel-actions,
    .live-panel-status,
    .live-panel-nav {
        width: 100%;
    }

    .live-panel-actions,
    .live-status-cluster {
        flex-wrap: wrap;
    }

    .live-panel-actions {
        justify-content: space-between;
    }

    .live-panel-status {
        justify-content: center;
    }

    .live-panel-nav {
        justify-content: flex-end;
    }

    .live-counts-bar {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 10px;
    }
}

/* Activity Feed */
.live-feed-toggle {
    position: fixed;
    right: 16px;
    bottom: 80px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #334155;
    color: #e2e8f0;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.live-feed-toggle svg {
    width: 22px;
    height: 22px;
}

.live-feed-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 9999px;
    min-width: 18px;
    text-align: center;
}

.live-feed-panel {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 320px;
    background: #1e293b;
    border-left: 1px solid #334155;
    display: flex;
    flex-direction: column;
    z-index: 30;
}

.live-feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    color: #e2e8f0;
    font-weight: 600;
    border-bottom: 1px solid #334155;
}

.live-feed-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 4px;
}

.live-feed-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.live-feed-item {
    padding: 8px 12px;
    color: #cbd5e1;
    font-size: 0.8rem;
    border-bottom: 1px solid #1e293b;
    line-height: 1.4;
}

.live-feed-item:first-child {
    animation: feed-in 0.3s ease;
}

@keyframes feed-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Live Interaction (Audience) --- */
.live-interaction-bar {
    width: 100%;
    max-width: min(100%, calc((100vh - 240px) * 16 / 9));
    margin: 4px auto 0;
    padding: 4px 8px 6px;
}

.live-action-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.live-action-pager {
    order: 1;
    min-width: 80px;
}

.live-action-pager .preview-page-indicator {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    min-width: 80px;
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.92);
}

.live-reactions {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 8px;
}

.live-reactions-positive {
    order: 2;
}

.live-reactions-negative {
    order: 3;
}

.live-reaction-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 138px;
    padding: 6px 12px 6px 4px;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 9999px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.live-reaction-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.live-reaction-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.live-reaction-label {
    white-space: nowrap;
}

.live-reaction-btn[data-tone="positive"] .live-reaction-icon {
    color: #60a5fa;
}

.live-reaction-btn[data-tone="negative"] .live-reaction-icon {
    color: #fbbf24;
}

.live-reaction-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.live-reaction-btn[data-tone="positive"]:hover {
    border-color: #3b82f6;
}

.live-reaction-btn[data-tone="negative"]:hover {
    border-color: #f59e0b;
}

.live-reaction-btn.active {
    color: #fff;
}

.live-reaction-btn[data-tone="positive"].active {
    border-color: #3b82f6;
}

.live-reaction-btn[data-tone="negative"].active {
    border-color: #f59e0b;
}

@media (min-width: 640px) {
    .live-interaction-bar {
        padding: 8px 0 10px;
        margin-top: 8px;
    }

    .live-action-layout {
        flex-direction: row;
        gap: 16px;
    }

    .live-reactions {
        width: auto;
        gap: 12px;
    }

    .live-reactions-positive {
        order: 1;
        justify-content: flex-end;
    }

    .live-action-pager {
        order: 2;
    }

    .live-reactions-negative {
        order: 3;
        justify-content: flex-start;
    }
}

@media (min-width: 1024px) {
    .live-interaction-bar {
        margin-top: 16px;
        padding-bottom: 8px;
    }

    .live-action-layout {
        gap: 32px;
    }
}

/* Status Banners */
.live-status-banner {
    padding: 10px;
    text-align: center;
    background: #f59e0b;
    color: #1e293b;
    font-size: 0.85rem;
    font-weight: 600;
}

/* --- Live Waiting State --- */
.live-waiting-heading {
    font-size: 1.75rem;
    font-weight: 500;
    color: #fff;
    letter-spacing: -0.025em;
}

.live-waiting-body {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 32rem;
    line-height: 1.5;
}

/* --- Live Ended State --- */
.live-ended-card {
    background: rgba(10, 10, 15, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(64px);
    -webkit-backdrop-filter: blur(64px);
    border-radius: 32px;
    padding: 24px;
    text-align: center;
    max-width: 28rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.live-ended-header {
    margin-bottom: 16px;
}

.live-ended-heading {
    font-size: 1.75rem;
    font-weight: 500;
    color: #fff;
    letter-spacing: -0.025em;
    margin-bottom: 8px;
}

.live-ended-body {
    font-size: 1rem;
    color: #fff;
    line-height: 1.5;
}

.live-ended-feedback-section {
    width: 100%;
    margin-top: 24px;
}

.live-ended-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 32px;
}

.live-ended-subheading {
    font-size: 1.25rem;
    font-weight: 500;
    color: #fff;
    letter-spacing: -0.025em;
    margin-bottom: 8px;
}

.live-ended-feedback-label {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 16px;
}

.live-ended-feedback-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.live-ended-feedback-form[hidden] {
    display: none;
}

.live-ended-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 400;
    font-family: inherit;
    resize: none;
    height: 112px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.15s;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.live-ended-textarea:hover {
    background: rgba(255, 255, 255, 0.1);
}

.live-ended-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.live-ended-textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.5);
    border-color: rgba(99, 102, 241, 0.5);
}

.live-ended-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px auto 0;
    padding: 12px 64px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 0 10px rgba(255, 255, 255, 0.05);
}

.live-ended-submit:hover {
    background: #3b82f6;
    color: #fff;
}

.live-ended-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    padding: 24px 0;
}

.live-ended-success[hidden] {
    display: none;
}

.live-ended-success-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #34d399;
}

.live-ended-success-text {
    font-size: 1rem;
    color: #fff;
}

.live-ended-success-sub {
    font-size: 1rem;
    color: #fff;
    margin-top: 4px;
}

.live-ended-home-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin-top: 24px;
    text-decoration: none;
    transition: all 0.15s;
}

.live-ended-home-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* Name Prompt Modal */
.live-name-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.live-name-modal-content {
    background: #1e293b;
    border-radius: 12px;
    padding: 24px;
    width: 320px;
    max-width: 90vw;
}

.live-name-modal-title {
    color: #e2e8f0;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.live-name-input {
    width: 100%;
    padding: 10px 12px;
    background: #334155;
    color: #e2e8f0;
    border: 1px solid #475569;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.live-name-input:focus { border-color: #6366f1; }

.live-name-modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.live-name-skip {
    padding: 8px 16px;
    background: none;
    color: #94a3b8;
    border: 1px solid #475569;
    border-radius: 8px;
    cursor: pointer;
}

.live-name-save {
    padding: 8px 16px;
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* Toast */
.live-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: #334155;
    color: #e2e8f0;
    padding: 8px 20px;
    border-radius: 9999px;
    font-size: 0.8rem;
    z-index: 40;
    animation: toast-in 0.3s ease;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ============================================================
   Preview Page (PresentationView)
   ============================================================ */

.pv-page {
    margin: 0;
    padding: 0;
    background: #121212;
    color: #fff;
    overflow: hidden;
    height: 100dvh;
}

/* Loading / Error */
.pv-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100dvh;
    gap: 16px;
    color: rgba(255,255,255,0.6);
    background: #121212;
}
.pv-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100dvh;
    gap: 12px;
    color: rgba(255,255,255,0.6);
    background: #121212;
}
.pv-loading[hidden],
.pv-error[hidden] { display: none; }
.pv-error-msg {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
}

/* Container */
.pv-container {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    overflow: hidden;
}
.pv-container[hidden] { display: none; }

/* Header */
.pv-header {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: #0a0a0a;
    flex-shrink: 0;
    position: relative;
    z-index: 50;
}
@media (min-width: 640px) {
    .pv-header { padding: 0 24px; }
}

.pv-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
    margin-right: 16px;
}
@media (min-width: 640px) {
    .pv-header-left { gap: 24px; }
}

.pv-back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 8px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.15s;
    flex-shrink: 0;
}
.pv-back-btn:hover { color: #fff; }
.pv-back-label {
    font-size: 0.875rem;
    font-weight: 500;
}
@media (max-width: 639px) {
    .pv-back-label { display: none; }
}

.pv-header-divider {
    width: 1px;
    height: 16px;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}
@media (max-width: 639px) {
    .pv-header-divider { display: none; }
}

.pv-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    margin: 0;
}

/* Desktop Actions */
.pv-actions {
    display: none;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
@media (min-width: 768px) {
    .pv-actions { display: flex; }
    .pv-mobile-actions { display: none !important; }
}
@media (min-width: 640px) {
    .pv-actions { gap: 12px; }
}

.pv-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: rgba(255,255,255,0.85);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.pv-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.pv-btn-icon {
    padding: 0;
    width: 40px;
    justify-content: center;
}

.pv-lock-icon {
    margin-left: 4px;
    color: #fff;
}

.pv-lock-icon[hidden] {
    display: none;
}

.pv-btn-present {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 24px;
    background: #2563eb;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    box-shadow: 0 4px 14px rgba(37,99,235,0.2);
    white-space: nowrap;
}
.pv-btn-present:hover {
    background: #3b82f6;
}
.pv-btn-present:disabled {
    opacity: 0.55;
    cursor: default;
    background: #2563eb;
}

/* Mobile Actions */
.pv-mobile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pv-mobile-menu-wrap {
    position: relative;
}

.pv-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 192px;
    background: #181818;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    z-index: 50;
    overflow: hidden;
    padding: 8px 0;
}
.pv-dropdown[hidden] { display: none; }

.pv-dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.pv-dropdown-item:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.pv-mobile-present {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2563eb;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s;
    box-shadow: 0 4px 14px rgba(37,99,235,0.2);
}
.pv-mobile-present:hover {
    background: #3b82f6;
}
.pv-mobile-present:disabled {
    opacity: 0.55;
    cursor: default;
    background: #2563eb;
}

/* Main Content Area */
.pv-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #121212;
}
@media (min-width: 1024px) {
    .pv-main { flex-direction: row; }
}

/* Thumbnail Sidebar */
.pv-sidebar {
    order: 2;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: #181818;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 12px;
    flex-shrink: 0;
}
@media (min-width: 1024px) {
    .pv-sidebar {
        order: 1;
        width: 256px;
        border-top: none;
        border-right: 1px solid rgba(255,255,255,0.05);
        overflow-x: hidden;
        overflow-y: auto;
        padding: 16px;
    }
}

.pv-sidebar::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
.pv-sidebar::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.02);
}
.pv-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    border: 2px solid #181818;
}
.pv-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.2);
}

.pv-thumb-list {
    display: flex;
    flex-direction: row;
    gap: 12px;
}
@media (min-width: 1024px) {
    .pv-thumb-list {
        flex-direction: column;
        gap: 16px;
        width: 100%;
        box-sizing: border-box;
    }
}

/* Individual Thumbnail */
.pv-thumb {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: all 0.15s;
}
@media (min-width: 1024px) {
    .pv-thumb {
        gap: 12px;
        width: 100%;
        min-width: 0;
    }
}

.pv-thumb-num {
    width: 20px;
    font-size: 0.7rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
    text-align: center;
    flex-shrink: 0;
    color: rgba(255,255,255,0.4);
    transition: color 0.15s;
}
@media (min-width: 1024px) {
    .pv-thumb-num { font-size: 0.75rem; }
}
.pv-thumb.selected .pv-thumb-num {
    color: rgba(255,255,255,0.9);
}

.pv-thumb-media {
    position: relative;
    flex-shrink: 0;
    width: 120px;
}
@media (min-width: 1024px) {
    .pv-thumb-media {
        width: 0;
        flex: 1 1 0;
        min-width: 0;
    }
}

.pv-thumb-canvas {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.05);
    transition: border-color 0.15s;
    display: block;
}
@media (min-width: 1024px) {
    .pv-thumb-canvas {
        width: 100%;
    }
}
.pv-thumb:hover .pv-thumb-canvas {
    border-color: rgba(255,255,255,0.2);
}
.pv-thumb.selected .pv-thumb-canvas {
    border-color: #2563eb;
    border-width: 3px;
}

.pv-thumb-indicators {
    position: absolute;
    right: 6px;
    bottom: 6px;
    display: flex;
    gap: 4px;
    z-index: 2;
    pointer-events: none;
}
@media (min-width: 1024px) {
    .pv-thumb-indicators {
        right: 8px;
        bottom: 8px;
    }
}

.pv-thumb-indicator {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 1.5px solid rgba(255,255,255,0.92);
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}
@media (min-width: 1024px) {
    .pv-thumb-indicator {
        width: 16px;
        height: 16px;
    }
}

.pv-thumb-indicator-positive {
    background: #3b82f6;
}

.pv-thumb-indicator-negative {
    background: #f59e0b;
}

/* Selection indicator — vertical bar on desktop */
.pv-thumb::before {
    content: '';
    position: absolute;
    border-radius: 4px;
    background: #2563eb;
    opacity: 0;
    transition: opacity 0.15s;
}
@media (min-width: 1024px) {
    .pv-thumb::before {
        left: -16px;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 32px;
    }
}
/* Horizontal bar on mobile */
@media (max-width: 1023px) {
    .pv-thumb::before {
        bottom: -12px;
        left: 50%;
        transform: translateX(-50%);
        height: 4px;
        width: 32px;
    }
}
.pv-thumb:hover::before { opacity: 0.5; }
.pv-thumb.selected::before { opacity: 1; }

/* Non-selected dimming */
.pv-thumb:not(.selected) .pv-thumb-canvas {
    filter: brightness(0.5);
}
.pv-thumb:hover:not(.selected) .pv-thumb-canvas {
    filter: brightness(0.7);
}

/* Slide Stage */
.pv-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow: hidden;
    order: 1;
    min-height: 0;
}
@media (min-width: 1024px) {
    .pv-stage {
        order: 2;
        padding: 48px;
    }
}
@media (min-width: 640px) and (max-width: 1023px) {
    .pv-stage { padding: 24px; }
}
@media (max-width: 1023px) {
    .pv-stage {
        flex: none;
        padding: 12px 16px;
    }
    .pv-sidebar {
        flex: none;
    }
}

.pv-canvas-wrap {
    max-width: 1280px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
    position: relative;
}

.pv-canvas-wrap canvas {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.pv-container.is-presenting .pv-header,
.pv-container.is-presenting .pv-sidebar,
.pv-container.is-presenting .pv-reaction-bar {
    display: none !important;
}

.pv-container.is-presenting .pv-main {
    flex: 1;
    min-height: 0;
    flex-direction: column;
    order: 1;
}

.pv-container.is-presenting .live-panel {
    order: 2;
    margin-top: auto;
}

.pv-container.is-presenting .pv-stage {
    flex: 1;
    order: 1;
    min-height: 0;
    padding: 20px;
}

.pv-container.is-presenting .pv-canvas-wrap {
    width: auto;
    max-width: 100%;
    max-height: 100%;
}

@media (min-width: 1024px) {
    .pv-container.is-presenting .pv-stage {
        padding: 24px 32px 32px;
    }
}

.pv-reaction-bar {
    border: none;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}

.pv-reaction-bar[hidden] {
    display: none;
}

.pv-reaction-bar:hover {
    color: #fff;
}

.pv-reaction-bar-desktop {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: none;
    align-items: center;
    gap: 16px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 999px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.45);
    z-index: 2;
}

.pv-reaction-bar-desktop:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255,255,255,0.4);
}

.pv-reaction-bar-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pv-reaction-stat {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pv-reaction-value {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}

.pv-reaction-label {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.62);
    transition: color 0.15s;
    white-space: nowrap;
}

.pv-reaction-bar-desktop:hover .pv-reaction-label {
    color: rgba(255,255,255,0.86);
}

.pv-reaction-divider {
    width: 1px;
    height: 12px;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.pv-reaction-stat-positive .pv-reaction-value {
    color: #60a5fa;
}

.pv-reaction-stat-negative .pv-reaction-value {
    color: #fbbf24;
}

.pv-reaction-bar-mobile {
    width: 100%;
    margin-top: 16px;
    display: block;
    padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
}

.pv-reaction-bar-mobile:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.12);
}

.pv-reaction-bar-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
}

.pv-reaction-mobile-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
}

.pv-reaction-mobile-value {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.1;
}

.pv-reaction-mobile-label {
    font-size: 0.625rem;
    letter-spacing: 0.01em;
    color: rgba(255,255,255,0.62);
    white-space: nowrap;
}

@media (min-width: 1024px) {
    .pv-reaction-bar-desktop {
        display: flex;
    }

    .pv-reaction-bar-mobile {
        display: none;
    }
}

/* Audience View Modal */
.pv-audience-modal {
    max-width: 440px;
}

.pv-audience-warning {
    padding: 20px;
    border-radius: 12px;
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.2);
    margin: 0 0 8px;
}
.pv-audience-warning p {
    font-size: 0.875rem;
    color: #fff;
    line-height: 1.6;
    margin: 0;
}

.pv-audience-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}
@media (min-width: 480px) {
    .pv-audience-buttons {
        flex-direction: row-reverse;
    }
    .pv-audience-buttons .pv-btn,
    .pv-audience-buttons .pv-btn-present {
        flex: 1;
    }
}
.pv-audience-buttons .pv-btn {
    justify-content: center;
}
.pv-audience-buttons .pv-btn-present {
    justify-content: center;
}
