/* ==========================================================================
   PERSONAFORGE - AGENCY DASHBOARD & ADMIN CSS
   Theme: Dark Obsidian / Cyber-Luxe (Consistent with Studio & Landing)
   ========================================================================== */

/* Layout Shell */
.dash-layout {
  display: flex;
  min-height: calc(100vh - 65px);
  position: relative;
}

/* Dashboard Sidebar */
.dash-sidebar {
  width: 260px;
  background: rgba(11, 15, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid var(--border-color);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  position: sticky;
  top: 65px;
  height: calc(100vh - 65px);
  overflow-y: auto;
}

.dash-nav-section {
  margin-bottom: 24px;
}

.dash-nav-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 700;
  padding: 0 12px 10px;
}

.dash-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  position: relative;
}

.dash-menu-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.dash-menu-link.active {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.15), rgba(6, 182, 212, 0.05));
  color: #fff;
  border-color: rgba(139, 92, 246, 0.3);
  font-weight: 600;
}

.dash-menu-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), var(--cyan));
  border-radius: 0 4px 4px 0;
}

.dash-menu-badge {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.dash-menu-badge.badge-green {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.3);
}

/* Sidebar Footer / Agency Card */
.sidebar-agency-card {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
}

.agency-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.agency-avatar {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.agency-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.agency-tier {
  font-size: 0.72rem;
  color: var(--cyan);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.quota-bar-wrap {
  margin-top: 8px;
}

.quota-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.quota-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.quota-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  border-radius: 10px;
  transition: width 0.4s ease;
}

/* Dashboard Main Content Area */
.dash-content {
  flex: 1;
  padding: 32px 40px;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-pane.active {
  display: block;
}

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

/* Section Header */
.dash-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.dash-page-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-page-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 4px;
}

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

.btn-dash-primary {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.35);
  text-decoration: none;
}

.btn-dash-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.5);
}

.btn-dash-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  text-decoration: none;
}

.btn-dash-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

/* KPI Cards Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.kpi-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.kpi-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.kpi-card:hover::before {
  opacity: 1;
}

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

.kpi-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kpi-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.kpi-val {
  font-size: 1.85rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.kpi-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
}

.trend-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.trend-up {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.trend-neutral {
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
}

.kpi-subtext {
  color: var(--text-muted);
}

/* Charts & Analytics Row */
.analytics-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.card-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}

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

