/**
 * Creator Discovery - Frontend Styles
 * YouTube-style layout
 */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: #0f172a;
  color: #f8fafc;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Glass UI – balanced, less glassy. Separation, not decoration. */
.glass-ui {
  background: rgba(28, 32, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .glass-ui {
    background: rgba(28, 32, 42, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}
/* Balanced glass (less glassy): view toggle + modals */
.view-mode-toggle.glass-ui,
.modal-content.glass-ui {
  background: rgba(28, 32, 42, 0.75);
  border-color: rgba(255, 255, 255, 0.1);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .view-mode-toggle.glass-ui,
  .modal-content.glass-ui {
    background: rgba(28, 32, 42, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}
/* Header: subtler glass */
.top-bar.glass-ui {
  background: rgba(28, 32, 42, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .top-bar.glass-ui {
    background: rgba(28, 32, 42, 0.84);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
}
/* Sidebar: same subtle glass as header */
.sidebar.glass-ui {
  background: rgba(28, 32, 42, 0.88);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .sidebar.glass-ui {
    background: rgba(28, 32, 42, 0.84);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
}
/* Account menu: very subtle glass (nearly solid) */
.header-account-menu.glass-ui {
  background: rgba(28, 32, 42, 0.98);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .header-account-menu.glass-ui {
    background: rgba(28, 32, 42, 0.96);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
}

/* Top Bar */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #1e293b;
  border-bottom: 1px solid #334155;
  padding: 0;
}

.top-bar-content {
  max-width: 100%;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-bar-left {
  flex-shrink: 0;
}

.top-bar-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  line-height: 1.15;
  margin: -2px 0; /* pull into bar so column doesn't add height */
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f8fafc;
  text-decoration: none;
  transition: color 0.2s ease;
  line-height: 1.15;
}

.logo:hover {
  color: #cbd5e1;
}

.tagline {
  font-size: 0.7rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.15;
}

.platform-stats-inline {
  line-height: 1.15;
  min-width: 320px;
  max-width: 420px;
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  overflow: hidden;
}

.platform-stat,
.platform-stats-sep {
  font-size: 0.65rem;
  color: #64748b;
  letter-spacing: 0.02em;
}

.platform-stat {
  opacity: 0;
  transition: opacity 0.2s ease;
  display: inline-block;
  min-width: 72px;
}

.platform-stat.is-visible {
  opacity: 1;
}

.platform-stats-sep {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.platform-stats-sep.is-visible {
  opacity: 1;
}

/* Mobile: hide views in header to save space (classic and mosaic) */
@media (max-width: 768px) {
  .platform-stats-views-mobile-hide {
    display: none !important;
  }
  /* Allow stats strip to shrink so title + stats fit in header */
  .platform-stats-inline {
    min-width: 0;
    max-width: 100%;
  }
}

/* Mobile + mosaic: keep header usable – hide empty center so left (title, stats) and right (account, toggle) show */
@media (max-width: 768px) {
  body.mosaic-mode .top-bar-center {
    display: none !important;
  }
  body.mosaic-mode .top-bar-left {
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible;
  }
  body.mosaic-mode .top-bar-brand {
    overflow: visible;
    min-width: 0;
  }
}

/* Discoveries this week banner in main content */
.discoveries-banner {
  display: none;
  margin-bottom: 20px;
  padding: 12px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(59, 130, 246, 0.12));
  color: #f0f9ff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.25);
}

.discoveries-banner::before {
  content: '✨';
  margin-right: 8px;
}

#discoveries-header-pill {
  display: none;
}

body.mosaic-mode .discoveries-banner {
  display: none !important;
}

.discoveries-pill--header {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.discoveries-pill--header::before {
  content: '✨';
  opacity: 0.9;
}

body.mosaic-mode .discoveries-pill--header[data-visible="true"] {
  display: inline-flex;
}

body:not(.mosaic-mode) .discoveries-pill--header {
  display: none !important;
}

@media (max-width: 768px) {
  .discoveries-banner {
    margin-bottom: 16px;
  }
  .discoveries-pill--header {
    display: none !important;
  }
}

.top-bar-center {
  flex: 1 1 auto;
  min-width: 360px;
  max-width: 600px;
  margin: 0 auto;
}

.search-wrapper {
  width: 100%;
}

.search-input-container {
  position: relative;
  display: flex;
  align-items: center;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 24px;
  transition: all 0.2s ease;
}

.search-input-container:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Search effect animation */
@keyframes searchPulse {
  0% {
    border-color: #3b82f6;
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7),
                0 0 0 3px rgba(59, 130, 246, 0.1);
  }
  50% {
    border-color: #60a5fa;
    box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.3),
                0 0 0 3px rgba(59, 130, 246, 0.2);
  }
  100% {
    border-color: #3b82f6;
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0),
                0 0 0 3px rgba(59, 130, 246, 0.1);
  }
}


.search-input-container.search-active {
  animation: searchPulse 0.6s ease-out;
  border-color: #3b82f6;
}

.search-input {
  flex: 1;
  width: 100%;
  padding: 10px 16px;
  padding-right: 80px; /* Space for buttons */
  background: transparent;
  border: none;
  color: #f8fafc;
  font-size: 0.95rem;
  outline: none;
}

.search-input::placeholder {
  color: #64748b;
}

.search-submit-btn {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

.search-submit-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

/* Header: Sign in (subtle link when logged out) */
.header-auth-link {
  font-size: 0.85rem;
  color: #94a3b8;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  margin-right: 4px;
}
.header-auth-link:hover {
  color: #cbd5e1;
}

/* Header: Account dropdown (when logged in) */
.header-account {
  position: relative;
}

.header-account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: none;
  border: none;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 0.85rem;
  cursor: pointer;
  max-width: 220px;
}
.header-account-trigger:hover {
  background: rgba(51, 65, 85, 0.5);
}

.header-account-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  opacity: 0.9;
}
.header-account-icon svg {
  width: 18px;
  height: 18px;
}

.header-account-email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.header-account-chevron {
  font-size: 0.7rem;
  opacity: 0.8;
  flex-shrink: 0;
}

.header-account-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  min-width: 200px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 6px 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}
.header-account-menu[aria-hidden="true"] {
  display: none;
}

.header-account-credits {
  border-bottom: 1px solid #334155;
  margin-bottom: 4px;
  font-size: 0.8rem;
}

.header-account-credits:hover {
  background: rgba(51, 65, 85, 0.4);
}

.header-account-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  font-size: 0.85rem;
  color: #e2e8f0;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.header-account-item:hover {
  background: rgba(51, 65, 85, 0.6);
}

.header-account-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  opacity: 0.85;
}
.header-account-item-icon svg {
  width: 18px;
  height: 18px;
}

.header-account-divider {
  height: 1px;
  margin: 4px 0;
  background: #334155;
}

.header-account-signout {
  margin-top: 0;
}

.top-bar-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-bar-right .btn-filters {
  display: none; /* mobile only - hidden on desktop */
}

.top-bar-right .btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar-right .btn-icon svg {
  flex-shrink: 0;
}

/* Platform stats (inline below tagline in header) - .platform-stats-inline above */

/* Bookmark hint bar (dismissible) */
.bookmark-hint {
  background: #1e293b;
  border-bottom: 1px solid #334155;
  padding: 8px 16px;
}

.bookmark-hint-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
  font-size: 0.8rem;
  color: #94a3b8;
}

