/* ============================================================
   AI Video Command Center — cc-style.css
   Contract 0.1.0-draft · Anti/Antigravity build
   Ngôn ngữ: tiếng Việt
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --bg-0: #0a0c10;
  --bg-1: #10141c;
  --bg-2: #151a24;
  --bg-3: #1c2331;
  --bg-4: #242d3f;
  --bg-hover: rgba(59, 130, 246, 0.06);

  --border: #222a38;
  --border-light: #2e394d;

  --txt-1: #f1f5f9;
  --txt-2: #94a3b8;
  --txt-3: #64748b;
  --txt-link: #60a5fa;

  --teal:      #3b82f6;
  --teal-dark: #2563eb;
  --teal-glow: rgba(59, 130, 246, 0.12);
  --indigo:    #6366f1;
  --cyan:      #38bdf8;

  --status-queued:       #818cf8;
  --status-running:      #38bdf8;
  --status-cancelling:   #fb923c;
  --status-needs-review: #a78bfa;
  --status-needs-attn:   #f59e0b;
  --status-failed:       #ef4444;
  --status-cancelled:    #64748b;
  --status-ok:           #10b981;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 12px;

  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.28);
  --transition: 0.15s ease;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body {
  font-family: var(--font-sans);
  background-color: var(--bg-0);
  background-image: none;
  color: var(--txt-1);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--txt-link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; border: none; }
input, select, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

/* ── Mock / Real API Banner ──────────────────────────────── */
#mock-banner {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #2d1e02;
  border-bottom: 1px solid #f59e0b55;
  color: #fbbf24;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  letter-spacing: 0.02em;
}
#mock-banner.real {
  background: #04241e;
  border-bottom: 1px solid rgba(45, 212, 191, 0.35);
  color: var(--teal);
}
#mock-banner svg { flex-shrink: 0; }
#mock-banner.hidden { display: none; }
#mock-banner .banner-text { display: flex; align-items: center; gap: 8px; }
#mock-banner .btn-banner-action {
  font-size: 11px;
  background: rgba(255,255,255,0.08);
  border: 1px solid currentColor;
  color: inherit;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

/* ── App Shell ───────────────────────────────────────────── */
#app-header {
  background: rgba(13, 18, 27, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 22px;
  height: 54px;
  gap: 0;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}
#mock-banner + #app-header { top: 32px; }

.app-brand {
  font-size: 14px;
  font-weight: 800;
  color: var(--txt-1);
  letter-spacing: 0.02em;
  padding-right: 20px;
  margin-right: 6px;
  border-right: 1px solid var(--border);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.app-brand .brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--teal), var(--indigo));
  color: #070a0f;
  font-size: 13px;
  box-shadow: 0 0 14px rgba(45, 212, 191, 0.35);
}
.app-brand span {
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.app-nav {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 2px;
  flex: 1;
  overflow-x: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 100%;
  color: var(--txt-2);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.nav-item:hover { color: var(--txt-1); text-decoration: none; }
.nav-item.active { color: var(--txt-1); border-bottom-color: var(--teal); font-weight: 600; }
.nav-item svg { width: 14px; height: 14px; }

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.api-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--txt-3);
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.api-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--txt-3);
}
.api-badge.ok .dot { background: var(--status-ok); }
.api-badge.ok { color: var(--status-ok); }
.api-badge.err .dot { background: var(--status-failed); }
.api-badge.err { color: var(--status-failed); }

.api-badge.mode-mock {
  color: var(--status-needs-attn);
  border-color: rgba(245, 158, 11, 0.4);
  cursor: pointer;
  background: rgba(245, 158, 11, 0.08);
}
.api-badge.mode-mock .dot { background: var(--status-needs-attn); }

.api-badge.mode-real {
  color: var(--teal);
  border-color: rgba(45, 212, 191, 0.4);
  cursor: pointer;
  background: rgba(45, 212, 191, 0.08);
}
.api-badge.mode-real .dot { background: var(--teal); }
.api-badge.mode-mock:hover, .api-badge.mode-real:hover {
  filter: brightness(1.2);
  transform: translateY(-1px);
}

/* ── App Body Layout ─────────────────────────────────────── */
#app-body {
  display: flex;
  flex: 1;
  min-height: 0;
}

.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-1);
  border-right: 1px solid var(--border);
  padding: 16px 0;
  overflow-y: auto;
}

.sidebar-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--txt-3);
  padding: 8px 18px 4px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  font-size: 13px;
  color: var(--txt-2);
  cursor: pointer;
  border-radius: 0;
  border-left: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-decoration: none;
}
.sidebar-item:hover { background: var(--bg-hover); color: var(--txt-1); text-decoration: none; }
.sidebar-item.active { background: var(--teal-glow); color: var(--teal); border-left-color: var(--teal); font-weight: 600; }
.sidebar-item svg { width: 14px; height: 14px; flex-shrink: 0; }

