:root {
  font-family: 'Be Vietnam Pro', 'Segoe UI', 'Inter', Arial, sans-serif;
  color: #e8edf5;
  background-color: #060b14;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.01em;
  color-scheme: dark;

  --bg: #060b14;
  --bg-secondary: #0a1223;
  --panel: rgba(8, 14, 30, 0.94);
  --panel-soft: rgba(12, 22, 48, 0.6);
  --panel-border: rgba(255, 255, 255, 0.05);
  --panel-highlight: rgba(14, 165, 233, 0.30);
  --accent: #0ea5e9;
  --accent-strong: #38bdf8;
  --accent-soft: rgba(14, 165, 233, 0.22);
  --danger: #f87171;
  --success: #34d399;
  --warning: #fbbf24;
  --muted: #8b9cc0;
  --text: #e8edf5;
  --gradient: linear-gradient(135deg, #0ea5e9, #06b6d4, #10b981);
  --gradient-soft: radial-gradient(circle at 15% 15%, rgba(14, 165, 233, 0.18), transparent 60%);
  --glass-border: rgba(255, 255, 255, 0.04);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}

body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
}

body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 12% 18%, #081a33, transparent 55%),
    radial-gradient(circle at 85% 15%, #0a1e38, transparent 48%),
    linear-gradient(145deg, #060b14, #0a1628 60%, #040d1a);
  color: var(--text);
  overflow-x: hidden;
}

/* FIX LAG (2026-08-02): mix-blend-mode buộc trình duyệt ĐỌC LẠI toàn bộ nền phía dưới
   rồi trộn lại. Bên dưới lại có 3 .orb đang animate → mỗi frame phải trộn lại TOÀN MÀN
   HÌNH, 60 lần/giây, vĩnh viễn. Đây là nguồn tải chính ghim GPU process 100% 1 core.
   `isolation: isolate` cắt phạm vi trộn xuống chỉ trong .bg-canvas, không còn phải đọc
   ngược lên toàn trang. `contain: strict` chặn lớp nền làm bẩn layout/paint của UI thật. */
.bg-canvas {
  position: fixed;
  inset: 0;
  background: linear-gradient(120deg, rgba(12, 22, 48, 0.82), rgba(2, 5, 24, 0.9));
  pointer-events: none;
  z-index: 0;
  isolation: isolate;
  contain: strict;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(14, 165, 233, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 220px 220px, 90px 90px, 90px 90px;
  mix-blend-mode: overlay;
  opacity: 0.35;
}

.noise-overlay {
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%20100%20100%22%3E%3Cfilter%20id=%22n%22%3E%3CfeTurbulence%20type=%22fractalNoise%22%20baseFrequency=%220.8%22%20numOctaves=%222%22/%3E%3C/filter%3E%3Crect%20width=%22100%25%22%20height=%22100%25%22%20filter=%22url(%23n)%22%20opacity=%220.15%22/%3E%3C/svg%3E');
  mix-blend-mode: soft-light;
  opacity: 0.35;
}

/* FIX LAG: bỏ `filter: blur(10px)`. Filter là hiệu ứng PAINT — mỗi frame animation phải
   tô lại rồi làm mờ lại cả vùng 420x420. Nền orb vốn là radial-gradient đã tan dần về
   trong suốt ở 70%, nên blur 10px gần như không nhìn ra khác biệt — bỏ đi giữ nguyên
   thẩm mỹ mà chuyển orb thành layer chỉ-dịch-chuyển (GPU lo, CPU không phải vẽ lại).
   `will-change: transform` đẩy orb lên layer compositor riêng để đúng như vậy. */
.orb {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  opacity: 0.75;
  animation: float 24s ease-in-out infinite;
  will-change: transform;
}

.orb-one {
  top: -80px;
  left: -60px;
  background: radial-gradient(circle, rgba(93, 247, 208, 0.4), transparent 70%);
}

.orb-two {
  bottom: 10%;
  right: -120px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.35), transparent 70%);
  animation-delay: -8s;
}

.orb-three {
  top: 40%;
  left: 50%;
  background: radial-gradient(circle, rgba(90, 168, 255, 0.3), transparent 70%);
  animation-delay: -12s;
}

@keyframes float {

  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(30px, -30px, 0) scale(1.05);
  }
}

.app-shell {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
  overflow-x: hidden;
}

.app-shell.locked {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

.auth-gate {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(1, 3, 12, 0.92);
  backdrop-filter: blur(18px);
  z-index: 10;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.auth-gate.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.auth-card {
  width: min(480px, 100%);
  background: radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.08), transparent 52%),
    rgba(5, 9, 34, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 30px 80px rgba(2, 3, 15, 0.6);
}

.auth-card-header h2 {
  margin: 8px 0 4px;
  font-size: 26px;
}

.auth-card-header p {
  margin: 0;
  color: rgba(244, 247, 255, 0.7);
}

.auth-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.4);
  color: #a5ffe7;
  margin: 0;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px;
  border-radius: 16px;
}

.auth-tab {
  all: unset;
  text-align: center;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  color: rgba(244, 247, 255, 0.7);
}

.auth-tab.active {
  background: rgba(14, 165, 233, 0.16);
  color: #fff;
  border: 1px solid rgba(14, 165, 233, 0.35);
}

.auth-form {
  display: none;
  flex-direction: column;
  gap: 10px;
}

.auth-form.active {
  display: flex;
}

.auth-form label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(244, 247, 255, 0.6);
}

.auth-form input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 6, 20, 0.8);
  color: #fff;
  font-size: 15px;
}

.auth-form input:focus {
  outline: 2px solid rgba(14, 165, 233, 0.6);
}

.auth-message {
  min-height: 18px;
  font-size: 14px;
  margin: 4px 0 0;
  color: rgba(244, 247, 255, 0.7);
}

.auth-message[data-state='error'] {
  color: var(--danger);
}

.auth-message[data-state='success'] {
  color: var(--success);
}

.auth-note {
  font-size: 13px;
  color: rgba(244, 247, 255, 0.6);
  margin: 0;
}

.pill-btn.full-width {
  width: 100%;
  justify-content: center;
}

.session-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 24px;
  border-radius: 20px;
  background: linear-gradient(120deg, rgba(5, 8, 28, 0.85), rgba(3, 12, 32, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.session-eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 247, 255, 0.5);
}

.session-identity {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.session-email {
  font-size: 14px;
  color: rgba(244, 247, 255, 0.65);
}

.sidebar {
  width: 280px;
  min-width: 280px;
  flex-shrink: 0;
  background: #06070a;
  border-right: 1px solid rgba(0, 242, 254, 0.2);
  box-shadow: 4px 0 25px rgba(0, 242, 254, 0.08), inset -1px 0 0 rgba(121, 40, 202, 0.15);
  padding: 20px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(16px);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow: hidden;
  z-index: 100;
  box-sizing: border-box;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 4px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(121, 40, 202, 0.2));
  padding: 3px;
  border: 1px solid rgba(0, 242, 254, 0.35);
  filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.6));
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.brand-logo:hover {
  transform: scale(1.1) rotate(4deg);
  filter: drop-shadow(0 0 16px rgba(0, 242, 254, 0.9));
  border-color: #00f2fe;
}

.brand-name {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #00f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
}

.brand-sub {
  margin: 2px 0 0;
  font-size: 10.5px;
  color: #a0aec0;
  font-weight: 600;
}

.brand-version-badge {
  display: inline-block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 800;
  color: #00f2fe;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(121, 40, 202, 0.25));
  border: 1px solid rgba(0, 242, 254, 0.4);
  padding: 1px 7px;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.3);
}

.sidebar-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.2), transparent);
  margin: 2px -16px;
}

.status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.status-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.status-pill.online {
  color: var(--success);
  border-color: rgba(74, 222, 128, 0.4);
  background: rgba(74, 222, 128, 0.12);
}

.status-pill.shield {
  color: #7dd3fc;
  border-color: rgba(125, 211, 252, 0.35);
  background: rgba(125, 211, 252, 0.12);
}

.status-pill.beta {
  color: #fbcfe8;
  border-color: rgba(251, 207, 232, 0.35);
  background: rgba(251, 207, 232, 0.12);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0 -6px;
  padding: 0 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 242, 254, 0.2) transparent;
}

.nav-ai-label {
  font-size: 10px;
  font-weight: 800;
  color: #0ea5e9;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 12px 4px;
  text-shadow: 0 0 8px rgba(255, 0, 127, 0.5);
}

.nav-item {
  all: unset;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  color: #a0aec0;
  font-weight: 600;
  font-size: 13.5px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.nav-icon {
  font-size: 17px;
  width: 24px;
  text-align: center;
  transition: transform 0.2s ease;
}

.nav-item:hover:not(.active) {
  background: rgba(0, 242, 254, 0.08);
  color: #ffffff;
  border-color: rgba(0, 242, 254, 0.25);
  transform: translateX(6px);
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.15);
}

.nav-item::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: none;
}

.nav-item:hover::after {
  animation: navShimmer 0.6s ease-in-out;
}

@keyframes navShimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(0, 242, 254, 0.22) 0%, rgba(121, 40, 202, 0.28) 100%);
  color: #ffffff !important;
  border: 1px solid rgba(0, 242, 254, 0.45);
  border-left: 3.5px solid #00f2fe !important;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.25), inset 0 0 10px rgba(0, 242, 254, 0.1);
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.5);
}

/* Badges */
.nav-badge-new {
  margin-left: auto;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-neon-green {
  background: linear-gradient(135deg, #00f2fe, #00ff87);
  color: #06070a;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
  animation: qvBadgePulse 2s infinite;
}

.badge-neon-vip {
  background: linear-gradient(135deg, #0ea5e9, #ffb703);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 0, 127, 0.6);
  animation: qvBadgePulse 2s infinite;
}

@keyframes qvBadgePulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
  100% { transform: scale(1); opacity: 1; }
}

.sidebar-footer {
  flex-shrink: 0;
  padding: 0;
  margin-top: auto;
}

#view-consent-btn {
  all: unset;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(0, 242, 254, 0.06) !important;
  border: 1px solid rgba(0, 242, 254, 0.25) !important;
  color: #00f2fe !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  letter-spacing: 0.03em;
  transition: all 0.25s ease !important;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.1) !important;
  box-sizing: border-box !important;
}

#view-consent-btn:hover {
  background: rgba(0, 242, 254, 0.18) !important;
  border-color: #00f2fe !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.4) !important;
  transform: translateY(-1px) !important;
}

#view-consent-btn svg {
  color: #00f2fe;
  transition: transform 0.2s ease;
}

#view-consent-btn:hover svg {
  transform: scale(1.15);
  color: #ffffff;
}

.footer-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(14, 165, 233, 0.2));
  border: 1px solid rgba(6, 182, 212, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.footer-info {
  min-width: 0;
}

.footer-title {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--muted);
}

.progress {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--gradient);
  border-radius: 999px;
}

.footer-caption {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.footer-user-name {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.workspace {
  flex: 1;
  min-width: 0;
  margin-left: 280px;
  padding: 48px 72px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
  overflow-x: hidden;
}

.view {
  display: none;
  flex-direction: column;
  gap: 32px;
}

.view.active {
  display: flex;
  animation: fade-in 0.4s ease;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.workspace-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 24px;
  border-radius: 28px;
  background: linear-gradient(120deg, rgba(5, 10, 30, 0.82), rgba(10, 21, 52, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 24px;
  z-index: 2;
}

.toolbar-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(4, 7, 22, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.toolbar-search input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 15px;
}

.toolbar-search input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.toolbar-search input:focus {
  outline: none;
}

.toolbar-icon {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
}

.kbd-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 4px 10px;
  border-radius: 8px;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.circle-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, border 0.2s ease;
}

.circle-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.35);
}

.workspace-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.header-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── SYSTEM CONTROL CENTER (SETTINGS) ── */
#settings-view .workspace-header h1 {
  background: linear-gradient(135deg, #ffffff 0%, #00f2fe 50%, #0891b2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(0, 242, 254, 0.4));
}

#settings-view .eyebrow {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.35);
  color: #00f2fe;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.settings-panel {
  max-width: 760px;
  background: rgba(8, 12, 28, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  padding: 26px;
  margin-bottom: 24px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.settings-panel:hover {
  border-color: rgba(0, 242, 254, 0.45);
  box-shadow: 0 14px 45px rgba(0, 242, 254, 0.15);
}

.storage-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.storage-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.storage-row input[type='text'] {
  flex: 1;
  height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1.5px solid rgba(0, 242, 254, 0.3);
  background: rgba(3, 7, 18, 0.95);
  color: #00f2fe;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13.5px;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8);
}

.storage-row input[type='text']:focus {
  border-color: #00f2fe;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 242, 254, 0.4);
}

#browse-folder {
  height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.35);
  color: #00f2fe;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#browse-folder:hover {
  background: rgba(0, 242, 254, 0.18);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.45);
  transform: translateY(-2px);
}

.storage-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.storage-form button[type='submit'] {
  height: 44px;
  padding: 0 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #030712;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.5);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.storage-form button[type='submit']::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.7) 50%, transparent 55%);
  transform: rotate(30deg);
  animation: cyber-shimmer-sweep 3s ease-in-out infinite;
}

@keyframes cyber-shimmer-sweep {
  0% { transform: translateX(-100%) rotate(30deg); }
  35%, 100% { transform: translateX(100%) rotate(30deg); }
}

.storage-form button[type='submit']:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.8);
}

#reset-storage {
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: rgba(244, 247, 255, 0.7);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

#reset-storage:hover {
  border-color: rgba(0, 242, 254, 0.5);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.25);
}

/* AI Model Manager Shortcut VIP Box */
.ai-model-manager-shortcut {
  background: linear-gradient(160deg, rgba(14, 10, 36, 0.95), rgba(4, 7, 18, 0.95)) !important;
  border: 1px solid rgba(6, 182, 212, 0.4) !important;
  box-shadow: 0 10px 40px rgba(6, 182, 212, 0.2) !important;
}

.ai-model-manager-shortcut:hover {
  border-color: rgba(6, 182, 212, 0.7) !important;
  box-shadow: 0 14px 45px rgba(6, 182, 212, 0.35) !important;
}

.ai-model-manager-shortcut button {
  height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0891b2 0%, #00f2fe 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.45);
  transition: all 0.25s ease;
}

.ai-model-manager-shortcut button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.85);
}

.update-checker {
  margin-top: 12px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.update-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.update-meta strong {
  font-weight: 600;
  color: #ffffff;
}

.update-status-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}

.workspace-header h1 {
  margin: 0;
  font-size: 32px;
}

.subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 620px;
}

.insight-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.insight-card {
  position: relative;
  overflow: hidden;
  background: rgba(15, 18, 33, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.insight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-soft);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.insight-card:hover::before {
  opacity: 1;
}

.insight-card>* {
  position: relative;
  z-index: 1;
}

.insight-card.highlight {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(16, 185, 129, 0.2));
  border-color: rgba(255, 255, 255, 0.12);
}

.insight-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.insight-card h3 {
  margin: 0;
  font-size: 30px;
  font-weight: 600;
  color: #fff;
}

.insight-card span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
}

.panel {
  position: relative;
  background: linear-gradient(160deg, rgba(8, 14, 30, 0.92), rgba(9, 17, 44, 0.88));
  border: 1px solid var(--panel-border);
  border-radius: 26px;
  padding: 32px;
  box-shadow: 0 40px 60px rgba(3, 5, 20, 0.45);
  backdrop-filter: blur(18px);
}

.panel::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.pipeline-panel {
  background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.24), rgba(8, 14, 30, 0.95));
  border: 1px solid rgba(90, 168, 255, 0.3);
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.pipeline-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 22px;
  background: rgba(8, 10, 20, 0.7);
  min-height: 170px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.pipeline-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-soft);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pipeline-card:hover::before {
  opacity: 1;
}

.pipeline-card>* {
  position: relative;
  z-index: 1;
}

.pipeline-step {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.pipeline-card h3 {
  margin: 0;
  font-size: 20px;
}

.pipeline-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
/*  DASHBOARD PREMIUM REDESIGN                    */
/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.dashboard-hero {
  align-items: center;
}

.dashboard-title {
  background: linear-gradient(135deg, #fff 0%, #a78bfa 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 36px !important;
}

.glow-btn {
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.4), 0 0 40px rgba(6, 182, 212, 0.15);
  animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4), 0 0 40px rgba(6, 182, 212, 0.15);
  }

  50% {
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.6), 0 0 60px rgba(6, 182, 212, 0.25);
  }
}

/* â”€â”€ Dashboard Banner â”€â”€ */
.dashboard-banner {
  position: relative;
  border-radius: 20px;
  padding: 24px 32px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(14, 165, 233, 0.1), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(6, 182, 212, 0.25);
  overflow: hidden;
}

.banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
}

.banner-icon {
  font-size: 42px;
  flex-shrink: 0;
}

.banner-text h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.banner-text p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.banner-cta {
  flex-shrink: 0;
  white-space: nowrap;
  font-weight: 600;
}

.banner-glow {
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.3), transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  animation: banner-float 6s ease-in-out infinite;
  z-index: 1;
}

@keyframes banner-float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-20px, 10px) scale(1.1);
  }
}

/* â”€â”€ Insight Cards upgrade â”€â”€ */
.insight-icon {
  font-size: 28px;
  margin-bottom: 4px;
}

.insight-videos {
  border-left: 3px solid #0891b2;
}

.insight-remix {
  border-left: 3px solid #0ea5e9;
}

.insight-storage {
  border-left: 3px solid #ff8bd1;
}

.insight-sync {
  border-left: 3px solid #06b6d4;
}

.insight-card h3 {
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.85));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* â”€â”€ Quick Actions Grid â”€â”€ */
.quick-actions-panel {
  background: linear-gradient(160deg, rgba(8, 14, 30, 0.95), rgba(15, 18, 40, 0.9)) !important;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.quick-action-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 28px 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  background: rgba(10, 12, 25, 0.7);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  font-family: inherit;
  color: #fff;
}

.quick-action-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.quick-action-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.quick-action-card:hover::before {
  opacity: 1;
}

.qa-download::before {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), transparent);
}

.qa-remix::before {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), transparent);
}

.qa-ai::before {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), transparent);
}

.qa-upload::before {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), transparent);
}

.qa-channel::before {
  background: linear-gradient(135deg, rgba(255, 187, 68, 0.12), transparent);
}

.qa-tools::before {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.12), transparent);
}

.qa-download:hover {
  border-color: rgba(6, 182, 212, 0.3);
}

.qa-remix:hover {
  border-color: rgba(14, 165, 233, 0.3);
}

.qa-ai:hover {
  border-color: rgba(16, 185, 129, 0.3);
}

.qa-upload:hover {
  border-color: rgba(6, 182, 212, 0.3);
}

.qa-channel:hover {
  border-color: rgba(255, 187, 68, 0.3);
}

.qa-tools:hover {
  border-color: rgba(255, 107, 53, 0.3);
}

.qa-icon {
  font-size: 36px;
  position: relative;
  z-index: 1;
}

.quick-action-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.quick-action-card p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  position: relative;
  z-index: 1;
}

/* â”€â”€ Pipeline Step Badge â”€â”€ */
.pipeline-step-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(6, 182, 212, 0.2));
  border: 1px solid rgba(6, 182, 212, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #a78bfa;
  flex-shrink: 0;
}

/* â”€â”€ Banner Background Image â”€â”€ */
.banner-bg-img {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: auto;
  max-width: 50%;
  object-fit: cover;
  opacity: 0.25;
  z-index: 0;
  border-radius: 20px;
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.6), transparent 90%);
  -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.6), transparent 90%);
}

/* â”€â”€ Pipeline Card with Image â”€â”€ */
.pipeline-has-img {
  padding: 0 !important;
  overflow: hidden;
}

.pipeline-card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 22px 22px 0 0;
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.5s ease;
}

.pipeline-has-img:hover .pipeline-card-img {
  opacity: 1;
  transform: scale(1.03);
}

.pipeline-card-body {
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════
   OVERVIEW COMMAND CENTER — SCI-FI CYBERPUNK EDITION
   ═══════════════════════════════════════════════════════ */

/* ── Hero Header ── */
.ov-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 0 8px;
}

.ov-hero-left {
  min-width: 0;
}

.ov-greeting-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ov-title {
  margin: 0;
  font-size: 32px;
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff 0%, #00f2fe 50%, #4facfe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.25;
  filter: drop-shadow(0 0 16px rgba(0, 242, 254, 0.5));
  letter-spacing: 0.5px;
}

.ov-version-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #00ff87;
  white-space: nowrap;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.5);
  position: relative;
  animation: ovPulseGreen 2s infinite ease-in-out;
  will-change: transform;
}

/* FIX LAG: box-shadow là thuộc tính PAINT — animate nó buộc vẽ lại vùng glow mỗi frame.
   Đo được: riêng chip nhỏ 128x29px này tốn ~30% của 1 core.
   Cách thay: glow đứng yên đặt ở lớp giả ::before, chỉ animate OPACITY của lớp đó
   (opacity chạy trên compositor, không repaint). Chip vẫn scale bằng transform.
   Kết quả nhìn bằng mắt: y hệt — vẫn phập phồng sáng/tối theo nhịp 2s. */
.ov-version-chip::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: 0 0 22px rgba(16, 185, 129, 0.85);
  opacity: 0;
  pointer-events: none;
  animation: ovGlowFade 2s infinite ease-in-out;
  will-change: opacity;
}

@keyframes ovPulseGreen {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.03); }
  100% { transform: scale(1); }
}

@keyframes ovGlowFade {
  0%   { opacity: 0; }
  50%  { opacity: 1; }
  100% { opacity: 0; }
}

.ov-subtitle {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: #a0aec0;
  line-height: 1.5;
  font-weight: 500;
}

.ov-hero-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* ── Cyberpunk Command Buttons ── */
.ov-btn {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  font-family: inherit;
  letter-spacing: 0.3px;
  box-sizing: border-box;
}

.ov-btn--ghost {
  background: rgba(6, 7, 10, 0.8);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: #a0aec0;
  backdrop-filter: blur(12px);
}

.ov-btn--ghost:hover {
  background: rgba(0, 242, 254, 0.12);
  border-color: #00f2fe;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.35);
  transform: translateY(-2px);
}

.ov-btn--primary {
  background: linear-gradient(135deg, #00f2fe 0%, #0891b2 50%, #0ea5e9 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.5), inset 0 0 12px rgba(255, 255, 255, 0.25) !important;
  position: relative;
  overflow: hidden;
}

.ov-btn--primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.8), 0 0 20px rgba(255, 0, 127, 0.6) !important;
}