.bookmark-hint-text {
  flex: 1;
  text-align: center;
}

.bookmark-kbd {
  display: inline-block;
  padding: 2px 6px;
  font-size: 0.75rem;
  background: #334155;
  border-radius: 4px;
  font-family: inherit;
}

.bookmark-hint-dismiss {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
}

.bookmark-hint-dismiss:hover {
  background: #334155;
  color: #f8fafc;
}

/* Toast (e.g. "Link copied!") – prominent so it’s easy to see */
/* Version (e.g. v1.0.1): fixed to viewport bottom-right; barely visible. Bump in index.html when deploying. */
.build-indicator {
  position: fixed;
  bottom: 8px;
  right: 10px;
  font-size: 0.65rem;
  color: #475569;
  opacity: 0.45;
  z-index: 9998;
  pointer-events: none;
}

.toast {
  position: fixed;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  padding: 16px 28px;
  background: #1e293b;
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(251, 191, 36, 0.4);
  border: 1px solid rgba(251, 191, 36, 0.35);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
}

.toast.toast--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Shared list page (/l/:id) */
.shared-list-page {
  min-height: 100vh;
  background: #0f172a;
  padding: 24px 16px;
}

.shared-list-page-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.shared-list-title {
  font-size: 1.5rem;
  color: #f8fafc;
  margin-bottom: 4px;
}

.shared-list-subtitle {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

#shared-list-add-all-btn {
  margin-bottom: 24px;
}

#shared-list-grid {
  margin-bottom: 24px;
}

.shared-list-page-inner .btn-secondary {
  display: inline-block;
}

.mobile-search-wrapper {
  display: none; /* shown only on mobile */
}

/* Mobile actions bar: Filters + Add Channel below search (mobile only) */
.mobile-actions-bar {
  display: none;
}

/* App Layout */
.app-layout {
  display: flex;
  max-width: 100%;
  margin: 0 auto;
}

/* Sidebar */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #1e293b;
  border-right: 1px solid #334155;
  height: calc(100vh - 60px);
  overflow-y: auto;
  position: sticky;
  top: 60px;
}

.sidebar-nav {
  padding: 16px 0;
}

.sidebar-bottom {
  padding: 16px 24px 20px;
  border-top: 1px solid #334155;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.5;
}

.sidebar-bottom-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}

.sidebar-bottom-links:last-of-type {
  margin-bottom: 12px;
}

.sidebar-legal-link {
  background: none;
  border: none;
  padding: 0;
  color: #64748b;
  cursor: pointer;
  font-size: inherit;
  text-decoration: none;
}

.sidebar-legal-link:hover {
  color: #94a3b8;
  text-decoration: underline;
}

a.sidebar-legal-link {
  color: #64748b;
}

a.sidebar-legal-link:hover {
  color: #94a3b8;
  text-decoration: underline;
}

.sidebar-bottom-sep {
  color: #475569;
  user-select: none;
}

.sidebar-bottom-copy {
  font-size: 0.7rem;
  color: #475569;
}

.filters-sheet-legal {
  border-top: 1px solid #334155;
  padding: 12px 16px 16px;
}

.sidebar-item {
  display: block;
  padding: 10px 24px;
  color: #cbd5e1;
  text-decoration: none;
  transition: background 0.2s ease;
  cursor: pointer;
}

.sidebar-item:hover {
  background: #334155;
}

.sidebar-item.active {
  background: #334155;
  color: #f8fafc;
  font-weight: 500;
}

.sidebar-item-home {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  padding: 12px 24px;
}

.sidebar-home-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.9;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E") center/contain no-repeat;
}

.sidebar-item-home.active .sidebar-home-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f8fafc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E");
}

.sidebar-item-mylist {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.sidebar-mylist-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.9;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.sidebar-item-mylist.active .sidebar-mylist-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f87171' stroke='%23f87171' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E");
}

.sidebar-mylist-count {
  margin-left: auto;
  font-size: 0.75rem;
  color: #64748b;
  background: #334155;
  padding: 2px 8px;
  border-radius: 999px;
}

/* My list block: nav link only */
.sidebar-mylist-block {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-mylist-block .sidebar-item {
  flex-shrink: 0;
}

/* My list + Share list section (separate from Account) */
.sidebar-list-actions {
  padding: 8px 24px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.4);
}

.sidebar-list-actions .btn-share-list {
  width: 100%;
  min-height: 42px;
  padding: 10px 20px;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.25;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 10px;
}

.sidebar-list-actions .btn-share-list .share-list-btn-copied {
  display: inline-flex;
  align-items: center;
  animation: share-check-pop 0.35s ease;
}

.sidebar-list-actions .btn-share-list.is-copied {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.5);
}

/* Account / Login section (separate block) */
.sidebar-account {
  padding: 12px 24px 14px;
  border-top: 1px solid rgba(51, 65, 85, 0.5);
  background: rgba(15, 23, 42, 0.35);
}

.sidebar-account-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.sidebar-signed-in-email {
  padding: 4px 0 8px;
  font-size: 0.75rem;
  color: var(--text-muted, #94a3b8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.sidebar-account-actions .btn-sign-in,
.sidebar-account-actions .btn-sign-out,
.sidebar-account-actions .btn-save-list {
  width: 100%;
  min-height: 42px;
  padding: 10px 20px;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.25;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 10px;
}

/* Action button icons (Share list, Sign in, Sign out, Save list) */
.btn-action-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  align-self: center;
}

.sidebar-account-actions .btn-action-text {
  line-height: 1.25;
  display: inline-block;
}

.btn-icon-share {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cline x1='8.59' y1='13.51' x2='15.42' y2='17.49'/%3E%3Cline x1='15.41' y1='6.51' x2='8.59' y2='10.49'/%3E%3C/svg%3E");
}
.sidebar-list-actions .btn-share-list.is-copied .btn-icon-share {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234ade80' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.btn-icon-sign-in {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4'/%3E%3Cpolyline points='10 17 15 12 10 7'/%3E%3Cline x1='15' y1='12' x2='3' y2='12'/%3E%3C/svg%3E");
}
.btn-icon-sign-out {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E");
}
.btn-icon-save-list {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
}
.btn-icon-mail {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f8fafc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
}

@keyframes share-check-pop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.sidebar-filters-label {
  padding: 12px 24px 6px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid #334155;
  margin: 8px 0 0;
}

.sidebar-section {
  margin-top: 16px;
}

.sidebar-section-title {
  padding: 8px 24px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-section-collapsible .sidebar-section-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 24px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  text-align: left;
}

.sidebar-section-collapsible .sidebar-section-toggle .sidebar-section-title {
  flex: 0 1 auto;
  padding: 0;
  margin: 0;
}

.sidebar-section-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.9;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.sidebar-section-icon-platform {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' 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");
}

.sidebar-section-icon-subscribers {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

.sidebar-section-icon-country {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E");
}

.sidebar-section-icon-tools {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'/%3E%3C/svg%3E");
}

.sidebar-section-collapsible .sidebar-section-toggle:hover .sidebar-section-icon-tools {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'/%3E%3C/svg%3E");
}

.sidebar-section-collapsible .sidebar-section-toggle:hover .sidebar-section-icon-platform {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2' 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");
}

.sidebar-section-collapsible .sidebar-section-toggle:hover .sidebar-section-icon-subscribers {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

.sidebar-section-collapsible .sidebar-section-toggle:hover .sidebar-section-icon-country {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E");
}

.sidebar-section-collapsible .sidebar-section-toggle:hover {
  color: #cbd5e1;
  background: #334155;
}

.sidebar-section-chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-left: auto;
  transition: transform 0.2s ease;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
}

.sidebar-section-collapsible.is-open .sidebar-section-chevron {
  transform: rotate(180deg);
}

.sidebar-section-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.sidebar-section-collapsible.is-open .sidebar-section-content {
  max-height: min(400px, 60vh);
  overflow-y: auto;
}

.sidebar-countries-list {
  padding: 4px 0 8px;
}

.sidebar-countries-list .sidebar-item {
  padding: 6px 24px 6px 32px;
  font-size: 0.9rem;
}

.sidebar-loading-countries {
  padding: 8px 24px 12px 32px;
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
}

.sidebar-item-tool {
  display: block;
  padding: 6px 24px 6px 32px;
  font-size: 0.9rem;
  text-align: left;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 24px;
  min-height: calc(100vh - 60px);
  overflow-x: hidden; /* Ensure main content never overflows horizontally */
}

.site-intro {
  margin: 0 0 20px;
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.5;
  max-width: 640px;
}

/* SEO only: keep text in DOM for crawlers but hide from view */
.site-intro--seo-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #e2e8f0;
}

/* My list view header: visible only when viewing My list */
.mylist-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

.mylist-view-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: #e2e8f0;
}

