/* ============================================
   MODERATION HUB — Premium Light Theme
   Design System v2.0
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* === BACKGROUNDS === */
  --bg:        #f4f6fb;
  --bg2:       #ebeef5;
  --card:      #ffffff;
  --card2:     #f8f9fc;
  --card3:     #f0f2f7;

  /* === BORDERS === */
  --border:    rgba(0,0,0, 0.06);
  --border2:   rgba(0,0,0, 0.10);

  /* === ACCENT — Sophisticated Violet === */
  --accent:    #7c5cfc;
  --accent-d:  #6344e0;
  --accent-l:  #a48dff;
  --accent-bg: rgba(124,92,252, 0.08);
  --accent-rgb: 124,92,252;

  /* === SEMANTIC === */
  --green:     #22c55e;  --green-bg: rgba(34,197,94, 0.10);
  --red:       #ef4444;  --red-bg:   rgba(239,68,68, 0.10);
  --orange:    #f59e0b;  --orange-bg:rgba(245,158,11, 0.10);
  --cyan:      #06b6d4;  --cyan-bg:  rgba(6,182,212, 0.10);
  --purple:    #a855f7;  --purple-bg:rgba(168,85,247, 0.10);
  --star:      #fbbf24;

  /* === TEXT === */
  --t1:        #1a1d2e;
  --t2:        #5a5f72;
  --t3:        #8b90a0;
  --t4:        #b8bcc8;

  /* === GEOMETRY === */
  --r:         12px;
  --r2:        16px;
  --r-btn:     8px;
  --tr:        0.22s cubic-bezier(0.4, 0, 0.2, 1);

  /* === SIDEBAR === */
  --sidebar-w: 260px;

  /* === SHADOWS === */
  --sh-sm:     0 1px 3px rgba(0,0,0, 0.04), 0 1px 2px rgba(0,0,0, 0.03);
  --sh-md:     0 4px 14px rgba(0,0,0, 0.06), 0 1px 3px rgba(0,0,0, 0.04);
  --sh-lg:     0 10px 30px rgba(0,0,0, 0.08), 0 4px 10px rgba(0,0,0, 0.04);
  --sh-accent: 0 4px 16px rgba(124,92,252, 0.25);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--t1);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 14px;
  line-height: 1.5;
}
* { scrollbar-width: none; }
*::-webkit-scrollbar { display: none; }

/* === ANIMATIONS === */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 currentColor; }
  50% { box-shadow: 0 0 0 4px transparent; }
}

/* ============================================
   LOGIN SCREEN
   ============================================ */
.login-overlay {
  position: fixed; inset: 0;
  background: linear-gradient(135deg, #f0f2ff 0%, #e8eafc 30%, #f5f3ff 60%, #fdf2f8 100%);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  animation: fadeIn 0.4s ease;
}

.login-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 36px;
  width: 100%; max-width: 400px;
  box-shadow: var(--sh-lg), 0 0 0 1px rgba(124,92,252, 0.04);
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-header {
  text-align: center;
  margin-bottom: 28px;
}
.login-header .brand-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-l) 100%);
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  box-shadow: var(--sh-accent);
}
.login-header .brand-icon svg {
  width: 28px; height: 28px;
  stroke: #fff; fill: none;
}
.login-header h2 {
  font-size: 22px; font-weight: 700;
  color: var(--t1);
  letter-spacing: -0.3px;
}
.login-header p {
  font-size: 13px; color: var(--t3);
  margin-top: 4px;
}

/* === FORM ELEMENTS === */
.form-group {
  margin-bottom: 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.form-group label {
  font-size: 12px; font-weight: 600;
  color: var(--t2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg);
  border: 1.5px solid var(--border2);
  border-radius: 10px;
  color: var(--t1);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: var(--tr);
}
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.10);
  background: var(--card);
}
.form-control::placeholder { color: var(--t4); }

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238b90a0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* === BUTTONS === */
.btn {
  border: none;
  border-radius: var(--r-btn);
  padding: 10px 18px;
  font-weight: 600;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: var(--tr);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.3;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-d) 100%);
  color: #fff;
  box-shadow: var(--sh-accent);
}
.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.35);
  transform: translateY(-1px);
}
.btn-primary:active { transform: scale(0.97) translateY(0); }

