/* TuTaVid Studio 3D Mobile PWA - Hallmark UI Standards */
:root {
  --bg-main: #070a12;
  --bg-surface: #0e1526;
  --bg-card: #151e34;
  --bg-elevated: #1e2b48;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(56, 189, 248, 0.4);
  --border-emerald: rgba(16, 185, 129, 0.4);
  --border-purple: rgba(168, 85, 247, 0.4);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-cyan: #38bdf8;
  --accent-blue: #0284c7;
  --accent-emerald: #10b981;
  --accent-purple: #a855f7;
  --accent-rose: #f43f5e;
  --accent-amber: #f59e0b;

  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  
  /* 3D Depth Shadows */
  --shadow-card-3d: 0 14px 38px -6px rgba(0, 0, 0, 0.75), 0 2px 10px rgba(56, 189, 248, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  --shadow-neon: 0 0 25px rgba(56, 189, 248, 0.35);
  --shadow-btn-3d: 0 6px 20px -2px rgba(2, 132, 199, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(at 0% 0%, rgba(56, 189, 248, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.06) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  touch-action: manipulation;
}

/* App Shell Container */
.app-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 14px 105px 14px; /* Space for fixed 3D bottom dock */
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ==================================================== */
/* TOP 3D APP HEADER                                   */
/* ==================================================== */
.app-header-3d {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-3d);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-3d {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 50%, #06b6d4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: var(--shadow-neon);
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.logo-glow {
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.4) 0%, transparent 70%);
  z-index: -1;
  animation: pulse-glow 3s infinite alternate;
}

@keyframes pulse-glow {
  0% { opacity: 0.3; transform: scale(0.95); }
  100% { opacity: 0.9; transform: scale(1.05); }
}

.brand-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-badge-3d {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(168, 85, 247, 0.25));
  color: var(--accent-cyan);
  border: 1px solid var(--border-accent);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.brand-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

/* 3D Capsules */
.system-capsules-3d {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.capsule-3d {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.capsule-3d.live {
  border-color: var(--border-emerald);
  color: var(--accent-emerald);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse 2s infinite;
}

.gpu-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  display: inline-block;
}

/* ==================================================== */
/* LIVE 3D PROGRESS & SPEED STREAMING BANNER            */
/* ==================================================== */
.live-progress-card-3d {
  background: linear-gradient(135deg, rgba(14, 21, 38, 0.95), rgba(21, 30, 52, 0.95));
  border: 1.5px solid var(--accent-cyan);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: slideDown 0.3s ease-out;
}

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

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

.progress-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #fff;
}

.pulse-ring {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 14px var(--accent-cyan);
  animation: pulse 1.2s infinite;
}

.progress-digital-percent {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-cyan);
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
  font-variant-numeric: tabular-nums;
}

.progress-bar-3d-track {
  width: 100%;
  height: 16px;
  background: rgba(10, 15, 26, 0.9);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8);
  position: relative;
}

.progress-bar-3d-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7 0%, #38bdf8 50%, #10b981 100%);
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.7);
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
}

.progress-shine {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: scanline 2s linear infinite;
}

@keyframes scanline {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-status-text {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}

.progress-telemetry-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.telemetry-pill {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

/* ==================================================== */
/* 3D CARDS & ENHANCERS                                */
/* ==================================================== */
.card-3d {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card-3d);
}

.card-header-3d {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.card-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  font-style: normal;
}

.badge-count-3d {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--border-accent);
}

/* SMART ENHANCER BAR */
.smart-enhancer-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: rgba(30, 43, 72, 0.4);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-purple);
}

.btn-enhancer-magic {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-enhancer-magic:hover, .btn-enhancer-magic:active {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.6);
}

.viral-presets-dropdown-wrap {
  flex: 1;
  min-width: 220px;
}

.studio-select-sm {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
}

.studio-select-sm:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

/* 3D Style Chips */
.style-chips-wrap-3d {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.style-chips-wrap-3d::-webkit-scrollbar {
  display: none;
}

.chip-label-3d {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-cyan);
  white-space: nowrap;
  flex-shrink: 0;
}

.style-chip-3d {
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.style-chip-3d:hover, .style-chip-3d:active {
  border-color: var(--border-accent);
  color: #fff;
  transform: translateY(-1px);
}

.style-chip-3d.active {
  background: rgba(56, 189, 248, 0.2);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.3);
}

/* 3D Form Controls */
.form-group-3d {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.form-label-3d {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.studio-input-3d, .studio-select-3d, .studio-textarea-3d {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 13px 15px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  transition: var(--transition);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.studio-input-3d:focus, .studio-select-3d:focus, .studio-textarea-3d:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.studio-textarea-3d {
  resize: vertical;
  min-height: 95px;
  line-height: 1.55;
}

.params-grid-3d {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

/* 3D Action Buttons */
.action-footer-row-3d {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-primary-3d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: var(--shadow-btn-3d);
  transition: var(--transition);
  min-height: 50px;
  width: 100%;
}

.btn-primary-3d:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.65);
}

.btn-primary-3d:active {
  transform: translateY(1px);
}

.btn-secondary-3d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  min-height: 38px;
}

.btn-secondary-3d:hover, .btn-secondary-3d:active {
  border-color: var(--border-accent);
  color: #fff;
  transform: translateY(-1px);
}

.checkbox-label-3d {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
}

/* 3D Dropzone */
.dropzone-box-3d {
  border: 2px dashed var(--border-accent);
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.04);
  padding: 26px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 14px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
}

