/* =============================================
   SlideForge AI — premium.css
   Glassmorphism, Mesh BG, Glows, Premium UI
   ============================================= */

/* ── Animated mesh gradient background ────── */
.mesh-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.mesh-bg::before {
  content: '';
  position: absolute;
  width: 70vw; height: 70vw;
  top: -20%; left: -10%;
  background: radial-gradient(circle, rgba(91,143,249,.12) 0%, transparent 65%);
  animation: blob-morph 18s ease-in-out infinite, float 12s ease-in-out infinite;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}
.mesh-bg::after {
  content: '';
  position: absolute;
  width: 50vw; height: 50vw;
  bottom: -15%; right: -5%;
  background: radial-gradient(circle, rgba(167,139,250,.10) 0%, transparent 65%);
  animation: blob-morph 22s ease-in-out infinite reverse, float 16s ease-in-out infinite reverse;
  border-radius: 40% 60% 70% 30% / 40% 60% 30% 70%;
}
.mesh-blob-3 {
  position: absolute;
  width: 35vw; height: 35vw;
  top: 40%; left: 40%;
  background: radial-gradient(circle, rgba(6,182,212,.07) 0%, transparent 65%);
  animation: blob-morph 26s ease-in-out infinite 8s, float 20s ease-in-out infinite 4s;
  border-radius: 50%;
  pointer-events: none;
}

/* ── Glassmorphism card ────────────────────── */
.glass {
  background: rgba(23, 34, 54, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 8px 32px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.06);
}
[data-theme="light"] .glass {
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 8px 32px rgba(0,0,0,.10), inset 0 1px 0 rgba(255,255,255,.9);
}
.glass-dark {
  background: rgba(8, 12, 20, 0.75);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.06);
}
.glass-subtle {
  background: rgba(23, 34, 54, 0.35);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.05);
}

/* ── Glow effects ──────────────────────────── */
.glow-accent  { box-shadow: 0 0 20px rgba(91,143,249,.3), 0 0 60px rgba(91,143,249,.1); }
.glow-purple  { box-shadow: 0 0 20px rgba(167,139,250,.3), 0 0 60px rgba(167,139,250,.1); }
.glow-success { box-shadow: 0 0 20px rgba(34,211,160,.3); }
.glow-error   { box-shadow: 0 0 20px rgba(255,92,92,.3); }

.btn-primary.glow-on-hover:hover { box-shadow: 0 0 24px rgba(91,143,249,.5), var(--shadow-accent); }
.btn-gradient.glow-on-hover:hover { box-shadow: 0 0 32px rgba(91,143,249,.4), 0 0 64px rgba(167,139,250,.2); }

/* ── Premium gradient borders ──────────────── */
.grad-border {
  position: relative;
  border-radius: var(--radius-lg);
}
.grad-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(91,143,249,.4), rgba(167,139,250,.4), rgba(6,182,212,.2));
  z-index: -1;
}

/* ── Noise texture overlay ─────────────────── */
.noise-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: .4;
  pointer-events: none;
  border-radius: inherit;
}

