/* ============================================================
   DOUYIN2FB — APPLE VISION / FROSTED GLASS COMPONENTS
   Multi-Layer Translucent Glass, Apple Corner Radii & Micro-Glows
   ============================================================ */

/* ===================== BUTTONS (APPLE GLASS & ELECTRIC GLOW) ===================== */
button {
  font-family: var(--font);
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.btn,
.stg-btn,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  height: 40px;
  border-radius: var(--r-md);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
  white-space: nowrap;
  text-decoration: none;
  user-select: none;
  box-sizing: border-box;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn:disabled,
.stg-btn:disabled,
.btn-ghost:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.btn i,
.stg-btn i,
.btn-ghost i {
  font-size: 12.5px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
  width: auto;
  height: auto;
}

/* Primary Button — Apple Electric Blue Gradient */
.btn-primary,
.stg-btn--primary {
  background: linear-gradient(135deg, #0071e3 0%, #47a3ff 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 6px 20px rgba(0, 113, 227, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  font-weight: 700;
}

.btn-primary:hover,
.stg-btn--primary:hover {
  background: linear-gradient(135deg, #0064c8 0%, #3a94ff 100%) !important;
  box-shadow: 0 8px 26px rgba(0, 113, 227, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-1.5px) scale(1.01);
  color: #ffffff !important;
}

.btn-primary:active,
.stg-btn--primary:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 3px 10px rgba(0, 113, 227, 0.4);
}

/* Ghost / Secondary / Refresh Buttons */
.btn-ghost,
.stg-btn--ghost,
.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-ghost:hover,
.stg-btn--ghost:hover,
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.btn-ghost:active,
.stg-btn--ghost:active,
.btn-secondary:active {
  transform: translateY(0) scale(0.97);
}

/* Outline */
.btn-outline,
.stg-btn--outline {
  background: transparent;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-outline:hover,
.stg-btn--outline:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1.5px);
}

/* Danger */
.btn-danger,
.stg-btn--danger {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.btn-danger:hover,
.stg-btn--danger:hover {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
  transform: translateY(-1.5px);
}

/* Success / Save */
.btn-success,
.stg-btn--save {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  font-weight: 700;
}

.btn-success:hover,
.stg-btn--save:hover {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
  transform: translateY(-1.5px);
}

.btn-sm {
  height: 32px;
  padding: 4px 12px;
  font-size: 12px;
  border-radius: var(--r-sm);
}

.btn-lg {
  height: 46px;
  padding: 12px 26px;
  font-size: 14.5px;
  border-radius: var(--r-md);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ===================== CARDS / PANELS (FROSTED GLASS) ===================== */
.panel,
.card {
  background: var(--bg-card);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
  transition: all var(--dur) var(--ease);
}

.panel::before,
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  pointer-events: none;
}

.panel:hover,
.card:hover {
  border-color: var(--border-light);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.panel-glass {
  background: rgba(16, 20, 34, 0.65);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border-color: var(--border-light);
}

/* Accent Lines */
.panel-accent-pink::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ec4899, #f472b6);
}

.panel-accent-cyan::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0071e3, #47a3ff);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}

.panel-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-header h3 i {
  color: var(--primary-light);
  font-size: 16px;
}

.panel-body {
  padding: 24px;
}

/* ===================== STATS BENTO GRID ===================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--dur) var(--ease);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}

.stat-card:hover {
  border-color: var(--border-light);
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-lg);
  display: grid;
  place-items: center;
  font-size: 22px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.icon-blue {
  background: var(--grad-apple-blue);
  box-shadow: 0 6px 22px rgba(0, 113, 227, 0.4);
}

.icon-yellow {
  background: var(--grad-yellow);
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.35);
}

.icon-green {
  background: var(--grad-green);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.35);
}

.icon-red {
  background: var(--grad-pink);
  box-shadow: 0 6px 22px rgba(236, 72, 153, 0.35);
}

.stat-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 4px;
}

.stat-value {
  font-size: 30px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  font-family: var(--font-heading);
  letter-spacing: -0.5px;
}

/* ===================== DASHBOARD LAYOUT ===================== */
.dashboard-layout-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
}

.dashboard-main-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dashboard-side-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Side Widgets */
.side-widget {
  background: var(--bg-card);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.side-widget-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
}

.widget-info-list {
  padding: 4px 0;
}

.widget-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 16px;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.widget-info-item:last-child {
  border-bottom: none;
}

.widget-info-item span {
  color: #94a3b8;
}

.widget-info-item strong {
  color: #e2e8f0;
  font-weight: 600;
}

/* ===================== FORM CONTROLS ===================== */
.form-group {
  margin-bottom: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background: rgba(8, 11, 20, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  padding: 10px 16px;
  border-radius: var(--r-md);
  font-family: var(--font);
  font-size: 13px;
  transition: all var(--dur) var(--ease);
  outline: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.form-control:focus {
  border-color: #47a3ff;
  background: rgba(12, 16, 28, 0.85);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.22), 0 0 24px rgba(0, 113, 227, 0.15);
}

.form-control::placeholder {
  color: #64748b;
}

textarea.form-control {
  resize: vertical;
  min-height: 90px;
}

select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%2347a3ff' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

select.form-control option {
  background: #080a14;
  color: #fff;
}

.form-text {
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 6px;
}

/* URL Input */
.url-input-group {
  display: flex;
  gap: 12px;
}

.url-input-group .input-wrapper {
  flex: 1;
  position: relative;
}

.url-input-group .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  font-size: 15px;
}

.url-input-group input {
  padding-left: 42px;
}

/* ===================== VIDEO GRID & LIST ===================== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.video-card {
  background: var(--bg-card);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
  transition: all var(--dur) var(--ease);
}

.video-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  pointer-events: none;
}

.video-card:hover {
  border-color: var(--border-light);
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.video-thumb-wrap {
  position: relative;
  aspect-ratio: 9/16;
  overflow: hidden;
  background: #000;
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-card:hover .video-thumb {
  transform: scale(1.03);
}

.video-status-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  z-index: 5;
}

.badge-pending {
  background: rgba(35, 22, 0, 0.92) !important;
  color: #fde047 !important;
  border: 1px solid #eab308 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 0 10px rgba(234, 179, 8, 0.3) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.badge-scheduled {
  background: rgba(3, 28, 55, 0.92) !important;
  color: #7dd3fc !important;
  border: 1px solid #0284c7 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 0 10px rgba(2, 132, 199, 0.3) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.badge-posted {
  background: rgba(2, 44, 34, 0.94) !important;
  color: #4ade80 !important;
  border: 1px solid #22c55e !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.75), 0 0 14px rgba(34, 197, 94, 0.4) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
  font-weight: 900 !important;
}

.badge-failed {
  background: rgba(50, 10, 20, 0.94) !important;
  color: #fda4af !important;
  border: 1px solid #e11d48 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 0 10px rgba(225, 29, 72, 0.3) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.video-card-body {
  padding: 14px;
}

.video-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.video-card-meta {
  font-size: 11px;
  color: var(--text-3);
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.video-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

/* ===================== VIDEO LIST (LINEAR ROWS STYLE) ===================== */
.video-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(8, 10, 16, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.video-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.15s ease;
  position: relative;
}

.video-list-item:last-child {
  border-bottom: none;
}

.video-list-item:hover {
  background: rgba(255, 255, 255, 0.035);
}

.video-list-item.selected {
  background: rgba(94, 106, 210, 0.08);
  box-shadow: inset 2px 0 0 #5e6ad2;
}

.video-list-item.drag-over {
  border-top: 2px solid #6366f1;
  background: rgba(99, 102, 241, 0.08);
}

.video-list-item[draggable="true"] {
  transition: opacity 0.15s;
}

.list-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.list-info {
  flex: 1;
  min-width: 0;
}

.list-title {
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.list-meta {
  font-size: 11.5px;
  color: #64748b;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.list-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  align-items: center;
  flex-wrap: wrap;
}

.list-thumb-wrap {
  position: relative;
  width: 54px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.list-thumb-wrap .list-thumb {
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.list-thumb-wrap:hover .list-thumb {
  transform: scale(1.08);
}

.list-thumb-wrap .thumb-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.list-thumb-wrap:hover .thumb-play-overlay {
  opacity: 1;
}

.thumb-play-overlay i {
  color: #ffffff;
  font-size: 22px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
}

.queue-tab-btn.active {
  background: rgba(0, 113, 227, 0.2) !important;
  border-color: #0071e3 !important;
  color: #60a5fa !important;
}

/* ===================== LOG TERMINAL ===================== */
.log-terminal {
  background: #020306;
  border-radius: var(--r-lg);
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
  max-height: 550px;
  overflow-y: auto;
  border: 1px solid var(--border);
}

.log-entry {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.log-time {
  color: var(--text-3);
  flex-shrink: 0;
}

.log-msg {
  color: var(--text-2);
  flex: 1;
}

.log-success .log-msg {
  color: var(--neon-cyan);
}

.log-error .log-msg {
  color: var(--neon-pink);
}

.log-warn .log-msg {
  color: var(--neon-yellow);
}

/* ===================== MODALS (FROSTED GLASS & SPRING MOTION) ===================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 4, 8, 0.78);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-card {
  background: rgba(14, 17, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  position: relative;
  animation: modalSpring 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  pointer-events: none;
}

@keyframes modalSpring {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(11, 14, 24, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.modal-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 40px);
}

.btn-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: all 0.2s ease;
}

.btn-close:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #ef4444;
}

.modal-body {
  padding: 20px 22px;
}

/* ── Modal Grid & Media Layout ── */
.modal-grid {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 20px;
  align-items: start;
}

.modal-video-preview {
  background: #050711;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

#modalVideoPlayer {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  background: #000;
  display: block;
}

.modal-image-gallery {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #050711;
  overflow: hidden;
}

.gallery-badge {
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gallery-main-view {
  position: relative;
  width: 100%;
  height: 380px;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-main-img {
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.25s ease;
  display: block;
}

.gallery-main-img:hover {
  transform: scale(1.02);
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
  font-size: 12px;
  transition: all 0.2s ease;
}

.gallery-nav-btn:hover {
  background: #6366f1;
  border-color: #6366f1;
  transform: translateY(-50%) scale(1.1);
}

.gallery-nav-btn.btn-prev {
  left: 8px;
}

.gallery-nav-btn.btn-next {
  right: 8px;
}

.gallery-counter-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
}

.gallery-thumbnails {
  display: flex;
  gap: 6px;
  padding: 8px;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.gallery-thumbnails::-webkit-scrollbar {
  height: 4px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.gallery-thumb {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: all 0.2s ease;
}

.gallery-thumb.active,
.gallery-thumb:hover {
  opacity: 1;
  border-color: #6366f1;
  transform: scale(1.05);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-form-details {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px 18px;
}

@media (max-width: 768px) {
  .modal-grid {
    grid-template-columns: 1fr;
  }

  .gallery-main-view {
    height: 260px;
  }
}

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--r-lg);
  background: rgba(14, 18, 32, 0.9);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(30px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.toast.success {
  border-color: rgba(16, 185, 129, 0.45);
}

.toast.success i {
  color: #34d399;
}

.toast.error {
  border-color: rgba(244, 63, 94, 0.45);
}

.toast.error i {
  color: #f43f5e;
}

.toast.warn {
  border-color: rgba(251, 191, 36, 0.45);
}

.toast.warn i {
  color: #fbbf24;
}

.toast.info {
  border-color: rgba(56, 189, 248, 0.45);
}

.toast.info i {
  color: #38bdf8;
}

/* Settings Box */
.settings-box {
  background: rgba(0, 242, 254, 0.05);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 14px;
}

.settings-box label {
  color: var(--neon-cyan);
  font-weight: 700;
}

.batch-panel {
  background: rgba(121, 40, 202, 0.08);
  border: 1px solid rgba(121, 40, 202, 0.25);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.btn-batch {
  background: linear-gradient(135deg, #7928ca, #ff007f);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-glow-pink);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  text-align: center;
  color: var(--text-3);
}

.empty-state>i {
  font-size: 36px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.empty-state .btn i,
.empty-state .stg-btn i {
  font-size: 13px !important;
  margin-bottom: 0 !important;
  opacity: 1 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ===================== SETTINGS PAGE — PREMIUM REDESIGN ===================== */
.settings-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 24px;
}

/* ── Settings Card ─────────────────────────────────── */
.settings-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.settings-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.settings-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
}

.settings-card__header--compact {
  padding: 16px 20px;
}

.settings-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.settings-card__icon--fb {
  background: linear-gradient(135deg, #1877f2 0%, #0059d6 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.35);
}

.settings-card__icon--ai {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.35);
}

.settings-card__icon--cookie {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.settings-card__icon--schedule {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35);
}

.settings-card__title-group {
  flex: 1;
  min-width: 0;
}

.settings-card__title-group h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
  margin: 0 0 2px 0;
  letter-spacing: 0.2px;
}

.settings-card__title-group p {
  font-size: 12px;
  color: var(--text-3);
  margin: 0;
  line-height: 1.4;
}

.settings-card__status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot--pending {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
}

.status-dot--connected {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
  animation: pulse-glow 2s infinite;
}

.status-dot--error {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}

@keyframes pulse-glow {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.settings-card__badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #a855f7;
  background: rgba(168, 85, 247, 0.1);
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(168, 85, 247, 0.25);
  white-space: nowrap;
}

.settings-card__body {
  padding: 24px;
}

/* ── Field Groups ─────────────────────────────────── */
.settings-field-group {
  margin-bottom: 20px;
}

.settings-field-group--highlight {
  background: rgba(0, 242, 254, 0.04);
  border: 1px solid rgba(0, 242, 254, 0.12);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.settings-field-group--highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--neon-cyan), var(--neon-pink));
  border-radius: 3px 0 0 3px;
}

.settings-field-group__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--neon-cyan);
  margin-bottom: 8px;
}

.settings-field-group__label i {
  font-size: 14px;
  opacity: 0.85;
}

.settings-field-group__desc {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 14px;
  line-height: 1.5;
}

.settings-field-group__desc a {
  color: var(--neon-cyan);
  text-decoration: none;
  border-bottom: 1px dashed rgba(0, 242, 254, 0.4);
}

.settings-field-group__desc a:hover {
  border-bottom-style: solid;
}

/* ── Input with Action Button ─────────────────────── */
.settings-input-action {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.settings-input-action .form-control {
  flex: 1;
}

.settings-input-action .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Input with Unit Label ────────────────────────── */
.settings-input-unit {
  display: flex;
  align-items: center;
  gap: 0;
}

.settings-input-unit .form-control {
  border-radius: var(--r-md) 0 0 var(--r-md);
  border-right: none;
  max-width: 120px;
  text-align: center;
  font-weight: 700;
  font-size: 18px;
}

.input-unit-label {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-left: none;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 10px 16px;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

/* ── Settings Grid ────────────────────────────────── */
.settings-grid {
  display: grid;
  gap: 16px;
}

.settings-grid--2col {
  grid-template-columns: 1fr 1fr;
}

.settings-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings-field label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.settings-field label i {
  font-size: 12px;
  color: var(--text-3);
}

.settings-field .form-text {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
}

.settings-field .form-text a {
  color: var(--neon-cyan);
  text-decoration: none;
}

.settings-field .form-text a:hover {
  text-decoration: underline;
}

/* ── Label Tag ────────────────────────────────────── */
.label-tag {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

.label-tag--free {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

/* ── Divider ──────────────────────────────────────── */
.settings-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
  opacity: 0.5;
}

/* ── Verify Row ───────────────────────────────────── */
.settings-verify-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.btn-verify {
  border-color: rgba(0, 242, 254, 0.3) !important;
  color: var(--neon-cyan) !important;
}

.btn-verify:hover {
  background: rgba(0, 242, 254, 0.08) !important;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.15) !important;
}

/* ── Row 2-col ────────────────────────────────────── */
.settings-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ── Schedule Presets ─────────────────────────────── */
.schedule-presets {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.schedule-preset-label {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 600;
}

.preset-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font);
}

.preset-chip:hover {
  background: rgba(0, 242, 254, 0.08);
  border-color: rgba(0, 242, 254, 0.3);
  color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.1);
}

.preset-chip.active {
  background: rgba(0, 242, 254, 0.12);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
}

/* ── Save Bar ─────────────────────────────────────── */
.settings-save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 16px 24px;
  position: sticky;
  bottom: 16px;
  z-index: 10;
  backdrop-filter: blur(12px);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
}

.settings-save-bar__info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-3);
}

.settings-save-bar__info i {
  color: var(--neon-cyan);
  font-size: 14px;
}

.btn-save-settings {
  min-width: 180px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
  .settings-grid--2col {
    grid-template-columns: 1fr;
  }

  .settings-row-2col {
    grid-template-columns: 1fr;
  }

  .settings-input-action {
    flex-direction: column;
  }

  .settings-card__header {
    flex-wrap: wrap;
  }

  .settings-save-bar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ── Modern iOS-Style Toggle Switch (Global) ──────── */
.stg-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  background: #080a10;
  padding: 0 14px;
  height: 38px;
  width: 100%;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.stg-toggle-wrap:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(238, 77, 45, 0.35);
}

/* ══════════════════════════════════════════════════════════════════
   HIGH-CRAFT MODERN TOGGLE SWITCH & CARD DESIGN SYSTEM
   - iOS/Linear tactile ergonomics with spring physics
   - Glassmorphic card surfaces with ambient micro-glows
   - Category-tuned luminous accents (Shopee sunset, Facebook blue, Emerald shield, Sky audio, Rose trim)
   ══════════════════════════════════════════════════════════════════ */

.stg-toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
  vertical-align: middle;
}

.stg-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
  pointer-events: none;
}

.stg-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.stg-toggle-switch:hover .stg-toggle-slider {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.stg-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background: #cbd5e1;
  border-radius: 50%;
  transition: transform 0.32s cubic-bezier(0.34, 1.4, 0.64, 1), background 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 5px rgba(0, 0, 0, 0.25);
}

/* Default Checked State */
.stg-toggle-switch input:checked + .stg-toggle-slider {
  background: linear-gradient(135deg, #4f46e5 0%, #2563eb 50%, #06b6d4 100%);
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 0 14px rgba(79, 70, 229, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.stg-toggle-switch input:checked + .stg-toggle-slider:before {
  transform: translateX(20px);
  background: #ffffff;
  box-shadow: -1px 0 3px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* Active Click Feedback (Micro-scale) */
.stg-toggle-switch:active .stg-toggle-slider:before {
  width: 21px;
}
.stg-toggle-switch--sm:active .stg-toggle-slider:before {
  width: 16px;
}

/* ── Purpose-Matched Color Accents ──────────────────────── */

/* 1. Shopee Affiliate (Warm Sunset Ember) */
.stg-toggle-switch--shopee input:checked + .stg-toggle-slider,
.stg-toggle-card:has(#batchAutoShopee:checked) .stg-toggle-slider,
.stg-toggle-card:has(#detectShopeeInput:checked) .stg-toggle-slider,
.stg-toggle-card:has(#quickAutoShopee:checked) .stg-toggle-slider,
.stg-toggle-card:has(#userAutoShopee:checked) .stg-toggle-slider,
.stg-toggle-card:has(#modalScanImmediately:checked) .stg-toggle-slider {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 45%, #ef4444 100%);
  border-color: #fb923c;
  box-shadow: 0 0 14px rgba(234, 88, 12, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

/* 2. Facebook Variant (Royal Blue) */
.stg-toggle-switch--fb input:checked + .stg-toggle-slider,
.batch-page-item:has(input:checked) .stg-toggle-slider,
.dl-page-item:has(input:checked) .stg-toggle-slider,
.fanpage-toggle-item:has(input:checked) .stg-toggle-slider {
  background: linear-gradient(135deg, #1877f2 0%, #0084ff 60%, #38bdf8 100%);
  border-color: #60a5fa;
  box-shadow: 0 0 12px rgba(24, 119, 242, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

/* 3. Audio LUFS (Electric Cyan / Sky) */
.stg-toggle-card:has(#batchNormalizeAudio:checked) .stg-toggle-slider,
.stg-toggle-card:has(#pipeNormalizeAudio:checked) .stg-toggle-slider {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 50%, #06b6d4 100%);
  border-color: #38bdf8;
  box-shadow: 0 0 14px rgba(14, 165, 233, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

/* 4. Trim Video & Viral Likes (Rose / Fuchsia) */
.stg-toggle-card:has(#batchTrimIntroOutro:checked) .stg-toggle-slider,
.stg-toggle-card:has(#pipeTrimIntroOutro:checked) .stg-toggle-slider,
.stg-toggle-card:has(#filterViralLikes:checked) .stg-toggle-slider {
  background: linear-gradient(135deg, #e11d48 0%, #f43f5e 50%, #fb7185 100%);
  border-color: #fda4af;
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

/* 5. Deduplicate & Shield (Emerald Mint) */
.stg-toggle-card:has(#batchSkipDuplicates:checked) .stg-toggle-slider,
.stg-toggle-card:has(#userSkipDuplicates:checked) .stg-toggle-slider,
.stg-toggle-card:has(#modalIsActive:checked) .stg-toggle-slider {
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
  border-color: #6ee7b7;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

/* 6. AI Caption & Reels (Violet / Purple) */
.stg-toggle-card:has(#userEnableAiCaption:checked) .stg-toggle-slider,
.stg-toggle-card:has(#quickAutoCaption:checked) .stg-toggle-slider,
.stg-toggle-card:has(#filterShortsReels:checked) .stg-toggle-slider {
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 50%, #c084fc 100%);
  border-color: #d8b4fe;
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

/* 7. Auto 9:16 Vertical Video (Amber / Warm Gold) */
.stg-toggle-card:has(#pipeAuto916:checked) .stg-toggle-slider {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%);
  border-color: #fde68a;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

/* ── Compact Toggle Switch (--sm) ────────────────────────── */
.stg-toggle-switch--sm {
  width: 32px;
  height: 18px;
}

.stg-toggle-switch--sm .stg-toggle-slider:before {
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.stg-toggle-switch--sm input:checked + .stg-toggle-slider:before {
  transform: translateX(14px);
}

/* ── Modern Glassmorphic Toggle Cards ────────────────────── */
.stg-toggle-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.stg-toggle-card:hover {
  background: rgba(255, 255, 255, 0.055) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.stg-toggle-card:has(input:checked) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
}

/* Specific Card Glows when Checked */
.stg-toggle-card:has(#batchAutoShopee:checked),
.stg-toggle-card:has(#detectShopeeInput:checked),
.stg-toggle-card:has(#quickAutoShopee:checked),
.stg-toggle-card:has(#userAutoShopee:checked),
.stg-toggle-card:has(#modalScanImmediately:checked) {
  border-color: rgba(249, 115, 22, 0.35) !important;
  box-shadow: 0 4px 18px -2px rgba(234, 88, 12, 0.15), inset 0 0 0 1px rgba(249, 115, 22, 0.1) !important;
}

.stg-toggle-card:has(#batchNormalizeAudio:checked),
.stg-toggle-card:has(#pipeNormalizeAudio:checked) {
  border-color: rgba(14, 165, 233, 0.35) !important;
  box-shadow: 0 4px 18px -2px rgba(14, 165, 233, 0.15), inset 0 0 0 1px rgba(14, 165, 233, 0.1) !important;
}

.stg-toggle-card:has(#batchTrimIntroOutro:checked),
.stg-toggle-card:has(#pipeTrimIntroOutro:checked),
.stg-toggle-card:has(#filterViralLikes:checked) {
  border-color: rgba(244, 63, 94, 0.35) !important;
  box-shadow: 0 4px 18px -2px rgba(244, 63, 94, 0.15), inset 0 0 0 1px rgba(244, 63, 94, 0.1) !important;
}

.stg-toggle-card:has(#batchSkipDuplicates:checked),
.stg-toggle-card:has(#userSkipDuplicates:checked),
.stg-toggle-card:has(#modalIsActive:checked) {
  border-color: rgba(16, 185, 129, 0.35) !important;
  box-shadow: 0 4px 18px -2px rgba(16, 185, 129, 0.15), inset 0 0 0 1px rgba(16, 185, 129, 0.1) !important;
}

.stg-toggle-card:has(#userEnableAiCaption:checked),
.stg-toggle-card:has(#quickAutoCaption:checked),
.stg-toggle-card:has(#filterShortsReels:checked) {
  border-color: rgba(139, 92, 246, 0.35) !important;
  box-shadow: 0 4px 18px -2px rgba(139, 92, 246, 0.15), inset 0 0 0 1px rgba(139, 92, 246, 0.1) !important;
}

.stg-toggle-card:has(#pipeAuto916:checked) {
  border-color: rgba(245, 158, 11, 0.35) !important;
  box-shadow: 0 4px 18px -2px rgba(245, 158, 11, 0.15), inset 0 0 0 1px rgba(245, 158, 11, 0.1) !important;
}

/* Toggle Card Label & Badge */
.stg-toggle-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.stg-toggle-card__icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 13.5px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.22s ease;
}

.stg-toggle-card:has(input:checked) .stg-toggle-card__icon--trim {
  background: rgba(244, 63, 94, 0.16);
  border-color: rgba(244, 63, 94, 0.35);
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.25);
}

.stg-toggle-card:has(input:checked) .stg-toggle-card__icon--audio {
  background: rgba(14, 165, 233, 0.16);
  border-color: rgba(14, 165, 233, 0.35);
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.25);
}

.stg-toggle-card:has(input:checked) .stg-toggle-card__icon--shopee {
  background: rgba(249, 115, 22, 0.16);
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.25);
}

.stg-toggle-card:has(input:checked) .stg-toggle-card__icon--shield {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.stg-toggle-card:has(input:checked) .stg-toggle-card__icon--ai {
  background: rgba(139, 92, 246, 0.16);
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.25);
}

.stg-toggle-card:has(input:checked) .stg-toggle-card__icon--aspect {
  background: rgba(168, 85, 247, 0.16);
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.25);
}

.stg-toggle-card__text {
  font-size: 12.5px;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.1px;
  transition: color 0.2s ease;
}

.stg-toggle-card:has(input:checked) .stg-toggle-card__text {
  color: #f8fafc;
  font-weight: 700;
}

/* ── Fanpage Toggle Cards ────────────────────────────────── */
.batch-page-item,
.dl-page-item,
.fanpage-toggle-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.025) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  margin: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.batch-page-item:hover,
.dl-page-item:hover,
.fanpage-toggle-item:hover {
  background: rgba(255, 255, 255, 0.055) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  transform: translateY(-1px);
}

.batch-page-item.is-active,
.batch-page-item:has(input:checked),
.dl-page-item.is-active,
.dl-page-item:has(input:checked),
.fanpage-toggle-item.is-active,
.fanpage-toggle-item:has(input:checked) {
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.14) 0%, rgba(56, 189, 248, 0.04) 100%) !important;
  border-color: rgba(56, 189, 248, 0.38) !important;
  box-shadow: 0 4px 14px -2px rgba(24, 119, 242, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
}

.batch-page-item.is-active .fa-facebook,
.batch-page-item:has(input:checked) .fa-facebook,
.dl-page-item.is-active .fa-facebook,
.dl-page-item:has(input:checked) .fa-facebook,
.fanpage-toggle-item.is-active .fa-facebook,
.fanpage-toggle-item:has(input:checked) .fa-facebook {
  color: #1877f2;
  filter: drop-shadow(0 0 6px rgba(24, 119, 242, 0.7));
  transform: scale(1.08);
}

.batch-page-item__meta,
.dl-page-item__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  flex: 1;
}

.batch-page-item__meta .fa-facebook,
.dl-page-item__meta .fa-facebook {
  font-size: 13.5px;
  flex-shrink: 0;
}

.batch-page-item__name,
.dl-page-item__name {
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.1px;
  transition: color 0.15s ease;
}

.batch-page-item:hover .batch-page-item__name,
.dl-page-item:hover .dl-page-item__name {
  color: #ffffff;
}

.batch-page-item.is-active .batch-page-item__name,
.batch-page-item:has(input:checked) .batch-page-item__name,
.dl-page-item.is-active .dl-page-item__name,
.dl-page-item:has(input:checked) .dl-page-item__name {
  color: #ffffff;
  font-weight: 700;
}



/* ===================== BATCH RECENT VIDEOS CAROUSEL & CARDS ===================== */
.batch-carousel-wrapper {
  position: relative;
  width: 100%;
}

.batch-carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 16px 2px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.batch-carousel-track::-webkit-scrollbar {
  height: 6px;
}

.batch-carousel-track::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 9999px;
}

.batch-carousel-track::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  transition: background 0.2s ease;
}

.batch-carousel-track::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 158, 11, 0.5);
}

.batch-video-card {
  flex: 0 0 215px;
  width: 215px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.45) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.batch-video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.6), 0 0 18px rgba(245, 158, 11, 0.18);
}

.batch-video-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 13;
  overflow: hidden;
  background: #090d16;
  cursor: pointer;
}

.batch-video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.batch-video-card:hover .batch-video-thumb {
  transform: scale(1.06);
}

.batch-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, transparent 40%, rgba(10,14,26,0.92) 100%);
  pointer-events: none;
}

.batch-play-trigger {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 15px;
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.34, 1.4, 0.64, 1);
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.batch-video-card:hover .batch-play-trigger {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  border-color: #fbbf24;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.6);
}

.batch-vid-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(8px);
  letter-spacing: 0.2px;
}

.batch-vid-badge--posted {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.batch-vid-badge--scheduled {
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.batch-vid-badge--pending {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.batch-vid-badge--failed {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.batch-platform-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
}

.batch-platform-pill--douyin {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.35);
}

.batch-platform-pill--tiktok {
  color: #f43f5e;
  border-color: rgba(244, 63, 94, 0.35);
}

.batch-platform-pill--xhs {
  color: #fb7185;
  border-color: rgba(251, 113, 133, 0.35);
}

.batch-platform-pill--kuaishou {
  color: #fb923c;
  border-color: rgba(251, 146, 60, 0.35);
}

.batch-shopee-pill {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 2;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.5);
}

.batch-video-info {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  justify-content: space-between;
}

.batch-video-title {
  font-size: 12px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 34px;
  transition: color 0.15s ease;
}

.batch-video-card:hover .batch-video-title {
  color: #38bdf8;
}

.batch-video-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  color: #64748b;
}

.batch-video-page {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #94a3b8;
  font-weight: 600;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.batch-video-time {
  font-size: 10.5px;
  color: #64748b;
}

.batch-video-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.batch-btn-preview {
  flex: 1;
  height: 30px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.batch-btn-preview:hover {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  border-color: #fbbf24;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
}

.batch-btn-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.batch-btn-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}


/* ===================== QUEUE BENTO GRID & MODERN LIST ===================== */
.queue-view-btn.active {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35) !important;
  font-weight: 700 !important;
}

.queue-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  padding: 6px 0 16px;
}

@media (max-width: 680px) {
  .queue-card-grid {
    grid-template-columns: 1fr;
  }
}

.queue-grid-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.45) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.queue-grid-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.6), 0 0 18px rgba(56, 189, 248, 0.16);
}

.queue-grid-card.selected {
  border-color: #38bdf8 !important;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.16) 0%, rgba(15, 23, 42, 0.9) 100%) !important;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.35), inset 0 0 0 1px rgba(56, 189, 248, 0.4) !important;
}

.queue-grid-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 12;
  background: #090d16;
  overflow: hidden;
  cursor: pointer;
}

.queue-grid-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.queue-grid-card:hover .queue-grid-thumb {
  transform: scale(1.05);
}

.queue-grid-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, transparent 40%, rgba(10,14,26,0.95) 100%);
  pointer-events: none;
}

.queue-grid-top-bar {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
}

/* Custom Frosted Glass Selection Checkbox */
.queue-custom-checkbox {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  margin: 0;
  padding: 0;
  vertical-align: middle;
}

.queue-custom-checkbox input.queue-card-cb,
.queue-custom-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.queue-checkbox-box {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 12px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.queue-checkbox-box i {
  opacity: 0;
  transform: scale(0.3) rotate(-15deg);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.queue-custom-checkbox:hover .queue-checkbox-box {
  background: rgba(0, 0, 0, 0.85);
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
  transform: scale(1.05);
}

/* Checked State */
.queue-custom-checkbox input[type="checkbox"]:checked + .queue-checkbox-box,
.queue-grid-card.selected .queue-checkbox-box,
.video-list-item.selected .queue-checkbox-box {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%) !important;
  border-color: #7dd3fc !important;
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
  transform: scale(1.02);
}

.queue-custom-checkbox input[type="checkbox"]:checked + .queue-checkbox-box i,
.queue-grid-card.selected .queue-checkbox-box i,
.video-list-item.selected .queue-checkbox-box i {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Compact list view and toolbar variants */
.queue-custom-checkbox-list .queue-checkbox-box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
}

.queue-custom-checkbox-toolbar .queue-checkbox-box {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  font-size: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1.5px solid rgba(71, 163, 255, 0.4);
}

/* Light mode adjustments */
[data-mode="light"] .video-list-item .queue-checkbox-box,
[data-mode="light"] .queue-custom-checkbox-toolbar .queue-checkbox-box {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.2);
  color: #0284c7;
}

[data-mode="light"] .video-list-item.selected .queue-checkbox-box,
[data-mode="light"] .queue-custom-checkbox input[type="checkbox"]:checked + .queue-checkbox-box {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%) !important;
  border-color: #0284c7 !important;
  color: #ffffff !important;
}


.queue-grid-top-bar .item-drag-handle {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: grab;
  transition: all 0.2s ease;
}

.queue-grid-top-bar .item-drag-handle:hover {
  color: #ffffff;
  background: rgba(0, 0, 0, 0.85);
  border-color: rgba(255, 255, 255, 0.3);
}

.queue-grid-badges {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  z-index: 2;
}

.queue-grid-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.34, 1.4, 0.64, 1);
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.queue-grid-card:hover .queue-grid-play-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  background: linear-gradient(135deg, #1877f2, #38bdf8);
  border-color: #7dd3fc;
  box-shadow: 0 0 22px rgba(24, 119, 242, 0.65);
}

.queue-grid-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  justify-content: space-between;
}

.queue-grid-title {
  font-family: var(--font), -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", "Noto Sans SC", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  min-height: 40px;
  transition: color 0.15s ease;
}

.queue-grid-card:hover .queue-grid-title {
  color: #38bdf8;
}

.queue-grid-footer {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: auto;
}

.queue-grid-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.queue-grid-target-page {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.queue-grid-schedule-time {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #38bdf8;
  font-family: var(--font-mono, monospace);
  font-weight: 600;
}

/* Secondary tool actions row */
.queue-grid-tools {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.queue-grid-tools .btn,
.queue-grid-tools .stg-btn {
  height: 30px;
  border-radius: 7px;
  font-size: 11.5px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* Standalone Full-Width Publish Button */
.queue-btn-publish {
  width: 100% !important;
  height: 34px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  background: linear-gradient(135deg, #1877f2 0%, #0084ff 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.4) !important;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.queue-btn-publish:hover {
  background: linear-gradient(135deg, #166fe5 0%, #0077e6 100%) !important;
  box-shadow: 0 6px 20px rgba(24, 119, 242, 0.6) !important;
  transform: translateY(-1px);
}

.queue-btn-publish:active {
  transform: translateY(0);
}

/* Modern List Item Overrides */
.video-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.video-list-item:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateX(2px);
}

.video-list-item.selected {
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: inset 3px 0 0 #38bdf8;
}

.video-list-item .list-thumb-wrap {
  width: 58px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #090d16;
}

.video-list-item .list-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-list-item .list-thumb-wrap:hover .list-thumb {
  transform: scale(1.08);
}

.video-list-item .list-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.4;
  margin-bottom: 6px;
}

.video-list-item .list-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #94a3b8;
  flex-wrap: wrap;
}

/* ===================== HISTORY BENTO GRID & PUBLISHED CARDS ===================== */
.history-view-btn.active {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35) !important;
  font-weight: 700 !important;
}

.history-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 6px 0 12px;
}

.history-grid-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.45) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.history-grid-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.6), 0 0 18px rgba(56, 189, 248, 0.16);
}

.history-grid-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 12;
  background: #090d16;
  overflow: hidden;
  cursor: pointer;
}

.history-grid-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.history-grid-card:hover .history-grid-thumb {
  transform: scale(1.05);
}

.history-grid-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, transparent 40%, rgba(10,14,26,0.95) 100%);
  pointer-events: none;
}

.history-grid-top-bar {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
}

.history-grid-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.34, 1.4, 0.64, 1);
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.history-grid-card:hover .history-grid-play-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  background: linear-gradient(135deg, #1877f2, #38bdf8);
  border-color: #7dd3fc;
  box-shadow: 0 0 22px rgba(24, 119, 242, 0.65);
}

.history-grid-badges {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  z-index: 2;
}

.history-grid-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  justify-content: space-between;
}

.history-grid-title {
  font-family: var(--font), -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", "Noto Sans SC", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  min-height: 40px;
  transition: color 0.15s ease;
}

.history-grid-card:hover .history-grid-title {
  color: #38bdf8;
}

.history-grid-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.history-grid-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  padding-top: 8px;
}

.history-grid-actions .stg-btn,
.history-grid-actions .btn {
  height: 32px;
  border-radius: 8px;
  font-size: 11.5px;
}

.btn-fb-published {
  background: linear-gradient(135deg, #1877f2, #0284c7) !important;
  color: #ffffff !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  box-shadow: 0 2px 10px rgba(24, 119, 242, 0.35) !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  font-weight: 700 !important;
  transition: all 0.2s ease !important;
}

.btn-fb-published:hover {
  background: linear-gradient(135deg, #1d4ed8, #0369a1) !important;
  box-shadow: 0 4px 16px rgba(24, 119, 242, 0.55) !important;
  transform: translateY(-1px) !important;
}

/* ===================== CONTENT CALENDAR ENHANCEMENTS ===================== */
.cal-bento-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 1100px) {
  .cal-bento-grid {
    grid-template-columns: 1fr;
  }
}

.cal-day-col {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 10px;
  min-height: 380px;
  max-height: 540px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cal-day-col.is-today {
  background: linear-gradient(180deg, rgba(0, 113, 227, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%) !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
  box-shadow: 0 0 20px rgba(0, 113, 227, 0.15);
}

.cal-day-col.drag-over {
  border-color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.14) !important;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.25) inset;
}

.cal-day-header {
  text-align: center;
  padding: 10px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.cal-day-header.is-today {
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.25), rgba(56, 189, 248, 0.15));
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.2);
}

.cal-item {
  position: relative;
  background: rgba(20, 26, 45, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: grab;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 6px;
  user-select: none;
}

.cal-item:hover {
  transform: translateY(-2px);
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.cal-item:active {
  cursor: grabbing;
  opacity: 0.5;
}

.cal-item-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cal-item-thumb {
  width: 36px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cal-item-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.cal-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #94a3b8;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.cal-empty-dropzone {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #475569;
  font-size: 11px;
  gap: 6px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 24px 8px;
  transition: all 0.2s ease;
}

.cal-empty-dropzone:hover {
  border-color: rgba(56, 189, 248, 0.3);
  color: #94a3b8;
}

.cal-today-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
}

.cal-today-card:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateX(2px);
}

/* ===================== AFFILIATE LINKS & VIDEO MAPPING ENHANCEMENTS ===================== */
.aff-view-btn.active {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35) !important;
  font-weight: 700 !important;
}

.aff-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 6px 0 12px;
}