.sidebar-badge {
  margin-left: auto;
  background: var(--bg-3);
  color: var(--txt-2);
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 6px;
  min-width: 18px;
  text-align: center;
}
.sidebar-badge.warn { background: #3d2a07; color: var(--status-needs-attn); }
.sidebar-badge.err  { background: #3a1010; color: var(--status-failed); }

/* ── Main Content ─────────────────────────────────────────── */
#main-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  min-width: 0;
}

/* ── Page Titles ──────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.page-title { font-size: 18px; font-weight: 700; color: var(--txt-1); }
.page-subtitle { font-size: 12px; color: var(--txt-3); margin-top: 2px; }
.page-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

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

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--bg-2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), transform var(--transition);
}
.card:hover {
  border-color: var(--border-light);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.card-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--txt-2); display: inline-flex; align-items: center; gap: 6px; }
.card-title svg { width: 14px; height: 14px; color: var(--teal); }
.card-value { font-size: 28px; font-weight: 700; color: var(--txt-1); line-height: 1; }
.card-meta { font-size: 11px; color: var(--txt-3); margin-top: 4px; }

/* ── Stat Cards ───────────────────────────────────────────── */
.stat-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition);
}
.stat-card:hover {
  border-color: var(--border-light);
}
.stat-card::after {
  display: none;
}
.stat-card .label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--txt-2); display: flex; align-items: center; justify-content: space-between; }
.stat-card .value { font-size: 24px; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.stat-card .sublabel { font-size: 11px; color: var(--txt-3); }
.stat-card.running  .value { color: var(--status-running); }
.stat-card.waiting  .value { color: var(--status-queued); }
.stat-card.error    .value { color: var(--status-failed); }
.stat-card.review   .value { color: var(--status-needs-review); }
.stat-card.attn     .value { color: var(--status-needs-attn); }
.stat-card.ok       .value { color: var(--status-ok); }

/* ── Status Chips ─────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }
.chip.queued        { background: #1a2140; color: var(--status-queued);       border-color: #2b3a6b55; }
.chip.queued::before { background: var(--status-queued); }
.chip.running       { background: #0d1f3c; color: var(--status-running);      border-color: #1e4a8855; }
.chip.running::before { background: var(--status-running); animation: pulse 1.5s infinite; }
.chip.cancelling    { background: #2d1a0d; color: var(--status-cancelling);   border-color: #5c320c55; }
.chip.cancelling::before { background: var(--status-cancelling); animation: pulse 1.5s infinite; }
.chip.needs_review  { background: #1e1438; color: var(--status-needs-review); border-color: #4a2d9055; }
.chip.needs_review::before { background: var(--status-needs-review); }
.chip.needs_attention { background: #2a1f07; color: var(--status-needs-attn); border-color: #5c4a0e55; }
.chip.needs_attention::before { background: var(--status-needs-attn); }
.chip.interrupted   { background: #2b1d07; color: #fbbf24;                   border-color: #f59e0b66; }
.chip.interrupted::before { background: #f59e0b; }
.chip.failed        { background: #2a0f0f; color: var(--status-failed);       border-color: #6b1c1c55; }
.chip.failed::before { background: var(--status-failed); }
.chip.cancelled     { background: #151a24; color: var(--status-cancelled);    border-color: #2b3347; }
.chip.cancelled::before { background: var(--status-cancelled); }
.chip.succeeded, .chip.completed { background: #0a1f18; color: var(--status-ok); border-color: #0f4a3055; }
.chip.succeeded::before, .chip.completed::before { background: var(--status-ok); }
.chip.online        { background: #0a1f18; color: var(--status-ok); border-color: #0f4a3055; }
.chip.online::before { background: var(--status-ok); }
.chip.offline       { background: #151a24; color: var(--status-cancelled); border-color: #2b3347; }
.chip.offline::before { background: var(--status-cancelled); }
.chip.disabled      { background: #1a0f0f; color: #e0605060; border-color: #2b1515; }
.chip.disabled::before { background: #e06050; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background var(--transition), color var(--transition), opacity var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn svg { width: 13px; height: 13px; }

.btn-primary { background: #2563eb; color: #ffffff; border-color: #3b82f6; }
.btn-primary:hover:not(:disabled) { background: #1d4ed8; border-color: #60a5fa; }

.btn-secondary { background: var(--bg-3); color: var(--txt-1); border-color: var(--border-light); }
.btn-secondary:hover:not(:disabled) { background: var(--bg-4); }

.btn-ghost { background: transparent; color: var(--txt-2); border-color: transparent; }
.btn-ghost:hover:not(:disabled) { background: var(--bg-3); color: var(--txt-1); }

.btn-danger { background: #3a1010; color: var(--status-failed); border-color: #6b1c1c; }
.btn-danger:hover:not(:disabled) { background: #521616; }

.btn-sm { padding: 4px 10px; font-size: 11px; }
.btn-lg { padding: 10px 20px; font-size: 13px; }

/* ── Tables ───────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
thead th {
  background: var(--bg-1);
  padding: 9px 14px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--txt-3);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  cursor: pointer;
}
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg-hover); }
tbody td {
  padding: 10px 14px;
  color: var(--txt-1);
  vertical-align: middle;
}
td.mono { font-family: var(--font-mono); font-size: 11px; color: var(--txt-2); }
td.muted { color: var(--txt-3); }
td.nowrap { white-space: nowrap; }

/* ── Empty / Error States ────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--txt-3);
}
.empty-state svg { width: 36px; height: 36px; opacity: 0.3; margin-bottom: 12px; }
.empty-state p { font-size: 13px; }
.empty-state small { font-size: 11px; }

.error-state {
  background: #2a0f0f;
  border: 1px solid #6b1c1c55;
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--status-failed);
  font-size: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.error-state svg { flex-shrink: 0; margin-top: 1px; }

.info-state {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--txt-3);
  font-size: 12px;
}

/* ── Forms ────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 12px; font-weight: 600; color: var(--txt-2); }
.form-label span.required { color: var(--status-failed); margin-left: 2px; }
.form-hint { font-size: 11px; color: var(--txt-3); }
.form-error { font-size: 11px; color: var(--status-failed); display: flex; align-items: center; gap: 4px; }

.form-input, .form-select, .form-textarea {
  background: var(--bg-1);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--txt-1);
  padding: 8px 12px;
  font-size: 13px;
  transition: border-color var(--transition);
  width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--teal);
  outline: none;
  box-shadow: 0 0 0 2px var(--teal-glow);
}
.form-input.invalid, .form-select.invalid, .form-textarea.invalid {
  border-color: var(--status-failed);
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-select { 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='%2399a8c0'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px; }

/* ── Separator ─────────────────────────────────────────────── */
.sep { height: 1px; background: var(--border); margin: 20px 0; }
.sep-v { width: 1px; background: var(--border); align-self: stretch; }

/* ── Progress / Pipeline ─────────────────────────────────── */
.pipeline {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pipeline-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  background: var(--bg-1);
  border: 1px solid var(--border);
}
.pipeline-step.active { border-color: var(--teal); background: var(--teal-glow); }
.pipeline-step-icon { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 10px; font-weight: 700; }
.pipeline-step-icon.queued     { background: #1a2140; color: var(--status-queued); }
.pipeline-step-icon.running    { background: #0d1f3c; color: var(--status-running); }
.pipeline-step-icon.succeeded  { background: #0a1f18; color: var(--status-ok); }
.pipeline-step-icon.failed     { background: #2a0f0f; color: var(--status-failed); }
.pipeline-step-icon.cancelled  { background: var(--bg-3); color: var(--txt-3); }
.pipeline-step-icon.needs_attention { background: #2a1f07; color: var(--status-needs-attn); }
.pipeline-step-name { flex: 1; font-weight: 500; }
.pipeline-step-module { font-family: var(--font-mono); font-size: 10px; color: var(--txt-3); }
.pipeline-connector { width: 1px; height: 10px; background: var(--border); margin-left: 21px; }

/* ── Log Viewer ───────────────────────────────────────────── */
.log-container {
  background: #0a0c10;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  max-height: 320px;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.log-row { display: flex; gap: 10px; }
.log-row .ts { color: var(--txt-3); flex-shrink: 0; }
.log-row .lv { flex-shrink: 0; width: 46px; font-weight: 700; text-transform: uppercase; }
.log-row.info  .lv { color: var(--status-running); }
.log-row.warning .lv { color: var(--status-needs-attn); }
.log-row.error .lv { color: var(--status-failed); }
.log-row .msg { color: var(--txt-1); word-break: break-all; }

.log-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}
.log-filter-btn {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--txt-2);
  padding: 3px 8px;
  font-size: 11px;
  cursor: pointer;
  transition: all var(--transition);
}
.log-filter-btn.active { background: var(--teal-glow); color: var(--teal); border-color: var(--teal); }

/* ── Video Player ─────────────────────────────────────────── */
.video-player-wrap {
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-player-wrap video { width: 100%; height: 100%; }
.video-unavailable {
  text-align: center;
  color: var(--txt-3);
  padding: 32px;
}
.video-unavailable svg { width: 40px; height: 40px; opacity: 0.3; margin-bottom: 10px; }
.video-unavailable p { font-size: 12px; }

/* ── Sections ─────────────────────────────────────────────── */
.section { margin-bottom: 24px; }
.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.section-title { font-size: 13px; font-weight: 700; color: var(--txt-1); }
.section-actions { margin-left: auto; display: flex; gap: 6px; }

/* ── Tags ─────────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--bg-3);
  color: var(--txt-2);
  border: 1px solid var(--border);
}

/* ── Modals ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(8px);
  transition: transform 0.2s;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 14px; font-weight: 700; }
.modal-close { background: none; color: var(--txt-3); font-size: 18px; padding: 2px 6px; border-radius: 4px; }
.modal-close:hover { background: var(--bg-3); color: var(--txt-1); }
.modal-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.modal-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }

/* ── Tooltip ─────────────────────────────────────────────── */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-4);
  color: var(--txt-1);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
  border: 1px solid var(--border-light);
  z-index: 300;
}
[data-tip]:hover::after { opacity: 1; }

/* ── Agent Cards ─────────────────────────────────────────── */
.agent-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.agent-card.online { border-color: #0f4a3044; }
.agent-card.offline { opacity: 0.7; }
.agent-header { display: flex; align-items: center; gap: 10px; }
.agent-name { font-size: 13px; font-weight: 600; flex: 1; }
.agent-meta { font-size: 11px; color: var(--txt-3); }
.agent-caps { display: flex; flex-wrap: wrap; gap: 4px; }

/* ── Module List ─────────────────────────────────────────── */
.module-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.module-row:last-child { border-bottom: none; }
.module-id { font-family: var(--font-mono); font-size: 11px; color: var(--teal); }
.module-name { color: var(--txt-1); font-weight: 500; }
.module-ver { font-family: var(--font-mono); font-size: 10px; color: var(--txt-3); }
.module-avail { }
.module-avail.ready { color: var(--status-ok); font-weight: 600; font-size: 11px; }
.module-avail.notready { color: var(--status-needs-attn); font-size: 11px; }

/* ── Detail Rows ─────────────────────────────────────────── */
.dl-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 6px 12px;
  font-size: 12px;
}
.dl-label { color: var(--txt-3); font-weight: 600; }
.dl-value { color: var(--txt-1); word-break: break-all; }
.dl-value.mono { font-family: var(--font-mono); font-size: 11px; }

/* ── Pagination ───────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--txt-3);
  margin-top: 14px;
}

/* ── Filter Bar ───────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.filter-chip {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--txt-2);
  padding: 3px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-chip:hover { background: var(--bg-4); color: var(--txt-1); }
.filter-chip.active { background: var(--teal-glow); color: var(--teal); border-color: var(--teal); }
.filter-search {
  background: var(--bg-1);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--txt-1);
  padding: 5px 12px;
  font-size: 12px;
  width: 200px;
}
.filter-search:focus { border-color: var(--teal); outline: none; }

/* ── Toast ────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--bg-4);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 12px;
  color: var(--txt-1);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slide-in 0.2s ease;
  pointer-events: all;
}
.toast.ok { border-left: 3px solid var(--status-ok); }
.toast.err { border-left: 3px solid var(--status-failed); }
.toast.warn { border-left: 3px solid var(--status-needs-attn); }
@keyframes slide-in { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── Views (SPA) ─────────────────────────────────────────── */
.view { display: none; }
.view.active { display: block; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .sidebar { display: none; }
  #main-content { padding: 16px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .grid-4 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .app-brand { display: none; }
  .dl-grid { grid-template-columns: 120px 1fr; }
  .modal { max-width: 100%; }
}

/* ── Utilities ────────────────────────────────────────────── */
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.gap-2 { gap: 8px; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-muted { color: var(--txt-3); }
.text-sm { font-size: 11px; }
.font-mono { font-family: var(--font-mono); font-size: 11px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Divider ─────────────────────────────────────────────── */
hr { border: none; border-top: 1px solid var(--border); margin: 16px 0; }

/* ── Inline Info Tag ─────────────────────────────────────── */
.not-impl {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  background: #2d1e02;
  color: #fbbf24;
  border: 1px solid #f59e0b33;
  font-weight: 600;
}

/* ── Architecture Pipeline Strip (Overview Hero) ─────────── */
.arch-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.arch-node {
  background: linear-gradient(145deg, rgba(20, 29, 43, 0.9), rgba(11, 16, 25, 0.9));
  border: 1px solid rgba(45, 212, 191, 0.22);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  position: relative;
  box-shadow: var(--shadow-card);
}
.arch-node-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.28);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}
.arch-node-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--txt-1);
  display: flex;
  align-items: center;
  gap: 6px;
}
.arch-node-desc {
  font-size: 11px;
  color: var(--txt-2);
  margin-top: 2px;
  line-height: 1.35;
}
.arch-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 99px;
  background: rgba(52, 211, 153, 0.14);
  color: var(--status-ok);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

/* ── Animated Progress Bar ───────────────────────────────── */
.progress-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 115px;
}
.progress-track {
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.14);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--teal-dark), var(--cyan));
  transition: width 0.35s ease;
}
.progress-fill.running {
  background: linear-gradient(90deg, var(--status-running), var(--teal), var(--status-running));
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite linear;
}
.progress-fill.failed { background: var(--status-failed); }
@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ── Verified Video File Picker Cards ────────────────────── */
.file-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.file-pick-card {
  background: rgba(13, 18, 27, 0.85);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition);
  color: var(--txt-1);
}
.file-pick-card:hover {
  border-color: var(--teal);
  background: rgba(45, 212, 191, 0.08);
}
.file-pick-card.selected {
  border-color: var(--teal);
  background: rgba(45, 212, 191, 0.14);
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.35);
}
.file-pick-icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(45, 212, 191, 0.12);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.file-pick-icon svg { width: 15px; height: 15px; }

