/* ============================================================
   STICKERBOOK ADMIN DASHBOARD
   Professional, Clean, Mobile-First
   Matches Creator Studio Aesthetic
   ============================================================ */

/* ========== CSS CUSTOM PROPERTIES ========== */
:root {
  /* Inherit from main design system */
  --color-purple: #6D28D9;
  --color-purple-dark: #5B21B6;
  --color-purple-light: #8B5CF6;
  
  --color-turquoise: #14B8A6;
  --color-turquoise-dark: #0D9488;
  --color-turquoise-light: #5EEAD4;
  
  --color-gold: #EAB308;
  
  --color-canvas: #ffffff;
  --color-canvas-elevated: #ffffff;
  --color-canvas-subtle: #fafafa;
  --color-canvas-inset: #f4f4f5;
  
  --color-text-primary: #18181b;
  --color-text-secondary: #3f3f46;
  --color-text-muted: #71717a;
  --color-text-subtle: #a1a1aa;
  
  --color-border: #e4e4e7;
  --color-border-subtle: #f4f4f5;
  --color-border-strong: #d4d4d8;
  
  --color-success: #16a34a;
  --color-error: #dc2626;
  --color-warning: #EAB308;
  
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
  
  --font-primary: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Poppins", system-ui, sans-serif;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
}

/* ========== RESET & BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: var(--font-primary);
  color: var(--color-text-primary);
  background: var(--color-canvas-subtle);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========== LOGIN SCREEN ========== */
.login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background: linear-gradient(135deg, var(--color-canvas-subtle) 0%, var(--color-canvas) 100%);
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--color-canvas);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 48px 32px;
  border: 1px solid var(--color-border);
}

.login-brand {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  background: var(--color-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.login-subtitle {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 40px;
}





.login-error {
  margin-top: 16px;
  padding: 12px;
  font-size: 13px;
  color: var(--color-error);
  background: rgba(220, 38, 38, 0.08);
  border-radius: var(--radius-sm);
  text-align: center;
}

/* Hide error div when empty (defensive - handles whitespace) */
#login-error { 
  display: none; 
}

#login-error:not(:empty) { 
  display: block; 
}


.login-footer {
  margin-top: 32px;
  font-size: 11px;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.5;
}

/* ========== MAIN APP ========== */
.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 1600px;
  margin: 0 auto;
  background: var(--color-canvas-subtle);
}

.app.hidden {
  display: none;
}

/* ========== HEADER ========== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--color-canvas);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

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

.brand {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}


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

.admin-email {
  font-size: 13px;
  color: var(--color-text-muted);
  display: none;
}

@media (min-width: 640px) {
  .admin-email {
    display: block;
  }
}

/* ========== NAV TABS ========== */
.nav {
  display: flex;
  gap: 4px;
  padding: 12px 24px;
  background: var(--color-canvas);
  border-bottom: 1px solid var(--color-border);
  overflow-x: auto;
  overflow-y: hidden;
  flex-shrink: 0;
  -webkit-overflow-scrolling: touch;
}

.nav::-webkit-scrollbar {
  display: none;
}

.tab {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  outline: none;
}

.tab:hover {
  color: var(--color-text-secondary);
  background: var(--color-canvas-subtle);
}

.tab.active {
  color: var(--color-purple);
  background: rgba(109, 40, 217, 0.08);
}

/* ========== CONTENT AREA ========== */
.content {
  flex: 1;
  overflow-y: auto;
  background: var(--color-canvas-subtle);
}

.panel {
  display: none;
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.panel.active {
  display: block;
}

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

.panel-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

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

.panel-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.panel-body {
  background: var(--color-canvas);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

/* ========== BUTTONS ========== */











/* ========== SEARCH BAR ========== */
.search-bar {
  margin-bottom: 24px;
}

.search-bar input {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  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;
}

.search-bar input:focus {
  border-color: var(--color-turquoise);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
  background: var(--color-canvas);
}

/* ========== DATA TABLE ========== */






/* ========== BADGES ========== */




/* ========== EMPTY STATE ========== */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--color-text-muted);
  font-size: 14px;
}

/* ========== MODAL ========== */









.modal-body input[type="text"],
.modal-body input[type="number"],
.modal-body input[type="email"],
.modal-body input[type="password"],
.modal-body textarea,

.modal-body input:focus,
.modal-body textarea:focus,




/* ========== TOAST ========== */





/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
  .header {
    padding: 16px 20px;
  }

  .brand {
    font-size: 14px;
  }

  .nav {
    padding: 8px 20px;
  }

  .content {
    padding: 0;
  }

  .panel {
    padding: 20px;
  }

  .panel-title {
    font-size: 24px;
  }

  .panel-body {
    padding: 20px;
    border-radius: var(--radius-md);
  }

  .modal {
    max-width: 100%;
    margin: 0;
    border-radius: var(--radius-lg);
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 20px;
  }

  .data-table {
    font-size: 12px;
  }

  .data-table th,
  .data-table td {
    padding: 12px;
  }
}

/* ========== STATS & METRICS ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}













/* ========== INLINE TABS ========== */
.inline-tabs {
  display: flex;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

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

.inline-tab {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  outline: none;
  font-family: var(--font-primary);
}

.inline-tab:hover {
  color: var(--color-text-secondary);
  background: var(--color-canvas-subtle);
}

.inline-tab.active {
  color: var(--color-turquoise);
  background: rgba(20, 184, 166, 0.1);
}

/* ========== TABLE TOOLBAR ========== */


/* Two-row layout for filters and controls */
.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,
.pack-count {
  font-size: 14px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* Remove browser default select arrows - Issue #5 fix */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-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;
}

.table-filters input,

.table-filters input:focus,


/* ========== INLINE ACTIONS ========== */
.inline-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ========== LOADING STATES ========== */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-turquoise);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 12px;
}

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

/* ========== PROFILE AVATARS ========== */
.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-purple), var(--color-turquoise));
  color: white;
  font-weight: 600;
  font-size: 16px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-info-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-name {
  font-weight: 500;
  color: var(--color-text-primary);
  font-size: 14px;
}

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

/* ========== CARD GRID ========== */

/* Sticker Preview in Modal (Issue #4) */
.sticker-preview img {
  max-width: 400px;
  max-height: 400px;
  width: auto;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

/* Grid Size Variations (Issue #3, reduced by 25% per Issue #2) */



/* View Toggle (Issue #1 & #2) */
.view-toggle {
  display: flex;
  gap: 4px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 4px;
  border: 1px solid var(--color-border);
  margin-right: 16px;
  flex-shrink: 0;
}

.view-toggle button {
  background: #f3f4f6;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: #6b7280;
  font-size: 16px;
  line-height: 1;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
}

.view-toggle button:hover {
  background: #e5e7eb;
  color: var(--color-text);
}

.view-toggle button.active {
  background: #6D28D9;
  color: white;
  font-weight: 600;
  border: 2px solid #6D28D9;
  box-shadow: 0 1px 3px rgba(109, 40, 217, 0.3);
}

/* Grid Size Toggle - Segmented Buttons (matches view-toggle pattern) */
.grid-size-toggle {
  display: flex;
  gap: 4px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-left: 12px;
}

.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;
}

.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: 140px;
}

.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);
}

.card {
  background: var(--color-canvas);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card.selected {
  border-color: var(--color-turquoise);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}







/* ========== CONTENT BADGES ========== */
.content-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-pill);
  background: var(--color-warning);
  color: white;
  box-shadow: var(--shadow-sm);
}