.btn-secondary {
  background: var(--card2);
  color: var(--t2);
  border: 1px solid var(--border2);
}
.btn-secondary:hover {
  background: var(--card3);
  color: var(--t1);
  border-color: var(--border2);
}

.btn-danger {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid rgba(239,68,68, 0.15);
}
.btn-danger:hover {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 14px rgba(239,68,68, 0.25);
}

.btn-icon {
  width: 34px; height: 34px;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--t3);
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-icon:hover { background: var(--card2); color: var(--t1); border-color: var(--border2); }
.btn-icon svg { width: 16px; height: 16px; }

/* ============================================
   APP LAYOUT
   ============================================ */
.app-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
  animation: fadeIn 0.35s ease;
}

/* === SIDEBAR === */
.sidebar {
  background: var(--card);
  border-right: 1px solid var(--border);
  padding: 24px 16px 20px;
  display: flex; flex-direction: column;
  justify-content: space-between;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
  box-shadow: 2px 0 10px rgba(0,0,0, 0.02);
}

.sidebar-header { padding: 0 8px; margin-bottom: 8px; }

.brand {
  display: flex; align-items: center; gap: 12px;
}
.brand-logo {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-l) 100%);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.2);
  flex-shrink: 0;
}
.brand-logo svg { width: 20px; height: 20px; stroke: #fff; fill: none; }
.brand-name {
  font-weight: 700; font-size: 16px;
  color: var(--t1);
  letter-spacing: -0.3px;
}

.sidebar-nav {
  display: flex; flex-direction: column; gap: 2px;
  margin-top: 20px; flex: 1;
}

.nav-tab {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--t2);
  font-weight: 500; font-size: 13.5px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--tr);
  position: relative;
}
.nav-tab svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  stroke: currentColor; fill: none;
  stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.nav-tab:hover {
  background: var(--bg);
  color: var(--t1);
}
.nav-tab.active {
  background: var(--accent-bg);
  color: var(--accent);
  font-weight: 600;
}
.nav-tab.active svg { stroke: var(--accent); }
.nav-tab.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 20px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

.sidebar-footer {
  padding: 16px 8px 0;
  border-top: 1px solid var(--border);
  margin-top: 12px;
}

.user-info {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.user-info-text {
  display: flex; flex-direction: column;
}
.user-info-name {
  font-weight: 600; font-size: 13px;
  color: var(--t1);
}
.user-info-role {
  font-size: 11px; font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.user-avatar {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-bg), var(--purple-bg));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ============================================
   CONTENT AREA
   ============================================ */
.content-area {
  padding: 28px 32px;
  overflow-y: auto;
  min-height: 100vh;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  animation: slideUp 0.35s ease;
}
.content-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -0.3px;
}
.content-header p {
  font-size: 13px;
  color: var(--t3);
  margin-top: 4px;
}
.header-actions {
  display: flex; gap: 8px; align-items: center;
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
  animation: slideUp 0.4s ease;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px 20px;
  display: flex; align-items: center; gap: 14px;
  transition: var(--tr);
}
.stat-card:hover {
  border-color: var(--border2);
  box-shadow: var(--sh-sm);
  transform: translateY(-1px);
}
.stat-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-icon svg { width: 20px; height: 20px; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.stat-icon.green { background: var(--green-bg); }
.stat-icon.green svg { stroke: var(--green); }
.stat-icon.red { background: var(--red-bg); }
.stat-icon.red svg { stroke: var(--red); }
.stat-icon.star { background: rgba(251,191,36, 0.10); }
.stat-icon.star svg { stroke: var(--star); }
.stat-icon.cyan { background: var(--cyan-bg); }
.stat-icon.cyan svg { stroke: var(--cyan); }
.stat-icon.purple { background: var(--purple-bg); }
.stat-icon.purple svg { stroke: var(--purple); }

.stat-info { display: flex; flex-direction: column; }
.stat-value { font-size: 22px; font-weight: 800; color: var(--t1); line-height: 1.1; }
.stat-label { font-size: 11px; font-weight: 500; color: var(--t3); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }

/* ============================================
   MEDIA GRID
   ============================================ */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  animation: fadeIn 0.4s ease;
}

