/* ==========================================================================
   CollabCrew - Admin Portal Stylesheet (Nexa Chat Inspired Luxury Light Theme)
   Modern, Clean, Crisp SaaS Management Studio | collabcrew.in
   ========================================================================== */

:root {
  --admin-bg: #f8f9fd;
  --admin-surface: #ffffff;
  --admin-surface-light: #f1f5f9;
  --admin-surface-hover: #f8fafc;
  --admin-border: #eef0f8;
  --admin-border-focus: #8b5cf6;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;

  --accent-purple: #8b5cf6;
  --accent-purple-light: #ede9fe;
  --accent-purple-dark: #6d28d9;
  --accent-purple-glow: rgba(139, 92, 246, 0.25);

  --accent-gold: #f59e0b;
  --accent-gold-light: #fef3c7;
  --accent-emerald: #10b981;
  --accent-emerald-light: #d1fae5;
  --accent-rose: #ef4444;
  --accent-rose-light: #fee2e2;
  --accent-blue: #3b82f6;
  --accent-blue-light: #dbeafe;
  --accent-cyan: #06b6d4;

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --sidebar-width: 250px;
  --sidebar-collapsed-width: 78px;
  --topbar-height: 70px;

  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.03);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);

  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--admin-bg);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ==========================================================================
   Admin Shell Layout (Left Sidebar + Right Main Area)
   ========================================================================== */
.admin-app-layout {
  display: flex;
  min-height: 100vh;
  background-color: var(--admin-bg);
  position: relative;
}

/* ==========================================================================
   Left Sidebar (Nexa Chat Style)
   ========================================================================== */
.admin-sidebar {
  width: var(--sidebar-width);
  background: #ffffff;
  border-right: 1px solid var(--admin-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 120;
  transition: var(--transition);
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.02);
}

.sidebar-brand-wrap {
  height: var(--topbar-height);
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
}

.sidebar-brand-left {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.sidebar-brand-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  border: 1.5px solid var(--accent-purple);
  box-shadow: 0 2px 8px var(--accent-purple-glow);
}

.sidebar-brand-info {
  display: flex;
  flex-direction: column;
}

.sidebar-brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.18rem;
  color: #0f172a;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.sidebar-badge-pill {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #7c3aed;
  background: var(--accent-purple-light);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  margin-top: 3px;
  width: fit-content;
}

.sidebar-toggle-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.sidebar-toggle-btn:hover {
  background: var(--accent-purple-light);
  color: var(--accent-purple-dark);
  border-color: #c4b5fd;
}

/* Sidebar Navigation Items */
.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: transparent;
  border: none;
  color: #64748b;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  text-align: left;
  text-decoration: none;
}

.sidebar-item i {
  font-size: 1.15rem;
  color: #94a3b8;
  transition: var(--transition);
  width: 20px;
  text-align: center;
}

.sidebar-item:hover {
  background: #f8fafc;
  color: #0f172a;
}

.sidebar-item:hover i {
  color: var(--accent-purple);
}

/* Active Tab Item - Exact Nexa Chat Appearance */
.sidebar-item.active {
  background: var(--accent-purple-light);
  color: var(--accent-purple-dark);
  font-weight: 700;
}

.sidebar-item.active i {
  color: var(--accent-purple);
}

.sidebar-item.active::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 15%;
  height: 70%;
  width: 4px;
  background: var(--accent-purple);
  border-radius: 4px 0 0 4px;
}

.sidebar-count-badge {
  margin-left: auto;
  padding: 2px 7px;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  color: #475569;
}

.sidebar-count-badge.danger {
  background: var(--accent-rose-light);
  color: var(--accent-rose);
}

.sidebar-count-badge.info {
  background: var(--accent-blue-light);
  color: var(--accent-blue);
}

.sidebar-count-badge.warning {
  background: var(--accent-gold-light);
  color: var(--accent-gold);
}