.aff-grid-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.45) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.aff-grid-card:hover {
  transform: translateY(-3px);
  border-color: rgba(238, 77, 45, 0.45);
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.6), 0 0 18px rgba(238, 77, 45, 0.18);
}

.aff-grid-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 12;
  background: #090d16;
  overflow: hidden;
  cursor: pointer;
}

.aff-grid-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.aff-grid-card:hover .aff-grid-thumb {
  transform: scale(1.05);
}

.aff-grid-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, transparent 40%, rgba(10,14,26,0.95) 100%);
  pointer-events: none;
}

.aff-grid-top-bar {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
}

.aff-grid-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.34, 1.4, 0.64, 1);
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.aff-grid-card:hover .aff-grid-play-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  background: linear-gradient(135deg, #ee4d2d, #ff5722);
  border-color: #fb923c;
  box-shadow: 0 0 22px rgba(238, 77, 45, 0.65);
}

.aff-grid-badges {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  z-index: 2;
}

.aff-grid-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  justify-content: space-between;
}

.aff-grid-title {
  font-family: var(--font), -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", "Noto Sans SC", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  min-height: 40px;
  transition: color 0.15s ease;
}

.aff-grid-card:hover .aff-grid-title {
  color: #ff7337;
}

.aff-product-box {
  background: rgba(238, 77, 45, 0.08);
  border: 1px solid rgba(238, 77, 45, 0.25);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aff-grid-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.aff-grid-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  padding-top: 6px;
}

