/* ══════════════════════════════════════════════════════════════════════════
   DASHBOARD.CSS — Pluviax Dashboard
   Theme-aware: light / dark / glass modes
   Font-aware: --dash-font CSS variable
   ════════════════════════════════════════════════════════════════════════ */

/* ── DASHBOARD TOKENS ──────────────────────────────────────────────────── */
:root {
  --dash-accent: #3b9eff;
  --dash-accent-glow: rgba(59, 158, 255, 0.35);
  --dash-accent-soft: rgba(59, 158, 255, 0.12);
  --dash-font: "Nunito", sans-serif;

  /* Light theme (default) */
  --dash-bg: rgba(220, 235, 255, 0.15);
  --dash-sidebar-bg: rgba(255, 255, 255, 0.72);
  --dash-sidebar-border: rgba(255, 255, 255, 0.6);
  --dash-card-bg: rgba(255, 255, 255, 0.65);
  --dash-card-border: rgba(255, 255, 255, 0.72);
  --dash-topbar-bg: rgba(255, 255, 255, 0.55);
  --dash-text: #0b1c2e;
  --dash-text-mid: #1a3350;
  --dash-text-muted: #2a4a62;
  --dash-divider: rgba(0, 0, 0, 0.07);
  --dash-shadow: 0 4px 20px rgba(10, 40, 80, 0.1);
  --dash-shadow-lg: 0 12px 40px rgba(10, 40, 80, 0.14);
}

/* Dark theme */
.dash-dark {
  --dash-bg: rgba(8, 16, 32, 0.95);
  --dash-sidebar-bg: rgba(12, 22, 44, 0.96);
  --dash-sidebar-border: rgba(255, 255, 255, 0.08);
  --dash-card-bg: rgba(18, 30, 55, 0.9);
  --dash-card-border: rgba(255, 255, 255, 0.08);
  --dash-topbar-bg: rgba(10, 20, 40, 0.9);
  --dash-text: rgba(230, 240, 255, 0.95);
  --dash-text-mid: rgba(180, 210, 255, 0.85);
  --dash-text-muted: rgba(130, 160, 200, 0.7);
  --dash-divider: rgba(255, 255, 255, 0.07);
  --dash-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --dash-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* ── GLASS THEME — true shimmer, barely-there ──────────────────────────── */
.dash-glass {
  --dash-bg: transparent;
  --dash-sidebar-bg: rgba(255, 255, 255, 0.08);
  --dash-sidebar-border: rgba(255, 255, 255, 0.18);
  --dash-card-bg: rgba(255, 255, 255, 0.1);
  --dash-card-border: rgba(255, 255, 255, 0.22);
  --dash-topbar-bg: rgba(255, 255, 255, 0.08);
  --dash-text: #0b1c2e;
  --dash-text-mid: #1a3350;
  --dash-text-muted: #2a4a62;
  --dash-divider: rgba(255, 255, 255, 0.18);
  --dash-shadow: 0 4px 24px rgba(59, 158, 255, 0.08);
  --dash-shadow-lg: 0 12px 48px rgba(59, 158, 255, 0.12);
}

/* Glass shimmer effect on cards */
.dash-glass .widget-card,
.dash-glass .stat-card,
.dash-glass .dash-sidebar,
.dash-glass .dash-topbar {
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(40px) saturate(2) brightness(1.08) !important;
  -webkit-backdrop-filter: blur(40px) saturate(2) brightness(1.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow:
    0 0 0 0.5px rgba(255, 255, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    0 8px 32px rgba(59, 158, 255, 0.08) !important;
  position: relative;
  overflow: hidden;
}

/* Shimmer sweep animation on glass cards */
.dash-glass .widget-card::after,
.dash-glass .stat-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent,
    rgba(255, 255, 255, 0.12),
    transparent
  );
  animation: glassShimmer 4s ease-in-out infinite;
  pointer-events: none;
}

/* Stagger shimmer per card */
.dash-glass .widget-card:nth-child(2)::after {
  animation-delay: 0.8s;
}
.dash-glass .widget-card:nth-child(3)::after {
  animation-delay: 1.6s;
}
.dash-glass .widget-card:nth-child(4)::after {
  animation-delay: 2.4s;
}

@keyframes glassShimmer {
  0% {
    left: -100%;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  50% {
    left: 120%;
    opacity: 1;
  }
  51% {
    opacity: 0;
  }
  100% {
    left: 120%;
    opacity: 0;
  }
}

/* Glass nav items */
.dash-glass .nav-item.active {
  background: rgba(255, 255, 255, 0.14) !important;
  box-shadow:
    inset 3px 0 0 var(--dash-accent),
    inset 0 0 20px rgba(255, 255, 255, 0.06);
}
.dash-glass .nav-item:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

/* Glass sidebar footer buttons */
.dash-glass .sidebar-footer-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}

/* ── FONT SYSTEM ───────────────────────────────────────────────────────── */
/* Applied via JS by setting --dash-font and adding .dash-font-X class */
.dashboard-body,
.dash-shell * {
  font-family: var(--dash-font);
}

/* Override headings per font theme */
.dashboard-body h1,
.dashboard-body h2,
.dashboard-body h3,
.dashboard-body .topbar-title,
.dashboard-body .widget-title,
.dashboard-body .stat-value,
.dashboard-body .earnings-total-value {
  font-family: var(--dash-heading-font, "DM Serif Display", serif);
}

/* Font presets */
.dash-font-default {
  --dash-font: "Nunito", sans-serif;
  --dash-heading-font: "DM Serif Display", serif;
}
.dash-font-sleek {
  --dash-font: "Outfit", sans-serif;
  --dash-heading-font: "Outfit", sans-serif;
}
.dash-font-editorial {
  --dash-font: "Lora", serif;
  --dash-heading-font: "Lora", serif;
}
.dash-font-mono {
  --dash-font: "JetBrains Mono", monospace;
  --dash-heading-font: "JetBrains Mono", monospace;
}

/* ── BASE ──────────────────────────────────────────────────────────────── */
.dashboard-body {
  font-family: var(--dash-font);
  background:
    linear-gradient(
      to bottom,
      rgba(200, 230, 255, 0.1),
      rgba(160, 210, 255, 0.18)
    ),
    url("../assets/images/sky-bg.png") center / cover fixed;
  background-attachment: fixed;
  color: var(--dash-text);
  overflow: hidden;
  height: 100vh;
}

/* Custom dashboard background */
.dashboard-body.has-custom-bg {
  background-image: none;
}
.dash-bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  transition: opacity 0.5s ease;
}
.dash-bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

/* ── SHELL ─────────────────────────────────────────────────────────────── */
.dash-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

/* ══ SIDEBAR ══════════════════════════════════════════════════════════════ */
.dash-sidebar {
  width: 240px;
  min-width: 240px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--dash-sidebar-bg);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-right: 1px solid var(--dash-sidebar-border);
  box-shadow: var(--dash-shadow);
  transition:
    width 0.3s ease,
    min-width 0.3s ease,
    transform 0.3s ease;
  overflow: hidden;
  z-index: 100;
  flex-shrink: 0;
}
.dash-sidebar.collapsed {
  width: 0;
  min-width: 0;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 20px 18px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--dash-divider);
  flex-shrink: 0;
}
.sidebar-logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px var(--dash-accent-glow));
  flex-shrink: 0;
}
.sidebar-logo span {
  font-family: "DM Serif Display", serif;
  font-size: 17px;
  background: linear-gradient(
    135deg,
    var(--dash-text) 0%,
    var(--dash-accent) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--dash-divider);
  flex-shrink: 0;
}
.sidebar-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.sidebar-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--dash-accent-soft);
  border: 2px solid var(--dash-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--dash-accent);
  object-fit: cover;
  overflow: hidden;
  box-shadow: 0 0 0 3px var(--dash-accent-soft);
}
.sidebar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sidebar-status-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--dash-sidebar-bg);
  background: #34c98a;
}
.sidebar-status-dot.closed {
  background: #aaa;
}
.sidebar-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--dash-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.sidebar-role {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--dash-accent);
  text-transform: uppercase;
  background: var(--dash-accent-soft);
  padding: 2px 8px;
  border-radius: 999px;
  margin-top: 2px;
  display: inline-block;
  white-space: nowrap;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px;
  scrollbar-width: none;
}
.sidebar-nav::-webkit-scrollbar {
  display: none;
}
.nav-section-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dash-text-muted);
  padding: 8px 8px 4px;
  opacity: 0.6;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 600;
  color: var(--dash-text-muted);
  white-space: nowrap;
  overflow: hidden;
  margin-bottom: 2px;
  position: relative;
}
.nav-item:hover {
  background: var(--dash-accent-soft);
  color: var(--dash-text);
}
.nav-item.active {
  background: var(--dash-accent-soft);
  color: var(--dash-accent);
  box-shadow: inset 3px 0 0 var(--dash-accent);
}
.nav-item-icon {
  font-size: 17px;
  flex-shrink: 0;
}
.nav-item-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  background: var(--dash-accent);
  color: #fff;
  padding: 1px 7px;
  border-radius: 999px;
  flex-shrink: 0;
}

/* Message unread badge — red to distinguish from accent-colored badges */
.nav-msg-badge,
.nav-alert-badge {
  background: #ef4444 !important;
}

/* Nav item highlight when unread messages or order updates exist */
.nav-item.has-unread {
  background: rgba(239, 68, 68, 0.08);
  border-radius: 10px;
}
.nav-item.has-unread .nav-item-icon {
  animation: navAlertPulse 2s ease-in-out infinite;
}
@keyframes navAlertPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.18);
  }
}

.sidebar-footer {
  padding: 12px 10px;
  border-top: 1px solid var(--dash-divider);
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.sidebar-footer-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--dash-font);
  font-size: 13px;
  font-weight: 600;
  color: var(--dash-text-muted);
  text-align: left;
  transition:
    background 0.2s,
    color 0.2s;
  width: 100%;
}
.sidebar-footer-btn:hover {
  background: var(--dash-accent-soft);
  color: var(--dash-text);
}
.sidebar-footer-btn.danger:hover {
  background: rgba(255, 107, 107, 0.12);
  color: #ff6b6b;
}