.content-badge.featured {
  background: var(--color-purple);
}

.content-badge.trending {
  background: var(--color-error);
}

/* ========== SELECTION INDICATOR ========== */
.selection-indicator {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 24px;
  height: 24px;
  background: var(--color-turquoise);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

/* ========== TAG LIST ========== */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  background: var(--color-canvas-subtle);
  color: var(--color-text-secondary);
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
}

/* ========== AI FEATURES ========== */






/* ========== PRICE BREAKDOWN ========== */
.price-breakdown {
  background: var(--color-canvas-subtle);
  padding: 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.8;
}

.price-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.price-breakdown-row:last-child {
  margin-bottom: 0;
}

.price-breakdown-label {
  color: var(--color-text-secondary);
  font-weight: 500;
}

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

.price-breakdown-total {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  font-weight: 600;
  font-size: 14px;
}

.price-breakdown-note {
  margin-top: 12px;
  font-size: 11px;
  color: var(--color-text-muted);
  font-style: italic;
}

/* ========== SEARCH TOGGLE ========== */
.search-toggle {
  display: flex;
  background: var(--color-canvas-subtle);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 4px;
}



/* ========== STICKER GRID ========== */
.sticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 10px;
  max-height: 300px;
  overflow-y: auto;
  padding: 12px;
  background: var(--color-canvas-subtle);
  border-radius: var(--radius-md);
}

.sticker-item {
  position: relative;
  cursor: pointer;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 8px;
  text-align: center;
  background: var(--color-canvas);
  transition: all 0.2s ease;
}

.sticker-item:hover {
  border-color: var(--color-border-strong);
  transform: scale(1.05);
}

.sticker-item.selected {
  border-color: var(--color-turquoise);
  background: rgba(20, 184, 166, 0.08);
}

.sticker-item img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 4px;
}

.sticker-item-name {
  font-size: 9px;
  color: var(--color-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sticker-item-price {
  font-size: 8px;
  color: var(--color-text-subtle);
  margin-top: 2px;
}

/* ========== SELECTED ITEMS ========== */
.selected-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 60px;
  padding: 12px;
  background: var(--color-canvas-subtle);
  border-radius: var(--radius-md);
  align-items: flex-start;
}

.selected-items.empty {
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 13px;
}

.selected-item {
  position: relative;
  width: 60px;
}

.selected-item img {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-border);
}

.selected-item-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-error);
  color: white;
  border: 2px solid var(--color-canvas);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  transition: all 0.2s ease;
}

.selected-item-remove:hover {
  background: #b91c1c;
  transform: scale(1.1);
}

/* ========== VERIFICATION CARD ========== */
.verification-card {
  background: var(--color-canvas);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  margin-bottom: 20px;
}

.verification-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 16px;
}

.verification-info {
  flex: 1;
}

.verification-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 6px;
}

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

.verification-body {
  margin-bottom: 20px;
}

.verification-section {
  margin-bottom: 16px;
}

.verification-section-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.verification-footer {
  display: flex;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

/* ========== PORTFOLIO GRID ========== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.portfolio-item {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-canvas-subtle);
  border: 1px solid var(--color-border);
}

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

/* ========== SOCIAL LINKS ========== */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--color-text-secondary);
  background: var(--color-canvas-subtle);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid var(--color-border);
}

.social-link:hover {
  background: var(--color-canvas-inset);
  color: var(--color-text-primary);
}

/* ========== STATUS INDICATOR ========== */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}

.status-indicator::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.status-indicator.active {
  color: var(--color-success);
}

.status-indicator.pending {
  color: var(--color-warning);
}

.status-indicator.inactive {
  color: var(--color-text-muted);
}

/* ========== FILE PREVIEW ========== */
.file-preview {
  padding: 16px;
  background: var(--color-canvas-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  text-align: center;
}

.file-preview img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

/* ========== REPORT CARD ========== */
.report-card {
  background: var(--color-canvas);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  margin-bottom: 16px;
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 16px;
}

.report-body {
  margin-bottom: 16px;
}

.report-reason {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}

.report-details {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.report-footer {
  display: flex;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-subtle);
}

/* ========== EVIDENCE GRID ========== */
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.evidence-item {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-canvas-subtle);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.evidence-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-sm);
}

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

/* ========== SEVERITY BADGE ========== */
.severity-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-pill);
}

.severity-badge.low {
  background: rgba(22, 163, 74, 0.1);
  color: var(--color-success);
}

.severity-badge.medium {
  background: rgba(234, 179, 8, 0.1);
  color: var(--color-warning);
}

.severity-badge.high {
  background: rgba(220, 38, 38, 0.1);
  color: var(--color-error);
}

.severity-badge.critical {
  background: var(--color-error);
  color: white;
}

/* ========== TIMELINE ========== */
.timeline {
  position: relative;
  padding-left: 32px;
  margin-top: 16px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline-item {
  position: relative;
  padding-bottom: 20px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-turquoise);
  border: 2px solid var(--color-canvas);
  box-shadow: 0 0 0 2px var(--color-border);
}

.timeline-time {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

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

/* ========== CURRENCY DISPLAY ========== */
.currency {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-text-primary);
}

.currency.positive {
  color: var(--color-success);
}

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

/* ========== TRANSACTION LIST ========== */
.transaction-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.transaction-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--color-canvas-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.transaction-info {
  flex: 1;
}

.transaction-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.transaction-meta {
  font-size: 12px;
  color: var(--color-text-muted);
}

.transaction-amount {
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-display);
}

/* ========== PAYOUT STATUS ========== */
.payout-status {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.payout-status.pending {
  background: rgba(234, 179, 8, 0.1);
  color: var(--color-warning);
}

.payout-status.processing {
  background: rgba(20, 184, 166, 0.1);
  color: var(--color-turquoise);
}

.payout-status.completed {
  background: rgba(22, 163, 74, 0.1);
  color: var(--color-success);
}

.payout-status.failed {
  background: rgba(220, 38, 38, 0.1);
  color: var(--color-error);
}

/* ========== EMAIL PREVIEW ========== */
.email-preview {
  padding: 24px;
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-top: 16px;
  max-height: 400px;
  overflow-y: auto;
}

/* ========== TEMPLATE GRID ========== */
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.template-item {
  padding: 20px;
  background: var(--color-canvas-subtle);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.template-item:hover {
  border-color: var(--color-turquoise);
  background: var(--color-canvas);
}

.template-item.selected {
  border-color: var(--color-turquoise);
  background: rgba(20, 184, 166, 0.08);
}

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

.template-description {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* ========== RECIPIENT CHIPS ========== */
.recipient-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.recipient-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  background: var(--color-canvas-subtle);
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
}

.recipient-chip-remove {
  cursor: pointer;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.recipient-chip-remove:hover {
  color: var(--color-error);
}

/* ========== SETTINGS SECTION ========== */
.settings-section {
  padding: 24px;
  background: var(--color-canvas);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  margin-bottom: 24px;
}

.settings-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 16px;
}

.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border-subtle);
}

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

.settings-label {
  flex: 1;
}

.settings-label-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

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