.aff-grid-actions .stg-btn,
.aff-grid-actions .btn {
  height: 32px;
  border-radius: 8px;
  font-size: 11.5px;
}

/* ===================== LIGHTBOX FULLSCREEN IMAGE VIEWER ===================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(16px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightboxImg {
  max-width: 90vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
  cursor: zoom-in;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#lightboxImg.zoomed {
  transform: scale(1.6);
  cursor: zoom-out;
}

.lightbox-close-btn {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 10001;
  transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
  background: rgba(239, 68, 68, 0.85);
  border-color: #ef4444;
  transform: scale(1.1);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 16px;
  z-index: 10001;
  transition: all 0.2s ease;
}

.lightbox-nav-btn:hover {
  background: #6366f1;
  border-color: #6366f1;
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-btn.btn-prev {
  left: 24px;
}

.lightbox-nav-btn.btn-next {
  right: 24px;
}

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 10001;
}

/* ═══ PAGINATION UI ═══ */
.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  margin-top: 14px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  font-size: 12.5px;
  color: #94a3b8;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  color: #fff;
}

.pagination-btn.active {
  background: #6366f1;
  border-color: #6366f1;
  color: #fff;
  font-weight: 700;
}

.pagination-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ============================================================
   COMMAND PALETTE (RAYCAST / LINEAR STYLE CTRL+K)
   ============================================================ */