.mylist-signin-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.4;
  margin: 0 0 16px 0;
}

.mylist-signin-hint-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z'/%3E%3Cpolyline points='17 21 17 13 7 13 7 21'/%3E%3Cpolyline points='7 3 7 8 15 8'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Share list action: subtle, right-aligned, no button chrome */
.mylist-share-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  margin: 0;
  font-size: 0.8rem;
  color: #64748b;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 0;
  box-shadow: none;
}

.mylist-share-action:hover {
  color: #94a3b8;
}

.mylist-share-action:focus {
  outline: 1px solid #475569;
  outline-offset: 2px;
}

.mylist-share-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.9;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cline x1='8.59' y1='13.51' x2='15.42' y2='17.49'/%3E%3Cline x1='15.41' y1='6.51' x2='8.59' y2='10.49'/%3E%3C/svg%3E") center/contain no-repeat;
}

.mylist-share-action:hover .mylist-share-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cline x1='8.59' y1='13.51' x2='15.42' y2='17.49'/%3E%3Cline x1='15.41' y1='6.51' x2='8.59' y2='10.49'/%3E%3C/svg%3E");
}

.mylist-share-action.is-copied,
.mylist-share-action.is-copied .mylist-share-icon {
  color: #4ade80;
}

.mylist-share-action .share-list-btn-copied {
  display: inline-flex;
  align-items: center;
  animation: share-check-pop 0.35s ease;
}

/* Sponsored block (Adsterra native banner): between Spotlight and main creator grid */
.cdhq-sponsored-block {
  margin: 48px 0;
  padding: 24px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cdhq-sponsored-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.cdhq-sponsored-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #9aa0a6;
  margin-bottom: 16px;
}

/* Explore: horizontal category strip */
.explore-section {
  margin-bottom: 16px;
}

.explore-strip-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.explore-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 4px 0;
  min-width: min-content;
}

.explore-strip-item {
  flex-shrink: 0;
  padding: 8px 16px;
  font-size: 0.9rem;
  color: #94a3b8;
  background: rgba(51, 65, 85, 0.5);
  border: 1px solid #475569;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.explore-strip-item:hover {
  color: #e2e8f0;
  background: rgba(71, 85, 105, 0.7);
  border-color: #64748b;
}

.explore-strip-item.active {
  color: #e2e8f0;
  background: rgba(59, 130, 246, 0.25);
  border-color: #3b82f6;
}

.spotlight-section {
  margin-bottom: 32px;
}

.spotlight-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x;
}

.spotlight-tabs::-webkit-scrollbar {
  display: none;
}

.spotlight-tab {
  flex-shrink: 0;
  padding: 8px 16px;
  font-size: 0.9rem;
  color: #94a3b8;
  background: transparent;
  border: 1px solid #334155;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.spotlight-tab:hover {
  color: #e2e8f0;
  background: rgba(71, 85, 105, 0.7);
  border-color: #64748b;
}

.spotlight-tab.active {
  color: #e2e8f0;
  background: rgba(59, 130, 246, 0.25);
  border-color: #3b82f6;
}

.spotlight-tab-note {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

/* Fade only on the card row, not on tabs (so Spotlight tab is not under fade) */
.spotlight-row-wrap {
  position: relative;
  margin-top: 4px;
}

.spotlight-row-wrap::before,
.spotlight-row-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 4px;
  width: 80px;
  pointer-events: none;
  z-index: 10;
}

.spotlight-row-wrap::before {
  left: 0;
  background: linear-gradient(to right, #0f172a 0%, rgba(15, 23, 42, 0.8) 50%, transparent 100%);
}

.spotlight-row-wrap::after {
  right: 0;
  background: linear-gradient(to left, #0f172a 0%, rgba(15, 23, 42, 0.8) 50%, transparent 100%);
}

.spotlight-row {
  display: flex;
  gap: 16px;
  overflow: hidden;
  padding-bottom: 8px;
  margin-bottom: 4px;
}

.spotlight-row .creator-card {
  min-width: 260px;
  max-width: 320px;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.spotlight-row .spotlight-tool-card {
  min-width: 320px;
  max-width: 400px;
}

.spotlight-row::-webkit-scrollbar {
  height: 6px;
}

.spotlight-row::-webkit-scrollbar-track {
  background: transparent;
}

.spotlight-row::-webkit-scrollbar-thumb {
  background: #1f2937;
  border-radius: 999px;
}

.creators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  width: 100%; /* Keep channel grid within main content width */
}

/* ========================================
   Loading states (spinner + skeleton)
   ======================================== */
.loading-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 200px;
  padding: 40px 24px;
  color: #94a3b8;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border: 3px solid #334155;
  border-top-color: #94a3b8;
  border-radius: 50%;
  animation: loading-spin 0.85s linear infinite;
  -webkit-animation: loading-spin 0.85s linear infinite;
}

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

.loading-text {
  margin: 0;
  font-size: 0.95rem;
}

.creators-grid > .loading-block,
#shared-list-grid > .loading-block {
  grid-column: 1 / -1;
}

/* Mosaic loading: skeleton circles as direct children of .mosaic-grid (same layout as avatars) */
.mosaic-grid .mosaic-skeleton-item {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(
    110deg,
    #1e293b 0%,
    #1e293b 40%,
    #475569 50%,
    #1e293b 60%,
    #1e293b 100%
  );
  background-size: 200% 100%;
  animation: loading-shimmer 1.6s ease-in-out infinite;
  -webkit-animation: loading-shimmer 1.6s ease-in-out infinite;
}

