/* ==========================================================
   GLOBAL DESIGN SYSTEM & TOKENS
   ========================================================== */
:root {
  --bg-darker: #050609;
  --bg-dark: #090c12;
  --bg-panel: rgba(13, 20, 35, 0.45);
  --bg-panel-hover: rgba(18, 28, 48, 0.6);
  --bg-panel-solid: #0d121f;
  
  --primary: #00f0ff;      /* Cyan Neon */
  --primary-glow: 0 0 15px rgba(0, 240, 255, 0.4);
  --accent: #0066ff;       /* Blue Neon */
  --accent-glow: 0 0 15px rgba(0, 102, 255, 0.4);
  --accent-alt: #cc33ff;   /* Activeness Incentive Magenta */
  --accent-alt-glow: 0 0 15px rgba(204, 51, 255, 0.4);
  
  --success: #10b981;
  --success-glow: 0 0 12px rgba(16, 185, 129, 0.3);
  --warning: #f59e0b;
  --danger: #ef4444;
  --danger-glow: 0 0 12px rgba(239, 68, 68, 0.3);
  
  --text-main: #f1f5f9;
  --text-sub: #94a3b8;
  --text-muted: #64748b;
  
  --border-glass: rgba(0, 240, 255, 0.08);
  --border-glass-hover: rgba(0, 240, 255, 0.2);
  --border-glass-accent: rgba(0, 102, 255, 0.15);
  
  --shadow-neon: 0 8px 32px 0 rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 240, 255, 0.05);
  --font-family: 'Outfit', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-darker);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 10% 10%, rgba(0, 102, 255, 0.05) 0px, transparent 50%),
    radial-gradient(at 90% 90%, rgba(0, 240, 255, 0.05) 0px, transparent 50%);
  background-attachment: fixed;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
  box-shadow: var(--primary-glow);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}
a:hover {
  text-shadow: var(--primary-glow);
  color: #fff;
}

/* ==========================================================
   VIEW CONTAINER & CORE LAYOUT
   ========================================================== */
.view-container {
  display: none;
  min-height: 100vh;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.view-container.active {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translateY(0);
}

/* Glassmorphism Panel Base */
.glass-panel {
  background: var(--bg-panel);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  box-shadow: var(--shadow-neon);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: var(--border-glass-hover);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.1);
}

/* ==========================================================
   1. LOGIN PAGE STYLES
   ========================================================== */
#login-view {
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Glowing Background Orbs */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  pointer-events: none;
  animation: pulse-orb 8s infinite alternate ease-in-out;
}
.orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(0, 102, 255, 0.12);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}
.orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(0, 240, 255, 0.12);
  bottom: -100px;
  right: -100px;
  animation-delay: 3s;
}

@keyframes pulse-orb {
  0% { transform: scale(1) translate(0px, 0px); opacity: 0.8; }
  100% { transform: scale(1.2) translate(30px, -20px); opacity: 1; }
}

/* Background Brand Logo - Extremely Transparent (High transparency) & Glowing */
.login-background-logo-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  width: min(80vw, 750px);
  height: min(80vw, 750px);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-bg-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.08; /* Very transparent, close to brand */
  filter: drop-shadow(0 0 50px rgba(0, 240, 255, 0.3)); /* Glowing blue effects matching brand */
  animation: float-logo 12s infinite ease-in-out;
}

@keyframes float-logo {
  0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); filter: drop-shadow(0 0 40px rgba(0, 240, 255, 0.25)); }
  50% { transform: translateY(-15px) rotate(2deg) scale(1.02); filter: drop-shadow(0 0 60px rgba(0, 240, 255, 0.45)); }
}

/* Login Card Structure */
.login-card-wrapper {
  z-index: 2;
  width: 100%;
  max-width: 450px;
  padding: 20px;
}

.login-card {
  padding: 40px 35px;
  border-radius: 24px;
  border: 1px solid rgba(0, 240, 255, 0.15);
}

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

.login-logo {
  width: 75px;
  height: 75px;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.3));
}

.login-header h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.login-header .subtitle {
  color: var(--text-sub);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 4px;
}

/* Form Groups */
.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-sub);
  letter-spacing: 0.5px;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--transition-smooth);
}

