/* ============================================================
   creator-studio.css
   Styles for Creator Studio (005-creatorstudio.html)
   ============================================================
   
   SECTIONS:
   - Shell & Header
   - Settings Modal
   - Revenue & Tier Cards
   - Tab Navigation
   - Manage Tab (Sticker/Pack Grid)
   - Upload Tab (Zones, Queue)
   - Analytics Tab
   - Modals (Pack Builder, Edit Price, Verification)
   - Utility & States
   - Responsive Breakpoints
   
   ============================================================ */

/* ========== CREATOR STUDIO SHELL ========== */
html, body {
  height: 100%;
  overflow: hidden;
  background: var(--color-canvas);
}

.studio-shell {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--color-canvas);
  overflow: hidden;
  max-width: 1400px;
  margin: 0 auto;
  /* Account for fixed header: safe-area + header content (~60px) */
  padding-top: calc(env(safe-area-inset-top, 0px) + 60px);
}

/* ========== HEADER ========== */
/* Header is rendered dynamically by cs-app.js renderHeader() */
/* Layout: avatar left, logo centered, hamburger menu right */

.header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-canvas-subtle, #fafafa);
  border: 1px solid var(--color-border, #e4e4e7);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  color: var(--color-text-muted, #a1a1aa);
}

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

.header-avatar img.sticker-avatar {
  object-fit: contain;
  padding: 6px;
  box-sizing: border-box;
}

.header-avatar svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ========== SETTINGS SECTION (used by help modal) ========== */
.settings-section {
  margin-bottom: 24px;
}

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

.settings-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

/* ========== CREATOR TIER CARD ========== */
.tier-card {
  background: var(--color-canvas-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 20px;
  margin-bottom: 24px;
}

.tier-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.tier-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tier-badge-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-canvas-subtle);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.tier-badge-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tier-badge-avatar svg {
  width: 24px;
  height: 24px;
  color: var(--color-text-muted);
}

.tier-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}

.tier-badge-icon.tier-a {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: white;
}

.tier-badge-icon.tier-b {
  background: linear-gradient(135deg, var(--color-purple), var(--color-purple-dark));
  color: white;
}

.tier-badge-icon.tier-c {
  background: linear-gradient(135deg, var(--color-turquoise), #0d9488);
  color: white;
}

.tier-badge-info {
  display: flex;
  flex-direction: column;
}

.tier-badge-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.2;
}

.tier-badge-type {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.tier-revenue-share {
  text-align: right;
  display: flex;
  flex-direction: column;
}

.tier-revenue-percent {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.2;
}

.tier-revenue-label {
  font-size: 13px;
  color: var(--color-text-muted);
}

.tier-progress-section {
  margin-top: 16px;
}

/* Tier Upgrade Invitation Card */
.tier-upgrade-invite {
  margin-top: 16px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.1), rgba(20, 184, 166, 0.1));
  border: 1px solid var(--color-purple);
  border-radius: var(--radius-lg);
}

.tier-upgrade-invite.tier-a-upgrade {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.15), rgba(251, 191, 36, 0.1));
  border-color: var(--color-gold);
}

.tier-upgrade-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.tier-upgrade-badge {
  padding: 4px 10px;
  background: var(--color-purple);
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-pill);
}

.tier-upgrade-badge.gold {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
}

.tier-upgrade-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.tier-upgrade-checklist {
  margin-bottom: 12px;
}

.tier-upgrade-check {
  font-size: 13px;
  color: var(--color-success);
  padding: 4px 0;
}

.tier-upgrade-benefits {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.tier-upgrade-benefit {
  flex: 1;
  padding: 10px;
  background: var(--color-canvas-elevated);
  border-radius: var(--radius-md);
  text-align: center;
}

.benefit-label {
  display: block;
  font-size: 11px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.benefit-change {
  font-size: 13px;
  color: var(--color-text-secondary);
}

.benefit-change strong {
  color: var(--color-success);
}

.tier-upgrade-text {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.tier-upgrade-invite .btn-primary {
  width: 100%;
}

/* Tier Maintenance Card */
.tier-maintenance {
  margin-top: 16px;
  padding: 14px;
  background: var(--color-canvas-subtle);
  border-radius: var(--radius-lg);
}

.tier-maintenance.tier-a {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.08), rgba(251, 191, 36, 0.05));
}

.tier-maintenance-header {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
}

.tier-maintenance-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
}

.maintenance-label {
  color: var(--color-text-secondary);
}

.maintenance-value {
  font-weight: 600;
  color: var(--color-text-primary);
}

.tier-maintenance-note {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
  font-size: 11px;
  color: var(--color-text-muted);
}

/* Tier Demotion Notice */
.tier-demotion-notice {
  margin-top: 16px;
  padding: 16px;
  background: var(--color-canvas-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.tier-demotion-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.tier-demotion-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}

.tier-demotion-icon svg {
  width: 24px;
  height: 24px;
}

.tier-demotion-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.tier-demotion-text {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.tier-demotion-requirements {
  padding: 10px 12px;
  background: var(--color-canvas-elevated);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.tier-demotion-req {
  font-size: 12px;
  padding: 3px 0;
}

.tier-demotion-req .req-label {
  color: var(--color-text-muted);
  font-weight: 500;
}

.tier-demotion-req .req-value {
  color: var(--color-text-secondary);
}

.tier-demotion-notice .btn-secondary {
  width: 100%;
  padding: 10px 16px;
  background: var(--color-canvas-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: background 0.15s ease;
}

.tier-demotion-notice .btn-secondary:hover {
  background: var(--color-canvas-subtle);
}

.tier-evaluation-note {
  margin-top: 12px;
  font-size: 11px;
  color: var(--color-text-muted);
  text-align: center;
}

/* ========== VERIFICATION MODAL ========== */
.verification-pair {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.verification-pair:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.verification-pair-header {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
}

.verification-pair-uploads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.verification-upload-slot {
  position: relative;
}

.verification-upload-zone {
  padding: 20px 16px;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--color-canvas-subtle);
}

.verification-upload-zone:hover {
  border-color: var(--color-turquoise);
  background: var(--color-selected-bg);
}

.verification-upload-zone.has-file {
  border-style: solid;
  border-color: var(--color-success);
  background: rgba(34, 197, 94, 0.1);
}

.verification-upload-icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 8px;
  color: var(--color-text-muted);
}

.verification-upload-zone.has-file .verification-upload-icon {
  color: var(--color-success);
}

.verification-upload-icon svg {
  width: 100%;
  height: 100%;
}

.verification-upload-label {
  font-size: 12px;
  color: var(--color-text-muted);
}

.verification-upload-zone.has-file .verification-upload-label {
  color: var(--color-success);
  font-weight: 600;
}

.verification-upload-filename {
  font-size: 11px;
  color: var(--color-text-secondary);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== NAV CARDS ========== */
/* Hidden - navigation moved to hamburger menu dropdown */
.nav-cards {
  display: none !important;
}

.nav-mobile-toggle {
  display: none !important;
}

/* Original nav-cards grid (kept for reference)
.nav-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 0 24px 24px;
  flex-shrink: 0;
}
*/

.nav-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-card:hover {
  border-color: #7c3aed;
  background: #faf5ff;
}

.nav-card.active {
  border-color: #7c3aed;
  background: #7c3aed;
  color: white;
}

.nav-card-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-card.locked {
  opacity: 0.5;
  cursor: not-allowed;
}

.nav-card.locked:hover {
  border-color: #e5e7eb;
  background: white;
}

/* ========== MOBILE NAV TOGGLE ========== */
/* Hidden on desktop (above 768px) */
.nav-mobile-toggle {
  display: none;
}

/* Mobile styles (768px and below) */
@media (max-width: 768px) {
  .nav-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 16px 12px;
    padding: 14px 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
  }

  .nav-mobile-toggle:hover {
    border-color: #7c3aed;
    background: #faf5ff;
  }

  .nav-mobile-toggle.expanded {
    border-color: #7c3aed;
    background: #7c3aed;
    color: white;
  }

  .nav-mobile-toggle-label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .nav-mobile-toggle-chevron {
    transition: transform 0.3s ease;
    flex-shrink: 0;
  }

  .nav-mobile-toggle.expanded .nav-mobile-toggle-chevron {
    transform: rotate(180deg);
  }

  /* nav-cards collapse styles moved to NAV CARDS RESPONSIVE section below for proper cascade */
}

/* ========== SUB-TABS (for promotional panel) ========== */
/* .sub-tabs and .sub-tab styles removed - now using .manage-tabs / .manage-tab
   for unified purple underline toggle style across all panels */

/*
.sub-tabs {
  display: flex;
  gap: 4px;
  background: var(--color-canvas-subtle);
  padding: 4px;
  border-radius: var(--radius-pill);
  max-width: 320px;
  margin-bottom: 24px;
}

.sub-tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.sub-tab:hover {
  color: var(--color-text-secondary);
}

.sub-tab.active {
  background: var(--color-canvas);
  color: var(--color-text-primary);
  box-shadow: var(--shadow-sm);
}
*/

.sub-panel {
  /* Sub-panels are shown/hidden via JS */
}

/* Legacy tab styles - kept for backward compatibility */
.studio-tabs {
  display: flex;
  gap: 4px;
  background: var(--color-canvas-subtle);
  padding: 4px;
  border-radius: var(--radius-pill);
  max-width: 420px;
  margin: 0 24px 16px;
  flex-shrink: 0;
}

.studio-tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.studio-tab:hover {
  color: var(--color-text-secondary);
}

.studio-tab.active {
  background: var(--color-canvas);
  color: var(--color-text-primary);
  box-shadow: var(--shadow-sm);
}

/* ========== CONTENT AREA ========== */
.studio-content {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.studio-panel {
  display: none;
  flex: 1;
  overflow: hidden;
  flex-direction: column;
}

.studio-panel.active {
  display: flex;
}

.panel-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.panel-scroll::-webkit-scrollbar {
  width: 6px;
}

.panel-scroll::-webkit-scrollbar-thumb {
  background: var(--color-border-strong);
  border-radius: var(--radius-pill);
}

/* ========== UPLOAD PANEL ========== */
.upload-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 100%;
}

/* Upload cap status bar */
.upload-cap-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--color-canvas-subtle);
  border-radius: var(--radius-md);
  font-size: 13px;
  margin-bottom: 8px;
}

.cap-count {
  font-weight: 600;
  color: var(--color-text-primary);
}

.cap-count.cap-warning {
  color: var(--color-gold);
}

.cap-count.cap-reached {
  color: var(--color-error);
}

.cap-reset {
  color: var(--color-text-muted);
}

.cap-unlimited {
  color: var(--color-turquoise);
  font-weight: 600;
}

.upload-zone.upload-disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

.upload-zones-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.upload-zone-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.upload-zone {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--color-canvas-subtle);
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--color-turquoise);
  background: var(--color-selected-bg);
}

/* Compact zone when queue has items */
.upload-zone.compact {
  padding: 20px 16px;
  min-height: auto;
  flex: 0;
}

.upload-zone-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  opacity: 0.6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-zone-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--color-purple);
  stroke-width: 1.5;
  fill: none;
}

.upload-zone.compact .upload-zone-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 6px;
}

.upload-zone-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.upload-zone.compact .upload-zone-title {
  font-size: 13px;
}

.upload-zone-subtitle {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}

.upload-zone.compact .upload-zone-subtitle {
  font-size: 11px;
  margin-bottom: 10px;
}

.upload-zone-specs {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
}

.spec-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: var(--color-canvas);
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 600;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  white-space: nowrap;
}

.spec-badge .icon {
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spec-badge .icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.upload-zone-limit {
  font-size: 11px;
  color: var(--color-turquoise);
  font-weight: 600;
}

.upload-zone-guide-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-purple);
  text-decoration: none;
  transition: color 0.15s ease;
}

.upload-zone-guide-link:hover {
  color: var(--color-turquoise);
  text-decoration: underline;
}

.upload-zone.compact .upload-zone-guide-link {
  display: none;
}

.upload-zone-policy {
  margin-top: 12px;
  font-size: 11px;
  color: var(--color-text-tertiary);
  line-height: 1.4;
}

.upload-zone-policy a {
  color: var(--color-text-secondary);
  text-decoration: underline;
}

.upload-zone-policy a:hover {
  color: var(--color-purple);
}

.upload-zone.compact .upload-zone-policy {
  display: none;
}

.upload-main {
  flex: 1;
  min-width: 0;
}

/* Friendly tip styles */
.upload-item-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.2);
  border-radius: var(--radius-md);
  margin-top: 12px;
}

.upload-item-tip .tip-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-item-tip .tip-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--color-turquoise);
  stroke-width: 2;
  fill: none;
}

.upload-item-tip .tip-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.upload-item-tip .tip-text strong {
  color: var(--color-turquoise);
  font-weight: 600;
}

/* Rescue option for solid images */
.rescue-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.06), rgba(20, 184, 166, 0.06));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-top: 12px;
}