@keyframes loading-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@-webkit-keyframes loading-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .loading-spinner {
    animation: none;
    opacity: 0.8;
  }
  .mosaic-grid .mosaic-skeleton-item {
    animation: none;
    background: #334155;
  }
}

@media (max-width: 768px) {
  .mosaic-grid .mosaic-skeleton-item {
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 480px) {
  .mosaic-grid .mosaic-skeleton-item {
    width: 52px;
    height: 52px;
  }
}

.creator-card {
  position: relative;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.creator-card-rank {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: #f8fafc;
  background: #475569;
  border-radius: 6px;
  z-index: 1;
  pointer-events: none;
}

.creator-card:hover {
  border-color: #475569;
  transform: translateY(-2px);
}

.creator-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.creator-header-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  min-width: 0;
}

.creator-header-second-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 0;
  min-width: 0;
  width: 100%;
}

.creator-header-second-row .creator-country-inline {
  margin-top: 0;
  flex-shrink: 0;
}

.creator-header-second-row .creator-header-actions {
  margin-left: auto;
  flex-shrink: 0;
}

.creator-header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.btn-list {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-list:hover {
  color: #f8fafc;
  background: #334155;
}

.btn-list--in {
  color: #f87171;
}

.btn-list--in:hover {
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.15);
}

.btn-list-icon {
  display: block;
}

.btn-promote-card {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  margin-left: 0;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.btn-promote-card:hover {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
}

.btn-promote-card-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-snapshot-card {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  margin-left: 0;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 1;
}

.btn-snapshot-card:hover {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
}

.btn-snapshot-card-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.creator-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  line-height: 1.15;
  margin-bottom: 0;
}

.creator-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: contain; /* Show full logo without cropping */
  background: #334155;
  flex-shrink: 0;
  display: block;
  min-width: 56px;
  min-height: 56px;
}

.creator-avatar[src=""],
.creator-avatar:not([src]),
.creator-avatar[src*="data:image/svg"] {
  background: #334155;
  object-fit: none;
}

.creator-name {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.15;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.creator-country-inline {
  font-size: 0.7rem;
  color: #94a3b8;
  text-transform: uppercase;
}

.spotlight-card {
  position: relative;
  border-color: #facc15;
}

.spotlight-card::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fef9c3, #facc15, #f97316);
  opacity: 0.85;
}

.spotlight-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fefce8, #facc15, #92400e);
  flex-shrink: 0;
}

.spotlight-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  flex-shrink: 0;
  margin-left: auto;
  border-radius: 999px;
  text-transform: none;
  letter-spacing: 0.02em;
  color: #1e293b;
  background: rgba(254, 249, 195, 0.95);
  border: 1px solid rgba(250, 204, 21, 0.5);
}

.spotlight-tag--editors_pick {
  background: rgba(254, 249, 195, 0.95);
  border-color: rgba(250, 204, 21, 0.5);
  color: #1e293b;
}

.spotlight-tag--random_pick {
  background: rgba(226, 232, 240, 0.95);
  border-color: rgba(148, 163, 184, 0.5);
  color: #334155;
}

.spotlight-tag--paid_promotion {
  background: rgba(191, 219, 254, 0.95);
  border-color: rgba(59, 130, 246, 0.5);
  color: #1e3a5f;
}

/* Recommended Tool card: same look as Spotlight cards (no loud colors) */
.spotlight-tool-card {
  position: relative;
}

.spotlight-tool-card .tool-card-logo {
  background: #0f172a;
  padding: 6px;
  border-radius: 10px;
  object-fit: contain;
}

.spotlight-tool-card .creator-header {
  margin-bottom: 16px;
}

.spotlight-tool-card .tool-card-subtext-under-name {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.2;
}

.spotlight-tool-card .creator-header-second-row {
  margin-top: 4px;
}

.spotlight-tool-card .creator-followers-row--tool {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 0;
  margin-bottom: 12px;
}

.spotlight-tool-card .creator-followers-row--tool .spotlight-tag {
  margin-left: 0;
}

.spotlight-tool-card .tool-card-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fbbf24;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.2;
}

.spotlight-tool-card .tool-card-trust-badge-icon {
  display: inline-flex;
  flex-shrink: 0;
}

.spotlight-tool-card .tool-card-trust-badge-icon svg {
  display: block;
}

.spotlight-tool-card .tool-card-trust-badge-text {
  white-space: nowrap;
}

.spotlight-tool-card .tool-card-description {
  margin-bottom: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #cbd5e1;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spotlight-tool-card .tool-card-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.spotlight-tool-card .tool-card-actions .btn-visit-tool {
  flex: 1;
  min-width: 0;
}

.spotlight-tag--recommended_tool {
  background: rgba(226, 232, 240, 0.95);
  border-color: rgba(148, 163, 184, 0.5);
  color: #334155;
}

.creator-followers-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.creator-followers {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fbbf24;
}

.creator-description {
  color: #cbd5e1;
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.creator-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: #94a3b8;
}

.creator-actions {
  display: flex;
  gap: 8px;
}

.creator-actions .btn {
  flex: 1;
}

.btn {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.btn-primary {
  background: #3b82f6;
  color: white;
}

.btn-primary:hover {
  background: #2563eb;
}

.spotlight-tool-card .btn-visit-tool {
  background: #0ea5e9;
  color: #fff;
  font-weight: 600;
}

.spotlight-tool-card .btn-visit-tool:hover {
  background: #0284c7;
}

.btn-secondary {
  background: #334155;
  color: #f8fafc;
}

.btn-secondary:hover {
  background: #475569;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: #94a3b8;
}

.empty-state h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: #cbd5e1;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
}

.modal-content {
  position: relative;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 24px;
  max-width: 520px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.modal-header h2 {
  font-size: 1.5rem;
  color: #e2e8f0;
}

/* Add Channel modal: YouTube icon at start of title */
.add-channel-modal-header .add-channel-modal-title-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.add-channel-modal-header .add-channel-modal-icon {
  display: inline-flex;
  flex-shrink: 0;
  line-height: 0;
}
.add-channel-modal-header .add-channel-modal-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.modal-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #f8fafc;
}

/* Add-channel success: micro sparkles (dots that pop and fade, above message) */
.success-sparkles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 0 6px;
  pointer-events: none;
}

.success-sparkles .sparkle {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.85);
  animation: sparkle-pop 0.7s ease-out forwards;
}

.success-sparkles .sparkle:nth-child(1) { animation-delay: 0ms; }
.success-sparkles .sparkle:nth-child(2) { animation-delay: 60ms; }
.success-sparkles .sparkle:nth-child(3) { animation-delay: 120ms; }
.success-sparkles .sparkle:nth-child(4) { animation-delay: 180ms; }
.success-sparkles .sparkle:nth-child(5) { animation-delay: 240ms; }

