@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Color Palette - Enterprise Dark */
  --bg-base: #060911;
  --bg-surface: #0c111d;
  --bg-surface-elevated: #111726;
  --bg-surface-2: #161e31;
  --bg-surface-3: #1c263d;
  
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-focus: rgba(6, 182, 212, 0.6);
  --border-glow: rgba(6, 182, 212, 0.35);

  --cyan: #06b6d4;
  --cyan-bright: #22d3ee;
  --cyan-glow: rgba(6, 182, 212, 0.25);
  --violet: #8b5cf6;
  --violet-bright: #a78bfa;
  --indigo: #6366f1;
  --amber: #f59e0b;
  --amber-bright: #fbbf24;
  --emerald: #10b981;
  --rose: #f43f5e;

  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(6, 182, 212, 0.08);
  --shadow-glow: 0 0 25px rgba(6, 182, 212, 0.25);
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-base);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(6, 182, 212, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 90% 90%, rgba(139, 92, 246, 0.08), transparent);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface-3);
  border-radius: 4px;
  border: 2px solid var(--bg-base);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}

/* Top Navbar */
.navbar {
  height: 68px;
  background: rgba(12, 17, 29, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.brand:hover {
  opacity: 0.92;
}

.brand-badge {
  background: linear-gradient(135deg, var(--cyan-bright) 0%, var(--violet-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Token Balance Pill */
.token-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--amber-bright);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-mono);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.12);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}
.token-pill:hover {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
  transform: translateY(-1px);
}
.token-pill.depleted {
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.4);
  color: var(--rose);
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.15);
}

.user-tag {
  font-size: 12px;
  color: var(--text-muted);
}

.role-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(139, 92, 246, 0.15);
  color: var(--violet-bright);
  border: 1px solid rgba(139, 92, 246, 0.35);
  display: inline-flex;
  align-items: center;
}

/* App Shell Layout */
.app-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-base);
}

.app-sidebar {
  width: 270px;
  background: #080c16;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  z-index: 40;
}

.sidebar-brand {
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.01);
}

.sidebar-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(139, 92, 246, 0.25));
  border: 1px solid rgba(6, 182, 212, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.2);
}

.sidebar-menu {
  list-style: none;
  padding: 16px 12px;
  margin: 0;
  flex: 1;
  overflow-y: auto;
}

.menu-section-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  padding: 12px 14px 6px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  color: var(--text-muted);
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 4px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  position: relative;
}

.menu-item:hover {
  color: #fff;
  background: var(--bg-surface-2);
  border-color: rgba(255, 255, 255, 0.05);
  transform: translateX(2px);
}

.menu-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.16) 0%, rgba(139, 92, 246, 0.08) 100%);
  border: 1px solid rgba(6, 182, 212, 0.35);
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.1);
}
.menu-item.active svg {
  color: var(--cyan-bright);
  filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.4));
}

.sidebar-user {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.3);
}

.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  background: var(--bg-base);
  position: relative;
}

.app-topbar {
  height: 64px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(8, 12, 22, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.cluster-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
}

.cluster-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.content-view {
  display: none;
  padding: 28px 32px 48px;
  flex: 1;
  animation: viewFadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.content-view.active {
  display: block;
}
@keyframes viewFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Studio Layout */
.studio-layout {
  display: grid;
  grid-template-columns: 460px 1fr;
  width: 100%;
  gap: 24px;
}

/* Panel Containers */
.panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.panel:hover {
  border-color: rgba(255, 255, 255, 0.11);
}

/* Metric Cards */
.metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  flex: 1;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.12);
}
.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  opacity: 0.7;
}

/* Tabs */
.tab-group {
  display: flex;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 20px;
  gap: 4px;
}
.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}
.tab-btn.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid var(--border-glow);
  color: #fff;
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.15);
}

/* Form Controls */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}
.form-textarea {
  width: 100%;
  height: 110px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  color: #fff;
  font-size: 13.5px;
  line-height: 1.5;
  resize: vertical;
  outline: none;
  transition: all 0.2s;
}
.form-textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
  background: var(--bg-surface-elevated);
}
.form-textarea::placeholder {
  color: var(--text-dim);
}

.form-input {
  width: 100%;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: #fff;
  font-size: 13.5px;
  outline: none;
  transition: all 0.2s;
}
.form-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
  background: var(--bg-surface-elevated);
}
.form-input::placeholder {
  color: var(--text-dim);
}

/* Chip Selectors */
.select-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  background: var(--bg-surface-3);
  transform: translateY(-1px);
}
.chip.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.22) 0%, rgba(99, 102, 241, 0.15) 100%);
  border-color: var(--cyan);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.2);
}