/* ── 4 Stat Cards HUD Command Center ── */
.ov-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.ov-stat {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(6, 7, 10, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.ov-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: 0 4px 4px 0;
}

.ov-stat::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -25%;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  filter: blur(45px);
  opacity: 0.25;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* Card 1: Neon Cyan */
.ov-stat--videos {
  border-color: rgba(0, 242, 254, 0.35);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
}
.ov-stat--videos::before { background: linear-gradient(180deg, #00f2fe, #4facfe); }
.ov-stat--videos::after { background: #00f2fe; }

/* Card 2: Neon Green */
.ov-stat--remix {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}
.ov-stat--remix::before { background: linear-gradient(180deg, #10b981, #00ff87); }
.ov-stat--remix::after { background: #10b981; }

/* Card 3: Neon Purple */
.ov-stat--storage {
  border-color: rgba(6, 182, 212, 0.35);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
}
.ov-stat--storage::before { background: linear-gradient(180deg, #0891b2, #06b6d4); }
.ov-stat--storage::after { background: #0891b2; }

/* Card 4: Neon Blue */
.ov-stat--sync {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}
.ov-stat--sync::before { background: linear-gradient(180deg, #3b82f6, #00f2fe); }
.ov-stat--sync::after { background: #3b82f6; }

.ov-stat:hover {
  transform: translateY(-4px) scale(1.015);
}
.ov-stat--videos:hover { border-color: #00f2fe; box-shadow: 0 0 28px rgba(0, 242, 254, 0.45); }
.ov-stat--remix:hover { border-color: #10b981; box-shadow: 0 0 28px rgba(16, 185, 129, 0.45); }
.ov-stat--storage:hover { border-color: #0891b2; box-shadow: 0 0 28px rgba(6, 182, 212, 0.45); }
.ov-stat--sync:hover { border-color: #3b82f6; box-shadow: 0 0 28px rgba(59, 130, 246, 0.45); }

.ov-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.ov-stat--videos .ov-stat-icon {
  background: rgba(0, 242, 254, 0.15);
  color: #00f2fe;
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.3);
}

.ov-stat--remix .ov-stat-icon {
  background: rgba(16, 185, 129, 0.15);
  color: #00ff87;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.3);
}

.ov-stat--storage .ov-stat-icon {
  background: rgba(6, 182, 212, 0.15);
  color: #c084fc;
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.3);
}

.ov-stat--sync .ov-stat-icon {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.3);
}

.ov-stat-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.ov-stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a0aec0;
  font-weight: 700;
}

.ov-stat-value {
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Be Vietnam Pro', 'Segoe UI', 'Inter', Arial, sans-serif;
}

.ov-stat--videos .ov-stat-value { text-shadow: 0 0 14px rgba(0, 242, 254, 0.6); }
.ov-stat--remix .ov-stat-value { text-shadow: 0 0 14px rgba(16, 185, 129, 0.6); }
.ov-stat--storage .ov-stat-value { text-shadow: 0 0 14px rgba(6, 182, 212, 0.6); }
.ov-stat--sync .ov-stat-value { text-shadow: 0 0 14px rgba(59, 130, 246, 0.6); }

.ov-stat-value--sm {
  font-size: 15px;
  font-weight: 800;
}

.ov-stat-meta {
  position: absolute;
  bottom: 8px;
  right: 14px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  max-width: 55%;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

/* ── Flagship Engine Promo Banner ── */
.ov-promo {
  position: relative;
  border-radius: 16px;
  padding: 16px 22px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.12) 0%, rgba(121, 40, 202, 0.16) 50%, rgba(255, 0, 127, 0.12) 100%) !important;
  border: 1px solid rgba(0, 242, 254, 0.4) !important;
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.2), inset 0 0 20px rgba(121, 40, 202, 0.15) !important;
  overflow: hidden;
}

.ov-promo-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
}

.ov-promo-badge {
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(135deg, #0ea5e9, #ffb703);
  border: 1px solid rgba(255, 0, 127, 0.5);
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(255, 0, 127, 0.6);
  letter-spacing: 0.5px;
}

.ov-promo-text {
  flex: 1;
  font-size: 13.5px;
  color: #e2e8f0;
  line-height: 1.5;
}

.ov-promo-text strong {
  color: #00f2fe;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.6);
}

.ov-btn--promo {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, #00f2fe, #4facfe) !important;
  color: #06070a !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 0 22px rgba(0, 242, 254, 0.6) !important;
  transition: all 0.25s ease;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

/* FIX LAG: animate `left` = ép trình duyệt tính lại LAYOUT mỗi frame, 60 lần/giây, vĩnh viễn.
   Đo được: riêng animation này tốn ~30% của 1 core. Đổi sang `transform: translateX`
   → chạy trên compositor, không đụng layout. Hiệu ứng nhìn thấy GIỮ NGUYÊN 100%. */
.ov-btn--promo::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: ovShimmerSweep 2.2s infinite;
  will-change: transform;
}

@keyframes ovShimmerSweep {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

.ov-btn--promo:hover {
  transform: translateX(4px) scale(1.04);
  box-shadow: 0 0 32px rgba(0, 242, 254, 0.9) !important;
}

/* ── Section Titles ── */
.ov-section-title {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 800;
  color: #e2e8f0;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* ── 4 Quick Actions ── */
.ov-quick {
  padding: 0;
}

.ov-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.ov-qcard {
  all: unset;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-radius: 16px;
  background: rgba(6, 7, 10, 0.85);
  border: 1px solid rgba(0, 242, 254, 0.2);
  backdrop-filter: blur(16px);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.ov-qcard:hover {
  transform: translateY(-4px) scale(1.02);
  background: rgba(0, 242, 254, 0.08);
  border-color: #00f2fe;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.3);
}

.ov-qcard-icon {
  font-size: 28px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.4));
}

.ov-qcard-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.ov-qcard-text strong {
  font-size: 14.5px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
}

.ov-qcard-text span {
  font-size: 11.5px;
  color: #a0aec0;
}

/* ── 3-Step Pipeline Laser Connector Flow ── */
.ov-pipeline {
  padding: 0;
}

.ov-pipeline-row {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.ov-step {
  flex: 1;
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(6, 7, 10, 0.85);
  border: 1px solid rgba(0, 242, 254, 0.25);
  backdrop-filter: blur(16px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.ov-step:hover {
  border-color: #00f2fe;
  transform: translateY(-4px);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.3);
}

.ov-step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.3) 0%, rgba(121, 40, 202, 0.4) 100%);
  border: 1.5px solid #00f2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  color: #ffffff;
  flex-shrink: 0;
  letter-spacing: 0.05em;
  font-family: 'Be Vietnam Pro', 'Segoe UI', 'Inter', Arial, sans-serif;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.6);
}

.ov-step-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ov-step-body h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

.ov-step-body p {
  margin: 0;
  font-size: 12px;
  color: #a0aec0;
  line-height: 1.4;
}

.ov-step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  color: #00f2fe;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.8));
  animation: laserPulseFlow 1.8s infinite ease-in-out;
}

@keyframes laserPulseFlow {
  0% { opacity: 0.4; transform: translateX(-3px); }
  50% { opacity: 1; transform: translateX(3px); filter: drop-shadow(0 0 14px rgba(0, 242, 254, 1)); }
  100% { opacity: 0.4; transform: translateX(-3px); }
}

.ov-step-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ov-step-body h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.ov-step-body p {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}

.ov-step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  color: #10b981;
  flex-shrink: 0;
  animation: flowArrow 2s infinite ease-in-out;
}

/* ── Responsive for smaller screens ── */
@media (max-width: 1200px) {
  .ov-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .ov-quick-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .ov-pipeline-row {
    flex-direction: column;
    gap: 10px;
  }

  .ov-step-arrow {
    transform: rotate(90deg);
    padding: 4px 0;
  }
}

@media (max-width: 900px) {
  .ov-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .ov-quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ═══════════════════════════════════════════════════════
   DOWNLOAD PAGE REDESIGN — Compact & Professional
   ═══════════════════════════════════════════════════════ */

/* ── Download Hero ── */
.dl-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0;
}

.dl-hero-left {
  min-width: 0;
}

.dl-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dl-title-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.2) 0%, rgba(0, 102, 255, 0.08) 100%);
  border: 1px solid rgba(0, 242, 254, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00f2fe;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.dl-title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  text-shadow: 0 0 12px rgba(0, 242, 254, 0.3);
}

.dl-subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* ── Douyin Badge ── */
.dl-badge-new {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(255, 183, 0, 0.25), rgba(255, 85, 0, 0.2));
  border: 1px solid rgba(255, 183, 0, 0.6);
  color: #ffb700;
  text-shadow: 0 0 8px rgba(255, 183, 0, 0.6);
  animation: badge-glow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes badge-glow {
  0%, 100% {
    box-shadow: 0 0 4px rgba(255, 183, 0, 0.2);
  }
  50% {
    box-shadow: 0 0 16px rgba(255, 183, 0, 0.6);
  }
}

/* ── Platform Cards (Cyber Glassmorphism) ── */
.dl-platforms {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.dl-plat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px 14px;
  border-radius: 16px;
  background: rgba(10, 15, 30, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.dl-plat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dl-plat-card:hover {
  transform: translateY(-4px);
}

.dl-plat-card:hover::before {
  opacity: 1;
}

/* Platform color accents & Neon Glows */
.dl-plat-card--yt::before {
  background: radial-gradient(circle at center, rgba(255, 0, 51, 0.15), transparent 70%);
}

.dl-plat-card--yt:hover {
  border-color: rgba(255, 0, 51, 0.6);
  box-shadow: 0 0 20px rgba(255, 0, 51, 0.35);
}

.dl-plat-card--yt .dl-plat-icon {
  background: rgba(255, 0, 51, 0.12);
  color: #ff3344;
  border: 1px solid rgba(255, 0, 51, 0.25);
}

.dl-plat-card--tk::before {
  background: radial-gradient(circle at center, rgba(0, 242, 254, 0.15), transparent 70%);
}

.dl-plat-card--tk:hover {
  border-color: rgba(0, 242, 254, 0.6);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.35);
}

.dl-plat-card--tk .dl-plat-icon {
  background: rgba(0, 242, 254, 0.12);
  color: #00f2fe;
  border: 1px solid rgba(0, 242, 254, 0.25);
}

.dl-plat-card--dy::before {
  background: radial-gradient(circle at center, rgba(255, 183, 0, 0.15), transparent 70%);
}

.dl-plat-card--dy:hover {
  border-color: rgba(255, 183, 0, 0.6);
  box-shadow: 0 0 20px rgba(255, 183, 0, 0.35);
}

.dl-plat-card--dy .dl-plat-icon {
  background: rgba(255, 183, 0, 0.12);
  color: #ffb700;
  border: 1px solid rgba(255, 183, 0, 0.25);
}

.dl-plat-card--fb::before {
  background: radial-gradient(circle at center, rgba(24, 119, 242, 0.15), transparent 70%);
}

.dl-plat-card--fb:hover {
  border-color: rgba(24, 119, 242, 0.6);
  box-shadow: 0 0 20px rgba(24, 119, 242, 0.35);
}

.dl-plat-card--fb .dl-plat-icon {
  background: rgba(24, 119, 242, 0.12);
  color: #3b82f6;
  border: 1px solid rgba(24, 119, 242, 0.25);
}

.dl-plat-card--ig::before {
  background: radial-gradient(circle at center, rgba(225, 48, 108, 0.15), transparent 70%);
}

.dl-plat-card--ig:hover {
  border-color: rgba(225, 48, 108, 0.6);
  box-shadow: 0 0 20px rgba(225, 48, 108, 0.35);
}

.dl-plat-card--ig .dl-plat-icon {
  background: rgba(225, 48, 108, 0.12);
  color: #e1306c;
  border: 1px solid rgba(225, 48, 108, 0.25);
}

.dl-plat-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: transform 0.25s ease;
}

.dl-plat-card:hover .dl-plat-icon {
  transform: scale(1.1);
}

.dl-plat-name {
  font-size: 12px;
  font-weight: 700;
  color: #e2e8f0;
  position: relative;
  z-index: 1;
}

.dl-plat-status {
  font-size: 11px;
  color: #00ffaa;
  position: relative;
  z-index: 1;
  text-shadow: 0 0 6px rgba(0, 255, 170, 0.6);
}

.dl-plat-badge {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #ff5500, #ffb700);
  color: #000;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 10px rgba(255, 183, 0, 0.5);
  animation: badge-pulse 1.8s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(255, 183, 0, 0.4);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 16px rgba(255, 183, 0, 0.8);
  }
}

/* ── Auto-detect label ── */
.dl-auto-detect {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #00f2fe;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.dl-auto-detect svg {
  color: #00f2fe;
  animation: flash-bolt 1.5s ease infinite;
}

@keyframes flash-bolt {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@media (max-width: 900px) {
  .dl-platforms {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Form Panel (Hacker Terminal) ── */
.dl-form-panel {
  border-radius: 20px;
  padding: 24px;
  background: rgba(6, 10, 24, 0.85);
  border: 1px solid rgba(0, 242, 254, 0.15);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 242, 254, 0.03);
}

.dl-form-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.dl-form-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #00f2fe;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.02em;
}

.dl-form-title svg {
  color: #00f2fe;
}

/* ── Textarea Terminal ── */
.dl-textarea-wrap {
  position: relative;
}

.dl-textarea-wrap textarea {
  width: 100%;
  min-height: 130px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(0, 242, 254, 0.2);
  background: rgba(3, 7, 18, 0.95);
  color: #00f2fe;
  font-size: 13.5px;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  line-height: 1.65;
  resize: vertical;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.8);
}

.dl-textarea-wrap textarea:focus {
  outline: none;
  border-color: #00f2fe;
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.4), inset 0 0 10px rgba(0, 242, 254, 0.15);
}

.dl-textarea-wrap textarea::placeholder {
  color: rgba(0, 242, 254, 0.3);
}

.dl-textarea-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.5);
}

.dl-textarea-hint svg {
  flex-shrink: 0;
  color: #00f2fe;
}

.dl-textarea-hint strong {
  color: #00f2fe;
}

/* ── Actions Row ── */
.dl-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
}

.dl-actions-left {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dl-action-chip {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  white-space: nowrap;
}

.dl-action-chip:hover {
  background: rgba(0, 242, 254, 0.12);
  border-color: rgba(0, 242, 254, 0.4);
  color: #00f2fe;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
}

.dl-action-chip--danger {
  color: #ff4d4d;
  border-color: rgba(255, 77, 77, 0.25);
  background: rgba(255, 77, 77, 0.06);
}

.dl-action-chip--danger:hover {
  background: rgba(255, 77, 77, 0.15);
  border-color: rgba(255, 77, 77, 0.5);
  color: #ff6666;
  box-shadow: 0 4px 15px rgba(255, 77, 77, 0.25);
}

/* Cyber Energy Submit Button */
.dl-submit-btn {
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #030712;
  border: 1px solid rgba(0, 242, 254, 0.8);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.45);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  font-family: inherit;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.dl-submit-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 45%,
    rgba(255, 255, 255, 0.7) 50%,
    transparent 55%
  );
  transform: rotate(30deg);
  animation: dl-shimmer 3s ease-in-out infinite;
}

@keyframes dl-shimmer {
  0% { transform: translateX(-100%) rotate(30deg); }
  30%, 100% { transform: translateX(100%) rotate(30deg); }
}

.dl-submit-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.75);
}

/* ── Job Name Row ── */
.dl-job-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dl-job-label {
  font-size: 12px;
  font-weight: 700;
  color: #00f2fe;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dl-job-icon {
  font-size: 14px;
}

.dl-job-input {
  flex: 1;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 242, 254, 0.2);
  background: rgba(3, 7, 18, 0.9);
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.dl-job-input:focus {
  outline: none;
  border-color: #00f2fe;
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.3);
}

.dl-job-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* ── Library Panel ── */
.dl-library-panel {
  border-radius: 20px;
  padding: 24px;
  background: rgba(6, 10, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  margin-top: 24px;
}

.dl-library-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.dl-library-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.dl-library-info h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.dl-library-info h3 svg {
  color: #00f2fe;
}

.dl-library-status {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.dl-library-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* ── Batch Link ── */
.dl-batch-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(10, 14, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.dl-batch-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.dl-batch-info svg {
  color: var(--muted);
  flex-shrink: 0;
}

.dl-batch-info strong {
  color: rgba(255, 255, 255, 0.8);
}

/* ═══════════════════════════════════════════════════════
   DISCOVER PAGE REDESIGN — Compact & Professional
   ═══════════════════════════════════════════════════════ */

/* ── Discover Hero ── */
.dc-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0;
}

.dc-hero-left {
  min-width: 0;
}

.dc-title-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0ea5e9;
  flex-shrink: 0;
}

/* ── Panel ── */
.dc-panel {
  border-radius: 18px;
  padding: 24px;
  background: rgba(8, 12, 28, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

/* ── Tabs ── */
.dc-tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 18px;
  width: fit-content;
}

.dc-tab {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.dc-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.dc-tab.active {
  background: rgba(14, 165, 233, 0.12);
  color: #a5ffe7;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
}

.dc-tab svg {
  opacity: 0.7;
}

.dc-tab.active svg {
  opacity: 1;
}

/* ── Filters ── */
.dc-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dc-filters.hidden {
  display: none;
}

.dc-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.dc-input {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 6, 16, 0.9);
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.dc-input:focus {
  outline: none;
  border-color: rgba(14, 165, 233, 0.35);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.08);
}

.dc-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.dc-input--main {
  flex: 1;
  min-width: 200px;
}

.dc-select {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 6, 16, 0.9);
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: border 0.2s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  min-width: 130px;
}

.dc-select:focus {
  outline: none;
  border-color: rgba(14, 165, 233, 0.35);
}

.dc-select option {
  background: #0a0e1e;
  color: #fff;
}

/* ── Library Page Icon ── */
.lib-title-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00f2fe;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
  filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.6));
}

#refresh-comparison {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: #00f2fe;
}

#refresh-comparison:hover {
  background: rgba(0, 242, 254, 0.18);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.45);
  transform: translateY(-2px);
}

#refresh-comparison svg {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#refresh-comparison:hover svg {
  transform: rotate(180deg);
}

/* ═══════════════════════════════════════════════════════
   CHANNEL PAGE REDESIGN — Compact & Professional
   ═══════════════════════════════════════════════════════ */

.ch-title-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 68, 68, 0.12);
  border: 1px solid rgba(255, 68, 68, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff6b6b;
  flex-shrink: 0;
}

.ch-panel {
  border-radius: 18px;
  padding: 24px;
  background: rgba(8, 12, 28, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.ch-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ch-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ch-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
}

/* ── Platform Tabs ── */
.ch-platforms {
  display: flex;
  gap: 6px;
}

.ch-plat {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.25s ease;
  font-family: inherit;
}

.ch-plat:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.ch-plat.active {
  background: rgba(255, 68, 68, 0.1);
  border-color: rgba(255, 68, 68, 0.35);
  color: #ff8a8a;
}

.ch-plat.active svg {
  color: #ff6b6b;
}

/* ── Submit Row ── */
.ch-submit-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ── Hint ── */
.ch-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
}

.ch-hint svg {
  flex-shrink: 0;
  opacity: 0.5;
}

/* ── Status ── */
.ch-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.08);
}

.ch-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  animation: ch-pulse 2s ease-in-out infinite;
}

@keyframes ch-pulse {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

.ch-status-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ch-status-text span:first-child {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.ch-status-detail {
  font-size: 11px;
  color: var(--muted);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.panel-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.panel-header h2 {
  margin: 0;
}

.panel-header p {
  margin: 4px 0 0;
  color: var(--muted);
}

.download-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.download-form label {
  font-weight: 500;
}

.download-form .input-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.channel-status {
  margin-top: 16px;
  padding: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.channel-status p {
  margin: 0;
}

.channel-status p+p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.platform-selector {
  display: flex;
  gap: 8px;
}

.platform-btn {
  flex: 1;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: border 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.platform-btn.active {
  border-color: rgba(6, 182, 212, 0.8);
  background: rgba(6, 182, 212, 0.25);
  transform: translateY(-1px);
}

.input-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.input-actions .pill-btn {
  flex-shrink: 0;
}

.input-hint.compact {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.7);
}

.remix-header {
  align-items: flex-start;
  flex-wrap: wrap;
}

.remix-visual-stage {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.remix-hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(210px, 0.9fr);
  gap: 24px;
  padding: 24px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle at 15% 10%, rgba(6, 182, 212, 0.16), transparent 55%),
    linear-gradient(135deg, rgba(11, 15, 30, 0.95), rgba(28, 8, 38, 0.9));
  box-shadow: 0 25px 45px rgba(3, 5, 20, 0.55);
}

.remix-hero-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.07), transparent 60%);
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero-content {
  flex: 1 1 320px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.hero-chip {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f7e8ff;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.hero-content h3 {
  margin: 0;
  font-size: 28px;
}

.hero-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.hero-effect-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.effect-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.08);
  color: #f4f4f6;
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: float-badge 6s ease-in-out infinite;
}

.effect-badge.strong {
  background: rgba(6, 182, 212, 0.25);
  border-color: rgba(6, 182, 212, 0.45);
}

.effect-badge.soft {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.35);
}

.hero-video-shell {
  flex: 1 1 auto;
  min-width: 220px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.3), transparent 70%);
  filter: blur(30px);
  animation: pulse-frame 5s ease-in-out infinite;
}

.hero-video-frame {
  position: relative;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(13, 18, 48, 0.92), rgba(21, 8, 28, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
  box-shadow: 0 18px 35px rgba(3, 5, 20, 0.55);
}

.hero-video-logo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  z-index: 1;
}

.hero-video-logo img {
  width: 70%;
  max-width: 120px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  padding: 12px;
  box-shadow: 0 10px 25px rgba(10, 5, 30, 0.45);
  filter: drop-shadow(0 0 22px rgba(6, 182, 212, 0.25));
}

.hero-video-noise {
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%20150%20150%22%3E%3Cfilter%20id=%22noise%22%3E%3CfeTurbulence%20type=%22fractalNoise%22%20baseFrequency=%220.9%22%20numOctaves=%223%22/%3E%3C/filter%3E%3Crect%20width=%22100%25%22%20height=%22100%25%22%20filter=%22url(%23noise)%22%20opacity=%220.25%22/%3E%3C/svg%3E');
  mix-blend-mode: screen;
  opacity: 0.6;
}

.hero-scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 60%, rgba(6, 182, 212, 0.2));
  animation: scanline 3.8s linear infinite;
  mix-blend-mode: screen;
}

.hero-video-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(5, 6, 10, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-video-timecode {
  position: absolute;
  bottom: 14px;
  right: 16px;
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.08em;
}

.remix-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.metric-card {
  position: relative;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.metric-card h4 {
  margin: 8px 0 6px;
  font-size: 24px;
}

.metric-card p {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: var(--muted);
}

.metric-card span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.metric-card.highlight {
  border-color: rgba(6, 182, 212, 0.4);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(16, 185, 129, 0.18));
}

.remix-lab-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 24px;
}

.remix-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.remix-side-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side-panel-card {
  border-radius: 24px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 8, 18, 0.75);
  position: relative;
  overflow: hidden;
}

.side-panel-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(6, 182, 212, 0.25), transparent 60%);
  pointer-events: none;
}

.side-panel-card.metric {
  background: linear-gradient(135deg, rgba(15, 20, 48, 0.9), rgba(41, 9, 42, 0.92));
  border-color: rgba(6, 182, 212, 0.35);
}

.side-panel-card.badge-cloud {
  background: rgba(255, 255, 255, 0.03);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.16em;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  margin: 0 0 12px;
}

.chip.glow {
  border-color: rgba(6, 182, 212, 0.45);
  color: #d4c9ff;
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.35);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.timeline-step {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  position: relative;
}

.timeline-step.active {
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.15);
}

.timeline-step span {
  display: block;
  font-weight: 600;
}

.timeline-step p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.step-index {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.5);
  align-self: flex-start;
}

.metric-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.metric-row>div {
  flex: 1 1 140px;
}

.metric-row h4 {
  margin: 6px 0 4px;
}

.metric-row span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.sparkline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-top: 18px;
}

.sparkline span {
  display: block;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.9), rgba(16, 185, 129, 0.6));
  animation: spark 2.4s ease-in-out infinite;
}

.sparkline span:nth-child(2) {
  animation-delay: 0.2s;
}

.sparkline span:nth-child(3) {
  animation-delay: 0.4s;
}