.settings-value {
  font-size: 14px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* ========== DANGER ZONE ========== */
.danger-zone {
  padding: 20px;
  background: rgba(220, 38, 38, 0.05);
  border: 2px solid var(--color-error);
  border-radius: var(--radius-lg);
  margin-top: 32px;
}

.danger-zone-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-error);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.danger-zone-description {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

/* ========== CODE DISPLAY ========== */
.code-display {
  padding: 12px 16px;
  background: var(--color-text-primary);
  color: var(--color-canvas);
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 12px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-top: 8px;
}

/* ========== ALERT BANNER ========== */









/* ========== PAGINATION ========== */






/* ========== FORM ENHANCEMENTS ========== */





/* ========== UTILITY CLASSES ========== */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

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

.mb-8 {
  margin-bottom: 8px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.mt-8 {
  margin-top: 8px;
}

.mt-16 {
  margin-top: 16px;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-8 {
  gap: 8px;
}

.gap-12 {
  gap: 12px;
}

.gap-16 {
  gap: 16px;
}

/* ========== CREATOR MODULE COMPONENTS ========== */

/* Document Status Indicators */
.doc-indicators {
  display: flex;
  gap: 6px;
  align-items: center;
}

.doc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1.5px solid;
  cursor: help;
  transition: all 0.2s ease;
}

.doc-icon.positive {
  background: var(--color-success-bg);
  border-color: var(--color-success);
  color: var(--color-success);
}

.doc-icon.negative {
  background: var(--color-danger-bg);
  border-color: var(--color-danger);
  color: var(--color-danger);
}

.doc-icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Setup Checklist */
.setup-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 13px;
  color: var(--color-text-secondary);
  transition: all 0.2s ease;
}

.checklist-item.complete {
  color: var(--color-text-primary);
}

.checklist-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  color: var(--color-text-muted);
  transition: all 0.2s ease;
}

.checklist-item.complete .checklist-icon {
  border-color: var(--color-success);
  background: var(--color-success);
  color: white;
}

.checklist-label {
  flex: 1;
  font-size: 13px;
}

/* Verification History */
.verification-history-item {
  padding: 12px;
  border-bottom: 1px solid var(--color-border);
}

.verification-history-item:last-child {
  border-bottom: none;
}

.verification-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.verification-history-notes {
  font-size: 13px;
  color: var(--color-text-secondary);
  padding: 8px 12px;
  background: var(--color-canvas-subtle);
  border-radius: var(--radius-sm);
  margin-top: 8px;
}

.verification-history-notes strong {
  color: var(--color-text-primary);
}

.verification-history-cooldown {
  font-size: 12px;
  color: var(--color-warning);
  margin-top: 6px;
  font-style: italic;
}

/* Document List */
.document-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.document-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

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

.document-label {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-primary);
}

/* Earnings History */
.earnings-summary {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.earnings-summary-header {
  background: var(--color-canvas-subtle);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
  border-bottom: 1.5px solid var(--color-border);
}

.earnings-summary-body {
  padding: 12px 16px;
}

.earnings-history {
  border-top: 1.5px solid var(--color-border);
  padding-top: 12px;
  margin-top: 12px;
}

.earnings-history-header {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  padding: 0 16px;
}

/* Contact Information */
.contact-info-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-info-header {
  margin-bottom: 12px;
}

.contact-info-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Badge Modifiers */

/* Alert Grid (for dashboard creator attention widget) */











@media (max-width: 768px) {
  .alert-grid {
    grid-template-columns: 1fr;
  }
}

/* Analytics Components (Phase 3) */









.sparkline {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 60px;
  padding: 0 8px;
}

.sparkline-bar {
  flex: 1;
  background: var(--color-turquoise);
  border-radius: 2px 2px 0 0;
  min-height: 2px;
  transition: all 0.2s ease;
  cursor: help;
}

.sparkline-bar:hover {
  background: var(--color-purple);
  transform: scaleY(1.1);
}

/* Social Links Components (Phase 3) */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--color-canvas-subtle);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text-primary);
  transition: all 0.2s ease;
}

.social-link:hover {
  border-color: var(--color-turquoise);
  background: var(--color-canvas);
  transform: translateX(4px);
}

.social-link-icon {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1;
}

.social-link-label {
  font-weight: 600;
  font-size: 13px;
  min-width: 80px;
}

.social-link-username {
  font-size: 12px;
  color: var(--color-text-secondary);
  flex: 1;
}

/* Insights Grid Components (Phase 3) */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.insight-card {
  background: var(--color-canvas);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
}

.insight-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.insight-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--color-canvas-subtle);
  border-bottom: 1.5px solid var(--color-border);
}

.insight-card-icon {
  font-size: 20px;
  line-height: 1;
}

.insight-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.insight-card-body {
  padding: 16px;
}

.insight-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}

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

.insight-row-label {
  font-size: 13px;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.insight-row-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.insight-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--color-turquoise);
  color: white;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
}

.insight-large-metric {
  text-align: center;
  margin-bottom: 12px;
}

.insight-large-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1;
}

.insight-large-label {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 6px;
}

.insight-comparison {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

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

.insight-comparison-value {
  font-size: 13px;
  font-weight: 600;
}

.insight-comparison-value.positive {
  color: var(--color-success);
}

.insight-comparison-value.negative {
  color: var(--color-danger);
}

.insight-secondary {
  font-size: 11px;
  color: var(--color-text-muted);
  text-align: center;
}

@media (max-width: 768px) {
  .insights-grid {
    grid-template-columns: 1fr;
  }

  .analytics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========== USERS MODULE - PHASE 2 & 3 COMPONENTS ========== */

/* Checkbox Column */


/* Bulk Action Bar - Floating at Bottom */
.bulk-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-text-primary);
  color: white;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  z-index: 900;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.bulk-action-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bulk-action-info strong {
  font-size: 15px;
  font-weight: 600;
}

.bulk-action-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}




@media (max-width: 768px) {
  .bulk-action-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px;
  }

  .bulk-action-info {
    justify-content: center;
  }

  .bulk-action-buttons {
    justify-content: center;
  }
}