@keyframes sparkle-pop {
  0% {
    transform: scale(0.4);
    opacity: 0;
  }
  30% {
    transform: scale(1.1);
    opacity: 0.9;
  }
  70% {
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* Creator detail specific */
.creator-detail {
  max-width: 640px;
}

.creator-detail-header {
  align-items: center;
}

.creator-detail-head-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.creator-detail-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: contain;
  background: #334155;
  flex-shrink: 0;
}

.creator-detail-country {
  margin-top: 2px;
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
}

.creator-detail-body {
  margin-bottom: 20px;
}

.creator-detail-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.creator-detail-stat .label {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 2px;
}

.creator-detail-stat .value {
  font-size: 1rem;
  font-weight: 600;
  color: #e2e8f0;
}

.creator-detail-monetization {
  margin-top: 16px;
  margin-bottom: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(51, 65, 85, 0.6);
}

.creator-detail-monetization-earnings .label,
.creator-detail-monetization-not-eligible .label {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 4px;
}

.creator-detail-monetization-earnings .value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 2px;
}

.creator-detail-monetization-earnings .note,
.creator-detail-monetization-not-eligible .note {
  font-size: 0.75rem;
  color: #64748b;
}

.creator-detail-monetization-not-eligible .value {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 4px;
}

.creator-detail-insights {
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid #334155;
}

.creator-detail-insights-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 12px;
}

.creator-detail-insights-load-btn {
  display: inline-block;
  font-size: 0.85rem;
  padding: 8px 14px;
  margin-bottom: 12px;
  color: #e2e8f0;
  background: rgba(51, 65, 85, 0.8);
  border: 1px solid #475569;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.creator-detail-insights-load-btn:hover {
  background: rgba(71, 85, 105, 0.9);
  border-color: #64748b;
}

.creator-detail-insights-load-btn.hidden {
  display: none;
}

.creator-detail-insights-loading {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 12px;
}

.creator-detail-insights-loading.hidden {
  display: none;
}

.creator-detail-insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.creator-detail-insight-item {
  display: flex;
  flex-direction: column;
}

.creator-detail-insight-item .label {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 4px;
}

.creator-detail-insight-item .value {
  font-size: 0.95rem;
  font-weight: 500;
  color: #e2e8f0;
}

.creator-detail-description {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.6;
  white-space: pre-line;
}

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

.creator-detail-actions .btn {
  flex: 1;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input {
  width: 100%;
  padding: 12px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #f8fafc;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #3b82f6;
}

.form-group small {
  display: block;
  margin-top: 6px;
  color: #94a3b8;
  font-size: 0.85rem;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* Sign-in modal: on top when opened from Credits/Credit Hub */
.sign-in-modal {
  z-index: 1100;
}

.sign-in-modal .modal-content {
  max-width: 400px;
}

.sign-in-modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sign-in-modal-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E") center/contain no-repeat;
}

.sign-in-modal .modal-header {
  margin-bottom: 20px;
}

.sign-in-modal .form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: 6px;
}

.sign-in-modal .form-actions {
  margin-top: 20px;
}

.sign-in-modal .btn-sign-in-submit {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sign-in-modal .btn-sign-in-submit .btn-icon-mail {
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f8fafc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
}

.sign-in-description {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.sign-in-reassurance {
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.4;
  margin-top: 8px;
  margin-bottom: 0;
}

.submit-message {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.submit-message.success {
  background: #1e3a1e;
  border: 1px solid #22c55e;
  color: #86efac;
}

.submit-message.error {
  background: #3a1e1e;
  border: 1px solid #ef4444;
  color: #fca5a5;
}

.submit-message.info {
  background: #1e293b;
  border: 1px solid #64748b;
  color: #cbd5e1;
}

.sidebar-feedback-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-left: -24px;
  padding: 12px 24px 12px 24px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: #94a3b8;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  box-sizing: border-box;
}

.sidebar-feedback-link:hover {
  color: #e2e8f0;
}

.sidebar-feedback-link:hover .sidebar-feedback-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2e8f0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
}

/* Filters sheet uses 16px padding; align feedback link the same way */
.filters-sheet-legal .sidebar-feedback-link {
  margin-left: -16px;
  padding-left: 16px;
  padding-right: 16px;
}

.sidebar-feedback-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.9;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.feedback-modal {
  z-index: 1100;
}

.feedback-modal .modal-content {
  max-width: 420px;
}

.feedback-modal .modal-header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.feedback-modal textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  font-size: 0.95rem;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid #334155;
  border-radius: 8px;
  resize: vertical;
}

.feedback-modal textarea:focus {
  outline: none;
  border-color: #475569;
}

.feedback-modal .form-group input {
  width: 100%;
}

.feedback-char-count {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 4px;
}

.feedback-error {
  font-size: 0.85rem;
  color: #fca5a5;
  margin-bottom: 12px;
}

.feedback-success {
  font-size: 0.95rem;
  color: #86efac;
  padding: 16px 0;
}

/* Legal / Trust modal */
.legal-modal .modal-content {
  max-width: 420px;
  max-height: 85vh;
  overflow-y: auto;
}

.legal-modal-body {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.legal-modal-body p {
  margin: 0 0 12px;
}

.legal-modal-body p:last-child {
  margin-bottom: 0;
}

.legal-modal-body ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.legal-modal-body a {
  color: #38bdf8;
  text-decoration: none;
}

.legal-modal-body a:hover {
  text-decoration: underline;
}

/* Credits popup */
.credits-modal .modal-content {
  max-width: 480px;
}

.credits-modal-balance {
  font-size: 1rem;
  color: #e2e8f0;
  margin-bottom: 12px;
}

.credits-modal-info {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0 0 20px;
}

.credits-buy-section {
  padding-top: 20px;
  border-top: 1px solid #334155;
}

.credits-buy-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.credits-stripe-trust {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted, #666);
  margin: 0 0 0.75rem 0;
}

.credits-stripe-trust a {
  color: var(--link-color, #635bff);
  text-decoration: none;
}

.credits-stripe-trust a:hover {
  text-decoration: underline;
}

.credits-packs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.credits-packs-loading,
.credits-packs-error {
  grid-column: 1 / -1;
  font-size: 0.9rem;
  color: #94a3b8;
  text-align: center;
  padding: 16px;
}

.credit-pack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  border: 2px solid #334155;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.3);
  transition: all 0.2s ease;
  cursor: pointer;
}

.credit-pack:hover {
  border-color: #475569;
  background: rgba(15, 23, 42, 0.5);
}

.credit-pack-recommended {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
}

.credit-pack-recommended:hover {
  border-color: #60a5fa;
  background: rgba(59, 130, 246, 0.15);
}

.credit-pack-badge {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 10px;
  background: #3b82f6;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.credit-pack-credits {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fbbf24;
}

.credit-pack-price {
  font-size: 0.95rem;
  color: #cbd5e1;
  font-weight: 500;
}

.credit-pack-btn {
  width: 100%;
  padding: 8px 16px;
  font-size: 0.85rem;
  margin-top: 4px;
}

@media (max-width: 480px) {
  .credits-packs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 400px) {
  .view-mode-toggle-header .view-mode-btn {
    padding: 4px 6px;
    font-size: 0.7rem;
  }
}

.credits-modal-promotions {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #334155;
}

.credits-promo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #334155;
}

.credits-promo-row:last-child {
  border-bottom: none;
}