/* ══ MAIN CONTENT ═════════════════════════════════════════════════════════ */
.dash-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 58px;
  flex-shrink: 0;
  background: var(--dash-topbar-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--dash-divider);
  gap: 16px;
  position: relative;
  z-index: 1000;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sidebar-toggle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: var(--dash-card-bg);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dash-text-muted);
  transition: background 0.2s;
}
.sidebar-toggle:hover {
  background: var(--dash-accent-soft);
  color: var(--dash-accent);
}
.topbar-title {
  font-family: var(--dash-heading-font, "DM Serif Display", serif);
  font-size: 18px;
  color: var(--dash-text);
  font-weight: 400;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--dash-card-bg);
  border: 1px solid var(--dash-card-border);
  border-radius: 10px;
  padding: 7px 12px;
  backdrop-filter: blur(8px);
}
.topbar-search svg {
  color: var(--dash-text-muted);
  flex-shrink: 0;
}
.topbar-search input {
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--dash-font);
  font-size: 13px;
  color: var(--dash-text);
  width: 160px;
}
.topbar-search input::placeholder {
  color: var(--dash-text-muted);
}
.topbar-notif {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--dash-card-border);
  background: var(--dash-card-bg);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.topbar-notif:hover {
  background: var(--dash-accent-soft);
}
.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ff6b6b;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--dash-font);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--dash-topbar-bg);
}
.topbar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dash-accent-soft);
  border: 2px solid var(--dash-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--dash-accent);
  cursor: pointer;
  overflow: hidden;
}
.topbar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Cover */
.dash-cover {
  position: relative;
  height: 140px;
  flex-shrink: 0;
  background: linear-gradient(
    135deg,
    var(--dash-accent),
    rgba(59, 158, 255, 0.4)
  );
  overflow: hidden;
  transition: height 0.3s ease;
}
.dash-cover.has-image {
  height: 160px;
}
.dash-cover img.cover-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}
.dash-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(8, 16, 32, 0.55) 0%,
    rgba(8, 16, 32, 0.2) 100%
  );
}
.dash-cover-content {
  position: relative;
  z-index: 1;
  padding: 28px 28px 0;
}
.dash-cover-content h1 {
  font-family: var(--dash-heading-font, "DM Serif Display", serif);
  font-size: clamp(18px, 2.5vw, 26px);
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  margin-bottom: 4px;
}
.dash-cover-content p {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}
.cover-edit-btn {
  position: absolute;
  bottom: 12px;
  right: 16px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}
.cover-edit-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

.dash-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--dash-accent-soft) transparent;
}
.dash-content::-webkit-scrollbar {
  width: 4px;
}
.dash-content::-webkit-scrollbar-track {
  background: transparent;
}
.dash-content::-webkit-scrollbar-thumb {
  background: var(--dash-accent-soft);
  border-radius: 2px;
}
.dash-compact .dash-content {
  padding: 14px;
}
.dash-compact .stat-card {
  padding: 14px 16px;
}
.dash-compact .widget-card {
  padding: 16px;
}

/* ══ WIDGETS ══════════════════════════════════════════════════════════════ */
.widget-card {
  background: var(--dash-card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--dash-card-border);
  border-radius: 20px;
  padding: 20px 22px;
  box-shadow: var(--dash-shadow);
  transition: box-shadow 0.3s ease;
  margin-bottom: 18px;
}
.widget-card:hover {
  box-shadow: var(--dash-shadow-lg);
}
.widget-card.hidden {
  display: none;
}
.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.widget-title {
  font-family: var(--dash-heading-font, "DM Serif Display", serif);
  font-size: 15px;
  color: var(--dash-text);
  font-weight: 400;
}
.widget-action {
  font-size: 12px;
  font-weight: 700;
  color: var(--dash-accent);
  cursor: pointer;
  text-decoration: none;
  background: none;
  border: none;
  font-family: var(--dash-font);
  transition: opacity 0.2s;
}
.widget-action:hover {
  opacity: 0.7;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--dash-card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--dash-card-border);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--dash-shadow);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--dash-shadow-lg);
}
.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--dash-accent), transparent);
  border-radius: 3px 3px 0 0;
}
.stat-icon {
  font-size: 22px;
  margin-bottom: 10px;
  display: block;
}
.stat-value {
  font-family: var(--dash-heading-font, "DM Serif Display", serif);
  font-size: 28px;
  color: var(--dash-text);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dash-text-muted);
}
.stat-change {
  font-size: 12px;
  font-weight: 700;
  margin-top: 6px;
}
.stat-change.up {
  color: #34c98a;
}
.stat-change.down {
  color: #ff6b6b;
}
.stat-change.flat {
  color: var(--dash-text-muted);
}

/* Commission list */
.commission-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.commission-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid var(--dash-card-border);
  border-radius: 14px;
  transition:
    background 0.2s,
    transform 0.2s;
  cursor: pointer;
}
.commission-item:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: translateX(4px);
}
.ci-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--dash-accent-soft);
  border: 2px solid var(--dash-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--dash-accent);
  flex-shrink: 0;
  overflow: hidden;
}
.ci-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ci-info {
  flex: 1;
  min-width: 0;
}
.ci-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--dash-text);
}
.ci-desc {
  font-size: 12px;
  color: var(--dash-text-muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ci-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
}
.ci-price {
  font-family: var(--dash-heading-font, "DM Serif Display", serif);
  font-size: 16px;
  color: var(--dash-accent);
}
.ci-status {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ci-status.new {
  background: rgba(59, 158, 255, 0.15);
  color: var(--dash-accent);
}
.ci-status.progress {
  background: rgba(245, 166, 35, 0.15);
  color: #c07d00;
}
.ci-status.review {
  background: rgba(139, 92, 246, 0.15);
  color: #6d28d9;
}
.ci-status.done {
  background: rgba(52, 201, 138, 0.15);
  color: #1a7a52;
}

/* Portfolio */
.portfolio-dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.portfolio-dash-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  border: 1px solid var(--dash-card-border);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.portfolio-dash-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--dash-shadow-lg);
}
.portfolio-dash-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portfolio-dash-item .item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 16, 32, 0.75) 0%,
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.25s;
  display: flex;
  align-items: flex-end;
  padding: 10px;
}
.portfolio-dash-item:hover .item-overlay {
  opacity: 1;
}
.item-overlay span {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}
.portfolio-upload-card {
  border-radius: 14px;
  border: 2px dashed var(--dash-accent);
  aspect-ratio: 1;
  cursor: pointer;
  background: var(--dash-accent-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.portfolio-upload-card:hover {
  background: rgba(59, 158, 255, 0.18);
  transform: translateY(-2px);
}
.portfolio-upload-card span:first-child {
  font-size: 28px;
}
.portfolio-upload-card span:last-child {
  font-size: 12px;
  font-weight: 700;
  color: var(--dash-accent);
}

/* ── PORTFOLIO — REAL ITEMS ─────────────────────────────────────────────── */
.portfolio-real-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  border: 1px solid var(--dash-card-border);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  background: var(--dash-card-bg);
}
.portfolio-real-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--dash-shadow-lg);
}
.portfolio-real-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.portfolio-real-item:hover img {
  transform: scale(1.04);
}

.portfolio-real-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 16, 32, 0.82) 0%,
    rgba(8, 16, 32, 0.18) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.22s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
}
.portfolio-real-item:hover .portfolio-real-overlay {
  opacity: 1;
}

.pf-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.pf-item-bottom {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pf-cat-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.pf-item-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pf-public-badge,
.pf-private-badge {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.pf-delete-btn {
  background: rgba(255, 80, 80, 0.18);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 80, 80, 0.3);
  border-radius: 8px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s;
  flex-shrink: 0;
}
.pf-delete-btn:hover {
  background: rgba(255, 80, 80, 0.45);
}

/* Category filter buttons */
.pf-cat-btn {
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--dash-divider);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  background: transparent;
  color: var(--dash-text-muted);
  font-family: var(--dash-font);
  transition: all 0.15s;
}
.pf-cat-btn:hover {
  border-color: var(--dash-accent);
  color: var(--dash-accent);
}
.pf-cat-btn.active {
  background: var(--dash-accent);
  color: #fff;
  border-color: var(--dash-accent);
}

/* Upload progress bar */
.pf-upload-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--dash-accent-soft);
  border: 1px solid var(--dash-accent);
}
.pf-upload-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.pf-upload-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--dash-accent), #72c0ff);
  transition: width 0.3s ease;
}
.pf-upload-progress span {
  font-size: 12px;
  font-weight: 600;
  color: var(--dash-accent);
}

/* Skeleton loader */
.pf-skeleton {
  background: linear-gradient(
    90deg,
    var(--dash-card-bg) 25%,
    rgba(200, 220, 255, 0.15) 50%,
    var(--dash-card-bg) 75%
  );
  background-size: 200% 100%;
  animation: pfSkeleton 1.4s ease infinite;
}
@keyframes pfSkeleton {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Upload metadata modal */
.pf-meta-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(8, 16, 32, 0.65);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.pf-meta-modal-box {
  background: var(--dash-card-bg);
  border: 1px solid var(--dash-card-border);
  border-radius: 20px;
  box-shadow: var(--dash-shadow-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.pf-meta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--dash-divider);
}
.pf-meta-header h3 {
  font-family: "DM Serif Display", serif;
  font-size: 20px;
  color: var(--dash-text);
  margin: 0;
}
.pf-meta-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--dash-divider);
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  color: var(--dash-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.pf-meta-close:hover {
  background: var(--dash-accent-soft);
}

.pf-meta-body {
  display: flex;
  gap: 18px;
  padding: 18px 20px;
  flex-wrap: wrap;
}
.pf-meta-preview {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.pf-meta-preview img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--dash-divider);
}
.pf-meta-filename {
  font-size: 11px;
  color: var(--dash-text-muted);
  max-width: 150px;
  text-align: center;
  word-break: break-all;
}

.pf-meta-form {
  flex: 1;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pf-meta-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pf-meta-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--dash-text-mid);
}

.pf-meta-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 14px 20px;
  border-top: 1px solid var(--dash-divider);
}

/* Earnings */
.earnings-chart {
  height: 120px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 0;
}
.chart-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.chart-bar {
  width: 100%;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(
    to top,
    var(--dash-accent),
    rgba(59, 158, 255, 0.4)
  );
  transition: height 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-height: 4px;
}
.chart-bar-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--dash-text-muted);
}
.earnings-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--dash-divider);
}
.earnings-total-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--dash-text-muted);
}
.earnings-total-value {
  font-family: var(--dash-heading-font, "DM Serif Display", serif);
  font-size: 24px;
  color: var(--dash-accent);
}