/* Sticker Collection Grid (User Drawer) */
.sticker-collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
  padding: 16px;
  background: var(--color-canvas-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.sticker-collection-item {
  position: relative;
  aspect-ratio: 1;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 6px;
  background: var(--color-canvas);
  transition: all 0.2s ease;
  overflow: hidden;
}

.sticker-collection-item:hover {
  border-color: var(--color-turquoise);
  transform: scale(1.05);
  box-shadow: var(--shadow-sm);
}

.sticker-collection-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.sticker-collection-item-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  font-size: 9px;
  padding: 4px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.sticker-collection-item:hover .sticker-collection-item-name {
  opacity: 1;
}

/* Page Preview Grid */
.page-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  max-height: 500px;
  overflow-y: auto;
  padding: 16px;
  background: var(--color-canvas-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.page-preview-item {
  position: relative;
  background: var(--color-canvas);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px;
  transition: all 0.2s ease;
  text-align: center;
}

.page-preview-item:hover {
  border-color: var(--color-turquoise);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.page-preview-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-preview-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-preview-meta {
  font-size: 10px;
  color: var(--color-text-muted);
}

/* Activity Timeline Enhancements */
.timeline {
  position: relative;
  padding-left: 32px;
  margin-top: 16px;
  max-height: 500px;
  overflow-y: auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline-item {
  position: relative;
  padding-bottom: 20px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-turquoise);
  border: 2px solid var(--color-canvas);
  box-shadow: 0 0 0 2px var(--color-border);
}

/* Color-coded timeline events */
.timeline-item.user_created::before {
  background: var(--color-success);
}

.timeline-item.profile_updated::before {
  background: var(--color-turquoise);
}

.timeline-item.coin_purchase::before {
  background: var(--color-gold);
}

.timeline-item.sticker_collected::before {
  background: var(--color-purple);
}

.timeline-item.page_created::before {
  background: var(--color-turquoise-dark);
}

.timeline-item.match_created::before {
  background: #ec4899;
}

.timeline-item.message_sent::before {
  background: #3b82f6;
}

.timeline-item.report_filed::before,
.timeline-item.report_received::before {
  background: var(--color-error);
}

.timeline-item.account_suspended::before,
.timeline-item.account_deleted::before {
  background: #dc2626;
}

.timeline-time {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
  font-weight: 500;
}

.timeline-content {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

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

/* User Segmentation Styling */
.segment-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-transform: capitalize;
}

.segment-badge.high-value {
  background: rgba(234, 179, 8, 0.1);
  color: var(--color-gold);
  border: 1.5px solid var(--color-gold);
}

.segment-badge.power-users {
  background: rgba(109, 40, 217, 0.1);
  color: var(--color-purple);
  border: 1.5px solid var(--color-purple);
}

.segment-badge.active-matchers {
  background: rgba(236, 72, 153, 0.1);
  color: #ec4899;
  border: 1.5px solid #ec4899;
}

.segment-badge.ghost-users {
  background: rgba(100, 116, 139, 0.1);
  color: #64748b;
  border: 1.5px solid #64748b;
}

.segment-badge.at-risk {
  background: rgba(234, 179, 8, 0.1);
  color: var(--color-warning);
  border: 1.5px solid var(--color-warning);
}

.segment-badge.new-users {
  background: rgba(20, 184, 166, 0.1);
  color: var(--color-turquoise);
  border: 1.5px solid var(--color-turquoise);
}

.segment-badge.minors {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: 1.5px solid #3b82f6;
}

.segment-badge.collectors-only {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
  border: 1.5px solid #8b5cf6;
}

/* Advanced Filters Row */
.advanced-filters-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  padding: 16px;
  background: var(--color-canvas);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.filter-group select,
.filter-group input {
  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;
  min-width: 160px;
}

.filter-group select:focus,
.filter-group input:focus {
  border-color: var(--color-turquoise);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
  background: var(--color-canvas);
}

/* Modal Section Headers */




/* Enhanced Stat Cards in Modal */
.stats-grid-compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}







/* Info Cards for Reports, Purchases, etc. */
.info-card {
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.info-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-sm);
}

.info-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 12px;
}

.info-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.info-card-meta {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.info-card-body {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.info-card.warning {
  border-left: 4px solid var(--color-warning);
  background: rgba(234, 179, 8, 0.02);
}

.info-card.danger {
  border-left: 4px solid var(--color-error);
  background: rgba(220, 38, 38, 0.02);
}

.info-card.success {
  border-left: 4px solid var(--color-success);
  background: rgba(22, 163, 74, 0.02);
}

/* Match Cards */
.match-card {
  background: var(--color-canvas-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.match-card:hover {
  background: var(--color-canvas);
  border-color: var(--color-turquoise);
}

.match-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-purple), var(--color-turquoise));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
  overflow: hidden;
}

.match-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.match-card-info {
  flex: 1;
  min-width: 0;
}

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

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

.match-card-badge {
  flex-shrink: 0;
}

/* Empty State for Sections */
.section-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--color-text-muted);
  font-size: 13px;
  background: var(--color-canvas-subtle);
  border-radius: var(--radius-md);
  border: 1px dashed var(--color-border);
}

.section-empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.5;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .sticker-collection-grid {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 8px;
    padding: 12px;
  }

  .page-preview-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    padding: 12px;
  }

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

  .advanced-filters-row {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group {
    width: 100%;
  }

  .filter-group select,
  .filter-group input {
    width: 100%;
    min-width: 0;
  }

  .report-type-tabs {
    flex-direction: column;
    gap: 8px;
  }

  .report-tab {
    width: 100%;
    justify-content: center;
  }

  .business-reports-controls .form-row {
    flex-direction: column;
    gap: 16px;
  }

  .business-reports-controls .form-field {
    width: 100%;
  }

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

  .report-section {
    padding: 16px;
  }

  .report-section h3 {
    font-size: 16px;
  }
}

/* ========================================
   BUSINESS REPORTS MODULE
   ======================================== */

/* Report Type Tabs (Moderation vs Business) */
.report-type-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-border);
}

.report-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.report-tab:hover {
  background: var(--color-canvas-subtle);
  color: var(--color-text-primary);
}

.report-tab.active {
  color: var(--color-turquoise);
  background: rgba(20, 184, 166, 0.1);
}

.report-tab.active::after {
  content: '';
  position: absolute;
  bottom: -18px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-turquoise);
}


/* Business Reports Controls */
.business-reports-controls {
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
}



.business-reports-controls label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.business-reports-controls select {
  width: 100%;
  padding: 10px 16px;
  background: var(--color-canvas-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.business-reports-controls select:hover {
  border-color: var(--color-turquoise);
  background: var(--color-canvas);
}

.business-reports-controls select:focus {
  outline: none;
  border-color: var(--color-turquoise);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

/* Business Report Container */
#business-report-container {
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  min-height: 400px;
}

/* Report Header - Enhanced for Business Reports */
#business-report-container .report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-border);
}

#business-report-container .report-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.report-period {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  background: var(--color-canvas-subtle);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

/* Report Sections */
.report-section {
  margin-bottom: 40px;
}

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

.report-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

/* Stats Grid Variants */
.stats-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.stats-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

/* Report Stat Cards - Enhanced sublabel support */

/* Data Table - Enhanced for Reports */





/* Warning Box for Limited Data */
.report-warning {
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid var(--color-warning);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.report-warning-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.report-warning-content {
  flex: 1;
}

.report-warning-title {
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.report-warning-text {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
}

.report-warning-recommendations {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 8px;
}

.report-warning-recommendations strong {
  color: var(--color-text-secondary);
  font-weight: 600;
}

/* Report Loading State */
.report-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 16px;
}

.report-loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--color-border);
  border-top-color: var(--color-turquoise);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.report-loading-text {
  font-size: 14px;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Report Empty State - Enhanced */
#business-report-container .empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
}

#business-report-container .empty-state-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

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

#business-report-container .empty-state-text {
  font-size: 14px;
  color: var(--color-text-muted);
  max-width: 400px;
  line-height: 1.5;
}

/* CSV Export Button Enhancement */



/* Report Metrics - Color Coding */




/* ============================================
   GOD MODE CONTROLS - PHASE 1
   ============================================ */

/* Platform Settings */
.settings-header,
.flags-header,
.emergency-header {
  margin-bottom: 24px;
}

.settings-header h2,
.flags-header h2,
.emergency-header h2 {
  margin: 0 0 8px 0;
  font-size: 24px;
  font-weight: 700;
}

.settings-header p,
.flags-header p,
.emergency-header p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
}

/* Category tabs */
.category-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--color-border);
  overflow-x: auto;
}

.category-tab {
  padding: 12px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  margin-bottom: -2px;
  transition: all 0.2s;
  white-space: nowrap;
}

.category-tab:hover {
  color: var(--color-text-primary);
  background: var(--color-canvas-subtle);
}

.category-tab.active {
  color: var(--color-turquoise);
  border-bottom-color: var(--color-turquoise);
  font-weight: 600;
}

/* Settings grid */
.settings-grid,
.flags-grid,
.emergency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.setting-card,
.flag-card,
.emergency-card {
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.setting-card:hover,
.flag-card:hover {
  box-shadow: var(--shadow-md);
}

.setting-header,
.flag-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 12px;
}