/* ── Resolution Quick Preset Cards ───────────────────────── */
.res-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.res-card {
  background: rgba(13, 18, 27, 0.85);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
  color: var(--txt-1);
}
.res-card:hover {
  border-color: var(--teal);
  background: rgba(45, 212, 191, 0.08);
}
.res-card.active {
  border-color: var(--teal);
  background: rgba(45, 212, 191, 0.15);
  box-shadow: 0 0 14px rgba(45, 212, 191, 0.18);
}
.res-card-title { font-size: 12px; font-weight: 700; color: var(--txt-1); }
.res-card-sub { font-size: 10px; color: var(--txt-2); font-family: var(--font-mono); margin-top: 2px; }

/* ── Metric Tiles & JSON Code Box ────────────────────────── */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.metric-tile {
  background: rgba(11, 15, 23, 0.8);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
}
.metric-tile .m-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--txt-3);
  font-weight: 600;
}
.metric-tile .m-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--txt-1);
  font-family: var(--font-mono);
  margin-top: 2px;
}
.json-code-box {
  background: #06090e;
  border: 1px solid rgba(45, 212, 191, 0.22);
  border-radius: 8px;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  color: #a5f3fc;
  overflow-x: auto;
  max-height: 220px;
}
.preset-option.selected-card {
  border-color: var(--teal) !important;
  background: rgba(45, 212, 191, 0.10) !important;
  box-shadow: 0 0 18px rgba(45, 212, 191, 0.12);
}