/* Activity */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.activity-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: var(--dash-accent-soft);
  border: 1.5px solid var(--dash-accent);
}
.activity-body {
  flex: 1;
  min-width: 0;
}
.activity-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--dash-text);
  line-height: 1.4;
}
.activity-time {
  font-size: 11px;
  color: var(--dash-text-muted);
  margin-top: 2px;
}

/* Collection */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.collection-item {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--dash-card-border);
  transition: transform 0.3s ease;
  cursor: pointer;
}
.collection-item:hover {
  transform: translateY(-4px);
}
.collection-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}
.collection-item-info {
  padding: 8px 10px;
  background: var(--dash-card-bg);
}
.collection-item-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--dash-text);
}
.collection-item-artist {
  font-size: 11px;
  color: var(--dash-text-muted);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.empty-state-icon {
  font-size: 48px;
  opacity: 0.5;
}
.empty-state h3 {
  font-family: var(--dash-heading-font, "DM Serif Display", serif);
  font-size: 18px;
  color: var(--dash-text);
}
.empty-state p {
  font-size: 13px;
  color: var(--dash-text-muted);
  max-width: 300px;
  line-height: 1.6;
}

/* ══ MESSAGES / CHAT ══════════════════════════════════════════════════════ */
.chat-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  height: calc(100vh - 58px - 160px);
  min-height: 400px;
  background: var(--dash-card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--dash-card-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--dash-shadow);
}

/* Chat list panel */
.chat-list {
  border-right: 1px solid var(--dash-divider);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-list-header {
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--dash-divider);
  font-family: var(--dash-heading-font, "DM Serif Display", serif);
  font-size: 15px;
  color: var(--dash-text);
  flex-shrink: 0;
}
.chat-list-items {
  overflow-y: auto;
  flex: 1;
  scrollbar-width: none;
}
.chat-list-items::-webkit-scrollbar {
  display: none;
}

.chat-thread {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid var(--dash-divider);
  position: relative;
}
.chat-thread:hover {
  background: var(--dash-accent-soft);
}
.chat-thread.active {
  background: var(--dash-accent-soft);
}
.chat-thread.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--dash-accent);
  border-radius: 0 3px 3px 0;
}
.chat-thread-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  border: 2px solid var(--dash-card-border);
  background: var(--dash-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--dash-accent);
  overflow: hidden;
}
.chat-thread-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chat-thread-info {
  flex: 1;
  min-width: 0;
}
.chat-thread-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--dash-text);
}
.chat-thread-preview {
  font-size: 12px;
  color: var(--dash-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-thread-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.chat-thread-time {
  font-size: 10px;
  color: var(--dash-text-muted);
}
.chat-unread {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--dash-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Chat window panel */
.chat-window {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-window-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--dash-divider);
  flex-shrink: 0;
}
.chat-window-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--dash-accent-soft);
  border: 2px solid var(--dash-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--dash-accent);
  overflow: hidden;
}
.chat-window-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chat-window-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--dash-text);
}
.chat-window-status {
  font-size: 11px;
  color: #34c98a;
  font-weight: 600;
}
.chat-window-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.chat-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--dash-divider);
  background: var(--dash-card-bg);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dash-text-muted);
  transition: background 0.2s;
}
.chat-action-btn:hover {
  background: var(--dash-accent-soft);
  color: var(--dash-accent);
}

/* Messages area */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--dash-accent-soft) transparent;
}
.chat-messages::-webkit-scrollbar {
  width: 3px;
}
.chat-messages::-webkit-scrollbar-thumb {
  background: var(--dash-accent-soft);
}

.chat-date-divider {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--dash-text-muted);
  padding: 4px 12px;
  background: var(--dash-accent-soft);
  border-radius: 999px;
  align-self: center;
}

/* Message bubble */
.msg {
  display: flex;
  gap: 10px;
  max-width: 75%;
}
.msg.sent {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.msg.received {
  align-self: flex-start;
}

.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--dash-accent-soft);
  border: 1.5px solid var(--dash-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--dash-accent);
  align-self: flex-end;
  overflow: hidden;
}
.msg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.msg-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.msg.sent .msg-body {
  align-items: flex-end;
}

.msg-bubble {
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
  max-width: 100%;
}
.msg.received .msg-bubble {
  background: var(--dash-card-bg);
  border: 1px solid var(--dash-card-border);
  color: var(--dash-text);
  border-bottom-left-radius: 4px;
}
.msg.sent .msg-bubble {
  background: linear-gradient(
    135deg,
    var(--dash-accent),
    rgba(59, 158, 255, 0.8)
  );
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 12px var(--dash-accent-glow);
}

.msg-time {
  font-size: 10px;
  color: var(--dash-text-muted);
  padding: 0 4px;
}

/* Attachment bubble */
.msg-attachment {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--dash-card-bg);
  border: 1px solid var(--dash-card-border);
  cursor: pointer;
}
.msg.sent .msg-attachment {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.25);
}
.msg-attachment-icon {
  font-size: 22px;
  flex-shrink: 0;
}
.msg-attachment-info .msg-attachment-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--dash-text);
}
.msg.sent .msg-attachment-info .msg-attachment-name {
  color: #fff;
}
.msg-attachment-info .msg-attachment-size {
  font-size: 11px;
  color: var(--dash-text-muted);
}
.msg.sent .msg-attachment-info .msg-attachment-size {
  color: rgba(255, 255, 255, 0.65);
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  background: var(--dash-card-bg);
  border: 1px solid var(--dash-card-border);
  width: fit-content;
}
.typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dash-text-muted);
  animation: typingBounce 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes typingBounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

/* Chat input */
.chat-input-area {
  padding: 14px 20px;
  border-top: 1px solid var(--dash-divider);
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-shrink: 0;
}
.chat-input-wrap {
  flex: 1;
  background: rgba(255, 255, 255, 0.55);
  border: 1.5px solid var(--dash-divider);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  transition: border-color 0.2s;
}
.chat-input-wrap:focus-within {
  border-color: var(--dash-accent);
}
.chat-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--dash-font);
  font-size: 14px;
  color: var(--dash-text);
  resize: none;
  max-height: 80px;
  line-height: 1.5;
}
.chat-input::placeholder {
  color: var(--dash-text-muted);
}
.chat-attach-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--dash-text-muted);
  padding: 0;
  transition: color 0.2s;
  flex-shrink: 0;
}
.chat-attach-btn:hover {
  color: var(--dash-accent);
}
.chat-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(
    135deg,
    var(--dash-accent),
    rgba(59, 158, 255, 0.8)
  );
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--dash-accent-glow);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  flex-shrink: 0;
}
.chat-send-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 18px var(--dash-accent-glow);
}

/* Commission context bar */
.chat-commission-bar {
  margin: 0 20px 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--dash-accent-soft);
  border: 1px solid var(--dash-accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.chat-commission-bar span {
  font-size: 12px;
  font-weight: 600;
  color: var(--dash-text);
}
.chat-commission-bar strong {
  color: var(--dash-accent);
}

/* ══ SETTINGS ═════════════════════════════════════════════════════════════ */
.settings-sections {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.settings-section {
  background: var(--dash-card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--dash-card-border);
  border-radius: 20px;
  padding: 22px 24px;
}
.settings-section h3 {
  font-family: var(--dash-heading-font, "DM Serif Display", serif);
  font-size: 16px;
  color: var(--dash-text);
  margin-bottom: 16px;
}
.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--dash-divider);
  gap: 20px;
  flex-wrap: wrap;
}
.settings-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.settings-row-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--dash-text);
}
.settings-row-hint {
  font-size: 12px;
  color: var(--dash-text-muted);
  margin-top: 2px;
}
.settings-input {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px solid rgba(0, 0, 0, 0.18);
  background: var(--dash-card-bg, rgba(255, 255, 255, 0.85));
  font-family: var(--dash-font);
  font-size: 13px;
  color: var(--dash-text);
  outline: none;
  min-width: 200px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
/* Dark themes: use light border */
.dash-dark .settings-input,
.dash-glass .settings-input,
.dash-sunset .settings-input,
.dash-forest .settings-input,
.dash-ocean .settings-input,
.dash-neon .settings-input,
.dash-sakura .settings-input {
  border-color: rgba(255, 255, 255, 0.22);
}
/* Force select option text to always be readable — browser native dropdowns
   inherit the OS color scheme so we use a solid bg on the element itself */
select.settings-input {
  background: var(--dash-card-bg, #1a2a44);
  color: var(--dash-text);
}
select.settings-input option,
select.settings-input optgroup {
  background: #1a2a44;
  color: #e6f0ff;
}
.dash-dark select.settings-input,
.dash-glass select.settings-input,
.dash-sunset select.settings-input,
.dash-forest select.settings-input,
.dash-ocean select.settings-input,
.dash-neon select.settings-input,
.dash-sakura select.settings-input {
  background: #111827;
  color: #e6f0ff;
}
.settings-input:focus {
  border-color: var(--dash-accent);
}

/* ── MEDIUM / ROLE CUSTOM DROPDOWN ─────────────────────────────────────── */
.medium-select-btn {
  min-height: 38px;
}
.medium-dropdown {
  position: fixed;
  background: var(--dash-card-bg, rgba(15, 25, 50, 0.98));
  border: 1.5px solid var(--dash-accent);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  z-index: 99999;
  max-height: 300px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(16px);
  min-width: 220px;
  /* no overflow:hidden — let the inner list scroll */
}
.medium-search-input {
  padding: 9px 14px;
  border: none;
  border-bottom: 1px solid var(--dash-divider);
  background: transparent;
  font-family: var(--dash-font);
  font-size: 13px;
  color: var(--dash-text);
  outline: none;
  flex-shrink: 0;
  border-radius: 12px 12px 0 0;
}
.medium-search-input::placeholder {
  color: var(--dash-text-muted);
}
.medium-dropdown-list {
  overflow-y: auto;
  flex: 1;
  border-radius: 0 0 12px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--dash-accent) transparent;
}
.medium-dropdown-list::-webkit-scrollbar {
  width: 5px;
}
.medium-dropdown-list::-webkit-scrollbar-thumb {
  background: var(--dash-accent);
  border-radius: 999px;
}
.medium-dropdown-group {
  padding: 6px 14px 3px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dash-accent);
  opacity: 0.7;
}
.medium-dropdown-item {
  padding: 8px 14px 8px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dash-text);
  cursor: pointer;
  transition: background 0.12s;
}
.medium-dropdown-item:hover {
  background: var(--dash-accent-soft);
  color: var(--dash-accent);
}