.setting-name,
.flag-name,
.emergency-name {
  font-weight: 600;
  font-size: 16px;
  color: var(--color-text-primary);
}

.setting-category-badge {
  padding: 2px 8px;
  background: var(--color-turquoise-alpha);
  color: var(--color-turquoise);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.setting-description,
.flag-description,
.emergency-message {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.setting-control {
  margin-bottom: 12px;
}

.setting-input,
.setting-control input[type="number"],
.setting-control input[type="text"],
.setting-control textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  background: var(--color-canvas-subtle);
  color: var(--color-text-primary);
  transition: all 0.2s;
}

.setting-input:focus,
.setting-control input:focus,
.setting-control textarea:focus {
  outline: none;
  border-color: var(--color-turquoise);
  box-shadow: 0 0 0 3px var(--color-turquoise-alpha);
}

.setting-control textarea {
  min-height: 80px;
  resize: vertical;
  font-family: 'Courier New', monospace;
  font-size: 12px;
}

.setting-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 12px;
}

.setting-unit,
.setting-range {
  padding: 3px 8px;
  background: var(--color-canvas-subtle);
  border-radius: 4px;
  border: 1px solid var(--color-border);
  font-weight: 500;
}

.setting-updated,
.flag-updated,
.emergency-updated {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

/* Toggle switches */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-border);
  transition: 0.3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

input:checked + .toggle-slider {
  background-color: var(--color-green);
}

input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

input:focus + .toggle-slider {
  box-shadow: 0 0 0 3px var(--color-green-alpha);
}

/* Feature flags */
.flag-card {
  border-left: 4px solid var(--color-border);
}

.flag-card.enabled {
  border-left-color: var(--color-green);
  background: linear-gradient(to right, var(--color-green-alpha) 0%, var(--color-canvas) 20%);
}

.flag-card.disabled {
  border-left-color: var(--color-error);
  opacity: 0.85;
}

.flag-status {
  margin: 12px 0;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-active {
  background: var(--color-green);
  color: white;
}

.status-inactive {
  background: var(--color-border);
  color: var(--color-text-muted);
}

.flag-rollout {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-top: 8px;
  font-weight: 500;
}

/* Emergency controls */
.emergency-card {
  text-align: center;
  border: 2px solid var(--color-border);
  position: relative;
}

.emergency-card.active {
  border-color: var(--color-error);
  background: linear-gradient(135deg, var(--color-error-alpha) 0%, var(--color-canvas) 50%);
  animation: pulse-border 2s ease-in-out infinite;
}

@keyframes pulse-border {
  0%, 100% {
    border-color: var(--color-error);
  }
  50% {
    border-color: var(--color-error-emphasis);
  }
}

.emergency-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.emergency-status {
  margin: 16px 0;
}

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

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

.emergency-affected {
  font-size: 12px;
  color: var(--color-text-muted);
  margin: 12px 0;
  font-style: italic;
}

.emergency-button {
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}





/* Warnings */
.settings-warning,
.flags-warning,
.emergency-warning {
  margin-top: 32px;
  padding: 16px 20px;
  background: var(--color-yellow-alpha);
  border-left: 4px solid var(--color-yellow);
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.6;
}

.emergency-warning {
  background: var(--color-error-alpha);
  border-left-color: var(--color-error);
}

/* Alerts */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}


/* Loading states */
.loading-packages {
  text-align: center;
  padding: 40px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.error-message {
  text-align: center;
  padding: 40px;
  color: var(--color-error);
  font-size: 14px;
}

.no-packages,
.no-data {
  text-align: center;
  padding: 40px;
  color: var(--color-text-muted);
  font-size: 14px;
}

/* Featured/Bonus badges for coin packages */
.featured-badge,
.bonus-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  padding: 4px 10px;
  background: var(--color-turquoise);
  color: white;
  border-radius: var(--radius-md);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-md);
}

.bonus-badge {
  background: var(--color-yellow);
  color: var(--color-text-primary);
  top: 20px;
}

.package-card.featured {
  border-color: var(--color-turquoise);
  box-shadow: 0 0 0 2px var(--color-turquoise-alpha);
}

.package-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 8px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .settings-grid,
  .flags-grid,
  .emergency-grid {
    grid-template-columns: 1fr;
  }

  .category-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .category-tab {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .setting-header,
  .flag-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .setting-category-badge {
    align-self: flex-start;
  }

  .emergency-icon {
    font-size: 36px;
  }

  .emergency-button {
    padding: 12px;
    font-size: 13px;
  }

  /* Phase 2: Revenue Phases */
  .phases-grid,
  .metro-cards,
  .templates-grid {
    grid-template-columns: 1fr;
  }

  .metro-stats {
    flex-direction: column;
    width: 100%;
  }

  .stat-card {
    width: 100%;
  }

  .impact-table {
    font-size: 12px;
  }

  .impact-table th,
  .impact-table td {
    padding: 6px;
  }

  .shares-table {
    font-size: 13px;
  }

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

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

/* ============================================
   PHASE 2: REVENUE PHASES
   ============================================ */

.phases-header {
  margin-bottom: 32px;
}

.phases-header h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.phases-header p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.phases-warning {
  margin-top: 32px;
  padding: 16px 20px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgb(239, 68, 68);
  border-radius: 8px;
  color: rgb(220, 38, 38);
  font-size: 14px;
}

.phases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.phase-card {
  background: var(--color-canvas-subtle);
  border: 2px solid var(--color-border);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s ease;
}

.phase-card.active-phase {
  border-color: rgb(34, 197, 94);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, var(--color-canvas-subtle) 50%);
}

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

.phase-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.phase-description {
  margin-bottom: 20px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.revenue-shares {
  margin: 20px 0;
}

.revenue-shares h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  font-weight: 600;
}



.shares-table tr:last-child {
  border-bottom: none;
}


.share-value {
  text-align: right;
  font-weight: 700;
  color: rgb(168, 85, 247);
  font-size: 16px;
}

.phase-activate-btn {
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
}

.phase-activated {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  font-size: 12px;
  color: var(--color-text-muted);
}

/* Impact Preview Modal */
.impact-preview {
  max-width: 100%;
}


.impact-table th,


.impact-table tbody tr:hover {
  background: var(--color-canvas-subtle);
}

.impact-table .change {
  font-weight: 700;
  text-align: right;
}

.impact-table .positive {
  color: rgb(34, 197, 94);
}

.impact-table .negative {
  color: rgb(239, 68, 68);
}

.impact-table .neutral {
  color: var(--color-text-muted);
}

.impact-note {
  font-size: 14px;
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: 16px;
}

/* ============================================
   PHASE 2: METRO GATES
   ============================================ */

.metro-header {
  margin-bottom: 32px;
}

.metro-header h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.metro-header p {
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.metro-stats {
  display: flex;
  gap: 16px;
  margin: 20px 0;
  align-items: center;
  flex-wrap: wrap;
}




.metro-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.state-section {
  margin-bottom: 24px;
}

.state-section h3 {
  margin-bottom: 16px;
  color: var(--color-text-secondary);
  font-size: 18px;
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-border);
}

.metro-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.metro-card {
  background: var(--color-canvas-subtle);
  border: 2px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.1s ease;
}

.metro-card:hover {
  transform: translateY(-2px);
}

.metro-card.unlocked {
  border-color: rgb(34, 197, 94);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, var(--color-canvas-subtle) 50%);
}

.metro-card.locked {
  border-color: var(--color-border);
}