.sparkline span:nth-child(4) {
  animation-delay: 0.6s;
}

.sparkline span:nth-child(5) {
  animation-delay: 0.8s;
}

.sparkline span:nth-child(6) {
  animation-delay: 1s;
}

.badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.remix-side-panel .effect-badge {
  font-size: 12px;
  padding: 6px 12px;
}

.remix-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

select {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 6, 10, 0.7);
  color: #fff;
  font-size: 14px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

select:focus {
  outline: none;
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.18);
}

.select-multi {
  min-height: 180px;
}

.select-multi option {
  padding: 7px 8px;
}

.remix-source-native {
  display: none;
}

.remix-source-panel {
  padding: 14px;
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(26, 29, 45, 0.94), rgba(11, 15, 30, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 48px rgba(15, 23, 42, 0.28);
}

.remix-source-head,
.remix-source-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.remix-source-head h4 {
  margin: 2px 0 0;
  font-size: 15px;
  color: #f8fafc;
}

.remix-source-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b93ff;
}

.remix-source-count {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.36);
  background: rgba(99, 102, 241, 0.14);
  color: #c7d2fe;
  font-size: 12px;
  font-weight: 800;
}

.remix-source-actions {
  justify-content: flex-start;
  margin: 12px 0;
  flex-wrap: wrap;
}

.remix-source-action {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #cbd5e1;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.remix-source-action:hover {
  transform: translateY(-1px);
  border-color: rgba(129, 140, 248, 0.55);
  background: rgba(30, 41, 59, 0.9);
}

.remix-source-action.primary {
  color: #e0e7ff;
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(99, 102, 241, 0.18);
}

.remix-processed-divider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 6px;
  padding-top: 18px;
  border-top: 1px solid rgba(148,163,184,.16);
}
.remix-processed-divider h4 { margin: 2px 0 0; color: #f1f5f9; }
.remix-source-kicker { margin: 0; color: #a5b4fc; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.remix-processed-count { padding: 6px 10px; border-radius: 999px; color: #fbbf24; background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.28); font-size: 11px; font-weight: 900; }
.remix-processed-help { margin: 0 0 10px; color: #94a3b8; font-size: 12px; }
.remix-processed-card { cursor: pointer; opacity: .86; border-color: rgba(148,163,184,.18); }
.remix-processed-card:hover { opacity: 1; border-color: rgba(245,158,11,.5); transform: translateY(-1px); }
.remix-processed-badge { align-self: center; padding: 5px 8px; border-radius: 999px; white-space: nowrap; font-size: 10px; font-weight: 900; color: #f8fafc; background: rgba(100,116,139,.28); border: 1px solid rgba(148,163,184,.26); }
.remix-processed-badge.is-translated { color: #a7f3d0; background: rgba(16,185,129,.15); border-color: rgba(16,185,129,.35); }
.remix-processed-badge.is-remix { color: #fcd34d; background: rgba(245,158,11,.15); border-color: rgba(245,158,11,.35); }
.remix-processed-badge.is-edited, .remix-processed-badge.is-merged { color: #c4b5fd; background: rgba(139,92,246,.15); border-color: rgba(139,92,246,.35); }
.remix-processed-list { max-height: 260px; overflow: auto; }

.remix-source-list {
  display: grid;
  gap: 8px;
  max-height: 214px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(129, 140, 248, 0.5) rgba(15, 23, 42, 0.65);
}

.remix-source-list::-webkit-scrollbar {
  width: 8px;
}

.remix-source-list::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.65);
  border-radius: 999px;
}

.remix-source-list::-webkit-scrollbar-thumb {
  background: rgba(129, 140, 248, 0.5);
  border-radius: 999px;
}

.remix-source-card {
  display: grid;
  grid-template-columns: 22px 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid rgba(100, 116, 139, 0.28);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.58);
  color: #f8fafc;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.remix-source-card:hover {
  transform: translateY(-1px);
  border-color: rgba(129, 140, 248, 0.5);
  background: rgba(30, 41, 59, 0.68);
}

.remix-source-card.selected {
  border-color: rgba(99, 102, 241, 0.86);
  background: rgba(99, 102, 241, 0.13);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.16), 0 12px 30px rgba(79, 70, 229, 0.16);
}

.remix-source-check {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #fff;
  background: rgba(15, 23, 42, 0.8);
  font-size: 13px;
  font-weight: 900;
}

.remix-source-card.selected .remix-source-check {
  border-color: #818cf8;
  background: #6366f1;
}

.remix-source-thumb {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #a5b4fc;
  background: radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.25), rgba(99, 102, 241, 0.12)), rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(129, 140, 248, 0.28);
}

.remix-source-info {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.remix-source-name,
.remix-source-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remix-source-name {
  font-size: 13px;
  font-weight: 800;
}

.remix-source-meta {
  font-size: 11px;
  color: #94a3b8;
}

.remix-source-play {
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.35);
  color: #99f6e4;
  background: rgba(20, 184, 166, 0.12);
  font-size: 11px;
  font-weight: 900;
}

.remix-source-empty {
  padding: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  color: #94a3b8;
  text-align: center;
  font-size: 13px;
}

.remix-source-preview-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
  z-index: 2;
}

.remix-source-preview-video[hidden],
.remix-source-preview-empty[hidden] {
  display: none;
}

.remix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.option-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  font-weight: 500;
  transition: border 0.2s ease, background 0.2s ease;
}

.option-chip input {
  accent-color: var(--accent);
}

.option-chip.compact {
  padding: 10px 12px;
}

.option-chip:hover {
  border-color: rgba(14, 165, 233, 0.5);
  background: rgba(14, 165, 233, 0.1);
}

.option-chip.featured {
  border-color: rgba(255, 200, 50, 0.5);
  background: linear-gradient(135deg, rgba(255, 200, 50, 0.15) 0%, rgba(255, 150, 50, 0.1) 100%);
  grid-column: span 2;
}

.option-chip.featured:hover {
  border-color: rgba(255, 200, 50, 0.8);
  background: linear-gradient(135deg, rgba(255, 200, 50, 0.25) 0%, rgba(255, 150, 50, 0.15) 100%);
}

.option-chip.featured span {
  font-weight: 600;
}

.remix-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.form-field {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#frame-color {
  width: 100%;
  height: 46px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
}

#speed-factor {
  width: 100%;
  accent-color: var(--accent);
}

#shake-intensity {
  width: 100%;
  accent-color: #ff8bd1;
}

.audio-effects {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.08);
}

.group-title {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: var(--muted);
}

.audio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.remix-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.remix-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.platform-remix-presets {
  margin-top: 8px;
  flex-direction: column;
  gap: 6px;
}

.platform-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.preset-chip {
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.preset-chip:hover {
  background: rgba(6, 182, 212, 0.2);
  transform: translateY(-1px);
}

.preset-chip.highlight {
  background: rgba(255, 126, 95, 0.18);
  color: #ffe0d4;
}

.panel.flash {
  box-shadow: 0 0 0 2px rgba(90, 168, 255, 0.4), 0 30px 80px rgba(3, 5, 20, 0.55);
}

input[type='url'] {
  flex: 1;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 8, 18, 0.9);
  color: #fff;
  font-size: 15px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input[type='url']:focus {
  outline: none;
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

textarea {
  width: 100%;
  min-height: 160px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 8, 18, 0.9);
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  line-height: 1.5;
  resize: vertical;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

textarea:focus {
  outline: none;
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

.input-hint {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.empty-label {
  margin: 0;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  width: 100%;
}

.pill-btn {
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.pill-btn.primary {
  background: var(--gradient);
  box-shadow: 0 15px 30px rgba(90, 168, 255, 0.35);
}

.pill-btn.glow {
  box-shadow: 0 0 24px rgba(6, 182, 212, 0.6);
}

.pill-btn.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.pill-btn.danger {
  background: rgba(255, 125, 156, 0.2);
  color: #ffafc7;
}

.hidden-option {
  display: none;
}

.quick-preset-banner {
  margin-top: 18px;
  padding: 22px 28px;
  border-radius: 24px;
  background: radial-gradient(circle at 0% 0%, rgba(14, 165, 233, 0.35), transparent 55%),
    radial-gradient(circle at 85% 0%, rgba(16, 185, 129, 0.35), transparent 55%),
    linear-gradient(115deg, rgba(4, 8, 24, 0.9), rgba(12, 18, 42, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  box-shadow: 0 18px 50px rgba(2, 4, 10, 0.55);
  position: relative;
  overflow: hidden;
}

.quick-preset-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.12), transparent 60%);
  pointer-events: none;
}

.quick-banner-left {
  flex: 1;
  position: relative;
  z-index: 1;
}

.quick-label {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f9fbff;
}

.quick-label span {
  font-size: 18px;
}

.quick-subtitle {
  margin: 6px 0 0;
  color: #d4d7ff;
  font-size: 13px;
  max-width: 520px;
  line-height: 1.6;
}

.quick-pulse {
  margin-top: 14px;
  display: flex;
  gap: 6px;
}

.quick-pulse span {
  width: 32px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.6), rgba(16, 185, 129, 0.6));
  animation: pulse-bar 1.8s ease-in-out infinite;
}

.quick-pulse span:nth-child(2) {
  animation-delay: 0.2s;
}

.quick-pulse span:nth-child(3) {
  animation-delay: 0.4s;
}

.quick-banner-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.quick-preset-btn {
  background: linear-gradient(135deg, #0ea5e9, #06b6d4, #10b981);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 20px 45px rgba(6, 182, 212, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.quick-preset-btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 25px 60px rgba(6, 182, 212, 0.55);
}

.quick-hint {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.preset-chip.highlight {
  background: rgba(255, 126, 95, 0.18);
  color: #ffe0d4;
}

.panel.flash {
  box-shadow: 0 0 0 2px rgba(90, 168, 255, 0.4), 0 30px 80px rgba(3, 5, 20, 0.55);
}

input[type='url'] {
  flex: 1;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 8, 18, 0.9);
  color: #fff;
  font-size: 15px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input[type='url']:focus {
  outline: none;
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

textarea {
  width: 100%;
  min-height: 160px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 8, 18, 0.9);
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  line-height: 1.5;
  resize: vertical;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

textarea:focus {
  outline: none;
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

.input-hint {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.empty-label {
  margin: 0;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  width: 100%;
}

.pill-btn {
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.pill-btn.primary {
  background: var(--gradient);
  box-shadow: 0 15px 30px rgba(90, 168, 255, 0.35);
}

.pill-btn.glow {
  box-shadow: 0 0 24px rgba(6, 182, 212, 0.6);
}

.pill-btn.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.pill-btn.danger {
  background: rgba(255, 125, 156, 0.2);
  color: #ffafc7;
}

.pill-btn:hover {
  transform: translateY(-1px);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.comparison-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Empty Vault Container (Cyberpunk Hologram HUD) */
.cyber-empty-vault {
  position: relative;
  border-radius: 20px;
  background: rgba(8, 12, 28, 0.85);
  border: 1px solid rgba(0, 242, 254, 0.25);
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(0, 242, 254, 0.05);
}

.empty-vault-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.15), transparent 70%);
  pointer-events: none;
  animation: empty-vault-pulse 4s ease-in-out infinite;
}

@keyframes empty-vault-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.empty-vault-scanner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00f2fe, transparent);
  box-shadow: 0 0 10px #00f2fe;
  animation: empty-vault-scan 3s ease-in-out infinite alternate;
}

@keyframes empty-vault-scan {
  0% { top: 0%; }
  100% { top: 98%; }
}

.empty-vault-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.35);
  display: grid;
  place-items: center;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
  position: relative;
  z-index: 1;
}

.empty-vault-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #ffffff 0%, #00f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.4));
  position: relative;
  z-index: 1;
}

.empty-vault-desc {
  margin: 0;
  font-size: 13.5px;
  color: rgba(244, 247, 255, 0.6);
  max-width: 440px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.empty-vault-btn {
  margin-top: 8px;
  padding: 10px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #00f2fe 0%, #0891b2 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
  transition: all 0.25s ease;
  position: relative;
  z-index: 1;
}

.empty-vault-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.7);
}

/* Comparison Pair Container */
.comparison-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(0, 242, 254, 0.2);
  background: rgba(8, 12, 28, 0.9);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
}

.comparison-card {
  background: rgba(4, 7, 18, 0.9);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
}

.comparison-card:hover {
  border-color: rgba(0, 242, 254, 0.35);
  box-shadow: 0 8px 25px rgba(0, 242, 254, 0.12);
}

.comparison-card--remixed {
  border-color: rgba(121, 40, 202, 0.35);
  background: linear-gradient(160deg, rgba(12, 10, 32, 0.95), rgba(4, 7, 18, 0.95));
}

.comparison-card--remixed:hover {
  border-color: rgba(121, 40, 202, 0.6);
  box-shadow: 0 8px 25px rgba(121, 40, 202, 0.25);
}

.comparison-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.comparison-card header strong {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.comparison-card .tag-original {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
}

.comparison-card .tag-remixed {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(121, 40, 202, 0.25);
  border: 1px solid rgba(121, 40, 202, 0.6);
  color: #e0aaff;
  box-shadow: 0 0 12px rgba(121, 40, 202, 0.4);
}

.comparison-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.comp-cyber-btn {
  flex: 1;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  outline: none;
}

.comp-cyber-btn--play {
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.35);
  color: #00f2fe;
}

.comp-cyber-btn--play:hover {
  background: rgba(0, 242, 254, 0.25);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.4);
}

.comp-cyber-btn--download {
  background: rgba(121, 40, 202, 0.18);
  border: 1px solid rgba(121, 40, 202, 0.45);
  color: #e0aaff;
}

.comp-cyber-btn--download:hover {
  background: rgba(121, 40, 202, 0.35);
  box-shadow: 0 0 12px rgba(121, 40, 202, 0.5);
}

.discover-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.discover-tab {
  all: unset;
  cursor: pointer;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.discover-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.discover-tab.active {
  background: rgba(14, 165, 233, 0.12);
  color: #a5ffe7;
  border-color: rgba(14, 165, 233, 0.5);
}

.discover-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.discover-search {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.discover-search.hidden {
  display: none;
}

.discover-search .text-input {
  flex: 1;
  min-width: 260px;
}

.discover-results {
  overflow-x: auto;
  max-width: 100%;
  margin-top: 16px;
}

.discover-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1200px;
  table-layout: auto;
}

.discover-table th,
.discover-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
}

.discover-table thead th {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-size: 11px;
}

.discover-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.discover-thumb {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
}

.discover-link-btn {
  all: unset;
  cursor: pointer;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(14, 165, 233, 0.5);
  color: #a7f3d0;
}

.job-queue {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.job-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(8, 14, 40, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.job-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.job-title {
  font-size: 14px;
  font-weight: 500;
}

.job-meta {
  font-size: 12px;
  color: var(--muted);
}

.job-status-pill {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.job-status-running {
  color: #fde68a;
  background: rgba(250, 204, 21, 0.15);
  border-color: rgba(250, 204, 21, 0.35);
}

.job-status-success {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.15);
  border-color: rgba(74, 222, 128, 0.35);
}

.job-status-failed,
.job-status-cancelled {
  color: #fb7185;
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.35);
}

.job-progress-bar {
  position: relative;
  width: 140px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.job-progress-bar span {
  position: absolute;
  inset: 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #0ea5e9, #06b6d4);
  transition: width 0.25s ease;
}

.job-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.job-cancel-btn {
  all: unset;
  cursor: pointer;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(248, 113, 113, 0.5);
  color: #fecaca;
  background: rgba(127, 29, 29, 0.3);
}

.batch-dashboard-panel {
  position: relative;
  overflow: hidden;
}

.batch-dashboard-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 0%, rgba(14, 165, 233, 0.12), transparent 28%),
    radial-gradient(circle at 85% 8%, rgba(6, 182, 212, 0.14), transparent 30%);
}

.batch-dashboard-panel>* {
  position: relative;
  z-index: 1;
}

/* ── COMMAND CENTER TASK QUEUE ── */
#batch-view .workspace-header h1 {
  background: linear-gradient(135deg, #ffffff 0%, #00f2fe 50%, #0891b2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(0, 242, 254, 0.35));
}

#batch-view .eyebrow {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.35);
  color: #00f2fe;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
}

.batch-stats-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.batch-stat-card {
  min-height: 95px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(8, 12, 28, 0.85);
  border: 1px solid rgba(0, 242, 254, 0.18);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.batch-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(0, 242, 254, 0.15);
}

.batch-stat-value {
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
}

.batch-stat-card:nth-child(1) .batch-stat-value {
  color: #00f2fe;
  text-shadow: 0 0 14px rgba(0, 242, 254, 0.6);
}

.batch-stat-running {
  border-color: rgba(0, 242, 254, 0.4);
}

.batch-stat-running .batch-stat-value {
  color: #00f2fe;
  text-shadow: 0 0 16px rgba(0, 242, 254, 0.8);
}

.batch-stat-completed {
  border-color: rgba(16, 185, 129, 0.4);
}

.batch-stat-completed .batch-stat-value {
  color: #10b981;
  text-shadow: 0 0 16px rgba(16, 185, 129, 0.8);
}

.batch-stat-failed {
  border-color: rgba(255, 0, 127, 0.4);
}

.batch-stat-failed .batch-stat-value {
  color: #0ea5e9;
  text-shadow: 0 0 16px rgba(255, 0, 127, 0.8);
}

.batch-stat-card:nth-child(5) {
  border-color: rgba(245, 158, 11, 0.4);
}

.batch-stat-card:nth-child(5) .batch-stat-value {
  color: #f59e0b;
  text-shadow: 0 0 16px rgba(245, 158, 11, 0.8);
}

.batch-stat-label {
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

#refresh-jobs {
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: #00f2fe;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
}

#refresh-jobs:hover {
  background: rgba(0, 242, 254, 0.18);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.45);
  transform: translateY(-2px);
}

.batch-filter-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: rgba(4, 7, 18, 0.9);
  border: 1px solid rgba(0, 242, 254, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.batch-filter-tab {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 18px;
  background: transparent;
  color: rgba(244, 247, 255, 0.6);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.batch-filter-tab:hover {
  color: #00f2fe;
  background: rgba(0, 242, 254, 0.08);
}

.batch-filter-tab.active {
  color: #ffffff;
  background: linear-gradient(135deg, #00f2fe 0%, #0891b2 100%);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.45);
}

/* Empty Queue HUD Container */
.cyber-empty-queue {
  position: relative;
  border-radius: 20px;
  background: rgba(8, 12, 28, 0.85);
  border: 1px solid rgba(0, 242, 254, 0.25);
  padding: 44px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5);
}

.empty-queue-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.15), transparent 70%);
  pointer-events: none;
}

.empty-queue-scanner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00f2fe, transparent);
  box-shadow: 0 0 10px #00f2fe;
  animation: empty-vault-scan 3s ease-in-out infinite alternate;
}

.empty-queue-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.35);
  display: grid;
  place-items: center;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

.empty-queue-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #00f2fe;
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.empty-queue-desc {
  margin: 0;
  font-size: 13px;
  color: rgba(244, 247, 255, 0.6);
}

.batch-dashboard-list {
  gap: 14px;
}

.batch-card {
  border-radius: 20px;
  background: rgba(8, 14, 30, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.batch-card.is-expanded {
  border-color: rgba(14, 165, 233, 0.24);
}

.batch-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

.batch-card-main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.batch-card-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.batch-card-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.batch-card-meta,
.batch-job-meta {
  font-size: 12px;
  color: var(--muted);
}

.batch-card-actions,
.batch-job-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.batch-toggle-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.batch-progress-bar {
  position: relative;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.batch-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #0ea5e9, #06b6d4, #22d3ee);
  transition: width 0.28s ease;
}

.batch-progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  animation: batchShimmer 1.8s linear infinite;
}

@keyframes batchShimmer {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(100%);
  }
}

.batch-job-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 18px 18px;
}

.batch-job-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.batch-job-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.batch-job-title {
  font-size: 14px;
  font-weight: 650;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-status-pending,
.job-status-queued {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.job-status-running {
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.14);
  border-color: rgba(34, 211, 238, 0.38);
  animation: statusPulse 1.4s ease-in-out infinite;
}

.job-status-retrying {
  color: #fde68a;
  background: rgba(250, 204, 21, 0.15);
  border-color: rgba(250, 204, 21, 0.35);
}

.job-status-success {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.15);
  border-color: rgba(74, 222, 128, 0.35);
}

.job-status-failed {
  color: #fb7185;
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.35);
}

.job-status-cancelled {
  color: #fb923c;
  background: rgba(251, 146, 60, 0.14);
  border-color: rgba(251, 146, 60, 0.34);
}

@keyframes statusPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0);
  }

  50% {
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
  }
}

.job-error-detail {
  max-width: 720px;
  margin-top: 4px;
  color: #fecaca;
  font-size: 12px;
}

.job-error-toggle {
  cursor: pointer;
  color: #fb7185;
}

.job-error-detail p {
  margin: 8px 0 0;
  padding: 10px;
  border-radius: 10px;
  background: rgba(127, 29, 29, 0.2);
  border: 1px solid rgba(248, 113, 113, 0.2);
  word-break: break-word;
}

.batch-empty-state {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 34px 18px;
  text-align: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.batch-empty-illustration {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(6, 182, 212, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  color: #67e8f9;
  font-size: 26px;
}

.batch-empty-title {
  margin: 0;
  font-size: 18px;
}

.batch-empty-text {
  margin: 0;
  color: var(--muted);
  max-width: 460px;
}

.standalone-jobs-card .batch-card-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 960px) {
  .batch-stats-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .batch-card-header,
  .batch-job-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .batch-card-actions,
  .batch-job-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .batch-job-actions .job-progress-bar {
    flex: 1;
    width: auto;
  }
}

@media (max-width: 640px) {
  .batch-stats-bar {
    grid-template-columns: 1fr;
  }

  .batch-filter-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 18px;
    width: 100%;
  }
}

/* Video viewer overlay */
.viewer-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.viewer-overlay[style*="display: flex"] {
  display: flex !important;
}

.viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.viewer-card {
  position: relative;
  width: min(960px, 96%);
  max-height: 90vh;
  background: radial-gradient(circle at 0 0, rgba(14, 165, 233, 0.1), transparent 45%),
    rgba(5, 9, 30, 0.98);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 20px 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.viewer-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  cursor: pointer;
  z-index: 50;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.viewer-close:hover {
  background: rgba(239, 68, 68, 0.6);
  transform: scale(1.1);
}

.viewer-header h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.viewer-meta {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.viewer-body {
  margin-top: 8px;
}

.viewer-body video {
  width: 100%;
  max-height: 70vh;
  border-radius: 14px;
  background: #020617;
}

.comparison-card header span {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.comparison-card .tag-original {
  color: #9de8ff;
  border-color: rgba(93, 183, 255, 0.4);
}

.comparison-card .tag-remixed {
  color: #ffbff0;
  border-color: rgba(255, 140, 220, 0.4);
}

/* Thư viện: khung theo tỉ lệ thật của video (--cmp-ar do JS gắn từ videoWidth/videoHeight).
   Video luôn contain → không cắt mép, không phóng to. Nền mờ lấp phần thừa. */
.cmp-stage {
  --cmp-ar: 16 / 9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 440px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(0, 242, 254, 0.08), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.015) 0 10px, transparent 10px 20px),
    #05070f;
}

.comparison-card--remixed .cmp-stage {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(168, 85, 247, 0.12), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.015) 0 10px, transparent 10px 20px),
    #07050f;
}

