/* ============================================================
   Apollo Onboarding Hub — Design System
   Based on Apollo.io Official Branding
   Mobile-first · iOS/Android optimized · Cross-browser
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* === CSS VARIABLES === */
:root {
  --apollo-yellow: #f9ff2d;
  --apollo-yellow-hover: #e6eb29;
  --apollo-yellow-soft: rgba(249, 255, 45, 0.12);
  --apollo-black: #000000;
  --apollo-white: #ffffff;

  --bg-primary: #ffffff;
  --bg-secondary: #f7f7f8;
  --bg-tertiary: #eeeff1;
  --bg-card: #ffffff;
  --bg-header: rgba(255, 255, 255, 0.92);

  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --text-inverse: #ffffff;

  --border-primary: #e5e7eb;
  --border-subtle: #f0f0f0;
  --border-hover: #d1d5db;
  --border-focus: #000000;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 28px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.12);

  --tag-setup-bg: #dbeafe;
  --tag-setup-text: #1e40af;
  --tag-essential-bg: #fef3c7;
  --tag-essential-text: #92400e;
  --tag-advanced-bg: #fce7f3;
  --tag-advanced-text: #9d174d;
  --tag-ai-bg: #ede9fe;
  --tag-ai-text: #5b21b6;
  --tag-core-bg: #d1fae5;
  --tag-core-text: #065f46;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);

  --header-height: 60px;
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 60px;

  --icon-setup: linear-gradient(135deg, #3b82f6, #1d4ed8);
  --icon-prospect: linear-gradient(135deg, #8b5cf6, #6d28d9);
  --icon-outbound: linear-gradient(135deg, #ec4899, #be185d);
  --icon-inbound: linear-gradient(135deg, #10b981, #047857);
  --icon-automation: linear-gradient(135deg, #f59e0b, #d97706);
  --icon-ai: linear-gradient(135deg, #a855f7, #ec4899);
  --icon-deals: linear-gradient(135deg, #06b6d4, #0891b2);
  --icon-analytics: linear-gradient(135deg, #f97316, #ea580c);
  --icon-resources: linear-gradient(135deg, #6366f1, #4f46e5);
}

/* === RESET & BASE === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-weight: 300;
  font-feature-settings: 'cv01', 'ss01';
  background: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  padding-top: var(--header-height);
  padding-bottom: var(--safe-bottom);
}

/* === LAYOUT WRAPPER === */
.layout {
  display: flex;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
}

/* === SIDEBAR === */
.sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--bg-card);
  border-right: 1px solid var(--border-primary);
  z-index: 90;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}

.sidebar.collapsed:hover {
  width: var(--sidebar-width);
}

.sidebar.collapsed:hover .sidebar-nav-item {
  justify-content: flex-start;
  padding: 11px 18px;
  gap: 16px;
}

.sidebar.collapsed:hover .sidebar-nav-item span,
.sidebar.collapsed:hover .sidebar-footer-link span {
  opacity: 1;
  width: auto;
  position: static;
  overflow: visible;
}

.sidebar.collapsed:hover .sidebar-footer-link {
  justify-content: flex-start;
  padding: 8px 12px;
}

.sidebar.collapsed:hover .sidebar-collapse-btn svg {
  transform: rotate(0deg);
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--border-primary) transparent;
}

.sidebar-inner::-webkit-scrollbar {
  width: 3px;
}

.sidebar-inner::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-inner::-webkit-scrollbar-thumb {
  background: var(--border-primary);
  border-radius: 10px;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), gap 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  background: none;
  font-family: inherit;
  width: 100%;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}

.sidebar-nav-item span {
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed .sidebar-nav-item {
  justify-content: center;
  padding: 11px;
  gap: 0;
}

.sidebar.collapsed .sidebar-nav-item span {
  opacity: 0;
  width: 0;
  overflow: hidden;
  position: absolute;
  pointer-events: none;
}

.sidebar.collapsed .sidebar-footer-link span {
  opacity: 0;
  width: 0;
  overflow: hidden;
  position: absolute;
}

.sidebar.collapsed .sidebar-footer-link {
  justify-content: center;
  padding: 8px;
}

.sidebar-nav-item svg {
  width: 20px;
  height: 20px;
  min-width: 20px;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.sidebar-nav-item:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.sidebar-nav-item.active {
  background: var(--apollo-black);
  color: var(--apollo-white);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.sidebar-nav-item.active svg {
  color: var(--apollo-yellow);
}

.sidebar-nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px;
  height: 20px;
  border-radius: 0 3px 3px 0;
  background: var(--apollo-yellow);
  transition: transform 0.25s ease;
}

.sidebar-nav-item.active::before {
  transform: translateY(-50%) scaleY(1);
  animation: sidebarIndicatorPulse 2s ease-in-out infinite;
}

@keyframes sidebarIndicatorPulse {

  0%,
  100% {
    box-shadow: 0 0 4px rgba(249, 255, 45, 0.3);
  }

  50% {
    box-shadow: 0 0 10px rgba(249, 255, 45, 0.6);
  }
}

.sidebar-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--border-primary);
  flex-shrink: 0;
}

.sidebar-footer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.sidebar-footer-link:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.sidebar-footer-link svg {
  flex-shrink: 0;
}

/* Sidebar collapse toggle */
.sidebar-collapse-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s ease;
  border-top: 1px solid var(--border-primary);
}

.sidebar-collapse-btn:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.sidebar-collapse-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.sidebar.collapsed .sidebar-collapse-btn svg {
  transform: rotate(180deg);
}

/* Sidebar overlay (mobile) */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 89;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.sidebar-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Hamburger toggle */
.sidebar-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  background: none;
  flex-shrink: 0;
  touch-action: manipulation;
}

.sidebar-toggle:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 4px;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* === HEADER === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  padding-top: var(--safe-top);
  background: var(--bg-header);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-primary);
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  padding-left: calc(20px + var(--safe-left));
  padding-right: calc(20px + var(--safe-right));
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.header-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.header-title .brand-name {
  font-weight: 600;
}

.lang-switcher {
  position: relative;
}

.lang-trigger {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-trigger:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
  border-color: var(--border-primary);
}

.lang-trigger.active {
  color: var(--text-primary);
  background: var(--bg-secondary);
  border-color: var(--border-primary);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 6px;
  z-index: 200;
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-dropdown.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.lang-option:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.lang-option.active {
  background: var(--apollo-black);
  color: var(--apollo-white);
}

.lang-flags {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-shrink: 0;
}

.flag-icon {
  width: 22px;
  height: 16px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}

/* Inline link styling in assistant answers */
.chat-inline-link {
  color: #2563eb;
  text-decoration: underline;
  text-decoration-color: rgba(37, 99, 235, 0.3);
  text-underline-offset: 2px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.chat-inline-link:hover {
  text-decoration-color: #2563eb;
  color: #1d4ed8;
}

/* === MAIN APP === */
.app {
  flex: 1;
  max-width: 1200px;
  margin-left: var(--sidebar-width);
  padding: 24px 40px 60px;
  position: relative;
  min-width: 0;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.app.sidebar-collapsed {
  margin-left: var(--sidebar-collapsed-width);
}

/* === HERO === */
.hero {
  text-align: left;
  padding: 32px 0 28px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--apollo-yellow-soft);
  border: 1px solid rgba(249, 255, 45, 0.3);
  border-radius: var(--radius-full);
  padding: 6px 18px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-badge svg {
  width: 14px;
  height: 14px;
  color: #b8a300;
}

.hero h1 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.hero h1 .highlight {
  position: relative;
  display: inline;
}

.hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--apollo-yellow), rgba(249, 255, 45, 0.3), var(--apollo-yellow));
  background-size: 200% 100%;
  opacity: 0.5;
  z-index: -1;
  border-radius: 2px;
  animation: highlightShimmer 4s ease-in-out infinite;
}

@keyframes highlightShimmer {
  0% {
    background-position: 100% 0;
  }

  50% {
    background-position: 0% 0;
  }

  100% {
    background-position: 100% 0;
  }
}

.hero p {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 720px;
  line-height: 1.65;
}



/* === ACADEMY GRID === */
.academy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

/* === COMPLETION BANNER === */
.completion-banner {
  display: none;
  text-align: center;
  padding: 24px;
  margin-bottom: 16px;
  background: var(--apollo-yellow-soft);
  border: 1px solid rgba(249, 255, 45, 0.3);
  border-radius: var(--radius-lg);
}

.completion-banner.visible {
  display: block;
  animation: fadeUp 0.4s ease;
}

.completion-banner h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.completion-banner p {
  font-size: 13px;
  color: var(--text-secondary);
}



/* === TIPS BAR === */
.tips-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(249, 255, 45, 0.08), rgba(249, 255, 45, 0.03));
  border: 1px solid rgba(249, 255, 45, 0.18);
  border-left: 3px solid var(--apollo-yellow);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.tips-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(249, 255, 45, 0.06) 0%, transparent 50%, rgba(249, 255, 45, 0.03) 100%);
  animation: tipShimmer 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes tipShimmer {

  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }
}