.media-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: var(--tr);
  position: relative;
}
.media-card:hover {
  border-color: var(--border2);
  box-shadow: var(--sh-md);
  transform: translateY(-3px);
}

.media-preview {
  height: 250px;
  background: #111319;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.media-preview img,
.media-preview video {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  transition: transform 0.3s ease;
}
.media-card:hover .media-preview img,
.media-card:hover .media-preview video {
  transform: scale(1.02);
}

.media-badge {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0,0,0, 0.65);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.media-info {
  padding: 12px 14px 8px;
  display: flex; align-items: center; gap: 8px;
}
.media-channel-icon {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--accent-bg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.media-channel-icon svg { width: 12px; height: 12px; stroke: var(--accent); fill: none; }
.media-channel-name {
  font-size: 12px; font-weight: 600;
  color: var(--t2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.card-actions {
  padding: 6px 10px 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.card-actions button {
  padding: 7px 4px;
  font-size: 11px; font-weight: 500;
  border: 1px solid var(--border);
  background: var(--card2);
  color: var(--t2);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--tr);
  display: flex; align-items: center; justify-content: center; gap: 4px;
  font-family: inherit;
}
.card-actions button svg {
  width: 14px; height: 14px;
  stroke-width: 2;
  fill: none; stroke: currentColor;
  stroke-linecap: round; stroke-linejoin: round;
}
.card-actions button:hover {
  border-color: transparent;
}
.card-actions button.act-approve:hover { background: var(--green-bg); color: var(--green); }
.card-actions button.act-reject:hover  { background: var(--red-bg); color: var(--red); }
.card-actions button.act-star:hover    { background: rgba(251,191,36,0.12); color: var(--star); }
.card-actions button.act-archive:hover { background: var(--purple-bg); color: var(--purple); }

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
  grid-column: 1 / -1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 20px;
  animation: fadeIn 0.5s ease;
}
.empty-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--card2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.empty-icon svg { width: 28px; height: 28px; stroke: var(--t4); fill: none; }
.empty-title {
  font-size: 15px; font-weight: 600;
  color: var(--t2);
  margin-bottom: 4px;
}
.empty-text {
  font-size: 13px;
  color: var(--t3);
}

/* ============================================
   LOADING SKELETON
   ============================================ */
.loading-text {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--t3);
  padding: 60px 20px;
  font-size: 14px;
  font-weight: 500;
}

/* ============================================
   CARD COMPONENT
   ============================================ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 24px;
  transition: var(--tr);
  animation: slideUp 0.4s ease;
}
.card:hover {
  border-color: var(--border2);
  box-shadow: var(--sh-sm);
}
.card h3 {
  font-size: 15px; font-weight: 700;
  color: var(--t1);
  margin-bottom: 4px;
}
.card .card-subtitle {
  font-size: 12px; color: var(--t3);
  margin-bottom: 16px;
}

/* ============================================
   TABLE
   ============================================ */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
}
.table thead th {
  text-align: left;
  font-size: 11px; font-weight: 600;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 6px 14px;
}
.table tbody tr {
  background: var(--card2);
  transition: var(--tr);
}
.table tbody tr:hover {
  background: var(--card3);
}
.table tbody td {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--t1);
  vertical-align: middle;
}
.table tbody td:first-child { border-radius: 10px 0 0 10px; }
.table tbody td:last-child { border-radius: 0 10px 10px 0; }

/* ============================================
   BADGES
   ============================================ */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.3px;
}
.badge::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; flex-shrink: 0;
}
.badge-admin { background: var(--accent-bg); color: var(--accent); }
.badge-admin::before { background: var(--accent); box-shadow: 0 0 6px rgba(var(--accent-rgb), 0.4); }
.badge-mod { background: var(--cyan-bg); color: var(--cyan); }
.badge-mod::before { background: var(--cyan); box-shadow: 0 0 6px rgba(6,182,212, 0.4); }
.badge-user { background: var(--green-bg); color: var(--green); }
.badge-user::before { background: var(--green); box-shadow: 0 0 6px rgba(34,197,94, 0.4); }