.cmp-stage video {
  display: block;
  aspect-ratio: var(--cmp-ar);
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  background: #000;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

/* Ngang/vuông: rộng theo cột, cao tự tính → không còn dải đen trên dưới */
.comparison-card.is-landscape .cmp-stage,
.comparison-card.is-square .cmp-stage {
  height: auto;
  aspect-ratio: var(--cmp-ar);
  max-height: 440px;
}

.comparison-card.is-landscape .cmp-stage video,
.comparison-card.is-square .cmp-stage video {
  width: 100%;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
}

.comparison-card.is-loading .cmp-stage video {
  opacity: 0.35;
}

.cmp-format {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #d8f7ff;
  background: rgba(3, 8, 20, 0.72);
  border: 1px solid rgba(0, 242, 254, 0.3);
  backdrop-filter: blur(6px);
  pointer-events: none;
  white-space: nowrap;
}

.comparison-card.is-portrait .cmp-format { border-color: rgba(250, 204, 21, 0.45); color: #fff3c4; }
.comparison-card--remixed .cmp-format { border-color: rgba(168, 85, 247, 0.45); }

@media (max-width: 900px) {
  .cmp-stage { height: 360px; }
  .comparison-card.is-landscape .cmp-stage,
  .comparison-card.is-square .cmp-stage { max-height: 360px; }
}

.comparison-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.video-grid.compact .video-card {
  flex-direction: row;
  align-items: center;
  gap: 18px;
}

.video-grid.compact .video-thumb {
  flex: 0 0 140px;
}

.video-grid.compact .video-thumb video {
  height: 90px;
  object-fit: cover;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1200px) {
  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  }
}

.video-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(0, 242, 254, 0.12);
  background: rgba(6, 10, 24, 0.8);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(0, 242, 254, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 242, 254, 0.45);
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.2);
}

.video-card:hover::before {
  opacity: 1;
}

.video-card > * {
  position: relative;
  z-index: 1;
}

.video-thumb {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #030712;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.video-thumb video {
  width: 100%;
  height: 140px;
  border-radius: 12px;
  background: #000;
  object-fit: cover;
  display: block;
}

.video-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.video-tag {
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.video-tag.remixed {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(16, 185, 129, 0.2));
  border-color: rgba(6, 182, 212, 0.45);
  color: #e879f9;
  text-shadow: 0 0 8px rgba(232, 121, 249, 0.5);
}

.video-tag.merged {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(0, 242, 254, 0.2));
  border-color: rgba(0, 242, 254, 0.45);
  color: #38bdf8;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

.video-tag.source-direct {
  background: linear-gradient(135deg, rgba(0, 255, 170, 0.2), rgba(0, 242, 254, 0.15));
  border: 1px solid rgba(0, 255, 170, 0.45);
  color: #00ffaa;
  text-shadow: 0 0 8px rgba(0, 255, 170, 0.5);
}

.video-tag.source-yt-dlp {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(59, 130, 246, 0.15));
  border: 1px solid rgba(0, 242, 254, 0.4);
  color: #00f2fe;
}

.video-tag.source-remix {
  background: linear-gradient(135deg, rgba(255, 183, 0, 0.2), rgba(255, 85, 0, 0.15));
  border: 1px solid rgba(255, 183, 0, 0.45);
  color: #ffb700;
}

.video-tag.source-imported {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(255, 183, 0, 0.15));
  border: 1px solid rgba(6, 182, 212, 0.45);
  color: #d8b4fe;
  text-shadow: 0 0 8px rgba(216, 180, 254, 0.4);
}

.video-name {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: color 0.2s ease;
}

.video-name:hover {
  color: #00f2fe;
}

.video-tag.source-channel-sync {
  background: rgba(59, 211, 255, 0.2);
  color: #c9f4ff;
}

.video-name {
  margin: 0;
  font-weight: 600;
}

.video-size {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.video-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: rgba(5, 6, 10, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 22px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(5, 6, 10, 0.5);
  max-width: 320px;
  display: none;
  z-index: 1200;
}

.toast.show {
  display: block;
  animation: fade 0.3s ease;
}

.remix-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(1, 3, 12, 0.75);
  backdrop-filter: blur(12px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.remix-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* Progress Overlay Styles (Chặn tương tác khi tối ưu) */
.remix-progress-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(1, 3, 12, 0.85);
  backdrop-filter: blur(16px);
  z-index: 2000;
  /* Đứng trên tất cả các layer khác */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.remix-progress-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.remix-progress-card {
  position: relative;
  padding: 40px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(6, 10, 28, 0.95), rgba(17, 9, 36, 0.98));
  border: 1px solid rgba(14, 165, 233, 0.3);
  /* Viền sáng hiệu ứng */
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 40px rgba(14, 165, 233, 0.1);
  text-align: center;
  max-width: 480px;
  width: calc(100% - 40px);
}

.remix-progress-card h3 {
  margin: 0 0 8px 0;
  font-size: 22px;
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.remix-progress-card p {
  margin: 0 0 24px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  margin-bottom: 12px;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0ea5e9, #06b6d4, #10b981);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.progress-percentage {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  font-family: 'Outfit', sans-serif;
  background: linear-gradient(180deg, #ffffff, #a3a6c5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.progress-status-text {
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
  opacity: 0.8;
}

.remix-overlay-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.35), transparent 70%);
  filter: blur(40px);
  animation: pulse-frame 4s ease-in-out infinite;
}

.remix-overlay-card {
  position: relative;
  padding: 36px 44px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(6, 10, 28, 0.9), rgba(17, 9, 36, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.55);
  text-align: center;
  max-width: 520px;
  width: calc(100% - 64px);
}

.overlay-chip {
  margin: 0 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #d4d9ff;
}

.remix-overlay-card h3 {
  margin: 0;
  font-size: 26px;
}

.remix-overlay-card p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.75);
}

.overlay-btn {
  margin-top: 26px;
  border: none;
  border-radius: 999px;
  padding: 14px 32px;
  font-weight: 600;
  background: linear-gradient(135deg, #0ea5e9, #06b6d4, #10b981);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 18px 45px rgba(6, 182, 212, 0.4);
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-frame {

  0%,
  100% {
    opacity: 0.35;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

@keyframes scanline {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(100%);
  }
}

@keyframes float-badge {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

@keyframes spark {

  0%,
  100% {
    opacity: 0.4;
    transform: scaleY(0.6);
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes pulse-bar {

  0%,
  100% {
    opacity: 0.4;
    transform: scaleX(0.8);
  }

  50% {
    opacity: 1;
    transform: scaleX(1.05);
  }
}

@media (max-width: 1100px) {
  .workspace {
    padding: 32px;
  }

  .workspace-header {
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .workspace-toolbar {
    flex-direction: column;
    align-items: stretch;
    border-radius: 24px;
  }

  .toolbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .remix-lab-grid {
    grid-template-columns: 1fr;
  }

  .remix-side-panel {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .remix-side-panel .side-panel-card {
    flex: 1 1 280px;
  }
}

@media (max-width: 900px) {
  .app-shell {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    position: static;
    height: auto;
    overflow: visible;
    left: auto;
    z-index: 10;
  }

  .workspace {
    margin-left: 0;
    padding: 24px;
  }

  .panel {
    padding: 24px;
  }

  .input-row {
    flex-direction: column;
  }

  input[type='url'] {
    width: 100%;
  }

  .workspace-toolbar {
    position: static;
  }

  .remix-hero-card {
    padding: 24px;
  }

  .remix-side-panel {
    flex-direction: column;
  }
}

/* ============ CÔNG CỤ NÂNG CAO ============ */
.tool-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tool-form .form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.tool-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 180px;
}

.tool-form .form-field label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.tool-form .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

.tool-form input[type="range"] {
  flex: 1;
}

.tool-form .form-field span {
  font-size: 12px;
  color: var(--accent);
  min-width: 40px;
  text-align: right;
}

/* Preset list */
.presets-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preset-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--panel-soft);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.preset-item:hover {
  background: rgba(14, 165, 233, 0.08);
  border-color: var(--accent-soft);
}

.preset-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.preset-info strong {
  font-size: 14px;
  color: var(--text);
}

.preset-date {
  font-size: 12px;
  color: var(--muted);
}

.preset-actions {
  display: flex;
  gap: 8px;
}

.pill-btn.small {
  padding: 6px 12px;
  font-size: 12px;
}

/* Tool panels styling */
#tools-view .panel {
  margin-bottom: 24px;
}

#tools-view .panel:last-child {
  margin-bottom: 0;
}

/* Input with browse button */
.input-with-browse {
  display: flex;
  gap: 8px;
  align-items: center;
}

.input-with-browse .text-input {
  flex: 1;
  cursor: pointer;
}

.input-with-browse .browse-file-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============ PREVIEW MODAL ============ */
.preview-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.preview-modal.hidden {
  display: none;
}

.preview-modal-content {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  overflow: hidden;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--panel-border);
}

.preview-header h4 {
  margin: 0;
  font-size: 16px;
  color: var(--text);
}

.preview-video-container {
  position: relative;
  background: #000;
  min-height: 280px;
}

.preview-video-container video {
  width: 100%;
  max-height: 400px;
  display: block;
}

.preview-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  color: var(--accent);
  font-size: 14px;
}

.preview-loading span {
  animation: pulse 1.5s ease-in-out infinite;
}

.preview-hint {
  padding: 12px 20px;
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--panel-border);
}

.remix-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

/* ============ REVIEW PHIM STYLES ============ */
.review-script-area {
  margin-top: 12px;
}

.review-script-area textarea {
  width: 100%;
  min-height: 200px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.review-script-area textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.review-script-area textarea::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

.char-counter {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.tts-status {
  font-size: 13px;
  margin-left: 12px;
  font-weight: 500;
}

.audio-preview,
.output-preview {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 16px;
}

.audio-preview audio {
  border-radius: 8px;
}

.guide-content {
  padding: 8px 0;
}

.guide-steps {
  margin: 0;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-steps li {
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

.guide-steps li strong {
  color: var(--accent);
}

.guide-steps code {
  background: rgba(14, 165, 233, 0.15);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 13px;
}

/* Form field improvements for Review */
#review-view .form-field {
  min-width: 180px;
}

#review-view .form-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

#review-view .form-field .input-hint {
  margin-top: 4px;
  font-size: 12px;
}

#review-view .form-field .input-hint a {
  color: var(--accent);
  text-decoration: none;
}

#review-view .form-field .input-hint a:hover {
  text-decoration: underline;
}

/* Range slider with value display */
#review-view input[type="range"] {
  width: 100%;
  margin-top: 4px;
}

#review-view input[type="range"]+span {
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

/* ============ AI SCRIPT GENERATOR ============ */
.ai-script-generator {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.ai-generator-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ai-badge {
  background: linear-gradient(135deg, #06b6d4, #10b981);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.ai-generator-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.ai-script-form .form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.ai-status {
  font-size: 13px;
  margin-left: 12px;
  font-weight: 500;
}

.pill-btn.accent {
  background: linear-gradient(135deg, #06b6d4, #10b981);
  color: #fff;
  border: none;
}

.pill-btn.accent:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.script-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 13px;
}

.script-divider::before,
.script-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--panel-border);
}

/* ============ VIDEO EDITOR TABS ============ */
.editor-tabs {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.2);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.editor-tab {
  flex: 1;
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.editor-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.editor-tab.active {
  background: var(--accent);
  color: #000;
}

.editor-tab-content {
  display: none;
  padding: 16px 0;
}

.editor-tab-content.active {
  display: block;
}

.editor-status {
  font-size: 13px;
  margin-left: 12px;
  font-weight: 500;
}

/* Concat video list */
.concat-video-list {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 12px;
  min-height: 80px;
  margin-bottom: 12px;
}

.concat-video-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: var(--panel-soft);
  border-radius: 6px;
  margin-bottom: 6px;
}

.concat-video-item:last-child {
  margin-bottom: 0;
}

.concat-video-item .order {
  background: var(--accent);
  color: #000;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.concat-video-item .name {
  flex: 1;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.concat-video-item .remove-btn {
  background: transparent;
  border: none;
  color: var(--danger);
  cursor: pointer;
  padding: 4px;
  font-size: 14px;
}

.concat-actions {
  display: flex;
  gap: 8px;
}

/* Editor output */
.editor-output {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
}

.editor-output-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

/* Checkbox label */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

/* ================================
     PERFORMANCE SETTINGS STYLES
     ================================ */

.perf-section {
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border: 1px solid var(--panel-border);
}

.perf-section-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 16px 0;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.perf-status-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.perf-status-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
  .perf-status-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.perf-status-card {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--panel-soft);
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  transition: all 0.2s ease;
}

.perf-status-card:hover {
  border-color: var(--accent-soft);
  transform: translateY(-2px);
}

.perf-status-card.gpu-active {
  border-color: var(--success);
  background: rgba(88, 247, 159, 0.08);
}

.perf-status-card.gpu-inactive {
  border-color: var(--warning);
  background: rgba(255, 209, 102, 0.05);
}

.perf-status-icon {
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.perf-status-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.perf-status-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin: 0 0 4px 0;
}

.perf-status-value {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.perf-status-detail {
  font-size: 12px;
  color: var(--accent);
  margin: 4px 0 0 0;
}

.perf-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px;
  background: var(--panel-soft);
  border-radius: 10px;
  border: 1px solid var(--glass-border);
}

.perf-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.perf-stat-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 6px;
  text-align: center;
}

.perf-estimate-result {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent-strong);
  margin: 0;
  padding: 8px 16px;
  background: rgba(14, 165, 233, 0.1);
  border-radius: 8px;
  border: 1px solid var(--accent-soft);
  min-height: 40px;
  display: flex;
  align-items: center;
}

.perf-actions {
  display: flex;
  gap: 12px;
}

/* GPU status animations */
@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(88, 247, 159, 0.4);
  }

  50% {
    box-shadow: 0 0 20px 4px rgba(88, 247, 159, 0.2);
  }
}

.perf-status-card.gpu-active {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Batch progress bar */
.batch-progress {
  margin-top: 16px;
  padding: 16px;
  background: var(--panel-soft);
  border-radius: 10px;
  border: 1px solid var(--glass-border);
}

.batch-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.batch-progress-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.batch-progress-stats {
  font-size: 12px;
  color: var(--muted);
}

.batch-progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.batch-progress-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 4px;
  transition: width 0.3s ease;
  position: relative;
}

.batch-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.batch-progress-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.batch-item-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
}

.batch-item-status.running {
  background: rgba(6, 182, 212, 0.2);
  color: #06b6d4;
}

.batch-item-status.success {
  background: rgba(88, 247, 159, 0.2);
  color: var(--success);
}

.batch-item-status.failed {
  background: rgba(255, 125, 156, 0.2);
  color: var(--danger);
}

.batch-item-status.pending {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

/* ==================== */
/* UPLOAD VIEW STYLES   */
/* ==================== */

.upload-connections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.connection-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.connection-card:hover {
  border-color: var(--accent-soft);
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.1);
}

.connection-icon {
  font-size: 32px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 165, 233, 0.1);
  border-radius: 12px;
}

.connection-info {
  flex: 1;
}

.connection-info h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.connection-status {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.connection-status.connected {
  color: var(--success);
}

.upload-jobs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.upload-job-card {
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s ease;
}

.upload-job-card:hover {
  border-color: var(--accent-soft);
}

.upload-job-icon {
  font-size: 28px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 165, 233, 0.1);
  border-radius: 8px;
  flex-shrink: 0;
}

.upload-job-info {
  flex: 1;
  min-width: 0;
}

.upload-job-title {
  margin: 0 0 4px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-job-meta {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.upload-job-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  flex-shrink: 0;
}

.upload-job-status.pending {
  background: rgba(255, 209, 102, 0.2);
  color: var(--warning);
}

.upload-job-status.uploading {
  background: rgba(6, 182, 212, 0.2);
  color: #06b6d4;
}

.upload-job-status.completed {
  background: rgba(88, 247, 159, 0.2);
  color: var(--success);
}

.upload-job-status.failed {
  background: rgba(255, 125, 156, 0.2);
  color: var(--danger);
}

.upload-job-status.scheduled {
  background: rgba(14, 165, 233, 0.2);
  color: var(--accent);
}

.upload-job-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* ============ AI MODEL CARDS ============ */
.ai-model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.ai-model-card {
  position: relative;
  background: linear-gradient(145deg, rgba(10, 16, 40, 0.9), rgba(6, 10, 28, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
  overflow: hidden;
}

.ai-model-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ai-model-card:hover {
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: 0 8px 32px rgba(14, 165, 233, 0.08);
  transform: translateY(-2px);
}

.ai-model-card:hover::before {
  opacity: 1;
}

.ai-model-card.downloaded {
  border-color: rgba(88, 247, 159, 0.25);
}

.ai-model-card.downloaded::before {
  opacity: 1;
  background: linear-gradient(90deg, #34d399, #0ea5e9);
}

.ai-model-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.ai-model-name {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.ai-model-tier {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  color: #a5ffe7;
  border: 1px solid rgba(14, 165, 233, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
}

.ai-model-card[data-tier="2"] .ai-model-tier {
  background: rgba(6, 182, 212, 0.15);
  color: #a5d4ff;
  border-color: rgba(6, 182, 212, 0.3);
}

.ai-model-card[data-tier="3"] .ai-model-tier {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(14, 165, 233, 0.2));
  color: #f0c4ff;
  border-color: rgba(200, 150, 255, 0.4);
}

.ai-model-desc {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.ai-model-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.ai-model-spec {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
}

.ai-model-quality {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.ai-model-quality .star {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.15);
}

.ai-model-quality .star.filled {
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(255, 209, 102, 0.4);
}

.ai-model-status {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
}

.ai-model-status.ready {
  background: rgba(88, 247, 159, 0.12);
  color: #34d399;
  border: 1px solid rgba(88, 247, 159, 0.3);
}

.ai-model-status.not-downloaded {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-model-status.downloading {
  background: rgba(6, 182, 212, 0.12);
  color: #7dc2ff;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.ai-model-progress {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 4px;
}

.ai-model-progress-bar {
  height: 100%;
  background: var(--gradient);
  border-radius: 999px;
  transition: width 0.3s ease;
  width: 0%;
}

.ai-model-progress-text {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

.ai-model-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.ai-model-actions .pill-btn {
  font-size: 12px;
  padding: 6px 14px;
}

/* Settings panel width override for model section */
#ai-models-settings {
  max-width: 100%;
}

/* ============================================================
   AI MODEL MANAGER — DASHBOARD PAGE STYLES
   ============================================================ */

/* Hero header */
.ai-model-manager-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.ai-model-manager-hero-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* Overview */
.ai-model-manager-overview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 20px;
}

.ai-model-manager-path {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.ai-model-manager-path strong {
  color: rgba(255, 255, 255, 0.85);
  font-family: monospace;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.3);
  padding: 3px 10px;
  border-radius: 6px;
  word-break: break-all;
}

.ai-model-manager-tier-note {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.ai-model-manager-tier-note span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Stats bar */
.ai-model-manager-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.ai-model-stat-card {
  background: linear-gradient(145deg, rgba(10, 16, 40, 0.7), rgba(6, 10, 28, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ai-model-stat-card:hover {
  border-color: rgba(14, 165, 233, 0.2);
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.05);
}

.ai-model-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.ai-model-stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.ai-model-stat-card.ready {
  border-color: rgba(88, 247, 159, 0.2);
}

.ai-model-stat-card.ready .ai-model-stat-value {
  color: #34d399;
}

.ai-model-stat-card.pending {
  border-color: rgba(255, 255, 255, 0.08);
}

.ai-model-stat-card.pending .ai-model-stat-value {
  color: rgba(255, 255, 255, 0.6);
}

.ai-model-stat-card.downloading {
  border-color: rgba(6, 182, 212, 0.2);
}

.ai-model-stat-card.downloading .ai-model-stat-value {
  color: #7dc2ff;
}

.ai-model-stat-card.python {
  border-color: rgba(255, 193, 7, 0.2);
}

.ai-model-stat-card.python .ai-model-stat-value {
  color: #ffc107;
}

/* Filter tabs */
.ai-model-filter-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
}

.ai-model-filter-tab {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-model-filter-tab:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.05);
}

.ai-model-filter-tab.active {
  color: #fff;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.25);
}

/* Tier sections */
.ai-model-tier-section {
  margin-top: 24px !important;
}

.ai-model-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.ai-model-tier-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.08);
  color: rgba(14, 165, 233, 0.7);
  border: 1px solid rgba(14, 165, 233, 0.15);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── DEEP LEARNING AI MODEL HUB ── */
#ai-model-manager-view .ai-model-manager-hero h1 {
  background: linear-gradient(135deg, #ffffff 0%, #00f2fe 50%, #0891b2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(0, 242, 254, 0.4));
}

#ai-model-manager-view .eyebrow {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.35);
  color: #00f2fe;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

#refresh-models-btn {
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: #00f2fe;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
}

#refresh-models-btn:hover {
  background: rgba(0, 242, 254, 0.18);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.45);
  transform: translateY(-2px);
}

/* FFmpeg section */
.ai-model-ffmpeg-section {
  background: rgba(8, 12, 28, 0.85);
  border-radius: 20px;
  border: 1px solid rgba(0, 149, 255, 0.35);
  padding: 24px;
  margin-bottom: 24px;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 25px rgba(0, 149, 255, 0.12);
}

.ffmpeg-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.ffmpeg-info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.ffmpeg-info-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
}

.ffmpeg-info-value {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
}

.ffmpeg-path-text {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 11px;
  word-break: break-all;
  color: rgba(255, 255, 255, 0.55);
}

.ffmpeg-crash-alert {
  margin-top: 14px;
  padding: 16px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 14px;
  animation: ffmpeg-pulse 2s ease-in-out infinite;
}

@keyframes ffmpeg-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(239, 68, 68, 0); }
  50% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.15); }
}

.ffmpeg-crash-alert h4 {
  color: #f87171;
  margin: 0 0 8px;
  font-size: 14px;
}

#repair-ffmpeg-btn {
  background: linear-gradient(135deg, #0095ff, #0ea5e9) !important;
  border: 1px solid rgba(0, 149, 255, 0.6) !important;
  color: #fff !important;
  font-weight: 700;
  transition: all 0.25s ease;
}

#repair-ffmpeg-btn:hover {
  box-shadow: 0 0 20px rgba(0, 149, 255, 0.5) !important;
  transform: translateY(-1px);
}

/* Python section */
.ai-model-python-section {
  background: rgba(8, 12, 28, 0.85);
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 24px;
  margin-bottom: 24px;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.15);
}

.ai-model-warning-note {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  padding: 10px 14px;
  color: #fbbf24 !important;
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.5;
}

.ai-model-python-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

#clean-python-env-btn {
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid rgba(239, 68, 68, 0.5) !important;
  color: #ef4444 !important;
  font-weight: 700;
  transition: all 0.25s ease;
}

#clean-python-env-btn:hover {
  background: rgba(239, 68, 68, 0.25) !important;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.5) !important;
}

.ai-model-error-help {
  margin-top: 16px;
  padding: 16px;
  background: rgba(239, 83, 80, 0.08);
  border: 1px solid rgba(239, 83, 80, 0.25);
  border-radius: 12px;
}

.ai-model-error-help h4 {
  color: #ef5350;
  margin: 0 0 10px;
  font-size: 14px;
}

.ai-model-error-help p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
}