/* Sidebar Footer & Logout (Soft Red Pill) */
.sidebar-footer {
  padding: 14px 12px;
  border-top: 1px solid #f1f5f9;
}

.sidebar-logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 12px;
  background: var(--accent-rose-light);
  border: 1px solid #fecaca;
  color: #dc2626;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.sidebar-logout-btn:hover {
  background: #fca5a5;
  color: #991b1b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

/* ==========================================================================
   Right Main Area
   ========================================================================== */
.admin-main-wrap {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--admin-bg);
  transition: var(--transition);
  width: calc(100% - var(--sidebar-width));
}

/* Floating Topbar */
.admin-topbar {
  height: var(--topbar-height);
  background: #ffffff;
  border-bottom: 1px solid var(--admin-border);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  font-size: 1rem;
}

.topbar-icon-btn:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

.topbar-icon-btn.notif-bell i {
  color: #ef4444;
}

.notif-count-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: var(--radius-full);
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
}

.engine-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--accent-emerald-light);
  color: #065f46;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.btn-topbar-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.btn-topbar-outline:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

.superadmin-profile-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: var(--transition);
}

.superadmin-profile-pill:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.superadmin-avatar img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--accent-purple);
}

.superadmin-meta {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.superadmin-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.superadmin-email {
  font-size: 0.7rem;
  color: #64748b;
}

.superadmin-arrow {
  font-size: 0.7rem;
  color: #94a3b8;
}

/* ==========================================================================
   Admin Content Canvas
   ========================================================================== */
.admin-canvas {
  padding: 32px;
  flex: 1;
}

/* Nexa Chat Style Welcome Heading & Controls */
.nexa-welcome-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.nexa-welcome-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.nexa-welcome-sub {
  font-size: 0.95rem;
  color: #64748b;
  font-weight: 500;
}

.nexa-date-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.nexa-date-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

/* Nexa Chat Stat Cards Grid */
.nexa-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 24px 0 16px;
}

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

@media (max-width: 1200px) {
  .nexa-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .nexa-stats-grid {
    grid-template-columns: 1fr;
  }
}

.nexa-stat-card {
  background: #ffffff;
  border: 1px solid #edf2f7;
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.nexa-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(139, 92, 246, 0.12);
  border-color: #a78bfa;
}

.nexa-stat-card:active {
  transform: scale(0.98);
}

.nexa-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.nexa-touch-arrow {
  color: #94a3b8;
  font-size: 1.15rem;
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.nexa-stat-card:hover .nexa-touch-arrow {
  transform: translateX(4px);
  color: #8b5cf6;
}

.nexa-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #8b5cf6;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

.nexa-icon-box.gold {
  background: #f59e0b;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.nexa-icon-box.emerald {
  background: #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.nexa-icon-box.rose {
  background: #ef4444;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.nexa-stat-meta {
  display: flex;
  flex-direction: column;
}

.nexa-stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 4px;
}

.nexa-stat-value {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

/* ==========================================================================
   Admin Cards & Tables (Clean White SaaS Design)
   ========================================================================= */
.admin-card {
  background: #ffffff;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  color: var(--text-main);
  margin-bottom: 24px;
}

.admin-card-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--admin-border);
  flex-wrap: wrap;
  gap: 14px;
}

.admin-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-card-body {
  padding: 24px;
}

/* Toolbar & Filters */
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.admin-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  flex-grow: 1;
  max-width: 420px;
  transition: var(--transition);
}

.admin-search-wrap:focus-within {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px var(--accent-purple-glow);
}

.admin-search-wrap i {
  color: var(--text-muted);
}

.admin-search-input {
  background: transparent;
  border: none;
  color: #0f172a;
  font-size: 0.88rem;
  width: 100%;
  outline: none;
}

.admin-filter-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-select {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 9px 14px;
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.admin-select:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px var(--accent-purple-glow);
}