.input-wrapper input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(8, 12, 21, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 16px 12px 42px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: var(--transition-smooth);
  font-family: var(--font-family);
}

.form-group select,
.form-group textarea {
  padding-left: 16px; /* dropdown doesn't need input icons in modal forms */
}

.input-wrapper input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2), inset 0 0 5px rgba(0, 240, 255, 0.05);
  background: rgba(8, 12, 21, 0.85);
}

.input-wrapper input:focus + .input-icon {
  color: var(--primary);
  filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.5));
}

.forgot-link {
  font-size: 12px;
  color: var(--text-muted);
}
.forgot-link:hover {
  color: var(--primary);
}

/* Error Message */
.error-text {
  color: var(--danger);
  font-size: 13px;
  margin-top: -10px;
  margin-bottom: 15px;
  text-shadow: 0 0 5px rgba(239, 68, 68, 0.2);
}

.hidden {
  display: none !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
  font-family: var(--font-family);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: #fff;
  border: none;
  position: relative;
  overflow: hidden;
  box-shadow: var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.6), 0 0 30px rgba(0, 102, 255, 0.3);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-alt) 0%, var(--accent) 100%);
  color: #fff;
  border: none;
  box-shadow: var(--accent-alt-glow);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(204, 51, 255, 0.6), 0 0 30px rgba(0, 102, 255, 0.3);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary);
  color: #fff;
  box-shadow: var(--primary-glow);
}

.btn-xs {
  padding: 6px 12px;
  font-size: 11px;
  border-radius: 6px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
  border-radius: 8px;
}



/* ==========================================================
   2. DASHBOARD COMMON LAYOUT (Creator & Admin)
   ========================================================== */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  margin: 15px 20px;
  border-radius: 16px;
  background: rgba(13, 20, 35, 0.6);
  z-index: 10;
}

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

.brand-logo {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.2));
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge-primary {
  background: rgba(0, 240, 255, 0.12);
  color: var(--primary);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.badge-accent {
  background: rgba(0, 102, 255, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(0, 102, 255, 0.35);
}

.badge-success {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-glow {
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
  background: rgba(0, 240, 255, 0.15);
  color: var(--primary);
  border: 1px solid rgba(0, 240, 255, 0.4);
}

.badge-glow-alt {
  box-shadow: 0 0 10px rgba(204, 51, 255, 0.25);
  background: rgba(204, 51, 255, 0.15);
  color: #e879f9;
  border: 1px solid rgba(204, 51, 255, 0.4);
}

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

/* Notification Button & Dropdown */
.notification-wrapper {
  position: relative;
}

.icon-button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sub);
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
}

.icon-button:hover {
  background: rgba(0, 240, 255, 0.05);
  border-color: var(--primary);
  color: #fff;
  box-shadow: var(--primary-glow);
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

.notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--danger);
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 5px rgba(239, 68, 68, 0.5);
}

.notification-dropdown {
  position: absolute;
  right: 0;
  top: 50px;
  width: 380px;
  max-height: 480px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  border: 1px solid rgba(0, 240, 255, 0.15);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 20, 35, 0.8);
}

.dropdown-header h3 {
  font-size: 14px;
  font-weight: 600;
}