.ai-model-error-help code {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.ai-model-python-progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.ai-model-python-progress>div {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #00d2ff, #7b2ff7);
  transition: width 0.3s;
}

.ai-model-python-console {
  margin-top: 12px;
  max-height: 200px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  padding: 12px;
  font-family: monospace;
  font-size: 12px;
  color: #8f8;
  white-space: pre-wrap;
}

/* AI Model Hub Grid Section */
.ai-model-grid-section {
  margin-top: 24px;
}

.ai-model-grid-title {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #00f2fe;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

.ai-model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 1024px) {
  .ai-model-grid {
    grid-template-columns: 1fr;
  }
}

.ai-hub-card {
  background: rgba(8, 12, 28, 0.85);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-hub-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 242, 254, 0.45);
  box-shadow: 0 14px 35px rgba(0, 242, 254, 0.18);
}

.ai-hub-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-hub-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 18px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.25);
}

.ai-hub-badge {
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.08em;
}

.ai-hub-badge--installed {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.ai-hub-badge--ready {
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.35);
  color: #00f2fe;
}

.ai-hub-card-name {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.ai-hub-card-desc {
  margin: 0;
  font-size: 12px;
  color: rgba(244, 247, 255, 0.6);
  line-height: 1.5;
}

.ai-hub-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  padding: 8px 12px;
  background: rgba(4, 7, 18, 0.6);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.ai-hub-meta strong {
  color: #fbbf24;
}

.ai-hub-actions {
  margin-top: 4px;
}

.ai-hub-btn {
  width: 100%;
  height: 38px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  outline: none;
}

.ai-hub-btn--installed {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10b981;
  cursor: default;
}

.ai-hub-btn--download {
  background: linear-gradient(135deg, #00f2fe 0%, #0891b2 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.35);
}

.ai-hub-btn--download:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.6);
}

/* Empty state per tier */
.ai-model-empty-state {
  padding: 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-top: 8px;
}

/* Settings shortcut card */
.ai-model-manager-shortcut .panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Responsive */
@media (max-width: 900px) {
  .ai-model-manager-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .ai-model-manager-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .ai-model-manager-hero {
    flex-direction: column;
  }

  .ai-model-section-heading {
    flex-direction: column;
    gap: 8px;
  }

  .ai-model-manager-tier-note {
    flex-direction: column;
  }
}

/* Tool status display */
.tool-status {
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.tool-status p {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 500;
}

/* ============================================================
   AI STYLE TRANSFER — PREMIUM PAGE STYLES
   ============================================================ */

/* Sidebar AI Button */
/* â”€â”€â”€ AI Sidebar Section Separator â”€â”€â”€ */
.nav-ai-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 4px;
  margin-top: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(123, 47, 247, 0.7);
}

.nav-ai-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(123, 47, 247, 0.3), transparent);
}

/* â”€â”€â”€ AI Nav Items â”€â”€â”€ */
.nav-item-ai {
  position: relative;
  background: linear-gradient(135deg, rgba(123, 47, 247, 0.12), rgba(0, 210, 255, 0.08)) !important;
  border: 1px solid rgba(123, 47, 247, 0.2) !important;
  border-radius: 10px !important;
  margin: 3px 12px !important;
  padding: 10px 12px !important;
  white-space: nowrap;
  overflow: hidden;
  font-size: 13px !important;
}

.nav-item-ai>span:first-child {
  flex-shrink: 0;
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.nav-item-ai:hover {
  background: linear-gradient(135deg, rgba(123, 47, 247, 0.25), rgba(0, 210, 255, 0.15)) !important;
  border-color: rgba(123, 47, 247, 0.4) !important;
  transform: translateX(2px);
}

.nav-item-ai.active {
  background: linear-gradient(135deg, rgba(123, 47, 247, 0.3), rgba(0, 210, 255, 0.2)) !important;
  border-color: rgba(123, 47, 247, 0.5) !important;
  box-shadow: 0 0 15px rgba(123, 47, 247, 0.15);
}

.nav-badge-new {
  font-size: 9px;
  font-weight: 700;
  background: linear-gradient(135deg, #7b2ff7, #00d2ff);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  margin-left: auto;
  flex-shrink: 0;
  text-transform: uppercase;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/* Hero Section */
.ai-hero {
  position: relative;
  padding: 48px 40px 40px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(160deg, #0a0e1a 0%, #111827 50%, #0f172a 100%);
  border: 1px solid rgba(123, 47, 247, 0.2);
  margin-bottom: 0;
}

.ai-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ai-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.ai-hero-orb-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #7b2ff7, transparent);
  top: -80px;
  right: -50px;
  animation: orbFloat1 8s ease-in-out infinite;
}

.ai-hero-orb-2 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, #00d2ff, transparent);
  bottom: -60px;
  left: 10%;
  animation: orbFloat2 10s ease-in-out infinite;
}

.ai-hero-orb-3 {
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, #f093fb, transparent);
  top: 20%;
  left: 50%;
  animation: orbFloat3 12s ease-in-out infinite;
}

@keyframes orbFloat1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-30px, 20px) scale(1.1);
  }
}

@keyframes orbFloat2 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(20px, -15px) scale(1.15);
  }
}

@keyframes orbFloat3 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-15px, 10px) scale(0.9);
  }
}

.ai-hero-content {
  position: relative;
  z-index: 1;
}

.ai-hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #00d2ff;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding: 4px 12px;
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: 20px;
  background: rgba(0, 210, 255, 0.08);
}

.ai-hero-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
}

.ai-gradient-text {
  background: linear-gradient(135deg, #7b2ff7, #00d2ff, #f093fb);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.ai-hero-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 0 28px;
}

.ai-hero-stats {
  display: flex;
  gap: 32px;
}

.ai-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ai-stat-number {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ai-stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Feature Cards */
.ai-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.ai-feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.ai-feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(123, 47, 247, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ai-feature-card:hover {
  border-color: rgba(123, 47, 247, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(123, 47, 247, 0.15);
}

.ai-feature-card:hover::before {
  opacity: 1;
}

.ai-feature-card-premium {
  border-color: rgba(123, 47, 247, 0.25);
  background: linear-gradient(135deg, rgba(123, 47, 247, 0.08), rgba(0, 210, 255, 0.05));
}

.ai-feature-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.ai-feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #e2e8f0;
}

.ai-feature-card p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
  margin: 0 0 12px;
}

.ai-feature-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #a78bfa;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.2);
}

/* Style Gallery */
.ai-styles-showcase {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  padding: 8px 0;
}

.ai-style-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.ai-style-item:hover {
  transform: translateY(-4px);
}

.ai-style-preview {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.3s ease;
}

.ai-style-item:hover .ai-style-preview {
  box-shadow: 0 8px 32px rgba(123, 47, 247, 0.3);
}

.ai-style-item p {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

/* Tool Panel */
.ai-tool-panel {
  border: 1px solid rgba(123, 47, 247, 0.2) !important;
  background: linear-gradient(135deg, rgba(123, 47, 247, 0.04), rgba(0, 210, 255, 0.02)) !important;
}

/* Premium Submit Button */
.ai-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 700;
  color: white;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  background: linear-gradient(135deg, #7b2ff7, #00d2ff);
  box-shadow: 0 4px 20px rgba(123, 47, 247, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.ai-submit-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #00d2ff, #7b2ff7);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ai-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(123, 47, 247, 0.4);
}

.ai-submit-btn:hover::before {
  opacity: 1;
}

.ai-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.ai-submit-btn span {
  position: relative;
  z-index: 1;
}

.ai-submit-icon {
  font-size: 20px;
}

/* Tech Specs */
.ai-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.ai-spec-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s ease;
}

.ai-spec-item:hover {
  border-color: rgba(123, 47, 247, 0.2);
}

.ai-spec-icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(123, 47, 247, 0.1);
}

.ai-spec-item strong {
  font-size: 14px;
  color: #e2e8f0;
}

.ai-spec-item p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin: 4px 0 0;
  line-height: 1.4;
}

/* ===== FILE PICKER COMPONENT ===== */
.file-pick-wrapper {
  position: relative;
  cursor: pointer;
}

.file-pick-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.file-pick-display {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
  min-height: 48px;
}

.file-pick-wrapper:hover .file-pick-display {
  border-color: rgba(6, 182, 212, 0.5);
  background: rgba(6, 182, 212, 0.06);
}

.file-pick-wrapper:active .file-pick-display {
  transform: scale(0.98);
}

.file-pick-display.has-file {
  border-color: rgba(81, 207, 102, 0.5);
  border-style: solid;
  background: rgba(81, 207, 102, 0.06);
}

.file-pick-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.file-pick-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-pick-display.has-file .file-pick-text {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.file-pick-info {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.file-pick-info span {
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 6px;
}

/* ===== TOOL STATUS & PROGRESS (shared by all AI tools) ===== */
.tool-status {
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: fadeInStatus 0.3s ease;
  margin-top: 12px;
}

@keyframes fadeInStatus {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tool-status p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}

.ai-model-progress {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
  position: relative;
}

.ai-model-progress::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: progressShimmer 2s ease-in-out infinite;
}

@keyframes progressShimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.ai-model-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7b2ff7, #00d2ff);
  transition: width 0.4s ease;
  position: relative;
  z-index: 1;
}

.ai-model-progress-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin: 6px 0 0;
}

/* Small button (used in status area — open folder etc.) */
.btn-small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
}

.btn-small:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* AI Tool Section wrapper (for translate etc.) */
.ai-tool-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* AI Hero description text (translate view) */
.ai-hero-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 0 20px;
}

/* AI Tool header (translate view) */
.ai-tool-header {
  margin-top: 8px;
}

.ai-tool-header h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #fff;
}

.ai-tool-header p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* Base .text-input style (select/input with this class) */
.text-input {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 6, 10, 0.7);
  color: #fff;
  font-size: 14px;
  width: 100%;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.text-input:focus {
  outline: none;
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.18);
}

/* Form actions wrapper */
.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   BIÊN TẬP NÂNG CAO – PREMIUM REDESIGN
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* ── HERO BANNER (Cyber Command Mesh) ── */
.remix-hero-banner {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  padding: 48px 44px;
  background: linear-gradient(135deg, rgba(3, 7, 18, 0.98), rgba(12, 10, 36, 0.95));
  border: 1px solid rgba(0, 242, 254, 0.25);
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.25), inset 0 1px 0 rgba(0, 242, 254, 0.15);
}

.remix-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.remix-hero-orb {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  animation: remix-orb-float 18s ease-in-out infinite;
}

.remix-hero-orb--cyan {
  top: -80px;
  left: -40px;
  background: rgba(0, 242, 254, 0.45);
}

.remix-hero-orb--purple {
  bottom: -60px;
  right: -40px;
  background: rgba(121, 40, 202, 0.4);
  animation-delay: -6s;
}

.remix-hero-orb--pink {
  top: 30%;
  right: 20%;
  width: 240px;
  height: 240px;
  background: rgba(255, 0, 128, 0.3);
  animation-delay: -12s;
}

.remix-hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(0, 242, 254, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(0, 242, 254, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

@keyframes remix-orb-float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(20px, -25px) scale(1.08);
  }

  66% {
    transform: translate(-15px, 15px) scale(0.95);
  }
}

.remix-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 48px;
}

.remix-hero-text {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.remix-eyebrow-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.35);
  color: #00f2fe;
  width: fit-content;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
}

.remix-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00f2fe;
  box-shadow: 0 0 12px #00f2fe;
  animation: remix-dot-pulse 2s ease-in-out infinite;
}

@keyframes remix-dot-pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.7);
  }
}

.remix-hero-title {
  margin: 0;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.remix-gradient-text {
  background: linear-gradient(135deg, #00f2fe 0%, #0891b2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 15px rgba(0, 242, 254, 0.4));
}

.remix-hero-desc {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(244, 247, 255, 0.75);
  max-width: 540px;
}

.remix-hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 8px;
}

.remix-stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.remix-stat-number {
  font-size: 42px;
  font-weight: 900;
  color: #00f2fe;
  line-height: 1;
  text-shadow: 0 0 18px rgba(0, 242, 254, 0.75);
  font-family: 'JetBrains Mono', monospace;
}

.remix-stat-number small {
  font-size: 26px;
  font-weight: 700;
}

.remix-stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.65);
}

.remix-stat-divider {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, transparent, rgba(0, 242, 254, 0.5), transparent);
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.5);
}

.remix-hero-visual {
  flex: 0.8;
  display: flex;
  justify-content: center;
  align-items: center;
}

.remix-shield-container {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remix-shield-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.35), transparent 65%);
  animation: remix-shield-pulse 3s ease-in-out infinite;
}

@keyframes remix-shield-pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
    filter: drop-shadow(0 0 20px rgba(0, 242, 254, 0.4));
  }

  50% {
    transform: scale(1.12);
    opacity: 1;
    filter: drop-shadow(0 0 35px rgba(0, 242, 254, 0.8));
  }
}

.remix-shield-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 242, 254, 0.35);
}

.remix-shield-ring--outer {
  width: 270px;
  height: 270px;
  animation: remix-ring-spin 20s linear infinite;
  border-style: dashed;
  border-color: rgba(0, 242, 254, 0.4);
}

.remix-shield-ring--inner {
  width: 210px;
  height: 210px;
  border-color: rgba(121, 40, 202, 0.5);
  animation: remix-ring-spin 15s linear infinite reverse;
  border-style: dotted;
}

@keyframes remix-ring-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.remix-shield-core {
  position: relative;
  width: 190px;
  height: 190px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 242, 254, 0.5);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.3);
}

.remix-shield-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.remix-laser-scanner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, #00f2fe, #fff, #00f2fe, transparent);
  box-shadow: 0 0 15px #00f2fe, 0 0 30px #00f2fe;
  animation: laser-scan-anim 2.5s ease-in-out infinite alternate;
  z-index: 2;
}

@keyframes laser-scan-anim {
  0% {
    top: 0%;
  }
  100% {
    top: 96%;
  }
}

/* â”€â”€ PLATFORM SHOWCASE â”€â”€ */
.remix-platforms-section {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 40px;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(6, 10, 30, 0.95), rgba(10, 14, 42, 0.92));
  border: 1px solid rgba(14, 165, 233, 0.1);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.remix-platforms-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.5), rgba(6, 182, 212, 0.5), rgba(16, 185, 129, 0.3), transparent);
  animation: remix-section-border-flow 6s linear infinite;
}

@keyframes remix-section-border-flow {
  0% {
    transform: translateX(-25%);
  }

  100% {
    transform: translateX(25%);
  }
}

.remix-platforms-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(14, 165, 233, 0.06), transparent 50%),
    radial-gradient(ellipse at 90% 100%, rgba(6, 182, 212, 0.05), transparent 50%);
  pointer-events: none;
}

.remix-section-header {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.remix-section-title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 14px;
  letter-spacing: -0.02em;
}

.remix-section-title span {
  font-size: 32px;
  filter: drop-shadow(0 0 8px rgba(14, 165, 233, 0.4));
  animation: remix-icon-float 3s ease-in-out infinite;
}

@keyframes remix-icon-float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-4px) rotate(5deg);
  }
}

.remix-section-desc {
  margin: 0;
  color: rgba(244, 247, 255, 0.55);
  font-size: 15px;
  max-width: 640px;
  line-height: 1.6;
}


/* â”€â”€ QUICK CTA BANNER â”€â”€ */
.remix-quick-cta {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  padding: 36px 40px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(6, 182, 212, 0.08), rgba(16, 185, 129, 0.06));
  border: 1px solid rgba(14, 165, 233, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.remix-cta-glow {
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(14, 165, 233, 0.12), transparent 65%);
  pointer-events: none;
  animation: remix-cta-glow-move 8s ease-in-out infinite;
}

@keyframes remix-cta-glow-move {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(80%);
  }
}

.remix-cta-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.remix-cta-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 300px;
}

.remix-cta-icon-pulse {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.remix-cta-pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(14, 165, 233, 0.3);
  animation: remix-pulse-ring 2.5s ease-out infinite;
}

.remix-cta-pulse-ring--delay {
  animation-delay: 1.2s;
}

@keyframes remix-pulse-ring {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.remix-cta-icon {
  position: relative;
  z-index: 1;
  font-size: 28px;
}

.remix-cta-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

.remix-cta-desc {
  margin: 4px 0 0;
  font-size: 14px;
  color: rgba(244, 247, 255, 0.6);
  line-height: 1.5;
}

.remix-cta-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.remix-cta-btn {
  all: unset;
  position: relative;
  overflow: hidden;
  padding: 16px 36px;
  border-radius: 16px;
  cursor: pointer;
  background: linear-gradient(135deg, #0ea5e9, #3bbbf0, #06b6d4);
  color: #0a0e1a;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.3);
}

.remix-cta-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 50px rgba(14, 165, 233, 0.4);
}

.remix-cta-btn-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-100%);
  animation: remix-btn-shimmer 3s ease-in-out infinite;
}

@keyframes remix-btn-shimmer {
  0% {
    transform: translateX(-100%);
  }

  50% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.remix-cta-btn-text {
  position: relative;
  z-index: 1;
}

.remix-cta-trust {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(244, 247, 255, 0.5);
}

.remix-trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0ea5e9;
  box-shadow: 0 0 8px #0ea5e9;
}

/* â”€â”€ PRESET PANEL â”€â”€ */
.remix-presets-panel {
  background: linear-gradient(160deg, rgba(8, 14, 30, 0.92), rgba(12, 16, 48, 0.88)) !important;
}

.remix-presets-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.remix-presets-header h2 {
  margin: 0;
  font-size: 20px;
}

.remix-presets-header p {
  margin: 4px 0 0;
  color: rgba(244, 247, 255, 0.6);
  font-size: 14px;
}

.remix-presets-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* â”€â”€ FORM CARDS â”€â”€ */
.remix-form-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.remix-form-card:hover {
  border-color: rgba(14, 165, 233, 0.12);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.remix-form-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.remix-form-card-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.15);
}

.remix-form-card-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}

/* â”€â”€ REMIX LAB GRID â”€â”€ */
.remix-lab-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  overflow: hidden;
  gap: 28px;
  align-items: start;
}

.remix-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  overflow: hidden;
}

/* â”€â”€ OPTION CHIPS â”€â”€ */
.remix-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 13px;
  color: rgba(244, 247, 255, 0.8);
  transition: all 0.25s ease;
  user-select: none;
}

.option-chip:hover {
  background: rgba(14, 165, 233, 0.08);
  border-color: rgba(14, 165, 233, 0.25);
  color: #fff;
}

.option-chip input[type="checkbox"] {
  accent-color: #0ea5e9;
  width: 15px;
  height: 15px;
}

.option-chip input:checked+span {
  color: #a5ffe7;
}

.option-chip.compact {
  padding: 6px 12px;
  font-size: 12px;
}

.option-chip.featured {
  border-color: rgba(14, 165, 233, 0.35);
  background: rgba(14, 165, 233, 0.08);
}

.hidden-option {
  display: none;
}

/* â”€â”€ REMIX STACK (settings grid) â”€â”€ */
.remix-stack {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.remix-stack .form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.remix-stack label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(244, 247, 255, 0.55);
}

.remix-stack select,
.remix-stack input[type="text"],
.remix-stack input[type="color"] {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 6, 10, 0.85);
  color: #fff;
  font-size: 14px;
}

.remix-stack input[type="text"] {
  width: 100%;
  box-sizing: border-box;
}

.remix-stack input[type="text"]::placeholder {
  color: rgba(244, 247, 255, 0.3);
}

.remix-stack input[type="text"]:focus {
  outline: none;
  border-color: rgba(14, 165, 233, 0.55);
}

.remix-stack input[type="text"]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.remix-stack input[type="color"] {
  height: 44px;
  cursor: pointer;
}

/* â”€â”€ AUDIO GRID â”€â”€ */
.audio-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.group-title {
  margin: 0 0 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(244, 247, 255, 0.5);
}

/* â”€â”€ SLIDER LABELS â”€â”€ */
.slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(244, 247, 255, 0.75);
  margin-top: 14px;
}

.slider-label span {
  color: #0ea5e9;
  font-weight: 600;
}

input[type="range"] {
  width: 100%;
  accent-color: #0ea5e9;
  margin-top: 6px;
}

/* â”€â”€ REMIX ACTIONS â”€â”€ */
.remix-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.remix-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* â”€â”€ PRESET CHIPS â”€â”€ */
.preset-chip {
  all: unset;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 14px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(244, 247, 255, 0.8);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.preset-chip:hover {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.4);
  color: #fff;
  transform: translateY(-2px);
}

.preset-chip.active {
  background: rgba(14, 165, 233, 0.18);
  border-color: rgba(14, 165, 233, 0.6);
  color: #a5ffe7;
  box-shadow: 0 4px 18px rgba(14, 165, 233, 0.15);
}

/* â”€â”€ SIDE PANEL â”€â”€ */
.remix-side-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 100px;
}

.side-panel-card {
  background: rgba(8, 12, 32, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.side-panel-card .chip {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(244, 247, 255, 0.5);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  width: fit-content;
}

.side-panel-card .chip.glow {
  color: #0ea5e9;
  border-color: rgba(14, 165, 233, 0.25);
  background: rgba(14, 165, 233, 0.06);
}

/* Hero Mini Card */
.remix-hero-mini {
  background: radial-gradient(circle at 30% 20%, rgba(14, 165, 233, 0.08), rgba(8, 12, 32, 0.95));
  border-color: rgba(14, 165, 233, 0.12);
}

.remix-mini-visual {
  width: 100%;
}

/* Hero video shell */
.hero-video-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 220px;
  border-radius: 14px;
  overflow: hidden;
}

.hero-video-glow {
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15), transparent 70%);
  z-index: 0;
}

.hero-video-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a0e1f, #1a1040);
  border-radius: 14px;
  border: 1px solid rgba(14, 165, 233, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
}

.hero-video-noise {
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"%3E%3Cfilter id="n"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="2"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23n)" opacity="0.12"/%3E%3C/svg%3E');
  mix-blend-mode: overlay;
  opacity: 0.4;
}

.hero-scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(14, 165, 233, 0.15);
  animation: hero-scanline-move 4s linear infinite;
}

@keyframes hero-scanline-move {
  0% {
    top: 0;
  }

  100% {
    top: 100%;
  }
}

.hero-video-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(14, 165, 233, 0.3));
}

.hero-video-tag {
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  color: #a5ffe7;
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.hero-video-timecode {
  margin: 0;
  font-size: 11px;
  color: rgba(244, 247, 255, 0.4);
  font-family: 'Be Vietnam Pro', 'Segoe UI', 'Inter', Arial, sans-serif;
}

/* Effect Badges */
.hero-effect-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.effect-badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(244, 247, 255, 0.7);
}

.effect-badge.strong {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.3);
  color: #a5ffe7;
}

.effect-badge.soft {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.25);
  color: #c4b5fd;
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-step {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-left: 2px solid rgba(255, 255, 255, 0.06);
  padding-left: 16px;
  position: relative;
}

.timeline-step::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.08);
}

.timeline-step.active {
  border-left-color: rgba(14, 165, 233, 0.4);
}

.timeline-step.active::before {
  background: #0ea5e9;
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.4);
}

.timeline-step div span:first-child {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.timeline-step div p {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(244, 247, 255, 0.45);
  line-height: 1.4;
}

.step-index {
  font-size: 12px;
  font-weight: 700;
  color: rgba(244, 247, 255, 0.2);
  font-family: 'Be Vietnam Pro', 'Segoe UI', 'Inter', Arial, sans-serif;
  flex-shrink: 0;
}

/* Metric Row */
.metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.metric-row p {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(244, 247, 255, 0.45);
}

.metric-row h4 {
  margin: 4px 0 2px;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

.metric-row span {
  font-size: 11px;
  color: rgba(244, 247, 255, 0.4);
}

/* Sparkline */
.sparkline {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 32px;
}

.sparkline span {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.5), rgba(14, 165, 233, 0.15));
  animation: sparkline-grow 2s ease-in-out infinite;
}

