/* =============================================
   LinkIndex Pro - Main Stylesheet
   ============================================= */

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

/* =============================================
   CSS VARIABLES / DESIGN TOKENS
   ============================================= */
:root {
  /* Brand Colors */
  --primary:        #c4ff2e; /* Neon Green */
  --primary-dark:   #a8e600;
  --primary-light:  #d6ff66;
  --primary-glow:   rgba(196, 255, 46, 0.4);
  --primary-text:   #5b7a00; /* High contrast green for text */

  --secondary:      #06b6d4;
  --accent:         #f59e0b;
  --success:        #10b981;
  --danger:         #ef4444;
  --warning:        #f59e0b;
  --info:           #3b82f6;

  /* Light Theme */
  --bg-base:        #f3f4f6;
  --bg-surface:     #ffffff;
  --bg-card:        #ffffff;
  --bg-elevated:    #ffffff;
  --bg-hover:       #f9fafb;
  --border:         #e5e7eb;
  --border-light:   #d1d5db;

  /* Text */
  --text-primary:   #111827;
  --text-secondary: #374151;
  --text-muted:     #6b7280;

  /* Sidebar */
  --sidebar-width:  260px;

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:  0 4px 6px rgba(0,0,0,0.05);
  --shadow-lg:  0 10px 15px rgba(0,0,0,0.05);
  --shadow-glow:0 0 20px var(--primary-glow);

  /* Radii (Half of previous) */
  --radius-sm:  3px;
  --radius-md:  5px;
  --radius-lg:  8px;
  --radius-xl:  12px;

  /* Transitions */
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   BASE STYLES
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--primary-text); text-decoration: none; transition: var(--transition); border-bottom: 1px solid transparent; }
a:hover { color: var(--primary-dark); border-bottom-color: var(--primary-dark); }

img { max-width: 100%; }

/* =============================================
   SCROLLBAR CUSTOM
   ============================================= */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* =============================================
   LAYOUT - APP SHELL
   ============================================= */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
  transition: var(--transition-slow);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-glow);
}

.sidebar-logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-primary);
}

.sidebar-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 24px 20px 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  margin: 2px 8px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.nav-item.active {
  background: rgba(196, 255, 46, 0.15); /* Very subtle lime tint */
  color: var(--text-primary);
  font-weight: 600;
  border: 1px solid transparent;
  border-right: 4px solid var(--primary);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.nav-item.active::before {
  display: none;
}

.nav-item i { width: 18px; font-size: 0.9rem; opacity: 0.8; }
.nav-badge {
  margin-left: auto;
  background: var(--primary);
  color: #111827;
  font-size: 10px; font-weight: 800;
  padding: 3px 8px;
  border-radius: 99px;
  box-shadow: var(--shadow-sm);
}

.sidebar-user {
  margin-top: auto;
  padding: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.875rem;
  flex-shrink: 0;
}

.sidebar-user-info { flex: 1; overflow: hidden; }
.sidebar-user-name { font-size: 0.875rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 11px; color: var(--text-muted); text-transform: capitalize; }

/* =============================================
   MAIN CONTENT
   ============================================= */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* =============================================
   TOPBAR
   ============================================= */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 64px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 900;
  backdrop-filter: blur(12px);
}

.topbar-title { font-size: 1.1rem; font-weight: 700; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }

.btn-icon {
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-secondary);
}
.btn-icon:hover { background: var(--bg-hover); border-color: var(--border-light); color: var(--text-primary); }

/* =============================================
   PAGE CONTENT
   ============================================= */
.page-content { padding: 28px; flex: 1; }

/* =============================================
   CARDS
   ============================================= */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

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

.card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title { font-size: 0.9rem; font-weight: 700; }
.card-body { padding: 22px; }

/* =============================================
   STAT CARDS
   ============================================= */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  border-radius: 50%;
  opacity: 0.05;
  transform: translate(20px, -20px);
}

.stat-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px rgba(0,0,0,0.03);
}

.stat-card.primary::before  { background: var(--primary); }
.stat-card.success::before  { background: var(--success); }
.stat-card.warning::before  { background: var(--warning); }
.stat-card.danger::before   { background: var(--danger); }
.stat-card.info::before     { background: var(--info); }

.stat-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}