/* Filter Status Chips */
.status-chips-row {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.status-chip:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

.status-chip.active {
  background: var(--accent-purple-light);
  border-color: #c4b5fd;
  color: var(--accent-purple-dark);
  font-weight: 700;
}

/* Admin Card */
.admin-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  margin-bottom: 24px;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.admin-table th {
  background: #1e293b;
  padding: 13px 18px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 0.74rem;
  color: #94a3b8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
  color: #e2e8f0;
  background: #0f172a;
}

.admin-table tr:hover td {
  background: #131c31 !important;
}

/* Creator cell in table - Compact & Proportioned */
.creator-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.creator-cell-img {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid rgba(254, 189, 28, 0.4) !important;
  background: #0f172a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.creator-cell:hover .creator-cell-img {
  transform: scale(1.1);
  border-color: #febd1c !important;
}

.creator-cell-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.creator-cell-name {
  font-weight: 700;
  color: #ffffff;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.creator-cell-handle {
  font-size: 0.76rem;
  color: #818cf8;
}

.creator-avatar-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.creator-avatar-wrap img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #e2e8f0;
}

.creator-name-link {
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  font-size: 0.92rem;
}

.creator-name-link:hover {
  color: var(--accent-purple);
}

/* Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
}

.status-badge.approved {
  background: var(--accent-emerald-light);
  color: #065f46;
}

.status-badge.pending {
  background: var(--accent-gold-light);
  color: #92400e;
}

.status-badge.rejected {
  background: var(--accent-rose-light);
  color: #991b1b;
}

/* Pinned indicator & Button */
.pin-creator-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}

.pin-creator-btn.is-pinned {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

.pin-creator-btn.not-pinned {
  background: #f8fafc;
  color: #64748b;
  border-color: #e2e8f0;
}

.pin-creator-btn.not-pinned:hover {
  background: #fef3c7;
  color: #92400e;
  border-color: #fbbf24;
}

.pinned-indicator-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35);
}

/* Buttons */
.btn-admin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}

.btn-admin-primary {
  background: #8b5cf6;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
}

.btn-admin-primary:hover {
  background: #7c3aed;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
  color: #ffffff;
}

.btn-admin-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.btn-admin-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
  color: #000000;
}

.btn-admin-outline {
  background: #ffffff;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.btn-admin-outline:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

.btn-admin-danger {
  background: var(--accent-rose-light);
  color: #dc2626;
  border-color: #fecaca;
}

.btn-admin-danger:hover {
  background: #fca5a5;
  color: #991b1b;
}

.btn-admin-success {
  background: var(--accent-emerald-light);
  color: #065f46;
  border-color: #a7f3d0;
}

.btn-admin-success:hover {
  background: #6ee7b7;
  color: #064e3b;
}

/* Forms */
.admin-form-group {
  margin-bottom: 18px;
}

.admin-form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.admin-form-control {
  width: 100%;
  padding: 11px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  color: #0f172a;
  font-size: 0.88rem;
  font-family: var(--font-body);
  transition: var(--transition);
  outline: none;
}

.admin-form-control:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px var(--accent-purple-glow);
}

/* Modals */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.admin-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.admin-modal-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
  transform: translateY(20px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: #0f172a;
}

.admin-modal-overlay.active .admin-modal-box {
  transform: translateY(0);
}

.admin-modal-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
}

.admin-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.admin-modal-body {
  padding: 24px;
}

.admin-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Action Cell Stack & Horizontal Action Buttons */
.action-cell-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 190px;
}

.action-icons-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  max-width: 250px;
}

.btn-icon-action {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.85rem;
  text-decoration: none;
}