.rescue-option-text {
  flex: 1;
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.rescue-option-btn {
  padding: 8px 16px;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.rescue-option-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Delete selected button styling */
.btn-delete-selected {
  color: var(--color-error);
  border-color: var(--color-error);
}

.btn-delete-selected:hover {
  background: rgba(220, 38, 38, 0.08);
  border-color: var(--color-error);
  color: var(--color-error);
}

#file-input {
  display: none;
}

/* ========== UPLOAD QUEUE ========== */
.upload-queue {
  display: none;
}

.upload-queue.has-items {
  display: block;
}

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

.queue-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.queue-count {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-left: 8px;
}

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

.btn-outline {
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: transparent;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-outline:hover {
  border-color: var(--color-border-strong);
  color: var(--color-text-secondary);
}

.queue-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

/* ========== UPLOAD ITEM CARD ========== */
.upload-item {
  background: var(--color-canvas-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all 0.2s ease;
}

.upload-item:hover {
  border-color: var(--color-border-strong);
}

.upload-item.error {
  border-color: var(--color-error);
  background: rgba(220, 38, 38, 0.03);
}

.upload-item.success {
  border-color: var(--color-success);
}

.upload-item.selected-for-delete {
  border-color: var(--color-turquoise);
  background: var(--color-selected-bg);
}

.upload-item-header {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.upload-item-select {
  display: flex;
  align-items: flex-start;
  padding-top: 4px;
}

.upload-item-select input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-turquoise);
  cursor: pointer;
}

.upload-item-preview {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  background: var(--color-canvas-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
}

.upload-item-preview .preview-placeholder {
  width: 28px;
  height: 28px;
  opacity: 0.4;
}

.upload-item-preview .preview-placeholder svg {
  width: 100%;
  height: 100%;
  stroke: var(--color-text-muted);
  stroke-width: 1.5;
  fill: none;
}

.upload-item-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.upload-item-type-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  padding: 2px 6px;
  background: var(--color-canvas);
  border-radius: var(--radius-sm);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.upload-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.upload-item-filename {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

.upload-item-status {
  font-size: 12px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-text-muted);
}

.status-dot.processing {
  background: var(--color-gold);
  animation: pulse 1.5s infinite;
}

.status-dot.ready {
  background: var(--color-turquoise);
}

.status-dot.success {
  background: var(--color-success);
}

.status-dot.error {
  background: var(--color-error);
}

.status-dot.needs-rescue {
  background: var(--color-gold);
}

.status-dot.needs-crop {
  background: var(--color-gold);
}

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

.upload-item-remove {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--color-canvas-subtle);
  border-radius: 50%;
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
  align-self: flex-start;
  padding: 0;
}

.upload-item-remove svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.upload-item-remove:hover {
  background: var(--color-error);
  color: white;
}

/* ========== UPLOAD ITEM FORM ========== */
.upload-item-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.upload-item.error .upload-item-form {
  display: none;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-field.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.form-input {
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: var(--font-primary);
  color: var(--color-text-primary);
  background: var(--color-canvas);
  transition: border-color 0.15s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-turquoise);
}

.form-input::placeholder {
  color: var(--color-text-subtle);
}

.form-textarea {
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: var(--font-primary);
  color: var(--color-text-primary);
  background: var(--color-canvas);
  transition: border-color 0.15s ease;
  resize: vertical;
  min-height: 80px;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--color-turquoise);
}

.form-select {
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: var(--font-primary);
  color: var(--color-text-primary);
  background: var(--color-canvas);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-select:focus {
  outline: none;
  border-color: var(--color-turquoise);
}

/* AI Fix link button (below sticker image in edit modal) */
.ai-fix-link-btn {
  background: none;
  border: none;
  color: var(--color-purple, #6D28D9);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
}

.ai-fix-link-btn:hover {
  opacity: 0.8;
}

/* ========== TAGS INPUT ========== */
.tags-input-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-canvas);
  min-height: 44px;
  cursor: text;
  transition: border-color 0.15s ease;
}

.tags-input-wrapper:focus-within {
  border-color: var(--color-turquoise);
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--color-purple);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: white;
}

.tag-chip.suggested {
  background: var(--color-turquoise);
}

.tag-chip-remove {
  width: 14px;
  height: 14px;
  border: none;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  padding: 0;
}

.tag-chip-remove svg {
  width: 8px;
  height: 8px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

.tag-chip-remove:hover {
  background: rgba(255,255,255,0.4);
}

.tags-input {
  flex: 1;
  min-width: 100px;
  border: none;
  outline: none;
  font-size: 13px;
  font-family: var(--font-primary);
  color: var(--color-text-primary);
  background: transparent;
}

.tags-input::placeholder {
  color: var(--color-text-subtle);
}

.tags-hint {
  font-size: 11px;
  color: var(--color-text-subtle);
}

/* ========== TIER SELECTOR ========== */
.tier-selector {
  display: flex;
  gap: 8px;
}

.tier-option {
  flex: 1;
  padding: 10px 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-canvas);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.tier-option:hover {
  border-color: var(--color-border-strong);
}

.tier-option.selected {
  border-color: var(--color-purple);
  background: rgba(109, 40, 217, 0.08);
}

.tier-option.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.tier-option input {
  display: none;
}

.tier-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 2px;
}

.tier-price {
  font-size: 11px;
  color: var(--color-text-muted);
}

/* ========== CHECKBOX ROW ========== */
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-purple);
  cursor: pointer;
}

.checkbox-row label {
  font-size: 13px;
  color: var(--color-text-secondary);
  cursor: pointer;
}

/* ========== ERROR MESSAGE ========== */
.error-message {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: rgba(220, 38, 38, 0.08);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--color-error);
}

.error-message .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.error-message .icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--color-error);
  stroke-width: 2;
  fill: none;
}

/* ========== SUBMIT SECTION ========== */
.submit-section {
  padding: 16px 24px;
  border-top: 1px solid var(--color-border);
  background: var(--color-canvas);
  flex-shrink: 0;
}

.submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
}

.submit-info {
  font-size: 13px;
  color: var(--color-text-muted);
}

.submit-info strong {
  color: var(--color-text-primary);
  font-weight: 600;
}

.btn-submit {
  padding: 12px 28px;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  box-shadow: var(--shadow-button);
  transition: all 0.15s ease;
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-button-hover);
}

.btn-submit:active {
  transform: translateY(1px);
}

.btn-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ========== MANAGE PANEL ========== */
.manage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}

.manage-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sort-filter {
  position: relative;
}

.sort-select {
  padding: 10px 36px 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-family: var(--font-primary);
  color: var(--color-text-primary);
  background: var(--color-canvas);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.sort-select:focus {
  outline: none;
  border-color: var(--color-turquoise);
}

.manage-filters {
  display: flex;
  gap: 8px;
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-canvas);
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-btn:hover {
  border-color: var(--color-border-strong);
  color: var(--color-text-secondary);
}

.filter-btn.active {
  background: var(--color-text-primary);
  border-color: var(--color-text-primary);
  color: var(--color-text-inverse);
}

.manage-search {
  position: relative;
  width: 240px;
}

.manage-search input {
  width: 100%;
  padding: 10px 14px 10px 36px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-family: var(--font-primary);
  color: var(--color-text-primary);
  background: var(--color-canvas);
}

.manage-search input:focus {
  outline: none;
  border-color: var(--color-turquoise);
}

.manage-search .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--color-text-subtle);
}

/* ========== STICKER GRID (Legacy - kept for compatibility) ========== */
/* New styles are in card-grid section below */

.sticker-card-preview {
  width: 100%;
  aspect-ratio: 1;
  background: var(--color-canvas-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
}

.sticker-card-preview img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
}

/* Restricted Sticker Treatment */
.sticker-card.restricted {
  opacity: 0.75;
  cursor: default;
  pointer-events: none;
}

.sticker-card.restricted .sticker-card-preview {
  position: relative;
}

.sticker-card.restricted .sticker-card-preview img {
  filter: grayscale(60%) opacity(0.6);
}

.sticker-card.restricted .restricted-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: rgba(245, 158, 11, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.sticker-card.restricted .restricted-overlay svg {
  width: 14px;
  height: 14px;
  stroke: white;
  stroke-width: 2;
  fill: none;
}

.sticker-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

.sticker-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--color-text-muted);
}

.sticker-card-tier {
  padding: 3px 8px;
  background: var(--color-canvas-subtle);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.sticker-card-tier.premium {
  background: rgba(109, 40, 217, 0.1);
  color: var(--color-purple);
}

.sticker-card-tier.standard {
  background: rgba(20, 184, 166, 0.1);
  color: var(--color-turquoise);
}

.sticker-card-tier.value {
  background: rgba(234, 179, 8, 0.1);
  color: var(--color-gold-dark);
}

.sticker-card-tier.free {
  background: var(--color-canvas-subtle);
  color: var(--color-text-muted);
}

.sticker-card-coins {
  font-size: 11px;
  color: var(--color-text-muted);
}

.sticker-card-coins.editable {
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.15s;
}

.sticker-card-coins.editable:hover {
  background: var(--color-canvas-subtle);
}

.sticker-card-coins .edit-icon {
  width: 10px;
  height: 10px;
  margin-left: 4px;
  opacity: 0;
  transition: opacity 0.15s;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  vertical-align: middle;
}

.sticker-card:hover .sticker-card-coins.editable .edit-icon {
  opacity: 0.6;
}

.price-locked {
  font-size: 10px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.price-locked svg {
  width: 10px;
  height: 10px;
  margin-right: 3px;
  vertical-align: middle;
}

/* ========== SHEET CARD =========== */
/* Card wrapper - flex column, NO aspect-ratio */
.sheet-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 0; /* Required for grid items to shrink below content width */
}

/* Sheet card hover effects only on devices that support hover */
@media (hover: hover) {
  .sheet-card:hover {
    transform: translateY(-2px);
  }

  .sheet-card:hover .sheet-card__preview {
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-md);
  }
}

/* Preview area - 9:16 aspect ratio container */
.sheet-card__preview {
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-canvas-subtle);
  position: relative;
  border: 1px solid var(--color-border);
}

/* Single thumbnail image fills the preview with cover */
.sheet-card__preview > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Legacy class for backwards compatibility */
.sheet-card-image {
  flex: 1;
  min-height: 0;
  background: var(--color-canvas-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.sheet-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 2x2 collage grid for sheets without thumbnail */
.sheet-card-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  width: 100%;
  height: 100%;
  padding: 8px;
}

.sheet-card-collage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--color-canvas);
  border-radius: var(--radius-sm);
}

/* Type badge overlay - positioned inside preview */
.sheet-card-type {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sheet-card-type.mini {
  background: rgba(234, 179, 8, 0.9);
  color: #fff;
}

.sheet-card-type.standard {
  background: rgba(20, 184, 166, 0.9);
  color: #fff;
}

.sheet-card-type.deluxe {
  background: rgba(109, 40, 217, 0.9);
  color: #fff;
}

/* Info area - BELOW the preview, not inside */
.sheet-card-info {
  padding: 10px 2px;
}

.sheet-card-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sheet-card-meta {
  font-size: 11px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sheet-card-price {
  font-weight: 600;
}

/* Legacy styles kept for compatibility */
.sheet-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sheet-card-desc {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sheet-card-previews {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sheet-card-preview {
  width: 40px;
  height: 40px;
  background: var(--color-canvas-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
}

.sheet-card-preview img {
  max-width: 32px;
  max-height: 32px;
  object-fit: contain;
}

.sheet-card-more {
  width: 40px;
  height: 40px;
  background: var(--color-canvas-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.sheet-card-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  font-size: 11px;
  color: var(--color-text-muted);
}

.sheet-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  opacity: 0;
  transition: opacity 0.15s;
}

/* Sheet card action hover effects only on devices that support hover */
@media (hover: hover) {
  .sheet-card:hover .sheet-card-actions {
    opacity: 1;
  }

  .sheet-card-action:hover {
    border-color: var(--color-border-strong);
    background: var(--color-canvas-elevated);
  }

  .sheet-card-action.delete:hover {
    border-color: var(--color-error);
    color: var(--color-error);
  }
}

.sheet-card-action {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-canvas-subtle);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.sheet-card-action svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* ========== SHEETS VIEW ========== */
.sheets-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.sheets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

/* ========== EMPTY STATE ========== */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}

.empty-state-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  opacity: 0.5;
}

.empty-state-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--color-purple);
  stroke-width: 1.5;
  fill: none;
}

.empty-state-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.empty-state-text {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.btn-primary {
  padding: 12px 24px;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ========== PACK BUILDER MODAL ========== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.visible {
  display: flex;
}

.modal {
  background: var(--color-canvas);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

/* Edit sticker modal: fixed height with inner scroll */
#edit-sticker-modal .modal {
  height: 75vh;
  max-height: 600px;
}

/* Prevent category/subcategory row overflow */
#edit-sticker-modal .form-field {
  min-width: 0;
}

#edit-sticker-modal .form-input,
#edit-sticker-modal .form-select {
  width: 100%;
  box-sizing: border-box;
}

/* Edit modal footer buttons - match in-app exactly */
#edit-sticker-modal .modal-footer {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--color-border);
  gap: 12px;
}

#edit-sticker-modal .btn-danger {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: var(--color-danger, #ef4444);
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
  margin-right: 0;
}

#edit-sticker-modal .btn-danger:hover {
  background: #dc2626;
}

#edit-sticker-modal .btn-primary {
  flex: 2;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: var(--color-purple, #6D28D9);
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
  box-shadow: none;
  transform: none;
}

#edit-sticker-modal .btn-primary:hover {
  opacity: 0.9;
  transform: none;
}

#edit-sticker-modal .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.modal-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--color-canvas-subtle);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-primary);
  transition: background 0.15s ease;
}

.modal-close:hover {
  background: var(--color-canvas-inset, #f4f4f5);
}

.modal-close svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Sheet Builder Steps */
.sheet-builder-step {
  display: none;
}

.sheet-builder-step.active {
  display: block;
}

.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  transition: background 0.2s ease;
}

.step-dot.active {
  background: var(--color-purple);
}

.step-dot.completed {
  background: var(--color-turquoise);
}

.step-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.step-subtitle {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.selection-count {
  font-size: 14px;
  color: var(--color-text-muted);
}

.selection-count strong {
  color: var(--color-turquoise);
}

.sticker-selection-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
  padding: 4px;
}