.tips-bar-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(249, 255, 45, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #b8a300;
}

.tips-bar-icon svg {
  width: 18px;
  height: 18px;
}

.tips-bar-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tips-bar-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.tips-bar-text {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.5;
  font-weight: 400;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.tips-bar-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.tips-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-primary);
  transition: all 0.3s ease;
}

.tips-dot.active {
  background: var(--apollo-yellow);
  box-shadow: 0 0 6px rgba(249, 255, 45, 0.5);
  transform: scale(1.3);
}

/* === CARD ICON HOVER GLOW === */
.card:hover .card-icon {
  background: linear-gradient(135deg, rgba(249, 255, 45, 0.18), rgba(249, 255, 45, 0.06));
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(249, 255, 45, 0.1);
}

.card:hover .card-icon svg {
  transform: scale(1.12) rotate(2deg);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}



/* === SECTIONS === */
.section {
  display: none;
  animation: sectionEntrance 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.section.active {
  display: block;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sectionEntrance {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.99);
    filter: blur(3px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.section-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--apollo-white);
}

.section-icon svg {
  width: 22px;
  height: 22px;
}

.section-header h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 800px;
}

/* === CARD GRID === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

/* === CARDS === */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  will-change: transform;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--apollo-yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(249, 255, 45, 0.06);
  transform: translateY(-4px);
}

.card:hover::before {
  transform: scaleX(1);
}

.card:active {
  transform: translateY(-1px) scale(0.99);
  transition-duration: 0.1s;
}

.card-top {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.card-icon svg {
  width: 20px;
  height: 20px;
}

.card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.35;
  color: var(--text-primary);
}

.card>p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

/* Tags */
.tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.tag.setup {
  background: var(--tag-setup-bg);
  color: var(--tag-setup-text);
}

.tag.essential {
  background: var(--tag-essential-bg);
  color: var(--tag-essential-text);
}

.tag.advanced {
  background: var(--tag-advanced-bg);
  color: var(--tag-advanced-text);
}

.tag.ai {
  background: var(--tag-ai-bg);
  color: var(--tag-ai-text);
}

.tag.core {
  background: var(--tag-core-bg);
  color: var(--tag-core-text);
}

/* Card actions */
.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  transition: all 0.2s ease;
  min-height: 36px;
  touch-action: manipulation;
}

.card-link:hover {
  background: var(--apollo-black);
  color: var(--apollo-white);
  border-color: var(--apollo-black);
}

.card-link svg {
  width: 12px;
  height: 12px;
}

/* === WORKFLOW CARDS === */
.workflow-section-title {
  margin: 28px 0 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.workflow-card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  will-change: transform;
}

.workflow-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--border-hover);
}

.workflow-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.workflow-card .wf-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.wf-steps {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  row-gap: 8px;
}

.wf-step {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
}

.wf-arrow {
  color: var(--text-muted);
  padding: 0 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.wf-arrow svg {
  width: 16px;
  height: 16px;
}

/* === RESOURCES GRID === */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.resource-card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
  box-shadow: var(--shadow-xs);
  min-height: 64px;
  touch-action: manipulation;
  will-change: transform;
  position: relative;
  overflow: hidden;
}

.resource-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--apollo-yellow);
  transform: scaleY(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0 3px 3px 0;
}

.resource-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.resource-card:hover::before {
  transform: scaleY(1);
}