.btn-text-only {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.btn-text-only:hover {
  text-shadow: var(--primary-glow);
  color: #fff;
}

.dropdown-list {
  overflow-y: auto;
  max-height: 400px;
  background: rgba(9, 13, 22, 0.95);
}

.empty-state {
  padding: 30px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.notif-item {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

.notif-item.unread {
  background: rgba(0, 240, 255, 0.03);
  border-left: 3px solid var(--primary);
}

.notif-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notif-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.notif-time {
  font-size: 10px;
  color: var(--text-muted);
}

.notif-body {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.4;
}

.notif-item.important .notif-title {
  color: var(--warning);
  text-shadow: 0 0 5px rgba(245, 158, 11, 0.2);
}

/* User Profile Header details */
.profile-card {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  box-shadow: var(--primary-glow);
}

.profile-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.profile-info p {
  font-size: 11px;
  color: var(--text-sub);
}

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

.dashboard-content {
  flex: 1;
  padding: 10px 20px 40px;
}

/* ==========================================================
   3. CREATOR PORTAL STYLES
   ========================================================== */
/* Suspended Banner */
.suspended-banner {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--danger);
  border-radius: 12px;
  padding: 15px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fca5a5;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--danger-glow);
  animation: pulse-border-danger 2s infinite alternate ease-in-out;
}

@keyframes pulse-border-danger {
  0% { border-color: rgba(239, 68, 68, 0.4); box-shadow: 0 0 10px rgba(239, 68, 68, 0.1); }
  100% { border-color: rgba(239, 68, 68, 1); box-shadow: 0 0 20px rgba(239, 68, 68, 0.3); }
}

.suspended-banner svg {
  width: 20px;
  height: 20px;
  color: var(--danger);
  flex-shrink: 0;
}

/* Suspended View State Overlay */
.suspended-view-lock {
  pointer-events: none;
  filter: blur(4px) grayscale(80%);
  opacity: 0.65;
}

/* Dashboard Responsive Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.span-12 { grid-column: span 12; }
.span-8 { grid-column: span 8; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }

.card {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  color: #fff;
  border-left: 3px solid var(--primary);
  padding-left: 10px;
  line-height: 1;
}

/* Creator Overview Metric Box Grid */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* For wider layouts, standard grid. For smaller, auto wraps */
@media (max-width: 1200px) {
  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.metric-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.metric-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.metric-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.metric-value {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.text-glow {
  text-shadow: var(--primary-glow);
  color: var(--primary);
}

.gbp-payout-subtitle {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  text-shadow: var(--primary-glow);
  margin-top: 4px;
  letter-spacing: 0.5px;
}

.metric-value.highlight {
  color: #fff;
  text-shadow: var(--accent-glow);
}

.text-sm {
  font-size: 13px !important;
  font-weight: 500 !important;
}

.metric-trend {
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
}
.metric-trend.up { color: var(--success); }
.metric-trend.down { color: var(--danger); }

/* Core Metrics Layout Splits */
.core-metrics-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
  align-items: center;
}

@media (max-width: 900px) {
  .core-metrics-split {
    grid-template-columns: 1fr;
  }
}

.core-metrics-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sub-metric {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sub-metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-sub);
}

.metric-value-sm {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

/* Glowing Progress Bars */
.progress-bar-container {
  height: 8px;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  border-radius: 4px;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.1, 0.8, 0.2, 1);
  position: relative;
}

.glow-primary {
  background: linear-gradient(90deg, var(--accent), var(--primary));
  box-shadow: var(--primary-glow);
}

.glow-accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-alt));
  box-shadow: var(--accent-glow);
}

.glow-success {
  background: linear-gradient(90deg, #059669, var(--success));
  box-shadow: var(--success-glow);
}

.glow-alt {
  background: linear-gradient(90deg, var(--accent-alt), #f472b6);
  box-shadow: var(--accent-alt-glow);
}



/* Incentive Cards */
.card-header-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-header-badge .card-title {
  margin-bottom: 0;
}

.incentive-progress-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.incentive-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-sub);
}

.status-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 500;
}

/* Announcement Board timeline */
.announcements-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 5px;
}

.timeline-item {
  position: relative;
  padding: 15px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.timeline-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(0, 240, 255, 0.1);
}

.timeline-item.important {
  border-left: 3px solid var(--warning);
  background: rgba(245, 158, 11, 0.02);
}

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

.timeline-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

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

.timeline-body {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.5;
  white-space: pre-line;
}

/* ==========================================================
   4. SUPER ADMIN PORTAL STYLES
   ========================================================== */
.admin-tabs-nav {
  display: flex;
  gap: 10px;
  padding: 8px;
  margin-bottom: 25px;
  border-radius: 12px;
  background: rgba(13, 20, 35, 0.4);
}

.tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--text-sub);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: var(--font-family);
}

.tab-btn svg {
  width: 16px;
  height: 16px;
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
  background: rgba(0, 240, 255, 0.08);
  color: var(--primary);
  border: 1px solid rgba(0, 240, 255, 0.2);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.05);
}

.tab-btn.active svg {
  color: var(--primary);
  filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.4));
}