/* Location suggestions uses body-append positioning via JS */
.location-suggestions {
  position: absolute;
  z-index: 99999;
  background: var(--dash-card-bg, rgba(15, 25, 50, 0.98));
  border: 1.5px solid var(--dash-divider);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px);
  max-height: 240px;
  overflow-y: auto;
  min-width: 220px;
}
.lang-search-wrap {
  position: relative;
  margin-bottom: 8px;
}
.lang-search-input {
  width: 100%;
  box-sizing: border-box;
}
.lang-dropdown {
  position: fixed;
  background: var(--dash-card-bg, rgba(15, 25, 50, 0.98));
  border: 1.5px solid var(--dash-accent);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  z-index: 99999;
  overflow-y: auto;
  max-height: 220px;
  backdrop-filter: blur(16px);
  min-width: 220px;
  scrollbar-width: thin;
  scrollbar-color: var(--dash-accent) transparent;
}
.lang-dropdown::-webkit-scrollbar {
  width: 5px;
}
.lang-dropdown::-webkit-scrollbar-thumb {
  background: var(--dash-accent);
  border-radius: 999px;
}
.lang-dropdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  cursor: pointer;
  transition: background 0.12s;
}
.lang-dropdown-item:hover {
  background: var(--dash-accent-soft);
}
.lang-dropdown-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--dash-text);
}
.lang-dropdown-code {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--dash-accent);
  background: var(--dash-accent-soft);
  padding: 2px 7px;
  border-radius: 999px;
}

/* Selected language pills (below search input) */
.lang-selected-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 20px;
}
.lang-selected-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px 4px 11px;
  border-radius: 999px;
  border: 1.5px solid var(--dash-accent);
  background: var(--dash-accent-soft);
  font-size: 12px;
  font-weight: 700;
  color: var(--dash-accent);
}
.lang-selected-pill button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  color: var(--dash-accent);
  padding: 0;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.lang-selected-pill button:hover {
  opacity: 1;
}
.lang-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 320px;
}
.lang-pill {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--dash-divider);
  background: transparent;
  color: var(--dash-text-muted);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--dash-font);
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s,
    color 0.15s;
  letter-spacing: 0.04em;
}
.lang-pill.active {
  border-color: var(--dash-accent);
  background: var(--dash-accent-soft, rgba(59, 158, 255, 0.12));
  color: var(--dash-accent);
}
.lang-pill:hover {
  border-color: var(--dash-accent);
  color: var(--dash-accent);
}

/* ── LOCATION AUTOCOMPLETE ─────────────────────────────────────────────── */
.location-wrap {
  position: relative;
}
.location-suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--dash-card-bg, #fff);
  border: 1.5px solid var(--dash-divider);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 999;
  overflow: hidden;
  max-height: 240px;
  overflow-y: auto;
}
.location-suggestion-item {
  padding: 9px 14px;
  font-size: 13px;
  color: var(--dash-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.1s;
}
.location-suggestion-item:hover {
  background: var(--dash-bg, rgba(0, 0, 0, 0.04));
}

.toggle-switch {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}
.toggle-switch.on {
  background: var(--dash-accent);
}
.toggle-switch::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.toggle-switch.on::after {
  transform: translateX(20px);
}

.role-switch-banner {
  background: var(--dash-accent-soft);
  border: 1px solid var(--dash-accent);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.role-switch-banner p {
  font-size: 13px;
  font-weight: 600;
  color: var(--dash-text);
}
.role-switch-banner span {
  font-size: 12px;
  color: var(--dash-text-muted);
}

/* ══ THEME PANEL ══════════════════════════════════════════════════════════ */
.theme-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.theme-panel-overlay.active {
  opacity: 1;
  visibility: visible;
}

.theme-panel {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 310px;
  z-index: 999;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(28px) saturate(1.5);
  border-left: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: -8px 0 40px rgba(10, 40, 80, 0.15);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding-bottom: 100px; /* ensure reset button is fully visible */
  display: flex;
  flex-direction: column;
  scrollbar-width: none;
}
.theme-panel::-webkit-scrollbar {
  display: none;
}
.theme-panel.active {
  transform: translateX(0);
}

.theme-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  z-index: 1;
}
.theme-panel-header h3 {
  font-family: "DM Serif Display", serif;
  font-size: 17px;
  color: #0b1c2e;
}
.theme-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.07);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.theme-close:hover {
  background: rgba(0, 0, 0, 0.14);
}

.theme-section {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
.theme-section:last-of-type {
  border-bottom: none;
}
.theme-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2a4a62;
  margin-bottom: 12px;
  display: block;
}

.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition:
    transform 0.2s,
    border-color 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.swatch:hover {
  transform: scale(1.15);
}
.swatch.active {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.25);
  transform: scale(1.1);
}
.custom-swatch {
  position: relative;
  background: linear-gradient(135deg, #ff6b9d, #f5a623, #3b9eff);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 14px;
}
.custom-swatch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.custom-swatch span {
  pointer-events: none;
}

.density-options {
  display: flex;
  gap: 12px;
}
.density-opt {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(255, 255, 255, 0.6);
}
.density-opt:hover {
  border-color: #3b9eff;
}
.density-opt.active {
  border-color: #3b9eff;
  background: rgba(59, 158, 255, 0.08);
}
.density-opt span {
  font-size: 12px;
  font-weight: 700;
  color: #1a3350;
}
.density-preview {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}
.density-preview div {
  background: rgba(59, 158, 255, 0.3);
  border-radius: 3px;
}
.spacious-preview div {
  height: 12px;
}
.compact-preview div {
  height: 6px;
}

.dash-theme-options {
  display: flex;
  gap: 10px;
}
.dash-theme-opt {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.theme-preview {
  width: 100%;
  height: 44px;
  border-radius: 10px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  transition: border-color 0.2s;
  overflow: hidden;
}
.dash-theme-opt.active .theme-preview {
  border-color: #3b9eff;
  box-shadow: 0 0 0 2px rgba(59, 158, 255, 0.3);
}
.dash-theme-opt span {
  font-size: 11px;
  font-weight: 700;
  color: #2a4a62;
}
.light-preview {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9),
    rgba(220, 235, 255, 0.8)
  );
}
.dark-preview {
  background: linear-gradient(135deg, #0a1420, #1a3050);
}
.glass-preview {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15),
    rgba(200, 230, 255, 0.2)
  );
  position: relative;
  overflow: hidden;
}
.glass-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 70%
  );
  animation: glassShimmer 2s ease-in-out infinite;
}

/* Font options */
.font-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.font-opt {
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid rgba(0, 0, 0, 0.09);
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.font-opt:hover {
  border-color: #3b9eff;
  background: rgba(255, 255, 255, 0.9);
}
.font-opt.active {
  border-color: #3b9eff;
  background: rgba(59, 158, 255, 0.07);
}
.font-opt-name {
  font-size: 13px;
  font-weight: 700;
  color: #0b1c2e;
}
.font-opt-preview {
  font-size: 15px;
  color: #1a3350;
}
.font-opt[data-font="sleek"] .font-opt-preview {
  font-family: "Outfit", sans-serif;
}
.font-opt[data-font="editorial"] .font-opt-preview {
  font-family: "Lora", serif;
}
.font-opt[data-font="mono"] .font-opt-preview {
  font-family: "JetBrains Mono", monospace;
}

.widget-toggles {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.widget-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: #1a3350;
}

/* ── RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .dash-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 200;
  }
  .dash-sidebar.mobile-open {
    transform: translateX(0);
  }
  .topbar-search {
    display: none;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .chat-shell {
    grid-template-columns: 1fr;
  }
  .chat-list {
    display: none;
  }
}
/* ══ NEW COMPONENTS v2 ════════════════════════════════════════════════════ */

/* ── CHART TYPE SWITCHER ───────────────────────────────────────────────── */
.chart-type-switcher {
  display: flex;
  gap: 6px;
}
.chart-type-btn {
  padding: 5px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--dash-divider);
  background: transparent;
  cursor: pointer;
  font-family: var(--dash-font);
  font-size: 12px;
  font-weight: 700;
  color: var(--dash-text-muted);
  transition: all 0.2s;
}
.chart-type-btn.active {
  border-color: var(--dash-accent);
  background: var(--dash-accent-soft);
  color: var(--dash-accent);
}
.chart-type-btn:hover {
  border-color: var(--dash-accent);
  color: var(--dash-accent);
}

/* ── COMMISSION ITEM DETAILED ──────────────────────────────────────────── */
.commission-item-detailed {
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid var(--dash-card-border);
  border-radius: 16px;
  padding: 16px;
  transition: background 0.2s;
}
.commission-item-detailed:hover {
  background: rgba(255, 255, 255, 0.55);
}
.cid-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.cid-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.cid-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--dash-text-muted);
  background: var(--dash-accent-soft);
  border-radius: 999px;
  padding: 3px 10px;
}
.cid-note {
  color: var(--dash-text-mid) !important;
  font-style: italic;
}
.cid-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cid-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--dash-divider);
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-family: var(--dash-font);
  font-size: 12px;
  font-weight: 600;
  color: var(--dash-text-muted);
  transition: all 0.2s;
}
.cid-btn:hover {
  background: var(--dash-accent-soft);
  color: var(--dash-accent);
  border-color: var(--dash-accent);
}
.cid-btn.success {
  background: rgba(52, 201, 138, 0.12);
  color: #1a7a52;
  border-color: rgba(52, 201, 138, 0.35);
}
.cid-btn.success:hover {
  background: rgba(52, 201, 138, 0.22);
}

/* ── HISTORY TABLE ─────────────────────────────────────────────────────── */
.history-table {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.history-header {
  display: grid;
  grid-template-columns: 70px 160px 1fr 80px 110px 1fr;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dash-text-muted);
  border-bottom: 2px solid var(--dash-divider);
}
.history-row {
  display: grid;
  grid-template-columns: 70px 160px 1fr 80px 110px 1fr;
  padding: 12px 12px;
  border-bottom: 1px solid var(--dash-divider);
  align-items: start;
  transition: background 0.2s;
  gap: 8px;
}
.history-row:hover {
  background: rgba(255, 255, 255, 0.3);
}
.history-row:last-child {
  border-bottom: none;
}
.history-id {
  font-size: 12px;
  font-weight: 700;
  color: var(--dash-accent);
}
.history-buyer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dash-text);
}
.history-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--dash-accent-soft);
  border: 1px solid var(--dash-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--dash-accent);
  flex-shrink: 0;
}
.history-item {
  font-size: 12px;
  color: var(--dash-text-muted);
}
.history-price {
  font-family: var(--dash-heading-font, "DM Serif Display", serif);
  font-size: 15px;
  color: var(--dash-accent);
}
.history-date {
  font-size: 12px;
  color: var(--dash-text-muted);
}
.history-stars {
  font-size: 12px;
  margin-bottom: 4px;
}
.history-review-text {
  font-size: 11px;
  color: var(--dash-text-muted);
  font-style: italic;
  line-height: 1.5;
}