/* Action Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, #3b82f6 50%, var(--violet) 100%);
  background-size: 200% 200%;
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  letter-spacing: 0.2px;
}
.btn-primary:hover {
  background-position: 100% 100%;
  box-shadow: 0 6px 28px rgba(6, 182, 212, 0.5);
  transform: translateY(-1.5px);
  color: #fff;
}
.btn-primary:active {
  transform: translateY(0.5px);
}
.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-strong);
  color: #fff;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-secondary:hover {
  background: var(--bg-surface-3);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-1px);
}
.btn-secondary:active {
  transform: translateY(0);
}

/* Preview Canvas Stage with Camera Viewfinder Accents */
.preview-stage {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 50%, rgba(17, 24, 39, 0.9), #050810);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8);
}
/* Reticle corners */
.preview-stage::before {
  content: '';
  position: absolute;
  top: 14px; left: 14px; width: 16px; height: 16px;
  border-top: 2px solid var(--border-strong);
  border-left: 2px solid var(--border-strong);
  pointer-events: none;
}
.preview-stage::after {
  content: '';
  position: absolute;
  bottom: 14px; right: 14px; width: 16px; height: 16px;
  border-bottom: 2px solid var(--border-strong);
  border-right: 2px solid var(--border-strong);
  pointer-events: none;
}

.preview-media {
  max-width: 100%;
  max-height: 540px;
  border-radius: var(--radius);
  object-fit: contain;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
}

/* History & Asset Grid */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.media-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}
.media-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(6, 182, 212, 0.15);
}
.media-card img, .media-card video {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: #000;
  transition: transform 0.3s ease;
}
.media-card:hover img, .media-card:hover video {
  transform: scale(1.02);
}
.media-card-body {
  padding: 12px 14px;
  background: var(--bg-surface);
}
.media-prompt {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.45;
  height: 34px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.media-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* Depleted & Status Alert Banners */
.alert-banner {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fecdd3;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  display: none;
  margin-bottom: 18px;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(8px);
}

/* User & Admin Data Table */
.user-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 16px;
  text-align: left;
}
.user-table th {
  background: var(--bg-surface-2);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.user-table th:first-child { border-top-left-radius: var(--radius); }
.user-table th:last-child { border-top-right-radius: var(--radius); }

.user-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-main);
  vertical-align: middle;
}
.user-table tbody tr {
  transition: background-color 0.15s;
}
.user-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.quick-grant-btn {
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: var(--cyan-bright);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  margin-right: 4px;
  transition: all 0.15s;
}
.quick-grant-btn:hover {
  background: var(--cyan);
  color: #000;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.reset-btn {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fca5a5;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.reset-btn:hover {
  background: var(--rose);
  color: #fff;
}

.admin-gallery-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  font-size: 12px;
  transition: border-color 0.2s;
}
.admin-gallery-card:hover {
  border-color: var(--cyan);
}
.admin-gallery-card img, .admin-gallery-card video {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .studio-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .app-shell {
    flex-direction: column;
    height: auto;
  }
  .app-sidebar {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .app-main {
    height: auto;
  }
  .navbar, .app-topbar {
    padding: 0 16px;
  }
  .content-view {
    padding: 20px 16px;
  }
}

/* ============================================================= */
/* Enterprise Interactive UI Extensions                          */
/* ============================================================= */

/* Video Mode Selector (Cinematic Motion vs Lip Sync Avatar) */
.video-mode-nav {
  display: flex;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 5px;
  margin-bottom: 20px;
  gap: 6px;
}
.video-mode-btn {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.video-mode-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}
.video-mode-btn.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(6, 182, 212, 0.2) 100%);
  border-color: rgba(139, 92, 246, 0.4);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Audio Dropzone & Player */
.audio-dropzone {
  border: 2px dashed rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.04);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.audio-dropzone:hover {
  border-color: var(--violet-bright);
  background: rgba(139, 92, 246, 0.08);
}
.audio-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-top: 10px;
}

/* AI Magic Prompt Button & Presets */
.btn-magic-prompt {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: var(--cyan-bright);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.btn-magic-prompt:hover {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25) 0%, rgba(139, 92, 246, 0.25) 100%);
  border-color: var(--cyan-bright);
  color: #fff;
  transform: translateY(-1px);
}

/* Prompt Presets Horizontal Strip */
.preset-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 12px;
  scrollbar-width: thin;
}
.preset-pill {
  white-space: nowrap;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.preset-pill:hover {
  color: #fff;
  border-color: var(--cyan);
  background: rgba(6, 182, 212, 0.1);
}

/* Keyboard Shortcut Badge */
.kbd-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  background: var(--bg-surface-3);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--text-dim);
}

/* Floating Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
  pointer-events: none;
}
.toast-item {
  pointer-events: auto;
  min-width: 280px;
  max-width: 400px;
  background: rgba(12, 17, 29, 0.95);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 18px;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #fff;
  font-weight: 600;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.25s, transform 0.25s;
}
.toast-item.success {
  border-left: 3px solid #10b981;
}
.toast-item.info {
  border-left: 3px solid var(--cyan-bright);
}
.toast-item.error {
  border-left: 3px solid #f43f5e;
}
@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Fullscreen Lightbox & Asset Inspector */
.lightbox-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 7, 14, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  animation: fadeIn 0.2s ease-out;
}
.lightbox-modal {
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 360px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
}
.lightbox-viewer {
  background: #03060c;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}
.lightbox-viewer img, .lightbox-viewer video {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.lightbox-drawer {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid var(--border);
  background: var(--bg-surface-elevated);
  overflow-y: auto;
}
@media (max-width: 900px) {
  .lightbox-modal {
    grid-template-columns: 1fr;
    max-height: 94vh;
  }
  .lightbox-drawer {
    border-left: none;
    border-top: 1px solid var(--border);
  }
}