/* ── Premium hero section ──────────────────── */
.hero-gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .15;
  pointer-events: none;
}
.hero-gradient-orb-1 {
  width: 600px; height: 600px;
  top: -200px; left: -100px;
  background: radial-gradient(circle, #5b8ff9, #a78bfa);
}
.hero-gradient-orb-2 {
  width: 400px; height: 400px;
  top: 100px; right: -100px;
  background: radial-gradient(circle, #06b6d4, #5b8ff9);
}
.hero-gradient-orb-3 {
  width: 300px; height: 300px;
  bottom: 0; left: 40%;
  background: radial-gradient(circle, #a78bfa, #f0abfc);
}

/* ── Particle canvas ───────────────────────── */
#particle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: .4;
}

/* ── Command palette ───────────────────────── */
.command-palette-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(8px);
  z-index: 9000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.command-palette-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.command-palette {
  width: 100%;
  max-width: 580px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(91,143,249,.15);
  overflow: hidden;
  transform: translateY(-16px) scale(.97);
  transition: transform .2s ease;
}
.command-palette-overlay.open .command-palette {
  transform: translateY(0) scale(1);
}
.cp-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.cp-search-icon { color: var(--text-muted); flex-shrink: 0; }
.cp-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--text-primary);
  font-family: inherit;
}
.cp-input::placeholder { color: var(--text-muted); }
.cp-kbd {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: .7rem;
  color: var(--text-muted);
  font-family: monospace;
}
.cp-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 6px;
}
.cp-section-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 12px 4px;
}
.cp-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
}
.cp-item:hover,
.cp-item.focused {
  background: var(--bg-elevated);
}
.cp-item-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: .85rem;
}
.cp-item-info { flex: 1; min-width: 0; }
.cp-item-name  { font-size: .9rem; font-weight: 600; }
.cp-item-desc  { font-size: .75rem; color: var(--text-muted); }
.cp-item-shortcut {
  font-size: .7rem;
  color: var(--text-muted);
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  font-family: monospace;
  flex-shrink: 0;
}
.cp-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  font-size: .72rem;
  color: var(--text-muted);
}
.cp-footer-key { display: flex; align-items: center; gap: 5px; }
.cp-footer-key kbd {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: .68rem;
  font-family: monospace;
}

/* ── Presentation mode ─────────────────────── */
.pm-overlay {
  position: fixed; inset: 0;
  background: #000;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: none;
}
.pm-overlay.cursor-visible { cursor: default; }
.pm-slide-wrap {
  width: 100%;
  max-width: min(100vw, calc(100vh * 16/9));
  aspect-ratio: 16/9;
  position: relative;
}
.pm-slide-wrap.ratio-4x3 {
  max-width: min(100vw, calc(100vh * 4/3));
  aspect-ratio: 4/3;
}
.pm-controls {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: rgba(0,0,0,.7);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity .3s ease;
  z-index: 10001;
}
.pm-overlay.cursor-visible .pm-controls { opacity: 1; }
.pm-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,.1);
  z-index: 10001;
}
.pm-progress-fill {
  height: 100%;
  background: var(--accent-grad);
  transition: width .4s ease;
}
.pm-slide-counter {
  position: fixed;
  bottom: 20px;
  right: 24px;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  z-index: 10001;
}
.pm-slide-transition {
  animation: scaleIn .25s ease;
}

/* ── Presenter view ────────────────────────── */
.presenter-overlay {
  position: fixed; inset: 0;
  background: var(--bg-base);
  z-index: 9500;
  display: grid;
  grid-template-columns: 1fr 380px;
  overflow: hidden;
}
.presenter-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  gap: 20px;
  background: var(--bg-surface);
}
.presenter-sidebar {
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.presenter-notes {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  font-size: .95rem;
  line-height: 1.7;
  color: var(--text-secondary);
}
.presenter-controls {
  padding: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.presenter-timer {
  font-size: 2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--accent);
}
.presenter-slide-info {
  text-align: center;
  font-size: .8rem;
  color: var(--text-muted);
}
.presenter-next-preview {
  padding: 12px;
  border-top: 1px solid var(--border);
}
.presenter-next-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* ── Keyboard shortcuts panel ──────────────── */
.shortcuts-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.shortcuts-overlay.open { opacity: 1; pointer-events: all; }
.shortcuts-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  width: 100%;
  max-width: 680px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: scaleIn .2s ease;
}
.shortcuts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.shortcut-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border-subtle); }
.shortcut-action { font-size: .875rem; color: var(--text-secondary); }
.shortcut-keys { display: flex; gap: 4px; }
.kbd-key {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-bottom: 2px solid var(--border);
  border-radius: 5px;
  padding: 3px 8px;
  font-size: .72rem;
  font-family: monospace;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

/* ── Notification center ───────────────────── */
.notif-center-overlay {
  position: fixed;
  top: var(--nav-h);
  right: 0;
  width: 340px;
  height: calc(100vh - var(--nav-h));
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 800;
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.notif-center-overlay.open { transform: translateX(0); }
.notif-center-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.notif-center-body { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.notif-item {
  padding: 12px 14px;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--border);
  font-size: .85rem;
}
.notif-item.success { border-left-color: var(--success); }
.notif-item.error   { border-left-color: var(--error); }
.notif-item.info    { border-left-color: var(--accent); }
.notif-item.warning { border-left-color: var(--warning); }
.notif-time { font-size: .72rem; color: var(--text-muted); margin-top: 4px; }

/* ── Stats dashboard cards ─────────────────── */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.stat-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.stat-card-value {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-card-label { font-size: .875rem; color: var(--text-muted); }
.stat-card-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  opacity: .08;
}
.stat-card-change {
  font-size: .75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 999px;
}
.stat-card-change.up   { background: var(--success-bg); color: var(--success); }
.stat-card-change.down { background: var(--error-bg);   color: var(--error); }

/* ── Template cards ────────────────────────── */
.template-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  position: relative;
}
.template-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.template-card.selected { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91,143,249,.2); }
.template-preview {
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  padding: 12%;
  position: relative;
  overflow: hidden;
}
.template-overlay-badge {
  position: absolute;
  top: 8px; right: 8px;
  background: var(--accent);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}