.credits-promo-channel {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.credits-promo-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #334155;
  flex-shrink: 0;
}

.credits-promo-avatar-placeholder {
  display: block;
}

.credits-promo-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.credits-promo-name {
  font-weight: 500;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.credits-promo-status {
  font-size: 0.8rem;
  color: #94a3b8;
}

.credits-promo-extend {
  flex-shrink: 0;
}

/* Credit Hub modal */
.credit-hub-modal .modal-content {
  max-width: 420px;
}

.credit-hub-section {
  margin-bottom: 24px;
}

.credit-hub-section:last-child {
  margin-bottom: 0;
}

.credit-hub-section-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}

.credit-hub-active-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.credit-hub-empty,
.credit-hub-loading {
  font-size: 0.9rem;
  color: #94a3b8;
  margin: 0;
  padding: 12px 0;
}

.credit-hub-active-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #334155;
}

.credit-hub-active-row:last-child {
  border-bottom: none;
}

.credit-hub-active-channel {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.credit-hub-active-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #334155;
  flex-shrink: 0;
}

.credit-hub-active-avatar-placeholder {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #334155;
  flex-shrink: 0;
}

.credit-hub-active-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.credit-hub-active-feature {
  font-size: 0.8rem;
  color: #64748b;
}

.credit-hub-active-name {
  font-weight: 500;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.credit-hub-active-status {
  font-size: 0.8rem;
  color: #94a3b8;
}

.credit-hub-available-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.credit-hub-available-item {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: rgba(15, 23, 42, 0.3);
}

.credit-hub-available-name {
  font-weight: 500;
  color: #e2e8f0;
  margin-bottom: 4px;
}

.credit-hub-available-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.4;
  margin-bottom: 6px;
}

.credit-hub-available-status {
  font-size: 0.8rem;
  color: #64748b;
}

.credit-hub-available-status.status-active {
  color: #22c55e;
}

.promote-spotlight-modal .modal-content {
  max-width: 420px;
}

.promote-spotlight-channel-name {
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 12px;
}