.stat-icon.primary { background: rgba(196, 255, 46, 0.3); color: #111827; }
.stat-icon.success { background: #dcfce7; color: #16a34a; }
.stat-icon.warning { background: #fef3c7; color: #d97706; }
.stat-icon.danger  { background: #fee2e2; color: #dc2626; }
.stat-icon.info    { background: #dbeafe; color: #2563eb; }

.stat-value { font-size: 2.2rem; font-weight: 800; line-height: 1; margin: 4px 0 0; color: var(--text-primary); letter-spacing: -1px; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; }
.stat-change { font-size: 0.75rem; font-weight: 600; }
.stat-change.up   { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #111827; /* Dark text on lime green */
  border-color: var(--primary);
  font-weight: 700;
  box-shadow: 0 0 15px rgba(196,255,46,0.2);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(196,255,46,0.4);
  color: #111827;
}

.btn-secondary {
  background: #ffffff;
  color: #374151;
  border: 1px solid #d1d5db;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn-secondary:hover { border-color: #9ca3af; background: #f9fafb; color: #111827; }

.btn-danger  { background: rgba(239,68,68,0.15); color: var(--danger); border-color: rgba(239,68,68,0.3); }
.btn-danger:hover  { background: var(--danger); color: #fff; }

.btn-success { background: rgba(16,185,129,0.15); color: var(--success); border-color: rgba(16,185,129,0.3); }
.btn-success:hover { background: var(--success); color: #fff; }

.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 13px 28px; font-size: 1rem; }

.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* =============================================
   FORMS
   ============================================= */
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control, .form-select {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: var(--bg-card);
}

.form-control::placeholder { color: var(--text-muted); }
.form-select option { background: var(--bg-card); }

.form-group { margin-bottom: 18px; }

.input-group {
  display: flex;
  align-items: stretch;
}

.input-group .form-control { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.input-group .btn { border-radius: 0 var(--radius-md) var(--radius-md) 0; }

.input-addon {
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* =============================================
   BADGES
   ============================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-pending    { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }
.badge-processing { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.badge-indexed    { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.badge-failed     { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.badge-skipped    { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.badge-primary    { background: var(--primary-glow); color: #111827; border: 1px solid var(--primary); }
.badge-free       { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }
.badge-pro        { background: var(--primary-glow); color: #111827; border: 1px solid var(--primary); }
.badge-agency     { background: #f5f3ff; color: #7c3aed; border: 1px solid #ddd6fe; }
.badge-admin      { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

/* =============================================
   TABLES
   ============================================= */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.table th {
  background: var(--bg-elevated);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: middle;
}

.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--bg-hover); }

.table .url-cell {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =============================================
   PROGRESS BAR
   ============================================= */
.progress {
  background: var(--bg-elevated);
  border-radius: 99px;
  height: 6px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.6s ease;
}

/* =============================================
   AUTH PAGES
   ============================================= */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-base);
  position: relative;
  overflow: hidden;
  padding: 40px 20px;
}

.auth-bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.auth-bg-orbs::before {
  content: '';
  position: absolute;
  top: -200px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
  animation: floatOrb 8s ease-in-out infinite;
}

.auth-bg-orbs::after {
  content: '';
  position: absolute;
  bottom: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(6,182,212,0.1) 0%, transparent 70%);
  animation: floatOrb 10s ease-in-out infinite reverse;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(40px, 40px); }
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px;
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.4s ease;
}

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

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  justify-content: center;
}

.auth-logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-glow);
}

.auth-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.auth-subtitle { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 28px; }

/* =============================================
   PLAN CARDS (Pricing)
   ============================================= */
.plan-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.plan-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 40px rgba(99,102,241,0.15);
}

.plan-badge {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--primary);
  color: #111827;
  font-size: 11px; font-weight: 800;
  padding: 6px 14px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  box-shadow: 0 4px 8px rgba(196, 255, 46, 0.3);
}

.plan-price { font-size: 2.5rem; font-weight: 800; line-height: 1; }
.plan-price sup { font-size: 1.2rem; font-weight: 600; vertical-align: top; margin-top: 8px; }
.plan-price span { font-size: 0.9rem; font-weight: 400; color: var(--text-muted); }
.plan-feature { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 0.875rem; }
.plan-feature i.check { color: var(--success); }
.plan-feature i.times { color: var(--text-muted); }

/* =============================================
   LOADING / SPINNER
   ============================================= */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.15);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

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

.page-loader {
  position: fixed; inset: 0;
  background: var(--bg-base);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s;
}

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

.empty-state-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.empty-state p  { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 24px; }

/* =============================================
   TOASTS / ALERTS
   ============================================= */
.toast-container {
  position: fixed;
  top: 20px; right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast-msg {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: slideInRight 0.3s ease;
  min-width: 280px;
  max-width: 400px;
}

.toast-msg.success { border-color: rgba(16,185,129,0.4); }
.toast-msg.error   { border-color: rgba(239,68,68,0.4); }
.toast-msg.info    { border-color: rgba(59,130,246,0.4); }

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

/* =============================================
   MOBILE HAMBURGER
   ============================================= */
.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 1rem;
}

/* =============================================
   SIDEBAR OVERLAY (Mobile)
   ============================================= */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 999;
  backdrop-filter: blur(4px);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }

  .main-content { margin-left: 0; }

  .sidebar-overlay.active { display: block; }
  .mobile-toggle { display: flex; align-items: center; }

  .page-content { padding: 20px 16px; }

  .stat-card { padding: 16px; }
  .stat-value { font-size: 1.4rem; }
}

@media (max-width: 640px) {
  .auth-card { padding: 28px 24px; }
  .topbar { padding: 0 16px; }
  .table-wrapper { font-size: 0.8rem; }
}

/* =============================================
   UTILITY CLASSES
   ============================================= */
.text-primary   { color: var(--primary-text) !important; }
.text-success   { color: var(--success) !important; }
.text-danger    { color: var(--danger) !important; }
.text-warning   { color: var(--warning) !important; }
.text-muted     { color: var(--text-muted) !important; }
.text-secondary { color: var(--text-secondary) !important; }

.gradient-text {
  background: linear-gradient(135deg, var(--primary-text), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

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

@media(max-width:768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

@media(min-width:576px) and (max-width:992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

.flex-between { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.w-100 { width: 100%; }

/* =============================================
   DROPDOWN MENU
   ============================================= */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-width: 180px;
  box-shadow: var(--shadow-md);
  z-index: 1000;
  overflow: hidden;
  display: none;
  animation: fadeDown 0.2s ease;
}

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

.dropdown.open .dropdown-menu { display: block; }

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.dropdown-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.dropdown-item.danger { color: var(--danger); }
.dropdown-item.danger:hover { background: rgba(239,68,68,0.1); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* =============================================
   PAGINATION (Bootstrap-compatible classes)
   ============================================= */
.pagination {
  display: flex;
  list-style: none;
  gap: 4px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  justify-content: center;
}

.page-item .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--bg-card);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.page-item .page-link:hover { background: var(--bg-hover); color: var(--text-primary); border-color: var(--border-light); }
.page-item.active .page-link { background: var(--primary); color: #111827; border-color: var(--primary); font-weight: 700; box-shadow: 0 2px 8px var(--primary-glow); }
.page-item.disabled .page-link { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* =============================================
   BTN-SUCCESS (was missing)
   ============================================= */
.btn-success {
  background: var(--success);
  color: #ffffff;
  font-weight: 600;
}
.btn-success:hover { background: #059669; transform: translateY(-1px); }

/* =============================================
   SWEETALERT2 – Custom Input Overrides
   ============================================= */
.swal2-popup { border-radius: 16px !important; box-shadow: 0 20px 60px rgba(0,0,0,0.15) !important; }
.swal2-title  { font-size: 1.15rem !important; font-weight: 800 !important; color: #111827 !important; }
.swal2-input, .swal2-select, .swal2-textarea {
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-size: 0.875rem !important;
  background: #f9fafb !important;
  color: #111827 !important;
  box-shadow: none !important;
  margin: 6px 0 !important;
}
.swal2-input:focus, .swal2-select:focus {
  border-color: var(--primary) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px var(--primary-glow) !important;
}
.swal2-validation-message {
  background: rgba(239,68,68,0.08) !important;
  color: var(--danger) !important;
  border-radius: 6px !important;
  border: 1px solid rgba(239,68,68,0.3) !important;
  font-size: 0.82rem !important;
}
.swal2-confirm { border-radius: 8px !important; font-size: 0.875rem !important; padding: 10px 20px !important; }
.swal2-cancel  { border-radius: 8px !important; font-size: 0.875rem !important; padding: 10px 20px !important; color: #6b7280 !important; }

/* =============================================
   BADGE IMPROVEMENTS – Admin specific
   ============================================= */
.badge-admin   { background: rgba(248,113,113,0.15); color: #dc2626; border: 1px solid rgba(248,113,113,0.3); }
.badge-agency  { background: rgba(245,158,11,0.15);  color: #b45309; border: 1px solid rgba(245,158,11,0.3); }
.badge-pro     { background: rgba(99,102,241,0.12);  color: #4338ca; border: 1px solid rgba(99,102,241,0.3); }
.badge-free    { background: rgba(107,114,128,0.1);  color: #374151; border: 1px solid rgba(107,114,128,0.2); }
.badge-indexed { background: rgba(16,185,129,0.12);  color: #047857; border: 1px solid rgba(16,185,129,0.3); }
.badge-pending { background: rgba(245,158,11,0.12);  color: #92400e; border: 1px solid rgba(245,158,11,0.25); }
.badge-failed  { background: rgba(239,68,68,0.1);    color: #b91c1c; border: 1px solid rgba(239,68,68,0.25); }
.badge-processing { background: rgba(59,130,246,0.1); color: #1d4ed8; border: 1px solid rgba(59,130,246,0.25); }
.badge-active  { background: rgba(16,185,129,0.12);  color: #047857; border: 1px solid rgba(16,185,129,0.3); }
.badge-suspended { background: rgba(239,68,68,0.1);  color: #b91c1c; border: 1px solid rgba(239,68,68,0.25); }
.badge-primary { background: rgba(196,255,46,0.15);  color: var(--primary-text); border: 1px solid rgba(196,255,46,0.4); }

/* All badges base */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: capitalize;
}

/* =============================================
   MB-6 UTILITY 
   ============================================= */
.mb-6 { margin-bottom: 24px; }
.w-100 { width: 100%; }
.justify-content-center { justify-content: center; }