.cmd-palette-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 4, 8, 0.8);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  animation: cmdFadeIn 0.2s ease-out;
}

@keyframes cmdFadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.cmd-palette-card {
  width: 100%;
  max-width: 640px;
  background: rgba(14, 17, 28, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  display: flex;
  flex-direction: column;
}

.cmd-palette-search {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.cmd-search-icon {
  font-size: 16px;
  color: #6366f1;
}

.cmd-palette-search input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  outline: none;
}

.cmd-palette-search input::placeholder {
  color: #64748b;
}

.cmd-esc-hint {
  font-size: 10px;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  padding: 3px 7px;
  border-radius: 6px;
}

.cmd-palette-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cmd-group-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #475569;
  padding: 10px 12px 4px;
}

.cmd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  user-select: none;
}

.cmd-item:hover,
.cmd-item.active {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.3);
}

.cmd-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
  font-size: 13px;
  color: #a5b4fc;
  flex-shrink: 0;
}

.cmd-item.active .cmd-item-icon {
  background: #6366f1;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

.cmd-item-info {
  flex: 1;
  min-width: 0;
}

.cmd-item-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cmd-item-subtitle {
  font-size: 11.5px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cmd-item-shortcut {
  font-size: 10px;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 2px 6px;
  border-radius: 4px;
}

.cmd-empty-state {
  text-align: center;
  padding: 36px 20px;
  color: #64748b;
  font-size: 13px;
}

.cmd-empty-state i {
  font-size: 28px;
  margin-bottom: 8px;
  opacity: 0.5;
}

.cmd-palette-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  background: rgba(8, 10, 18, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  color: #64748b;
}

.cmd-footer-keys {
  display: flex;
  gap: 12px;
}

.cmd-footer-keys span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cmd-footer-keys kbd {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 5px;
  border-radius: 4px;
  font-family: var(--font-mono);
  color: #cbd5e1;
}

.cmd-footer-brand {
  font-weight: 700;
  color: #818cf8;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================
   DYNAMIC ISLAND / FLOATING STATUS WIDGET
   ============================================================ */
.floating-island {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-island.island-enter {
  animation: islandPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-island.island-leave {
  transform: translateX(-50%) translateY(20px) scale(0.9);
  opacity: 0;
}

@keyframes islandPop {
  from {
    transform: translateX(-50%) translateY(30px) scale(0.8);
    opacity: 0;
  }

  to {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 1;
  }
}

.island-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  background: rgba(10, 13, 22, 0.88);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 9999px;
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(99, 102, 241, 0.25);
  min-width: 320px;
  max-width: 480px;
}

.island-icon-box {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #9333ea);
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 12px;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
}

.island-pulse-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse 1.5s infinite;
}

.island-info {
  flex: 1;
  min-width: 0;
}

.island-title {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.island-subtitle {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.island-progress-ring {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.4);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #a5b4fc;
}

.island-btn-close {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.15s;
}

.island-btn-close:hover {
  color: #ffffff;
}

/* ============================================================
   TIKTOK / NETFLIX STYLE LIVE HOVER VIDEO PREVIEWS
   ============================================================ */
.hover-preview-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  z-index: 5;
  animation: hoverVideoFadeIn 0.3s ease-out;
  pointer-events: none;
}

@keyframes hoverVideoFadeIn {
  from {
    opacity: 0;
    transform: scale(1.04);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================================================
   AURORA THEME OVERRIDES
   ============================================================ */
[data-theme="emerald-matrix"] body::before {
  background:
    radial-gradient(ellipse 900px 550px at 12% -5%, rgba(16, 185, 129, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 800px 480px at 90% 95%, rgba(6, 182, 212, 0.08) 0%, transparent 65%),
    radial-gradient(ellipse 650px 400px at 50% 50%, rgba(5, 150, 105, 0.06) 0%, transparent 60%) !important;
}

[data-theme="cyberpunk-sunset"] body::before {
  background:
    radial-gradient(ellipse 900px 550px at 12% -5%, rgba(244, 63, 94, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 800px 480px at 90% 95%, rgba(245, 158, 11, 0.08) 0%, transparent 65%),
    radial-gradient(ellipse 650px 400px at 50% 50%, rgba(219, 39, 119, 0.06) 0%, transparent 60%) !important;
}

[data-theme="pure-obsidian"] body::before {
  display: none !important;
}

/* ============================================================
   ELITE STUDIO PIPELINE PROGRESS MODAL & OVERLAY
   ============================================================ */
.pipeline-loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 7, 16, 0.82);
  backdrop-filter: blur(16px) saturate(1.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  padding: 20px;
  animation: pipeFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pipeline-loader-overlay.hidden {
  display: none !important;
}

@keyframes pipeFadeIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.pipeline-loader-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(9, 13, 26, 0.98) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow:
    0 24px 60px -12px rgba(0, 0, 0, 0.9),
    0 0 40px -10px rgba(56, 189, 248, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

/* Top Neon Glow Bar */
.pipeline-loader-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0284c7, #38bdf8, #818cf8, #c084fc, #ee4d2d);
  background-size: 200% 100%;
  animation: neonScan 3s linear infinite;
}

@keyframes neonScan {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Top Header */
.pipe-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.pipe-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}

.pipe-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: pulseBeacon 1.4s ease-in-out infinite;
}

@keyframes pulseBeacon {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}

.pipe-timer {
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 600;
}

/* Main Visual: Holographic Center Spinner */
.pipe-visual-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  margin-bottom: 20px;
}

.pipe-spinner-orb {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.pipe-spinner-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #38bdf8;
  border-right-color: #a855f7;
  border-bottom-color: #ee4d2d;
  animation: spinHolo 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

.pipe-spinner-ring-outer {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px dashed rgba(56, 189, 248, 0.4);
  animation: spinCounter 4s linear infinite;
}

@keyframes spinHolo {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes spinCounter {
  0% {
    transform: rotate(360deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

.pipe-core-icon {
  font-size: 18px;
  color: #f8fafc;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.6));
  animation: pulseIcon 2s ease-in-out infinite;
}

@keyframes pulseIcon {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }
}

.pipe-status-info {
  flex: 1;
  min-width: 0;
}

.pipe-status-title {
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pipe-status-sub {
  font-size: 12px;
  color: #38bdf8;
  font-family: var(--font-mono, monospace);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Stepper Checklist (4 Stages) */
.pipe-stages-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.pipe-stage-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  font-size: 12px;
  transition: all 0.25s ease;
}

.pipe-stage-item.active {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.35);
  color: #f1f5f9;
  box-shadow: inset 0 0 12px rgba(56, 189, 248, 0.1);
}

.pipe-stage-item.completed {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.25);
  color: #94a3b8;
}

.pipe-stage-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.pipe-stage-item.completed .pipe-stage-label {
  color: #34d399;
}

.pipe-stage-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 9.5px;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

.pipe-stage-item.active .pipe-stage-icon {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

.pipe-stage-item.completed .pipe-stage-icon {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.pipe-stage-status-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono, monospace);
}

.pipe-stage-item.active .pipe-stage-status-badge {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  animation: pulseBadge 1.5s infinite;
}

.pipe-stage-item.completed .pipe-stage-status-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.pipe-stage-item.pending .pipe-stage-status-badge {
  color: #64748b;
}

@keyframes pulseBadge {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

/* Glowing Progress Bar */
.pipe-progress-container {
  margin-top: 14px;
}

.pipe-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 6px;
  font-family: var(--font-mono, monospace);
  font-weight: 600;
}

.pipe-progress-track {
  position: relative;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.pipe-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 35%;
  background: linear-gradient(90deg, #0284c7, #38bdf8, #a855f7, #ee4d2d);
  background-size: 200% 100%;
  border-radius: 10px;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.7);
  transition: width 0.4s ease;
  animation: progressShimmer 2s linear infinite;
}

@keyframes progressShimmer {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

/* ══════════════════════════════════════════════════════════════
   CHANNEL STUDIO & MULTI-PAGE SELECTOR STYLES
   ══════════════════════════════════════════════════════════════ */
.channel-card {
  position: relative;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.channel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.35) !important;
}

.channel-card--paused {
  opacity: 0.72;
  filter: grayscale(0.2);
}

.channel-card--paused:hover {
  opacity: 0.95;
  filter: none;
}

.channel-page-checkbox {
  accent-color: #38bdf8;
}


/* ── History page: reset list-item layout (don't inherit queue CSS) ── */
#historyListContainer .video-list-item .list-info {
  flex: 1 !important;
  min-width: 0 !important;
  width: auto !important;
}

#historyListContainer .video-list-item .list-actions {
  width: auto !important;
  max-width: none !important;
  flex-shrink: 0 !important;
  border-top: none !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
  align-self: center !important;
}

#historyListContainer .video-list-item .list-actions > * {
  flex: 0 0 auto !important;
  height: 32px !important;
  font-size: 11.5px !important;
}

/* ============================================================
   ULTRA-PREMIUM 7-DAY ACTIVITY & VELOCITY CHART WIDGET
   ============================================================ */
.dash-velocity-widget {
  margin-top: 12px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(10, 15, 29, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.dash-velocity-widget::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12), transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.dash-velocity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.dash-velocity-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-velocity-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #38bdf8;
}

.dash-velocity-badge .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: dotPulse 1.8s infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

.dash-view-toggle {
  display: inline-flex;
  padding: 2px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.dash-view-btn {
  padding: 3px 8px;
  font-size: 10.5px;
  font-weight: 600;
  color: #94a3b8;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 4px;
}

.dash-view-btn.active {
  background: rgba(0, 113, 227, 0.35);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.3);
}

/* Metric summary tags row */
.dash-metric-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 11.5px;
}

.dash-metric-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
}

.dash-metric-item b {
  font-family: var(--font-mono);
  font-weight: 800;
  color: #fff;
}

.dash-metric-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* Chart Canvas Area */
.dash-chart-viewport {
  position: relative;
  height: 135px;
  width: 100%;
}

/* 3D Bar Grid View */
.dash-bar-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 100%;
  gap: 8px;
  position: relative;
}

.dash-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  position: relative;
  cursor: pointer;
}

.dash-bar-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: #94a3b8;
  margin-bottom: 4px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.2s;
}