.sparkline span:nth-child(1) {
  height: 45%;
  animation-delay: 0s;
}

.sparkline span:nth-child(2) {
  height: 70%;
  animation-delay: 0.3s;
}

.sparkline span:nth-child(3) {
  height: 55%;
  animation-delay: 0.6s;
}

.sparkline span:nth-child(4) {
  height: 85%;
  animation-delay: 0.9s;
}

.sparkline span:nth-child(5) {
  height: 60%;
  animation-delay: 1.2s;
}

.sparkline span:nth-child(6) {
  height: 90%;
  animation-delay: 1.5s;
}

@keyframes sparkline-grow {

  0%,
  100% {
    opacity: 0.5;
    transform: scaleY(1);
  }

  50% {
    opacity: 1;
    transform: scaleY(1.2);
  }
}

/* Badge Grid */
.badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Preview Modal */
.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
}

.preview-modal.hidden {
  display: none;
}

.preview-modal-content {
  background: rgba(8, 14, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 28px;
  max-width: 640px;
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.preview-header h4 {
  margin: 0;
  font-size: 18px;
}

.preview-video-container {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9 / 16;
  max-height: 400px;
}

.preview-video-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.preview-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.6);
  font-size: 16px;
}

.preview-hint {
  margin: 0;
  font-size: 13px;
  color: rgba(244, 247, 255, 0.5);
  text-align: center;
}

/* ── ANTI-COPYRIGHT NÂNG CAO section ── */
#anti-copyright-advanced {
  position: relative;
  border: 1px solid rgba(14, 165, 233, 0.15);
  background: linear-gradient(160deg, rgba(6, 30, 20, 0.9), rgba(10, 14, 42, 0.85));
  overflow: hidden;
}

#anti-copyright-advanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.6), rgba(52, 211, 153, 0.4), transparent);
  animation: remix-section-border-flow 4s linear infinite;
}

#anti-copyright-advanced .remix-form-title {
  color: #0ea5e9;
  text-shadow: 0 0 12px rgba(14, 165, 233, 0.3);
}

.anti-copyright-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
  gap: 10px !important;
}

.anti-chip input:checked+span {
  background: rgba(14, 165, 233, 0.15) !important;
  border-color: rgba(14, 165, 233, 0.4) !important;
  color: #0ea5e9 !important;
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.15);
}

.anti-chip span {
  transition: all 0.3s ease;
}

.anti-chip:hover span {
  border-color: rgba(14, 165, 233, 0.3);
  background: rgba(14, 165, 233, 0.06);
}

/* â”€â”€ ELITE ANTI-COPYRIGHT section â”€â”€ */
#elite-anti-copyright {
  position: relative;
  border: 1px solid rgba(255, 107, 53, 0.2);
  background: linear-gradient(160deg, rgba(40, 12, 6, 0.9), rgba(20, 8, 30, 0.85));
  overflow: hidden;
}

#elite-anti-copyright::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.8), rgba(255, 196, 0, 0.5), transparent);
  animation: remix-section-border-flow 3s linear infinite;
}

#elite-anti-copyright .remix-form-title {
  color: #ff6b35;
  text-shadow: 0 0 15px rgba(255, 107, 53, 0.4);
}

.elite-copyright-grid {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
  gap: 10px !important;
}

.elite-chip input:checked+span {
  background: rgba(255, 107, 53, 0.15) !important;
  border-color: rgba(255, 107, 53, 0.5) !important;
  color: #ff8c57 !important;
  box-shadow: 0 0 15px rgba(255, 107, 53, 0.2), 0 0 30px rgba(255, 107, 53, 0.05);
}

.elite-chip span {
  transition: all 0.3s ease;
}

.elite-chip:hover span {
  border-color: rgba(255, 107, 53, 0.35);
  background: rgba(255, 107, 53, 0.06);
}

/* â”€â”€ RESPONSIVE â”€â”€ */
@media (max-width: 1400px) {}

@media (max-width: 1100px) {
  .remix-lab-grid {
    grid-template-columns: 1fr;
  }

  .remix-side-panel {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .side-panel-card {
    flex: 1;
    min-width: 260px;
  }


  .anti-copyright-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
  }

  .elite-copyright-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  .remix-hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .remix-hero-title {
    font-size: 28px;
  }

  .remix-hero-stats {
    justify-content: center;
  }


  .remix-cta-content {
    flex-direction: column;
    text-align: center;
  }

  .remix-cta-left {
    flex-direction: column;
    min-width: auto;
  }

  .remix-hero-banner {
    padding: 32px 24px;
  }

  .remix-quick-cta {
    padding: 24px;
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SPLASH SCREEN — Premium Dark Cyber
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #060b14;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.splash-screen.splash-exit {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

.splash-screen.splash-hidden {
  display: none;
}

/* â”€â”€ Background â”€â”€ */
.splash-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.splash-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0;
  animation: splash-orb-in 1.5s ease forwards;
}

.splash-orb--cyan {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.35), transparent 70%);
  top: -15%;
  left: -10%;
  animation-delay: 0.1s;
}

.splash-orb--purple {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.3), transparent 70%);
  bottom: -20%;
  right: -10%;
  animation-delay: 0.3s;
}

.splash-orb--pink {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25), transparent 70%);
  top: 40%;
  right: 30%;
  animation-delay: 0.5s;
}

@keyframes splash-orb-in {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.splash-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  animation: splash-grid-move 20s linear infinite;
}

@keyframes splash-grid-move {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(60px, 60px);
  }
}

.splash-noise {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.03;
  mix-blend-mode: overlay;
}

/* â”€â”€ Content â”€â”€ */
.splash-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  z-index: 2;
}

/* â”€â”€ Rings + Logo â”€â”€ */
.splash-ring-container {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid transparent;
}

.splash-ring--outer {
  inset: 0;
  border-color: rgba(14, 165, 233, 0.15);
  border-top-color: rgba(14, 165, 233, 0.7);
  border-right-color: rgba(6, 182, 212, 0.5);
  animation: splash-spin 3s linear infinite;
}

.splash-ring--middle {
  inset: 14px;
  border-color: rgba(6, 182, 212, 0.1);
  border-bottom-color: rgba(6, 182, 212, 0.6);
  border-left-color: rgba(16, 185, 129, 0.4);
  animation: splash-spin-reverse 4s linear infinite;
}

.splash-ring--inner {
  inset: 28px;
  border-color: rgba(16, 185, 129, 0.08);
  border-top-color: rgba(16, 185, 129, 0.5);
  animation: splash-spin 2.5s linear infinite;
}

@keyframes splash-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes splash-spin-reverse {
  0% {
    transform: rotate(360deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

.splash-logo-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-logo-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.4), rgba(6, 182, 212, 0.2), transparent 70%);
  filter: blur(20px);
  animation: splash-logo-pulse 2s ease-in-out infinite;
}

@keyframes splash-logo-pulse {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.splash-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 20px;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: scale(0.5) rotate(-10deg);
  animation: splash-logo-in 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
  filter: drop-shadow(0 0 20px rgba(14, 165, 233, 0.5));
}

@keyframes splash-logo-in {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(-10deg);
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* â”€â”€ Text â”€â”€ */
.splash-text {
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  animation: splash-fade-up 0.7s ease 0.6s forwards;
}

@keyframes splash-fade-up {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.splash-title {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.splash-title-main {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 40%, #10b981 80%, #0ea5e9 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: splash-gradient-shift 4s ease infinite;
}

@keyframes splash-gradient-shift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.splash-title-badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #0ea5e9;
  border: 1px solid rgba(14, 165, 233, 0.3);
  background: rgba(14, 165, 233, 0.08);
  animation: splash-badge-glow 2s ease-in-out infinite;
}

@keyframes splash-badge-glow {

  0%,
  100% {
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.2);
  }

  50% {
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.5);
  }
}

.splash-subtitle {
  margin: 8px 0 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
}

.splash-tagline {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 24px;
}

.splash-tagline-text {
  font-size: 15px;
  color: rgba(14, 165, 233, 0.8);
  font-weight: 400;
}

.splash-cursor {
  font-size: 16px;
  color: rgba(14, 165, 233, 0.8);
  animation: splash-blink 0.7s step-end infinite;
}

@keyframes splash-blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* â”€â”€ Loader â”€â”€ */
.splash-loader {
  width: 320px;
  opacity: 0;
  animation: splash-fade-up 0.6s ease 1s forwards;
}

.splash-loader-track {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  position: relative;
}

.splash-loader-bar {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5e9, #06b6d4, #10b981);
  background-size: 200% 100%;
  animation: splash-bar-shimmer 1.5s ease infinite;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.5);
}

@keyframes splash-bar-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.splash-loader-text {
  margin: 10px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  letter-spacing: 0.06em;
}

/* â”€â”€ Particles â”€â”€ */
.splash-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.splash-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.6);
  animation: splash-float-up linear forwards;
  opacity: 0;
}

@keyframes splash-float-up {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0);
  }

  15% {
    opacity: 1;
    transform: translateY(-20px) scale(1);
  }

  85% {
    opacity: 0.5;
  }

  100% {
    opacity: 0;
    transform: translateY(-200px) scale(0.3);
  }
}

/* ═══ LICENSE GATE — PREMIUM REDESIGN ═══ */
.lic-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #060b14;
  overflow-y: auto;
  transition: opacity .6s cubic-bezier(.4, 0, .2, 1), transform .6s cubic-bezier(.4, 0, .2, 1)
}

.lic-gate.license-hidden {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none
}

.lic-gate.license-gone {
  display: none
}

.lic-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden
}

.lic-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px)
}

.lic-bg-orb--a {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14, 165, 233, .18), transparent 70%);
  top: -12%;
  left: -8%;
  animation: lic-drift 12s ease-in-out infinite
}

.lic-bg-orb--b {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(6, 182, 212, .15), transparent 70%);
  bottom: -15%;
  right: -8%;
  animation: lic-drift 15s ease-in-out infinite reverse
}

.lic-bg-orb--c {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(16, 185, 129, .12), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: lic-drift 10s ease-in-out infinite alternate
}

@keyframes lic-drift {

  0%,
  100% {
    transform: translate(0, 0)
  }

  50% {
    transform: translate(25px, -18px)
  }
}

.lic-bg-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(14, 165, 233, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(14, 165, 233, .025) 1px, transparent 1px);
  background-size: 55px 55px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%)
}

.lic-bg-scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(14, 165, 233, .04), transparent);
  background-size: 100% 8px;
  animation: lic-scan 4s linear infinite
}

@keyframes lic-scan {
  0% {
    transform: translateY(-100%)
  }

  100% {
    transform: translateY(100%)
  }
}

.lic-container {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0;
  max-width: 920px;
  width: 95%;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 0 50px 120px rgba(0, 0, 0, .7), 0 0 60px rgba(14, 165, 233, .06)
}

/* Left brand */
.lic-brand {
  flex: 0 0 320px;
  background: linear-gradient(180deg, rgba(5, 9, 30, .98), rgba(10, 15, 40, .95));
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  position: relative;
  border-right: 1px solid rgba(255, 255, 255, .06)
}

.lic-brand::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(14, 165, 233, .3), transparent)
}

.lic-brand-ring-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center
}

.lic-brand-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: rgba(14, 165, 233, .6);
  border-right-color: rgba(6, 182, 212, .3);
  animation: lic-spin 3s linear infinite
}

@keyframes lic-spin {
  to {
    transform: rotate(360deg)
  }
}

.lic-brand-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 20px;
  filter: drop-shadow(0 0 20px rgba(14, 165, 233, .4));
  position: relative;
  z-index: 2
}

.lic-brand-name {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.lic-brand-sub {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, .4);
  letter-spacing: .12em;
  text-transform: uppercase
}

.lic-brand-badges {
  display: flex;
  gap: 8px
}

.lic-badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: rgba(14, 165, 233, .8);
  border: 1px solid rgba(14, 165, 233, .25);
  background: rgba(14, 165, 233, .06)
}

.lic-badge--pro {
  color: #10b981;
  border-color: rgba(16, 185, 129, .25);
  background: rgba(16, 185, 129, .06)
}

.lic-features {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%
}

.lic-features li {
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
  display: flex;
  align-items: center;
  gap: 10px
}

.lic-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0ea5e9;
  box-shadow: 0 0 8px rgba(14, 165, 233, .5);
  flex-shrink: 0
}

/* Right panel */
.lic-panel {
  flex: 1;
  background: rgba(6, 10, 24, .97);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  min-height: 500px
}

.lic-panel-glow {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #0ea5e9 30%, #06b6d4 50%, #10b981 70%, transparent)
}

.lic-sec {
  display: flex;
  flex-direction: column;
  gap: 16px
}

.lic-sec-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px
}

.lic-shield-svg {
  color: rgba(14, 165, 233, .6)
}

.lic-sec-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #fff
}

.lic-sec-head p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, .4)
}

.lic-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, .4);
  letter-spacing: .12em;
  margin-bottom: 4px
}

.lic-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(0, 0, 0, .4);
  transition: border .3s, box-shadow .3s
}

.lic-input-wrap:focus-within {
  border-color: rgba(14, 165, 233, .4);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, .1), 0 0 30px rgba(14, 165, 233, .06)
}

.lic-input-wrap svg {
  color: rgba(14, 165, 233, .5);
  flex-shrink: 0
}

.lic-input-wrap input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 17px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  text-transform: uppercase;
  letter-spacing: .15em
}

.lic-input-wrap input::placeholder {
  color: rgba(255, 255, 255, .15);
  letter-spacing: .1em
}

.lic-btn {
  width: 100%;
  padding: 15px 24px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #0ea5e9 0%, #3adaa0 50%, #06b6d4 100%);
  color: #0a0f20;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 8px 30px rgba(14, 165, 233, .25)
}

.lic-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(14, 165, 233, .4)
}

.lic-btn:active {
  transform: translateY(0)
}

.lic-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none
}

.lic-btn-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
  transform: translateX(-100%);
  transition: transform .6s
}

.lic-btn:hover .lic-btn-shine {
  transform: translateX(100%)
}

.lic-btn--enter {
  background: linear-gradient(135deg, #06b6d4 0%, #38bdf8 50%, #0ea5e9 100%)
}

.lic-msg {
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  text-align: center;
  line-height: 1.6;
  white-space: pre-line
}

.lic-msg[data-type="error"] {
  background: rgba(255, 70, 100, .1);
  border: 1px solid rgba(255, 70, 100, .25);
  color: #ffa0b5
}

.lic-msg[data-type="success"] {
  background: rgba(14, 165, 233, .08);
  border: 1px solid rgba(14, 165, 233, .25);
  color: #a5ffe7
}

.lic-msg[data-type="info"] {
  background: rgba(6, 182, 212, .08);
  border: 1px solid rgba(6, 182, 212, .25);
  color: #b8d9ff
}

.lic-hwid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .02);
  border: 1px solid rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .3);
  font-size: 11px
}

.lic-hwid code {
  color: rgba(14, 165, 233, .6);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  user-select: all
}

/* Success */
.lic-ok-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(14, 165, 233, .06);
  border: 1px solid rgba(14, 165, 233, .2);
  color: #a5ffe7;
  font-weight: 600;
  font-size: 16px
}

.lic-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px
}

.lic-info-card {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .025);
  border: 1px solid rgba(255, 255, 255, .05);
  display: flex;
  flex-direction: column;
  gap: 4px
}

.lic-info-lbl {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, .3);
  letter-spacing: .1em;
  text-transform: uppercase
}

.lic-info-val {
  font-size: 13px;
  font-weight: 600;
  color: #fff
}

.lic-val-accent {
  color: #0ea5e9
}

/* Guide */
.lic-guide {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .05)
}

.lic-guide-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .5)
}

.lic-steps {
  display: flex;
  flex-direction: column;
  gap: 6px
}

.lic-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, .4)
}

.lic-step-n {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(14, 165, 233, .1);
  border: 1px solid rgba(14, 165, 233, .25);
  color: #0ea5e9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0
}

.lic-step a {
  color: #0ea5e9;
  text-decoration: none;
  font-weight: 600
}

.lic-step a:hover {
  text-decoration: underline
}

.lic-contacts {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap
}

.lic-chip {
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .7);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s
}

.lic-chip:hover {
  background: rgba(14, 165, 233, .06);
  border-color: rgba(14, 165, 233, .25);
  color: #fff
}

@media(max-width:768px) {
  .lic-container {
    flex-direction: column;
    max-width: 460px
  }

  .lic-brand {
    flex: none;
    padding: 28px 24px
  }

  .lic-panel {
    padding: 28px 24px
  }
}

/* ------------------------------------------------------
   PLATFORM SELECTOR � Clean Rewrite
   ------------------------------------------------------ */
.platform-selector-grid {
  position: relative;
  z-index: 1;
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
  gap: 14px;
}

/* Card (button) � explicit reset, NO all:unset */
.platform-select-card {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(8, 12, 28, 0.85);
  border: 1px solid rgba(0, 242, 254, 0.15);
  backdrop-filter: blur(12px);
  padding: 0;
  margin: 0;
  font: inherit;
  color: #fff;
  text-align: left;
  text-decoration: none;
  outline: none;
  box-sizing: border-box;
  position: relative;
  border-radius: 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.platform-select-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 12px 35px rgba(0, 242, 254, 0.18);
}

.platform-select-card:active {
  transform: translateY(-2px) scale(0.98);
}

/* Glow background overlay */
.platform-select-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}

.platform-select-card:hover .platform-select-glow {
  opacity: 0.7;
}

/* -- SELECTED state -- */
.platform-select-card.selected {
  border-color: #00f2fe;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.45), inset 0 0 15px rgba(0, 242, 254, 0.1);
  transform: translateY(-4px);
}

.platform-select-card.selected .platform-select-glow {
  opacity: 1;
}

.platform-select-card.selected .platform-select-check {
  opacity: 1;
  transform: scale(1);
}

.platform-select-card.selected .platform-select-algo-detail {
  max-height: 260px;
  opacity: 1;
  padding: 0 16px 8px;
}

.platform-select-card.selected .platform-select-footer {
  max-height: 100px;
  opacity: 1;
  padding: 0 16px 14px;
}

/* -- Inner row (icon + info + badge) -- */
.platform-select-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 12px;
}

/* Platform icon */
.platform-select-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.platform-select-card:hover .platform-select-icon {
  transform: scale(1.1);
}

.platform-select-card.selected .platform-select-icon {
  transform: scale(1.14) rotate(-3deg);
  filter: brightness(1.25);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.platform-icon--tiktok {
  background: linear-gradient(135deg, #ff0050, #00f2ea);
  box-shadow: 0 6px 18px rgba(255, 0, 80, 0.35);
}

.platform-icon--youtube {
  background: linear-gradient(135deg, #ff0000, #cc0000);
  box-shadow: 0 6px 18px rgba(255, 0, 0, 0.35);
}

.platform-icon--instagram {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
  box-shadow: 0 6px 18px rgba(225, 48, 108, 0.35);
}

.platform-icon--facebook {
  background: linear-gradient(135deg, #1877f2, #0d65d9);
  box-shadow: 0 6px 18px rgba(24, 119, 242, 0.35);
}

.platform-icon--shorts {
  background: linear-gradient(135deg, #ff0033, #ff4466);
  box-shadow: 0 6px 18px rgba(255, 0, 60, 0.35);
}

/* Platform-specific glow */
.platform-select-card[data-platform="tiktok"] .platform-select-glow {
  background: radial-gradient(ellipse at 20% 20%, rgba(255, 0, 80, 0.25), transparent 55%), radial-gradient(ellipse at 80% 80%, rgba(0, 242, 234, 0.2), transparent 50%);
}

.platform-select-card[data-platform="tiktok"].selected {
  border-color: #00f2ea;
  box-shadow: 0 0 25px rgba(0, 242, 234, 0.5), 0 0 40px rgba(255, 0, 80, 0.3);
}

.platform-select-card[data-platform="youtube"] .platform-select-glow {
  background: radial-gradient(ellipse at 30% 20%, rgba(255, 0, 0, 0.25), transparent 55%);
}

.platform-select-card[data-platform="youtube"].selected {
  border-color: #ff3344;
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.5);
}

.platform-select-card[data-platform="instagram"] .platform-select-glow {
  background: radial-gradient(ellipse at 20% 20%, rgba(245, 133, 41, 0.2), transparent 50%), radial-gradient(ellipse at 80% 80%, rgba(225, 48, 108, 0.25), transparent 50%);
}

.platform-select-card[data-platform="instagram"].selected {
  border-color: #e1306c;
  box-shadow: 0 0 25px rgba(225, 48, 108, 0.5);
}

.platform-select-card[data-platform="facebook"] .platform-select-glow {
  background: radial-gradient(ellipse at 30% 20%, rgba(24, 119, 242, 0.25), transparent 55%);
}

.platform-select-card[data-platform="facebook"].selected {
  border-color: #3b82f6;
  box-shadow: 0 0 25px rgba(24, 119, 242, 0.5);
}

.platform-select-card[data-platform="shorts"] .platform-select-glow {
  background: radial-gradient(ellipse at 30% 20%, rgba(255, 0, 60, 0.25), transparent 55%);
}

.platform-select-card[data-platform="shorts"].selected {
  border-color: #ff0033;
  box-shadow: 0 0 25px rgba(255, 0, 60, 0.5);
}

/* Info text */
.platform-select-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.platform-select-info h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.platform-select-engine {
  margin: 2px 0 0;
  font-size: 10px;
  color: rgba(244, 247, 255, 0.5);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Badge (Cyber Neon Pill) */
.platform-select-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.35);
  color: #00f2fe;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.platform-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f87171;
  box-shadow: 0 0 6px #f87171;
  animation: remix-dot-pulse 2s ease-in-out infinite;
}

/* -- Algorithm Detail (collapsed) -- */
.platform-select-algo-detail {
  position: relative;
  z-index: 1;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: max-height 0.5s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.4s ease, padding 0.4s ease;
}

.algo-layer {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.algo-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.algo-layer div {
  flex: 1;
  min-width: 0;
}

.algo-layer strong {
  display: block;
  font-size: 10.5px;
  color: #fff;
  font-weight: 600;
}

.algo-layer small {
  display: block;
  font-size: 9px;
  color: rgba(244, 247, 255, 0.4);
  margin-top: 1px;
}

.algo-badge {
  font-size: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.algo-badge--danger {
  background: rgba(248, 113, 113, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.algo-badge--warn {
  background: rgba(251, 191, 36, 0.12);
  color: #fcd34d;
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.algo-badge--safe {
  background: rgba(74, 222, 128, 0.12);
  color: #86efac;
  border: 1px solid rgba(74, 222, 128, 0.2);
}

/* -- Footer (intensity, collapsed) -- */
.platform-select-footer {
  position: relative;
  z-index: 1;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 16px;
  transition: max-height 0.5s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.4s ease, padding 0.4s ease;
}

.platform-intensity {
  display: flex;
  align-items: center;
  gap: 8px;
}

.platform-intensity label {
  font-size: 10px;
  color: rgba(244, 247, 255, 0.5);
  flex-shrink: 0;
}

.intensity-btns {
  display: flex;
  gap: 4px;
}

button.intensity-btn {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(244, 247, 255, 0.6);
  padding: 4px 12px;
  margin: 0;
  font: inherit;
  font-size: 10px;
  font-weight: 500;
  border-radius: 999px;
  cursor: pointer;
  outline: none;
  box-sizing: border-box;
  transition: all 0.25s ease;
}

button.intensity-btn:hover {
  background: rgba(14, 165, 233, 0.08);
  border-color: rgba(14, 165, 233, 0.3);
  color: #fff;
}

button.intensity-btn.active {
  background: rgba(14, 165, 233, 0.15);
  border-color: rgba(14, 165, 233, 0.5);
  color: #a5ffe7;
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.15);
}

/* -- Checkmark -- */
.platform-select-check {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #3bbbf0);
  display: grid;
  place-items: center;
  color: #0a0e1a;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
}

/* -- Selected Info Bar -- */
.platform-selected-bar {
  position: relative;
  margin-top: 16px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.06), rgba(6, 182, 212, 0.04));
  border: 1px solid rgba(14, 165, 233, 0.2);
  animation: platform-bar-slide-in 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes platform-bar-slide-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.platform-selected-bar-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.05), transparent 40%, rgba(6, 182, 212, 0.04));
  pointer-events: none;
}

.platform-selected-bar-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 12px;
}

.platform-selected-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.platform-selected-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #3bbbf0);
  color: #0a0e1a;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

.platform-selected-separator {
  color: rgba(244, 247, 255, 0.3);
}

.platform-selected-level {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.25);
  color: #a5ffe7;
  font-weight: 500;
}

.platform-selected-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.platform-selected-filters {
  font-size: 11px;
  color: rgba(244, 247, 255, 0.5);
}

button.platform-deselect-btn {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.2);
  color: #fca5a5;
  padding: 5px 12px;
  margin: 0;
  font: inherit;
  font-size: 11px;
  border-radius: 999px;
  cursor: pointer;
  outline: none;
  box-sizing: border-box;
  transition: all 0.25s ease;
}