.admin-tab-content {
  display: none;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.admin-tab-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Creators Database Actions & Table */
.table-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 20px;
}

@media (max-width: 600px) {
  .table-actions-row {
    flex-direction: column;
    align-items: stretch;
  }
}

.search-box-wrapper {
  position: relative;
  flex: 1;
  max-width: 450px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.search-box-wrapper input {
  width: 100%;
  background: rgba(13, 20, 35, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 11px 16px 11px 42px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: var(--transition-smooth);
  font-family: var(--font-family);
}

.search-box-wrapper input:focus {
  border-color: var(--primary);
  box-shadow: var(--primary-glow);
  background: rgba(13, 20, 35, 0.8);
}

/* Glassmorphism Table Card */
.table-card {
  border-radius: 16px;
  overflow: hidden;
}

.scrollable-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

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

.data-table th,
.data-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
  vertical-align: middle;
}

.data-table th {
  background: rgba(9, 13, 22, 0.5);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.data-table tr {
  transition: var(--transition-smooth);
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.015);
}

/* Profile cell info */
.table-profile-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.creator-name-strong {
  font-weight: 600;
  color: #fff;
}

.creator-email-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.action-buttons-cell {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.icon-btn-action {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sub);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.icon-btn-action:hover {
  color: #fff;
}

.icon-btn-action.edit-btn:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--primary);
  box-shadow: var(--primary-glow);
}

.icon-btn-action.suspend-btn.active:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--danger);
  box-shadow: var(--danger-glow);
}

.icon-btn-action.suspend-btn.inactive:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--success);
  box-shadow: var(--success-glow);
}

.icon-btn-action.delete-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: var(--danger);
  box-shadow: var(--danger-glow);
  color: var(--danger);
}

.icon-btn-action svg {
  width: 15px;
  height: 15px;
}

/* ==========================================================
   5. LEADERBOARD VIEW STYLES
   ========================================================== */
.leaderboard-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.leaderboard-podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
  padding: 40px 20px 20px;
  background: rgba(13, 20, 35, 0.2);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.02);
  margin-top: 20px;
}

@media (max-width: 768px) {
  .leaderboard-podium {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
}

.podium-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 200px;
}

.podium-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid;
}

.avatar-glow-wrapper {
  position: relative;
  border-radius: 50%;
  margin-bottom: 15px;
}

.avatar-glow-wrapper::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  z-index: -1;
  opacity: 0.5;
  filter: blur(8px);
}