.dash-bar-col:hover .dash-bar-badge,
.dash-bar-col.is-peak .dash-bar-badge {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  transform: translateY(-2px);
}

.dash-bar-track {
  width: 100%;
  max-width: 28px;
  flex: 1;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: all 0.25s;
}

.dash-bar-col:hover .dash-bar-track {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.05);
}

.dash-bar-fill {
  width: 100%;
  border-radius: 6px 6px 4px 4px;
  background: linear-gradient(180deg, #38bdf8 0%, #0071e3 60%, rgba(0, 113, 227, 0.4) 100%);
  position: relative;
  transition: height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 12px rgba(0, 113, 227, 0.45);
}

.dash-bar-fill::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #ffffff;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 0 8px #ffffff, 0 0 14px #38bdf8;
  opacity: 0.9;
}

/* Today highlight styling */
.dash-bar-col.is-today .dash-bar-track {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(0, 113, 227, 0.1);
  box-shadow: 0 0 15px rgba(0, 113, 227, 0.25);
}

.dash-bar-col.is-today .dash-bar-fill {
  background: linear-gradient(180deg, #00f2fe 0%, #0071e3 50%, #6366f1 100%);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.7);
}

.dash-bar-col.is-today .dash-bar-label {
  color: #38bdf8 !important;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

.dash-bar-label {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  margin-top: 6px;
  white-space: nowrap;
  transition: color 0.2s;
}

.dash-bar-col:hover .dash-bar-label {
  color: #e2e8f0;
}

/* Interactive floating tooltip */
.dash-chart-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 12px rgba(56, 189, 248, 0.25);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 20;
}

.dash-chart-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px;
  border-style: solid;
  border-color: rgba(15, 23, 42, 0.95) transparent transparent transparent;
}