.promote-spotlight-balance {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.promote-spotlight-promoted-until {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.promote-spotlight-durations {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.promote-duration-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: rgba(15, 23, 42, 0.5);
  cursor: pointer;
  font-size: 0.9rem;
  color: #e2e8f0;
}

.promote-duration-option:hover:not(.is-disabled) {
  background: rgba(51, 65, 85, 0.5);
  border-color: #475569;
}

.promote-duration-option.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.promote-duration-option input {
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
  /* Header: shorter, single-row; prevent right side (List/Mosaic, account) from going off screen */
  .top-bar-content {
    padding: 8px 12px;
    gap: 10px;
    flex-wrap: nowrap;
    min-width: 0;
    /* Don't use overflow: hidden here - it would clip the account dropdown. Clip only the left. */
  }

  .top-bar-left {
    min-width: 0;
    flex-shrink: 1;
    overflow: hidden;
  }

  .top-bar-brand {
    margin: -1px 0;
    min-width: 0;
    overflow: hidden;
  }

  /* Show full website title (Creator DHQ) */
  .logo {
    font-size: 1rem;
    max-width: none;
    overflow: visible;
    white-space: nowrap;
  }

  .tagline {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    font-size: 0.65rem;
  }

  .top-bar-right {
    flex-shrink: 0;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
  }

  /* Account option at top right */
  .top-bar-right .header-account,
  .top-bar-right .header-auth-link {
    margin-left: 4px;
  }

  /* Account: icon-only on mobile to save space */
  .header-account-email {
    display: none;
  }

  .header-account-trigger {
    max-width: none;
    padding: 6px 8px;
  }

  .tagline {
    font-size: 0.65rem;
  }

  .platform-stats-inline .platform-stat {
    font-size: 0.6rem;
  }

  .top-bar-center {
    display: none; /* hide inline search on mobile */
  }

  .mobile-search-wrapper {
    display: block;
    padding: 8px 16px 0;
  }

  .search-input-container {
    border-radius: 20px;
  }

  .search-input {
    padding: 8px 12px;
    padding-right: 50px; /* Space for submit button */
    font-size: 16px; /* Prevent iOS/Android zoom on focus (browsers zoom when input font-size < 16px) */
  }

  .search-submit-btn {
    right: 6px;
    padding: 6px;
  }

  .search-submit-btn svg {
    width: 18px;
    height: 18px;
  }

  .top-bar-right .btn {
    padding: 8px 10px;
    font-size: 0.85rem;
    border-radius: 10px;
    white-space: nowrap;
  }

  /* List/Mosaic: back in header, compact; hide the bar below */
  .view-mode-bar {
    display: none !important;
  }
  .view-mode-toggle-header {
    display: flex;
  }
  .view-mode-toggle-header .view-mode-btn {
    padding: 5px 8px;
    font-size: 0.72rem;
    min-height: 32px;
  }
  .view-mode-toggle-header {
    padding: 2px;
  }

  /* Header: hide Filters, Add Channel, Share on mobile (moved to mobile-actions-bar / Account) */
  .top-bar-right .btn-filters,
  .top-bar-right .js-add-channel-btn,
  .top-bar-right .header-share-btn {
    display: none !important;
  }

  .top-bar-right .btn-share-label {
    display: none; /* icon-only on desktop when visible */
  }

  /* Mobile actions: full-width vertical bar below search */
  .mobile-actions-bar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .mobile-actions-bar .btn {
    width: 100%;
    min-height: 44px;
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 12px;
    justify-content: center;
  }

  .mobile-actions-bar .btn-primary {
    font-weight: 600;
  }

  .header-signed-in,
  .header-sign-out {
    display: none !important; /* sidebar/filters sheet show email + Sign out on mobile */
  }

  .mobile-search-wrapper {
    display: block;
    padding: 8px 16px 0;
  }

  /* Sidebar hidden on mobile (use Filters sheet instead) */
  .sidebar {
    display: none;
  }

  /* Main content padding tighter */
  .main-content {
    padding: 16px;
  }

  /* Mobile creator list: ensure no horizontal overflow */
  .creators-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .creator-card {
    width: 100%;
    max-width: 100%;
    padding: 16px; /* slightly denser */
  }

  .creator-header {
    margin-bottom: 12px;
  }

  /* Mobile tweaks for spotlight */
  .spotlight-row .creator-card {
    min-width: 240px;
  }

  .spotlight-row .spotlight-tool-card {
    min-width: 280px;
    max-width: 360px;
  }

  .spotlight-row-wrap::before,
  .spotlight-row-wrap::after {
    width: 48px;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }
}

/* Mobile Filters Sheet */
.filters-sheet {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.filters-sheet-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.filters-sheet-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(88vw, 360px);
  background: #1e293b;
  border-left: 1px solid #334155;
  padding: 16px;
  overflow-y: auto;
}

.filters-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.filters-sheet-title {
  font-size: 1rem;
  font-weight: 700;
  color: #e2e8f0;
}

.filters-sheet-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.filters-sheet-close:hover {
  color: #f8fafc;
}

.filters-sheet-nav .sidebar-item {
  padding: 10px 12px;
  border-radius: 10px;
}

.filters-sheet-nav .sidebar-item.active {
  background: #334155;
}

/* ========================================
   View Mode Toggle (List / Mosaic)
   ======================================== */
/* Bar below header (mobile only): List/Mosaic before search. Hidden on desktop by rule in @media (min-width: 769px). */
.view-mode-bar {
  display: flex;
  background: #1e293b;
  border-bottom: 1px solid #334155;
  padding: 10px 16px;
  align-items: center;
  justify-content: flex-start;
}

@media (min-width: 769px) {
  .view-mode-bar {
    display: none;
  }
}

.view-mode-toggle {
  display: flex;
  gap: 0;
  border-radius: 8px;
  padding: 3px;
  background: #0f172a;
  border: 1px solid #334155;
}

.view-mode-btn {
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #94a3b8;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.view-mode-btn:hover {
  color: #cbd5e1;
  background: #1e293b;
}

.view-mode-btn.active {
  color: #f8fafc;
  background: #334155;
}

/* ========================================
   Mosaic Canvas
   ======================================== */
.mosaic-canvas {
  position: fixed;
  top: calc(60px + env(safe-area-inset-top, 0px)); /* below header + notch */
  left: env(safe-area-inset-left, 0);
  right: env(safe-area-inset-right, 0);
  bottom: env(safe-area-inset-bottom, 0);
  background: #0f172a;
  z-index: 50;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* Vignette: darken edges so center feels “in focus” (no blur) */


.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 16px;
  padding: 24px;
  justify-items: center;
  align-content: start;
  max-width: 100%;
}

.mosaic-avatar {
  width: 64px;
  height: 64px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: mosaic-avatar-fade-in 0.4s ease-out;
  /* Remove tap delay and prevent double-tap zoom on mobile */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@keyframes mosaic-avatar-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.mosaic-avatar:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.mosaic-avatar:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.mosaic-avatar.mosaic-click-pulse {
  animation: mosaic-pulse 0.18s ease-out;
}

@keyframes mosaic-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .mosaic-avatar {
    animation: none;
  }
  .mosaic-avatar.mosaic-click-pulse {
    animation: none;
  }
}

/* Mosaic: mobile-friendly grid and toggle */
@media (max-width: 768px) {
  .view-mode-toggle {
    flex-shrink: 0;
  }
  .view-mode-btn {
    min-height: 44px;
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  .mosaic-grid {
    gap: 12px;
    padding: 16px;
  }
  .mosaic-avatar {
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 480px) {
  .mosaic-grid {
    grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
    gap: 10px;
    padding: 12px;
  }
  .mosaic-avatar {
    width: 52px;
    height: 52px;
  }
}

/* Hide sidebar, search, categories, spotlight when mosaic is active */
body.mosaic-mode .sidebar {
  display: none;
}

body.mosaic-mode .mobile-search-wrapper,
body.mosaic-mode .mobile-actions-bar {
  display: none;
}

body.mosaic-mode .top-bar-center {
  display: flex;
  justify-content: center;
}
body.mosaic-mode .top-bar-center .search-wrapper {
  display: none;
}

/* Desktop mosaic: push account, Add Channel, Share to the far right (remove empty space) */
body.mosaic-mode .top-bar-content {
  justify-content: space-between;
}
body.mosaic-mode .top-bar-right {
  margin-left: auto;
  flex-shrink: 0;
}

body.mosaic-mode .spotlight-section,
body.mosaic-mode .explore-section,
body.mosaic-mode #creators-feed-section {
  display: none;
}

body.mosaic-mode .main-content {
  padding: 0;
}
body.mosaic-mode .site-intro {
  display: none;
}

/* Mosaic mode: full-width main content */
body.mosaic-mode .app-layout {
  grid-template-columns: 1fr;
}

/* Mosaic: simple grid; hover scale + click pulse */

/* ========== Channel Snapshot (public, shareable) ========== */
body.snapshot-route .top-bar,
body.snapshot-route .view-mode-bar,
body.snapshot-route #bookmark-hint,
body.snapshot-route .mobile-search-wrapper,
body.snapshot-route .mobile-actions-bar,
body.snapshot-route .app-layout {
  display: none !important;
}

.snapshot-page {
  min-height: 100vh;
  background: #0f172a;
  color: #f8fafc;
  padding: 24px 16px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.snapshot-loading,
.snapshot-error {
  text-align: center;
  padding: 48px 24px;
  max-width: 420px;
}
.snapshot-error h1 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.snapshot-error p {
  color: #94a3b8;
  margin-bottom: 16px;
}
.snapshot-error a {
  color: #38bdf8;
  text-decoration: none;
}
.snapshot-error a:hover {
  text-decoration: underline;
}

.snapshot-card {
  width: 100%;
  max-width: 420px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
}

.snapshot-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.snapshot-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #334155;
}
.snapshot-header-text {
  flex: 1;
  min-width: 0;
}
.snapshot-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 4px 0;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.snapshot-country,
.snapshot-badges {
  font-size: 0.9rem;
  color: #94a3b8;
  margin: 0;
}
.snapshot-verified {
  display: inline-block;
  color: #38bdf8;
  font-size: 0.85rem;
}

.snapshot-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 28px 20px;
  background: rgba(15, 23, 42, 0.75);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.snapshot-stat {
  text-align: center;
}
.snapshot-stat-value {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.snapshot-stat-label {
  display: block;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.snapshot-meta {
  padding: 20px;
}
.snapshot-meta p {
  margin: 0 0 10px 0;
  font-size: 0.95rem;
  color: #cbd5e1;
}
.snapshot-meta p:last-child {
  margin-bottom: 0;
}
.snapshot-category {
  text-transform: capitalize;
  color: #94a3b8;
}
.snapshot-description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}
.snapshot-listed {
  font-size: 0.85rem;
  color: #64748b;
}

.snapshot-footer {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  background: rgba(15, 23, 42, 0.3);
}
.snapshot-powered {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0 0 10px 0;
}
.snapshot-powered a {
  color: #38bdf8;
  text-decoration: none;
}
.snapshot-powered a:hover {
  text-decoration: underline;
}

/* Admin: minimal, internal only. Same dark theme. */
#admin-app {
  padding: 24px;
  color: #e2e8f0;
  background: #0f172a;
  min-height: 100vh;
}
#admin-app a {
  color: #94a3b8;
  text-decoration: none;
}
#admin-app a:hover {
  color: #e2e8f0;
  text-decoration: underline;
}
#admin-app table {
  color: #cbd5e1;
}
#admin-app button {
  margin-right: 8px;
  padding: 4px 10px;
  font-size: 0.85rem;
  background: #334155;
  color: #e2e8f0;
  border: 1px solid #475569;
  border-radius: 6px;
  cursor: pointer;
}
#admin-app button:hover {
  background: #475569;
}