.btn-icon-action:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.btn-icon-action.pin { color: #fbbf24; }
.btn-icon-action.pin:hover { background: rgba(251, 191, 36, 0.18); border-color: rgba(251, 191, 36, 0.4); color: #fde68a; }
.btn-icon-action.pinned { background: linear-gradient(135deg, #f59e0b, #d97706); color: #ffffff; border-color: #f59e0b; }
.btn-icon-action.view { color: #38bdf8; }
.btn-icon-action.view:hover { background: rgba(56, 189, 248, 0.18); border-color: rgba(56, 189, 248, 0.4); color: #7dd3fc; }
.btn-icon-action.key { color: #a855f7; }
.btn-icon-action.key:hover { background: rgba(168, 85, 247, 0.18); border-color: rgba(168, 85, 247, 0.4); color: #c084fc; }
.btn-icon-action.project { color: #818cf8; }
.btn-icon-action.project:hover { background: rgba(99, 102, 241, 0.2); border-color: rgba(99, 102, 241, 0.4); color: #a5b4fc; }
.btn-icon-action.rate { color: #fbbf24; }
.btn-icon-action.rate:hover { background: rgba(251, 191, 36, 0.18); border-color: rgba(251, 191, 36, 0.4); color: #fde68a; }
.btn-icon-action.edit { color: #34d399; }
.btn-icon-action.edit:hover { background: rgba(52, 211, 153, 0.18); border-color: rgba(52, 211, 153, 0.4); color: #6ee7b7; }
.btn-icon-action.reject { color: #f87171; }
.btn-icon-action.reject:hover { background: rgba(248, 113, 113, 0.18); border-color: rgba(248, 113, 113, 0.4); color: #fca5a5; }
.btn-icon-action.delete { color: #ef4444; }
.btn-icon-action.delete:hover { background: rgba(239, 68, 68, 0.2); border-color: rgba(239, 68, 68, 0.5); color: #f87171; }

.pill-brand-collab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

/* ==========================================================================
   Admin Login Guard (Exclusive Admin Screen)
   ========================================================================== */
.admin-login-guard {
  position: fixed;
  inset: 0;
  background: #f8f9fd;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 40%);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.admin-login-guard.hidden,
#admin-login-guard.hidden,
.hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.admin-login-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

.login-header {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
}

.login-logo-img {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  object-fit: cover;
  border: 2px solid var(--accent-purple);
  box-shadow: 0 6px 20px var(--accent-purple-glow);
}

.login-lock-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-purple);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  border: 2px solid #ffffff;
}

.login-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.login-title span {
  color: var(--accent-purple);
}

.login-sub {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 6px;
  line-height: 1.5;
}

.login-error-alert {
  display: none;
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 18px;
  align-items: center;
  gap: 8px;
}



/* Toast */
.admin-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive */
@media (max-width: 991px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  .admin-sidebar.mobile-open {
    transform: translateX(0);
  }
  .admin-main-wrap {
    margin-left: 0;
    width: 100%;
  }
}

/* ==========================================================================
   Admin Topbar Notification Dropdown
   ========================================================================== */
.admin-notif-wrap {
  position: relative;
}

.admin-notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 390px;
  max-width: calc(100vw - 32px);
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: notifDropIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes notifDropIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.admin-notif-header {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.96);
}

.notif-unread-pill {
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 2px 8px;
  border-radius: 12px;
}

.btn-notif-icon-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.95rem;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-notif-icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.notif-filter-bar {
  display: flex;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.notif-filter-tab {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.notif-filter-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.notif-filter-tab.active {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.4);
  color: #c4b5fd;
}

.admin-notif-list {
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.15s ease;
  text-decoration: none;
}

.notif-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.notif-item.unread {
  background: rgba(139, 92, 246, 0.06);
  border-left: 3px solid #8b5cf6;
}

.notif-icon-disc {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.notif-icon-disc.gold {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
}

.notif-icon-disc.emerald {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
}

.notif-icon-disc.blue {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
}

.notif-icon-disc.purple {
  background: rgba(168, 85, 247, 0.18);
  color: #c084fc;
}

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

.notif-title {
  font-size: 0.83rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.notif-desc {
  font-size: 0.74rem;
  color: #94a3b8;
  margin-top: 2px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-time {
  font-size: 0.68rem;
  color: #64748b;
  margin-top: 4px;
}

.admin-notif-footer {
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.btn-notif-footer-link {
  background: transparent;
  border: none;
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.btn-notif-footer-link:hover {
  background: rgba(56, 189, 248, 0.1);
  color: #7dd3fc;
}

/* ==========================================================================
   Multi-Contact Number Hub Rows (Site Settings)
   ========================================================================== */
.multi-number-row {
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 14px;
  border-radius: 10px;
  flex-wrap: wrap;
  transition: border-color 0.2s ease;
}

.multi-number-row:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

/* ==========================================================================
   Financials & Revenue Analytics - Executive SaaS Dark Theme
   ========================================================================== */
.analytics-dashboard-wrap {
  padding: 4px 0 24px 0;
}

.timeframe-filter-bar {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px;
  border-radius: 12px;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.timeframe-chip {
  background: transparent;
  color: #94a3b8;
  border: none;
  padding: 7px 16px;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.timeframe-chip:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.timeframe-chip.active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
}

.btn-export-pdf {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 8px 18px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-export-pdf:hover {
  background: #ef4444;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
  transform: translateY(-1px);
}

.financial-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

@media (max-width: 1200px) {
  .financial-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .financial-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.kpi-card {
  position: relative;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.75), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 22px 24px;
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.3s ease;
}

.kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.kpi-card.gold::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.kpi-card.gold:hover { border-color: rgba(245, 158, 11, 0.45); }
.kpi-card.emerald::before { background: linear-gradient(90deg, #10b981, #34d399); }
.kpi-card.emerald:hover { border-color: rgba(16, 185, 129, 0.45); }
.kpi-card.blue::before { background: linear-gradient(90deg, #0284c7, #38bdf8); }
.kpi-card.blue:hover { border-color: rgba(2, 132, 199, 0.45); }
.kpi-card.purple::before { background: linear-gradient(90deg, #8b5cf6, #c084fc); }
.kpi-card.purple:hover { border-color: rgba(139, 92, 246, 0.45); }

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

.kpi-card-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kpi-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.kpi-card.gold .kpi-card-icon { background: rgba(245, 158, 11, 0.16); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.35); }
.kpi-card.emerald .kpi-card-icon { background: rgba(16, 185, 129, 0.16); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.35); }
.kpi-card.blue .kpi-card-icon { background: rgba(2, 132, 199, 0.16); color: #38bdf8; border: 1px solid rgba(2, 132, 199, 0.35); }
.kpi-card.purple .kpi-card-icon { background: rgba(139, 92, 246, 0.16); color: #c084fc; border: 1px solid rgba(139, 92, 246, 0.35); }

.kpi-card-val {
  font-size: 1.95rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.kpi-card.gold .kpi-card-val { color: #fde047; }
.kpi-card.emerald .kpi-card-val { color: #6ee7b7; }
.kpi-card.blue .kpi-card-val { color: #7dd3fc; }
.kpi-card.purple .kpi-card-val { color: #d8b4fe; }

.kpi-card-sub {
  font-size: 0.78rem;
  color: #94a3b8;
}

.charts-dual-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 992px) {
  .charts-dual-grid {
    grid-template-columns: 1fr;
  }
}

.chart-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.75), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px);
}

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

.chart-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.chart-card-sub {
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 4px 0 0 0;
}

/* ==========================================================================
   Trial Status & Visibility Badges
   ========================================================================== */
.badge-trial-active {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.badge-trial-expired {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(239, 68, 68, 0.16);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 800;
  animation: pulse-soft 2s infinite ease-in-out;
}

.badge-status-hidden {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 800;
}

.btn-icon-action.hide:hover {
  background: rgba(245, 158, 11, 0.18) !important;
  color: #fbbf24 !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
}

.btn-icon-action.unhide:hover {
  background: rgba(16, 185, 129, 0.18) !important;
  color: #34d399 !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
}

.btn-icon-action.trial-extend:hover {
  background: rgba(56, 189, 248, 0.18) !important;
  color: #38bdf8 !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
}

/* ==========================================================================
   Creator Password & Credentials UI (Table Badges, Modal & Action Buttons)
   ========================================================================== */
.creator-pwd-badge-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  background: rgba(245, 158, 11, 0.09);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 8px;
  padding: 3px 8px;
  transition: all 0.2s ease;
}

.creator-pwd-badge-row:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.45);
}

.creator-pwd-text {
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fef08a;
  letter-spacing: 0.5px;
}

.creator-pwd-icon-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 1px 3px;
  font-size: 0.76rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.creator-pwd-icon-btn:hover {
  color: #fbbf24;
  background: rgba(255, 255, 255, 0.08);
}

.creator-pwd-change-btn {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  border-radius: 5px;
  padding: 1px 7px;
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.15s ease;
}

.creator-pwd-change-btn:hover {
  background: #f59e0b;
  color: #0f172a;
  border-color: #f59e0b;
}

.btn-table-pwd-action {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.25));
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  border-radius: 7px;
  padding: 4px 9px;
  font-size: 0.74rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-table-pwd-action:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0f172a;
  border-color: #f59e0b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

/* Modal styling for Password Manager */
#creator-pwd-manager-modal .admin-modal-card,
#creator-pwd-manager-modal .admin-modal-box {
  background: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.7), 0 0 30px rgba(245, 158, 11, 0.18) !important;
  color: #ffffff !important;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#creator-pwd-manager-modal.active .admin-modal-card,
#creator-pwd-manager-modal.active .admin-modal-box {
  transform: translateY(0);
}

/* ==========================================================================
   Payment Requests Custom Table (Matches Target Design Specification)
   ========================================================================== */
.payment-request-card {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  margin-top: 24px;
}

.payment-request-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 16px;
}

.payment-request-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.payment-req-source-pill {
  display: inline-flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 8px;
  gap: 4px;
}

.payment-req-source-btn {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.18s ease;
}

.payment-req-source-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.payment-req-tabs-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.payment-req-tab-btn {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: #64748b;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  outline: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.payment-req-tab-btn:hover {
  color: #0f172a;
}

/* Specific styling for the 3 tabs matching the reference image */
.payment-req-tab-btn.tab-accepted.active {
  background-color: #d1fae5;
  color: #10b981;
  font-weight: 600;
}

.payment-req-tab-btn.tab-pending.active {
  background-color: #fef3c7;
  color: #b45309;
  font-weight: 600;
}

.payment-req-tab-btn.tab-declined.active {
  background-color: #fee2e2;
  color: #dc2626;
  font-weight: 600;
}

.payment-req-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.payment-req-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.payment-req-table thead tr {
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
}

.payment-req-table thead th {
  padding: 16px 20px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.payment-req-table tbody tr {
  border-bottom: 1px solid #f8fafc;
  transition: background-color 0.15s ease;
}

.payment-req-table tbody tr:hover {
  background-color: #fbfcfe;
}

.payment-req-table tbody td {
  padding: 18px 20px;
  font-size: 0.88rem;
  color: #1f2937;
  vertical-align: middle;
}

.payment-req-empty-cell {
  text-align: center !important;
  padding: 65px 20px !important;
  color: #6b7280 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.btn-payout-info {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-payout-info:hover {
  background: #8b5cf6;
  color: #ffffff;
  border-color: #8b5cf6;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.25);
}

/* Payment Request Tab Badges */
.payreq-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0 5px;
  margin-left: 4px;
}

.payreq-tab-badge.pending {
  background: #fef3c7;
  color: #b45309;
}

.payreq-tab-badge.accepted {
  background: #d1fae5;
  color: #065f46;
}

.payreq-tab-badge.declined {
  background: #fee2e2;
  color: #991b1b;
}

/* Modal for Payment Request Info & Action */
.payment-info-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.payment-info-modal-backdrop.active {
  display: flex;
}

.payment-info-modal-box {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid #e2e8f0;
  animation: modalScaleUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}