.dash-bar-col:hover .dash-chart-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Area Wave View */
.dash-wave-view {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: none;
}

.dash-wave-view.active {
  display: block;
}

.dash-wave-view svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.wave-point-group {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.wave-point-group:hover circle.point-main {
  transform: scale(1.35);
  transform-origin: center;
  filter: drop-shadow(0 0 10px #00f2fe);
}

.wave-radar-ring {
  animation: waveRadarPulse 2.2s cubic-bezier(0.2, 0.8, 0.4, 1) infinite;
  transform-origin: center;
}

@keyframes waveRadarPulse {
  0% { r: 5px; opacity: 0.9; stroke-width: 2px; }
  100% { r: 16px; opacity: 0; stroke-width: 0.5px; }
}

.wave-pill-box {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
  transition: transform 0.2s;
}

.wave-point-group:hover .wave-pill-box {
  transform: translateY(-3px);
}

/* Golden Hour Pills Upgrade */
.gh-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}

/* ============================================================
   STICKY EXPIRED SUBSCRIPTION BANNER
   ============================================================ */
.stg-sticky-expired-banner {
  margin: 0 24px 20px 24px;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.18) 0%, rgba(245, 158, 11, 0.18) 100%);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(239, 68, 68, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: bannerSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 50;
}

@keyframes bannerSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.stg-sticky-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 280px;
}