.panel-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-filter-group {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.panel-filter-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.panel-filter-btn.active, .panel-filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* SVG Interactive Revenue Chart */
.chart-container {
  position: relative;
  width: 100%;
  height: 240px;
}

.chart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-axis-line {
  stroke: rgba(255, 255, 255, 0.05);
  stroke-dasharray: 4 4;
}

.chart-area-path {
  fill: url(#revenueGradient);
  transition: d 0.4s ease;
}

.chart-line-path {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: d 0.4s ease;
  filter: drop-shadow(0 4px 12px rgba(139, 92, 246, 0.5));
}

.chart-point {
  fill: #fff;
  stroke: var(--primary);
  stroke-width: 3;
  r: 4;
  cursor: pointer;
  transition: r 0.2s, stroke-width 0.2s;
}

.chart-point:hover {
  r: 7;
  stroke-width: 4;
  stroke: var(--cyan);
}

.chart-tooltip {
  position: absolute;
  background: #0f172a;
  border: 1px solid var(--border-cyan);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: #fff;
  pointer-events: none;
  display: none;
  transform: translate(-50%, -120%);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  z-index: 10;
  white-space: nowrap;
}

/* Channel Breakdown List */
.channel-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.channel-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.channel-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
}

.channel-name {
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.channel-val {
  color: var(--cyan);
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

.channel-progress {
  height: 7px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
}

.channel-progress-fill {
  height: 100%;
  border-radius: 10px;
}

/* Model Fleet Grid */
.models-fleet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.model-fleet-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.model-fleet-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.model-card-cover {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.model-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.model-fleet-card:hover .model-card-cover img {
  transform: scale(1.05);
}

.model-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(6, 9, 14, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.model-card-mrr {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(11, 15, 23, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(139, 92, 246, 0.4);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  text-align: right;
}

.model-card-mrr-val {
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
}

.model-card-mrr-lbl {
  color: var(--text-muted);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.model-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.model-meta-head {
  margin-bottom: 14px;
}

.model-fleet-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.model-fleet-archetype {
  font-size: 0.8rem;
  color: var(--cyan);
  font-weight: 600;
}

.model-metrics-table {
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.model-metric-item {
  display: flex;
  flex-direction: column;
}

.metric-lbl {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.metric-num {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
}

.model-card-actions {
  display: flex;
  gap: 10px;
}

.btn-open-studio {
  flex: 1;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #c4b5fd;
  padding: 9px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-open-studio:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-card-more {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition);
}

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

/* Card Create Model Trigger */
.model-fleet-create-card {
  background: rgba(17, 24, 39, 0.3);
  border: 2px dashed rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  min-height: 380px;
}

.model-fleet-create-card:hover {
  border-color: var(--cyan);
  background: rgba(17, 24, 39, 0.5);
  transform: translateY(-4px);
}

.create-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.create-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.create-card-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
  max-width: 240px;
  line-height: 1.4;
  margin-bottom: 16px;
}

/* Social Scheduler / Autopilot Tab */
.scheduler-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.calendar-day-col {
  background: rgba(17, 24, 39, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
}

.day-header {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.day-header.today {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.calendar-posts-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.sched-post-item {
  background: rgba(11, 15, 23, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px;
  font-size: 0.75rem;
  transition: var(--transition);
  cursor: pointer;
}

.sched-post-item:hover {
  border-color: var(--border-active);
  transform: scale(1.02);
}

.sched-post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.sched-post-platform {
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sched-post-time {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.sched-post-img-thumb {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 6px;
}

.sched-post-caption-preview {
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* PPV Messages Vault Tab */
.messages-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  height: 600px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.chat-inbox-list {
  border-right: 1px solid var(--border-color);
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chat-inbox-item {
  padding: 12px;
  border-radius: var(--radius-sm);
  display: flex;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.chat-inbox-item:hover, .chat-inbox-item.active {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(139, 92, 246, 0.3);
}

.chat-avatar-thumb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-inbox-details {
  flex: 1;
  overflow: hidden;
}

.chat-inbox-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.fan-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.fan-tag-tier {
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  font-weight: 700;
}

.chat-inbox-preview {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-conversation-area {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

.chat-bubble-stream {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  padding-right: 8px;
}

.chat-bubble {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.4;
}

.chat-bubble.fan {
  align-self: flex-start;
  background: rgba(31, 41, 55, 0.8);
  color: var(--text-primary);
  border-bottom-left-radius: 2px;
}

.chat-bubble.model {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: #fff;
  border-bottom-right-radius: 2px;
}

.ppv-offer-card {
  margin-top: 10px;
  background: rgba(11, 15, 23, 0.9);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ppv-lock-icon {
  font-size: 1.8rem;
  color: var(--cyan);
}

.ppv-info {
  flex: 1;
}

.ppv-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.ppv-price {
  font-size: 0.8rem;
  color: var(--emerald);
  font-weight: 700;
}

.btn-unlock-ppv {
  background: var(--cyan);
  color: #06090e;
  border: none;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
}

/* Payouts / Billing Table */
.payouts-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.payouts-table th {
  text-align: left;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
}

.payouts-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.88rem;
  color: var(--text-primary);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
}

.status-badge.paid {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ==========================================================================
   MODEL FORGE WIZARD MODAL (CREATOR ENGINE)
   ========================================================================== */
.wizard-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 14, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.wizard-modal-backdrop.open {
  display: flex;
}

.wizard-card {
  background: #0b0f17;
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 820px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(139, 92, 246, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.wizard-header {
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wizard-steps-indicator {
  display: flex;
  gap: 8px;
  align-items: center;
}

.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  transition: var(--transition);
}

.step-dot.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
}

.step-dot.completed {
  background: var(--cyan);
  color: #06090e;
}

.step-line {
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.wizard-body {
  padding: 28px;
  overflow-y: auto;
  flex: 1;
}

.wizard-step-content {
  display: none;
}

.wizard-step-content.active {
  display: block;
}

/* Face Scan Mesh Canvas in Step 2 */
.biometric-scanner-box {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: center;
  background: rgba(17, 24, 39, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}

.scan-canvas-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(6, 182, 212, 0.3);
  background: #000;
}

#faceScanCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.scan-laser-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), #fff, var(--cyan), transparent);
  box-shadow: 0 0 10px var(--cyan);
  animation: laserScan 2.4s infinite ease-in-out;
  pointer-events: none;
}

@keyframes laserScan {
  0% { top: 5%; opacity: 0.2; }
  50% { top: 90%; opacity: 1; }
  100% { top: 5%; opacity: 0.2; }
}

.wizard-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  background: rgba(6, 9, 14, 0.4);
}

/* Form Controls in Wizard */
.wiz-form-group {
  margin-bottom: 18px;
}

.wiz-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.wiz-input, .wiz-select {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  transition: var(--transition);
}

.wiz-input:focus, .wiz-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}

.wiz-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.wiz-choice-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}

.wiz-choice-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.wiz-choice-btn.selected {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--primary);
  color: #fff;
  font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .analytics-row { grid-template-columns: 1fr; }
  .models-fleet-grid { grid-template-columns: repeat(2, 1fr); }
  .messages-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .dash-layout { flex-direction: column; }
  .dash-sidebar { width: 100%; height: auto; position: static; }
  .dash-content { padding: 20px 16px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .models-fleet-grid { grid-template-columns: 1fr; }
  .scheduler-calendar { grid-template-columns: 1fr; }
  .biometric-scanner-box { grid-template-columns: 1fr; }
  .scan-canvas-wrapper { margin: 0 auto; }
}

/* ==========================================================================
   BRAND DEALS & SPONSORSHIPS
   ========================================================================== */
.brand-deals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.brand-deal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brand-deal-card:hover {
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.deal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.deal-brand-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.deal-brand-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border: 1px solid var(--border-color);
}

.deal-reward-badge {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.deal-brief-box {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 14px 0;
}

.deal-deliverables-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.deal-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   DIGITAL WARDROBE (CLOSET)
   ========================================================================== */
.wardrobe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.wardrobe-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.wardrobe-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.wardrobe-cover {
  height: 160px;
  background: rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.wardrobe-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wardrobe-fit-pill {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(6, 9, 14, 0.8);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.wardrobe-details {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ==========================================================================
   PROMPT VAULT & ALGORITHM ACCELERATORS
   ========================================================================== */
.prompt-vault-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.prompt-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.prompt-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
}

.prompt-code-box {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 12px 0 16px;
  max-height: 100px;
  overflow-y: auto;
}

@media (max-width: 1200px) {
  .wardrobe-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-deals-grid { grid-template-columns: 1fr; }
  .prompt-vault-grid { grid-template-columns: 1fr; }
}

