:root {
  --bg-primary: #0a0d14;
  --bg-secondary: #101623;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-card-hover: rgba(25, 34, 54, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.3);
  
  --accent-cyan: #00f0ff;
  --accent-gold: #ffd700;
  --accent-pink: #ff2a85;
  --accent-green: #10b981;
  --accent-red: #ef4444;

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-glow: 0 0 25px rgba(0, 240, 255, 0.15);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 240, 255, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(255, 215, 0, 0.03) 0%, transparent 40%);
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: relative;
}

.sidebar-close-btn {
  display: none;
}

.sidebar-backdrop {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 28px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--accent-cyan), #0077ff);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.4);
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #fff;
}

.brand-title span {
  color: var(--accent-cyan);
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.nav-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  transition: var(--transition);
}

.nav-item a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  transform: translateX(4px);
}

.nav-item.active a {
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.15), rgba(0, 240, 255, 0.02));
  color: var(--accent-cyan);
  border-left: 3px solid var(--accent-cyan);
  font-weight: 600;
}

/* Main Container */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-y: auto;
}

.top-bar {
  min-height: 72px;
  border-bottom: 1px solid var(--border-color);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 13, 20, 0.75);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 16px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.mobile-toggle-btn {
  display: none;
}

.page-title {
  font-size: 1.35rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.action-bar {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.content-body {
  padding: 32px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Glass Cards & Containers */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

/* Metric Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  position: relative;
  overflow: hidden;
}

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

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  font-weight: 600;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 10px 0 4px;
  color: #fff;
  letter-spacing: -1px;
}

.stat-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Channel Cards Grid */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
  margin-bottom: 36px;
}

.channel-layout-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
}

.channel-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-left: 4px solid var(--accent-cyan);
}

.channel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.channel-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.channel-niche {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  font-weight: 600;
  text-transform: uppercase;
}

.channel-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.25);
  padding: 12px;
  border-radius: var(--radius-sm);
}

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

.meta-val {
  color: #fff;
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), #0077ff);
  color: #06090e;
  box-shadow: 0 2px 14px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-scheduled {
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.badge-posted {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-failed {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

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

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

.table-custom th {
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1px solid var(--border-color);
}

.table-custom td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
}

.table-custom tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.92rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* Flash Messages */
.flash-container {
  margin-bottom: 24px;
}

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fcd34d;
}

/* -----------------------------------------------------------------------------
   Active Task & Live Progress Styles
   ----------------------------------------------------------------------------- */
.task-card {
  background: rgba(18, 24, 38, 0.9);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  position: relative;
  transition: var(--transition);
  animation: fadeIn 0.3s ease-out;
}

.task-card.completed {
  border-left-color: var(--accent-green);
}

.task-card.failed {
  border-left-color: var(--accent-red);
}

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

.task-channel-tag {
  font-weight: 700;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.task-meta-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.task-time {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: monospace;
}

.task-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 2px 6px;
  border-radius: 4px;
  transition: var(--transition);
}

.task-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.task-url-text {
  font-size: 0.84rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 600px;
  margin-bottom: 14px;
}

.task-progress-track {
  width: 100%;
  height: 9px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.task-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0077ff, var(--accent-cyan));
  border-radius: 10px;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.5);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.task-card.completed .task-progress-fill {
  background: linear-gradient(90deg, #059669, var(--accent-green));
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.5);
}

.task-card.failed .task-progress-fill {
  background: var(--accent-red);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.5);
}

/* Steps progress tracker */
.task-steps-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

@media (max-width: 768px) {
  .task-steps-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

.task-step-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: var(--transition);
}

.task-step-pill.active {
  background: rgba(0, 240, 255, 0.12);
  color: var(--accent-cyan);
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
  animation: pulse-glow 2s infinite ease-in-out;
}

.task-step-pill.completed {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
  border-color: rgba(16, 185, 129, 0.3);
}

.task-status-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.task-message {
  font-size: 0.82rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.spin-icon {
  display: inline-block;
  animation: spin 1.2s linear infinite;
}

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

@keyframes pulse-glow {
  0%, 100% { opacity: 1; border-color: rgba(0, 240, 255, 0.4); }
  50% { opacity: 0.8; border-color: rgba(0, 240, 255, 0.15); }
}

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

@keyframes rowHighlight {
  0% { background: rgba(0, 240, 255, 0.25); }
  100% { background: transparent; }
}

.row-highlight {
  animation: rowHighlight 3s ease-out;
}

/* -----------------------------------------------------------------------------
   Mobile & Tablet Responsive System
   ----------------------------------------------------------------------------- */

/* Body scroll lock when mobile drawer is open */
body.sidebar-locked {
  overflow: hidden;
}

/* Tablet adjustments (<= 992px) */
@media (max-width: 992px) {
  .channel-layout-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .channels-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
  }

  .content-body {
    padding: 24px 20px;
  }

  .top-bar {
    padding: 0 20px;
  }
}