.avatar-glow-wrapper.gold .podium-avatar { border-color: #f59e0b; }
.avatar-glow-wrapper.gold::after { background: #f59e0b; }

.avatar-glow-wrapper.silver .podium-avatar { border-color: #cbd5e1; }
.avatar-glow-wrapper.silver::after { background: #cbd5e1; }

.avatar-glow-wrapper.bronze .podium-avatar { border-color: #b45309; }
.avatar-glow-wrapper.bronze::after { background: #b45309; }

.crown {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
}

.podium-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

.podium-tiktok {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.podium-bar {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 10px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  background: linear-gradient(180deg, rgba(13, 20, 35, 0.8) 0%, rgba(5, 8, 16, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: none;
}

.first-place .podium-avatar {
  width: 96px;
  height: 96px;
}
.first-place .podium-bar {
  height: 140px;
  border-color: rgba(245, 158, 11, 0.2);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, rgba(5, 8, 16, 0.9) 100%);
}
.second-place .podium-bar {
  height: 105px;
  border-color: rgba(203, 213, 225, 0.2);
  background: linear-gradient(180deg, rgba(203, 213, 225, 0.05) 0%, rgba(5, 8, 16, 0.9) 100%);
}
.third-place .podium-bar {
  height: 80px;
  border-color: rgba(180, 83, 9, 0.2);
  background: linear-gradient(180deg, rgba(180, 83, 9, 0.05) 0%, rgba(5, 8, 16, 0.9) 100%);
}

.rank-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
  color: var(--text-muted);
}
.first-place .rank-title { color: #f59e0b; }
.second-place .rank-title { color: #cbd5e1; }
.third-place .rank-title { color: #b45309; }

.podium-diamonds {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

/* Leaderboard flat list */
.leaderboard-list-card {
  padding: 24px;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.leaderboard-item:hover {
  background: rgba(0, 240, 255, 0.01);
  border-color: rgba(0, 240, 255, 0.08);
}

.item-rank {
  width: 35px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-muted);
}

.item-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.item-details {
  flex: 1;
  display: flex;
  align-items: center;
}

.item-name-handle {
  display: flex;
  flex-direction: column;
}

.item-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

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

.item-diamonds {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-shadow: var(--primary-glow);
}

/* ==========================================================
   6. ANNOUNCEMENT & BROADCAST VIEW
   ========================================================== */
.admin-two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 25px;
}

@media (max-width: 1024px) {
  .admin-two-col {
    grid-template-columns: 1fr;
  }
}

.history-container-card {
  max-height: 520px;
}

.announcements-history-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  overflow-y: auto;
  padding-right: 5px;
}

.announcement-history-item {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.01);
  border-radius: 12px;
  position: relative;
}

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

.history-target {
  font-size: 10px;
  background: rgba(0, 240, 255, 0.08);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.history-delete-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.history-delete-btn:hover {
  color: var(--danger);
}

.form-group-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.form-group-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.form-group-checkbox label {
  font-size: 13px;
  color: var(--text-sub);
  user-select: none;
  cursor: pointer;
}

/* ==========================================================
   7. IMPORT/EXPORT VIEW
   ========================================================== */
.drag-drop-zone {
  border: 2px dashed rgba(0, 240, 255, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.01);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.drag-drop-zone:hover,
.drag-drop-zone.dragover {
  border-color: var(--primary);
  background: rgba(0, 240, 255, 0.03);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.05);
}

.drop-icon {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.drag-drop-zone:hover .drop-icon {
  color: var(--primary);
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.4));
}

.drop-text {
  font-size: 14px;
  color: var(--text-sub);
}

.hidden-input {
  display: none !important;
}

.csv-helper-box {
  background: rgba(5, 8, 16, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.csv-helper-box h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.csv-helper-box code {
  display: block;
  font-family: monospace;
  font-size: 11px;
  color: var(--primary);
  word-break: break-all;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px;
  border-radius: 6px;
  border: 1px solid rgba(0, 240, 255, 0.05);
}

.import-log-box {
  background: rgba(16, 185, 129, 0.03);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
  color: #a7f3d0;
  line-height: 1.4;
}

.export-buttons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}

@media (max-width: 600px) {
  .export-buttons-grid {
    grid-template-columns: 1fr;
  }
}

.info-alert {
  display: flex;
  align-items: flex-start;
  background: rgba(0, 102, 255, 0.05);
  border: 1px solid rgba(0, 102, 255, 0.2);
  border-radius: 12px;
  padding: 15px;
  font-size: 12px;
  color: #93c5fd;
  line-height: 1.5;
}

/* ==========================================================
   8. MODALS (CREATE/EDIT CREATOR)
   ========================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 4, 6, 0.75);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  width: 100%;
  max-width: 750px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  border-color: rgba(0, 240, 255, 0.2);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 240, 255, 0.08);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.close-btn:hover {
  color: var(--primary);
  filter: drop-shadow(0 0 3px var(--primary));
}

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

.modal-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 15px;
  margin-bottom: 15px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(0, 240, 255, 0.15);
}

.modal-section-title:first-child {
  margin-top: 0;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 18px;
}

.col-6 { width: 50%; }
.col-4 { width: 33.33%; }
.col-3 { width: 25%; }

@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
    gap: 18px;
  }
  .col-6, .col-4, .col-3 {
    width: 100%;
  }
}

.modal-footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: rgba(9, 13, 22, 0.6);
}

/* Image Upload Widget */
.image-upload-preview-row {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(8, 12, 21, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 12px;
}

.upload-preview {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--primary);
}

.file-uploader {
  font-size: 11px;
  color: var(--text-sub);
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  cursor: pointer;
}

/* ==========================================================
   9. MISCELLANEOUS UTILITIES
   ========================================================== */
/* Glowing SVG elements */


/* Smooth Navigation/Tab Transitions */
.view-container, .admin-tab-content {
  will-change: opacity, transform;
}

/* ==========================================================
   ADVANCED LEADERBOARD STYLING
   ========================================================== */
.creator-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 8px;
  margin: 0 20px 20px;
  border-radius: 12px;
  background: rgba(13, 20, 35, 0.4);
}

.creator-tabs-nav .tab-btn {
  flex: 0 1 220px;
  text-align: center;
  justify-content: center;
}

.creator-tab-view {
  display: none;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.creator-tab-view.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.tab-view-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}



/* Leaderboard filter dropdowns styling */
.filter-dropdown-wrapper {
  display: flex;
  align-items: center;
}

.sort-select {
  background: rgba(8, 12, 21, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-family);
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.sort-select:focus {
  border-color: var(--primary);
  box-shadow: var(--primary-glow);
}

.sort-select option {
  background: var(--bg-panel-solid);
  color: #fff;
}


/* ==========================================================
   ADVANCED ANNOUNCEMENTS WIDGET & PRIORITY STYLING
   ========================================================== */
.timeline-item.urgent {
  border-left: 4px solid var(--danger);
  background: rgba(239, 68, 68, 0.03);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.1);
  animation: pulse-border-urgent 2.5s infinite alternate ease-in-out;
}

@keyframes pulse-border-urgent {
  0% { border-color: rgba(239, 68, 68, 0.4); box-shadow: 0 0 10px rgba(239, 68, 68, 0.1); }
  100% { border-color: rgba(239, 68, 68, 1); box-shadow: 0 0 25px rgba(239, 68, 68, 0.35); }
}

.priority-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
}

.priority-tag.normal {
  background: rgba(100, 116, 139, 0.15);
  color: var(--text-sub);
  border: 1px solid rgba(100, 116, 139, 0.25);
}

.priority-tag.important {
  background: rgba(245, 158, 11, 0.12);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
  text-shadow: 0 0 4px rgba(245, 158, 11, 0.2);
}

.priority-tag.urgent {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
  text-shadow: 0 0 4px rgba(239, 68, 68, 0.3);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.15);
}

.timeline-item.read {
  opacity: 0.55;
  filter: grayscale(30%);
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.03);
  background: rgba(255, 255, 255, 0.005);
}

.timeline-item.read:hover {
  opacity: 0.85;
  filter: none;
  background: rgba(255, 255, 255, 0.015);
}

.timeline-item-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 15px;
}

.timeline-item-meta-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--text-muted);
}

.timeline-item-meta-info strong {
  color: var(--text-sub);
}

.timeline-item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

#creator-profile-notif-badge {
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
}



/* ==========================================================
   CREATOR OVERVIEW WIDGET (STREAMLINED PROFILE CARD)
   ========================================================== */
.creator-overview-card {
  padding: 24px;
}

.creator-overview-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.overview-avatar-wrapper {
  position: relative;
  display: inline-block;
}

.overview-avatar-wrapper::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  z-index: 1;
  opacity: 0.7;
}