.stg-sticky-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

.stg-sticky-banner-title {
  font-size: 14px;
  font-weight: 800;
  color: #fecaca;
  font-family: var(--font-heading);
  letter-spacing: -0.2px;
}

.stg-sticky-banner-sub {
  font-size: 12px;
  color: #e2e8f0;
  margin-top: 2px;
  opacity: 0.9;
}

.stg-sticky-banner-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stg-sticky-banner-btn {
  padding: 8px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.stg-sticky-banner-btn:hover {
  transform: translateY(-1.5px) scale(1.02);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
  filter: brightness(1.1);
}

.stg-sticky-banner-link {
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.stg-sticky-banner-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ══════════════════════════════════════════════════════════════
   TASK-015: STUDIO SPLIT-VIEW & SMART PASTE STYLES
   ══════════════════════════════════════════════════════════════ */

/* Smart Paste Button */
.stg-btn--smart-paste {
  background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.35);
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.stg-btn--smart-paste:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.55);
  filter: brightness(1.1);
  color: #ffffff;
}

.stg-btn--smart-paste:active {
  transform: translateY(0) scale(0.98);
}

/* Stepper Dynamic LED Signal Lights */
.pipe-led-signal {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.pipe-stage-item.pending .pipe-led-signal {
  background: rgba(148, 163, 184, 0.25);
  border-color: rgba(148, 163, 184, 0.3);
  box-shadow: none;
}

.pipe-stage-item.active .pipe-led-signal {
  background: #38bdf8;
  border-color: #7dd3fc;
  box-shadow: 0 0 10px #38bdf8, 0 0 18px rgba(56, 189, 248, 0.8);
  animation: pulseLedSignal 1s infinite alternate ease-in-out;
}

.pipe-stage-item.completed .pipe-led-signal {
  background: #10b981;
  border-color: #34d399;
  box-shadow: 0 0 8px #10b981;
}

@keyframes pulseLedSignal {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 4px #38bdf8, 0 0 10px rgba(56, 189, 248, 0.5);
  }
  100% {
    transform: scale(1.3);
    box-shadow: 0 0 14px #38bdf8, 0 0 24px rgba(56, 189, 248, 0.9);
  }
}