.resource-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.resource-card:hover .resource-icon {
  background: linear-gradient(135deg, rgba(249, 255, 45, 0.12), rgba(249, 255, 45, 0.04));
  color: var(--text-primary);
}

.resource-icon svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.resource-card:hover .resource-icon svg {
  transform: scale(1.1);
}

.resource-card .rc-text {
  flex: 1;
}

.resource-card .rc-text h4 {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

.resource-card .rc-text p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.resource-card .rc-arrow {
  color: var(--text-muted);
  display: flex;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
}

.resource-card:hover .rc-arrow {
  transform: translateX(4px);
  color: var(--text-primary);
}

.resource-card .rc-arrow svg {
  width: 16px;
  height: 16px;
}

/* === ADOPTION PATH === */
.adoption-path {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.adoption-phase {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  will-change: transform;
}

.adoption-phase:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.adoption-phase .phase-num {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  transition: transform 0.3s ease;
}

.adoption-phase:hover .phase-num {
  transform: scale(1.05);
}

.adoption-phase h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.adoption-phase li {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.adoption-phase li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  opacity: 0.5;
}

/* === KB QUICK LINKS === */
.kb-card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-xs);
}

.kb-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.kb-card .kb-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.kb-card .card-link {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.kb-card .card-link:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-sm);
}

/* === FOOTER === */
.footer {
  text-align: center;
  padding: 32px 20px;
  padding-bottom: calc(32px + var(--safe-bottom));
  color: var(--text-muted);
  font-size: 12px;
  border-top: 1px solid var(--border-subtle);
}

.footer a {
  color: var(--text-secondary);
  font-weight: 500;
}

/* === COMPLETION BANNER === */
.completion-banner {
  display: none;
  background: var(--apollo-black);
  color: var(--apollo-white);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 20px;
  text-align: center;
  animation: fadeUp 0.4s ease;
}

.completion-banner.visible {
  display: block;
}

.completion-banner h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.completion-banner p {
  font-size: 13px;
  opacity: 0.8;
}

/* ============================================================
   RESPONSIVE DESIGN — Hyper-Responsive Sidebar Layout
   ============================================================ */

/* === MOBILE: Sidebar as overlay drawer (< 768px) === */
@media (max-width: 767px) {
  .sidebar-toggle {
    display: flex;
  }

  .sidebar {
    transform: translateX(-100%);
    box-shadow: none;
    z-index: 91;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.15);
  }

  /* Force full-width sidebar on mobile even if collapsed on desktop */
  .sidebar.open,
  .sidebar.collapsed.open {
    width: var(--sidebar-width);
  }

  .sidebar.collapsed.open .sidebar-nav-item {
    justify-content: flex-start;
    padding: 11px 18px;
    gap: 16px;
  }

  .sidebar.collapsed.open .sidebar-nav-item span {
    opacity: 1;
    width: auto;
    overflow: visible;
    position: static;
    pointer-events: auto;
  }

  .sidebar.collapsed.open .sidebar-footer-link span {
    opacity: 1;
    width: auto;
    overflow: visible;
    position: static;
  }

  .sidebar.collapsed.open .sidebar-footer-link {
    justify-content: flex-start;
    padding: 8px 12px;
  }

  /* Hide collapse button on mobile — not relevant for drawer mode */
  .sidebar-collapse-btn {
    display: none;
  }

  .sidebar-overlay {
    display: block;
  }

  .app {
    margin-left: 0;
    padding: 16px 16px 48px;
  }

  .app.sidebar-collapsed {
    margin-left: 0;
  }

  .footer {
    margin-left: 0;
  }

  .hero {
    padding: 20px 0 16px;
  }

  .hero h1 {
    font-size: 22px;
  }

  .hero p {
    font-size: 14px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .resources-grid {
    grid-template-columns: 1fr;
  }

  .adoption-path {
    grid-template-columns: 1fr;
  }

  .academy-grid {
    grid-template-columns: 1fr;
  }
}

/* Tiny phones (< 374px) */
@media (max-width: 374px) {
  .app {
    padding: 12px 10px 48px;
  }

  .header-title {
    font-size: 13px;
  }

  .lang-btn {
    padding: 5px 8px;
    font-size: 10px;
    min-width: 30px;
  }

  .hero-badge {
    font-size: 10px;
    padding: 5px 12px;
  }
}

/* Standard phones (375px - 479px) */
@media (min-width: 375px) and (max-width: 479px) {
  .adoption-path {
    grid-template-columns: 1fr 1fr;
  }
}

/* Large phones (480px - 639px) */
@media (min-width: 480px) and (max-width: 639px) {
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .adoption-path {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small tablets (640px - 767px) */
@media (min-width: 640px) and (max-width: 767px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .adoption-path {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === TABLET: Narrow sidebar (768px - 1023px) === */
@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --sidebar-width: 220px;
  }

  .app {
    padding: 20px 24px 60px;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .adoption-path {
    grid-template-columns: repeat(2, 1fr);
  }

  .sidebar-nav-item {
    font-size: 12px;
    padding: 10px 14px;
  }
}

/* === DESKTOP (1024px+) === */
@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .resources-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .card:hover {
    transform: translateY(-3px);
  }
}

/* === WIDE DESKTOP (1280px+) === */
@media (min-width: 1280px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .resources-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Touch device overrides */
@media (hover: none) and (pointer: coarse) {
  .card:hover {
    transform: none;
    box-shadow: var(--shadow-xs);
  }

  .card:active {
    transform: scale(0.99);
    box-shadow: var(--shadow-sm);
    transition: transform 0.1s ease;
  }

  .card-link:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-primary);
  }

  .card-link:active {
    background: var(--apollo-black);
    color: var(--apollo-white);
  }

  .resource-card:hover {
    transform: none;
    box-shadow: var(--shadow-xs);
  }

  .resource-card:active {
    background: var(--bg-tertiary);
  }

  .sidebar-nav-item:active {
    transform: scale(0.98);
  }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: 12px 0;
  }

  .hero h1 {
    font-size: 20px;
  }

  body {
    padding-top: 50px;
  }

  .header {
    height: 50px;
  }

  :root {
    --header-height: 50px;
  }
}

/* High-DPI displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

  .card,
  .workflow-card,
  .resource-card,
  .adoption-phase,
  .sidebar {
    border-width: 0.5px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print */