/* ── ORDER CARD DETAILED (client) ──────────────────────────────────────── */
.order-card-detailed {
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid var(--dash-card-border);
  border-radius: 16px;
  padding: 16px;
  transition: background 0.2s;
}
.order-card-detailed:hover {
  background: rgba(255, 255, 255, 0.55);
}
.ocd-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.ocd-details {
  margin-bottom: 12px;
}
.ocd-detail-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}
.ocd-detail-row span {
  font-size: 12px;
  font-weight: 600;
  color: var(--dash-text-muted);
}
.ocd-note {
  font-size: 12px;
  font-weight: 600;
  color: var(--dash-text-mid);
  font-style: italic;
  padding: 8px 12px;
  background: var(--dash-accent-soft);
  border-radius: 8px;
}
.ocd-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── COLLECTIONS (Pinterest-style) ────────────────────────────────────── */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.collection-board {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--dash-card-border);
  border-radius: 18px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.collection-board:hover {
  box-shadow: var(--dash-shadow-lg);
}

.collection-board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px 10px;
}
.collection-board-name {
  font-family: var(--dash-heading-font, "DM Serif Display", serif);
  font-size: 16px;
  color: var(--dash-text);
}
.collection-public-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(59, 158, 255, 0.12);
  color: var(--dash-accent);
}
.collection-private-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.07);
  color: var(--dash-text-muted);
}

.collection-mosaic {
  display: grid;
  grid-template-columns: 2fr 1fr;
  height: 160px;
  gap: 2px;
  margin: 0 12px;
  border-radius: 12px;
  overflow: hidden;
}
.mosaic-main {
  overflow: hidden;
}
.mosaic-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mosaic-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  overflow: hidden;
}
.mosaic-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.collection-board-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
}

/* Collection comments */
.collection-comments {
  padding: 14px 16px;
  border-top: 1px solid var(--dash-divider);
  background: rgba(255, 255, 255, 0.2);
}
.collection-comment {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  align-items: flex-start;
}
.collection-comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--dash-accent-soft);
  border: 1px solid var(--dash-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--dash-accent);
}
.collection-comment-body {
  flex: 1;
  min-width: 0;
}
.collection-comment-user {
  font-size: 12px;
  font-weight: 700;
  color: var(--dash-text);
}
.collection-comment-time {
  font-size: 11px;
  color: var(--dash-text-muted);
  font-weight: 400;
}
.collection-comment-text {
  font-size: 12px;
  color: var(--dash-text-muted);
  line-height: 1.5;
  margin-top: 2px;
}
.collection-comment-input {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}
/* ══ EXTRA DASHBOARD THEMES ═══════════════════════════════════════════════ */

/* Sunset — warm coral/amber */
.dash-sunset {
  --dash-bg: rgba(255, 220, 180, 0.12);
  --dash-sidebar-bg: rgba(255, 245, 230, 0.85);
  --dash-sidebar-border: rgba(255, 160, 80, 0.25);
  --dash-card-bg: rgba(255, 250, 240, 0.8);
  --dash-card-border: rgba(255, 180, 100, 0.3);
  --dash-topbar-bg: rgba(255, 245, 225, 0.7);
  --dash-text: #3d1a00;
  --dash-text-mid: #7a3800;
  --dash-text-muted: #b06030;
  --dash-divider: rgba(200, 100, 40, 0.12);
  --dash-shadow: 0 4px 20px rgba(180, 80, 20, 0.12);
  --dash-shadow-lg: 0 12px 40px rgba(180, 80, 20, 0.18);
  --dash-accent: #f5a623;
}

/* Forest — deep green */
.dash-forest {
  --dash-bg: rgba(20, 50, 30, 0.95);
  --dash-sidebar-bg: rgba(15, 40, 25, 0.96);
  --dash-sidebar-border: rgba(80, 180, 100, 0.15);
  --dash-card-bg: rgba(22, 55, 35, 0.9);
  --dash-card-border: rgba(80, 180, 100, 0.12);
  --dash-topbar-bg: rgba(18, 45, 28, 0.9);
  --dash-text: rgba(220, 255, 230, 0.95);
  --dash-text-mid: rgba(160, 230, 180, 0.85);
  --dash-text-muted: rgba(100, 180, 130, 0.7);
  --dash-divider: rgba(80, 180, 100, 0.1);
  --dash-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  --dash-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.45);
  --dash-accent: #34c98a;
}

/* Ocean — deep navy/teal */
.dash-ocean {
  --dash-bg: rgba(5, 20, 45, 0.95);
  --dash-sidebar-bg: rgba(4, 15, 38, 0.96);
  --dash-sidebar-border: rgba(0, 180, 220, 0.15);
  --dash-card-bg: rgba(6, 25, 55, 0.9);
  --dash-card-border: rgba(0, 180, 220, 0.12);
  --dash-topbar-bg: rgba(5, 18, 42, 0.9);
  --dash-text: rgba(200, 240, 255, 0.95);
  --dash-text-mid: rgba(140, 210, 240, 0.85);
  --dash-text-muted: rgba(80, 160, 200, 0.7);
  --dash-divider: rgba(0, 180, 220, 0.1);
  --dash-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --dash-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
  --dash-accent: #06b6d4;
}

/* Neon — dark with vivid accents */
.dash-neon {
  --dash-bg: rgba(5, 0, 15, 0.97);
  --dash-sidebar-bg: rgba(8, 0, 20, 0.98);
  --dash-sidebar-border: rgba(180, 0, 255, 0.2);
  --dash-card-bg: rgba(12, 0, 28, 0.92);
  --dash-card-border: rgba(180, 0, 255, 0.15);
  --dash-topbar-bg: rgba(8, 0, 20, 0.92);
  --dash-text: rgba(255, 220, 255, 0.95);
  --dash-text-mid: rgba(220, 160, 255, 0.85);
  --dash-text-muted: rgba(160, 80, 220, 0.7);
  --dash-divider: rgba(180, 0, 255, 0.12);
  --dash-shadow: 0 4px 20px rgba(180, 0, 255, 0.2);
  --dash-shadow-lg: 0 12px 40px rgba(180, 0, 255, 0.3);
  --dash-accent: #e879f9;
}
.dash-neon .sidebar-footer-btn:hover,
.dash-neon .nav-item:hover {
  box-shadow: 0 0 12px rgba(232, 121, 249, 0.4);
}

/* Sakura — soft pink/blush */
.dash-sakura {
  --dash-bg: rgba(255, 240, 245, 0.15);
  --dash-sidebar-bg: rgba(255, 248, 250, 0.88);
  --dash-sidebar-border: rgba(255, 160, 180, 0.25);
  --dash-card-bg: rgba(255, 252, 253, 0.82);
  --dash-card-border: rgba(255, 180, 200, 0.3);
  --dash-topbar-bg: rgba(255, 248, 250, 0.72);
  --dash-text: #3d0a18;
  --dash-text-mid: #7a1a35;
  --dash-text-muted: #b06080;
  --dash-divider: rgba(220, 80, 120, 0.1);
  --dash-shadow: 0 4px 20px rgba(220, 80, 120, 0.1);
  --dash-shadow-lg: 0 12px 40px rgba(220, 80, 120, 0.16);
  --dash-accent: #ff6b9d;
}
/* ══════════════════════════════════════════════════════════════════════════════
   FOLLOWERS / FOLLOWING DASHBOARD TAB
   ══════════════════════════════════════════════════════════════════════════════ */
.followers-shell {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 400px;
  background: var(--dash-card-bg);
  border: 1px solid var(--dash-divider);
  border-radius: 18px;
  overflow: hidden;
}
.followers-header {
  background: var(--dash-card);
  border-bottom: 1px solid var(--dash-divider);
  padding: 16px 24px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.followers-tabs {
  display: flex;
  gap: 8px;
}
.followers-tab {
  padding: 8px 20px;
  border-radius: 20px;
  border: 1.5px solid var(--dash-divider);
  background: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--dash-text-muted);
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.followers-tab.active {
  background: var(--dash-accent, #3b9eff);
  border-color: var(--dash-accent, #3b9eff);
  color: #fff;
}
.followers-count {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 1px 7px;
  font-size: 11px;
}
.followers-tab:not(.active) .followers-count {
  background: rgba(59, 158, 255, 0.12);
  color: var(--dash-accent, #3b9eff);
}
.followers-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.followers-search {
  flex: 1;
  min-width: 180px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--dash-divider);
  background: var(--dash-bg, #f8faff);
  font-size: 13px;
  color: var(--dash-text);
  outline: none;
  transition: border-color 0.18s;
}
.followers-search:focus {
  border-color: var(--dash-accent, #3b9eff);
}
.followers-sort {
  display: flex;
  gap: 6px;
}
.followers-list {
  padding: 8px 0;
  overflow-y: auto;
}
.followers-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--dash-divider);
}
.followers-row:hover {
  background: rgba(59, 158, 255, 0.04);
}
.followers-loading,
.followers-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 24px;
  color: var(--dash-text-muted);
  font-size: 14px;
  text-align: center;
}
/* ── NOTIFICATION BELL ────────────────────────────────────────────────────── */
.notif-wrap {
  position: relative;
}
.topbar-notif {
  position: relative;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 10px;
  transition: background 0.15s;
  line-height: 1;
}
.topbar-notif:hover {
  background: var(--dash-accent-soft);
}
.notif-badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 16px;
  height: 16px;
  background: #ef4444;
  color: #fff;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  pointer-events: none;
}
.notif-dropdown {
  position: fixed;
  top: 66px;
  right: 24px;
  width: 320px;
  background: var(--dash-card-bg, #fff);
  border: 1px solid var(--dash-divider);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  z-index: 999999;
  overflow: hidden;
  display: none;
}
.notif-dropdown.active {
  display: block;
}
.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--dash-text);
  border-bottom: 1px solid var(--dash-divider);
}
.notif-list {
  max-height: 340px;
  overflow-y: auto;
}
.notif-empty {
  padding: 28px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--dash-text-muted);
}
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--dash-divider);
}
.notif-item:last-child {
  border-bottom: none;
}
.notif-item:hover {
  background: var(--dash-accent-soft);
}
.notif-item.unread {
  background: rgba(59, 158, 255, 0.06);
}
.notif-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}
.notif-content {
  flex: 1;
  min-width: 0;
}
.notif-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--dash-text);
  line-height: 1.4;
}
.notif-time {
  font-size: 11px;
  color: var(--dash-text-muted);
  margin-top: 3px;
}