/* ── Studio Multi-Config Sections & 9:16 Live Preview ────── */
.cfg-section-box {
  background: rgba(11, 15, 23, 0.72);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 14px;
  margin-bottom: 12px;
}
.cfg-section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 7px;
  background: rgba(20, 27, 39, 0.65);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}
.toggle-row input[type="checkbox"] {
  accent-color: var(--teal);
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.studio-preview-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: radial-gradient(circle at center, rgba(45, 212, 191, 0.09), rgba(7, 10, 15, 0.95));
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 14px;
}
.studio-phone {
  width: 210px;
  height: 368px;
  border-radius: 20px;
  border: 3px solid #2b384e;
  background: #05070b;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.studio-phone-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #1b2838 0%, #0f172a 50%, #1e1b4b 100%);
  transition: all 0.25s ease;
}
.studio-phone-fg {
  position: absolute;
  left: 0;
  right: 0;
  top: 22%;
  height: 56%;
  background: linear-gradient(135deg, #0d9488 0%, #2563eb 55%, #4f46e5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.88);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 20px rgba(0,0,0,0.45);
  transition: all 0.25s ease;
}
.studio-phone-banner {
  position: relative;
  z-index: 4;
  margin: 14px 10px 0;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid #facc15;
  color: #fde047;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.studio-phone-blurzone {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 42px;
  z-index: 3;
  border-radius: 6px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(15, 23, 42, 0.55);
  border: 1px dashed rgba(45, 212, 191, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #99f6e4;
  font-family: var(--font-mono);
}
.studio-phone-sub {
  position: relative;
  z-index: 5;
  margin: auto 8px 18px;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  overflow: hidden;
  white-space: nowrap;
}
.studio-phone-sub .marquee-inner {
  display: inline-block;
  animation: studio-marquee 6s linear infinite;
}
@keyframes studio-marquee {
  0% { transform: translateX(35%); }
  100% { transform: translateX(-45%); }
}
.studio-phone-badges {
  position: absolute;
  top: 46px;
  left: 8px;
  right: 8px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.studio-mini-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 99px;
  background: rgba(7, 10, 15, 0.78);
  border: 1px solid rgba(45, 212, 191, 0.45);
  color: var(--teal);
}

@media (max-width: 960px) {
  .arch-strip { grid-template-columns: repeat(2, 1fr); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .arch-strip { grid-template-columns: 1fr; }
  .res-grid { grid-template-columns: 1fr; }
}

/* ── 8-Channel Quick Selector Strip ──────────────────────── */
.channel-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.channel-pill-card {
  background: rgba(13, 18, 27, 0.85);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 11px;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.channel-pill-card:hover {
  border-color: var(--teal);
  background: rgba(45, 212, 191, 0.08);
}
.channel-pill-card.active {
  border-color: var(--teal);
  background: linear-gradient(145deg, rgba(45, 212, 191, 0.18), rgba(14, 165, 233, 0.08));
  box-shadow: 0 0 16px rgba(45, 212, 191, 0.18);
}
.channel-pill-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--txt-1);
}
.channel-pill-sub {
  font-size: 10px;
  color: var(--txt-3);
  font-family: var(--font-mono);
}

/* ── Upload Dropzone ─────────────────────────────────────── */
.upload-dropzone {
  border: 1.5px dashed rgba(45, 212, 191, 0.45);
  border-radius: 10px;
  background: rgba(13, 20, 31, 0.65);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 8px;
}
.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--teal);
  background: rgba(45, 212, 191, 0.12);
}