@media print {

  .header,
  .lang-switcher,
  .sidebar,
  .sidebar-toggle,
  .footer {
    display: none;
  }

  body {
    padding-top: 0;
    background: white;
  }

  .app {
    margin-left: 0;
  }

  .section {
    display: block !important;
    page-break-inside: avoid;
  }

  .section:not(.active) {
    display: block !important;
  }

  .card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* ============================================================
   NEW FEATURES — Quick Launch, Progress, Spotlight, Workflows
   ============================================================ */

/* === QUICK LAUNCH PAD (Ctrl+K) === */
.launch-pad-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 18vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.launch-pad-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.launch-pad {
  width: 560px;
  max-width: 92%;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  animation: launchPadIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes launchPadIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(-12px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.launch-pad-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-primary);
}

.launch-pad-header svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.launch-pad-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-primary);
  font-family: inherit;
}

.launch-pad-input::placeholder {
  color: var(--text-muted);
}

.launch-pad-kbd {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 5px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  font-family: inherit;
  line-height: 1.6;
}

.launch-pad-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 6px;
}

.launch-pad-results::-webkit-scrollbar {
  width: 4px;
}

.launch-pad-results::-webkit-scrollbar-thumb {
  background: var(--border-primary);
  border-radius: 4px;
}

.lp-group-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  padding: 10px 12px 4px;
}

.lp-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s ease;
  text-decoration: none;
  color: var(--text-primary);
}

.lp-item:hover,
.lp-item.active {
  background: var(--bg-secondary);
}

.lp-item-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-secondary);
}

.lp-item:hover .lp-item-icon {
  background: linear-gradient(135deg, rgba(249, 255, 45, 0.12), rgba(249, 255, 45, 0.04));
  color: var(--text-primary);
}

.lp-item-text {
  flex: 1;
  min-width: 0;
}

.lp-item-title {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lp-item-desc {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lp-item-badge {
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  color: var(--text-muted);
  flex-shrink: 0;
}

.lp-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* Ctrl+K trigger hint in header */
.launch-pad-hint {
  display: none;
  align-items: center;
  gap: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius);
  padding: 5px 12px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 12px;
}

.launch-pad-hint:hover {
  border-color: var(--border-hover);
  color: var(--text-secondary);
}

@media (min-width: 768px) {
  .launch-pad-hint {
    display: flex;
  }
}

/* === PROGRESS TRACKER === */
.progress-tracker {
  margin-bottom: 20px;
}

.progress-tracker-inner {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-xs);
}

.progress-tracker-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.progress-tracker-label svg {
  color: var(--apollo-yellow-hover);
  flex-shrink: 0;
}

.progress-bar-track {
  width: 100%;
  height: 6px;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--apollo-yellow), var(--apollo-yellow-hover));
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 24px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {

  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }
}

/* Card completion checkmark overlay */
.card-check-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border-primary);
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  z-index: 2;
  padding: 0;
  color: transparent;
}

.card-check-btn:hover {
  border-color: var(--apollo-yellow-hover);
  background: rgba(249, 255, 45, 0.06);
}

.card-check-btn.checked {
  background: var(--apollo-yellow);
  border-color: var(--apollo-yellow);
  color: var(--apollo-black);
}

.card-check-btn svg {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}

.card.completed {
  opacity: 0.65;
  position: relative;
}

.card.completed .card-check-btn {
  background: var(--apollo-yellow);
  border-color: var(--apollo-yellow);
  color: var(--apollo-black);
}

.card {
  position: relative;
}

/* === ACADEMY SPOTLIGHT CAROUSEL === */
.spotlight-section {
  margin-bottom: 24px;
}

.spotlight-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.spotlight-title svg {
  color: var(--apollo-yellow-hover);
}

.spotlight-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.spotlight-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.spotlight-slide {
  min-width: 100%;
  box-sizing: border-box;
}

.spotlight-card {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  min-height: 100px;
}

.spotlight-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.spotlight-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(249, 255, 45, 0.12);
  color: var(--apollo-yellow-hover);
  margin-bottom: 6px;
  display: inline-block;
}

.spotlight-card h4 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
}

.spotlight-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.spotlight-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(249, 255, 45, 0.15), rgba(168, 85, 247, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--apollo-yellow-hover);
}

.spotlight-icon svg {
  width: 24px;
  height: 24px;
}

.spotlight-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.spotlight-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-primary);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.spotlight-dot.active {
  background: var(--apollo-yellow);
  width: 20px;
  border-radius: var(--radius-full);
}

/* === INTERACTIVE WORKFLOW VISUALIZER === */
.wf-flow {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  row-gap: 12px;
  padding: 4px 0;
}

.wf-flow-node {
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-primary);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  cursor: default;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateX(-8px);
}

.wf-flow-node.animated {
  opacity: 1;
  transform: translateX(0);
}

.wf-flow-node:hover {
  border-color: var(--apollo-yellow);
  background: linear-gradient(135deg, rgba(249, 255, 45, 0.06), transparent);
  box-shadow: 0 0 12px rgba(249, 255, 45, 0.1);
  transform: translateY(-2px);
}

.wf-flow-node .wf-node-num {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--apollo-yellow);
  color: var(--apollo-black);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xs);
}

.wf-flow-arrow {
  display: flex;
  align-items: center;
  padding: 0 4px;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.3s ease 0.1s;
}

.wf-flow-arrow.animated {
  opacity: 1;
}