/* ── FOLLOWERS SORT BUTTONS ───────────────────────────────────────────────── */
.follow-sort-btn {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid var(--dash-divider);
  background: transparent;
  color: var(--dash-text-muted);
  transition: all 0.15s;
}
.follow-sort-btn:hover {
  border-color: var(--dash-accent);
  color: var(--dash-accent);
  background: var(--dash-accent-soft);
}
.follow-sort-btn.active {
  background: var(--dash-accent);
  border-color: var(--dash-accent);
  color: #fff;
}

/* ── HISTORY TABLE FIX — prevent email overflow ───────────────────────────── */
.history-buyer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--dash-text);
  min-width: 0;
}
.history-buyer-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* ── CONTRAST IMPROVEMENTS (marketing polish pass) ────────────────────────── */

/* Stat card numbers — stronger */
.stat-value {
  font-size: 28px !important;
  font-weight: 800 !important;
  color: var(--dash-text) !important;
  text-shadow: none;
}

/* Stat card subtitles — less washed out */
.stat-label {
  font-weight: 700 !important;
  color: var(--dash-text) !important;
  opacity: 0.85 !important;
}

.stat-sub {
  color: var(--dash-text-muted) !important;
  opacity: 1 !important;
}

/* Widget card text — boost contrast */
.widget-title {
  font-weight: 800 !important;
  color: var(--dash-text) !important;
}

/* Commission item client name — stronger */
.ci-name {
  font-weight: 700 !important;
  color: var(--dash-text) !important;
}

/* History table rows — better readability */
.history-row {
  font-size: 13px;
  color: var(--dash-text);
}

/* Empty state headings — authoritative not sad */
.empty-state h3 {
  color: var(--dash-text) !important;
  font-weight: 800 !important;
  font-size: 16px;
}

.empty-state p {
  color: var(--dash-text-muted) !important;
  opacity: 1 !important;
}

/* Reduce blur on glass theme specifically for readability */
.dash-glass .widget-card,
.dash-glass .sidebar-card {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* notification dropdown z-index handled in .notif-dropdown rule above */

/* ══════════════════════════════════════════════════════════════════════════════
   MESSAGING V1 — Order-based chat system
   ══════════════════════════════════════════════════════════════════════════════ */

/* Shell — left panel + right panel */
.msg-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  /* Subtract: sidebar(0) + topbar(58px) + cover(140px) + tab padding(48px) + content padding(32px) */
  height: calc(100vh - 278px);
  min-height: 420px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--dash-divider);
  background: var(--dash-card-bg);
}

/* ── LEFT PANEL: Order list ──────────────────────────────────────────────── */
.msg-order-list {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--dash-divider);
  background: var(--dash-bg, rgba(0, 0, 0, 0.03));
  min-height: 0;
  overflow: hidden;
}

.msg-order-list-header {
  padding: 16px 18px;
  font-size: 13px;
  font-weight: 800;
  color: var(--dash-text);
  border-bottom: 1px solid var(--dash-divider);
  flex-shrink: 0;
}

.msg-order-items {
  flex: 1;
  overflow-y: auto;
}

.msg-order-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--dash-divider);
  transition: background 0.15s;
}
.msg-order-item:hover {
  background: var(--dash-accent-soft);
}
.msg-order-item.active {
  background: var(--dash-accent-soft);
  border-left: 3px solid var(--dash-accent);
}

.msg-order-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dash-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  overflow: hidden;
  padding: 0;
}

.msg-order-info {
  flex: 1;
  min-width: 0;
}
.msg-order-num {
  font-size: 10px;
  font-weight: 800;
  color: var(--dash-text-muted);
  letter-spacing: 0.5px;
}
.msg-order-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--dash-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msg-order-tier {
  font-size: 11px;
  color: var(--dash-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.msg-order-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}
.msg-order-status {
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.msg-order-time {
  font-size: 10px;
  color: var(--dash-text-muted);
}

/* ── RIGHT PANEL: Chat window ────────────────────────────────────────────── */
.msg-chat-pane {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.msg-chat-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 10px;
  color: var(--dash-text-muted);
  font-size: 14px;
}

/* Chat header */
.msg-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--dash-divider);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.msg-chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--dash-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
  overflow: hidden;
  padding: 0;
}

.msg-chat-header-info {
  flex: 1;
  min-width: 0;
}
.msg-chat-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--dash-text);
}
.msg-chat-sub {
  font-size: 11px;
  color: var(--dash-text-muted);
}

.msg-chat-status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  flex-shrink: 0;
}

/* Nudge banner */
.msg-nudge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  background: rgba(245, 158, 11, 0.1);
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
  font-size: 13px;
  font-weight: 600;
  color: #b45309;
  flex-shrink: 0;
}

/* Message area */
.msg-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0; /* critical for flex child to scroll properly */
}

/* System messages */
.msg-system {
  display: flex;
  justify-content: center;
  padding: 4px 0;
}
.msg-system span {
  background: var(--dash-bg, rgba(0, 0, 0, 0.05));
  border: 1px solid var(--dash-divider);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--dash-text-muted);
  text-align: center;
  max-width: 80%;
}

/* Message bubbles */
.msg-bubble-wrap {
  display: flex;
  flex-direction: column;
}
.msg-bubble-wrap.mine {
  align-items: flex-end;
}
.msg-bubble-wrap.theirs {
  align-items: flex-start;
}

.msg-bubble {
  max-width: 68%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}
.msg-bubble.mine {
  background: var(--dash-accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg-bubble.theirs {
  background: var(--dash-bg, rgba(0, 0, 0, 0.06));
  color: var(--dash-text);
  border: 1px solid var(--dash-divider);
  border-bottom-left-radius: 4px;
}

.msg-bubble-content {
}
.msg-bubble-time {
  font-size: 10px;
  margin-top: 4px;
  opacity: 0.6;
  text-align: right;
}
.msg-bubble.theirs .msg-bubble-time {
  text-align: left;
}

/* Empty conversation state */
.msg-empty-conv {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 8px;
  color: var(--dash-text-muted);
  font-size: 13px;
  text-align: center;
  padding: 40px;
}

/* Input area */
.msg-input-area {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--dash-divider);
  flex-shrink: 0;
}

.msg-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1.5px solid rgba(0, 0, 0, 0.18);
  background: var(--dash-card-bg);
  color: var(--dash-text);
  font-family: var(--dash-font);
  font-size: 14px;
  resize: none;
  outline: none;
  max-height: 120px;
  line-height: 1.5;
  transition: border-color 0.15s;
}
.dash-dark .msg-input,
.dash-glass .msg-input,
.dash-sunset .msg-input,
.dash-forest .msg-input,
.dash-ocean .msg-input,
.dash-neon .msg-input,
.dash-sakura .msg-input {
  border-color: rgba(255, 255, 255, 0.22);
}
.msg-input:focus {
  border-color: var(--dash-accent);
}

.msg-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--dash-accent);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    opacity 0.15s,
    transform 0.1s;
}
.msg-send-btn:hover {
  opacity: 0.85;
  transform: scale(1.05);
}

/* Blocked state */
.msg-input-blocked {
  padding: 14px 18px;
  border-top: 1px solid var(--dash-divider);
  font-size: 13px;
  color: var(--dash-text-muted);
  text-align: center;
  flex-shrink: 0;
}

/* Loading state */
.msg-loading {
  padding: 24px;
  text-align: center;
  color: var(--dash-text-muted);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 640px) {
  .msg-shell {
    grid-template-columns: 1fr;
  }
  .msg-order-list {
    display: none;
  }
  .msg-order-list.show {
    display: flex;
    position: absolute;
    width: 100%;
    z-index: 100;
  }
}
/* ── TEXT CUSTOMIZATION FONT SELECT ─────────────────────────────────────────── */
.tc-font-select {
  font-size: 12px;
  padding: 5px 8px;
  border-radius: 8px;
  border: 1.5px solid var(--dash-divider);
  background: var(--dash-card-bg);
  color: var(--dash-text);
  cursor: pointer;
  outline: none;
  font-family: var(--dash-font);
  min-width: 90px;
}
.tc-font-select option {
  background: var(--dash-card-bg);
  color: var(--dash-text);
}

/* ══════════════════════════════════════════════════════════════════════════════
   CAPABILITY-BASED SYSTEM — Unified Dashboard Styles
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Nav section labels ───────────────────────────────────────────────────── */
.nav-section-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dash-text-muted);
  padding: 16px 20px 6px;
  opacity: 0.7;
}
.nav-section-creator {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--dash-divider);
}
.nav-item-lock {
  margin-left: auto;
  font-size: 10px;
  opacity: 0.6;
}

/* ── Creator CTA in sidebar ───────────────────────────────────────────────── */
.nav-creator-cta {
  margin: 16px 12px 8px;
  padding: 14px 16px;
  background: var(--dash-accent-soft);
  border: 1.5px solid var(--dash-accent);
  border-radius: 14px;
}
.nav-cta-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--dash-text);
  margin-bottom: 8px;
}

/* ── Locked feature card ──────────────────────────────────────────────────── */
.locked-feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 32px;
  gap: 12px;
  background: var(--dash-card-bg);
  border: 1px solid var(--dash-divider);
  border-radius: 18px;
  max-width: 480px;
  margin: 40px auto;
}
.locked-icon {
  font-size: 48px;
  margin-bottom: 4px;
}
.locked-feature-card h3 {
  font-family: "DM Serif Display", serif;
  font-size: 22px;
  color: var(--dash-text);
  margin: 0;
}
.locked-feature-card p {
  font-size: 14px;
  color: var(--dash-text-muted);
  margin: 0;
  max-width: 320px;
  line-height: 1.6;
}
.locked-note {
  font-size: 12px !important;
  opacity: 0.7;
}
.locked-note a {
  color: var(--dash-accent);
  text-decoration: underline;
}