/* Standalone static SEO pages (about, contact, privacy, terms, etc.) – full-page layout */
body.static-page-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.static-page-layout .static-page-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(28, 32, 42, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
body.static-page-layout .static-page-header .static-page-logo {
  color: #f8fafc;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
}
body.static-page-layout .static-page-header .static-page-logo:hover {
  color: #e2e8f0;
}
body.static-page-layout .static-page-header .static-page-back {
  color: #64748b;
  text-decoration: none;
  font-size: 0.95rem;
}
body.static-page-layout .static-page-header .static-page-back:hover {
  color: #94a3b8;
  text-decoration: underline;
}
body.static-page-layout .static-page {
  flex: 1;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  font-family: inherit;
  color: #e2e8f0;
  line-height: 1.7;
  box-sizing: border-box;
}
body.static-page-layout .static-page h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  color: #f8fafc;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
body.static-page-layout .static-page .static-page-body {
  margin-bottom: 2rem;
}
body.static-page-layout .static-page .static-page-body > p,
body.static-page-layout .static-page .static-page-body > .static-section p {
  margin-bottom: 1.25rem;
  max-width: 56ch;
  font-size: 1rem;
  color: #e2e8f0;
}
body.static-page-layout .static-page .static-page-body > p:last-child,
body.static-page-layout .static-page .static-page-body > .static-section p:last-child {
  margin-bottom: 0;
}
body.static-page-layout .static-page .static-page-body .static-section {
  margin-bottom: 2rem;
}
body.static-page-layout .static-page .static-page-body .static-section:last-child {
  margin-bottom: 0;
}
body.static-page-layout .static-page .static-page-body .static-section-title {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #f8fafc;
  margin-bottom: 0.75rem;
  margin-top: 0;
}
body.static-page-layout .static-page .static-page-body .static-section-title:first-child {
  margin-top: 0;
}
body.static-page-layout .static-page .static-page-body ul {
  margin: 0 0 1.25rem 0;
  padding-left: 1.5rem;
  list-style-type: disc;
  list-style-position: outside;
  max-width: 56ch;
}
body.static-page-layout .static-page .static-page-body ul:last-child {
  margin-bottom: 0;
}
body.static-page-layout .static-page .static-page-body li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}
body.static-page-layout .static-page .static-page-body li::marker {
  color: #94a3b8;
}
body.static-page-layout .static-page .static-page-body .contact-email {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(51, 65, 85, 0.5);
  border-radius: 6px;
  color: #94a3b8;
  font-size: 0.9375rem;
}
body.static-page-layout .static-page .static-page-body .contact-email:hover {
  background: rgba(71, 85, 105, 0.6);
  color: #cbd5e1;
  text-decoration: none;
}
body.static-page-layout .static-page .static-page-body a {
  color: #94a3b8;
  text-decoration: none;
}
body.static-page-layout .static-page .static-page-body a:hover {
  text-decoration: underline;
}
/* Static page footer – small embossed block */
body.static-page-layout .static-page-footer {
  margin-top: auto;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(15, 23, 42, 0.5);
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.5;
}
body.static-page-layout .static-page-footer .static-page-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  margin-bottom: 0.5rem;
}
body.static-page-layout .static-page-footer .static-page-footer-links a {
  color: #64748b;
  text-decoration: none;
}
body.static-page-layout .static-page-footer .static-page-footer-links a:hover {
  color: #94a3b8;
  text-decoration: underline;
}
body.static-page-layout .static-page-footer .static-page-footer-sep {
  color: #475569;
  user-select: none;
}
body.static-page-layout .static-page-footer .static-page-footer-copy {
  color: #475569;
  font-size: 0.75rem;
}
body.static-page-layout .wall-page {
  max-width: 1080px;
}
body.static-page-layout .wall-page .wall-current-wrap {
  margin: 1rem 0 2rem;
}
body.static-page-layout .wall-page #wall-current-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #ffffff;
}
body.static-page-layout .wall-page .wall-archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 100%;
}
body.static-page-layout .wall-page .wall-archive-list li {
  margin: 0 0 0.5rem;
  padding-left: 0;
}
body.static-page-layout .wall-page .wall-archive-list li::marker {
  content: '';
}
body.static-page-layout .wall-page .wall-note {
  color: #64748b;
  font-size: 0.92rem;
}

/* Immersive wall route */
body.wall-immersive-page {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  color: #0f172a;
  min-height: 100vh;
}
body.wall-immersive-page .top-bar-content {
  justify-content: space-between;
}
body.wall-immersive-page .top-bar-center {
  display: flex;
  justify-content: center;
}
body.wall-immersive-page .top-bar-right {
  margin-left: auto;
}
body.wall-immersive-page .wall-immersive-main {
  flex: 1;
  width: 100vw;
  background: #ffffff;
  overflow: auto;
  display: flex;
  flex-direction: column;
}
body.wall-immersive-page .wall-section-wrapper {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
body.wall-immersive-page #wall-current-image {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: contain;
  object-position: center top;
  display: block;
  background: #ffffff;
}
body.wall-immersive-page .wall-actions-bar {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 10;
}
body.wall-immersive-page .wall-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  border: none;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
body.wall-immersive-page .wall-action-icon {
  display: inline-flex;
  flex-shrink: 0;
}
body.wall-immersive-page .wall-action-icon svg {
  display: block;
}
body.wall-immersive-page .wall-action-btn:hover:not(:disabled) {
  transform: scale(1.05);
  opacity: 0.95;
}
body.wall-immersive-page .wall-action-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

/* Mobile only: buttons below image, smaller, so pyramid shows in full */
@media (max-width: 767px) {
  body.wall-immersive-page .wall-section-wrapper {
    flex-direction: column;
    padding-bottom: 72px; /* space so content isn’t hidden behind sticky bar */
  }
  body.wall-immersive-page .wall-actions-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    width: 100%;
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    justify-content: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.04);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
  }
  body.wall-immersive-page .wall-action-btn {
    padding: 8px 14px;
    font-size: 0.8125rem;
  }
  body.wall-immersive-page .wall-action-icon svg {
    width: 18px;
    height: 18px;
  }
  body.wall-immersive-page #wall-current-image {
    order: 1;
    flex: 1;
    min-height: 50vh;
    object-fit: contain;
    object-position: center top;
  }
}

/* Share modal */
.wall-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.wall-modal-overlay.wall-modal-open {
  opacity: 1;
  visibility: visible;
}
.wall-modal {
  position: relative;
  max-width: 420px;
  width: 100%;
  padding: 24px;
  border-radius: 16px;
  background: #1e293b;
  color: #f1f5f9;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}
.wall-modal-title {
  margin: 0 0 20px;
  font-size: 1.25rem;
  font-weight: 600;
}
.wall-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wall-modal-btn {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
}
.wall-modal-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}
.wall-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}
.wall-modal-close:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.08);
}
body.wall-immersive-page .discoveries-pill--header[data-visible="true"] {
  display: inline-flex !important;
}
body.wall-immersive-page .wall-auth-slot {
  width: 210px;
  min-width: 210px;
  display: flex;
  justify-content: flex-end;
}
@media (max-width: 768px) {
  body.wall-immersive-page .wall-auth-slot {
    width: auto;
    min-width: 0;
  }
  body.wall-immersive-page .top-bar-center {
    display: none !important;
  }
}
@media (min-width: 640px) {
  body.static-page-layout .static-page {
    padding: 3rem 2rem 4rem;
  }
  body.static-page-layout .static-page-header {
    padding: 1rem 2rem;
  }
  body.static-page-layout .static-page-footer {
    padding: 1.25rem 2rem;
  }
}