.badge-yes { background: var(--green-bg); color: var(--green); }
.badge-no { background: var(--card2); color: var(--t3); }

/* ============================================
   PAGINATION
   ============================================ */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  animation: fadeIn 0.3s ease;
}
.pagination-container button {
  min-width: 36px; height: 36px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--t2);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px; font-weight: 500;
  transition: var(--tr);
  font-family: inherit;
}
.pagination-container button:hover {
  background: var(--card2);
  border-color: var(--border2);
  color: var(--t1);
}
.pagination-container button.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.25);
}

/* ============================================
   TOAST
   ============================================ */
.toast-container {
  position: fixed;
  top: 24px; right: 24px;
  z-index: 1000;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px 18px;
  min-width: 280px;
  box-shadow: var(--sh-lg);
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 500;
  color: var(--t1);
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.toast-icon svg { width: 16px; height: 16px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.toast.toast-success .toast-icon { background: var(--green-bg); }
.toast.toast-success .toast-icon svg { stroke: var(--green); }
.toast.toast-success { border-left: 3px solid var(--green); }
.toast.toast-error .toast-icon { background: var(--red-bg); }
.toast.toast-error .toast-icon svg { stroke: var(--red); }
.toast.toast-error { border-left: 3px solid var(--red); }
.toast.toast-info .toast-icon { background: var(--accent-bg); }
.toast.toast-info .toast-icon svg { stroke: var(--accent); }
.toast.toast-info { border-left: 3px solid var(--accent); }

/* ============================================
   VIEW PANELS
   ============================================ */
.view-panel {
  animation: fadeIn 0.35s ease;
}

/* ============================================
   FORM GRID (USERS)
   ============================================ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 14px;
  align-items: end;
}

/* ============================================
   CONFIRM MODAL
   ============================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0, 0.3);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.2s ease;
}
.modal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  width: 100%; max-width: 420px;
  box-shadow: var(--sh-lg);
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-card h3 {
  font-size: 16px; font-weight: 700; color: var(--t1);
  margin-bottom: 8px;
}
.modal-card p {
  font-size: 13px; color: var(--t2);
  line-height: 1.6;
  margin-bottom: 20px;
}
.modal-actions {
  display: flex; gap: 10px; justify-content: flex-end;
}

/* ============================================
   TAG PILLS
   ============================================ */
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  border: 1px solid var(--border2);
  background: var(--card);
  color: var(--t2);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.tag-pill:hover {
  border-color: var(--accent-l);
  color: var(--accent);
  background: var(--accent-bg);
}
.tag-pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Tag badge on media card */
.tag-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(124,92,252,0.85);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.media-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.media-preview {
  position: relative;
}

/* ============================================
   PAGINATION
   ============================================ */
.pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border2);
  background: var(--card);
  color: var(--t2);
  font-size: 13px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pg-btn:hover:not(:disabled) {
  border-color: var(--accent-l);
  color: var(--accent);
  background: var(--accent-bg);
}
.pg-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.pg-btn.pg-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ============================================
   MULTI SELECTION & BULK TOOLBAR
   ============================================ */
.media-card.selected {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  box-shadow: 0 0 16px rgba(124, 92, 252, 0.25);
}

.card-checkbox {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.45);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.card-checkbox:hover {
  border-color: #fff;
  background: rgba(124, 92, 252, 0.6);
}

.card-checkbox.checked {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.bulk-bar {
  position: sticky;
  bottom: 20px;
  z-index: 100;
  margin: 16px 0 0;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border2);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.bulk-info {
  font-weight: 600;
  font-size: 13px;
  color: var(--t1);
}

.bulk-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .app-layout {
    grid-template-columns: 1fr;
  }
  .sidebar { display: none; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .content-area { padding: 16px; }
  .media-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .stats-bar { grid-template-columns: 1fr 1fr; gap: 10px; }
  .form-grid { grid-template-columns: 1fr; }
}