.dropzone-box-3d:hover, .dropzone-box-3d:active, .dropzone-box-3d.dragover {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--accent-cyan);
  transform: scale(1.01);
}

.dropzone-icon-3d {
  font-size: 36px;
  margin-bottom: 6px;
}

.dropzone-text-3d strong {
  display: block;
  font-size: 14px;
  color: #fff;
  margin-bottom: 4px;
}

.dropzone-text-3d small {
  font-size: 11px;
  color: var(--text-muted);
}

.image-gallery-grid-3d {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.pair-banner-3d {
  padding: 12px 16px;
  background: var(--bg-elevated);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ==================================================== */
/* REALTIME VIDEO RESULTS GRID & INLINE PLAYER          */
/* ==================================================== */
.video-results-grid-3d {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.video-card-3d {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card-3d);
  transition: var(--transition);
  animation: fadeIn 0.3s ease-out;
}

.video-card-3d:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.video-card-3d.status-rendering {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
}

.video-player-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-player-inline {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.video-card-body-3d {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.video-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-badge-ok {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
  border: 1px solid var(--border-emerald);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.status-badge-loading {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.2);
  color: var(--accent-cyan);
  border: 1px solid var(--border-accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.status-badge-error {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.2);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.4);
}

.video-prompt-text-3d {
  font-size: 13px;
  color: #fff;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}

.video-tags-row-3d {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag-pill-3d {
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--bg-elevated);
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.video-actions-row-3d {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.btn-download-mp4 {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #0284c7, #10b981);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  transition: var(--transition);
}

.btn-download-mp4:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.45);
}

/* Hub 4 Mắt Xích 3D */
.chain-cards-container-3d {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chain-card-3d {
  padding: 15px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.chain-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.chain-badge-3d {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
}

.chain-badge-3d.ok {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid var(--border-emerald);
}

.chain-desc {
  color: var(--text-secondary);
  font-size: 12px;
}

.tunnel-input-row-3d {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.tunnel-status-text {
  font-size: 11px;
  margin-top: 6px;
  color: var(--text-muted);
}

/* Console Logs 3D */
.console-box-3d {
  background: #04070d;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #38bdf8;
  height: 320px;
  overflow-y: auto;
  line-height: 1.65;
  box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.7);
}

.log-entry {
  display: flex;
  gap: 8px;
}

.log-time {
  color: var(--text-muted);
}

.log-msg.info { color: #38bdf8; }
.log-msg.success { color: #34d399; }
.log-msg.warn { color: #fbbf24; }
.log-msg.error { color: #f87171; }

.empty-state-box-3d {
  text-align: center;
  padding: 40px 16px;
  color: var(--text-secondary);
}

.empty-state-icon-3d {
  font-size: 40px;
  margin-bottom: 10px;
}

.app-footer {
  text-align: center;
  padding: 18px 8px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ==================================================== */
/* NATIVE 3D MOBILE BOTTOM BAR (DOCK)                   */
/* ==================================================== */
.mobile-bottom-bar-3d {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 66px;
  background: rgba(14, 21, 38, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px)) 6px;
  z-index: 1000;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.65);
}

.mobile-tab-btn-3d {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 100%;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px 0;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mobile-tab-btn-3d:active {
  transform: scale(0.92);
}

.mobile-tab-btn-3d.active {
  color: var(--accent-cyan);
}

.mobile-tab-btn-3d.active .mobile-tab-icon {
  filter: drop-shadow(0 0 8px var(--accent-cyan));
  transform: translateY(-2px);
}

.mobile-tab-icon {
  font-size: 20px;
  line-height: 1;
  transition: var(--transition);
}

.mobile-tab-label {
  font-size: 10px;
  font-weight: 700;
}

.icon-with-badge {
  position: relative;
  display: inline-flex;
}

.mobile-badge-3d {
  position: absolute;
  top: -4px;
  right: -8px;
  background: var(--accent-rose);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 999px;
  min-width: 14px;
  text-align: center;
  box-shadow: 0 0 8px var(--accent-rose);
}

/* Responsive */
@media (min-width: 851px) {
  .mobile-bottom-bar-3d {
    display: none;
  }
  .app-container {
    padding-bottom: 24px;
  }
  .nav-dock-3d {
    display: flex;
    gap: 8px;
    padding: 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow-x: auto;
  }
  .nav-tab-btn-3d {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
  }
  .nav-tab-btn-3d.active {
    background: var(--bg-card);
    color: var(--accent-cyan);
    border-color: var(--border-accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  }
}

@media (max-width: 850px) {
  .desktop-only {
    display: none !important;
  }
  .app-header-3d {
    flex-direction: column;
    align-items: flex-start;
  }
  .system-capsules-3d {
    width: 100%;
    justify-content: space-between;
  }
  .params-grid-3d {
    grid-template-columns: 1fr;
  }
  .video-results-grid-3d {
    grid-template-columns: 1fr;
  }
}