button.platform-deselect-btn:hover {
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.4);
  color: #fff;
}

/* -- Responsive -- */
/* responsive auto handled */



/* ------------------------------------------------------
   SMART CTA BANNER � Two States
   ------------------------------------------------------ */
/* State transitions */
.cta-state-idle,
.cta-state-active {
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Active state background upgrade */
.remix-quick-cta.cta-activated {
  border-color: rgba(74, 222, 128, 0.3) !important;
  background: linear-gradient(135deg, rgba(6, 25, 14, 0.95), rgba(10, 30, 20, 0.92)) !important;
}

.remix-quick-cta.cta-activated .remix-cta-glow {
  background: linear-gradient(90deg, rgba(74, 222, 128, 0.08), transparent 40%, rgba(14, 165, 233, 0.06)) !important;
}

/* Active state icon */
.cta-active-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.2), rgba(14, 165, 233, 0.1));
  border: 1px solid rgba(74, 222, 128, 0.3);
  display: grid;
  place-items: center;
  color: #4ade80;
  flex-shrink: 0;
  animation: cta-shield-pulse 2s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.15);
}

@keyframes cta-shield-pulse {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.15);
  }

  50% {
    box-shadow: 0 0 35px rgba(74, 222, 128, 0.3);
  }
}

.cta-active-title {
  color: #4ade80 !important;
}

.cta-active-title span {
  font-weight: 800;
  background: linear-gradient(135deg, #4ade80, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-active-desc {
  color: rgba(74, 222, 128, 0.7) !important;
}

.cta-active-desc strong {
  color: #a5ffe7;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(14, 165, 233, 0.1);
}

/* Algorithm badges */
.cta-active-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cta-badge-item {
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
  animation: cta-badge-appear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.cta-badge-item:nth-child(1) {
  animation-delay: 0.1s;
}

.cta-badge-item:nth-child(2) {
  animation-delay: 0.2s;
}

.cta-badge-item:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes cta-badge-appear {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.8);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cta-badge--visual {
  background: rgba(251, 191, 36, 0.12);
  color: #fcd34d;
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.cta-badge--audio {
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.25);
}

.cta-badge--meta {
  background: rgba(74, 222, 128, 0.12);
  color: #86efac;
  border: 1px solid rgba(74, 222, 128, 0.25);
}

/* Change platform button */
.cta-change-btn {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(244, 247, 255, 0.6);
  padding: 6px 14px;
  margin: 0;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  border-radius: 999px;
  cursor: pointer;
  outline: none;
  box-sizing: border-box;
  transition: all 0.25s ease;
  margin-top: 6px;
}

.cta-change-btn:hover {
  background: rgba(14, 165, 233, 0.08);
  border-color: rgba(14, 165, 233, 0.3);
  color: #fff;
}

/* ═══════════════════════════════════════════
   MULTI-ACCOUNT MANAGER — Premium Dark UI
   ═══════════════════════════════════════════ */

/* ─── Toolbar ─── */
.acc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.acc-platform-tabs {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 4px;
}

.acc-platform-tab {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(244, 247, 255, 0.55);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.acc-platform-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(244, 247, 255, 0.85);
}

.acc-platform-tab.active {
  background: rgba(14, 165, 233, 0.12);
  color: #a5ffe7;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
}

.acc-platform-tab svg {
  flex-shrink: 0;
}

.acc-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.acc-search-input {
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 6, 10, 0.7);
  color: #fff;
  font-size: 13px;
  width: 200px;
  transition: border-color 0.25s;
  outline: none;
}

.acc-search-input:focus {
  border-color: rgba(14, 165, 233, 0.4);
}

.acc-search-input::placeholder {
  color: rgba(244, 247, 255, 0.35);
}

/* ─── Stats Bar ─── */
.acc-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.acc-stat-card {
  background: rgba(8, 12, 32, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.3s ease;
}

.acc-stat-card:hover {
  border-color: rgba(14, 165, 233, 0.15);
  transform: translateY(-2px);
}

.acc-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  font-family: 'Be Vietnam Pro', 'Segoe UI', 'Inter', Arial, sans-serif;
}

.acc-stat-label {
  font-size: 12px;
  color: rgba(244, 247, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.acc-stat-active .acc-stat-value {
  color: #0ea5e9;
}

.acc-stat-expired .acc-stat-value {
  color: #ff8c57;
}

.acc-stat-uploads .acc-stat-value {
  color: #06b6d4;
}

/* ─── Table ─── */
.acc-table-wrap {
  background: rgba(8, 12, 32, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 16px;
}

.acc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.acc-table thead th {
  padding: 14px 16px;
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(244, 247, 255, 0.45);
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-weight: 600;
  white-space: nowrap;
}

.acc-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.2s;
}

.acc-table tbody tr:hover {
  background: rgba(14, 165, 233, 0.03);
}

.acc-table tbody tr.acc-row-selected {
  background: rgba(14, 165, 233, 0.06);
}

.acc-table tbody td {
  padding: 12px 16px;
  color: rgba(244, 247, 255, 0.85);
  vertical-align: middle;
}

.acc-table input[type="checkbox"] {
  accent-color: #0ea5e9;
  width: 15px;
  height: 15px;
  cursor: pointer;
}

/* Name Cell */
.acc-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.acc-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
  opacity: 0.9;
}

.acc-display-name {
  font-weight: 600;
  color: #fff;
  font-size: 14px;
  line-height: 1.3;
}

.acc-username {
  font-size: 11px;
  color: rgba(244, 247, 255, 0.4);
}

/* Platform Pill */
.acc-platform-pill {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid;
  text-transform: capitalize;
  font-weight: 500;
}

/* Proxy */
.acc-proxy-text {
  font-size: 12px;
  color: rgba(244, 247, 255, 0.5);
  font-family: 'Be Vietnam Pro', 'Segoe UI', 'Inter', Arial, sans-serif;
}

/* Status Badge */
.acc-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 500;
  white-space: nowrap;
}

.acc-badge-active {
  background: rgba(14, 165, 233, 0.1);
  color: #0ea5e9;
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.acc-badge-login {
  background: rgba(255, 196, 0, 0.1);
  color: #ffc400;
  border: 1px solid rgba(255, 196, 0, 0.2);
}

.acc-badge-warn {
  background: rgba(255, 140, 87, 0.1);
  color: #ff8c57;
  border: 1px solid rgba(255, 140, 87, 0.2);
}

.acc-badge-dead {
  background: rgba(248, 106, 106, 0.1);
  color: #f86a6a;
  border: 1px solid rgba(248, 106, 106, 0.2);
}

.acc-badge-check {
  background: rgba(6, 182, 212, 0.1);
  color: #06b6d4;
  border: 1px solid rgba(6, 182, 212, 0.2);
}

/* Action Buttons */
.acc-action-btns {
  display: flex;
  gap: 6px;
}

.acc-action-btn {
  all: unset;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.acc-action-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.acc-btn-delete:hover {
  background: rgba(248, 106, 106, 0.12);
  border-color: rgba(248, 106, 106, 0.3);
}

.acc-action-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Empty State */
.acc-empty {
  padding: 48px 24px !important;
  text-align: center;
}

.acc-empty-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.acc-empty-icon {
  font-size: 48px;
  opacity: 0.5;
}

.acc-empty-content p {
  margin: 0;
  color: rgba(244, 247, 255, 0.5);
  font-size: 15px;
}

/* ─── Bulk Bar ─── */
.acc-bulk-bar {
  position: sticky;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(8, 12, 32, 0.95);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 14px;
  backdrop-filter: blur(16px);
  z-index: 10;
  animation: acc-bulk-in 0.3s ease;
}

@keyframes acc-bulk-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.acc-bulk-bar span {
  font-size: 13px;
  font-weight: 600;
  color: #0ea5e9;
  margin-right: auto;
}

/* ─── Modal ─── */
.acc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  animation: acc-modal-fade-in 0.25s ease;
}

@keyframes acc-modal-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.acc-modal {
  background: rgba(10, 14, 35, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  width: 90%;
  max-width: 620px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  animation: acc-modal-slide-in 0.3s ease;
}

.acc-modal--sm {
  max-width: 440px;
}

@keyframes acc-modal-slide-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.acc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.acc-modal-header h2 {
  margin: 0;
  font-size: 20px;
  color: #fff;
}

.acc-modal-close {
  all: unset;
  font-size: 24px;
  color: rgba(244, 247, 255, 0.4);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.2s;
}

.acc-modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.acc-modal-body {
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.acc-modal-footer {
  padding: 16px 28px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ─── Form Elements ─── */
.acc-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.acc-form-row label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(244, 247, 255, 0.55);
  font-weight: 500;
}

.acc-select,
.acc-input {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 6, 10, 0.8);
  color: #fff;
  font-size: 14px;
  transition: border-color 0.25s;
  outline: none;
}

.acc-select:focus,
.acc-input:focus {
  border-color: rgba(14, 165, 233, 0.4);
}

.acc-textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 6, 10, 0.8);
  color: #fff;
  font-size: 13px;
  font-family: 'Be Vietnam Pro', 'Segoe UI', 'Inter', Arial, sans-serif;
  resize: vertical;
  min-height: 120px;
  outline: none;
  transition: border-color 0.25s;
}

.acc-textarea:focus {
  border-color: rgba(14, 165, 233, 0.4);
}

.acc-form-hint {
  margin: 2px 0 0;
  font-size: 11px;
  color: rgba(244, 247, 255, 0.35);
}

.acc-field-order {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.acc-field-order label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 13px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: rgba(244, 247, 255, 0.7) !important;
  transition: all 0.2s;
}

.acc-field-order label:hover {
  background: rgba(14, 165, 233, 0.06);
  border-color: rgba(14, 165, 233, 0.2);
}

.acc-field-order input[type="checkbox"] {
  accent-color: #0ea5e9;
}

/* ─── Button Overrides ─── */
.btn--danger {
  background: rgba(248, 106, 106, 0.12);
  border: 1px solid rgba(248, 106, 106, 0.25);
  color: #f86a6a;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.25s;
}

.btn--danger:hover {
  background: rgba(248, 106, 106, 0.2);
  border-color: rgba(248, 106, 106, 0.4);
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .acc-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .acc-platform-tabs {
    justify-content: center;
  }

  .acc-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .acc-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .acc-table-wrap {
    overflow-x: auto;
  }

  .acc-table {
    min-width: 700px;
  }
}

@media (max-width: 600px) {
  .acc-stats-bar {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════
   DISCLAIMER / TERMS OF SERVICE POPUP
   ═══════════════════════════════════════════════════════ */

.disc-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: disc-fadein 0.35s ease;
}

@keyframes disc-fadein {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.disc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 3, 12, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.disc-modal {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
  max-height: 90vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(6, 182, 212, 0.12), transparent 50%),
    radial-gradient(circle at 90% 100%, rgba(14, 165, 233, 0.08), transparent 50%),
    linear-gradient(145deg, rgba(5, 8, 28, 0.98), rgba(8, 6, 30, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(6, 182, 212, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: disc-slidein 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

@keyframes disc-slidein {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Header ── */
.disc-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.08), transparent 70%);
  flex-shrink: 0;
}

.disc-header-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(14, 165, 233, 0.15));
  border: 1px solid rgba(6, 182, 212, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a78bfa;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.2);
}

.disc-header-text {
  flex: 1;
  min-width: 0;
}

.disc-header-text h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.disc-header-text p {
  margin: 4px 0 0;
  font-size: 13px;
  color: rgba(244, 247, 255, 0.55);
}

.disc-version-badge {
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(14, 165, 233, 0.1));
  border: 1px solid rgba(6, 182, 212, 0.4);
  font-size: 12px;
  font-weight: 700;
  color: #a78bfa;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

/* ── Warning banner ── */
.disc-warn-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 28px;
  background: linear-gradient(90deg, rgba(255, 165, 0, 0.08), rgba(255, 125, 80, 0.05));
  border-bottom: 1px solid rgba(255, 165, 0, 0.15);
  color: rgba(255, 200, 80, 0.9);
  font-size: 13px;
  line-height: 1.5;
  flex-shrink: 0;
}

.disc-warn-banner svg {
  color: #fbbf24;
  flex-shrink: 0;
  margin-top: 1px;
}

.disc-warn-banner strong {
  color: #fbbf24;
}

/* ── Scrollable body ── */
.disc-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(6, 182, 212, 0.3) transparent;
}

.disc-body::-webkit-scrollbar {
  width: 5px;
}

.disc-body::-webkit-scrollbar-thumb {
  background: rgba(6, 182, 212, 0.3);
  border-radius: 999px;
}

.disc-section {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.disc-section:last-child {
  border-bottom: none;
}

.disc-section-icon {
  font-size: 20px;
  margin-bottom: 8px;
}

.disc-section h3 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a78bfa;
}

.disc-section p {
  margin: 0 0 10px;
  font-size: 14px;
  color: rgba(244, 247, 255, 0.75);
  line-height: 1.65;
}

.disc-section p:last-child {
  margin-bottom: 0;
}

.disc-section ul {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.disc-section ul li {
  font-size: 13.5px;
  color: rgba(244, 247, 255, 0.7);
  line-height: 1.55;
}

.disc-section ul li strong {
  color: rgba(244, 247, 255, 0.95);
}

.disc-section--highlight {
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.04), transparent);
  border-radius: 12px;
  padding: 18px 16px;
  border: 1px solid rgba(14, 165, 233, 0.08);
  margin: 4px 0;
}

.disc-section--highlight h3 {
  color: #0ea5e9;
}

.disc-date {
  font-size: 12px !important;
  color: rgba(244, 247, 255, 0.4) !important;
  margin-top: 6px !important;
}

/* ── Scroll hint ── */
.disc-scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  font-size: 12px;
  color: rgba(244, 247, 255, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
  animation: bounce-hint 2s ease-in-out infinite;
  transition: opacity 0.3s ease;
}

.disc-scroll-hint.hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes bounce-hint {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(3px);
  }
}

/* ── Checkbox ── */
.disc-agree-row {
  padding: 16px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(6, 182, 212, 0.04);
  flex-shrink: 0;
}

.disc-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.disc-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.disc-checkbox-custom {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 7px;
  border: 2px solid rgba(6, 182, 212, 0.5);
  background: rgba(5, 8, 28, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: all 0.2s ease;
  margin-top: 1px;
  box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
}

.disc-checkbox:checked+.disc-checkbox-custom {
  background: linear-gradient(135deg, #0891b2, #0ea5e9);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.25), 0 4px 12px rgba(6, 182, 212, 0.4);
}

.disc-checkbox-label:hover .disc-checkbox-custom {
  border-color: rgba(6, 182, 212, 0.8);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.12);
}

.disc-agree-text {
  font-size: 13.5px;
  color: rgba(244, 247, 255, 0.75);
  line-height: 1.55;
}

.disc-agree-text strong {
  color: #a78bfa;
}

/* ── Footer ── */
.disc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.disc-footer-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(244, 247, 255, 0.35);
  flex: 1;
  min-width: 200px;
}

.disc-footer-note svg {
  flex-shrink: 0;
  color: rgba(244, 247, 255, 0.3);
}

.disc-footer-btns {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.disc-btn {
  all: unset;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.disc-btn--decline {
  background: rgba(255, 125, 156, 0.08);
  border-color: rgba(255, 125, 156, 0.2);
  color: rgba(255, 125, 156, 0.7);
}

.disc-btn--decline:hover {
  background: rgba(255, 125, 156, 0.15);
  border-color: rgba(255, 125, 156, 0.4);
  color: #f87171;
}

.disc-btn--accept {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(14, 165, 233, 0.15));
  border-color: rgba(6, 182, 212, 0.4);
  color: rgba(200, 190, 255, 0.6);
  position: relative;
  overflow: hidden;
}

.disc-btn--accept:not(:disabled) {
  background: linear-gradient(135deg, #0891b2, #4ecdc4);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 24px rgba(6, 182, 212, 0.4);
}

.disc-btn--accept:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(6, 182, 212, 0.55);
}

.disc-btn--accept:not(:disabled):active {
  transform: translateY(0);
}

.disc-btn--accept:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* Shine effect on accept button */
.disc-btn--accept:not(:disabled)::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 60%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: skewX(-20deg);
  animation: disc-shine 3s ease-in-out infinite;
}

@keyframes disc-shine {

  0%,
  100% {
    left: -60%;
  }

  50% {
    left: 120%;
  }
}

/* Exit animation when closing */
.disc-overlay.disc-closing {
  animation: disc-fadeout 0.3s ease forwards;
}

@keyframes disc-fadeout {
  to {
    opacity: 0;
    transform: scale(1.01);
  }
}

/* ==========================================
   PREMIUM VOICE SELECTOR MODAL STYLES
   ========================================== */
.voice-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.voice-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1;
}

.voice-modal-container {
  position: relative;
  z-index: 2;
  width: min(900px, 100%);
  max-height: 90vh;
  background: radial-gradient(circle at 10% 10%, rgba(14, 165, 233, 0.04), transparent 50%),
    radial-gradient(circle at 90% 90%, rgba(59, 130, 246, 0.04), transparent 50%),
    #05081c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: voice-modal-enter 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes voice-modal-enter {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.voice-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.voice-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.voice-modal-close-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.voice-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.voice-modal-tabs {
  display: flex;
  gap: 16px;
  padding: 16px 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.voice-tab-btn {
  background: none;
  border: none;
  padding: 8px 12px 14px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.voice-tab-btn:hover {
  color: rgba(255, 255, 255, 0.85);
}

.voice-tab-btn.active {
  color: #10b981;
}

.voice-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #10b981;
  border-radius: 99px 99px 0 0;
}

.voice-modal-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 24px;
  align-items: flex-end;
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.voice-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 120px;
}

.voice-filter-group label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.voice-filter-select {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 13px;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.voice-filter-select:focus {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.voice-filter-select option {
  background: #0f122c;
  color: #fff;
}

.voice-filter-reset-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 1px;
}

.voice-filter-reset-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

.voice-modal-search-container {
  position: relative;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.voice-modal-search-container .search-icon {
  position: absolute;
  left: 36px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.voice-modal-search-container input {
  width: 100%;
  padding: 10px 16px 10px 38px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
}

.voice-modal-search-container input:focus {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.voice-cards-grid {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  max-height: calc(90vh - 250px);
}

/* Beautiful custom scrollbar for cards grid */
.voice-cards-grid::-webkit-scrollbar {
  width: 6px;
}

.voice-cards-grid::-webkit-scrollbar-track {
  background: transparent;
}

.voice-cards-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
}

.voice-cards-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

.voice-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s ease;
}

.voice-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.voice-card-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.voice-card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  color: #fff;
  flex-shrink: 0;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.voice-card-info {
  min-width: 0;
  flex: 1;
}

.voice-card-name {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-card-provider {
  margin: 2px 0 0 0;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
}

.voice-card-desc {
  margin: 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 30px;
}

.voice-card-tag {
  align-self: flex-start;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.voice-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 12px;
}

.voice-card-actions-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.voice-card-action-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.voice-card-action-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.voice-card-action-btn.active-fav {
  color: #ef4444;
  /* red heart */
}

.voice-card-action-btn.playing {
  color: #10b981;
  animation: pulse-green 1.5s infinite;
}

/* ── Loading state: spinner + loading bar ── */
.voice-card-action-btn.loading {
  color: #f59e0b;
  pointer-events: none;
}

.voice-card-action-btn.loading .voice-spinner-icon {
  animation: spin-icon 0.8s linear infinite;
}

@keyframes spin-icon {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.voice-card.voice-card-loading {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.15);
  position: relative;
  overflow: hidden;
}

.voice-card-loading-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, transparent, #f59e0b, #fbbf24, #f59e0b, transparent);
  background-size: 200% 100%;
  animation: loading-slide 1.5s ease-in-out infinite;
  z-index: 5;
  border-radius: 6px 6px 0 0;
}

@keyframes loading-slide {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

@keyframes pulse-green {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
  }
}

.voice-card-use-btn {
  background: #10b981;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.voice-card-use-btn:hover {
  background: #059669;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}
/* --- Crawler Platform Login Styles --- */
.lcards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.lcard {
  background: var(--bg-surface, #1e1e24);
  border: 1px solid var(--border-color, #2d2d34);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lcard:hover {
  transform: translateY(-4px);
  border-color: var(--primary-color, #ff4444);
  box-shadow: 0 8px 24px rgba(255, 68, 68, 0.1);
}

.lcard.in {
  border-color: #2ec4b6;
  box-shadow: 0 4px 12px rgba(46, 196, 182, 0.05);
}

.lcard.out {
  border-color: #ff5454;
}

.lcard img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 16px;
  object-fit: cover;
  background: #252528;
}

.lletter {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  color: #fff;
}

.lcard .ln {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-color, #fff);
}

.lcard .ls {
  font-size: 13px;
  margin-bottom: 20px;
  color: var(--muted-color, #888);
}

.lcard.in .ls {
  color: #2ec4b6;
}

.lcard.out .ls {
  color: #ff5454;
}

.lcard .badge2 {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 40px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lcard.in .badge2 {
  color: #2ec4b6;
  background: rgba(46, 196, 182, 0.1);
}

.lcard.out .badge2 {
  color: #ff5454;
  background: rgba(255, 84, 84, 0.1);
}

.lcacts {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: auto;
}

.lcbtn {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
  background: #ff4444;
  color: #fff;
}

.lcbtn.btnst-in {
  background: #252528;
  color: #ff5454;
  border: 1px solid rgba(255, 84, 84, 0.3);
}

.lcbtn.btnst-in:hover {
  background: rgba(255, 84, 84, 0.1);
}

.lcbtn.btnst-out {
  background: #ff4444;
}

.lcbtn.btnst-out:hover {
  background: #ff6b6b;
}

.lcbrowse {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border-color, #2d2d34);
  background: transparent;
  color: var(--text-color, #fff);
  cursor: pointer;
  transition: all 0.2s;
}

.lcbrowse:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--muted-color, #888);
}

/* ═══════════════════════════════════════════════════
   POPUP: Hướng dẫn tối ưu bản quyền 0%
   Prefix: .crtip-  (copyright-tip)
   ═══════════════════════════════════════════════════ */

.crtip-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: crtip-fadein 0.3s ease;
}

@keyframes crtip-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.crtip-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 3, 12, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.crtip-modal {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: 88vh;
  background:
    radial-gradient(circle at 15% 0%, rgba(34, 197, 94, 0.10), transparent 55%),
    radial-gradient(circle at 85% 100%, rgba(6, 182, 212, 0.08), transparent 55%),
    linear-gradient(145deg, rgba(5, 8, 28, 0.98), rgba(8, 6, 30, 0.98));
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 32px 100px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(34, 197, 94, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: crtip-slidein 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

@keyframes crtip-slidein {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.crtip-overlay.crtip-closing .crtip-modal {
  animation: crtip-slideout 0.25s ease forwards;
}
.crtip-overlay.crtip-closing .crtip-backdrop {
  animation: crtip-fadeout 0.25s ease forwards;
}

@keyframes crtip-slideout {
  to { opacity: 0; transform: translateY(16px) scale(0.97); }
}
@keyframes crtip-fadeout {
  to { opacity: 0; }
}

/* ── Header ── */
.crtip-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.06), transparent 70%);
  flex-shrink: 0;
}

.crtip-header-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(16, 185, 129, 0.15));
  border: 1px solid rgba(34, 197, 94, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4ade80;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.2);
}

.crtip-header-text {
  flex: 1;
  min-width: 0;
}

.crtip-header-text h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.crtip-header-text p {
  margin: 3px 0 0;
  font-size: 13px;
  color: rgba(244, 247, 255, 0.5);
}

.crtip-close {
  all: unset;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(244, 247, 255, 0.4);
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.crtip-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* ── Body ── */
.crtip-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(34, 197, 94, 0.25) transparent;
}

/* ── Steps ── */
.crtip-step {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.crtip-step:last-of-type {
  border-bottom: none;
}

.crtip-step-num {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.1));
  border: 1px solid rgba(34, 197, 94, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #4ade80;
  flex-shrink: 0;
  margin-top: 2px;
}

.crtip-step-content h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: #e2e8f0;
}

.crtip-step-content p {
  margin: 0;
  font-size: 13px;
  color: rgba(244, 247, 255, 0.65);
  line-height: 1.6;
}

.crtip-step-content strong {
  color: rgba(244, 247, 255, 0.92);
}

/* ── Example box ── */
.crtip-example {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.crtip-example-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(74, 222, 128, 0.7);
  margin-bottom: 6px;
}

.crtip-example code {
  font-size: 12px;
  color: rgba(244, 247, 255, 0.6);
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  line-height: 1.7;
  word-break: break-all;
}

/* ── Result banner ── */
.crtip-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.08), rgba(16, 185, 129, 0.04));
  border: 1px solid rgba(34, 197, 94, 0.15);
  margin-top: 6px;
  font-size: 13px;
  color: rgba(244, 247, 255, 0.75);
  line-height: 1.55;
}

