/**
 * ============================================================================
 * GIRI ORBIT — SUITE INTRO HUBS & TEMPLATE STYLESHEET (hub.css)
 * By GIRI Corporation (A Subsidiary of Giri Group)
 * ============================================================================
 * Provides universal styling for the Microsoft 365 style Start & Template Hubs
 * across all 4 suite tools: Drift (Word), Axis (Excel), Kinetic (Presentations), and Aegis (PDF).
 */

.suite-tool-hub-shell,
.drift-hub-shell,
.axis-hub-shell,
.kinetic-hub-shell,
.pdf-hub-shell {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
}

/* Hub Top App Bar */
.tool-hub-top-bar,
.drift-hub-top-bar,
.axis-hub-top-bar,
.kinetic-hub-top-bar,
.pdf-hub-top-bar {
  height: 48px;
  background: #0f172a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  flex-shrink: 0;
}

.tool-hub-brand-left,
.drift-hub-brand-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tool-app-icon-badge {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: var(--font-display, sans-serif);
  font-weight: 800;
  font-size: 15px;
}

.tool-app-icon-badge.blue { background: #2563eb; box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4); }
.tool-app-icon-badge.green { background: #107c41; box-shadow: 0 2px 8px rgba(16, 124, 65, 0.4); }
.tool-app-icon-badge.red { background: #c43e1c; box-shadow: 0 2px 8px rgba(196, 62, 28, 0.4); }
.tool-app-icon-badge.crimson { background: #dc2626; box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4); }

.tool-hub-nav-links,
.drift-hub-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 16px;
}

.tool-hub-nav-link,
.drift-hub-nav-link {
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.15s;
  user-select: none;
}

.tool-hub-nav-link:hover,
.drift-hub-nav-link:hover {
  color: #ffffff;
}

/* Sleek Dark Hero Banner */
.tool-hub-hero,
.drift-hub-hero {
  background: linear-gradient(135deg, #090d16 0%, #111827 50%, #1e293b 100%);
  color: #ffffff;
  padding: 44px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.tool-hub-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.tool-hero-left,
.drift-hero-left {
  max-width: 620px;
  z-index: 1;
}

.tool-hero-title,
.drift-hero-title {
  font-size: 32px;
  font-weight: 800;
  font-family: var(--font-display, sans-serif);
  letter-spacing: -0.02em;
  margin: 0 0 10px 0;
  color: #ffffff;
  line-height: 1.15;
}

.tool-hero-subtitle,
.drift-hero-subtitle {
  font-size: 14.5px;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0 0 24px 0;
}

.tool-hero-actions,
.drift-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-tool-create-blank,
.btn-drift-create-blank {
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-tool-create-blank.blue, .btn-drift-create-blank {
  background: #2563eb;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
.btn-tool-create-blank.blue:hover, .btn-drift-create-blank:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.btn-tool-create-blank.green {
  background: #107c41;
  box-shadow: 0 4px 14px rgba(16, 124, 65, 0.35);
}
.btn-tool-create-blank.green:hover {
  background: #0b5f30;
  transform: translateY(-1px);
}

.btn-tool-create-blank.red {
  background: #c43e1c;
  box-shadow: 0 4px 14px rgba(196, 62, 28, 0.35);
}
.btn-tool-create-blank.red:hover {
  background: #a33214;
  transform: translateY(-1px);
}

.btn-tool-create-blank.crimson {
  background: #dc2626;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}
.btn-tool-create-blank.crimson:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

.btn-tool-upload-file,
.btn-drift-upload-file {
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s;
}

.btn-tool-upload-file:hover,
.btn-drift-upload-file:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-tool-new-template-cta,
.btn-drift-new-template-cta {
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-tool-new-template-cta:hover,
.btn-drift-new-template-cta:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #ffffff;
  color: #ffffff;
}

/* Hero 3D Vector Graphic */
.tool-hero-visual,
.drift-hero-visual {
  width: 320px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}

.tool-hero-visual-svg,
.drift-hero-visual-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
}

/* "Create with templates" Section */
.tool-templates-section,
.drift-templates-section {
  padding: 36px 48px;
  flex: 1;
}

.tool-templates-section-header,
.drift-templates-section-header {
  margin-bottom: 24px;
}

.tool-templates-heading,
.drift-templates-heading {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-display, sans-serif);
  color: #0f172a;
  letter-spacing: -0.01em;
  margin: 0 0 16px 0;
}

.tool-category-filter-row,
.drift-category-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.tool-category-pill-strip,
.drift-category-pill-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.tool-category-pill,
.drift-category-pill {
  padding: 7px 15px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.tool-category-pill:hover,
.drift-category-pill:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

.tool-category-pill.active,
.drift-category-pill.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.pill-counter-badge {
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 10px;
}

.tool-category-pill:not(.active) .pill-counter-badge {
  background: #e2e8f0;
  color: #475569;
}

/* Template Search Input */
.tool-search-templates-wrap,
.drift-search-templates-wrap {
  position: relative;
  width: 260px;
}

.tool-search-templates-icon,
.drift-search-templates-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.tool-search-templates-input,
.drift-search-templates-input {
  width: 100%;
  padding: 8px 14px 8px 34px;
  border-radius: 20px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 13px;
  color: #0f172a;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.tool-search-templates-input:focus,
.drift-search-templates-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Templates Grid View */
.tool-templates-grid,
.drift-templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 24px;
}

.tool-template-card,
.drift-template-card {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s;
  height: 310px;
}

.tool-template-card:hover,
.drift-template-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(37, 99, 235, 0.2);
  border-color: #93c5fd;
}

.tool-template-preview-frame,
.drift-template-preview-frame {
  height: 230px;
  background: #f8fafc;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #f1f5f9;
}

.tool-template-meta,
.drift-template-meta {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: #ffffff;
}

.tool-template-title,
.drift-template-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool-template-cat-label,
.drift-template-cat-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: capitalize;
}

.create-custom-card {
  border: 2px dashed #cbd5e1;
  background: #fafbfc;
}

.create-custom-card:hover {
  border-color: #2563eb;
  background: #eff6ff;
}

/* ==========================================================================
   TOOL HUB TOP BAR SUITE SWITCHER & DIRECT LINK TOOLS
   ========================================================================== */
.tool-hub-top-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tool-hub-suite-links {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 2px;
}

.tool-hub-suite-link {
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  background: transparent;
  border: none;
  display: inline-flex;
  align-items: center;
}

.tool-hub-suite-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.tool-hub-suite-link.active {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-weight: 600;
}

.btn-tool-copy-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  border-radius: 6px;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-tool-copy-link:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Tool Brand Dropdown Menu */
.tool-hub-brand-dropdown-wrap {
  position: relative;
}

.tool-suite-switcher-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 290px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  padding: 8px;
  z-index: 1000;
  backdrop-filter: blur(12px);
}

.suite-switcher-header {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  padding: 6px 10px 4px 10px;
}

.suite-switcher-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: #cbd5e1;
  transition: all 0.15s ease;
  cursor: pointer;
}

.suite-switcher-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.suite-switcher-item.active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.switcher-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.switcher-icon.hub { background: #3b82f6; color: #fff; }
.switcher-icon.drift { background: #2563eb; color: #fff; }
.switcher-icon.axis { background: #107c41; color: #fff; }
.switcher-icon.kinetic { background: #c43e1c; color: #fff; }
.switcher-icon.pdf { background: #dc2626; color: #fff; }

.switcher-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.switcher-info strong {
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
}

.switcher-info span {
  font-size: 10px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.switcher-link-tag {
  font-size: 10px;
  font-family: var(--font-mono, monospace);
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Hub Card Link Tag */
.app-card-url-badge {
  display: inline-block;
  font-size: 10px;
  font-family: var(--font-mono, monospace);
  font-weight: 600;
  color: #2563eb;
  background: #eff6ff;
  padding: 1px 6px;
  border-radius: 4px;
  margin-top: 3px;
  width: fit-content;
}

/* PresentationGO 3,500+ Template Library & Filters */
.tool-filter-substrip {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 0 14px 0;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 16px;
}

.tool-filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tool-filter-group-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 2px;
}

.tool-filter-chip {
  padding: 4px 10px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.tool-filter-chip:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

.tool-filter-chip.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.tool-color-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.tool-templates-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 4px 14px 4px;
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.tool-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  color: #334155;
}

.tool-source-badge span.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.tool-load-more-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 0 16px 0;
  width: 100%;
}

.btn-load-more-templates {
  padding: 10px 24px;
  background: #0f172a;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.18s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.btn-load-more-templates:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* ==========================================================================
   OFFICIAL PRESENTATIONGO CARD ARCHITECTURE (EXACT MATCH TO USER SCREENSHOTS)
   ========================================================================== */
.pgo-template-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s;
  height: 330px;
}

.pgo-template-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -4px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(37, 99, 235, 0.25);
  border-color: #93c5fd;
}

.pgo-card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 6px 12px;
  background: #ffffff;
  border-bottom: 1px solid #f8fafc;
}

.pgo-brand-compat {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pgo-aspect-pill {
  font-size: 10px;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 1px 6px;
  border-radius: 4px;
  line-height: 1.4;
}

.pgo-preview-frame {
  height: 180px;
  background: #0f172a;
  position: relative;
  overflow: hidden;
  display: flex;
}

.pgo-slides-count-pill {
  position: absolute;
  bottom: 8px;
  right: 10px;
  background: rgba(15, 23, 42, 0.82);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.pgo-watermark-line {
  position: absolute;
  bottom: 6px;
  left: 10px;
  font-size: 9px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.04em;
  opacity: 0.75;
  pointer-events: none;
  z-index: 2;
}

.pgo-card-meta {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #ffffff;
  flex: 1;
}

.pgo-pills-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.pgo-cat-pill {
  font-size: 10.5px;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: capitalize;
}

.pgo-option-pill {
  font-size: 10.5px;
  font-weight: 600;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
}

.pgo-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pgo-template-card:hover .pgo-card-title {
  color: #2563eb;
}

.pgo-card-desc {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Multi-Slide Collage Preview Styling */
.pgo-collage-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  background: #090d16;
  position: relative;
}

.pgo-collage-hero {
  flex: 1.3;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.pgo-collage-grid {
  flex: 1;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  padding: 4px;
  background: #020617;
}

.pgo-collage-mini {
  background: #0f172a;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  padding: 4px;
  position: relative;
}

/* Diagram Light Canvas Preview */
.pgo-diagram-canvas {
  width: 100%;
  height: 100%;
  background: #fdfdfd;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8px;
}

/* ==========================================================================
   KINETIC ANIMATION ENGINE STYLES & KEYFRAMES
   ========================================================================== */
@keyframes k-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes k-flyInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes k-flyInDown {
  from { opacity: 0; transform: translateY(-40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes k-flyInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes k-flyInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes k-zoomIn {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes k-bounceIn {
  0% { opacity: 0; transform: scale(0.3); }
  50% { opacity: 0.9; transform: scale(1.08); }
  70% { transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes k-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes k-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes k-teeter {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(5deg); }
  50% { transform: rotate(-5deg); }
  75% { transform: rotate(3deg); }
  100% { transform: rotate(0deg); }
}

@keyframes k-wipeIn {
  from { clip-path: inset(0 100% 0 0); opacity: 0.5; }
  to { clip-path: inset(0 0 0 0); opacity: 1; }
}

@keyframes k-fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes k-flyOutDown {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(50px); }
}

/* Numbered Animation Badges in Edit Mode */
.kinetic-anim-badge {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 18px;
  height: 18px;
  background: #eab308;
  color: #0f172a;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 100;
  line-height: 1;
}

/* Animation Pane Sidebar */
.kinetic-animation-pane-sidebar {
  width: 290px;
  background: #ffffff;
  border-left: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  height: 100%;
  flex-shrink: 0;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.03);
  z-index: 15;
}

.kinetic-anim-pane-header {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

.kinetic-anim-pane-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.kinetic-anim-pane-close {
  background: transparent;
  border: none;
  font-size: 16px;
  color: #64748b;
  cursor: pointer;
  border-radius: 4px;
  padding: 2px 6px;
}
.kinetic-anim-pane-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.kinetic-anim-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kinetic-anim-item-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.kinetic-anim-item-card:hover {
  border-color: #3b82f6;
  background: #eff6ff;
}

.kinetic-anim-item-card.active {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 1px #2563eb;
}

.kinetic-anim-item-badge {
  background: #eab308;
  color: #0f172a;
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kinetic-anim-item-info {
  flex: 1;
  min-width: 0;
}

.kinetic-anim-item-name {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kinetic-anim-item-effect {
  font-size: 10.5px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.kinetic-anim-item-controls {
  display: flex;
  align-items: center;
  gap: 2px;
}

.kinetic-anim-btn-mini {
  background: transparent;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  font-size: 9px;
  padding: 2px 4px;
  color: #475569;
  cursor: pointer;
}
.kinetic-anim-btn-mini:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.kinetic-anim-pane-actions {
  padding: 10px 14px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
}