.creator-large-avatar {
  position: relative;
  z-index: 2;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-panel);
}

.creator-overview-details h2 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.creator-overview-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.creator-overview-meta .tiktok-handle {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  text-shadow: var(--primary-glow);
}

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

/* Responsive adjustment for mobile overview */
@media (max-width: 576px) {
  .creator-overview-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .creator-overview-meta {
    flex-direction: column;
    gap: 8px;
  }
  .creator-overview-meta .divider {
    display: none;
  }
}

/* ==========================================================
   DIAMOND STATISTICS GRID AND CARDS
   ========================================================== */
.diamond-stats-card {
  padding: 24px;
}

.diamond-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.sync-timestamp-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-sub);
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sync-timestamp-text::before {
  content: '⏰';
  font-size: 12px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.stat-box:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

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

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-icon {
  font-size: 16px;
  opacity: 0.8;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  font-family: 'Outfit', sans-serif;
}

/* Responsive grid adjustments */
@media (max-width: 992px) {
  .diamond-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ==========================================================
   TIKTOK LIVE BACKSTAGE SYNC & UPDATE ANIMATIONS
   ========================================================== */
.status-indicator-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

.status-indicator-dot.online {
  background: var(--success);
  box-shadow: 0 0 8px var(--success), 0 0 15px rgba(16, 185, 129, 0.5);
  animation: pulse-dot 2s infinite alternate ease-in-out;
}

@keyframes pulse-dot {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.25); opacity: 1; }
}