@media (min-width: 480px) {
  .sticker-selection-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.sticker-select-card {
  aspect-ratio: 1;
  background: var(--color-canvas-subtle);
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, transform 0.15s ease;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.sticker-select-card:active {
  transform: scale(0.95);
}

.sticker-select-card.selected {
  border-color: var(--color-purple);
}

.sticker-select-card img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.sticker-select-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  background: var(--color-purple);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
}

.sticker-select-check {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.sticker-select-card.selected .sticker-select-check {
  display: flex;
  opacity: 1;
  transform: scale(1);
}

.sticker-select-check svg {
  width: 14px;
  height: 14px;
  stroke: white;
  stroke-width: 3;
  fill: none;
}

/* Sheet Details Form */
.sheet-summary {
  background: var(--color-canvas-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
}

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

.sheet-type-badge {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sheet-type-badge.mini {
  background: rgba(234, 179, 8, 0.15);
  color: var(--color-gold-dark);
}

.sheet-type-badge.standard {
  background: rgba(20, 184, 166, 0.15);
  color: var(--color-turquoise);
}

.sheet-type-badge.deluxe {
  background: rgba(109, 40, 217, 0.15);
  color: var(--color-purple);
}

.sheet-pricing {
  text-align: right;
}

.sheet-original-price {
  font-size: 12px;
  color: var(--color-text-muted);
  text-decoration: line-through;
  margin-bottom: 2px;
}

.sheet-final-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.sheet-discount {
  font-size: 11px;
  color: var(--color-success);
  font-weight: 600;
}

.sheet-sticker-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sheet-sticker-thumb {
  width: 48px;
  height: 48px;
  background: var(--color-canvas);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
}

.sheet-sticker-thumb img {
  max-width: 36px;
  max-height: 36px;
  object-fit: contain;
}

.ai-suggestion-field {
  position: relative;
}

.ai-suggestion-badge {
  position: absolute;
  top: 0;
  right: 0;
  padding: 4px 8px;
  background: rgba(109, 40, 217, 0.1);
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 600;
  color: var(--color-purple);
  display: flex;
  align-items: center;
  gap: 4px;
}

.ai-suggestion-badge svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* ============================================
   INLINE SHEET BUILDER CONTAINER
   ============================================ */

.inline-sheet-builder {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Step indicator inherits from .studio-build-sheet-steps base styles (identical to in-app) */

.inline-sheet-builder .sb-step-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 0;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.inline-sheet-builder .sb-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-canvas);
}

.inline-sheet-builder .sb-footer-buttons {
  display: flex;
  gap: 12px;
}

.inline-sheet-builder .sheet-builder-step {
  display: none;
}

.inline-sheet-builder .sheet-builder-step.active {
  display: block;
}

/* ============================================
   SHEET BUILDER 3-STEP FLOW (sb- prefix)
   ============================================ */

/* Step Indicator - Copied from in-app studio-build-sheet.css */
.studio-build-sheet-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--color-border, #e4e4e7);
  flex-shrink: 0;
}

.studio-build-sheet-step {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-muted, #71717a);
  font-size: 13px;
  font-weight: 500;
}

.studio-build-sheet-step.active {
  color: var(--color-purple, #6D28D9);
}

.studio-build-sheet-step.completed {
  color: var(--color-turquoise, #14B8A6);
}

.studio-build-sheet-step__dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-canvas-subtle, #fafafa);
  border: 2px solid var(--color-border, #e4e4e7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted, #71717a);
  transition: all 0.2s ease;
}

.studio-build-sheet-step.active .studio-build-sheet-step__dot {
  background: var(--color-purple, #6D28D9);
  border-color: var(--color-purple, #6D28D9);
  color: white;
}

.studio-build-sheet-step.completed .studio-build-sheet-step__dot {
  background: var(--color-turquoise, #14B8A6);
  border-color: var(--color-turquoise, #14B8A6);
  color: white;
}

.studio-build-sheet-step__line {
  width: 40px;
  height: 2px;
  background: var(--color-border, #e4e4e7);
}

/* Step 2 Header (title + hex input on same line, aligned with grid) */
.sb-step2-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 0 4px; /* Match .sb-color-grid padding */
}

.sb-step2-header .step-title {
  margin-bottom: 0;
}

.sb-step2-header .sb-hex-input {
  margin: 0;
  text-align: left;
}

.sb-hex-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sb-color-preview {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

/* Color Grid (Step 2) */
.sb-color-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 4px;
  margin-bottom: 20px;
}

.sb-color-row {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.sb-color-swatch {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s ease, transform 0.15s ease;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.sb-color-swatch:hover {
  transform: scale(1.05);
}

.sb-color-swatch:active {
  transform: scale(0.95);
}

.sb-color-swatch.selected {
  border-color: var(--color-purple);
  transform: scale(1.1);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(109, 40, 217, 0.25);
}

/* Hex Input (Step 2) */
.sb-hex-row {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

.sb-hex-label {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-muted);
}

.sb-hex-input {
  width: 100px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-canvas);
  font-size: 15px;
  font-weight: 500;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

.sb-hex-input:focus {
  outline: none;
  border-color: var(--color-purple);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.1);
}

.sb-hex-input::placeholder {
  color: var(--color-text-subtle);
  text-transform: uppercase;
}

/* 9:16 Canvas Preview (Step 3) */
.sb-canvas-wrapper {
  display: flex;
  justify-content: center;
  padding: 0 16px 20px;
}

.sb-canvas {
  position: relative;
  width: 100%;
  max-width: 200px;
  aspect-ratio: 9 / 16;
  background: #ffffff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), 0 1px 4px rgba(0, 0, 0, 0.05);
}

.sb-canvas-sticker {
  position: absolute;
  object-fit: contain;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

/* Form Fields (Step 3) */
.sb-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sb-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sb-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-primary);
}

.sb-field label .optional {
  font-weight: 400;
  color: var(--color-text-muted);
}

.sb-field input,
.sb-field textarea {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-canvas);
  font-size: 15px;
  color: var(--color-text-primary);
  font-family: inherit;
  resize: none;
}

.sb-field input:focus,
.sb-field textarea:focus {
  outline: none;
  border-color: var(--color-purple);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.1);
}

.sb-field input::placeholder,
.sb-field textarea::placeholder {
  color: var(--color-text-subtle);
}

.sb-field textarea {
  min-height: 80px;
}

/* Tags Container (Step 3) */
.sb-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  background: var(--color-canvas-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  min-height: 44px;
  align-items: center;
}

.sb-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: var(--color-purple);
  color: white;
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
}

.sb-tag__remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0.7;
  color: white;
  -webkit-tap-highlight-color: transparent;
}

.sb-tag__remove:hover,
.sb-tag__remove:active {
  opacity: 1;
}

.sb-tags-input {
  flex: 1;
  min-width: 80px;
  padding: 6px 0;
  border: none;
  background: transparent;
  font-size: 13px;
  color: var(--color-text-primary);
  outline: none;
}

.sb-tags-input::placeholder {
  color: var(--color-text-subtle);
}

/* Info Box (Step 3) */
.sb-info-box {
  background: var(--color-canvas-subtle);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  margin-top: 8px;
}

.sb-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
}

.sb-info-row:not(:last-child) {
  border-bottom: 1px solid var(--color-border);
}

.sb-info-row span:first-child {
  color: var(--color-text-muted);
}

.sb-info-row span:last-child {
  font-weight: 600;
  color: var(--color-text-primary);
}

.sb-info-row span.free {
  color: var(--color-turquoise);
}

/* Type Badge (Step 3) */
.sb-type-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.sb-type-badge.mini {
  background: #DBEAFE;
  color: #1D4ED8;
}

.sb-type-badge.standard {
  background: #EDE9FE;
  color: #6D28D9;
}

.sb-type-badge.deluxe {
  background: #FEF3C7;
  color: #B45309;
}

/* Price Display (Step 3) */
#sb-price-display s {
  color: var(--color-text-muted);
  text-decoration: line-through;
  margin-right: 4px;
  font-weight: 400;
}

#sb-price-display .discount {
  color: var(--color-turquoise);
  font-size: 12px;
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .studio-build-sheet-steps {
    gap: 8px;
  }

  .studio-build-sheet-step__line {
    width: 24px;
  }
}

/* Authorization Modal */
.auth-modal {
  max-width: 500px;
}

.auth-modal .modal-body {
  text-align: center;
}

.auth-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-icon svg {
  width: 32px;
  height: 32px;
  stroke: white;
  stroke-width: 2;
  fill: none;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 12px;
}

.auth-text {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-note {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 16px;
}

/* Sheet Recommendation */
.sheet-recommendation {
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.08), rgba(20, 184, 166, 0.08));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}

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