/* ── Interactive Real Video Frame & Draggable Custom Blur ── */
.studio-stage-outer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: radial-gradient(circle at center, rgba(45, 212, 191, 0.10), rgba(7, 10, 15, 0.96));
  border: 1px solid var(--border);
  border-radius: 12px;
}
.studio-phone-interactive {
  width: 270px;
  height: 480px;
  border-radius: 20px;
  border: 3px solid #2b384e;
  background: #04060a;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.72);
  user-select: none;
  touch-action: none;
}
.real-frame-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #05070b;
  z-index: 1;
  pointer-events: none;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.real-frame-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, #0f172a 0%, #1e1b4b 50%, #0f766e 100%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  padding: 16px;
  pointer-events: none;
}
/* Interactive Draggable & Resizable Blur Region */
.custom-blur-rect {
  position: absolute;
  z-index: 6;
  border: 2px solid #2dd4bf;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.65), 0 0 18px rgba(45, 212, 191, 0.45);
  border-radius: 6px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(15, 23, 42, 0.28);
  cursor: move;
  display: flex;
  align-items: center;
  justify-content: center;
}
.custom-blur-rect.feather_dark {
  background: rgba(5, 8, 15, 0.68);
}
.custom-blur-rect.ai_inpaint {
  border-color: #38bdf8;
  background: rgba(14, 165, 233, 0.22);
}
.custom-blur-label {
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: rgba(7, 10, 16, 0.82);
  border: 1px solid rgba(45, 212, 191, 0.55);
  border-radius: 4px;
  padding: 2px 6px;
  white-space: nowrap;
  text-shadow: 0 1px 2px #000;
}
.blur-handle {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #2dd4bf;
  border: 2px solid #04060a;
  border-radius: 3px;
  z-index: 8;
}
.blur-handle.nw { top: -6px; left: -6px; cursor: nwse-resize; }
.blur-handle.ne { top: -6px; right: -6px; cursor: nesw-resize; }
.blur-handle.sw { bottom: -6px; left: -6px; cursor: nesw-resize; }
.blur-handle.se { bottom: -6px; right: -6px; cursor: nwse-resize; }
.blur-handle.n  { top: -6px; left: calc(50% - 6px); cursor: ns-resize; }
.blur-handle.s  { bottom: -6px; left: calc(50% - 6px); cursor: ns-resize; }
.blur-handle.w  { left: -6px; top: calc(50% - 6px); cursor: ew-resize; }
.blur-handle.e  { right: -6px; top: calc(50% - 6px); cursor: ew-resize; }