/* ── Setup banner (State B: creator, no tiers) ───────────────────────────── */
.creator-setup-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(
    135deg,
    rgba(59, 158, 255, 0.08),
    rgba(59, 158, 255, 0.04)
  );
  border: 1.5px solid rgba(59, 158, 255, 0.3);
  border-radius: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.creator-setup-icon {
  font-size: 32px;
  flex-shrink: 0;
}
.creator-setup-text {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.creator-setup-text strong {
  font-size: 14px;
  font-weight: 800;
  color: var(--dash-text);
}
.creator-setup-text span {
  font-size: 13px;
  color: var(--dash-text-muted);
}

/* ── Start banner (State A: no creator layer) ────────────────────────────── */
.creator-start-banner {
  background: linear-gradient(
    135deg,
    var(--dash-accent),
    rgba(59, 158, 255, 0.6)
  );
  border-radius: 18px;
  padding: 40px 32px;
  margin-bottom: 4px;
  display: flex;
  justify-content: center;
}
.creator-start-content {
  text-align: center;
  max-width: 440px;
  color: #fff;
}
.creator-start-content h3 {
  color: #fff;
}
.creator-start-content p {
  color: rgba(255, 255, 255, 0.85);
}

/* ── Capability status card (Settings) ───────────────────────────────────── */
.creator-status-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px;
  background: var(--dash-bg, rgba(0, 0, 0, 0.04));
  border: 1px solid var(--dash-divider);
  border-radius: 14px;
}
.creator-status-active {
  font-size: 14px;
  font-weight: 800;
  color: #22c55e;
}
.creator-status-setup {
  font-size: 14px;
  font-weight: 800;
  color: #f59e0b;
}
.creator-status-locked {
  font-size: 14px;
  font-weight: 800;
  color: var(--dash-text-muted);
}

/* ── Filter pills (Orders tab) ───────────────────────────────────────────── */
.filter-pill {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--dash-divider);
  background: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--dash-text-muted);
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--dash-font);
}
.filter-pill.active,
.filter-pill:hover {
  background: var(--dash-accent);
  border-color: var(--dash-accent);
  color: #fff;
}
/* ── Creator welcome banner tier highlight ───────────────────────────────── */
.tier-highlight {
  animation: tierGlow 2.5s ease-out forwards;
  border-radius: 12px;
}
@keyframes tierGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 158, 255, 0);
    outline: 2px solid transparent;
  }
  15% {
    box-shadow:
      0 0 0 8px rgba(59, 158, 255, 0.6),
      0 0 40px rgba(59, 158, 255, 0.4);
    outline: 2px solid rgba(59, 158, 255, 0.8);
    background: rgba(59, 158, 255, 0.08);
  }
  50% {
    box-shadow:
      0 0 0 6px rgba(59, 158, 255, 0.35),
      0 0 24px rgba(59, 158, 255, 0.2);
    outline: 2px solid rgba(59, 158, 255, 0.4);
    background: rgba(59, 158, 255, 0.04);
  }
  100% {
    box-shadow: none;
    outline: 2px solid transparent;
    background: transparent;
  }
}

/* ── Featured artists grid (patron overview) ─────────────────────────────── */
.featured-artists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  padding: 4px 0 8px;
}
.featured-artist-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--dash-divider);
  background: var(--dash-card-bg);
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.featured-artist-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.featured-artist-cover {
  width: 100%;
  height: 72px;
  object-fit: cover;
  background: linear-gradient(
    135deg,
    var(--dash-accent),
    rgba(59, 158, 255, 0.4)
  );
}
.featured-artist-info {
  padding: 10px 12px;
}
.featured-artist-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--dash-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.featured-artist-medium {
  font-size: 11px;
  color: var(--dash-text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.featured-artist-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(52, 201, 138, 0.12);
  color: #34c98a;
  border: 1px solid rgba(52, 201, 138, 0.3);
  margin-top: 5px;
}
/* ══════════════════════════════════════════════════════════════════════════════
   DASHBOARD MOBILE RESPONSIVE — Extended
   Properly handles sidebar, topbar, content on small screens
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Mobile menu toggle button ────────────────────────────────────────────── */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  color: var(--dash-text);
  font-size: 22px;
  line-height: 1;
  transition: background 0.15s;
}
.mobile-menu-toggle:hover {
  background: var(--dash-accent-soft);
}

/* ── Mobile overlay backdrop ─────────────────────────────────────────────── */
.mobile-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 10, 22, 0.5);
  z-index: 199;
  backdrop-filter: blur(4px);
}
.mobile-sidebar-overlay.active {
  display: block;
}

@media (max-width: 768px) {
  /* Show toggle button */
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Dashboard layout — full width content */
  .dash-layout {
    grid-template-columns: 1fr !important;
  }

  /* Topbar */
  .dash-topbar {
    padding: 0 16px;
    gap: 10px;
  }
  .topbar-search {
    display: none !important;
  }

  /* Cover area */
  .dash-cover {
    height: 140px;
  }
  .dash-cover-greeting {
    font-size: 18px;
  }

  /* Content area */
  .dash-content {
    padding: 16px 12px;
  }

  /* Widget cards */
  .widget-card {
    border-radius: 14px;
    padding: 14px;
  }

  /* Stats grid — 2 columns on mobile */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }
  .stat-card {
    padding: 12px;
  }
  .stat-card .stat-val {
    font-size: 20px;
  }

  /* Commission items */
  .commission-item-detailed {
    padding: 12px;
  }

  /* Order detail */
  .order-detail-grid {
    grid-template-columns: 1fr !important;
  }

  /* Messages shell */
  .msg-shell {
    grid-template-columns: 1fr !important;
    height: calc(100vh - 120px);
  }
  .msg-order-list {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: var(--dash-bg);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 85vw;
    max-width: 320px;
  }
  .msg-order-list.mobile-open {
    transform: translateX(0);
  }
  .msg-chat-pane {
    height: 100%;
  }

  /* Portfolio grid */
  .portfolio-real-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }

  /* Filter pills — scrollable row */
  .filter-pills-row,
  #discoverFilters {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .filter-pills-row::-webkit-scrollbar,
  #discoverFilters::-webkit-scrollbar {
    display: none;
  }

  /* Settings sections */
  .settings-row {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 8px;
  }
  .settings-input {
    width: 100%;
    min-width: unset !important;
  }

  /* Profile editor */
  .pp-two-col {
    grid-template-columns: 1fr !important;
  }

  /* Tier cards */
  .tier-editor-card {
    padding: 12px;
  }

  /* Earnings/history */
  .earnings-grid {
    grid-template-columns: 1fr !important;
  }

  /* Discover grid */
  #discoverGrid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }

  /* Orders list */
  .orders-filter-row {
    flex-wrap: wrap;
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .dash-content {
    padding: 12px 8px;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .portfolio-real-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  #discoverGrid {
    grid-template-columns: 1fr 1fr !important;
  }
  .widget-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 6px;
  }
  .msg-shell {
    height: calc(100vh - 100px);
  }

  /* Commission cards — simpler layout */
  .cid-meta {
    flex-wrap: wrap;
    gap: 4px;
  }

  /* Admin controls column hidden on very small */
  .order-detail-actions {
    flex-direction: column;
    gap: 8px;
  }
  .order-detail-actions .btn {
    width: 100%;
    text-align: center;
  }
}

/* ══════════════════════════════════════════════════════════════════════════════
   DASHBOARD ANIMATIONS
   ══════════════════════════════════════════════════════════════════════════════ */

/* Nav item hover */
.nav-item {
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.15s ease;
}
.nav-item:hover {
  transform: translateX(3px);
}
.nav-item.active {
  transition: background 0.25s ease;
}

/* Widget card entrance */
.widget-card {
  transition: box-shadow 0.2s ease;
}
.widget-card:hover {
  box-shadow: 0 8px 32px rgba(10, 40, 80, 0.08);
}