/* Glowing flash animation for real-time dashboard updates */
.live-updated-flash {
  animation: card-update-glow 1.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes card-update-glow {
  0% {
    box-shadow: 0 0 0 0px rgba(0, 240, 255, 0);
    border-color: rgba(0, 240, 255, 0.15);
  }
  15% {
    box-shadow: 0 0 20px 4px rgba(0, 240, 255, 0.35);
    border-color: rgba(0, 240, 255, 0.8);
    background: rgba(0, 240, 255, 0.03);
  }
  100% {
    box-shadow: 0 0 0 0px rgba(0, 240, 255, 0);
    border-color: rgba(255, 255, 255, 0.05);
  }
}

/* ==========================================================
   HISTORICAL PERFORMANCE ANALYTICS WIDGET
   ========================================================== */
.historical-analytics-card {
  padding: 24px;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.chart-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.chart-box:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.chart-box h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}

.chart-canvas-wrapper {
  position: relative;
  height: 220px;
  width: 100%;
}

/* ==========================================================
   10. RESPONSIVE DESIGN SYSTEM & BREAKPOINTS
   ========================================================== */

/* --- TABLET BREAKPOINT (768px – 1023px) --- */
@media (max-width: 1023px) and (min-width: 768px) {
  .app-header {
    padding: 14px 20px;
    margin: 12px 16px;
  }

  .dashboard-content {
    padding: 10px 16px 30px;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .span-12 { grid-column: span 2; }
  .span-8, .span-6, .span-4 { grid-column: span 1; }

  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

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

  .charts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .charts-grid .chart-box:nth-child(3) {
    grid-column: span 2;
  }

  .gifter-badge-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .gifter-output-panel {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px;
  }

  .card {
    padding: 20px;
  }

  .card-title {
    font-size: 15px;
  }

  .scrollable-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* --- MOBILE BREAKPOINT (767px and below: 320px, 375px, 390px, 414px) --- */
@media (max-width: 767px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  .app-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 16px;
    margin: 10px 10px 15px;
  }

  .header-left {
    justify-content: space-between;
    width: 100%;
  }

  .header-right {
    justify-content: space-between;
    width: 100%;
  }

  .profile-card {
    flex: 1;
  }

  .dashboard-content {
    padding: 5px 10px 30px;
  }

  /* Force single vertical column for all dashboard cards */
  .dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
  }

  .span-12, .span-8, .span-6, .span-4 {
    width: 100%;
    grid-column: span 1 / -1;
  }

  .card {
    padding: 16px 14px;
    width: 100%;
  }

  .card-title {
    font-size: 15px;
    margin-bottom: 15px;
    padding-left: 8px;
  }

  .card-header-badge {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
  }

  /* Creator Overview Profile Card */
  .creator-overview-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 14px;
  }

  .creator-overview-meta {
    flex-direction: column;
    gap: 6px;
  }

  .creator-overview-meta .divider {
    display: none;
  }

  .overview-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Diamond Statistics Grid */
  .diamond-stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-box {
    padding: 14px;
  }

  .stat-value {
    font-size: 20px;
  }

  /* Historical Analytics Charts Grid */
  .charts-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .charts-grid .chart-box:nth-child(3) {
    grid-column: span 1;
  }
  .chart-canvas-wrapper {
    height: 180px;
  }

  /* Gifter Badge Calculator Card */
  .gifter-badge-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .gifter-output-panel {
    grid-template-columns: 1fr !important;
    gap: 12px;
    padding: 14px !important;
  }

  /* Incentive Card Progress Items */
  .incentive-label-row, .sub-metric-header, .status-summary-row {
    flex-wrap: wrap;
    gap: 4px 10px;
  }

  .progress-bar-container {
    width: 100%;
  }

  /* Touch Targets for Buttons (Minimum 44px height) */
  .btn {
    min-height: 44px;
    padding: 12px 18px;
    font-size: 14px;
    width: 100%;
    justify-content: center;
  }

  .btn-sm, .btn-xs {
    min-height: 38px;
    padding: 8px 14px;
  }

  .input-wrapper input,
  .form-group select,
  .form-group textarea,
  .search-box-wrapper input {
    min-height: 44px;
    font-size: 14px;
  }

  /* Admin & Creator Navigation Tabs Bar */
  .admin-tabs-nav, .creator-tabs-nav {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 6px;
    gap: 8px;
    width: 100%;
  }

  .tab-btn {
    flex: 0 0 auto;
    padding: 10px 14px;
    min-height: 44px;
    font-size: 13px;
  }

  /* Admin Data Table Responsiveness */
  .table-actions-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .search-box-wrapper {
    max-width: 100%;
    width: 100%;
  }

  .scrollable-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
  }

  .data-table th, .data-table td {
    padding: 12px 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  /* Admin Leaderboard Podium */
  .leaderboard-podium {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
  .podium-col {
    width: 100%;
    order: unset !important;
  }

  /* Notification Dropdown full screen modal width on mobile */
  .notification-dropdown {
    width: min(calc(100vw - 20px), 360px);
    right: 50%;
    transform: translateX(50%);
  }

  /* Badges Wrapping */
  .badge {
    white-space: normal;
    word-break: break-word;
    max-width: 100%;
  }
}

/* --- EXTRA SMALL MOBILE (320px – 375px) --- */
@media (max-width: 375px) {
  .app-header {
    padding: 10px 12px;
    margin: 8px 6px 12px;
  }
  
  .card {
    padding: 14px 10px;
  }

  .creator-large-avatar {
    width: 60px;
    height: 60px;
  }

  .creator-overview-details h2 {
    font-size: 20px;
  }

  .stat-value {
    font-size: 18px;
  }
}

/* ==========================================================
   11. UNIFIED AVATAR SYSTEM & USER PROFILE MENU STYLING
   ========================================================== */
.avatar-img-component {
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--primary);
  box-shadow: var(--primary-glow);
  aspect-ratio: 1 / 1;
}