/* Mobile adjustments (<= 768px) */
@media (max-width: 768px) {
  /* Mobile Sidebar as Slide-out Drawer */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
    overflow-y: auto;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.85);
  }

  /* Close button inside mobile sidebar */
  .sidebar-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 20px;
    right: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
  }

  .sidebar-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
  }

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

  .sidebar-backdrop.open {
    display: block;
  }

  /* Mobile Hamburger Toggle in Top Bar */
  .mobile-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
  }

  .mobile-toggle-btn:hover,
  .mobile-toggle-btn:active {
    background: rgba(0, 240, 255, 0.12);
    border-color: rgba(0, 240, 255, 0.3);
    color: var(--accent-cyan);
  }

  /* Top Bar Mobile */
  .top-bar {
    height: auto;
    min-height: 60px;
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .top-bar-left {
    flex: 1;
    min-width: 0;
  }

  .page-title {
    font-size: 1.05rem;
    line-height: 1.25;
    white-space: normal;
  }

  .action-bar {
    width: 100%;
    display: flex;
    gap: 8px;
    justify-content: stretch;
  }

  .action-bar .btn {
    flex: 1;
    justify-content: center;
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  /* Content Body */
  .content-body {
    padding: 16px 12px;
  }

  .glass-card {
    padding: 16px;
  }

  /* Metric Stats Grid */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
  }

  .stat-card {
    padding: 14px;
  }

  .stat-value {
    font-size: 1.6rem;
    margin: 6px 0 2px;
  }

  .stat-label {
    font-size: 0.72rem;
  }

  .stat-desc {
    font-size: 0.75rem;
  }

  /* Channel Grid */
  .channels-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Forms */
  .form-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Modal Dialog */
  #videoModal .glass-card {
    width: 95% !important;
    max-height: 94vh !important;
    padding: 16px !important;
    overflow-y: auto !important;
  }

  #videoModal [style*="display: flex; gap: 8px"] {
    flex-wrap: wrap !important;
  }

  #videoModal [style*="display: flex; gap: 24px"] {
    flex-direction: column !important;
    gap: 16px !important;
  }

  #videoModal video,
  #videoModal img {
    max-height: 380px !important;
  }

  /* Table Custom Responsive */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-sm);
  }

  .table-custom {
    min-width: 580px;
  }

  .table-custom th,
  .table-custom td {
    padding: 10px 12px;
    font-size: 0.82rem;
  }
}

/* Small Mobile Screens (<= 480px) */
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .btn {
    font-size: 0.82rem;
    padding: 8px 14px;
  }

  .task-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

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

  .task-steps-bar {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Pagination, Filter Pills, Live Telemetry & Toast Notifications
   ========================================================================== */

/* Live Action Bar Telemetry & Badges */
.badge-dim {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-weight: 600;
  border-radius: 10px;
  padding: 2px 7px;
  font-size: 0.72rem;
}

.badge-due-alert {
  background: rgba(239, 68, 68, 0.22);
  color: #ff5e5e;
  border: 1px solid rgba(239, 68, 68, 0.5);
  font-weight: 700;
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  animation: pulseDue 1.5s infinite;
}

@keyframes pulseDue {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.next-due-caption {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* Filter Pill Badges */
.filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  text-decoration: none;
  transition: var(--transition);
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-pill.active {
  background: rgba(0, 240, 255, 0.12);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.filter-pill .pill-count {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 10px;
}

.filter-pill.active .pill-count {
  background: rgba(0, 240, 255, 0.25);
  color: #fff;
}

/* Pagination */
.pagination-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 16px;
}

.pagination-info {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.page-btn:hover:not(.disabled):not(.active) {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.page-btn.active {
  background: var(--accent-cyan);
  color: #050811;
  border-color: var(--accent-cyan);
  font-weight: 700;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

.page-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.page-ellipsis {
  color: var(--text-dim);
  padding: 0 4px;
  font-size: 0.85rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
  width: calc(100% - 40px);
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(14, 19, 31, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  color: #fff;
  animation: slideToastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.3s ease;
}

.toast-item.toast-success {
  border-left: 4px solid var(--accent-green);
}

.toast-item.toast-info {
  border-left: 4px solid var(--accent-cyan);
}

.toast-item.toast-danger {
  border-left: 4px solid #ef4444;
}

.toast-item.hide {
  animation: slideToastOut 0.3s ease forwards;
}

.toast-icon {
  font-size: 1.25rem;
  line-height: 1;
}

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

.toast-title {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 2px;
}

.toast-message {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
}

.toast-close:hover {
  color: #fff;
}

@keyframes slideToastIn {
  from {
    transform: translateX(110%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideToastOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(110%);
    opacity: 0;
  }
}