/* Studio Split-View Post-Download Layout */
.studio-split-view-container {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  margin-bottom: 24px;
  align-items: start;
}

@media (max-width: 992px) {
  .studio-split-view-container {
    grid-template-columns: 1fr;
  }
}

/* Left Column: 9:16 Vertical Video Player */
.studio-player-card {
  background: var(--bg-card, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.studio-phone-mockup {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ambient Blurred Backdrop Effect */
.studio-ambient-blur {
  position: absolute;
  inset: -15%;
  background-size: cover;
  background-position: center;
  filter: blur(28px) brightness(0.65);
  opacity: 0.8;
  z-index: 1;
  pointer-events: none;
  transition: background-image 0.4s ease;
}

.studio-main-video {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

/* Overlaid Floating Badges */
.studio-video-overlay-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.studio-pill-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Custom Interactive Controls for 9:16 Video */
.studio-custom-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4;
  padding: 12px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: opacity 0.2s ease;
}

.studio-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.studio-ctrl-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.studio-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
}

.studio-ctrl-btn--primary {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #0071e3, #38bdf8);
  font-size: 14px;
}

.studio-seek-bar {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

.studio-seek-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #38bdf8;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.8);
}

.studio-time-display {
  font-size: 10.5px;
  color: #cbd5e1;
  font-family: var(--font-mono, monospace);
  font-weight: 600;
}

/* Right Column: Studio Editor Card */
.studio-editor-card {
  background: var(--bg-card, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.studio-ready-banner {
  padding: 12px 16px;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.15), rgba(56, 189, 248, 0.15));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.studio-caption-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.studio-caption-textarea {
  width: 100%;
  min-height: 130px;
  background: transparent;
  border: none;
  outline: none;
  color: #f1f5f9;
  font-size: 13.5px;
  line-height: 1.6;
  resize: vertical;
  font-family: inherit;
}

.studio-caption-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
  color: #94a3b8;
}

/* Shopee Affiliate Box in Studio */
.studio-shopee-card {
  background: linear-gradient(135deg, rgba(238, 77, 45, 0.08), rgba(249, 115, 22, 0.05));
  border: 1px solid rgba(238, 77, 45, 0.3);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Studio 1-Click Publishing Hub */
.studio-actions-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
  margin-top: 6px;
}

@media (max-width: 600px) {
  .studio-actions-grid {
    grid-template-columns: 1fr;
  }
}

.studio-btn-post-now {
  padding: 14px 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1877f2, #00c6ff);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(24, 119, 242, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.studio-btn-post-now:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 30px rgba(24, 119, 242, 0.65);
  filter: brightness(1.1);
}

.studio-btn-post-now:active {
  transform: translateY(0) scale(0.98);
}

/* ══════════════════════════════════════════════════════════════
   TASK-016: SYSTEM HEALTH & CONNECTION HUB (BENTO STATUS BAR)
   ══════════════════════════════════════════════════════════════ */

.bento-health-hub {
  background: var(--bg-card, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 18px 22px;
  margin-bottom: 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.bento-health-hub::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #10b981, #06b6d4, #a855f7, #f59e0b);
}

.bento-health-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 12px;
}

.bento-health-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 0.3px;
}

.bento-health-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 1024px) {
  .bento-health-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .bento-health-grid {
    grid-template-columns: 1fr;
  }
}

.bento-card {
  position: relative;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  user-select: none;
}

.bento-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.bento-card:active {
  transform: translateY(0);
}

.bento-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bento-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 15px;
  flex-shrink: 0;
}

.bento-card-icon--fb {
  background: rgba(24, 119, 242, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(24, 119, 242, 0.35);
}

.bento-card-icon--tikhub {
  background: rgba(236, 72, 153, 0.2);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.35);
}

.bento-card-icon--ai {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.bento-card-icon--shopee {
  background: rgba(238, 77, 45, 0.2);
  color: #fb923c;
  border: 1px solid rgba(238, 77, 45, 0.35);
}

.bento-health-led {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.bento-health-led--green {
  background: #10b981;
  box-shadow: 0 0 10px #10b981, 0 0 16px rgba(16, 185, 129, 0.7);
  animation: ledPulseGreen 1.5s infinite alternate ease-in-out;
}

.bento-health-led--yellow {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

.bento-health-led--red {
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444, 0 0 16px rgba(239, 68, 68, 0.7);
  animation: ledPulseRed 1.2s infinite alternate ease-in-out;
}

.bento-health-led--scanning {
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: ledPulseBlue 0.8s infinite alternate ease-in-out;
}

@keyframes ledPulseGreen {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.2); opacity: 1; }
}

@keyframes ledPulseRed {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.25); opacity: 1; }
}

@keyframes ledPulseBlue {
  0% { transform: scale(0.85); opacity: 0.7; }
  100% { transform: scale(1.3); opacity: 1; }
}

.bento-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.2;
}

.bento-card-sub {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
  margin-top: 3px;
}

.bento-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 6px;
  margin-top: 2px;
}

.bento-click-fix {
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s ease;
}

.bento-card:hover .bento-click-fix {
  transform: translateX(3px);
}