.wf-flow-arrow svg {
  width: 18px;
  height: 18px;
  animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {

  0%,
  100% {
    transform: translateX(0);
    opacity: 0.5;
  }

  50% {
    transform: translateX(2px);
    opacity: 1;
  }
}

/* ====================================================
   ASSISTANT — Premium AI-Emulating Onboarding Bot
   ==================================================== */

/* === ONBOARDING OVERLAY === */
.assistant-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.assistant-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.assistant-overlay.closing {
  opacity: 0;
  pointer-events: none;
}

.ao-modal {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 32px 28px 28px;
  max-width: 580px;
  width: 94%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.25), 0 8px 24px rgba(0, 0, 0, 0.1);
  animation: aoModalIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.ao-modal::-webkit-scrollbar {
  width: 4px;
}

.ao-modal::-webkit-scrollbar-track {
  background: transparent;
}

.ao-modal::-webkit-scrollbar-thumb {
  background: var(--border-primary);
  border-radius: 10px;
}

@keyframes aoModalIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(24px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Step indicator */
.ao-step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 24px;
}

.ao-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  border: 2px solid var(--border-primary);
  color: var(--text-muted);
  background: var(--bg-secondary);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.ao-step-dot.active {
  border-color: var(--apollo-yellow);
  background: var(--apollo-yellow);
  color: var(--apollo-black);
  box-shadow: 0 0 12px rgba(249, 255, 45, 0.3);
}

.ao-step-dot.done {
  border-color: var(--apollo-yellow);
  background: rgba(249, 255, 45, 0.15);
  color: var(--apollo-yellow);
}

.ao-step-line {
  width: 32px;
  height: 2px;
  background: var(--border-primary);
  flex-shrink: 0;
}

/* Apollo Logo */
.ao-logo-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 4px rgba(249, 255, 45, 0.15), 0 0 24px rgba(249, 255, 45, 0.1);
  animation: avatarPulse 3s ease-in-out infinite;
}

.ao-logo-wrap svg {
  width: 100%;
  height: 100%;
}

/* Wizard text */
.ao-wizard h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.ao-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 420px;
  margin: 0 auto 20px;
}

/* Roles Grid */
.ao-roles-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.ao-role-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 6px 10px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border-primary);
  background: var(--bg-secondary);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  font-family: inherit;
}

.ao-role-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.ao-role-card.selected {
  border-color: var(--apollo-yellow);
  background: rgba(249, 255, 45, 0.06);
  box-shadow: 0 0 0 2px rgba(249, 255, 45, 0.2);
}

.ao-role-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(249, 255, 45, 0.1), rgba(168, 85, 247, 0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.ao-role-icon svg {
  width: 16px;
  height: 16px;
}

.ao-role-card:hover .ao-role-icon,
.ao-role-card.selected .ao-role-icon {
  color: var(--apollo-yellow-hover);
  background: linear-gradient(135deg, rgba(249, 255, 45, 0.18), rgba(168, 85, 247, 0.1));
}

.ao-role-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

/* Form Groups */
.ao-form-group {
  text-align: left;
  margin-bottom: 16px;
}

.ao-form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.ao-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin: -4px 0 8px;
  line-height: 1.4;
}

/* Chip selectors */
.ao-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ao-chip {
  font-size: 11px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-primary);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
}

.ao-chip:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.ao-chip.selected {
  background: linear-gradient(135deg, rgba(249, 255, 45, 0.12), rgba(168, 85, 247, 0.08));
  border-color: var(--apollo-yellow);
  color: var(--text-primary);
  font-weight: 500;
}

.ao-chip-intent.selected {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(249, 255, 45, 0.08));
  border-color: #a855f7;
}

/* Inputs */
.ao-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border-primary);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.ao-input:focus {
  outline: none;
  border-color: var(--apollo-yellow);
  box-shadow: 0 0 0 2px rgba(249, 255, 45, 0.1);
}

.ao-input::placeholder {
  color: var(--text-muted);
}

/* Buttons */
.ao-btn-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.ao-btn-primary {
  padding: 10px 28px;
  border-radius: var(--radius-full);
  background: var(--apollo-yellow);
  color: var(--apollo-black);
  font-weight: 600;
  font-size: 13px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.ao-btn-primary:hover {
  background: var(--apollo-yellow-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(249, 255, 45, 0.25);
}

.ao-btn-secondary {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 13px;
  border: 1px solid var(--border-primary);
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.ao-btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-card);
}

.ao-skip {
  font-size: 12px;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 16px;
  transition: color 0.2s ease;
  font-family: inherit;
  margin-top: 8px;
}

.ao-skip:hover {
  color: var(--text-primary);
}

/* Plan container */
.ao-plan-container {
  text-align: left;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius);
  padding: 20px;
  max-height: 340px;
  overflow-y: auto;
  margin: 16px 0;
}

.ao-plan-container::-webkit-scrollbar {
  width: 4px;
}

.ao-plan-container::-webkit-scrollbar-thumb {
  background: var(--border-primary);
  border-radius: 10px;
}

.ao-plan-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 0;
}

.ao-plan-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-primary);
  border-top-color: var(--apollo-yellow);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.ao-plan-loading p {
  font-size: 13px;
  color: var(--text-muted);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.ao-plan-text {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-primary);
}

.ao-plan-text h2,
.ao-plan-text h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 16px 0 8px;
  color: var(--text-primary);
}

.ao-plan-text h4 {
  font-size: 13px;
  font-weight: 600;
  margin: 12px 0 6px;
  color: var(--apollo-yellow-hover);
}

.ao-plan-text ul {
  padding-left: 18px;
  margin: 6px 0;
}

.ao-plan-text li {
  margin-bottom: 4px;
}

.ao-plan-text strong {
  color: var(--apollo-yellow-hover);
}

/* === FAB BUTTON === */
.chat-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #111, #000);
  color: var(--apollo-yellow);
  border: none;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(249, 255, 45, 0);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  touch-action: manipulation;
}

.chat-fab svg {
  width: 24px;
  height: 24px;
}

.chat-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.3), 0 0 0 4px rgba(249, 255, 45, 0.15);
}

.chat-fab:active {
  transform: scale(0.96);
}

.chat-fab.hidden {
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

.chat-fab.pulsing {
  animation: fabPulse 2s ease-in-out infinite;
}

@keyframes fabPulse {

  0%,
  100% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(249, 255, 45, 0.4);
  }

  50% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 0 0 0 12px rgba(249, 255, 45, 0);
  }
}

/* === CHAT PANEL === */
.chat-panel {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 400px;
  max-height: 600px;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.08);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.92) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: bottom right;
}

.chat-panel.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* === CHAT HEADER === */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: linear-gradient(135deg, #111 0%, #1a1a2e 100%);
  color: var(--apollo-white);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.chat-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249, 255, 45, 0.3), transparent);
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(249, 255, 45, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--apollo-yellow);
  position: relative;
  flex-shrink: 0;
}