.frame-scrubber-bar {
  width: 100%;
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(11, 15, 23, 0.88);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
}
.blur-preset-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.blur-preset-btn {
  background: rgba(18, 25, 38, 0.9);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  color: var(--txt-2);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  cursor: pointer;
  transition: all var(--transition);
}
.blur-preset-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(45, 212, 191, 0.12);
}

/* ── 8-Channel Matrix Cards ──────────────────────────────── */
.channel-matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.channel-matrix-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-card);
}
@media (max-width: 820px) {
  .channel-strip { grid-template-columns: repeat(2, 1fr); }
  .channel-matrix-grid { grid-template-columns: 1fr; }
}

/* ── BytePlus Lumina / Seedance AI Canvas Workspace ──────── */
.lumina-canvas-shell {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(45, 212, 191, 0.24);
  background-color: #060911;
  background-image:
    radial-gradient(circle at 50% 20%, rgba(45, 212, 191, 0.09), transparent 55%),
    radial-gradient(rgba(148, 163, 184, 0.16) 1px, transparent 1px);
  background-size: 100% 100%, 20px 20px;
  padding: 14px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.65);
}

.lumina-top-dock {
  background: rgba(12, 17, 28, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

/* Visual Node Flow Strip (Lumina Canvas Nodes) */
.lumina-node-chain {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.lumina-node {
  background: rgba(14, 21, 34, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
.lumina-node:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
}
.lumina-node.active {
  border-color: var(--teal);
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.18), rgba(14, 165, 233, 0.10));
  box-shadow: 0 0 18px rgba(45, 212, 191, 0.22);
}
.lumina-node-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
}
.lumina-node-wire {
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, rgba(45, 212, 191, 0.65), rgba(56, 189, 248, 0.65));
  position: relative;
}

/* 3-Column Canvas Layout */
.lumina-workspace-grid {
  display: grid;
  grid-template-columns: 300px minmax(310px, 1fr) 380px;
  gap: 14px;
  align-items: start;
}
.lumina-panel {
  background: rgba(12, 17, 28, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  padding: 13px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.lumina-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}
.lumina-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: #f8fafc;
}
.lumina-panel-title svg,
.form-label svg,
.cfg-section-title svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--teal);
}
.lumina-panel-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Inspector Pill Tabs */
.lumina-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: rgba(6, 9, 15, 0.85);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 12px;
}
.lumina-tab-btn {
  background: transparent;
  border: none;
  border-radius: 7px;
  color: var(--txt-3);
  font-size: 11px;
  font-weight: 700;
  padding: 7px 4px;
  cursor: pointer;
  transition: all 0.16s ease;
  text-align: center;
}
.lumina-tab-btn:hover {
  color: var(--txt-1);
}
.lumina-tab-btn.active {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.22), rgba(14, 165, 233, 0.16));
  color: var(--teal);
  border: 1px solid rgba(45, 212, 191, 0.38);
  box-shadow: 0 2px 10px rgba(45, 212, 191, 0.15);
}
.lumina-tab-pane {
  display: none;
}
.lumina-tab-pane.active {
  display: block;
}