.metro-card.close-to-unlock {
  border-color: rgb(234, 179, 8);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    border-color: rgb(234, 179, 8);
    box-shadow: 0 0 0 rgba(234, 179, 8, 0);
  }
  50% {
    border-color: rgb(202, 138, 4);
    box-shadow: 0 0 12px rgba(234, 179, 8, 0.3);
  }
}

.metro-icon {
  font-size: 48px;
  margin-bottom: 12px;
  line-height: 1;
}

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

.metro-progress {
  margin: 16px 0;
}

.progress-bar {
  height: 8px;
  background: var(--color-canvas-elevated);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
  border: 1px solid var(--color-border);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, rgb(168, 85, 247) 0%, rgb(147, 51, 234) 100%);
  transition: width 0.5s ease;
  border-radius: 3px;
}

.progress-text {
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 500;
}

.metro-status {
  margin: 16px 0;
}

.unlock-date,
.users-needed {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 6px;
}

.users-needed {
  font-weight: 600;
  color: rgb(168, 85, 247);
}

.metro-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}


/* ============================================
   PHASE 2: EMAIL TEMPLATES
   ============================================ */

.templates-header {
  margin-bottom: 32px;
}

.templates-header h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.templates-header p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

.template-card {
  background: var(--color-canvas-subtle);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.2s ease;
}

.template-card:hover {
  border-color: var(--color-border-strong);
}

.template-card.inactive {
  opacity: 0.6;
}

.template-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 12px;
}

.template-name {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
}

.template-category-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(168, 85, 247, 0.1);
  color: rgb(168, 85, 247);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.template-subject {
  margin-bottom: 12px;
  font-size: 14px;
}

.template-subject strong {
  color: var(--color-text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
}

.template-body {
  margin-bottom: 12px;
}

.template-body strong {
  color: var(--color-text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 6px;
}

.template-body pre {
  background: var(--color-canvas-default);
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0;
  border: 1px solid var(--color-border);
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  max-height: 200px;
  overflow-y: auto;
}

.template-variables {
  font-size: 12px;
  color: var(--color-text-muted);
  margin: 12px 0;
  padding: 10px 12px;
  background: var(--color-canvas-elevated);
  border-radius: 4px;
  border: 1px solid var(--color-border);
}

.template-variables strong {
  color: var(--color-text-secondary);
  margin-right: 6px;
}

.template-stats {
  font-size: 12px;
  color: var(--color-text-muted);
  margin: 12px 0;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.template-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}


/* Edit Template Form */
.edit-template-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}


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

.edit-template-form input,
.edit-template-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-canvas-subtle);
  color: var(--color-text-primary);
  font-size: 14px;
  font-family: inherit;
}

.edit-template-form textarea {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  resize: vertical;
  min-height: 150px;
  line-height: 1.5;
}

.edit-template-form input:focus,
.edit-template-form textarea:focus {
  outline: none;
  border-color: rgb(168, 85, 247);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}




/* ============================================
   PHASE 2: ALERT STYLES
   ============================================ */

.alert {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid;
  font-size: 14px;
  line-height: 1.5;
}




.alert strong {
  font-weight: 700;
}

/* ============================================
   PHASE 3: AI ASSISTANT
   ============================================ */




/* AI Header */






/* Messages Area */




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

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.user-message .message-avatar {
  background: rgba(168, 85, 247, 0.15);
}

.assistant-message .message-avatar {
  background: rgba(34, 197, 94, 0.15);
}

.message-content {
  flex: 1;
  min-width: 0;
}

.message-text {
  background: var(--color-canvas-subtle);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
}

.user-message .message-text {
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: var(--color-text-primary);
}

.assistant-message .message-text {
  background: var(--color-canvas-subtle);
  border: 1px solid var(--color-border);
}

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

.message-text em {
  font-style: italic;
  color: var(--color-text-secondary);
}

.message-text code {
  background: var(--color-canvas-elevated);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  font-size: 12px;
  color: rgb(168, 85, 247);
  border: 1px solid var(--color-border);
}

.message-text a {
  color: rgb(59, 130, 246);
  text-decoration: underline;
}

.message-text a:hover {
  color: rgb(37, 99, 235);
}

.message-time {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 4px;
  padding-left: 4px;
}

/* Empty State */

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.7;
}



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

.quick-action {
  background: var(--color-canvas-subtle);
  border: 1px solid var(--color-border);
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  text-align: left;
  transition: all 0.2s;
  color: var(--color-text-primary);
}

.quick-action:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgb(168, 85, 247);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Loading State */


@keyframes loadingDots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

/* Input Area */





/* Toggle Button */


/* Notification Badge */
.notification-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgb(239, 68, 68);
  color: white;
  border-radius: 10px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .ai-assistant-panel {
    width: 100%;
    top: 0;
    box-shadow: none;
  }

  .ai-header {
    padding-top: 20px;
  }

  .ai-messages {
    padding: 16px;
  }

  .quick-actions {
    max-width: 100%;
  }

  .quick-action {
    font-size: 13px;
    padding: 12px 14px;
  }

  #ai-input {
    font-size: 16px; /* Prevent zoom on iOS */
  }
}

/* Desktop: Additional padding for content area when AI panel is open */
@media (min-width: 769px) {
  .content.ai-open {
    margin-right: 400px;
    transition: margin-right 0.3s ease;
  }
}

/* Dark Mode Support (if theme toggle added) */
@media (prefers-color-scheme: dark) {
  .ai-assistant-panel {
    background: #1a1a1a;
    border-left-color: #333;
  }

  .ai-header {
    background: #222;
    border-bottom-color: #333;
  }

  .message-text {
    background: #222;
    border-color: #333;
  }

  .user-message .message-text {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.3);
  }

  #ai-input {
    background: #222;
    border-color: #333;
    color: #fff;
  }

  .ai-input-area {
    background: #222;
    border-top-color: #333;
  }

  .quick-action {
    background: #222;
    border-color: #333;
  }

  .quick-action:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgb(168, 85, 247);
  }
}

/* ============================================================
   PHASE 1: CHAT-FIRST HYBRID LAYOUT
   ============================================================
   New admin layout with chat as primary interface
   - Sidebar slides from left (280px)
   - Hamburger menu in header
   - AI chat takes full screen
   - Traditional views accessible from sidebar
   ============================================================ */

/* ========== APP SHELL ========== */
.app {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  background: var(--color-canvas-subtle);
  overflow: hidden;
}

.admin-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 1400px;
  margin: 0 auto;
  margin-left: 48px; /* Account for fixed rail */
  width: 100%;
  background: var(--color-canvas);
  overflow: hidden;
}


/* ========== HEADER ========== */
.admin-header {
  height: 40px;
  min-height: 40px;
  padding: 8px 16px;
  margin-left: 48px; /* Account for fixed rail */
  flex-shrink: 0;
  background: var(--color-canvas);
  border-bottom: 1px solid var(--color-border);
}

.admin-header .header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-start;
}

.admin-header .header-left .brand-block {
  margin-left: 16px;
}

.admin-header .header-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-header .header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-end;
}


/* Brand Block */
.brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.brand-block .brand-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-primary);
}

.brand-accent {
  width: 60px;
  height: 2px;
  margin-top: 4px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--color-purple) 0%, var(--color-turquoise) 100%);
}

/* Header Layout */
.admin-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

/* Admin Email - Hidden (moved to user dropdown) */
.admin-email {
  display: none !important;
}

/* ========== VIEW CONTAINERS ========== */
.view-container {
  display: none;
  flex: 1;
  overflow: hidden;
  background: var(--color-canvas);
}