.sheet-recommendation-icon {
  width: 32px;
  height: 32px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sheet-recommendation-icon svg {
  width: 16px;
  height: 16px;
  stroke: white;
  stroke-width: 2;
  fill: none;
}

.sheet-recommendation-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.sheet-recommendation-text {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.sheet-recommendation-stickers {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.sheet-recommendation-actions {
  display: flex;
  gap: 12px;
}

/* Restricted Content Notice */
.restricted-notice {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(251, 191, 36, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  text-align: center;
}

.restricted-notice-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: rgb(245, 158, 11);
  opacity: 0.8;
}

.restricted-notice-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.restricted-notice-text {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  max-width: 600px;
  margin: 0 auto;
}

.btn-secondary {
  padding: 10px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-canvas);
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  border-color: var(--color-border-strong);
  color: var(--color-text-primary);
}

/* ========== EARNINGS & ANALYTICS PANEL ========== */
.analytics-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.analytics-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.analytics-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.stat-card {
  background: var(--color-canvas-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.stat-change {
  font-size: 12px;
  color: var(--color-success);
  margin-top: 6px;
  font-weight: 500;
}

.stat-change.negative {
  color: var(--color-error);
}

.stat-change.neutral {
  color: var(--color-text-muted);
}

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

.section-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.earnings-card {
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  padding: 24px;
  color: white;
}

.earnings-label {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 6px;
}

.earnings-value {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 12px;
}

.earnings-caveat {
  font-size: 12px;
  opacity: 0.8;
  line-height: 1.5;
  margin-bottom: 16px;
}

.earnings-caveat strong {
  opacity: 1;
}

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

.earnings-btn {
  padding: 12px 24px;
  background: rgba(255,255,255,0.2);
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: background 0.15s ease;
}

.earnings-btn:hover {
  background: rgba(255,255,255,0.3);
}

.earnings-link {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
  transition: color 0.15s ease;
}

.earnings-link:hover {
  color: white;
}

.top-stickers-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.top-sticker-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--color-canvas-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease;
}

.top-sticker-item:hover {
  border-color: var(--color-border-strong);
}

.top-sticker-rank {
  width: 28px;
  height: 28px;
  background: var(--color-canvas-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.top-sticker-rank.gold {
  background: var(--color-gold);
  color: white;
}

.top-sticker-rank.silver {
  background: #a1a1aa;
  color: white;
}

.top-sticker-rank.bronze {
  background: #ca8a04;
  color: white;
}

.top-sticker-preview {
  width: 48px;
  height: 48px;
  background: var(--color-canvas-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.top-sticker-preview img {
  max-width: 40px;
  max-height: 40px;
  object-fit: contain;
}

.top-sticker-info {
  flex: 1;
  min-width: 0;
}

.top-sticker-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 2px;
}

.top-sticker-stat {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* ========== BULK ACTIONS BAR ========== */
.bulk-actions {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 24px;
  background: var(--color-text-primary);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xl);
  z-index: 100;
}

.bulk-actions.visible {
  display: flex;
  align-items: center;
  gap: 20px;
}

.bulk-count {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-inverse);
}

.bulk-btns {
  display: flex;
  gap: 10px;
}

.bulk-btn {
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bulk-btn.primary {
  background: var(--color-turquoise);
  color: white;
}

.bulk-btn.secondary {
  background: rgba(255,255,255,0.15);
  color: var(--color-text-inverse);
}

.bulk-btn:hover {
  opacity: 0.85;
}

/* ========== FIXED TIER (non-artist accounts) ========== */
.tier-badge-icon.tier-fixed {
  background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-turquoise) 100%);
  font-size: 12px;
  padding: 0 4px;
}

/* ========== FREE-ONLY NOTICE (advocacy/union) ========== */
.free-only-notice {
  display: none;
  padding: 12px 16px;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid var(--color-turquoise);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.free-only-notice.visible {
  display: block;
}

.free-only-notice p {
  font-size: 13px;
  color: var(--color-turquoise);
  margin: 0;
}

/* ========== RESPONSIVE - TABLET ========== */
@media (max-width: 900px) {
  .analytics-layout {
    grid-template-columns: 1fr;
  }

  .upload-item-form {
    grid-template-columns: 1fr;
  }

  .manage-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .manage-controls {
    flex-direction: column;
    gap: 8px;
  }

  .sort-select {
    width: 100%;
  }

  .manage-search {
    width: 100%;
  }

  .upload-zones-row {
    grid-template-columns: 1fr;
  }
}

/* ========== RESPONSIVE - MOBILE ========== */
@media (max-width: 580px) {
  .panel-scroll {
    padding: 16px;
  }

  .studio-tabs {
    max-width: 100%;
    margin: 0 16px 12px;
  }

  .studio-tab {
    padding: 8px 10px;
    font-size: 11px;
  }

  .tier-selector {
    flex-wrap: wrap;
  }

  .tier-option {
    flex: 1 1 45%;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .manage-filters {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .sticker-grid-manage {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .submit-section {
    padding: 14px 16px;
  }

  .earnings-value {
    font-size: 32px;
  }

  .upload-zone {
    padding: 40px 20px;
  }

  .upload-zone.compact {
    padding: 20px 16px;
  }

  .modal {
    max-height: 100vh;
    border-radius: 16px;
  }
}
/* ============================================
   ACCOUNT SETUP BLOCKER
   ============================================ */

.setup-blocker {
  padding: 24px;
}

.setup-blocker-card {
  background: var(--color-canvas-default, #fff);
  border: 1px solid var(--color-border, #e1e4e8);
  border-radius: 16px;
  padding: 32px;
  max-width: 500px;
  margin: 0 auto;
}

.setup-blocker-header {
  text-align: center;
  margin-bottom: 24px;
}

.setup-blocker-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--color-purple, #6d28d9), var(--color-teal, #14b8a6));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.setup-blocker-icon svg {
  width: 32px;
  height: 32px;
  color: white;
}

.setup-blocker-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-primary, #1a1a2e);
  margin-bottom: 4px;
}

.setup-blocker-subtitle {
  font-size: 14px;
  color: var(--color-text-muted, #6b7280);
}

.setup-checklist {
  margin-bottom: 24px;
}

.setup-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border, #e1e4e8);
}

.setup-checklist-item:last-child {
  border-bottom: none;
}

.setup-checklist-item.complete {
  opacity: 0.6;
}

.setup-checklist-check {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.setup-checklist-check svg {
  width: 20px;
  height: 20px;
  color: var(--color-teal, #14b8a6);
}

.setup-checklist-circle {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border, #d1d5db);
  border-radius: 50%;
}

.setup-checklist-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary, #1a1a2e);
}

.setup-checklist-desc {
  font-size: 12px;
  color: var(--color-text-muted, #6b7280);
  margin-top: 2px;
}

.setup-progress {
  margin-bottom: 20px;
}

.setup-progress-bar {
  height: 8px;
  background: var(--color-canvas-subtle, #f3f4f6);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.setup-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-purple, #6d28d9), var(--color-teal, #14b8a6));
  border-radius: 4px;
  transition: width 0.3s ease;
}

.setup-progress-text {
  font-size: 12px;
  color: var(--color-text-muted, #6b7280);
  text-align: center;
}

.setup-start-btn {
  width: 100%;
}

/* Locked tab styling */
.studio-tab.locked {
  opacity: 0.5;
  cursor: not-allowed;
  position: relative;
}

.studio-tab.locked::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
  background-size: contain;
}

/* ============================================
   ACCOUNT SETUP FORM
   ============================================ */

.setup-form-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border, #e1e4e8);
}

.setup-form-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.setup-section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary, #1a1a2e);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.setup-section-title .section-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--color-border, #d1d5db);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.setup-section-title .section-check.complete {
  background: var(--color-teal, #14b8a6);
  border-color: var(--color-teal, #14b8a6);
}

.setup-section-title .section-check svg {
  width: 12px;
  height: 12px;
  color: white;
  display: none;
}

.setup-section-title .section-check.complete svg {
  display: block;
}

.setup-form-row {
  margin-bottom: 16px;
}

.setup-form-row:last-child {
  margin-bottom: 0;
}

.setup-form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-primary, #1a1a2e);
  margin-bottom: 6px;
}

.setup-form-label .required {
  color: var(--color-danger, #ef4444);
}

.setup-form-input {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid var(--color-border, #d1d5db);
  border-radius: 8px;
  background: var(--color-canvas-default, #fff);
  color: var(--color-text-primary, #1a1a2e);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.setup-form-input:focus {
  outline: none;
  border-color: var(--color-purple, #6d28d9);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.1);
}

.setup-form-input.error {
  border-color: var(--color-danger, #ef4444);
}

.setup-form-input::placeholder {
  color: var(--color-text-muted, #9ca3af);
}

.setup-form-select {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid var(--color-border, #d1d5db);
  border-radius: 8px;
  background: var(--color-canvas-default, #fff);
  color: var(--color-text-primary, #1a1a2e);
  cursor: pointer;
}

.setup-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.setup-form-hint {
  font-size: 12px;
  color: var(--color-text-muted, #6b7280);
  margin-top: 4px;
}

.setup-form-error {
  font-size: 12px;
  color: var(--color-danger, #ef4444);
  margin-top: 4px;
}

.setup-upload-zone {
  border: 2px dashed var(--color-border, #d1d5db);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.setup-upload-zone:hover {
  border-color: var(--color-purple, #6d28d9);
  background: rgba(109, 40, 217, 0.02);
}

.setup-upload-zone.has-file {
  border-color: var(--color-teal, #14b8a6);
  border-style: solid;
  background: rgba(20, 184, 166, 0.05);
}

.setup-upload-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  color: var(--color-text-muted, #6b7280);
}

.setup-upload-text {
  font-size: 14px;
  color: var(--color-text-primary, #1a1a2e);
  margin-bottom: 4px;
}

.setup-upload-hint {
  font-size: 12px;
  color: var(--color-text-muted, #6b7280);
}

.setup-upload-filename {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-teal, #14b8a6);
}

.setup-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: var(--color-canvas-subtle, #f9fafb);
  border-radius: 8px;
}

.setup-checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.setup-checkbox-label {
  font-size: 14px;
  color: var(--color-text-primary, #1a1a2e);
  line-height: 1.4;
}

.setup-info-box {
  padding: 16px;
  background: rgba(109, 40, 217, 0.05);
  border-radius: 8px;
  border-left: 3px solid var(--color-purple, #6d28d9);
}

.setup-info-box.warning {
  background: rgba(245, 158, 11, 0.1);
  border-left-color: #f59e0b;
}

.setup-info-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary, #1a1a2e);
  margin-bottom: 4px;
}

.setup-info-text {
  font-size: 13px;
  color: var(--color-text-secondary, #4b5563);
  line-height: 1.5;
}

.setup-modal-progress {
  font-size: 13px;
  color: var(--color-text-muted, #6b7280);
}

.setup-modal-actions {
  display: flex;
  gap: 12px;
}

.setup-contact-block {
  padding: 16px;
  background: var(--color-canvas-subtle, #f9fafb);
  border-radius: 8px;
  margin-bottom: 16px;
}

.setup-contact-block:last-child {
  margin-bottom: 0;
}

.setup-contact-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary, #1a1a2e);
  margin-bottom: 12px;
}

/* ============================================
   TIER C MONETIZATION CTA
   ============================================ */

.monetization-cta-card {
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.08) 0%, rgba(20, 184, 166, 0.08) 100%);
  border: 1px solid rgba(109, 40, 217, 0.2);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin-bottom: 20px;
}

.monetization-cta-badge {
  display: inline-block;
  background: var(--color-purple, #6d28d9);
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.monetization-cta-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-primary, #1a1a2e);
  margin-bottom: 8px;
}

.monetization-cta-text {
  font-size: 14px;
  color: var(--color-text-secondary, #4b5563);
  line-height: 1.5;
  margin-bottom: 20px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.monetization-cta-benefits {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  align-items: center;
}

.monetization-benefit {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text-primary, #1a1a2e);
}

.monetization-benefit svg {
  width: 18px;
  height: 18px;
  color: var(--color-teal, #14b8a6);
  flex-shrink: 0;
}

.monetization-cta-btn {
  width: 100%;
  max-width: 280px;
  margin-bottom: 12px;
}

.monetization-cta-note {
  font-size: 12px;
  color: var(--color-text-muted, #6b7280);
}

/* ============================================
   MONETIZATION APPLICATION STEPS
   ============================================ */

.monetization-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--color-border, #e1e4e8);
  gap: 8px;
}

.monetization-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0.4;
  transition: opacity 0.2s;
}

.monetization-step.active,
.monetization-step.complete {
  opacity: 1;
}

.monetization-step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-canvas-subtle, #f3f4f6);
  border: 2px solid var(--color-border, #d1d5db);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted, #6b7280);
  transition: all 0.2s;
}

.monetization-step.active .monetization-step-number {
  background: var(--color-purple, #6d28d9);
  border-color: var(--color-purple, #6d28d9);
  color: white;
}

.monetization-step.complete .monetization-step-number {
  background: var(--color-teal, #14b8a6);
  border-color: var(--color-teal, #14b8a6);
  color: white;
}

.monetization-step-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-muted, #6b7280);
  white-space: nowrap;
}

.monetization-step.active .monetization-step-label {
  color: var(--color-text-primary, #1a1a2e);
}

.monetization-step-connector {
  width: 40px;
  height: 2px;
  background: var(--color-border, #d1d5db);
  margin: 0 4px;
  margin-bottom: 18px;
}

.monetization-step-content {
  animation: fadeIn 0.2s ease;
}

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

/* ============================================
   CREATOR STUDIO UI REFINEMENTS 2026-01-16
   (Extracted from inline styles)
   ============================================ */

/* Stats Row - Full Width Horizontal */
.stats-row-horizontal {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.stats-row-horizontal .stat-card {
  flex: 1;
  min-width: 0;
  padding: 16px 20px;
}
.stats-row-horizontal .stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stats-row-horizontal .stat-value {
  font-size: 28px;
}
@media (max-width: 768px) {
  .stats-row-horizontal {
    flex-wrap: wrap;
  }
  .stats-row-horizontal .stat-card {
    flex: 1 1 calc(50% - 8px);
    min-width: calc(50% - 8px);
  }
}

/* Payout Info Modal Styles */
#payout-info-modal .modal {
  max-height: 65vh;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
}

#payout-info-modal .modal-body {
  flex: 1;
  overflow-y: auto;
}

.verification-benefits-header {
  background: var(--color-canvas-subtle, #f4f4f5);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}
.verification-benefits-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-primary, #18181b);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.verification-benefits-title svg {
  width: 24px;
  height: 24px;
  fill: #8B5CF6;
}
.verification-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.verification-benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text-secondary, #52525b);
}
.verification-benefit-item svg {
  width: 18px;
  height: 18px;
  stroke: #8B5CF6;
  flex-shrink: 0;
}
.verification-upload-section {
  padding-top: 0;
}
.verification-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  padding: 12px;
  background: var(--color-canvas-subtle, #f4f4f5);
  border-radius: 8px;
}
.verification-checkbox-row input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: #8B5CF6;
}
.verification-checkbox-label {
  font-size: 13px;
  color: var(--color-text-secondary, #52525b);
  line-height: 1.4;
}

/* Earnings Card - Turquoise Theme (Redesigned 2026-01-23) */
.earnings-card {
  background: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%) !important;
  border-radius: 16px;
  padding: 24px;
  color: white;
}
.earnings-card .earnings-label {
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.earnings-card .earnings-value {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0;
}
.earnings-card .earnings-divider {
  height: 1px;
  background: rgba(255,255,255,0.25);
  margin: 16px 0;
}
.earnings-card .earnings-stats-row {
  display: flex;
  gap: 32px;
  margin-bottom: 20px;
}
.earnings-card .earnings-stat {
  flex: 1;
}
.earnings-card .earnings-stat-label {
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 4px;
}
.earnings-card .earnings-stat-value {
  color: white;
  font-size: 16px;
  font-weight: 600;
}
.earnings-card .earnings-actions {
  margin-bottom: 16px;
}
.earnings-card .earnings-btn {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  width: 100%;
}
.earnings-card .earnings-btn:hover:not(.disabled) {
  background: rgba(255,255,255,0.3);
}
.earnings-card .earnings-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(255,255,255,0.1);
}
.earnings-card .earnings-footer {
  text-align: center;
  font-size: 12px;
}
.earnings-card .earnings-footer-link {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.15s;
}
.earnings-card .earnings-footer-link:hover {
  color: white;
  text-decoration: underline;
}
.earnings-card .earnings-footer-dot {
  color: rgba(255,255,255,0.5);
  margin: 0 8px;
}

/* Free Distribution Card - Purple Accent */
.free-distribution-card {
  background: var(--color-canvas-default, #fff);
  border: 1px solid var(--color-border-default, #e4e4e7);
  border-left: 4px solid #8B5CF6;
  border-radius: 16px;
  padding: 20px;
  margin-top: 20px;
}
.free-distribution-card .section-title {
  color: #8B5CF6;
}
.free-stickers-copy {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-secondary, #52525b);
  margin: 0 0 20px 0;
}
.distribution-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.distribution-stat {
  text-align: center;
}
.distribution-stat-label {
  font-size: 12px;
  color: var(--color-text-muted, #71717a);
  margin-bottom: 4px;
}
.distribution-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-primary, #18181b);
}
.view-tier-details {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #8B5CF6;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 8px;
  text-decoration: none;
}
.view-tier-details:hover {
  text-decoration: underline;
}
.view-tier-details svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}
.distribution-settings {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}
.distribution-setting label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary, #18181b);
  display: block;
  margin-bottom: 8px;
}
.payment-method-status {
  padding: 12px;
  background: var(--color-canvas-subtle, #f4f4f5);
  border-radius: 8px;
  margin-bottom: 8px;
}
.payment-none {
  color: var(--color-text-muted, #71717a);
  font-size: 14px;
}
.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

/* Inline Tier Breakdown */
.tier-breakdown-section {
  background: var(--color-canvas-subtle, #f4f4f5);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}
.tier-breakdown-header {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary, #18181b);
  margin-bottom: 8px;
}
.tier-breakdown-intro {
  font-size: 13px;
  color: var(--color-text-secondary, #52525b);
  margin: 0 0 12px 0;
  line-height: 1.4;
}
.tier-breakdown-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 12px;
}
.tier-breakdown-table th,
.tier-breakdown-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--color-border-default, #e4e4e7);
}
.tier-breakdown-table th {
  font-weight: 600;
  color: var(--color-text-muted, #71717a);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tier-breakdown-table td {
  color: var(--color-text-primary, #18181b);
}
.tier-breakdown-table tbody tr:last-child td {
  border-bottom: none;
}
.tier-breakdown-note {
  font-size: 12px;
  color: var(--color-text-muted, #71717a);
  margin: 8px 0 0 0;
  line-height: 1.4;
}

/* Spend Limit Input */
.spend-limit-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.spend-limit-prefix {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-primary, #18181b);
}
.spend-limit-input {
  width: 100px;
  padding: 10px 12px;
  border: 1px solid var(--color-border-default, #e4e4e7);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
}
.spend-limit-calc {
  margin-top: 12px;
  font-size: 13px;
  color: var(--color-text-secondary, #52525b);
  line-height: 1.6;
}
.spend-limit-calc .calc-header {
  font-weight: 600;
  color: var(--color-text-primary, #18181b);
  margin-bottom: 8px;
}
.spend-limit-calc .calc-row {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
}
.spend-limit-calc .calc-total {
  font-weight: 600;
  color: var(--color-text-primary, #18181b);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--color-border-default, #e4e4e7);
}

/* Per-sticker AI checkbox in upload queue */
.upload-item-ai-checkbox {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--color-canvas-subtle, #f4f4f5);
  margin-right: 8px;
  transition: background 0.15s;
}
.upload-item-ai-checkbox:hover {
  background: var(--color-canvas-inset, #e4e4e7);
}
.upload-item-ai-checkbox input[type="checkbox"] {
  display: none;
}
.upload-item-ai-checkbox .ai-checkbox-icon {
  width: 18px;
  height: 18px;
  color: var(--color-text-muted, #71717a);
  transition: color 0.15s;
}
.upload-item-ai-checkbox .ai-checkbox-icon svg {
  width: 100%;
  height: 100%;
}
.upload-item-ai-checkbox .ai-checkbox-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted, #71717a);
  transition: color 0.15s;
}
.upload-item-ai-checkbox input:checked ~ .ai-checkbox-icon,
.upload-item-ai-checkbox input:checked ~ .ai-checkbox-text {
  color: #8b5cf6;
}

/* "Mark all as AI" checkbox in queue header */
.ai-select-all-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--color-text-muted, #71717a);
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--color-canvas-subtle, #f4f4f5);
  margin-right: auto;
}
.ai-select-all-label:hover {
  background: var(--color-canvas-inset, #e4e4e7);
}
.ai-select-all-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #8b5cf6;
}

/* ========== AUCTIONS TAB STYLES ========== */
.auctions-tab {
  padding: 20px;
}

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

.auctions-section h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--color-text-primary);
}

.auction-eligibility {
  background: var(--color-canvas-subtle, #f4f4f5);
  border-radius: 12px;
  padding: 16px;
}

.auction-eligibility h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.eligibility-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
}

.eligibility-item.met { color: #22c55e; }
.eligibility-item.unmet { color: #ef4444; }
.eligibility-item.optional { color: #888; }

.eligibility-icon {
  width: 20px;
  text-align: center;
}

.row-eligibility {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.row-eligibility h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

.row-eligibility-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
}

.row-eligibility-item.eligible { color: #22c55e; }
.row-eligibility-item.ineligible { color: var(--color-text-muted); }

.row-reason {
  display: block;
  font-size: 12px;
  color: #888;
  margin-left: 28px;
}

.auction-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auction-card {
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 16px;
}

.auction-card.ineligible {
  opacity: 0.6;
}

.auction-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.auction-row-type {
  font-weight: 600;
  font-size: 15px;
}

.auction-metro {
  font-size: 13px;
  color: var(--color-text-muted);
}

.auction-timer {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
}

.timer-label { color: var(--color-text-muted); }
.timer-value { font-weight: 600; color: #f59e0b; }

.auction-pricing {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
}

.price-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.price-label { font-size: 12px; color: var(--color-text-muted); }
.price-value { font-size: 15px; font-weight: 600; }
.price-value.used { text-decoration: line-through; color: #888; }

.auction-bid-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.bid-amount-input {
  width: 100px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 15px;
}

.lock-in-select {
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 14px;
  background: var(--color-canvas);
}

.bid-actions {
  display: flex;
  gap: 8px;
  flex: 1;
  justify-content: flex-end;
}

.btn-bid, .btn-buy-now {
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.btn-bid {
  background: var(--color-text-primary);
  color: var(--color-text-inverse);
}

.btn-buy-now {
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
  color: white;
}

.auction-ineligible-reason {
  font-size: 13px;
  color: #888;
  padding: 10px;
  background: var(--color-canvas-subtle);
  border-radius: 8px;
}

.placements-list, .history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.placement-card, .history-card {
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 14px;
}

.placement-header, .history-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.placement-row, .history-row { font-weight: 600; }
.placement-metro, .history-metro { color: var(--color-text-muted); font-size: 13px; }
.history-date { font-size: 12px; color: #888; }

.placement-details, .history-details {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 10px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-label { font-size: 11px; color: var(--color-text-muted); text-transform: uppercase; }
.detail-value { font-size: 14px; font-weight: 600; }

.history-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}

.history-status.won { background: #dcfce7; color: #22c55e; }
.history-status.lost { background: #f4f4f5; color: #888; }

.metro-verification {
  background: var(--color-canvas-subtle, #f4f4f5);
  border-radius: 12px;
  padding: 16px;
}

.metro-verification h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.verification-note {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.current-verification {
  background: var(--color-canvas);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 16px;
}

.verification-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.verification-form.hidden { display: none; }

.verification-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.verification-form label {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.verification-form input, .verification-form select {
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 14px;
}

.verification-form .form-row {
  display: flex;
  gap: 10px;
}

.verification-form .form-row .form-group {
  flex: 1;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.4;
}

.btn-submit-verification, .btn-update-verification {
  padding: 12px 20px;
  background: var(--color-text-primary);
  color: var(--color-text-inverse);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.auctions-empty, .placements-empty, .history-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--color-text-muted);
  font-size: 14px;
}

/* ============================================
   ONBOARDING PANEL
   Matches styling from 002-join.html (normal signup)
   ============================================ */

.onboarding-container {
  max-width: 400px;
  margin: 0 auto;
  padding: 8px 24px 16px;
}

.onboarding-header {
  text-align: center;
  margin-bottom: 12px;
}

.onboarding-header h1 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0;
}

.onboarding-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.onboarding-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

/* Profile photo + name row - matches 002-join.html */
.onboarding-form .profile-name-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
  width: 100%;
  box-sizing: border-box;
}

.onboarding-form .profile-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.onboarding-form .profile-name-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 27px;
  min-width: 0;
}

.onboarding-form .profile-preview {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--color-canvas-subtle);
  border: 2px dashed var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s ease;
  position: relative;
}

.onboarding-form .profile-preview:hover {
  border-color: var(--color-turquoise);
}

.onboarding-form .profile-preview.has-image {
  border-style: solid;
}

.onboarding-form .profile-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.onboarding-form .profile-preview-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.onboarding-form .profile-preview-placeholder svg {
  width: 40px;
  height: 40px;
  color: var(--color-text-muted);
}

.onboarding-form .profile-upload-btn {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-turquoise);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-primary);
  padding: 0;
}

.onboarding-form .profile-upload-btn:hover {
  color: var(--color-turquoise-dark);
}

/* Field inputs - matches 002-join.html */
.onboarding-form .field-input {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-family: var(--font-primary);
  font-size: 15px;
  line-height: 1.2;
  background: var(--color-canvas-default);
  color: var(--color-text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.onboarding-form .field-input::placeholder {
  color: #888;
}

.onboarding-form .field-input--centered {
  text-align: center;
}

.onboarding-form .field-input:focus {
  outline: none;
  border-color: var(--color-turquoise);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}

/* Password rules - two line layout */
.onboarding-form .password-rules-two-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

.onboarding-form .password-rules-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0;
}

.onboarding-form .password-rules-row .password-rule {
  font-size: 11px;
  white-space: nowrap;
  padding: 0 6px;
  position: relative;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.onboarding-form .password-rules-row .password-rule:not(:last-child)::after {
  content: '\2022';
  position: absolute;
  right: -4px;
  color: var(--color-text-subtle);
}

.onboarding-form .password-rules-row .password-rule.met {
  color: var(--color-turquoise);
}

/* Terms row - centered */
.onboarding-form .terms-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  margin-top: 4px;
}

.onboarding-form .terms-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--color-turquoise);
}

.onboarding-form .terms-row label {
  text-align: center;
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

.onboarding-form .terms-row a {
  color: var(--color-turquoise);
  text-decoration: none;
}

.onboarding-form .terms-row a:hover {
  text-decoration: underline;
}

/* Revenue info box */
.onboarding-info {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.1), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-primary);
  margin-top: 4px;
}

.onboarding-info strong {
  color: var(--color-turquoise);
}

/* Select dropdown - same height as inputs */
.onboarding-form select.field-input {
  height: 44px;
  padding: 0 16px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

/* Submit button - uses shared btn btn-primary from stickerbook.css */
.onboarding-form .btn {
  margin-top: 8px;
}

/* ========== WAITLIST FORM ========== */
.waitlist-section {
  display: none;
  animation: waitlistFadeIn 0.3s ease;
}

@keyframes waitlistFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.waitlist-message {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.1));
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
  text-align: center;
}

.waitlist-message p {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin: 0 0 8px 0;
  line-height: 1.5;
}

.waitlist-message p:last-child {
  margin-bottom: 0;
}

.waitlist-message strong {
  color: var(--color-text-primary);
  font-weight: 600;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.waitlist-form .field-input {
  text-align: left;
}

.waitlist-success {
  text-align: center;
  padding: 24px 16px;
  animation: waitlistFadeIn 0.3s ease;
}

.waitlist-success .success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.15), rgba(34, 197, 94, 0.15));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.waitlist-success .success-icon svg {
  width: 32px;
  height: 32px;
  color: var(--color-turquoise);
}

.waitlist-success h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 8px 0;
}

.waitlist-success p {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* ========== APP DOWNLOAD SECTION ========== */
/* Shown for Individual Artists and Personal Brands */
.app-download-section {
  display: none;
  text-align: center;
  padding: 24px 16px;
  animation: waitlistFadeIn 0.3s ease;
}

.app-download-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.15), rgba(45, 212, 191, 0.15));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-download-icon svg {
  width: 32px;
  height: 32px;
  color: var(--color-purple);
}

.app-download-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 12px 0;
}

.app-download-text {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0 0 20px 0;
}

.app-download-text strong {
  color: var(--color-text-primary);
  font-weight: 600;
}

.app-download-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.app-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

.app-download-btn svg {
  flex-shrink: 0;
}

.app-download-btn.btn-primary {
  background: var(--gradient-accent);
  color: white;
  border: none;
}

.app-download-btn.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.app-download-btn.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

.app-download-btn.btn-secondary:hover {
  background: var(--color-canvas-subtle);
  border-color: var(--color-text-muted);
}

.app-download-hint {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.4;
}

/* Desktop: side-by-side buttons */
@media (min-width: 480px) {
  .app-download-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .app-download-btn {
    flex: 0 1 auto;
    min-width: 180px;
  }
}

/* Upload cap styles */
.cap-upgrade {
  display: block;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.cap-upgrade a {
  color: var(--color-turquoise);
  text-decoration: none;
  font-weight: 500;
}

.cap-upgrade a:hover {
  text-decoration: underline;
}

/* Web signup link */
.web-signup-link {
  text-align: center;
  margin-top: 16px;
}

.web-signup-link a {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-turquoise);
  text-decoration: underline;
}

.web-signup-link a:hover {
  color: var(--color-turquoise-dark);
}

/* Email verification pending screen */
.email-verification-pending {
  text-align: center;
  padding: 40px 24px;
}

.email-verification-pending .verification-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.15), rgba(139, 92, 246, 0.15));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.email-verification-pending .verification-icon svg {
  width: 40px;
  height: 40px;
  color: var(--color-turquoise);
}

.email-verification-pending h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 12px 0;
}

.email-verification-pending p {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin: 0 0 8px 0;
  line-height: 1.5;
}

.email-verification-pending p strong {
  color: var(--color-text-primary);
}

.email-verification-pending .verification-hint {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.email-verification-pending .btn {
  margin-bottom: 16px;
}

.email-verification-pending .verification-back-link {
  display: block;
  background: none;
  border: none;
  font-size: 13px;
  color: var(--color-text-muted);
  cursor: pointer;
  font-family: var(--font-primary);
}

.email-verification-pending .verification-back-link:hover {
  color: var(--color-turquoise);
}

/* ============================================
   JOIN MODAL (Quick signup for logged-in users)
   ============================================ */

.join-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.join-modal-overlay.visible {
  display: flex;
}

.join-modal {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 24px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.join-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.join-modal-close:hover {
  color: var(--color-text-primary);
}

.join-modal-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 12px 0;
}

.join-modal-description {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-turquoise);
  margin: 0 0 24px 0;
}

.join-modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.join-modal-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-align: center;
}

.entity-type-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.entity-type-pill {
  padding: 10px 16px;
  background: var(--color-canvas-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-family: var(--font-primary);
  font-size: 14px;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.entity-type-pill:hover {
  border-color: var(--color-turquoise);
  color: var(--color-text-primary);
}

.entity-type-pill.selected {
  background: var(--color-canvas-subtle);
  border: 2px solid var(--color-purple);
  color: var(--color-purple);
  font-weight: 600;
}

.join-modal-submit {
  margin-top: 8px;
}

.join-modal-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.join-modal-terms-text {
  font-size: 12px;
  color: var(--color-text-muted);
  margin: 4px 0 0 0;
  text-align: center;
}

.join-modal-terms-text a {
  color: var(--color-turquoise);
  text-decoration: none;
}

.join-modal-terms-text a:hover {
  text-decoration: underline;
}

/* ============================================
   CROP MODAL
   Matches styling from 002-join.html (normal signup)
   ============================================ */

.crop-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: calc(60px + env(safe-area-inset-top, 0px));
  padding-bottom: env(safe-area-inset-bottom, 20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.crop-modal.visible {
  opacity: 1;
  visibility: visible;
}

.crop-modal-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  padding-top: calc(16px + env(safe-area-inset-top, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.crop-modal-title {
  font-size: 14px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.02em;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.crop-modal-cancel {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font-primary);
  padding: 8px 12px;
}

.crop-modal-cancel:hover {
  color: white;
}

.crop-container {
  position: relative;
  width: 280px;
  height: 280px;
  overflow: hidden;
  touch-action: none;
  border-radius: 50%;
  border: 2px solid white;
}

.crop-image {
  position: absolute;
  transform-origin: 0 0;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
  z-index: 1;
}

.crop-image:active {
  cursor: grabbing;
}

.crop-overlay {
  display: none;
}

.crop-circle {
  display: none;
}

.crop-hint {
  display: none;
}

.crop-modal-footer {
  position: relative;
  margin-top: 24px;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  z-index: 10;
}

.crop-confirm-btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 12px 40px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--shadow-button);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-family: var(--font-primary);
}

.crop-confirm-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-button-hover);
}

.crop-confirm-btn:active {
  transform: translateY(1px);
}

.crop-zoom-controls {
  display: none;
}

.crop-zoom-btn {
  display: none;
}

.crop-zoom-label {
  display: none;
}

/* ========== MANAGE TABS ========== */
.manage-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

/* When manage-tabs is direct child of studio-panel (outside scroll area) */
.studio-panel > .manage-tabs {
  margin-bottom: 0;
  flex-shrink: 0;
}

.manage-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease;
}

.manage-tab:hover {
  color: var(--color-text-primary);
}

.manage-tab.active {
  color: var(--color-purple);
  font-weight: 600;
}

.manage-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-purple);
  border-radius: 2px 2px 0 0;
}

/* ========== ACTION CARDS ========== */
.action-card {
  background: var(--color-canvas-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px dashed var(--color-border);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  aspect-ratio: 9 / 16;
  padding: 16px;
}

.action-card:hover {
  background: var(--color-canvas-subtle);
  border-color: var(--color-purple);
}

.action-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(109, 40, 217, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-purple);
}

.action-card__icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.action-card__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  text-align: center;
}

/* ========== UNIFIED FILTER BAR ========== */
/* .cs-filter-* prefix to avoid stickerbook.css conflicts */

.cs-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border, #e4e4e7);
  flex-shrink: 0;
}

.cs-filter-chip-wrapper {
  position: relative;
}

/* Dropdown chip button */
.cs-filter-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--color-border, #e4e4e7);
  background: var(--color-canvas, #ffffff);
  color: var(--color-text-primary, #18181b);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.15s ease;
}

.cs-filter-chip:hover {
  background: var(--color-canvas-subtle, #fafafa);
  border-color: var(--color-turquoise, #14b8a6);
}

.cs-filter-chip.active {
  background: var(--color-purple, #6D28D9);
  border-color: var(--color-purple, #6D28D9);
  color: white;
}

.cs-filter-chip.active svg {
  stroke: white;
}

.cs-filter-chip svg {
  width: 14px;
  height: 14px;
  stroke: var(--color-text-muted, #71717a);
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

/* Dropdown panel */
.cs-filter-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 160px;
  background: var(--color-canvas, #ffffff);
  border: 1px solid var(--color-border, #e4e4e7);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  padding: 6px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.cs-filter-dropdown.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cs-filter-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 14px;
  color: var(--color-text-primary, #18181b);
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease;
}

.cs-filter-dropdown-item:hover {
  background: var(--color-canvas-subtle, #fafafa);
}

.cs-filter-dropdown-item.selected {
  color: var(--color-purple, #6D28D9);
  font-weight: 600;
}

.cs-filter-dropdown-item.selected::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-purple, #6D28D9);
  margin-right: 4px;
}

/* Search icon button (collapsed state) */
.cs-filter-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border, #e4e4e7);
  background: var(--color-canvas, #ffffff);
  color: var(--color-text-muted, #71717a);
  cursor: pointer;
  margin-left: auto;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.15s ease;
}

.cs-filter-search-btn:hover {
  background: var(--color-canvas-subtle, #fafafa);
  border-color: var(--color-turquoise, #14b8a6);
}

.cs-filter-search-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Search input (expanded state) */
.cs-filter-search-expanded {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  padding: 0 12px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--color-purple, #6D28D9);
  background: var(--color-canvas, #ffffff);
}

.cs-filter-search-expanded svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-text-muted, #71717a);
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

.cs-filter-search-expanded input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--color-text-primary, #18181b);
  outline: none;
}

.cs-filter-search-expanded input::placeholder {
  color: var(--color-text-muted, #71717a);
}

.cs-filter-search-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: var(--color-canvas-subtle, #fafafa);
  color: var(--color-text-muted, #71717a);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.cs-filter-search-close:hover {
  background: var(--color-canvas-inset, #f4f4f5);
}

.cs-filter-search-close svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Hide elements based on search state */
.cs-filter-bar.search-expanded .cs-filter-chip,
.cs-filter-bar.search-expanded .cs-filter-search-btn {
  display: none;
}

.cs-filter-bar:not(.search-expanded) .cs-filter-search-expanded {
  display: none;
}

/* Dropdown backdrop (for closing dropdowns) */
.cs-filter-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: none;
}

.cs-filter-backdrop.visible {
  display: block;
}

/* ========== INFINITE SCROLL LOADER ========== */
.infinite-scroll-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  color: var(--color-text-muted, #71717a);
  font-size: 14px;
}

.infinite-scroll-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--color-border, #e4e4e7);
  border-top-color: var(--color-purple, #6D28D9);
  border-radius: 50%;
  animation: infiniteScrollSpin 0.8s linear infinite;
}

@keyframes infiniteScrollSpin {
  to { transform: rotate(360deg); }
}

/* ========== TABLE FILTERS (ROW 1) ========== */
.table-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.table-filters input {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  font-size: 13px;
  font-family: var(--font-primary);
  color: var(--color-text-primary);
  background: var(--color-canvas-subtle);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.2s ease;
}

.table-filters input:focus {
  border-color: var(--color-turquoise);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
  background: var(--color-canvas);
}

.table-filters input::placeholder {
  color: var(--color-text-muted);
}

.filter-select {
  padding: 10px 32px 10px 14px;
  font-size: 13px;
  font-family: var(--font-primary);
  color: var(--color-text-primary);
  background: var(--color-canvas-subtle);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.2s ease;
  min-width: 160px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px;
}

.filter-select:hover {
  border-color: var(--color-turquoise);
}

.filter-select:focus {
  border-color: var(--color-turquoise);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
  background-color: var(--color-canvas);
}

/* ========== VIEW CONTROLS ROW (ROW 2) ========== */
.view-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.view-controls-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sticker-count {
  font-size: 14px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* ========== VIEW TOGGLE ========== */
.view-toggle {
  display: flex;
  gap: 4px;
  background: var(--color-canvas-subtle);
  border-radius: var(--radius-md);
  padding: 4px;
  border: 1px solid var(--color-border);
  margin-right: 8px;
}

.view-toggle-btn {
  background: transparent;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
}

.view-toggle-btn:hover {
  background: var(--color-canvas-elevated);
  color: var(--color-text-primary);
}

.view-toggle-btn.active {
  background: var(--color-purple);
  color: white;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(109, 40, 217, 0.3);
}

.view-toggle-btn svg {
  width: 16px;
  height: 16px;
}

/* ========== ITEMS PER PAGE SELECT ========== */
.items-per-page-select {
  padding: 8px 32px 8px 12px;
  font-size: 13px;
  font-family: var(--font-primary);
  color: var(--color-text-primary);
  background: var(--color-canvas-subtle);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.2s ease;
  cursor: pointer;
  min-width: 130px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px;
}

.items-per-page-select:hover {
  border-color: var(--color-turquoise);
}

.items-per-page-select:focus {
  border-color: var(--color-turquoise);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

/* ========== GRID SIZE TOGGLE ========== */
.grid-size-toggle {
  display: flex;
  gap: 4px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-left: 8px;
}

.grid-size-toggle button {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.grid-size-toggle button:hover {
  background: var(--color-canvas-subtle);
  color: var(--color-text-primary);
}

.grid-size-toggle button.active {
  background: var(--color-purple);
  color: white;
  font-weight: 600;
}

/* ========== NO RESULTS STATE ========== */
.no-results-state {
  text-align: center;
  padding: 60px 20px;
}

.no-results-icon {
  margin-bottom: 16px;
  color: var(--color-text-muted);
}

.no-results-icon svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.no-results-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.no-results-text {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ========== PAGINATION ========== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 20px 0;
  padding: 16px 0;
}

.pagination button {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-primary);
  color: var(--color-text-secondary);
  background: var(--color-canvas);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination button:hover:not(:disabled) {
  background: var(--color-canvas-subtle);
  border-color: var(--color-border-strong);
}

.pagination button.active {
  background: var(--color-turquoise);
  color: white;
  border-color: var(--color-turquoise);
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-info {
  padding: 0 8px;
  color: var(--color-text-muted);
  font-size: 13px;
}

/* ========== CARD GRID (GRID VIEW) ========== */
/* Exact copy from in-app studio-my-stickers.css */

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

@media (min-width: 480px) {
  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* ========== CARD ========== */

.card {
  background: var(--color-canvas, #ffffff);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border, #e4e4e7);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  aspect-ratio: 9 / 16;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.card:active {
  transform: scale(0.97);
}

.card-image {
  position: relative;
  flex: 1;
  min-height: 0;
  background: var(--color-canvas-subtle, #fafafa);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.card-info {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-primary, #18181b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-price {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted, #71717a);
}

.card-price.free {
  color: var(--color-turquoise, #14B8A6);
}

/* ========== COIN PRICE BADGE (bottom-right of image) ========== */

.card-price-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.95);
  padding: 3px 6px;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.card-coin-icon {
  width: 14px;
  height: 14px;
  background: url('../assets/stickerbook_coin_primary.png') center/contain no-repeat;
  flex-shrink: 0;
}

.card-coin-amount {
  font-size: 11px;
  font-weight: 700;
  color: #333;
  line-height: 1;
}

/* ========== CARD CHECKBOX (for multi-select mode) ========== */

.card-checkbox {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--color-border, #e4e4e7);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 2;
  cursor: pointer;
}

/* SVG checkmark icon - hidden by default, shown when card is selected */
.card-checkbox-icon {
  width: 14px;
  height: 14px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

/* ========== MULTI-SELECT MODE ========== */

/* Show checkboxes when multi-select mode is active */
.multi-select-active .card-checkbox {
  opacity: 1;
  pointer-events: auto;
}

/* Cards are clickable for selection in multi-select mode */
.multi-select-active .card,
.multi-select-active .sheet-card {
  cursor: pointer;
}

/* Selected card highlight */
.card.selected {
  border-color: var(--color-turquoise, #14b8a6);
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.25);
}

/* Sheet card selected - apply to preview container which has the border */
.sheet-card.selected .sheet-card__preview {
  border-color: var(--color-turquoise, #14b8a6);
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.25);
}

.card.selected .card-checkbox,
.sheet-card.selected .card-checkbox {
  border-color: var(--color-turquoise, #14b8a6);
  background: var(--color-turquoise, #14b8a6);
}

/* Show checkmark icon when card is selected */
.card.selected .card-checkbox-icon,
.sheet-card.selected .card-checkbox-icon {
  opacity: 1;
}

/* Long press visual feedback animation */
.card.long-press-feedback,
.sheet-card.long-press-feedback {
  animation: longPressScale 0.2s ease-out;
}

@keyframes longPressScale {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

/* Hover effects only on devices that support hover */
@media (hover: hover) {
  .card:hover .card-checkbox,
  .sheet-card:hover .card-checkbox {
    opacity: 1;
    pointer-events: auto;
  }

  .card:hover {
    border-color: var(--color-turquoise, #14b8a6);
  }

  .sheet-card:hover .sheet-card__preview {
    border-color: var(--color-turquoise, #14b8a6);
  }
}

/* ============================================
   MULTI-SELECT TOOLBAR
   ============================================ */
.multi-select-toolbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--color-border, #e5e7eb);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.2s ease;
}

.multi-select-toolbar.visible {
  transform: translateY(0);
}

.multi-select-toolbar__left {
  display: flex;
  align-items: center;
}

.multi-select-toolbar__count {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary, #18181b);
}

.multi-select-toolbar__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.multi-select-toolbar__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--color-border, #e5e7eb);
  background: #fff;
  color: var(--color-text-primary, #18181b);
  transition: all 0.15s ease;
}

.multi-select-toolbar__btn:hover {
  background: var(--color-bg-hover, #f4f4f5);
}

.multi-select-toolbar__btn--status {
  position: relative;
}

.multi-select-toolbar__btn--delete {
  color: #dc2626;
  border-color: rgba(220, 38, 38, 0.3);
}

.multi-select-toolbar__btn--delete:hover {
  background: rgba(220, 38, 38, 0.08);
  border-color: #dc2626;
}

.multi-select-toolbar__btn--cancel {
  background: transparent;
  border-color: transparent;
  color: var(--color-text-secondary, #71717a);
}

.multi-select-toolbar__btn--cancel:hover {
  background: var(--color-bg-hover, #f4f4f5);
}

/* Status dropdown */
.multi-select-toolbar__status-dropdown {
  position: relative;
}

.multi-select-toolbar__dropdown {
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 4px;
  background: #fff;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.15s ease;
}

.multi-select-toolbar__dropdown.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.multi-select-toolbar__dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 14px;
  text-align: left;
  font-size: 14px;
  color: var(--color-text-primary, #18181b);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.1s ease;
}

.multi-select-toolbar__dropdown-item:first-child {
  border-radius: 7px 7px 0 0;
}

.multi-select-toolbar__dropdown-item:last-child {
  border-radius: 0 0 7px 7px;
}

.multi-select-toolbar__dropdown-item:hover {
  background: var(--color-bg-hover, #f4f4f5);
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .multi-select-toolbar {
    padding: 10px 16px;
  }

  .multi-select-toolbar__btn {
    padding: 8px 12px;
    font-size: 13px;
  }

  .multi-select-toolbar__count {
    font-size: 13px;
  }
}

/* Disabled tier options */
.tier-option.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Status toggle button */
.status-toggle-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.15s ease;
  border: 1px solid var(--color-border);
  background: var(--color-canvas);
  color: var(--color-text-primary);
}

.status-toggle-btn:hover {
  background: var(--color-canvas-subtle);
}

/* Active state (green indicator) */
.status-toggle-btn .status-toggle-icon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
}

/* Inactive state (gray indicator) */
.status-toggle-btn.inactive .status-toggle-icon {
  background: #71717a;
}

/* ========== DATA TABLE (LIST VIEW) ========== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table thead {
  background: var(--color-canvas-subtle);
}

.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--color-border);
}

.data-table td {
  padding: 16px;
  border-bottom: 1px solid var(--color-border-subtle);
  color: var(--color-text-primary);
}

.data-table tbody tr:hover {
  background: var(--color-canvas-subtle);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr.selected {
  background: rgba(20, 184, 166, 0.05);
}

.data-table .checkbox-cell {
  width: 40px;
  text-align: center;
  padding: 16px 8px;
}

.data-table .checkbox-cell input[type="checkbox"],
.data-table th input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--color-turquoise);
}

.data-table .w-40 {
  width: 40px;
}

.data-table .user-name {
  font-weight: 500;
  color: var(--color-text-primary);
}

.data-table .actions {
  white-space: nowrap;
}

.data-table .actions .btn {
  margin-right: 8px;
}

.data-table .actions .btn:last-child {
  margin-right: 0;
}

/* Status badges */
.status {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-transform: capitalize;
}

.status.live {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.status.pending,
.status.under_review {
  background: rgba(234, 179, 8, 0.1);
  color: #b45309;
}

.status.rejected {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.status.restricted {
  background: rgba(139, 92, 246, 0.1);
  color: #7c3aed;
}

.status.archived {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}

/* Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-primary);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-small {
  padding: 5px 10px;
  font-size: 12px;
}

.btn-secondary {
  background: var(--color-canvas-subtle);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-canvas-inset);
  border-color: var(--color-border-strong);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
  background: #dc2626;
  color: white;
  border-color: #dc2626;
}

/* ========== TAG INPUT (PILL UI) ========== */
.tag-input-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--color-canvas-subtle);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  min-height: 42px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tag-input-container:focus-within {
  border-color: var(--color-turquoise);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--color-purple);
  color: white;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.tag-pill-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  font-size: 10px;
  line-height: 1;
  transition: background 0.15s ease;
}

.tag-pill-remove:hover {
  background: rgba(255, 255, 255, 0.4);
}

.tag-input {
  flex: 1;
  min-width: 80px;
  padding: 4px 0;
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: var(--color-text-primary);
}

.tag-input::placeholder {
  color: var(--color-text-muted);
}

/* ========== LIST VIEW ACTION BUTTONS ========== */
.data-table .actions {
  white-space: nowrap;
  display: flex;
  gap: 6px;
}

.data-table .actions .btn {
  padding: 4px 10px;
  font-size: 12px;
  margin-right: 0;
}

/* ========== PRICE TIER OPTION SELECTED STATE ========== */
.tier-option:has(input:checked) {
  border-color: var(--color-purple);
  background: rgba(109, 40, 217, 0.08);
}

/* ========== PRICE BADGE (purple pill) ========== */
.price-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-purple);
  color: white;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-primary);
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
}

/* Single digit gets circle shape */
.price-badge.circle {
  width: 20px;
  min-width: 20px;
  padding: 0;
  border-radius: 50%;
}

/* Free badge - green */
.price-badge.free {
  background: var(--color-success, #10b981);
}

/* Larger size for modals */
.price-badge.price-lg {
  font-size: 14px;
  min-width: 28px;
  height: 28px;
  padding: 0 10px;
  border-radius: 14px;
}

.price-badge.price-lg.circle {
  width: 28px;
  min-width: 28px;
  padding: 0;
}

/* ========== FILTER SEARCH INPUT ========== */
.filter-search {
  flex: 0 0 auto !important;
  min-width: 160px !important;
  width: 160px !important;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

@media (max-width: 900px) {
  .table-filters {
    flex-direction: column;
  }
  .table-filters input {
    min-width: 100%;
  }
  .view-controls-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .data-table th:nth-child(4),
  .data-table td:nth-child(4),
  .data-table th:nth-child(6),
  .data-table td:nth-child(6) {
    display: none;
  }

  /* Mobile: keep checkbox hidden until multi-select mode */
  .card-checkbox {
    opacity: 0;
  }
  /* Mobile: show checkboxes in multi-select mode */
  .multi-select-active .card-checkbox {
    opacity: 1;
  }
}

/* Status Badge */
.status-badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-transform: capitalize;
}

.status-badge.status-live {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success, #10b981);
}

.status-badge.status-pending,
.status-badge.status-under_review {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.status-badge.status-rejected {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-danger, #ef4444);
}

.status-badge.status-restricted {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

/* ========== TOAST ANIMATIONS ========== */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* ========== DANGER BUTTON ========== */
.btn-danger {
  background: var(--color-danger, #ef4444);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

/* ========== UPDATE NOTIFICATION MODAL ========== */
.update-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.update-modal {
  background: var(--color-canvas, white);
  border-radius: 16px;
  max-width: 480px;
  width: 90%;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.update-modal-header {
  text-align: center;
  margin-bottom: 16px;
}

.update-modal-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text-primary, #1a1a1a);
}

.update-modal-body {
  text-align: center;
  margin-bottom: 28px;
}

.update-modal-body p {
  margin: 0 0 16px 0;
  color: var(--color-text-secondary, #666);
  line-height: 1.6;
  font-size: 15px;
}

.update-modal-body a {
  color: var(--color-purple, #7c3aed);
  text-decoration: none;
  font-weight: 500;
}

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

.update-modal-footer {
  display: flex;
  justify-content: center;
}

.update-modal-footer .btn {
  min-width: 120px;
}

/* ========== NAV CARDS RESPONSIVE ========== */
@media (max-width: 768px) {
  /* Mobile nav-cards: collapsed by default, expanded when .expanded class present */
  .nav-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 0 16px;
    /* Collapse styles - must be here (after all other nav-cards rules) to take effect */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-bottom 0.3s ease, padding 0.3s ease;
  }

  /* Expanded state */
  .nav-cards.expanded {
    max-height: 500px;
    opacity: 1;
    margin-bottom: 16px;
    padding: 0; /* Keep padding 0, gap handles spacing */
  }

  .nav-card {
    padding: 16px 12px;
  }

  .nav-card-title {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .nav-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .nav-cards.expanded {
    max-height: 600px; /* Taller for single column layout */
  }

  .nav-card {
    padding: 14px 12px;
  }
}

/* ========== EARNINGS PANEL LAYOUT ========== */
.earnings-panel-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 600px;
}

.earnings-breakdown-card,
.payout-history-card {
  background: var(--color-canvas-elevated, white);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 12px;
  padding: 24px;
}

.earnings-breakdown-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.breakdown-label {
  color: var(--color-text-secondary, #666);
}

.breakdown-value {
  font-weight: 600;
  color: var(--color-text-primary, #18181b);
}

.breakdown-value.negative {
  color: var(--color-error, #dc2626);
}

.breakdown-divider {
  height: 1px;
  background: var(--color-border, #e5e7eb);
  margin: 8px 0;
}

.breakdown-row.total .breakdown-label {
  font-weight: 600;
  color: var(--color-text-primary, #18181b);
}

.breakdown-row.total .breakdown-value {
  font-size: 16px;
}

.payout-history-content {
  min-height: 100px;
}

.empty-state-small {
  padding: 24px;
  text-align: center;
  color: var(--color-text-muted, #999);
  font-size: 14px;
}

/* ========== ANALYTICS PANEL ========== */
.analytics-main-section {
  background: var(--color-canvas-elevated, white);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
}

/* Promotional panel - free distribution card adjustments */
#panel-promotional .free-distribution-card {
  max-width: 800px;
  border: none;
  background: transparent;
  padding: 0;
}

/* ============================================================
   SIGNUP/ONBOARDING STYLES (extracted from index.html inline)
   ============================================================ */

/* ========== HEADER (Signup View) ========== */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 61px; /* 1px overlap to prevent seam artifact */
  background: var(--color-canvas);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 0 16px;
}

.header-logo {
  height: 28px;
  width: auto;
}

/* ========== BUTTONS (Base styles) ========== */
.btn {
  width: 100%;
  border-radius: var(--radius-pill);
  border: none;
  padding: 14px 28px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-button-hover);
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-button-active);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
  background: var(--color-border-strong);
  color: var(--color-text-subtle);
  transform: none;
}

.btn-secondary {
  background: var(--color-canvas);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-strong);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--color-canvas-subtle);
}

/* ========== OAUTH BUTTONS ========== */
.oauth-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.btn-oauth {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--color-border);
}

.btn-oauth svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-google {
  background: #ffffff;
  color: var(--color-text-primary);
}

.btn-google:hover {
  background: #f8f8f8;
  border-color: var(--color-border-strong);
}

.btn-apple {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.btn-apple:hover {
  background: #1a1a1a;
}

.btn-oauth:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========== ONBOARDING DIVIDER ========== */
.onboarding-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 4px 0 16px;
}

.onboarding-divider::before,
.onboarding-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.onboarding-divider span {
  font-size: 12px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========== OAUTH WELCOME MESSAGE ========== */
.oauth-welcome {
  background: var(--color-canvas-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
  text-align: center;
}

.oauth-welcome p {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin: 0;
}

.oauth-welcome strong {
  color: var(--color-text-primary);
}

/* ========== BECOME A CREATOR (Session Bridge Flow) ========== */
.become-creator-container {
  max-width: 400px;
  margin: 0 auto;
  padding: 32px 24px;
  text-align: center;
}

.become-creator-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: var(--color-canvas-subtle);
  overflow: hidden;
  border: 3px solid var(--color-border);
}

.become-creator-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.become-creator-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: white;
  font-size: 36px;
  font-weight: 600;
}

.become-creator-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 8px;
}

.become-creator-welcome {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0 0 24px;
}

.become-creator-description {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0 0 32px;
  padding: 16px;
  background: var(--color-canvas-subtle);
  border-radius: var(--radius-md);
}

.become-creator-btn {
  width: 100%;
  padding: 16px 32px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--shadow-button);
  transition: all 0.2s ease;
}

.become-creator-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-button-hover);
}

.become-creator-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.become-creator-terms {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 16px;
}

.become-creator-terms a {
  color: var(--color-turquoise);
  text-decoration: none;
}

.become-creator-terms a:hover {
  text-decoration: underline;
}

.become-creator-cancel {
  display: inline-block;
  margin-top: 20px;
  font-size: 13px;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

.become-creator-cancel:hover {
  color: var(--color-text-secondary);
}

.become-creator-error {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--color-error);
  display: none;
}

.become-creator-error.visible {
  display: block;
}

/* ========== SIGNUP VIEW OVERRIDES ========== */
#signup-view .studio-panel {
  display: block;
  overflow-y: auto;
}

/* Screen reader only - visually hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Revenue info box */
.onboarding-info {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.1), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

.onboarding-info strong {
  color: var(--color-turquoise);
}

.onboarding-info .info-link {
  color: var(--color-turquoise);
  text-decoration: none;
  font-weight: 600;
}

.onboarding-info .info-link:hover {
  text-decoration: underline;
}

/* Submit button spacing */
.onboarding-form .btn {
  margin-top: 8px;
}

/* Terms text below button */
.onboarding-form .terms-text {
  text-align: center;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 12px;
}

.onboarding-form .terms-text a {
  color: var(--color-turquoise);
  text-decoration: none;
}

.onboarding-form .terms-text a:hover {
  text-decoration: underline;
}

/* ========== EMAIL VERIFICATION ========== */
.email-verification-pending {
  text-align: center;
  padding: 40px 24px;
  display: none;
}

.email-verification-pending.visible {
  display: block;
}

.email-verification-pending .verification-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.15), rgba(139, 92, 246, 0.15));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.email-verification-pending .verification-icon svg {
  width: 40px;
  height: 40px;
  color: var(--color-turquoise);
}

.email-verification-pending h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 12px 0;
}

.email-verification-pending p {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin: 0 0 8px 0;
  line-height: 1.5;
}

.email-verification-pending p strong {
  color: var(--color-text-primary);
}

.email-verification-pending .verification-hint {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.email-verification-pending .btn {
  margin-bottom: 16px;
}

.email-verification-pending .verification-back-link {
  display: block;
  background: none;
  border: none;
  font-size: 13px;
  color: var(--color-text-muted);
  cursor: pointer;
  font-family: var(--font-primary);
}

.email-verification-pending .verification-back-link:hover {
  color: var(--color-turquoise);
}

/* ========== CROP MODAL ========== */
.crop-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 20px;
}

.crop-modal.visible {
  display: flex;
}

.crop-modal-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.crop-modal-cancel {
  background: none;
  border: none;
  color: white;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 12px;
  font-family: var(--font-primary);
}

.crop-modal-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 17px;
  font-weight: 600;
}

.crop-container {
  width: 280px;
  height: 280px;
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  background: #333;
  cursor: grab;
}

.crop-container:active {
  cursor: grabbing;
}

.crop-image {
  position: absolute;
  top: 0;
  left: 0;
  user-select: none;
  -webkit-user-drag: none;
}

.crop-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.crop-circle {
  width: 100%;
  height: 100%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}

.crop-zoom-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}

.crop-zoom-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.crop-zoom-btn:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
}

.crop-zoom-label {
  color: white;
  font-size: 15px;
  min-width: 50px;
  text-align: center;
}

.crop-hint {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  margin-top: 16px;
  text-align: center;
}

.crop-modal-footer {
  margin-top: 32px;
}

.crop-confirm-btn {
  padding: 14px 48px;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius-pill);
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-button);
  transition: all 0.2s;
}

.crop-confirm-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-button-hover);
}

/* ========== VIEW CONTAINERS ========== */
#signup-view {
  display: block;
  height: 100%;
  overflow-y: auto;
}

#dashboard-view {
  display: none;
  height: 100%;
}

body.authenticated #signup-view {
  display: none;
}

body.authenticated #dashboard-view {
  display: flex;
  flex-direction: column;
}

/* ========== AUTH LOADING STATE ========== */
.auth-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: var(--color-canvas);
}

.auth-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-turquoise);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ========== DASHBOARD HEADER ========== */
.dashboard-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--color-canvas);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
}

.dashboard-header-logo {
  height: 28px;
}

.dashboard-header-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-canvas-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

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

.dashboard-avatar svg {
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
}

.dashboard-logout {
  background: none;
  border: 1px solid var(--color-border);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.dashboard-logout:hover {
  border-color: var(--color-error);
  color: var(--color-error);
}

/* ========== DASHBOARD TABS ========== */
.dashboard-tabs {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  height: 48px;
  background: var(--color-canvas);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 8px;
  z-index: 99;
  overflow-x: auto;
}

.dashboard-tab {
  padding: 12px 20px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: all 0.2s;
}

.dashboard-tab:hover {
  color: var(--color-text-primary);
  background: var(--color-canvas-subtle);
}

.dashboard-tab.active {
  color: var(--color-purple);
  background: rgba(109, 40, 217, 0.1);
}

/* ========== DASHBOARD CONTENT ========== */
.dashboard-content {
  flex: 1;
  margin-top: 108px;
  padding: 24px;
  overflow-y: auto;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.dashboard-panel {
  display: none;
}

.dashboard-panel.active {
  display: block;
}

/* ========== STATS CARDS ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stats-row-horizontal {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .stats-row-horizontal {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .stats-row-horizontal {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.stat-card .stat-label {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.stat-card .stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.stat-card-label {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.stat-card-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text-primary);
}

/* ========== DASHBOARD SECTION ========== */
.dashboard-section {
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.dashboard-section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 16px;
}

/* ========== UPLOAD ZONE ========== */
.upload-zone {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.upload-zone:hover {
  border-color: var(--color-turquoise);
  background: rgba(20, 184, 166, 0.05);
}

.upload-zone-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--color-text-muted);
}

.upload-zone-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.upload-zone-subtitle {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ========== STICKER GRID ========== */
.sticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
}

.sticker-card {
  aspect-ratio: 1;
  background: var(--color-canvas-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sticker-card img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

/* ========== EMPTY STATE ========== */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--color-text-muted);
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  color: var(--color-text-subtle);
}

.empty-state-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.empty-state-text {
  font-size: 14px;
  margin-bottom: 24px;
}

/* ========== TOAST NOTIFICATIONS ========== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--color-text-primary);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

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

/* ========== SIGNUP/ONBOARDING RESPONSIVE ========== */
@media (min-width: 768px) {
  .onboarding-container {
    max-width: 440px;
    padding: 24px 32px;
  }

  .onboarding-header h1 {
    font-size: 26px;
  }

  .onboarding-form .profile-preview {
    width: 100px;
    height: 100px;
  }

  .onboarding-form .field-input {
    padding: 12px 20px;
    font-size: 16px;
  }

  .onboarding-form select.field-input {
    height: 48px;
  }

  .btn {
    padding: 16px 32px;
    font-size: 13px;
  }
}

/* ========== AI HELPER STYLES ========== */

/* AI Buttons - Primary */
.btn-ai {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 50%, #7C3AED 100%);
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.btn-ai:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.btn-ai:active {
  transform: translateY(0);
}

.btn-ai:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* AI Buttons - Small variant */
.btn-ai-small {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-ai-small:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-ai-small:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* AI Loading spinner */
.btn-ai .spinner,
.btn-ai-small .spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: ai-spin 0.8s linear infinite;
}

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

/* AI Badge */
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 600;
  color: #8B5CF6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* AI Suggested Field Indicator */
.ai-suggested {
  position: relative;
  border-color: rgba(139, 92, 246, 0.5) !important;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.1);
}

.ai-suggested-badge {
  position: absolute;
  top: -8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  background: linear-gradient(135deg, #8B5CF6, #A855F7);
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 600;
  color: white;
  z-index: 1;
}

/* AI Field container (for positioning badge) */
.ai-field-container {
  position: relative;
}

/* AI Search Toggle */
.ai-search-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--color-canvas-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
}

.ai-search-toggle:hover {
  border-color: rgba(139, 92, 246, 0.5);
}

.ai-search-toggle.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(168, 85, 247, 0.1));
  border-color: #8B5CF6;
}

.ai-search-toggle-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.ai-search-toggle.active .ai-search-toggle-label {
  color: #8B5CF6;
}

/* AI Search Chips */
.ai-search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(168, 85, 247, 0.05));
  border: 1px dashed rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.ai-search-chips-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ai-search-chips-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #8B5CF6;
}

.ai-search-chips-clear {
  padding: 4px 8px;
  background: transparent;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.ai-search-chips-clear:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: #8B5CF6;
  color: #8B5CF6;
}

.ai-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: white;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.ai-chip:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(168, 85, 247, 0.1));
  border-color: #8B5CF6;
  color: #8B5CF6;
}

.ai-chip.selected {
  background: linear-gradient(135deg, #8B5CF6, #A855F7);
  border-color: transparent;
  color: white;
}

/* AI Sheet Modal */
.ai-sheet-modal {
  max-width: 600px;
}

.ai-sheet-description {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.ai-sheet-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-sheet-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ai-sheet-input-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.ai-sheet-input-group input,
.ai-sheet-input-group textarea {
  padding: 10px 14px;
  background: var(--color-canvas-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 14px;
  color: var(--color-text-primary);
  transition: border-color 0.15s ease;
}

.ai-sheet-input-group input:focus,
.ai-sheet-input-group textarea:focus {
  outline: none;
  border-color: #8B5CF6;
}

.ai-sheet-input-group textarea {
  min-height: 80px;
  resize: vertical;
}

.ai-sheet-input-hint {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* AI Sheet Result */
.ai-sheet-result {
  padding: 16px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(168, 85, 247, 0.05));
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-lg);
  margin-top: 16px;
}

.ai-sheet-result-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.ai-sheet-result-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.ai-sheet-sticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.ai-sheet-sticker {
  position: relative;
  aspect-ratio: 1;
  background: white;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ai-sheet-sticker:hover {
  border-color: #8B5CF6;
  transform: scale(1.02);
}

.ai-sheet-sticker.selected {
  border-color: #8B5CF6;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3);
}

.ai-sheet-sticker img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-sheet-sticker-check {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  background: #8B5CF6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.ai-sheet-sticker.selected .ai-sheet-sticker-check {
  opacity: 1;
}

.ai-sheet-sticker-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4px 6px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  font-size: 10px;
  font-weight: 500;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ai-sheet-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* AI Suggestion Card */
.ai-suggestion {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  transition: all 0.15s ease;
}

.ai-suggestion:hover {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.1);
}

.ai-suggestion-image {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.ai-suggestion-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-suggestion-info {
  flex: 1;
  min-width: 0;
}

.ai-suggestion-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ai-suggestion-reason {
  font-size: 11px;
  color: var(--color-text-muted);
  line-height: 1.3;
}

.ai-suggestion-add {
  padding: 6px 12px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(168, 85, 247, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: #8B5CF6;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.ai-suggestion-add:hover {
  background: linear-gradient(135deg, #8B5CF6, #A855F7);
  border-color: transparent;
  color: white;
}

/* AI Suggestions Container */
.ai-suggestions-container {
  padding: 16px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.03), rgba(168, 85, 247, 0.03));
  border: 1px dashed rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-lg);
  margin-top: 16px;
}

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

.ai-suggestions-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #8B5CF6;
}

.ai-suggestions-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  color: var(--color-text-muted);
  font-size: 13px;
}

.ai-suggestions-empty {
  text-align: center;
  padding: 24px;
  color: var(--color-text-muted);
  font-size: 13px;
}

/* AI Fix Metadata Inline */
.ai-fix-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.ai-fix-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.ai-fix-status.success {
  color: var(--color-success, #22c55e);
}

.ai-fix-status.error {
  color: var(--color-error, #ef4444);
}

/* AI Section Header */
.ai-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(168, 85, 247, 0.08));
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.ai-section-icon {
  font-size: 18px;
}

.ai-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #8B5CF6;
}

.ai-section-subtitle {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-left: auto;
}

/* Responsive AI styles */
@media (max-width: 640px) {
  .btn-ai {
    padding: 8px 14px;
    font-size: 12px;
  }

  .ai-sheet-sticker-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .ai-suggestion {
    flex-wrap: wrap;
  }

  .ai-suggestion-add {
    width: 100%;
    text-align: center;
    margin-top: 8px;
  }
}

/* ========== HEADER NAV MENU DROPDOWN ========== */

.header-nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--color-canvas, #ffffff);
  border: 1px solid var(--color-border, #e4e4e7);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  padding: 6px;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.header-nav-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-nav-menu__item {
  display: block;
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-primary, #18181b);
  background: transparent;
  border: none;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.header-nav-menu__item:hover {
  background: var(--color-canvas-subtle, #fafafa);
}

.header-nav-menu__item:active {
  background: var(--color-canvas-inset, #f4f4f5);
}

.header-nav-menu__item.active {
  background: var(--color-canvas-subtle, #fafafa);
  font-weight: 600;
  color: var(--color-accent, #6D28D9);
}

.header-nav-menu__divider {
  height: 1px;
  background: var(--color-border, #e4e4e7);
  margin: 8px 0;
}

.header-nav-menu__item--logout {
  color: var(--color-error, #dc2626);
}

.header-nav-menu__item--logout:hover {
  background: rgba(220, 38, 38, 0.08);
  color: var(--color-error, #dc2626);
}

/* Profile header in hamburger menu - clickable button that opens Creator Page Preview */
.header-nav-menu__profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--color-border, #e4e4e7);
  margin-bottom: 4px;
  /* Button reset styles */
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border, #e4e4e7);
  width: 100%;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.header-nav-menu__profile:hover {
  background: var(--color-canvas-subtle, #fafafa);
}

.header-nav-menu__profile:active {
  background: var(--color-border, #e4e4e7);
}

.header-nav-menu__profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-canvas-subtle, #fafafa);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.header-nav-menu__profile-info {
  flex: 1;
  min-width: 0;
}

.header-nav-menu__profile-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary, #18181b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-nav-menu__profile-handle {
  font-size: 13px;
  color: var(--color-text-muted, #a1a1aa);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Verification item in hamburger menu */
.header-nav-menu__item--verification {
  display: flex;
  align-items: center;
  color: var(--color-purple, #7c3aed);
  font-weight: 500;
}

.header-nav-menu__item--verification:hover {
  background: rgba(124, 58, 237, 0.08);
  color: var(--color-purple, #7c3aed);
}

/* Earnings item in hamburger menu */
.header-nav-menu__item--earnings {
  display: flex;
  align-items: center;
}

.header-nav-menu__item--earnings.active {
  color: var(--color-accent, #6D28D9);
}

.header-nav-menu__footer {
  padding: 12px 14px 8px;
  font-size: 11px;
  color: var(--color-text-muted, #a1a1aa);
  text-align: center;
  border-top: 1px solid var(--color-border, #e4e4e7);
  margin-top: 8px;
}

.header-nav-menu__footer a {
  color: var(--color-text-muted, #a1a1aa);
  text-decoration: none;
  transition: color 0.15s ease;
}

.header-nav-menu__footer a:hover {
  color: var(--color-text-secondary, #71717a);
  text-decoration: underline;
}

.header-nav-menu__footer span {
  margin: 0 4px;
}

/* ============================================
   EARNINGS & ANALYTICS COMBINED VIEW
   ============================================ */

/* Note: Toggle now uses .manage-tabs / .manage-tab classes (unified styling) */

/* Tab content containers */
.earnings-tab-content,
.analytics-tab-content {
  padding: 16px;
}

/* Verification locked state */
.earnings-locked-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  text-align: center;
  min-height: 300px;
}

.earnings-locked-state .locked-icon {
  color: var(--color-text-muted, #a1a1aa);
  margin-bottom: 20px;
}

.earnings-locked-state .locked-icon svg {
  width: 48px;
  height: 48px;
}

.earnings-locked-state .locked-heading {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text-primary, #18181b);
  margin: 0 0 8px 0;
}

.earnings-locked-state .locked-subtext {
  font-size: 14px;
  color: var(--color-text-muted, #71717a);
  margin: 0 0 24px 0;
  max-width: 300px;
  line-height: 1.5;
}

.earnings-locked-state .locked-btn {
  background: var(--color-purple, #6D28D9);
  color: white;
  border: none;
  padding: 14px 36px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.earnings-locked-state .locked-btn:hover {
  background: var(--color-purple-dark, #5b21b6);
}

/* Verified earnings content wrapper */
.earnings-verified-content .earnings-panel-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ========== CREATOR APPLICATION VIEW ========== */
.creator-application-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 32px 24px;
}

.application-header {
  text-align: center;
  margin-bottom: 32px;
}

.application-header h1 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 8px;
}

.application-header p {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin: 0;
}

.application-samples {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
}

.application-sample {
  background: var(--color-canvas-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

.sample-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 12px;
}

.sample-uploads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.upload-zone {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--color-surface);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.upload-zone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  text-align: center;
}

.upload-icon {
  font-size: 24px;
}

.upload-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.upload-hint {
  font-size: 11px;
  color: var(--color-text-muted);
}

.upload-filename {
  font-size: 12px;
  color: var(--color-text-secondary);
  word-break: break-all;
  text-align: center;
}

.png-preview-wrap,
.source-selected-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.png-preview-wrap img {
  max-width: 80px;
  max-height: 80px;
  object-fit: contain;
  border-radius: 4px;
}

.application-portfolio {
  margin-bottom: 24px;
}

.application-portfolio label {
  display: block;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.application-portfolio input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 15px;
  background: var(--color-surface);
  color: var(--color-text-primary);
  box-sizing: border-box;
}

.application-submit-wrap {
  text-align: center;
}

.application-submit-btn {
  width: 100%;
  padding: 16px 32px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.application-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.application-error {
  margin-top: 12px;
  padding: 12px;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--color-error);
}

.application-terms {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 16px;
}

.application-terms-link {
  color: var(--color-purple);
  text-decoration: none;
}

.application-success {
  text-align: center;
  padding: 40px 20px;
}

.application-success p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0 0 24px;
}