/* Seedance Floating Bottom Dock */
.seedance-bottom-dock {
  margin-top: 14px;
  background: linear-gradient(135deg, rgba(13, 20, 33, 0.95), rgba(8, 13, 22, 0.95));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(45, 212, 191, 0.35);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.65);
}
.seedance-dock-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.seedance-pill {
  background: rgba(20, 29, 44, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 99px;
  padding: 5px 11px;
  font-size: 11px;
  color: var(--txt-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.seedance-pill b {
  color: var(--teal);
  font-family: var(--font-mono);
}

@media (max-width: 1180px) {
  .lumina-workspace-grid {
    grid-template-columns: 1fr;
  }
}

/* ── BytePlus Lumina VIP Sidebar, Hero Banner & Photo Cards ── */
.lumina-logo-orb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: conic-gradient(from 140deg, #ffffff, #2dd4bf, #0ea5e9, #111827, #ffffff);
  box-shadow: 0 0 14px rgba(45, 212, 191, 0.55);
  display: inline-block;
}

.lumina-sidebar {
  background: #050608 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.07) !important;
}

.lumina-feature-card {
  margin: 8px 6px 14px;
  padding: 12px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 85% 20%, rgba(45, 212, 191, 0.42), transparent 60%),
    radial-gradient(circle at 15% 85%, rgba(14, 165, 233, 0.35), transparent 60%),
    linear-gradient(145deg, #0b1926 0%, #071018 100%);
  border: 1px solid rgba(45, 212, 191, 0.32);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}
.lumina-feature-head {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}
.lumina-feature-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.16s ease;
}
.lumina-feature-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lumina-badge-hot {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 99px;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.lumina-badge-new {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

/* Top Canvas Header + White Pill Create Button + Underline Tabs */
.lumina-canvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}
.lumina-canvas-big-title {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0;
}
.lumina-btn-white-pill {
  background: #f8fafc;
  color: #090d16;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.18);
  transition: all 0.18s ease;
}
.lumina-btn-white-pill:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(45, 212, 191, 0.35);
}

.lumina-subnav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 18px;
  gap: 12px;
  flex-wrap: wrap;
}
.lumina-underline-tabs {
  display: flex;
  align-items: center;
  gap: 24px;
}
.lumina-utab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 2px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.18s ease;
}
.lumina-utab:hover {
  color: #ffffff;
}
.lumina-utab.active {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* ── Hero Banner ("Turn your ideas into videos" style) ───── */
.lumina-hero-banner {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px 28px 18px;
  margin-bottom: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
  background-color: #070b14;
}
.lumina-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: background-image 0.6s ease, transform 8s ease;
  transform: scale(1.04);
  filter: brightness(0.68) saturate(1.18);
  z-index: 0;
}
.lumina-hero-banner:hover .lumina-hero-bg {
  transform: scale(1.09);
}
.lumina-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(8, 12, 22, 0.25), rgba(5, 7, 12, 0.88) 85%),
    linear-gradient(180deg, rgba(5, 7, 12, 0.2) 0%, rgba(5, 7, 12, 0.92) 100%);
  z-index: 1;
}
.lumina-hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}
.lumina-hero-title {
  font-size: 34px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.7);
}

/* Frosted Glass Prompt & Upload Box */
.lumina-glass-box {
  background: rgba(38, 42, 52, 0.56);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 16px 18px 14px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.lumina-glass-box:focus-within {
  border-color: rgba(45, 212, 191, 0.6);
  box-shadow: 0 18px 50px rgba(45, 212, 191, 0.18);
}
.lumina-glass-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}
.lumina-img-tile {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px dashed rgba(255, 255, 255, 0.32);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #e2e8f0;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transform: rotate(-6deg);
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.lumina-img-tile:hover {
  transform: rotate(0deg) scale(1.06);
  background: rgba(45, 212, 191, 0.22);
  border-color: var(--teal);
  color: #ffffff;
}
.lumina-glass-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.45;
  resize: none;
  outline: none;
  min-height: 48px;
  font-family: var(--font-sans);
}
.lumina-glass-input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}
.lumina-glass-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.lumina-glass-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lumina-glass-pill {
  background: rgba(15, 20, 30, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f1f5f9;
  border-radius: 99px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}
.lumina-glass-pill:hover {
  background: rgba(45, 212, 191, 0.18);
  border-color: var(--teal);
}
.lumina-spark-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  color: #090d16;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
  transition: all 0.18s ease;
}
.lumina-spark-btn:hover {
  transform: scale(1.08);
  background: var(--teal);
  box-shadow: 0 0 24px rgba(45, 212, 191, 0.75);
}