.view-container.active {
  display: flex;
  flex-direction: column;
}

.view-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* AI Chat Container */

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .admin-shell {
    max-width: 100%;
  }

  .admin-header {
    padding: 16px 16px;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }

  .brand-block .brand-title {
    font-size: 12px;
  }

  .brand-accent {
    width: 50px;
    height: 2px;
  }

  .admin-sidebar {
    width: 100%;
  }

  .view-content {
    padding: 16px;
  }

  .admin-email {
    display: none;
  }
}

/* ========== HIDE OLD NAVIGATION ========== */
.nav {
  display: none !important;
}

.panel {
  display: none !important;
}

/* ========== POPPINS FONT IMPORT ========== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ========== AI CHAT (FULL SCREEN) ========== */







/* Messages Area */


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

/* Remove avatars completely */
.message-avatar {
  display: none;
}

.message-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.message-text {
  font-size: 15px;
  line-height: 1.6;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* User Messages - Right-aligned with light purple background */
.user-message {
  align-items: flex-end;
}

.user-message .message-text {
  background: rgba(109, 40, 217, 0.06);
  border: 1px solid rgba(109, 40, 217, 0.2);
  border-radius: 18px;
  padding: 10px 14px;
  max-width: 70%;
  min-width: 60px;
  color: var(--color-text-primary);
  text-align: left;
  word-wrap: break-word;
  word-break: normal;
  white-space: normal;
  display: inline-block;
  margin-left: auto;
}

/* AI Messages - Left-aligned, no background, just text */
.assistant-message {
  align-items: flex-start;
}

.assistant-message .message-text {
  background: transparent;
  border: none;
  padding: 0;
  max-width: 100%;
  color: #18181b;
}

.message-time {
  font-size: 11px;
  color: var(--color-text-muted);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Empty State */

.empty-icon {
  display: none;
}



.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 600px;
}

.quick-action {
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(109, 40, 217, 0.06);
  border: 1px solid rgba(109, 40, 217, 0.2);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.quick-action:hover {
  background: rgba(109, 40, 217, 0.1);
  border-color: rgba(109, 40, 217, 0.3);
}

/* Loading State */


@keyframes loadingDots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

/* Input Area */







/* Report Download Links */
.report-download-link {
  display: inline-block;
  padding: 10px 16px;
  margin: 8px 0;
  background: linear-gradient(135deg, #6D28D9 0%, #14B8A6 100%);
  color: white !important;
  text-decoration: none !important;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(109, 40, 217, 0.2);
}

.report-download-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(109, 40, 217, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .ai-header {
    padding: 16px;
  }

  .ai-messages {
    padding: 16px;
  }

  .ai-input-area {
    padding: 16px;
  }

  .ai-title {
    font-size: 16px;
  }

  .quick-actions {
    flex-direction: column;
    width: 100%;
  }

  .quick-action {
    width: 100%;
  }
}
/* ================================================
   SPLIT-SCREEN AI CHAT LAYOUT (Claude.ai style)
   ================================================ */


/* Left Panel: Chat - Fixed 50% */

/* Right Panel: Artifacts - Fixed 50% */

/* Preview Empty State */




/* Preview Content (when artifact is shown) */







/* Artifact Rendering */

.artifact-markdown h1,
.artifact-markdown h2,
.artifact-markdown h3,





.artifact-markdown ul,










.artifact-markdown th,



/* Email Draft Rendering */

.email-field {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
}

.email-field-label {
  font-weight: 600;
  width: 80px;
  flex-shrink: 0;
  color: var(--text-light);
}

.email-field-value {
  color: var(--text);
}

.email-divider {
  border-top: 2px solid var(--border);
  margin: 0;
}

.email-body {
  padding: 1.5rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* Table Rendering */





/* Code Artifact Rendering */


/* List Artifact Rendering */


/* Text Artifact Rendering */

/* Mobile: Stack Vertically */
@media (max-width: 1024px) {
  .ai-split-container {
    flex-direction: column;
    gap: 12px;
    padding: 12px;
  }

  .ai-chat-panel {
    width: 100%;
    min-height: 50vh;
  }

  .ai-preview-panel {
    width: 100%;
    min-height: 50vh;
  }

  .preview-header {
    position: sticky;
    top: 0;
    z-index: 10;
  }
}

/* Adjust chat container to fill panel */




/* ============================================
   AI ASSISTANT LAYOUT - PHASE 6
   ============================================ */


/* Global Admin Rail (Fixed) */
.admin-rail {
  position: fixed;
  top: 0;
  left: 0;
  width: 48px;
  height: 100vh;
  background: #ffffff;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 8px;
  z-index: 50;
}

/* Right Rail (for AI Chat artifact history) */





.ai-rail-btn:hover .ai-rail-icon,

/* Badge for notifications */

/* Spacer pushes user button to bottom */

/* User initial button */



/* User Dropdown */
.user-dropdown {
  position: fixed;
  bottom: 60px;
  left: 56px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 16px;
  display: none;
  min-width: 200px;
  z-index: 100;
}

.user-dropdown.visible {
  display: block;
}

.user-dropdown-info {
  margin-bottom: 16px;
}

.user-dropdown-name {
  font-weight: 600;
  font-size: 16px;
  color: #1f2937;
}

.user-dropdown-title {
  font-size: 13px;
  color: #6b7280;
  margin-top: 2px;
}

.user-dropdown-email {
  font-size: 13px;
  color: #6b7280;
  margin-top: 4px;
}

.user-dropdown-signout {
  width: 100%;
  padding: 10px;
  background: #fee2e2;
  color: #dc2626;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: background-color 0.15s ease;
}

.user-dropdown-signout:hover {
  background: #fecaca;
}

/* Main Chat Area */

/* Chat Container with Purple Border */

/* Clear Chat Button */




/* Typing Indicator */




@keyframes typing-bounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-6px);
    opacity: 1;
  }
}






/* Artifact Preview Area */





/* Artifact History (Right Rail) */







/* Artifact display styling */









.artifact-table th,


/* File Browser */



.breadcrumb-btn {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.breadcrumb-btn:hover {
  background: #f3f4f6;
  color: #1f2937;
}

.breadcrumb-btn:last-child {
  color: #1f2937;
  font-weight: 500;
}




.file-search-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: #9ca3af;
  pointer-events: none;
}


.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.file-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #ffffff;
}

.file-item:hover {
  border-color: #7c3aed;
  background: #faf5ff;
}

.file-item.folder .file-icon {
  color: #7c3aed;
}

.file-item.document .file-icon {
  color: #14b8a6;
}

.file-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
}

.file-name {
  font-size: 13px;
  color: #1f2937;
  text-align: center;
  word-break: break-word;
  line-height: 1.3;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.file-meta {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 4px;
}

/* ================================================
   PHASE 2.5: METRIC CARDS & TABLES
   ================================================ */

/* Metric Cards */





/* Metrics Table */





.metrics-table tbody tr:hover {
  background: #f9fafb;
}







/* ============================================
   ANALYTICS MODULE STYLES
   ============================================ */

/* Analytics Container */
#analytics-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
}

/* Purple Category Tabs Container */

/* Purple Category Tab */



/* Turquoise Subtabs Container */


/* Turquoise Subtab */



/* Content Area */

/* Placeholder State */




/* Data Container (when subtab is selected) */

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