.avatar-initial-component {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--primary);
  box-shadow: var(--primary-glow);
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
  user-select: none;
  font-family: var(--font-family);
  text-transform: uppercase;
  aspect-ratio: 1 / 1;
}

/* User Profile Navigation Dropdown Menu */
.user-profile-dropdown {
  position: absolute;
  top: 55px;
  right: 0;
  width: 260px;
  background: rgba(9, 13, 22, 0.96);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.85), 0 0 20px rgba(0, 240, 255, 0.15);
  padding: 10px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-menu-header {
  padding: 8px 12px 6px;
  display: flex;
  flex-direction: column;
}

.profile-menu-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.profile-menu-email {
  font-size: 11px;
  color: var(--primary);
  margin-top: 2px;
  word-break: break-all;
}

.profile-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 0;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: var(--transition-smooth);
  font-family: var(--font-family);
}

.profile-menu-item svg {
  flex-shrink: 0;
}

.profile-menu-item:hover {
  background: rgba(0, 240, 255, 0.1);
  color: var(--primary);
}

.profile-menu-item.danger {
  color: var(--danger);
}

.profile-menu-item.danger:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}

/* Maintain Tier & Rank Up Target Metric Styles */
.incentive-metric-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.incentive-target-val {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 2px;
  font-family: 'Outfit', var(--font-family);
}

.incentive-status-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  white-space: nowrap;
}

.incentive-status-badge.status-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.incentive-status-badge.status-pending {
  background: rgba(0, 240, 255, 0.1);
  color: var(--primary);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.stat-value-sm {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}

.incentive-status-badge.status-not-maintained {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.incentive-status-badge.status-upgrade-glow {
  background: rgba(204, 51, 255, 0.18);
  color: #e879f9;
  border: 1px solid rgba(204, 51, 255, 0.4);
  box-shadow: 0 0 12px rgba(204, 51, 255, 0.3);
}

.progress-bar.glow-danger {
  background: linear-gradient(90deg, #ef4444, #f87171);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
}

.incentive-remaining-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Outfit', var(--font-family);
}