.crtip-result-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4ade80;
}

.crtip-result strong {
  color: #e2e8f0;
}

.crtip-highlight {
  color: #4ade80;
  font-weight: 700;
}

/* ── Footer ── */
.crtip-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.crtip-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  color: rgba(244, 247, 255, 0.45);
  transition: color 0.2s;
}

.crtip-checkbox-label:hover {
  color: rgba(244, 247, 255, 0.7);
}

.crtip-checkbox-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.crtip-checkbox-mark {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 5px;
  border: 2px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.06);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crtip-checkbox-input:checked + .crtip-checkbox-mark {
  background: linear-gradient(135deg, #22c55e, #10b981);
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
}

.crtip-checkbox-input:checked + .crtip-checkbox-mark::after {
  content: '';
  width: 6px;
  height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

.crtip-btn {
  all: unset;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #22c55e, #10b981);
  color: #fff;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.35);
  transition: all 0.2s;
  white-space: nowrap;
}

.crtip-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(34, 197, 94, 0.5);
}

.crtip-btn:active {
  transform: translateY(0);
}

/* ── Mobile ── */
@media (max-width: 560px) {
  .crtip-modal {
    border-radius: 18px;
  }
  .crtip-header {
    padding: 18px 18px 14px;
  }
  .crtip-body {
    padding: 16px 18px;
  }
  .crtip-footer {
    flex-direction: column;
    gap: 12px;
    padding: 14px 18px;
  }
  .crtip-footer .crtip-btn {
    width: 100%;
    justify-content: center;
  }
}


/* ═══ LOGO THƯƠNG HIỆU — Tối ưu thuật toán (25/09/2026) ═══ */
.rlogo-card .remix-form-card-header { align-items: center; }
.rlogo-switch { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.rlogo-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.rlogo-switch-track { position: relative; width: 38px; height: 22px; border-radius: 999px; background: rgba(148, 163, 184, 0.25); border: 1px solid rgba(255, 255, 255, 0.08); transition: background .2s, border-color .2s; }
.rlogo-switch-thumb { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #cbd5e1; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); transition: transform .2s, background .2s; }
.rlogo-switch input:checked + .rlogo-switch-track { background: var(--accent, #0ea5e9); border-color: var(--accent-strong, #38bdf8); }
.rlogo-switch input:checked + .rlogo-switch-track .rlogo-switch-thumb { transform: translateX(16px); background: #fff; }
.rlogo-switch input:focus-visible + .rlogo-switch-track { outline: 2px solid var(--accent-strong, #38bdf8); outline-offset: 2px; }
.rlogo-switch-text { font-size: 12px; font-weight: 600; color: var(--muted, #94a3b8); min-width: 24px; }
.rlogo-switch input:checked ~ .rlogo-switch-text { color: var(--accent-strong, #38bdf8); }

.rlogo-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 14px; align-items: start; }
@media (max-width: 900px) { .rlogo-layout { grid-template-columns: 1fr; } }
.rlogo-controls { display: flex; flex-direction: column; gap: 16px; min-width: 0; transition: opacity .2s; }
.rlogo-card.is-off.has-logo .rlogo-field { opacity: .55; }

.rlogo-file { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px dashed rgba(148, 163, 184, 0.3); background: rgba(255, 255, 255, 0.025); cursor: pointer; transition: border-color .2s, background .2s; min-width: 0; }
.rlogo-file:hover, .rlogo-file:focus-visible, .rlogo-file.is-drag { border-color: var(--accent, #0ea5e9); background: var(--accent-soft, rgba(14, 165, 233, 0.12)); outline: none; }
.rlogo-card.has-logo .rlogo-file { border-style: solid; border-color: rgba(255, 255, 255, 0.08); }
.rlogo-file-thumb { flex: 0 0 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; overflow: hidden; font-size: 22px; color: var(--muted, #94a3b8);
  background-color: #1f2937; background-image: linear-gradient(45deg, #273244 25%, transparent 25%), linear-gradient(-45deg, #273244 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #273244 75%), linear-gradient(-45deg, transparent 75%, #273244 75%);
  background-size: 12px 12px; background-position: 0 0, 0 6px, 6px -6px, -6px 0; }
.rlogo-file-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.rlogo-file-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rlogo-file-name { font-size: 13px; font-weight: 600; color: var(--text, #e8edf5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rlogo-file-hint { font-size: 11px; color: var(--muted, #94a3b8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rlogo-btn { flex: 0 0 auto; height: 32px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--accent, #0ea5e9); background: var(--accent-soft, rgba(14, 165, 233, 0.18)); color: var(--accent-strong, #38bdf8); font-size: 12px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.rlogo-btn:hover:not(:disabled) { background: var(--accent, #0ea5e9); color: #fff; }
.rlogo-btn:disabled { opacity: .6; cursor: wait; }
.rlogo-btn-ghost { width: 32px; padding: 0; border-color: rgba(255, 255, 255, 0.12); background: transparent; color: var(--muted, #94a3b8); }
.rlogo-btn-ghost:hover:not(:disabled) { background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.5); color: #fca5a5; }
[hidden].rlogo-btn, .rlogo-file-thumb [hidden] { display: none !important; }

.rlogo-field { display: flex; flex-direction: column; gap: 8px; transition: opacity .2s; }
.rlogo-label { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted, #94a3b8); }
.rlogo-label-row { display: flex; align-items: baseline; justify-content: space-between; }
.rlogo-value { font-size: 13px; font-weight: 700; color: var(--accent-strong, #38bdf8); font-variant-numeric: tabular-nums; }
.rlogo-scale { display: flex; justify-content: space-between; font-size: 10px; color: rgba(148, 163, 184, 0.7); margin-top: -2px; }

.rlogo-pos { display: grid; grid-template-columns: repeat(2, 44px); grid-template-rows: repeat(2, 34px); gap: 6px; padding: 6px; width: max-content; border-radius: 10px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06); }
.rlogo-pos label { position: relative; cursor: pointer; }
.rlogo-pos input { position: absolute; opacity: 0; width: 0; height: 0; }
.rlogo-pos span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 7px; font-size: 16px; color: var(--muted, #94a3b8); background: rgba(255, 255, 255, 0.03); transition: background .15s, color .15s, box-shadow .15s; }
.rlogo-pos label:hover span { background: rgba(255, 255, 255, 0.08); color: var(--text, #e8edf5); }
.rlogo-pos input:checked + span { background: var(--accent, #0ea5e9); color: #fff; box-shadow: 0 0 0 1px var(--accent-strong, #38bdf8), 0 4px 12px rgba(14, 165, 233, 0.35); }
.rlogo-pos input:focus-visible + span { outline: 2px solid var(--accent-strong, #38bdf8); outline-offset: 1px; }

.rlogo-range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; margin: 6px 0; border-radius: 999px; cursor: pointer; background: linear-gradient(90deg, var(--accent, #0ea5e9) 0, var(--accent-strong, #38bdf8) var(--rl-fill, 50%), rgba(148, 163, 184, 0.2) var(--rl-fill, 50%)); outline: none; }
.rlogo-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--accent, #0ea5e9); box-shadow: 0 2px 8px rgba(14, 165, 233, 0.45); transition: transform .15s; }
.rlogo-range::-webkit-slider-thumb:hover, .rlogo-range:active::-webkit-slider-thumb { transform: scale(1.15); }
.rlogo-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--accent, #0ea5e9); }
.rlogo-range:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--accent-strong, #38bdf8); outline-offset: 2px; }

.rlogo-preview { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rlogo-preview-head { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted, #94a3b8); }
.rlogo-ratio { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: var(--text, #e8edf5); letter-spacing: 0; }
.rlogo-stage-wrap { display: flex; justify-content: center; align-items: center; padding: 10px; border-radius: 12px; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.06); min-height: 180px; }
.rlogo-stage { position: relative; width: min(100%, 420px); aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); }
.rlogo-stage-bg { position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 35%, rgba(56, 189, 248, 0.35), transparent 55%),
    radial-gradient(ellipse at 75% 70%, rgba(168, 85, 247, 0.35), transparent 55%),
    linear-gradient(160deg, #1e3a5f 0%, #312e81 50%, #134e4a 100%); }
/* Old rlogo-stage-bg/logoLiveImg — kept for backward compat, replaced by LogoEditor le-* classes */
.rlogo-stage-bg { display: none; }
#logoLiveImg { display: none; }
#logoLiveImg[hidden] { display: none; }
.rlogo-stage-empty { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; color: rgba(255, 255, 255, 0.55); }
.rlogo-stage-empty[hidden] { display: none; }
.rlogo-info { font-size: 11px; color: var(--muted, #94a3b8); line-height: 1.5; }

/* ═══ LOGO EDITOR — shared drag/resize component (10/05/2026) ═══ */
.le-stage { position: relative; width: 100%; height: 100%; overflow: hidden; cursor: default; touch-action: none; user-select: none; }
.le-bg { position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 35%, rgba(56,189,248,0.35), transparent 55%),
              radial-gradient(ellipse at 75% 70%, rgba(168,85,247,0.35), transparent 55%),
              linear-gradient(160deg, #1e3a5f 0%, #312e81 50%, #134e4a 100%); }
.le-bg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: linear-gradient(0deg, rgba(0,0,0,0.45), transparent); }
.le-bg.le-bg-custom { background-size: cover; background-position: center; }
.le-bg.le-bg-custom::after { display: none; }
.le-logo { position: absolute; display: block; height: auto; max-width: none;
  cursor: grab; touch-action: none; user-select: none;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
  transition: opacity .12s; z-index: 2; }
.le-logo:active, .le-logo.le-dragging { cursor: grabbing; }
.le-logo.le-dragging { transition: none; }
.le-handle { position: absolute; width: 12px; height: 12px; background: #fff;
  border: 2px solid var(--accent, #0ea5e9); border-radius: 50%;
  z-index: 10; transform: translate(-50%, -50%); opacity: 0;
  transition: opacity .15s; touch-action: none; pointer-events: auto; }
.le-handle-tl { cursor: nwse-resize; }
.le-handle-tr { cursor: nesw-resize; }
.le-handle-bl { cursor: nesw-resize; }
.le-handle-br { cursor: nwse-resize; }
.le-stage:hover .le-handle, .le-logo:hover ~ .le-handle,
.le-handle:hover, .le-logo.le-dragging ~ .le-handle { opacity: 1; }
.le-guide { position: absolute; z-index: 5; pointer-events: none; }
.le-guide-h { height: 1px; left: 0; right: 0; background: rgba(0,242,254,0.6); }
.le-guide-v { width: 1px; top: 0; bottom: 0; background: rgba(0,242,254,0.6); }
.le-empty { position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 12px; color: rgba(255,255,255,0.55); pointer-events: none; }
/* Preset corner buttons row */
.rlogo-pos-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.rlogo-corner-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04); color: #fff; font-size: 16px; cursor: pointer;
  transition: all .15s; display: inline-flex; align-items: center; justify-content: center; }
.rlogo-corner-btn:hover { border-color: var(--accent, #0ea5e9); background: rgba(14,165,233,0.12); }
.rlogo-corner-btn.active { border-color: var(--accent-strong, #38bdf8); background: var(--accent, #0ea5e9); color: #fff;
  box-shadow: 0 0 0 1px var(--accent-strong, #38bdf8), 0 4px 12px rgba(14,165,233,0.35); }
.rlogo-free-btn { width: auto; padding: 0 12px; font-size: 13px; }
.rlogo-coord { font-size: 11px; color: var(--muted, #94a3b8); font-variant-numeric: tabular-nums; margin-top: 4px; }

/* ═══ BRAND CARD — Gộp Logo + Text Overlay (07/2026) ═══ */
.brand-card { overflow: visible; }
.brand-card-header { display: flex; align-items: center; gap: 8px; }
.brand-card-sub-hint {
  margin-left: auto; font-size: 11px; font-weight: 500;
  color: var(--muted, #94a3b8); letter-spacing: .02em;
}
.brand-tabs {
  display: flex; gap: 4px; margin-top: 12px; padding: 4px;
  background: rgba(0,0,0,0.25); border-radius: 10px;
}
.brand-tab {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 9px 16px; border: none; border-radius: 8px;
  background: transparent; color: var(--muted, #94a3b8);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all .2s; white-space: nowrap; position: relative;
}
.brand-tab:hover { color: var(--text, #e8edf5); background: rgba(255,255,255,0.04); }
.brand-tab.active {
  background: rgba(14,165,233,0.15); color: var(--accent-strong, #38bdf8);
  box-shadow: 0 1px 6px rgba(14,165,233,0.18);
}
.brand-tab-icon { font-size: 15px; }
.brand-tab-status {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 8px; height: 8px; border-radius: 50%;
  margin-left: 2px;
}
.brand-tab-status.is-on {
  background: var(--success, #34d399);
  box-shadow: 0 0 6px rgba(52,211,153,0.5);
}
.brand-tab-panel { display: none; padding-top: 14px; }
.brand-tab-panel.active { display: block; }
.brand-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; margin-bottom: 10px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
}
.brand-toggle-label {
  font-size: 12.5px; font-weight: 500;
  color: var(--text, #e8edf5);
}

/* ══ Download progress panel ══ */
.dl-progress-panel[hidden]{ display:none !important; }
.dl-progress-panel{
  margin-top:12px;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid rgba(0,242,254,0.18);
  background: linear-gradient(180deg, rgba(8,16,32,0.96), rgba(6,12,28,0.98));
  box-shadow: 0 10px 36px rgba(0,0,0,0.45);
}
.dl-progress-head{
  display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
}
.dl-progress-title{ display:flex; align-items:center; gap:10px; font-size:12.5px; }
.dl-progress-icon{ color:#00f2fe; text-shadow: 0 0 10px rgba(0,242,254,0.9); }
.dl-progress-count{ font-weight:800; color:#e2f1ff; }
.dl-progress-pct{ font-variant-numeric: tabular-nums; color:#00f2fe; font-weight:700; }
.dl-progress-status{ font-size:11.5px; color: rgba(226,241,255,0.72); }
.dl-progress-track{
  margin-top:10px; height:10px; border-radius:999px;
  background: rgba(255,255,255,0.08); overflow:hidden;
  border:1px solid rgba(255,255,255,0.08);
}
.dl-progress-bar{
  height:100%; width:0%;
  background: linear-gradient(90deg, #00f2fe, #4facfe 60%, #a78bfa);
  transition: width 420ms cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 0 14px rgba(0,242,254,0.55);
}
.dl-progress-meta{ display:flex; justify-content:space-between; gap:12px; margin-top:8px; font-size:11px; color: rgba(226,241,255,0.62); }
.dl-progress-links{ margin-top:10px; display:flex; flex-wrap:wrap; gap:8px; }
.dl-progress-link{ font-size:11px; color:#7dd3fc; word-break:break-all; }
.dl-progress-actions{ display:flex; gap:8px; margin-top:12px; }
.dl-progress-btn{
  all:unset; padding:8px 12px; border-radius:12px; font-size:12px; font-weight:700; cursor:pointer;
  background: rgba(0,242,254,0.14); border:1px solid rgba(0,242,254,0.28); color:#e0f7ff;
}
.dl-progress-btn:hover{ background: rgba(0,242,254,0.22); }
.dl-progress-btn--ghost{ background: rgba(148,163,184,0.12); border-color: rgba(148,163,184,0.18); color:#cbd5e1; }
.dl-progress-panel--done .dl-progress-bar{ background: linear-gradient(90deg, #10b981, #22d3ee); }
.dl-progress-panel--error .dl-progress-bar{ background: linear-gradient(90deg, #ef4444, #f59e0b); }

/* ══ Batch Inspector — preview link trước khi tải ══ */
.dl-batch-inspector[hidden]{ display:none !important; }
.dl-batch-inspector{
  margin-top:12px;
  padding:14px 16px;
  border-radius:16px;
  border:1px dashed rgba(0,242,254,0.28);
  background: linear-gradient(180deg, rgba(0,242,254,0.04), rgba(8,16,32,0.92));
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  animation: dlInspectorIn 0.25s ease;
}
@keyframes dlInspectorIn{
  from{ opacity:0; transform:translateY(-6px); }
  to{ opacity:1; transform:translateY(0); }
}
.dl-batch-summary{
  display:flex; align-items:center; gap:10px;
  font-size:13px; font-weight:700; color:#e2f1ff;
  margin-bottom:10px;
}
.dl-batch-summary-icon{ font-size:18px; }
.dl-batch-summary-stats{
  font-size:12px; color: rgba(0,242,254,0.85); font-weight:600;
  margin-left:auto; white-space:nowrap;
}
.dl-batch-group-list{
  display:flex; flex-direction:column; gap:6px;
  max-height:140px; overflow-y:auto;
  scrollbar-width:thin;
  scrollbar-color: rgba(0,242,254,0.25) transparent;
}
.dl-batch-group-item{
  display:flex; align-items:center; gap:10px;
  padding:7px 12px;
  border-radius:10px;
  background: rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.06);
  font-size:12px; color: rgba(226,241,255,0.78);
  transition: background 0.15s, border-color 0.15s;
}
.dl-batch-group-item:hover{
  background: rgba(0,242,254,0.06);
  border-color: rgba(0,242,254,0.18);
}
.dl-batch-group-num{
  width:22px; height:22px; min-width:22px;
  border-radius:7px;
  background: linear-gradient(135deg, rgba(0,242,254,0.18), rgba(121,40,202,0.12));
  border:1px solid rgba(0,242,254,0.25);
  display:flex; align-items:center; justify-content:center;
  font-size:10px; font-weight:800; color:#00f2fe;
}
.dl-batch-group-desc{ flex:1; min-width:0; }
.dl-batch-group-tag{
  font-size:10px; font-weight:700; padding:2px 8px;
  border-radius:999px;
  background: rgba(121,40,202,0.18);
  border:1px solid rgba(121,40,202,0.32);
  color:#c4b5fd; white-space:nowrap;
}
.dl-batch-more{
  font-size:11.5px; color: rgba(226,241,255,0.5);
  font-weight:600; padding-top:4px; text-align:center;
}

/* ══ Progress panel state modifiers ══ */
.dl-progress-panel.is-running{
  border-color: rgba(0,242,254,0.35);
  box-shadow: 0 0 24px rgba(0,242,254,0.15), 0 10px 36px rgba(0,0,0,0.45);
}
.dl-progress-panel.is-running .dl-progress-icon{
  animation: dlProgressPulse 1.2s ease-in-out infinite;
}
@keyframes dlProgressPulse{
  0%,100%{ opacity:1; }
  50%{ opacity:0.4; }
}
.dl-progress-panel.is-success{
  border-color: rgba(16,185,129,0.4);
  box-shadow: 0 0 20px rgba(16,185,129,0.15), 0 10px 36px rgba(0,0,0,0.45);
}
.dl-progress-panel.is-success .dl-progress-icon{ color:#10b981; text-shadow: 0 0 10px rgba(16,185,129,0.9); }
.dl-progress-panel.is-success .dl-progress-bar{ background: linear-gradient(90deg, #10b981, #22d3ee); }
.dl-progress-panel.is-failed{
  border-color: rgba(239,68,68,0.35);
  box-shadow: 0 0 20px rgba(239,68,68,0.12), 0 10px 36px rgba(0,0,0,0.45);
}
.dl-progress-panel.is-failed .dl-progress-icon{ color:#ef4444; text-shadow: 0 0 10px rgba(239,68,68,0.9); }
.dl-progress-panel.is-failed .dl-progress-bar{ background: linear-gradient(90deg, #ef4444, #f59e0b); }
.dl-progress-panel.is-cancelled{
  border-color: rgba(245,158,11,0.3);
}
.dl-progress-panel.is-cancelled .dl-progress-icon{ color:#f59e0b; }
.dl-progress-panel.is-cancelled .dl-progress-bar{ background: linear-gradient(90deg, #f59e0b, #fbbf24); }

/* ── Cancel button danger variant ── */
.dl-progress-btn--danger{
  background: rgba(239,68,68,0.14);
  border-color: rgba(239,68,68,0.32);
  color:#fca5a5;
}
.dl-progress-btn--danger:hover{ background: rgba(239,68,68,0.25); }

/* DEGORO VIETNAMESE FONT ENFORCEMENT */
*, *::before, *::after, body, button, input, select, textarea, h1, h2, h3, h4, h5, h6 {
  font-family: 'Be Vietnam Pro', 'Segoe UI', 'Inter', Arial, sans-serif !important;
}