.template-info { padding: 12px 14px; }
.template-name { font-weight: 700; font-size: .9rem; margin-bottom: 2px; }
.template-desc { font-size: .75rem; color: var(--text-muted); }
.template-slide-count { font-size: .7rem; color: var(--text-muted); margin-top: 4px; display: flex; align-items: center; gap: 4px; }

/* ── Focus mode ────────────────────────────── */
.focus-mode .topnav,
.focus-mode .editor-slides,
.focus-mode .editor-panel {
  display: none;
}
.focus-mode .editor-layout { grid-template-columns: 1fr; }
.focus-mode .editor-canvas { padding: 40px; }
.focus-mode-exit {
  position: fixed;
  top: 12px; right: 12px;
  z-index: 500;
}

/* ── Grid view (all slides) ────────────────── */
.grid-view-overlay {
  position: fixed; inset: 0;
  background: var(--bg-base);
  z-index: 900;
  overflow-y: auto;
  padding: 20px;
  display: none;
}
.grid-view-overlay.open { display: block; animation: fadeIn .2s ease; }
.grid-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 0 4px;
}
.grid-view-slides {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.grid-slide-item {
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
  position: relative;
}
.grid-slide-item:hover { border-color: var(--accent); transform: scale(1.02); }
.grid-slide-item.active { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(91,143,249,.25); }
.grid-slide-num {
  position: absolute;
  top: 6px; left: 8px;
  font-size: .65rem;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}

/* ── Find & replace panel ──────────────────── */
.find-replace-bar {
  position: fixed;
  top: var(--nav-h);
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  border-top: none;
  padding: 14px 16px;
  box-shadow: var(--shadow-lg);
  z-index: 700;
  display: none;
}
.find-replace-bar.open { display: block; animation: slideInDown .2s ease; }
@keyframes slideInDown { from { transform: translateX(-50%) translateY(-100%); } to { transform: translateX(-50%) translateY(0); } }
.fr-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.fr-row:last-of-type { margin-bottom: 0; }
.fr-input { flex: 1; }
.fr-count { font-size: .8rem; color: var(--text-muted); white-space: nowrap; }

/* ── Onboarding tour ───────────────────────── */
.tour-highlight {
  position: relative;
  z-index: 8001;
  border-radius: var(--radius-md);
  box-shadow: 0 0 0 4px var(--accent), 0 0 0 5000px rgba(0,0,0,.65);
  pointer-events: none;
}
.tour-tooltip {
  position: fixed;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  width: 320px;
  box-shadow: var(--shadow-lg);
  z-index: 8002;
  animation: fadeInUp .25s ease;
}
.tour-step-badge {
  font-size: .7rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
}
.tour-arrow {
  width: 12px; height: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: absolute;
  transform: rotate(45deg);
}

/* ── Achievement badge ─────────────────────── */
.achievement-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #1a2540, #0d2454);
  border: 1px solid rgba(91,143,249,.4);
  border-radius: var(--radius-xl);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.5), var(--shadow-accent);
  z-index: 9999;
  animation: scaleInBounce .5s ease;
}
.achievement-icon { font-size: 2rem; }
.achievement-title { font-size: .7rem; color: var(--accent); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.achievement-name  { font-size: 1rem; font-weight: 800; }

/* ── QR code container ─────────────────────── */
.qr-container {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.qr-container svg { display: block; }

/* ── Token counter ─────────────────────────── */
.token-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .8rem;
  color: var(--text-secondary);
}
.token-bar { flex: 1; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.token-bar-fill { height: 100%; border-radius: 2px; transition: width .4s ease, background .4s ease; background: var(--accent); }
.token-bar-fill.warn    { background: var(--warning); }
.token-bar-fill.danger  { background: var(--error); }
.token-count { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }

/* ── AI usage tracker ──────────────────────── */
.ai-tracker {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}
.ai-tracker-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-ring 2s infinite;
}

/* ── Drag & Drop ─────────────────────────────── */
.drag-placeholder {
  background: var(--accent-dim);
  border: 2px dashed var(--accent);
  border-radius: var(--radius-md);
  margin: 4px 0;
  opacity: .6;
}

[data-slide-item].dragging {
  opacity: .85;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  border-color: var(--accent);
  cursor: grabbing;
}

/* ── Voice recording button ────────────────── */
button.recording {
  background: var(--error-bg) !important;
  color: var(--error) !important;
  animation: pulse-ring 1s ease-in-out infinite;
}

/* ── token counter inline ─────────────────── */
.token-counter {
  font-size: .72rem;
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}
.token-counter.warn   { border-color: var(--warning); color: var(--warning); }
.token-counter.danger { border-color: var(--error);   color: var(--error); }

/* ── find-replace bar active ─────────────── */
.find-replace-bar.active { display: block !important; }
.fr-group { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.fr-group:last-of-type { margin-bottom: 0; }
.fr-input-find, .fr-input-replace { flex: 1; height: 36px; padding: 0 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text-primary); font-size: .875rem; }
.fr-btn { height: 32px; padding: 0 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-card); color: var(--text-secondary); cursor: pointer; font-size: .8rem; }
.fr-btn:hover { background: var(--bg-elevated); }
.fr-btn-action { background: var(--accent-dim); color: var(--accent); border-color: transparent; }
.fr-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1rem; }
.fr-count { font-size: .75rem; color: var(--text-muted); white-space: nowrap; min-width: 40px; text-align: center; }
.fr-highlight { animation: pulse-ring .6s ease-out; }

/* ── Prompt Library cards ─────────────────── */
.prompt-library-list { display: flex; flex-direction: column; gap: .5rem; max-height: 320px; overflow-y: auto; }
.prompt-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md); padding: .75rem 1rem; cursor: pointer; transition: border-color .15s; }
.prompt-card:hover { border-color: var(--accent); }
.prompt-card-name { font-weight: 700; font-size: .875rem; margin-bottom: .25rem; display: flex; align-items: center; gap: .5rem; }
.prompt-card-preview { font-size: .78rem; color: var(--text-muted); line-height: 1.4; margin-bottom: .5rem; }
.prompt-card-actions { display: flex; gap: .4rem; }
.prompt-builtin { opacity: .85; }

/* ── Brand kit grid ───────────────────────── */
.brand-kit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media(max-width:500px) { .brand-kit-grid { grid-template-columns: 1fr; } }

/* ── Grid view overlay (fix active class) ─── */
.grid-view-overlay.active { display: block; animation: fadeIn .2s ease; }