/* Tab switching */
.tab-content-enter {
  animation: fadeInUp 0.25s ease both;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sidebar avatar pulse on hover */
.sidebar-avatar-wrap:hover .sidebar-avatar {
  transform: scale(1.05);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Toggle switch animation */
.toggle-switch {
  transition: background 0.25s ease;
}
.toggle-switch::after {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Filter pill active state */
.filter-pill {
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.filter-pill.active {
  transform: scale(1.04);
}

/* Notification badge pop */
.nav-item-badge {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-item-badge.new {
  animation: badgePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes badgePop {
  0% {
    transform: scale(0);
  }
  60% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

/* ══ MODAL LIGHT THEME OVERRIDE ════════════════════════════════════════════ */
/* All modals always render in light theme regardless of dashboard theme */
.plx-modal-box {
  background: #ffffff !important;
  color: #0b1c2e !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}
.plx-modal-box h2,
.plx-modal-box h3,
.plx-modal-box h4,
.plx-modal-box label,
.plx-modal-box .modal-label {
  color: #0b1c2e !important;
}
.plx-modal-box p,
.plx-modal-box span,
.plx-modal-box li {
  color: #2a4a62;
}
.plx-modal-box input,
.plx-modal-box textarea,
.plx-modal-box select {
  background: #f5f8fc !important;
  color: #0b1c2e !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
}
.plx-modal-box input::placeholder,
.plx-modal-box textarea::placeholder {
  color: #7a9ab5 !important;
}
.plx-modal-box .modal-muted {
  color: #5a7a96 !important;
}
.plx-modal-box .drop-zone {
  background: rgba(59, 158, 255, 0.06) !important;
  border-color: #3b9eff !important;
}
/* ══ PATRON OVERVIEW — EXPLORATION-FIRST ══════════════════════════════════════ */
#patronArtistGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

#patronChips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

#patronSearchInput:focus {
  border-color: var(--dash-accent);
  box-shadow: 0 0 0 3px var(--dash-accent-soft);
}

@media (max-width: 600px) {
  #patronArtistGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* ══ COMPLETION CELEBRATION ════════════════════════════════════════════════════ */
.order-completion-banner {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.08),
    rgba(59, 158, 255, 0.08)
  );
  border: 1.5px solid rgba(34, 197, 94, 0.25);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  text-align: center;
}

/* ══════════════════════════════════════════════════════════════════════════════
   PRESENCE — online / last seen indicator
   ══════════════════════════════════════════════════════════════════════════════ */

.presence-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
  flex-shrink: 0;
  vertical-align: middle;
  position: relative;
  top: -1px; /* optical alignment with text baseline */
}

.presence-dot.online {
  background: #22c55e;
  box-shadow: 0 0 4px rgba(34, 197, 94, 0.5);
}

.presence-dot.offline {
  background: #6b7280;
}

.msg-presence {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 11px;
  color: var(--dash-text-muted);
  font-weight: 500;
}

.msg-presence .presence-dot.online + * {
  color: #22c55e;
  font-weight: 600;
}
/* ── BRANDED CONFIRM MODAL ───────────────────────────────────────────────── */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
/* ══════════════════════════════════════════════════════════════════════════
   COLLAPSIBLE SECTIONS + TIER MINIMIZE
   ════════════════════════════════════════════════════════════════════════ */

/* ── Section collapse header ────────────────────────────────────────────── */
.settings-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  margin-bottom: 0;
  /* Remove h3 margin when used as header */
}
.settings-section-header h3 {
  margin-bottom: 0;
  pointer-events: none;
}
.settings-section-header .section-toggle {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1.5px solid var(--dash-divider);
  background: transparent;
  color: var(--dash-text-muted);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.15s,
    color 0.15s,
    transform 0.25s;
  flex-shrink: 0;
  line-height: 1;
}
.settings-section-header:hover .section-toggle {
  background: var(--dash-accent-soft);
  color: var(--dash-accent);
}
.settings-section.collapsed .section-toggle {
  transform: rotate(-90deg);
}
.settings-section-body {
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    opacity 0.25s ease,
    margin-top 0.25s ease;
  max-height: 9999px;
  opacity: 1;
  margin-top: 16px;
}
.settings-section.collapsed .settings-section-body {
  max-height: 0 !important;
  opacity: 0;
  margin-top: 0;
  pointer-events: none;
}

/* ── Tier row collapse ───────────────────────────────────────────────────── */
.tier-editor-row {
  transition: box-shadow 0.2s;
}
.tier-editor-collapsed-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 2px 0;
}
.tier-editor-collapsed-bar:hover {
  opacity: 0.85;
}
.tier-editor-body {
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    opacity 0.25s ease,
    margin-top 0.2s ease;
  max-height: 9999px;
  opacity: 1;
  margin-top: 10px;
}
.tier-editor-row.tier-minimized .tier-editor-body {
  max-height: 0 !important;
  opacity: 0;
  margin-top: 0;
  pointer-events: none;
}
.tier-minimize-btn {
  margin-left: auto;
  background: none;
  border: 1px solid var(--dash-divider);
  border-radius: 7px;
  color: var(--dash-text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  cursor: pointer;
  font-family: inherit;
  transition:
    background 0.15s,
    color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.tier-minimize-btn:hover {
  background: var(--dash-accent-soft);
  color: var(--dash-accent);
  border-color: var(--dash-accent);
}
.tier-editor-row.tier-minimized {
  padding: 10px 14px;
}

/* ── About block collapse ────────────────────────────────────────────────── */
.about-block-row {
  background: var(--dash-card-bg);
  border: 1px solid var(--dash-divider);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.about-block-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  cursor: pointer;
  user-select: none;
  background: transparent;
}
.about-block-header:hover {
  background: rgba(255, 255, 255, 0.04);
}
.about-block-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--dash-text-muted);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.about-block-toggle {
  font-size: 11px;
  color: var(--dash-text-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.about-block-row.block-collapsed .about-block-toggle {
  transform: rotate(-90deg);
}
.about-block-content {
  padding: 0 10px 10px;
  overflow: hidden;
  transition:
    max-height 0.25s ease,
    opacity 0.2s ease,
    padding 0.2s ease;
  max-height: 600px;
  opacity: 1;
}
.about-block-row.block-collapsed .about-block-content {
  max-height: 0 !important;
  opacity: 0;
  padding-bottom: 0;
  pointer-events: none;
}

/* ── CHARACTER COUNTERS (PRD Sect 5 — input validation) ─────────────────────── */
.plx-char-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--dash-text-muted);
  transition: color 0.2s;
  letter-spacing: 0.2px;
}
.plx-char-count-warn {
  color: #f59e0b;
}
.plx-char-count-over {
  color: #ef4444;
  font-weight: 700;
}
/* ── FIRST UPDATE SYSTEM (PRD Sect 4) ────────────────────────────────────────── */
.plx-update-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  width: 100%;
  box-sizing: border-box;
}
.plx-update-banner--waiting {
  background: rgba(99, 102, 241, 0.07);
  border: 1px solid rgba(99, 102, 241, 0.22);
  color: #4338ca;
}
.plx-update-banner--delayed {
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: #92400e;
}
.plx-update-banner-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.plx-update-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.plx-update-banner-text strong {
  font-weight: 800;
  font-size: 13px;
}
.plx-update-banner-text span {
  font-size: 12px;
  opacity: 0.85;
}
.plx-update-btn {
  font-size: 12px !important;
  padding: 7px 14px !important;
  flex-shrink: 0;
  white-space: nowrap;
}
.plx-update-sent {
  font-size: 12px;
  font-weight: 700;
  color: #22c55e;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── PORTFOLIO FEATURED ITEM ─────────────────────────────────────────────────── */
.portfolio-real-item.pf-featured {
  grid-column: span 2;
  grid-row: span 2;
  position: relative;
}
.portfolio-real-item.pf-featured img {
  aspect-ratio: unset;
  height: 100%;
  min-height: 320px;
}
.pf-featured-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  pointer-events: none;
}
.pf-edit-btn {
  background: rgba(59,130,246,0.8);
  border: none;
  border-radius: 6px;
  padding: 3px 7px;
  cursor: pointer;
  font-size: 11px;
  color: #fff;
  font-weight: 700;
  transition: background 0.15s;
}
.pf-edit-btn:hover {
  background: rgba(59,130,246,1);
}
/* ── JOURNEY TIMELINE (Feature 2) ──────────────────────────────────────────── */
.journey-timeline {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 16px 4px 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.journey-timeline::-webkit-scrollbar { display: none; }

.journey-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 72px;
  text-align: center;
  flex-shrink: 0;
}
.journey-node.past .journey-dot {
  background: var(--dash-accent);
  color: #fff;
}
.journey-node.current .journey-dot {
  background: var(--dash-accent);
  color: #fff;
  box-shadow: 0 0 0 3px var(--dash-accent-soft, rgba(59,158,255,0.18)),
              0 0 16px var(--dash-accent);
  animation: journeyPulse 2.2s ease-in-out infinite;
}
.journey-node.future .journey-dot {
  background: var(--dash-divider);
  color: var(--dash-text-muted);
}
.journey-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.journey-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--dash-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
}
.journey-node.current .journey-label {
  color: var(--dash-accent);
}
.journey-note {
  font-size: 10px;
  color: var(--dash-text);
  font-style: italic;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.journey-time {
  font-size: 10px;
  color: var(--dash-text-muted);
}
.journey-connector {
  flex: 1;
  height: 2px;
  background: var(--dash-divider);
  min-width: 12px;
  max-width: 40px;
  margin-bottom: 20px;
  transition: background 0.3s ease;
}
.journey-node.past ~ .journey-connector,
.journey-node.past + .journey-connector {
  background: var(--dash-accent);
}

@keyframes journeyPulse {
  0%, 100% {
    box-shadow: 0 0 0 3px var(--dash-accent-soft, rgba(59,158,255,0.18)),
                0 0 16px var(--dash-accent);
  }
  50% {
    box-shadow: 0 0 0 6px var(--dash-accent-soft, rgba(59,158,255,0.18)),
                0 0 24px var(--dash-accent);
  }
}

/* ── VIBE & PRESENCE DASHBOARD SETTINGS (Feature 1 & 3) ─────────────────────── */
#vibePreview {
  transition: all 0.2s ease;
}
/* ── Portfolio Manager — Section Nav ─────────────────────────────────────── */
.pf-section-nav {
  display: flex;
  gap: 6px;
  padding: 14px 20px 0;
  border-bottom: 1px solid var(--dash-divider);
  flex-wrap: wrap;
}
.pf-section-btn {
  font-family: "Nunito", sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 10px 10px 0 0;
  border: 1px solid transparent;
  border-bottom: none;
  background: transparent;
  color: var(--dash-text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  margin-bottom: -1px;
  position: relative;
}
.pf-section-btn:hover { background: var(--dash-accent-soft); color: var(--dash-accent); }
.pf-section-btn.active {
  background: var(--dash-card);
  color: var(--dash-accent);
  border-color: var(--dash-divider);
  border-bottom-color: var(--dash-card);
}
.pf-section {
  padding: 20px;
}
.pf-section-intro p {
  font-size: 13px;
  color: var(--dash-text-muted);
  line-height: 1.6;
  margin: 0 0 16px;
}
.pf-section-intro strong { color: var(--dash-text); }

/* ── Room tab bar ─────────────────────────────────────────────────────────── */
.pf-room-select {
  font-family: "Nunito", sans-serif;
  font-size: 10px;
  font-weight: 600;
}

/* ── Showcase slots ───────────────────────────────────────────────────────── */
.pf-showcase-slots {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.pf-showcase-slot {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(99,102,241,0.5);
  flex-shrink: 0;
}
.pf-showcase-slot img { width: 100%; height: 100%; object-fit: cover; }
.pf-showcase-slot-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4px 6px;
  background: rgba(0,0,0,0.6);
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  font-family: "Nunito", sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pf-showcase-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(239,68,68,0.85);
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}
.pf-showcase-move {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(0,0,0,0.55);
  border: none;
  border-radius: 6px;
  padding: 2px 5px;
  font-size: 11px;
  color: #fff;
  cursor: pointer;
}
.pf-showcase-move-r { left: auto; right: 26px; }

/* ── Companion picker ─────────────────────────────────────────────────────── */
.pf-companion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 4px;
}
.pf-companion-option {
  border: 2px solid var(--dash-divider);
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
  background: var(--dash-card);
}
.pf-companion-option:hover { border-color: var(--dash-accent); transform: translateY(-2px); }
.pf-companion-option.selected { border-color: var(--dash-accent); background: var(--dash-accent-soft); }
.pf-companion-preview { font-size: 36px; margin-bottom: 8px; line-height: 1; }
.pf-companion-name { font-size: 13px; font-weight: 700; color: var(--dash-text); margin-bottom: 3px; }
.pf-companion-desc { font-size: 11px; color: var(--dash-text-muted); line-height: 1.4; }