.chat-avatar svg {
  width: 16px;
  height: 16px;
  position: relative;
  z-index: 1;
}

.chat-avatar-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(249, 255, 45, 0.3);
  animation: ringPulse 3s ease-in-out infinite;
}

@keyframes ringPulse {

  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.08);
  }
}

.chat-header-text {
  display: flex;
  flex-direction: column;
}

.chat-header-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.chat-header-status {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 4px;
}

@keyframes statusBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.chat-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(90deg);
}

/* === CHAT BODY === */
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
  max-height: 380px;
}

.chat-body::-webkit-scrollbar {
  width: 4px;
}

.chat-body::-webkit-scrollbar-track {
  background: transparent;
}

.chat-body::-webkit-scrollbar-thumb {
  background: var(--border-primary);
  border-radius: 10px;
}

/* === CHAT MESSAGES === */
.chat-message {
  display: flex;
  gap: 8px;
}

@keyframes chatFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-msg-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(249, 255, 45, 0.12), rgba(168, 85, 247, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #b8a300;
  margin-top: 2px;
}

.chat-msg-avatar svg {
  width: 12px;
  height: 12px;
}

.chat-msg-content {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-primary);
  font-weight: 400;
}

.bot-message .chat-msg-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 2px var(--radius-sm) var(--radius-sm) var(--radius-sm);
  padding: 10px 13px;
  max-width: 300px;
}

.user-message {
  justify-content: flex-end;
}

.user-message .chat-msg-content {
  background: var(--apollo-black);
  color: var(--apollo-white);
  border-radius: var(--radius-sm) var(--radius-sm) 2px var(--radius-sm);
  padding: 8px 13px;
  font-weight: 500;
  font-size: 12.5px;
  max-width: 260px;
}

/* === TYPING INDICATOR === */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 0;
}

.typing-indicator span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typingBounce 1.2s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typingBounce {

  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  30% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

/* === SUGGESTION PILLS === */
.chat-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.chat-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  touch-action: manipulation;
  font-family: inherit;
  position: relative;
  line-height: 1.3;
}

.chat-pill:hover {
  background: var(--apollo-black);
  color: var(--apollo-white);
  border-color: var(--apollo-black);
}

.chat-pill:active {
  transform: scale(0.97);
}

.chat-pill-recommended {
  border-color: rgba(249, 255, 45, 0.35);
  background: rgba(249, 255, 45, 0.04);
  color: var(--text-primary);
}

.chat-pill-recommended:hover {
  background: var(--apollo-black);
  border-color: var(--apollo-black);
}

.pill-rec-badge {
  font-size: 9px;
  color: #b8a300;
  margin-left: 1px;
}

.chat-pill-back {
  background: transparent;
  border-style: dashed;
  color: var(--text-muted);
  font-weight: 400;
  grid-column: 1 / -1;
}

.chat-pill-back:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--border-hover);
  border-style: solid;
}

.chat-pill-all {
  background: transparent;
  border-style: dotted;
  border-color: var(--apollo-accent, #6c5ce7);
  color: var(--apollo-accent, #6c5ce7);
  font-weight: 500;
  grid-column: 1 / -1;
  font-size: 10px;
  letter-spacing: 0.3px;
}

.chat-pill-all:hover {
  background: rgba(108, 92, 231, 0.08);
  border-color: var(--apollo-accent, #6c5ce7);
  color: var(--apollo-accent, #6c5ce7);
  border-style: solid;
}

/* === FEEDBACK ROW === */
.chat-feedback {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.chat-feedback-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.chat-feedback-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-primary);
  background: var(--bg-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.chat-feedback-btn:hover {
  transform: scale(1.15);
  box-shadow: var(--shadow-sm);
}

.chat-feedback-thanks {
  font-size: 12px;
  color: #4ade80;
  font-weight: 500;
  animation: chatFadeIn 0.3s ease;
}

/* Quick actions bar — see agentic section below for final styles */

/* === MOBILE ASSISTANT === */
@media (max-width: 479px) {
  .chat-fab {
    bottom: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
  }

  .chat-fab svg {
    width: 22px;
    height: 22px;
  }

  .chat-panel {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    top: 0;
    width: 100%;
    max-height: 100%;
    border-radius: 0;
    border: none;
    transform: translateY(100%);
    transform-origin: bottom center;
  }

  .chat-panel.open {
    transform: translateY(0);
  }

  .chat-body {
    max-height: none;
    flex: 1;
  }

  .chat-header {
    padding: 14px 16px;
    padding-top: calc(14px + var(--safe-top));
  }

  .bot-message .chat-msg-content {
    max-width: 100%;
  }

  .chat-pill {
    padding: 10px 16px;
    font-size: 13px;
  }

  .ao-modal {
    width: 95%;
    padding: 28px 20px 24px;
  }

  .ao-roles-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .ao-role-card:last-child {
    grid-column: 1 / -1;
  }

  .lang-dropdown {
    right: -8px;
    min-width: 180px;
  }
}

/* === TABLET ASSISTANT === */
@media (min-width: 480px) and (max-width: 767px) {
  .chat-panel {
    width: 370px;
    bottom: 80px;
    right: 16px;
    max-height: 520px;
  }

  .chat-body {
    max-height: 340px;
  }
}

/* Print: hide assistant */
@media print {

  .chat-fab,
  .chat-panel,
  .assistant-overlay,
  #apolloAssistant {
    display: none !important;
  }
}

/* === AGENTIC ASSISTANT ADDITIONS === */

/* Chat input row */
.chat-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-top: 1px solid var(--border-primary);
  background: var(--bg-card);
}

.chat-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-full);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 12px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus {
  border-color: var(--text-muted);
  box-shadow: none;
}

.chat-input::placeholder {
  color: var(--text-muted);
  font-size: 11.5px;
}

.chat-send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--apollo-black);
  color: var(--apollo-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.chat-send-btn svg {
  width: 14px;
  height: 14px;
}

.chat-send-btn:hover {
  opacity: 0.8;
}

.chat-send-btn:active {
  transform: scale(0.93);
}

/* Chat quick actions */
.chat-quick-actions {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 6px 12px 8px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.chat-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.chat-quick-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.chat-quick-btn svg {
  width: 11px;
  height: 11px;
}

/* Action chips (navigate to section) */
.chat-action-chips {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding: 2px 0 6px 32px;
}

.chat-action-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chat-action-chip:hover {
  background: var(--apollo-black);
  color: var(--apollo-white);
  border-color: var(--apollo-black);
}

.chat-action-chip:active {
  transform: scale(0.97);
}

/* Action confirmation */
.chat-action-confirm {
  display: flex;
  justify-content: center;
  padding: 6px 0;
}

.chat-action-confirm span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: rgba(34, 197, 94, 0.08);
  color: #16a34a;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Chat feedback */
.chat-feedback {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0 4px 32px;
}

.chat-feedback-label {
  font-size: 11px;
  color: var(--text-muted);
}

.chat-feedback-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.15s ease;
  opacity: 0.6;
}

.chat-feedback-btn:hover {
  opacity: 1;
  transform: scale(1.15);
}

.chat-feedback-thanks {
  font-size: 11px;
  color: #16a34a;
  font-weight: 500;
}

/* Status dot */
.chat-status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  margin-right: 3px;
  animation: statusBlink 2s ease-in-out infinite;
}

/* ====================================================
   ENHANCED ANIMATIONS & MICRO-INTERACTIONS
   ==================================================== */

/* === STREAMING CURSOR (AI Response) === */
.streaming-cursor {
  display: inline;
  animation: cursorBlink 0.8s ease-in-out infinite;
  color: var(--apollo-yellow);
  font-weight: 300;
}

@keyframes cursorBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* === HERO ANIMATED GRADIENT === */
.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(249, 255, 45, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(168, 85, 247, 0.04) 0%, transparent 50%);
  animation: heroGradient 15s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes heroGradient {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  100% {
    transform: translate(2%, 2%) rotate(3deg);
  }
}

/* === ENHANCED CARD HOVER === */
.card {
  position: relative;
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(249, 255, 45, 0.06) 0%, transparent 60%);
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card:hover::after {
  opacity: 1;
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(249, 255, 45, 0.08), 0 8px 32px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px);
}