/* Try An Idea Row */
.lumina-try-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.lumina-try-label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}
.lumina-idea-pill {
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f8fafc;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.lumina-idea-pill:hover {
  background: rgba(45, 212, 191, 0.25);
  border-color: var(--teal);
  transform: translateY(-1px);
}

/* Hero Bottom Category Bar */
.lumina-hero-tabs {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 24px;
  background: rgba(10, 14, 22, 0.55);
  backdrop-filter: blur(14px);
  padding: 6px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.lumina-hero-tab {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lumina-hero-tab:hover {
  color: #ffffff;
}
.lumina-hero-tab.active {
  background: rgba(30, 41, 59, 0.9);
  color: #2dd4bf;
  border: 1px solid rgba(45, 212, 191, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

/* Filter Pills + Search Row */
.lumina-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.lumina-filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lumina-fpill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 15px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.lumina-fpill:hover,
.lumina-fpill.active {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.32);
}
.lumina-search-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  padding: 6px 14px;
  color: #ffffff;
  font-size: 12px;
  min-width: 230px;
  outline: none;
}
.lumina-search-box:focus {
  border-color: var(--teal);
}

/* 16:9 Visual Template Grid (giống hệt ảnh 1: ai-canvas Template) */
.lumina-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}
.lumina-tpl-card {
  cursor: pointer;
  group: 1;
  transition: transform 0.2s ease;
}
.lumina-tpl-card:hover {
  transform: translateY(-4px);
}
.lumina-tpl-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
}
.lumina-tpl-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.3s ease;
}
.lumina-tpl-card:hover .lumina-tpl-thumb img {
  transform: scale(1.08);
  filter: brightness(1.08);
}
.lumina-tpl-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, transparent 45%, rgba(0,0,0,0.78) 100%);
  pointer-events: none;
}
.lumina-tpl-badge-left {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
  color: #f8fafc;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.lumina-tpl-badge-right {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  background: rgba(45, 212, 191, 0.22);
  backdrop-filter: blur(8px);
  color: #2dd4bf;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  border: 1px solid rgba(45, 212, 191, 0.4);
}
.lumina-tpl-bottom-overlay {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}
.lumina-tpl-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #e2e8f0;
  margin-top: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lumina-tpl-sub {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 9:16 & 16:9 Asymmetric Bento Masonry Grid ("Made with AI Agents" y hệt ảnh 3) */
.lumina-bento-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: 175px;
  grid-auto-flow: dense;
  gap: 14px;
  margin-bottom: 60px;
}
.lumina-bento-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}
.lumina-bento-card.tall {
  grid-row: span 2;
}
.lumina-bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 212, 191, 0.65);
  box-shadow: 0 18px 42px rgba(45, 212, 191, 0.22);
}
.lumina-bento-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease, filter 0.3s ease;
}
.lumina-bento-card:hover img {
  transform: scale(1.06);
  filter: brightness(1.07);
}
.lumina-bento-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.28) 0%, transparent 38%, rgba(0,0,0,0.88) 100%);
  pointer-events: none;
}
.lumina-bento-ai-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(15, 18, 25, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.lumina-bento-cat-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(20, 24, 34, 0.68);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #f8fafc;
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.lumina-bento-info {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 2;
}
.lumina-bento-title {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lumina-bento-sub {
  font-size: 11px;
  color: #2dd4bf;
  font-weight: 600;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Floating Frosted-Glass Bottom Bar ("Describe the scene you want to generate" y hệt ảnh 3) */
.lumina-floating-prompt-bar {
  position: sticky;
  bottom: 16px;
  z-index: 40;
  max-width: 680px;
  margin: 0 auto;
  background: rgba(34, 38, 48, 0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}
.lumina-floating-plus-tile {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: rotate(-6deg);
  transition: all 0.18s ease;
  flex-shrink: 0;
}
.lumina-floating-plus-tile:hover {
  transform: rotate(0deg) scale(1.06);
  background: rgba(45, 212, 191, 0.25);
  border-color: var(--teal);
}
.lumina-floating-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 13px;
  outline: none;
}
.lumina-floating-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 1280px) {
  .lumina-bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 780px) {
  .lumina-bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .lumina-hero-tabs {
    grid-template-columns: repeat(2, 1fr);
    border-radius: 16px;
  }
  .lumina-hero-title {
    font-size: 24px;
  }
}

/* ── Clean Enterprise Layout & Sub-Tab System (2026 Overhaul) ── */
.lumina-logo-orb {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: #2563eb;
  box-shadow: none;
  display: inline-block;
}
.lumina-sidebar {
  background: #0d1118 !important;
  border-right: 1px solid var(--border) !important;
  width: 212px;
  padding: 12px 0;
}
.sidebar-item {
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--txt-2);
  gap: 10px;
}
.sidebar-item.active {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border-left-color: #3b82f6;
  font-weight: 600;
}
#main-content {
  padding: 20px 24px;
  max-width: 1680px;
}
.page-header {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.page-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.page-subtitle {
  font-size: 12px;
  color: var(--txt-2);
  margin-top: 3px;
}
.card {
  background: var(--bg-2);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  box-shadow: none;
}
.card:hover {
  border-color: var(--border);
}
thead th {
  background: #10141c;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--txt-2);
}
tbody td {
  padding: 10px 14px;
  font-size: 12.5px;
}

/* Sub-Tab Bar for Un-Cramming Main Workspace */
.cc-subtab-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #10141c;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 5px;
  margin-bottom: 16px;
  overflow-x: auto;
}
.cc-subtab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border-radius: 7px;
  background: transparent;
  color: var(--txt-2);
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.14s ease;
}
.cc-subtab-btn:hover {
  color: var(--txt-1);
  background: rgba(255, 255, 255, 0.04);
}
.cc-subtab-btn.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #3b82f6;
}
.cc-subtab-count {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font-family: var(--font-mono);
}
.cc-subtab-btn.active .cc-subtab-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}
.cc-subtab-pane {
  display: none;
}
.cc-subtab-pane.active {
  display: block;
}

/* Clean Section & Toolbar Primitives */
.cc-toolbar-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 16px;
}
.cc-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.cc-kpi-box {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cc-kpi-box .kpi-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--txt-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cc-kpi-box .kpi-val {
  font-size: 20px;
  font-weight: 700;
  color: var(--txt-1);
  font-family: var(--font-mono);
}
.cc-kpi-box .kpi-sub {
  font-size: 11px;
  color: var(--txt-3);
}