/* Responsive Design */
@media (max-width: 768px) {
  .analytics-category-tabs {
    padding: 16px;
    gap: 8px;
  }

  .analytics-category-tab {
    padding: 10px 16px;
    font-size: 13px;
  }

  .analytics-subtabs {
    padding: 12px 16px;
  }

  .analytics-subtab {
    padding: 6px 12px;
    font-size: 12px;
  }

  .analytics-content-area {
    padding: 16px;
  }

  .analytics-placeholder-icon {
    font-size: 48px;
  }

  .analytics-placeholder-text {
    font-size: 16px;
  }
}

/* ============================================
   ANALYTICS FILTERS STYLES
   ============================================ */

/* Filters Container */



/* Filter Dropdown */
.filter-dropdown {
  position: relative;
  display: inline-block;
}

.filter-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 120px;
}

.filter-dropdown-trigger:hover {
  border-color: var(--color-turquoise);
  background: #f9fafb;
}

.filter-label {
  flex: 1;
}

.filter-count {
  color: var(--color-turquoise);
  font-weight: 600;
  font-size: 12px;
}

.filter-arrow {
  font-size: 10px;
  color: #9ca3af;
  transition: transform 0.2s ease;
}

/* Filter Dropdown Menu */
.filter-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-width: 220px;
  max-height: 400px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.filter-dropdown-header {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.filter-select-all,
.filter-clear {
  background: none;
  border: none;
  color: var(--color-turquoise);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.filter-select-all:hover,
.filter-clear:hover {
  background: rgba(20, 184, 166, 0.1);
}

.filter-dropdown-options {
  overflow-y: auto;
  max-height: 320px;
  padding: 4px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s ease;
  font-size: 13px;
  color: #374151;
}

.filter-option:hover {
  background: #f9fafb;
}

.filter-option input[type="checkbox"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
}

.option-label {
  flex: 1;
}

.option-count {
  font-size: 11px;
  color: #9ca3af;
}

/* Text Search Filter */
.filter-text-search {
  display: inline-block;
}

.filter-search-input {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  min-width: 200px;
  transition: all 0.2s ease;
}

.filter-search-input:focus {
  outline: none;
  border-color: var(--color-turquoise);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

/* More Filters Toggle */
.more-filters-toggle {
  padding: 8px 12px;
  background: transparent;
  border: 1px dashed #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
}

.more-filters-toggle:hover {
  border-color: var(--color-turquoise);
  color: var(--color-turquoise);
  background: rgba(20, 184, 166, 0.05);
}

/* Date Range Filter */
.filter-date-range {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.filter-date-label {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  white-space: nowrap;
}

.filter-date-input {
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  color: #374151;
  transition: all 0.2s ease;
  min-width: 140px;
}

.filter-date-input:hover {
  border-color: var(--color-turquoise);
}

.filter-date-input:focus {
  outline: none;
  border-color: var(--color-turquoise);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.filter-date-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.filter-date-input::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* Hide default date placeholder text */
.filter-date-input::-webkit-datetime-edit-text,
.filter-date-input::-webkit-datetime-edit-month-field,
.filter-date-input::-webkit-datetime-edit-day-field,
.filter-date-input::-webkit-datetime-edit-year-field {
  color: transparent;
}

.filter-date-input:focus::-webkit-datetime-edit-text,
.filter-date-input:focus::-webkit-datetime-edit-month-field,
.filter-date-input:focus::-webkit-datetime-edit-day-field,
.filter-date-input:focus::-webkit-datetime-edit-year-field {
  color: #374151;
}

.filter-date-input:not(:placeholder-shown)::-webkit-datetime-edit-text,
.filter-date-input:not(:placeholder-shown)::-webkit-datetime-edit-month-field,
.filter-date-input:not(:placeholder-shown)::-webkit-datetime-edit-day-field,
.filter-date-input:not(:placeholder-shown)::-webkit-datetime-edit-year-field {
  color: #374151;
}

.filter-date-input[value]:not([value=""])::-webkit-datetime-edit-text,
.filter-date-input[value]:not([value=""])::-webkit-datetime-edit-month-field,
.filter-date-input[value]:not([value=""])::-webkit-datetime-edit-day-field,
.filter-date-input[value]:not([value=""])::-webkit-datetime-edit-year-field {
  color: #374151;
}

.filter-date-separator {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

/* Active Filter Pills */
.active-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 0;
  margin-top: 12px;
  border-top: 1px solid #e5e7eb;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--color-turquoise-light);
  border-radius: 16px;
  font-size: 12px;
  color: #ffffff;
  animation: slideIn 0.2s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.pill-label {
  font-weight: 600;
}

.pill-value {
  opacity: 0.9;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pill-remove {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  width: 18px;
  height: 18px;
  line-height: 1;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.pill-remove:hover {
  background: rgba(255, 255, 255, 0.2);
}

.clear-all-filters {
  padding: 6px 12px;
  background: transparent;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  font-size: 12px;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.2s ease;
}

.clear-all-filters:hover {
  border-color: #9ca3af;
  color: #374151;
  background: #f9fafb;
}

/* ============================================
   ANALYTICS TABLE STYLES
   ============================================ */

/* Table Container */
.analytics-users-container,
.analytics-creators-container,
.analytics-stickers-container,
.analytics-packs-container,





/* Table Styles */


/* --- Sticky header hardening for analytics tables --- */

/* 1) Remove sticky from thead (let TH handle it) */

/* 2) Make the whole header band opaque */

/* 3) Keep TH sticky and ensure it paints above body */



.sort-indicator {
  margin-left: 4px;
  font-size: 12px;
  color: var(--color-turquoise);
  font-weight: 700;
}




/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-active {
  background: #d1fae5;
  color: #065f46;
}

.status-suspended {
  background: #fee2e2;
  color: #991b1b;
}

.status-live {
  background: #d1fae5;
  color: #065f46;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-rejected {
  background: #fee2e2;
  color: #991b1b;
}

.status-restricted {
  background: #fde68a;
  color: #78350f;
}

.status-unmatched {
  background: #e5e7eb;
  color: #374151;
}

/* Empty State */

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state-text {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.empty-state-hint {
  font-size: 14px;
  color: #9ca3af;
}

/* Loading State */


/* Pagination Container */

/* Pagination */






/* Finance Summary Cards */
.finance-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  padding: 24px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.finance-summary-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  transition: all 0.2s ease;
}

.finance-summary-card:hover {
  border-color: var(--color-turquoise);
  box-shadow: 0 2px 8px rgba(20, 184, 166, 0.1);
}

.finance-summary-card.highlight {
  border-color: var(--color-turquoise);
  background: rgba(20, 184, 166, 0.05);
}

.summary-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #6b7280;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.summary-value {
  font-size: 32px;
  font-weight: 700;
  color: #111827;
  line-height: 1;
}

.summary-value.negative {
  color: #ef4444;
}

.summary-sublabel {
  font-size: 12px;
  color: #6b7280;
  margin-top: 8px;
  font-weight: 500;
}

/* Platform Breakdown */
.platform-breakdown {
  padding: 24px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.platform-breakdown h3 {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 16px;
}

.platform-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.platform-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
}

.platform-name {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 12px;
}

.platform-metrics {
  display: flex;
  flex-direction: column;
  gap: 8px;
}






/* Finance Container */

/* Responsive Design */
@media (max-width: 768px) {
  .analytics-filters-primary,
  .analytics-filters-more {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-dropdown-trigger {
    width: 100%;
  }

  .analytics-table-container {
    overflow-x: scroll;
  }

  .analytics-table {
    min-width: 800px;
  }

  .analytics-pagination-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .analytics-pagination {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .pill-value {
    max-width: 120px;
  }
}