/* Card icon subtle animation on hover */
.card:hover .card-icon {
  transform: scale(1.05);
}

/* === ENHANCED SECTION TRANSITIONS === */
.section {
  animation: sectionEntrance 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes sectionEntrance {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* === SIDEBAR HOVER EFFECTS === */
.sidebar-nav-item {
  position: relative;
  overflow: hidden;
}

.sidebar-nav-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(249, 255, 45, 0.12), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: inherit;
}

.sidebar-nav-item.active::after {
  opacity: 0.5;
}

/* === ENHANCED CHAT PANEL === */
.chat-panel {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.chat-panel.open {
  animation: chatPanelOpen 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes chatPanelOpen {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(24px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* === ENHANCED CHAT HEADER === */
.chat-header {
  background: linear-gradient(135deg, #0a0a1a 0%, #1a1a35 50%, #0d0d20 100%);
  position: relative;
}

.chat-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(249, 255, 45, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* === CHAT FAB ENHANCED === */
.chat-fab {
  background: linear-gradient(135deg, #111 0%, #000 60%, #1a1a2e 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
    0 0 0 0 rgba(249, 255, 45, 0),
    0 0 40px rgba(249, 255, 45, 0.05);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-fab:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35),
    0 0 0 4px rgba(249, 255, 45, 0.2),
    0 0 50px rgba(249, 255, 45, 0.1);
}

.chat-fab:hover svg {
  transform: rotate(15deg);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* === CHAT MESSAGE ANIMATIONS === */
.chat-message {
  animation: messageSlideIn 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bot-message .chat-msg-content {
  position: relative;
  overflow: hidden;
}

.bot-message .chat-msg-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent 40%, rgba(249, 255, 45, 0.04) 50%, transparent 60%);
  animation: msgShimmer 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes msgShimmer {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(50%);
  }
}

/* === CHAT PILLS ENHANCED === */
.chat-pill {
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-pill:hover {
  transform: scale(1.03);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.chat-pill:active {
  transform: scale(0.95);
}

/* === PROGRESS BAR ANIMATION === */
.progress-bar-fill {
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: progressShimmer 2s ease-in-out infinite;
}

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

  100% {
    transform: translateX(100%);
  }
}

/* === RESOURCE CARD HOVER === */
.resource-card {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* === CARD CHECK ANIMATION === */
.card-check-btn.checked {
  animation: checkPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes checkPop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.3);
  }

  100% {
    transform: scale(1);
  }
}

/* === COMPLETED CARD VISUAL === */
.card.completed {
  opacity: 0.75;
  border-color: rgba(34, 197, 94, 0.3);
  transition: all 0.4s ease;
}

.card.completed:hover {
  opacity: 1;
}

/* === SPOTLIGHT ENHANCED === */
.spotlight-card {
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.spotlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* === SCROLLBAR STYLING === */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-primary);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

/* === HEADER SEARCH HINT ANIMATION === */
.launch-pad-hint {
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.launch-pad-hint:hover {
  transform: scale(1.02);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ====================================================
   RESPONSIVE DESIGN POLISH
   ==================================================== */

/* === LARGE DESKTOP (1400px+) === */
@media (min-width: 1400px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .section-desc {
    max-width: 780px;
  }
}

/* === STANDARD DESKTOP (1200-1399px) === */
@media (min-width: 1200px) and (max-width: 1399px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === SMALL DESKTOP (992-1199px) === */
@media (min-width: 992px) and (max-width: 1199px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .chat-panel {
    width: 380px;
    max-height: 560px;
  }
}

/* === TABLET (768-991px) === */
@media (min-width: 768px) and (max-width: 991px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .hero h1 {
    font-size: clamp(22px, 3.5vw, 30px);
  }

  .section-header h2 {
    font-size: 20px;
  }

  .chat-panel {
    width: 360px;
    max-height: 520px;
    bottom: 80px;
    right: 20px;
  }
}

/* === SMALL TABLET (600-767px) === */
@media (min-width: 600px) and (max-width: 767px) {
  .card-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .chat-panel {
    width: 350px;
    bottom: 80px;
    right: 16px;
  }
}

/* === MOBILE LANDSCAPE (480-599px) === */
@media (min-width: 480px) and (max-width: 599px) {
  .card-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero h1 {
    font-size: 22px;
  }

  .section-header h2 {
    font-size: 18px;
  }
}

/* === MOBILE (≤479px) -- patch existing === */
@media (max-width: 479px) {
  .card-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .card {
    padding: 18px;
  }

  .hero h1 {
    font-size: 22px;
  }

  .hero {
    padding: 24px 16px;
  }

  .section-desc {
    font-size: 13px;
  }

  .section-header h2 {
    font-size: 18px;
  }

  /* Full screen chat panel on mobile */
  .chat-panel {
    border-radius: 0;
  }

  .chat-body {
    max-height: none;
    flex: 1;
  }

  /* Improve pill touch targets */
  .chat-pill {
    padding: 12px 16px;
    font-size: 13px;
  }

  /* Tips bar compact */
  .tips-bar {
    padding: 12px 14px;
    gap: 10px;
  }

  .tips-bar-text {
    font-size: 12px;
  }
}

/* === SMALL MOBILE (≤360px) === */
@media (max-width: 360px) {
  .hero h1 {
    font-size: 20px;
  }

  .card {
    padding: 16px;
  }

  .card h3 {
    font-size: 14px;
  }

  .card>p {
    font-size: 12px;
  }

  .chat-header-title {
    font-size: 12px;
  }
}

/* === SMOOTH FOCUS STATES === */
.chat-input:focus {
  border-color: var(--apollo-yellow);
  box-shadow: 0 0 0 3px rgba(249, 255, 45, 0.1);
}

.card-link:focus-visible,
.chat-pill:focus-visible,
.sidebar-nav-item:focus-visible {
  outline: 2px solid var(--apollo-yellow);
  outline-offset: 2px;
}

/* === REDUCED MOTION === */
/* === VOICE FEATURES === */
.chat-voice-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border-primary);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.chat-voice-btn:hover {
  background: var(--apollo-accent, #6c5ce7);
  color: white;
  border-color: var(--apollo-accent, #6c5ce7);
}

.chat-voice-btn.recording {
  background: #e74c3c;
  border-color: #e74c3c;
  color: white;
  animation: micPulse 1s infinite;
}

@keyframes micPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(231, 76, 60, 0);
  }
}

/* TTS speaker icon on bot messages */
.chat-tts-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 3px;
  border-radius: 4px;
  opacity: 0;
  transition: all 0.2s ease;
}

.bot-message {
  position: relative;
}

.bot-message:hover .chat-tts-btn {
  opacity: 0.6;
}

.chat-tts-btn:hover {
  opacity: 1 !important;
  color: var(--apollo-accent, #6c5ce7);
  background: rgba(108, 92, 231, 0.1);
}

.chat-tts-btn.playing {
  opacity: 1 !important;
  color: var(--apollo-accent, #6c5ce7);
  animation: ttsPulse 1.5s infinite;
}

@keyframes ttsPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }
}

/* Conversation mode toggle */
.chat-conv-toggle.active {
  color: var(--apollo-accent, #6c5ce7) !important;
  opacity: 1 !important;
  background: rgba(108, 92, 231, 0.15);
  border-radius: 6px;
}

/* === CONVERSATION MODE OVERLAY === */
.voice-conv-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.voice-conv-overlay.open {
  opacity: 1;
}

.voice-conv-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 90%;
  max-width: 480px;
  padding: 40px 24px;
  position: relative;
}

.voice-conv-close {
  position: absolute;
  top: 0;
  right: 0;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 28px;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s;
}

.voice-conv-close:hover {
  color: #fff;
}

/* Animated orb */
.voice-orb-container {
  position: relative;
  width: 140px;
  height: 140px;
}

.voice-orb {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.voice-orb-core {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #7c6cf7, #5541d7);
  box-shadow: 0 0 30px rgba(108, 92, 231, 0.5);
  transition: all 0.5s ease;
}

.voice-orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(108, 92, 231, 0.3);
  transition: all 0.5s ease;
}

.voice-orb-ring:nth-child(1) {
  width: 100px;
  height: 100px;
  top: 20px;
  left: 20px;
}

.voice-orb-ring:nth-child(2) {
  width: 130px;
  height: 130px;
  top: 5px;
  left: 5px;
}

/* Listening state — blue pulse */
.voice-orb.listening .voice-orb-core {
  background: radial-gradient(circle at 35% 35%, #4facfe, #00b4db);
  box-shadow: 0 0 40px rgba(79, 172, 254, 0.5);
  animation: orbPulse 1.5s infinite ease-in-out;
}

.voice-orb.listening .voice-orb-ring {
  border-color: rgba(79, 172, 254, 0.3);
  animation: ringPulse 2s infinite ease-in-out;
}

/* Thinking state — amber */
.voice-orb.thinking .voice-orb-core {
  background: radial-gradient(circle at 35% 35%, #f7a941, #e67e22);
  box-shadow: 0 0 40px rgba(247, 169, 65, 0.5);
  animation: orbSpin 1.2s infinite linear;
}

.voice-orb.thinking .voice-orb-ring {
  border-color: rgba(247, 169, 65, 0.3);
  animation: ringPulse 1s infinite ease-in-out;
}

/* Speaking state — green */
.voice-orb.speaking .voice-orb-core {
  background: radial-gradient(circle at 35% 35%, #00d2b4, #00a878);
  box-shadow: 0 0 40px rgba(0, 210, 180, 0.5);
  animation: orbBounce 0.8s infinite ease-in-out;
}

.voice-orb.speaking .voice-orb-ring {
  border-color: rgba(0, 210, 180, 0.3);
  animation: ringPulse 1.2s infinite ease-in-out;
}

@keyframes orbPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.12);
  }
}

@keyframes orbSpin {
  0% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(180deg) scale(0.95);
  }

  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes orbBounce {

  0%,
  100% {
    transform: scale(1);
  }

  25% {
    transform: scale(1.08);
  }

  75% {
    transform: scale(0.95);
  }
}

@keyframes ringPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.4;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
}

.voice-conv-status {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.5px;
}

.voice-conv-transcript {
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.voice-msg {
  padding: 6px 0;
  font-size: 13px;
  line-height: 1.4;
}

.voice-msg.user {
  color: rgba(255, 255, 255, 0.7);
}

.voice-msg.ai {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}