﻿/* ============================
   咨询川AI科技有限公司 — Premium AI Tech Design
   参考智谱AI设计语言
   ============================ */

/* ============================
   Design Tokens
   ============================ */
:root {
  /* Brand */
  --brand-1: #2468F2;
  --brand-2: #4A7AFF;
  --brand-3: #6C5CE7;
  --brand-4: #5B8CFF;
  --accent-1: #00C4B4;
  --accent-2: #00D4C4;

  /* Gradients */
  --grad-brand:  linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #A78BFA 100%);
  --grad-hero: linear-gradient(135deg, #2468F2 0%, #4A7AFF 30%, #5B8CFF 70%, #00C4B4 100%);
  --grad-card: linear-gradient(135deg, rgba(79,70,229,.08) 0%, rgba(124,58,237,.08) 100%);
  --grad-dark: linear-gradient(180deg, #0A0D1A 0%, #111827 30%, #1A1040 70%, #0F172A 100%);
  --grad-orb-1: radial-gradient(circle at 50% 50%, rgba(99,102,241,.35) 0%, transparent 60%);
  --grad-orb-2: radial-gradient(circle at 50% 50%, rgba(6,182,212,.25) 0%, transparent 60%);
  --grad-orb-3: radial-gradient(circle at 50% 50%, rgba(124,58,237,.3) 0%, transparent 60%);

  /* Surfaces */
  --surface-dark: #F5F7FA;
  --surface-dark-2: #EEF1F6;
  --surface-dark-3: #1A1040;
  --surface-light: #FFFFFF;
  --surface-white: #FFFFFF;
  --surface-gray: #F0F2F5;
  --surface-glass: rgba(255,255,255,.9);
  --surface-glass-hover: #FFFFFF;

  /* Text */
  --text-primary: #1A1A2E;
  --text-secondary: #4A5568;
  --text-tertiary: #A0AEC0;
  --text-inverse: #1A1A2E;
  --text-inverse-dim: #4A5568;

  /* Borders */
  --border-light: #E2E8F0;
  --border-glass: #E2E8F0;
  --border-glass-hover: #CBD5E0;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.06), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 12px 40px rgba(79,70,229,.12), 0 4px 12px rgba(0,0,0,.06);
  --shadow-glow: 0 0 30px rgba(99,102,241,.2), 0 0 60px rgba(124,58,237,.1);
  --shadow-glow-intense: 0 0 40px rgba(36,104,242,.25), 0 0 80px rgba(91,140,255,.12);
  --grad-blue-purple: linear-gradient(135deg, #2468F2, #6C5CE7);
  --grad-cyber: linear-gradient(135deg, #00C4B4, #2468F2);
  --shadow-glow-cyan: 0 0 30px rgba(6,182,212,.15), 0 0 60px rgba(6,182,212,.08);

  /* Radius */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
}

/* ============================
   Reset & Base
   ============================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--surface-white);
  font-family: "SF Pro Display", apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Grid dot background pattern */
.bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(79,70,229,.12) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 30%, transparent 70%);
}

/* Floating orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-1 { width: 500px; height: 500px; background: var(--grad-orb-1); top: -20%; right: -15%; animation-delay: 0s; }
.orb-2 { width: 400px; height: 400px; background: var(--grad-orb-2); bottom: -15%; left: -10%; animation-delay: -4s; }
.orb-3 { width: 350px; height: 350px; background: var(--grad-orb-3); top: 40%; left: 50%; animation-delay: -6s; }

@keyframes orbFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  25% { transform: translate(30px,-20px) scale(1.05); }
  50% { transform: translate(-15px,25px) scale(.95); }
  75% { transform: translate(-25px,-15px) scale(1.02); }
}

/* ============================
   Typography
   ============================ */
.h1 { font-size: clamp(38px, 5.5vw, 60px); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.h2 { font-size: clamp(28px, 3.5vw, 42px); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.h3 { font-size: 20px; font-weight: 700; line-height: 1.3; }

.gradient-text {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-brand {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section tags/badges */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
}
.section-tag.light {
  background: rgba(79,70,229,.08);
  color: var(--brand-1);
}
.section-tag.dark {
  background: rgba(255,255,255,.08);
  color: var(--brand-4);
}

/* ============================
   Buttons
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--duration-normal) var(--ease-out);
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 2px 12px rgba(79,70,229,.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(79,70,229,.4);
}
.btn-outline {
  background: transparent;
  color: var(--brand-1);
  border: 1.5px solid var(--brand-1);
}
.btn-outline:hover {
  background: rgba(79,70,229,.06);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover {
  background: var(--surface-gray);
  color: var(--text-primary);
}
.btn-lg {
  padding: 15px 34px;
  font-size: 16px;
  border-radius: var(--r-full);
}
.btn-full {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 15px;
}

/* ============================
   Navigation
   ============================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: all var(--duration-normal) var(--ease-out);
}
.navbar.scrolled {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 4px 20px rgba(0,0,0,.04);
  padding: 10px 0;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.navbar .logo .logo-icon {
  width: 38px;
  height: 38px;
  background: var(--grad-brand);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}
.logo-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--duration-fast);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
  transition: width var(--duration-normal) var(--ease-out);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--brand-1); font-weight: 600; }
.nav-links a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
  background: none;
  border: none;
}
.mobile-toggle span {
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-out);
}
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ============================
   Hero Section
   ============================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  background: linear-gradient(180deg, #F0F4FF 0%, #E8EEFF 50%, #FFFFFF 100%);
  position: relative;
  overflow: hidden;
}
.hero .bg-grid {
  background-image: radial-gradient(circle, rgba(79,70,229,.1) 1px, transparent 1px);
  background-size: 28px 28px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-content h1 {
  font-size: clamp(38px, 5.5vw, 60px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 24px;
}
.hero-content h1 .highlight { background: var(--grad-hero); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-content > p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 500px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-1);
  margin-bottom: 24px;
  box-shadow: var(--shadow-xs);
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 52px;
  padding-top: 32px;
  border-top: 1px solid var(--border-glass);
}
.hero-stats .stat h3 {
  font-size: 30px;
  font-weight: 800;
  color: var(--brand-1);
  letter-spacing: -.01em;
}
.hero-stats .stat p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Hero visual card */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: var(--r-xl);
  background: var(--grad-brand);
  opacity: .06;
  filter: blur(40px);
}
.hero-card {
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: 0 20px 60px rgba(79,70,229,.1), 0 1px 0 rgba(255,255,255,.8) inset;
  border: 1px solid rgba(255,255,255,.6);
  width: 100%;
  max-width: 440px;
}
.hero-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}
.hero-card-header .avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}
.hero-card-header .info h4 { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.hero-card-header .info span { font-size: 12px; color: var(--text-inverse-dim); }

.chat-msg {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  animation: fadeSlideIn .5s var(--ease-out) both;
}
.chat-msg:nth-child(1) { animation-delay: .1s; }
.chat-msg:nth-child(2) { animation-delay: .3s; }
.chat-msg:nth-child(3) { animation-delay: .5s; }
.chat-msg.user { flex-direction: row-reverse; }
.chat-msg .bubble {
  max-width: 82%;
  padding: 11px 16px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.6;
}
.chat-msg.ai .bubble {
  background: var(--surface-gray);
  border-bottom-left-radius: 4px;
  color: var(--text-primary);
}
.chat-msg.user .bubble {
  background: var(--grad-brand);
  color: var(--text-primary);
  border-bottom-right-radius: 4px;
}

.chat-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 13px 18px;
  background: var(--surface-gray);
  border-radius: 16px;
  width: fit-content;
  border-bottom-left-radius: 4px;
}
.chat-typing span {
  width: 7px; height: 7px;
  background: var(--brand-1);
  border-radius: 50%;
  animation: typing 1.4s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }

@keyframes typing {
  0%, 60%, 100% { opacity: .3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-6px); }
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================
   Section System
   ============================ */
section { padding: 100px 0; position: relative; }
.section-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}
.section-header .section-tag { margin-bottom: 16px; }
.section-header h2 { margin-bottom: 14px; }
.section-header > p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Light section */
.section-light {
  background: var(--surface-light);
}
/* Dark section */
.section-dark {
  background: var(--surface-dark);
  color: var(--text-inverse);
}
.section-dark .section-header h2 { color: var(--text-primary); }
.section-dark .section-header > p { color: var(--text-secondary); }

/* ============================
   Feature / Service Cards
   ============================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

.model-card {
  background: var(--surface-glass);
  border-radius: var(--r-md);
  padding: 30px 28px;
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
}
.model-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--r-md);
  padding: 1px;
  background: linear-gradient(135deg, rgba(99,102,241,.15), rgba(6,182,212,.08), rgba(124,58,237,.15));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
  pointer-events: none;
}
.model-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(36,104,242,.2);
  background: var(--surface-glass-hover);
}
.model-card:hover::before { opacity: 1; }

.model-card .model-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  position: relative;
}
.model-icon.blue  { background: linear-gradient(135deg, #EEF2FF, #E0E7FF); color: var(--brand-1); }
.model-icon.purple { background: linear-gradient(135deg, #F5F3FF, #EDE9FE); color: var(--brand-3); }
.model-icon.cyan  { background: linear-gradient(135deg, #ECFEFF, #CFFAFE); color: var(--accent-1); }
.model-icon.orange { background: linear-gradient(135deg, #FFF7ED, #FFEDD5); color: #EA580C; }
.model-icon.green  { background: linear-gradient(135deg, #ECFDF5, #D1FAE5); color: #059669; }

.model-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; position: relative; }
.model-card .desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  position: relative;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.feature-list li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 8px 14px;
  background: var(--surface-gray);
  border-radius: var(--r-xs);
  transition: all var(--duration-fast);
  line-height: 1.6;
}
.feature-list li b {
  color: var(--text-primary);
  font-weight: 600;
}
.feature-list li:hover {
  background: rgba(79,70,229,.08);
  color: var(--brand-1);
  transform: translateX(4px);
}

/* ============================
   Service Section
   ============================ */
.services {
  position: relative;
  background: #F5F7FA;
  overflow: hidden;
}
.services .bg-grid {
  background-image: radial-gradient(circle, rgba(99,102,241,.08) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
}
.services .orb-1 {
  width: 450px; height: 450px;
  background: radial-gradient(circle at 50% 50%, rgba(99,102,241,.2), transparent 60%);
  top: -20%; right: -10%;
}
.services .orb-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle at 50% 50%, rgba(6,182,212,.15), transparent 60%);
  bottom: -15%; left: -10%;
}
.services .container {
  position: relative;
  z-index: 1;
}

/* ============================
   /* ============================
   Service Grid Cards (Redesigned)
   ============================ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}
.service-card {
  position: relative;
  border-radius: var(--r-md);
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}
.service-card-glow {
  position: absolute;
  inset: 0;
  border-radius: var(--r-md);
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-out);
  background: radial-gradient(600px circle at 50% 0, rgba(99,102,241,.08), transparent 60%);
  pointer-events: none;
}
.service-card:hover .service-card-glow { opacity: 1; }
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(36,104,242,.2);
  background: var(--surface-glass-hover);
}
.service-card-content {
  padding: 28px 22px;
  position: relative;
  z-index: 1;
}
.service-icon-box {
  width: 48px; height: 48px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.service-icon-box.blue { background: rgba(99,102,241,.12); color: var(--brand-4); }
.service-icon-box.purple { background: rgba(167,139,250,.12); color: #A78BFA; }
.service-icon-box.cyan { background: rgba(6,182,212,.12); color: var(--accent-2); }
.service-icon-box.orange { background: rgba(251,146,60,.12); color: #FB923C; }
.service-title {
  font-size: 18px; font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}
.service-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-inverse-dim);
  margin-bottom: 16px;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.service-tags span {
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 500;
  background: rgba(255,255,255,.06);
  color: var(--text-inverse-dim);
  transition: all var(--duration-fast);
}
.service-tags span:hover { background: rgba(99,102,241,.2); color: var(--text-primary); }
.service-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-4);
  text-decoration: none;
  transition: all var(--duration-fast);
}
.service-btn:hover { gap: 10px; color: var(--accent-2); }

/* ============================
   Agent Experience Section
   ============================ */

/* Playground Card Layout */
.exp-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}
.exp-sidebar {
  flex: 0 0 280px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.exp-sidebar-title {
  padding: 16px 18px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
  letter-spacing: .02em;
}
.exp-agent-list {
  display: flex;
  flex-direction: column;
}
.exp-agent-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  cursor: pointer;
  transition: all var(--duration-fast);
  border-left: 3px solid transparent;
}
.exp-agent-card:hover {
  background: rgba(36,104,242,.03);
}
.exp-agent-card.active {
  background: rgba(36,104,242,.06);
  border-left-color: var(--brand-1);
}
.exp-agent-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.exp-agent-info {
  flex: 1;
  min-width: 0;
}
.exp-agent-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.exp-agent-desc {
  font-size: 12px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.exp-badge-sm {
  display: inline-block;
  padding: 1px 7px;
  border-radius: var(--r-full);
  font-size: 10px;
  font-weight: 700;
  background: linear-gradient(135deg,#2468F2,#5B8CFF);
  color: #fff;
  vertical-align: middle;
  margin-left: 4px;
}
.exp-chat {
  flex: 1;
}
#playground {
  background: var(--grad-dark);
  color: #F9FAFB;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
#playground .bg-grid {
  background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 28px 28px;
}
#playground .orb-1 {
  width: 450px; height: 450px;
  background: radial-gradient(circle at 50% 50%, rgba(99,102,241,.2), transparent 60%);
  top: -20%; right: -10%;
}
#playground .orb-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle at 50% 50%, rgba(6,182,212,.15), transparent 60%);
  bottom: -15%; left: -10%;
}
#playground .container { position: relative; z-index: 1; }
#playground .section-header h2 { color: #F9FAFB; }
#playground .section-header > p { color: rgba(255,255,255,.65); }
.exp-grid {
  max-width: 880px;
  margin: 0 auto 40px;
}
.exp-card {
  position: relative;
  cursor: pointer;
}
.exp-card.active {
  border-color: rgba(99,102,241,.5);
  box-shadow: var(--shadow-glow);
}
.exp-badge {
  position: absolute;
  top: 10px; right: 10px;
  padding: 2px 10px;
  border-radius: var(--r-full);
  font-size: 10px;
  font-weight: 700;
  background: var(--grad-brand);
  color: #fff;
}

/* Experience Chat */
.exp-chat {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.exp-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-glass);
}
.exp-chat-status { display: flex; align-items: center; gap: 10px; }
.exp-chat-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 8px rgba(34,197,94,.5);
}
.exp-chat-name { font-size: 15px; font-weight: 600; color: #F9FAFB; }
.exp-chat-model { font-size: 12px; color: rgba(255,255,255,.5); }
.exp-chat-body {
  padding: 22px;
  min-height: 200px;
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.exp-msg { display: flex; gap: 10px; align-items: flex-start; }
.exp-msg.user { flex-direction: row-reverse; }
.exp-msg-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(99,102,241,.15);
  color: var(--brand-4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.exp-msg.user .exp-msg-avatar { background: rgba(255,255,255,.08); color: rgba(255,255,255,.6); }
.exp-msg-bubble {
  background: rgba(255,255,255,.06);
  border-radius: 14px 14px 14px 4px;
  padding: 12px 16px;
  font-size: 14px;
  color: rgba(255,255,255,.85);
  line-height: 1.7;
  max-width: 480px;
}
.exp-msg.user .exp-msg-bubble {
  background: rgba(99,102,241,.2);
  border-radius: 14px 14px 4px 14px;
  color: #fff;
}
.exp-chat-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--border-glass);
}
.exp-chat-input input {
  flex: 1;
  padding: 12px 18px;
  border-radius: var(--r-full);
  border: 1px solid var(--border-glass);
  background: rgba(255,255,255,.04);
  color: #F9FAFB;
  font-size: 14px;
  outline: none;
  transition: all var(--duration-fast);
}
.exp-chat-input input::placeholder { color: rgba(255,255,255,.25); }
.exp-chat-input input:focus { border-color: rgba(99,102,241,.5); background: rgba(255,255,255,.06); }
.exp-send-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--grad-brand);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-fast);
  flex-shrink: 0;
}
.exp-send-btn:hover { transform: scale(1.1); box-shadow: 0 0 20px rgba(99,102,241,.4); }
.exp-send-btn:active { transform: scale(.95); }

/* ============================
   Legacy Playground / Chat (unused, kept for reference)
   ============================ */
.playground {
  background: var(--grad-dark);
  color: #fff;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.playground .bg-grid {
  background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Agent cards in playground */
.playground .agent-grid {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.playground .agent-card {
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
}
.playground .agent-card:hover {
  background: var(--surface-glass-hover);
  border-color: rgba(36,104,242,.2);
  box-shadow: var(--shadow-glow);
}
.playground .agent-card h4 { color: var(--text-primary); }
.playground .agent-card > p { color: var(--text-inverse-dim); }
.playground .agent-card .agent-icon { background: rgba(255,255,255,.06); }

/* Chat interface */
.chat-interface {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  margin-top: 32px;
  position: relative;
  z-index: 1;
}

.chat-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid var(--border-glass);
}
.chat-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.06);
  border: none;
  color: rgba(255,255,255,.7);
  padding: 7px 14px;
  border-radius: var(--r-xs);
  font-size: 13px;
  transition: all var(--duration-fast);
}
.chat-back:hover { background: rgba(255,255,255,.12); color: var(--text-primary); }
.chat-agent-info { display: flex; align-items: center; gap: 10px; }
.chat-agent-avatar { font-size: 24px; }
.chat-agent-name { font-size: 14px; font-weight: 600; color: #F9FAFB; }
.chat-agent-status {
  font-size: 12px;
  color: #34D399;
  display: flex;
  align-items: center;
  gap: 4px;
}
.chat-agent-status::before {
  content: "";
  width: 6px; height: 6px;
  background: #34D399;
  border-radius: 50%;
}

.chat-actions { display: flex; gap: 6px; }
.chat-action-btn {
  width: 34px; height: 34px;
  border-radius: var(--r-xs);
  border: none;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast);
}
.chat-action-btn:hover { background: rgba(255,255,255,.12); color: var(--text-primary); }

/* Chat body */
.chat-body {
  height: 400px;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.chat-body::-webkit-scrollbar { width: 4px; }
.chat-body::-webkit-scrollbar-track { background: transparent; }
.chat-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }

.chat-welcome {
  text-align: center;
  padding: 50px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.welcome-icon { font-size: 48px; margin-bottom: 14px; }
.chat-welcome h3 { font-size: 20px; color: #F9FAFB; margin-bottom: 8px; }
.chat-welcome p {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  max-width: 340px;
  line-height: 1.6;
}
.welcome-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  justify-content: center;
}
.suggestion-chip {
  padding: 8px 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--r-full);
  color: rgba(255,255,255,.6);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--duration-fast);
}
.suggestion-chip:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(99,102,241,.4);
  color: var(--text-primary);
}

/* Chat messages */
.chat-body .chat-msg {
  display: flex;
  gap: 10px;
  animation: fadeSlideIn .3s var(--ease-out) both;
}
.chat-body .chat-msg.user { flex-direction: row-reverse; }
.chat-body .msg-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.msg-avatar.ai { background: rgba(99,102,241,.4); }
.msg-avatar.user { background: rgba(16,185,129,.4); }
.chat-body .msg-content {
  max-width: 75%;
  padding: 11px 16px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,.9);
}
.chat-body .chat-msg.ai .msg-content {
  background: rgba(255,255,255,.06);
  border-bottom-left-radius: 4px;
}
.chat-body .chat-msg.user .msg-content {
  background: var(--grad-brand);
  border-bottom-right-radius: 4px;
}
.chat-body .msg-content.typing {
  display: flex;
  gap: 4px;
  padding: 15px 20px;
}
.chat-body .msg-content.typing span {
  width: 7px; height: 7px;
  background: rgba(255,255,255,.4);
  border-radius: 50%;
  animation: typing 1.4s infinite;
}
.chat-body .msg-content.typing span:nth-child(2) { animation-delay: .2s; }
.chat-body .msg-content.typing span:nth-child(3) { animation-delay: .4s; }

/* Chat input */
.chat-input-area {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--border-glass);
}
.chat-input-area input {
  flex: 1;
  padding: 12px 18px;
  border-radius: var(--r-full);
  border: 1px solid var(--border-glass);
  background: rgba(255,255,255,.04);
  color: #F9FAFB;
  font-size: 14px;
  outline: none;
  transition: all var(--duration-fast);
}
.chat-input-area input::placeholder { color: rgba(255,255,255,.25); }
.chat-input-area input:focus { border-color: rgba(99,102,241,.5); background: rgba(255,255,255,.06); }
.chat-send-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--grad-brand);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-normal) var(--ease-out);
  flex-shrink: 0;
}
.chat-send-btn:hover { transform: scale(1.06); box-shadow: 0 4px 20px rgba(99,102,241,.4); }
.chat-send-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* ============================
   Courses Section
   ============================ */
.courses {
  position: relative;
  background: var(--surface-dark);
  overflow: hidden;
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}
.course-card {
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--r-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 28px 26px;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
}
.course-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(36,104,242,.2);
  background: var(--surface-glass-hover);
}
.course-level {
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 14px;
}
.tag-green { background: rgba(34,197,94,.15); color: #4ADE80; }
.tag-blue { background: rgba(99,102,241,.15); color: #818CF8; }
.tag-purple { background: rgba(167,139,250,.15); color: #A78BFA; }
.course-icon {
  font-size: 32px;
  margin-bottom: 14px;
}
.course-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.course-brief {
  font-size: 14px;
  color: var(--text-inverse-dim);
  line-height: 1.7;
  margin-bottom: 18px;
}
.course-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}
.course-section h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-4);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.course-section ul {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.course-section ul li {
  font-size: 13px;
  color: var(--text-inverse-dim);
  padding: 5px 12px;
  background: rgba(255,255,255,.04);
  border-radius: var(--r-xs);
  line-height: 1.6;
  list-style: none;
  position: relative;
  padding-left: 22px;
}
.course-section ul li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand-4);
  transform: translateY(-50%);
}
.course-section ul li:hover {
  background: rgba(99,102,241,.1);
  color: var(--text-primary);
}
.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-glass);
}
.course-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-inverse-dim);
  background: rgba(255,255,255,.04);
  padding: 4px 10px;
  border-radius: var(--r-full);
}
.course-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-4);
  text-decoration: none;
  transition: all var(--duration-fast);
}
.course-btn:hover { gap: 10px; color: var(--accent-2); }
/* ============================
   Cases Section
   ============================ */
.cases {
  position: relative;
  background: var(--surface-dark);
  overflow: hidden;
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}
.case-card {
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--r-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 24px 22px;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.case-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(36,104,242,.2);
}
.case-card-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.case-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  position: relative;
}
.case-avatar {
  width: 48px; height: 48px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}
.case-company h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.case-industry {
  font-size: 12px;
  color: var(--text-inverse-dim);
}
.case-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
  position: relative;
}
.case-metric {
  background: rgba(255,255,255,.04);
  border-radius: var(--r-xs);
  padding: 10px 12px;
  text-align: center;
  transition: all var(--duration-fast);
}
.case-card:hover .case-metric { background: rgba(255,255,255,.06); }
.metric-value {
  display: block;
  font-size: 20px;
  font-weight: 800;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
}
.metric-label {
  display: block;
  font-size: 11px;
  color: var(--text-inverse-dim);
  margin-top: 2px;
}
.case-desc {
  font-size: 13px;
  color: var(--text-inverse-dim);
  line-height: 1.7;
  margin-bottom: 14px;
  position: relative;
}
.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  position: relative;
}
.case-tags span {
  padding: 3px 10px;
  background: rgba(255,255,255,.04);
  border-radius: var(--r-full);
  font-size: 11px;
  color: var(--text-inverse-dim);
  transition: all var(--duration-fast);
}
.case-tags span:hover { background: rgba(99,102,241,.15); color: var(--text-primary); }
/* ============================
   Footer
   ============================ */
.footer {
  background: #1A1A2E;
  color: #F9FAFB;
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}
.footer-brand .logo .logo-icon {
  width: 36px; height: 36px;
  background: var(--grad-brand);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  max-width: 300px;
}
.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 13px;
  transition: color var(--duration-fast);
}
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast);
  color: rgba(255,255,255,.5);
}
.footer-social a:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ============================
   Modal
   ============================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }

.modal-container {
  background: #fff;
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 32px 28px;
  position: relative;
  box-shadow: 0 25px 80px rgba(0,0,0,.2);
  animation: modalSlideUp .35s var(--ease-out);
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--surface-gray);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast);
}
.modal-close:hover { background: #FEE2E2; color: #EF4444; }

.modal-header { text-align: center; margin-bottom: 26px; }
.modal-header .modal-logo {
  width: 50px; height: 50px;
  background: var(--grad-brand);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  margin: 0 auto 14px;
}
.modal-header h2 { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.modal-header p { font-size: 14px; color: var(--text-secondary); }

.modal-form { display: none; }
.modal-form.active { display: block; }

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.input-wrapper { position: relative; display: flex; align-items: center; }
.input-wrapper input { width: 100%; padding-right: 42px; }

.toggle-pwd {
  position: absolute;
  right: 6px;
  width: 34px; height: 34px;
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  border-radius: var(--r-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast);
}
.toggle-pwd:hover { background: var(--surface-gray); color: var(--text-primary); }

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-sm);
  font-size: 14px;
  outline: none;
  transition: all var(--duration-fast);
}
.form-group input:focus {
  border-color: var(--brand-1);
  box-shadow: 0 0 0 3px rgba(79,70,229,.08);
}
.form-group input.error {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.08);
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  font-size: 13px;
}
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 13px;
}
.checkbox input[type="checkbox"] {
  width: 15px; height: 15px;
  accent-color: var(--brand-1);
  cursor: pointer;
}
.forgot-link, .terms-link { color: var(--brand-1); font-size: 13px; font-weight: 500; }
.forgot-link:hover, .terms-link:hover { text-decoration: underline; }
.terms-link { display: inline; }

.modal-footer {
  text-align: center;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-secondary);
}
.switch-btn {
  background: none;
  border: none;
  color: var(--brand-1);
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
}
.switch-btn:hover { text-decoration: underline; }

/* Modal wide variant */
.modal-container-wide { max-width: 480px; }

/* Auth Tabs */
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border-light);
}
.auth-tab {
  flex: 1;
  padding: 10px 4px;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-tertiary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--duration-fast);
}
.auth-tab.active {
  color: var(--brand-1);
  border-bottom-color: var(--brand-1);
}
.auth-tab:hover { color: var(--text-primary); }

/* Auth Panels */
.auth-panel { display: none; }
.auth-panel.active { display: block; }

/* Modal logo standalone */
.modal-logo {
  width: 50px; height: 50px;
  background: var(--grad-brand);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  margin: 0 auto 14px;
}

/* Switch link */
.auth-switch {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-secondary);
}
.auth-switch a { color: var(--brand-1); font-weight: 600; }

/* SMS input row */
.input-row {
  display: flex;
  gap: 10px;
}
.input-row input {
  flex: 1;
  padding: 11px 14px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-sm);
  font-size: 14px;
  outline: none;
  transition: all var(--duration-fast);
}
.input-row input:focus {
  border-color: var(--brand-1);
  box-shadow: 0 0 0 3px rgba(79,70,229,.08);
}
.btn-sms {
  white-space: nowrap;
  font-size: 13px;
  padding: 11px 16px;
  border-radius: var(--r-sm);
}
.btn-sms:disabled { opacity: .5; cursor: not-allowed; }

/* OAuth QR */
.auth-qr-box { text-align: center; }
.auth-qr-hint { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; }
.auth-qr-img { margin-bottom: 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.auth-qr-img img { border: 1px solid var(--border-light); border-radius: var(--r-sm); }

/* Nav Points */
.nav-points { display: flex; align-items: center; }
.points-badge {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  color: #92400E;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #FCD34D;
}

/* Recharge Modal */
.recharge-packages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.recharge-pkg {
  border: 2px solid var(--border-light);
  border-radius: var(--r-sm);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all var(--duration-fast);
}
.recharge-pkg:hover { border-color: var(--brand-3); }
.recharge-pkg.selected {
  border-color: var(--brand-3);
  background: rgba(108,92,231,.06);
}
.recharge-pkg .pkg-points { font-size: 28px; font-weight: 800; color: var(--brand-3); }
.recharge-pkg .pkg-label { font-size: 12px; color: var(--text-tertiary); margin-bottom: 4px; }
.recharge-pkg .pkg-price { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

.recharge-channel-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 18px;
  border: 1px solid var(--border-light);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.rc-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast);
}
.rc-tab.active {
  background: var(--brand-1);
  color: #fff;
}

.recharge-qr {
  text-align: center;
  margin-bottom: 18px;
  padding: 20px;
  background: #FAFBFC;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-light);
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.recharge-qr p { font-size: 13px; color: var(--text-secondary); margin: 0; }
.recharge-qr .order-no { font-size: 11px; color: var(--text-tertiary); }
.recharge-qr img { border-radius: var(--r-xs); max-width: 200px; }

/* ============================
   Toast
   ============================ */
.toast {
  position: fixed;
  top: 20px; right: 20px;
  z-index: 3000;
  background: #fff;
  border-radius: var(--r-sm);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  padding: 13px 20px;
  transform: translateX(120%);
  transition: transform .35s var(--ease-out);
}
.toast.show { transform: translateX(0); }
.toast-content { display: flex; align-items: center; gap: 10px; }
.toast-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.toast-icon.success { background: #D1FAE5; color: #059669; }
.toast-icon.error { background: #FEE2E2; color: #EF4444; }
.toast-message { font-size: 14px; color: var(--text-primary); font-weight: 500; }

/* ============================
   User Menu
   ============================ */
.user-menu { display: none; align-items: center; gap: 10px; }
.user-menu.open { display: flex; }
.user-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}
.user-name {
  font-size: 14px;
  font-weight: 600;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-logout {
  padding: 6px 14px;
  border-radius: var(--r-full);
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--duration-fast);
  font-weight: 500;
}
.btn-logout:hover { border-color: #EF4444; color: #EF4444; background: #FEF2F2; }

/* ============================
   Scroll Reveal Animation
   ============================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .05s; }
.reveal-delay-2 { transition-delay: .1s; }
.reveal-delay-3 { transition-delay: .15s; }
.reveal-delay-4 { transition-delay: .2s; }

/* ============================
   Modal Animations
   ============================ */
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .hero-content { text-align: center; }
  .hero-content > p { margin: 0 auto 32px; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-card { max-width: 100%; }
  .apps-showcase { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(24px);
    padding: 20px 28px;
    gap: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,.08);
  }
  section { padding: 64px 0; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 110px 0 60px; }
  .hero-stats { gap: 28px; flex-wrap: wrap; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .agent-grid { grid-template-columns: 1fr 1fr; }
  .course-grid { grid-template-columns: 1fr 1fr; }
  .cases-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }

  /* Chat layout: sidebar to bottom */
  .exp-layout { flex-direction: column; gap: 0; }
  .exp-sidebar {
    flex: 0 0 auto;
    width: 100%;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 100;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,.1);
    max-height: 45vh;
    overflow-y: auto;
  }
  .exp-sidebar.collapsed { max-height: 48px; overflow: hidden; }
  .exp-sidebar-handle {
    display: flex;
    justify-content: center;
    padding: 6px 0;
    cursor: pointer;
  }
  .exp-sidebar-handle::after {
    content: "";
    width: 32px; height: 4px;
    border-radius: 2px;
    background: rgba(0,0,0,.15);
  }
  .exp-chat { max-width: 100%; margin-bottom: 60px; }
  .exp-chat-body { min-height: 200px; max-height: calc(100vh - 280px); }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero-content h1 { font-size: 30px; }
  .feature-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .exp-chat-body { min-height: 160px; max-height: 240px; }
  .agent-grid { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .apps-showcase { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-actions .btn-outline,
  .nav-actions .btn-ghost { display: none; }
  .modal-container { padding: 28px 20px 22px; }
  .toast { left: 14px; right: 14px; top: 14px; }
  .exp-sidebar { max-height: 40vh; }
  .exp-chat-body { min-height: 140px; max-height: calc(100vh - 260px); }
  .run-detail-container { max-width: 100%; width: 100%; border-radius: 16px 16px 0 0; max-height: 90vh; }
}

/* ============================================================
   Agent Progress Components — appended for Phase 1
   ============================================================ */

/* ---- Breadcrumb ---- */
.exp-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 16px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 12px;
  overflow-x: auto;
}
.bc-step {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
  transition: all .3s;
}
.bc-step.pending { color: rgba(255,255,255,.3); }
.bc-step.running {
  color: #5B8CFF;
  background: rgba(91,140,255,.12);
  animation: bcPulse 1.5s ease-in-out infinite;
}
.bc-step.complete { color: #34D399; }
.bc-step.error { color: #F87171; background: rgba(248,113,113,.1); }
.bc-sep { color: rgba(255,255,255,.15); font-size: 10px; }
.bc-agent-sep {
  color: rgba(255,255,255,.1);
  font-size: 14px;
  margin: 0 2px;
}
.bc-agent-label {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.35);
  text-transform: uppercase;
  letter-spacing: .3px;
}
@keyframes bcPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

/* ---- Tool Card ---- */
.tool-card { margin: 4px 0; }
.tool-avatar {
  background: rgba(91,140,255,.15) !important;
  color: #5B8CFF !important;
}
.tool-bubble {
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  min-width: 260px;
}
.tool-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.tool-name {
  font-weight: 600;
  font-size: 13px;
  color: #93C5FD;
  font-family: 'SF Mono', 'Fira Code', monospace;
}
.tool-status {
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 8px;
}
.tool-status.running {
  color: #FBBF24;
  background: rgba(251,191,36,.12);
  animation: bcPulse 1s infinite;
}
.tool-status.done {
  color: #34D399;
  background: rgba(52,211,153,.12);
}
.tool-detail { margin-top: 4px; }
.tool-label {
  font-size: 10px;
  color: rgba(255,255,255,.3);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.tool-pre {
  margin: 4px 0 0;
  padding: 6px 10px;
  background: rgba(0,0,0,.3);
  border-radius: 6px;
  font-size: 12px;
  color: rgba(255,255,255,.7);
  max-height: 120px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}
.tool-loading {
  display: flex;
  gap: 4px;
  padding: 6px 0;
}
.tool-loading span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #5B8CFF;
  animation: toolDot 1.2s ease-in-out infinite;
}
.tool-loading span:nth-child(2) { animation-delay: .2s; }
.tool-loading span:nth-child(3) { animation-delay: .4s; }
@keyframes toolDot {
  0%, 80%, 100% { opacity: .2; transform: scale(.8); }
  40% { opacity: 1; transform: scale(1); }
}

/* ---- Thinking Block ---- */
.thinking-block { margin: 4px 0; }
.thinking-avatar {
  background: rgba(251,191,36,.15) !important;
  color: #FBBF24 !important;
}
.thinking-bubble {
  background: rgba(251,191,36,.06) !important;
  border: 1px solid rgba(251,191,36,.15) !important;
  border-radius: 10px !important;
  padding: 8px 12px !important;
}
.thinking-label {
  font-size: 11px;
  color: #FBBF24;
  margin-bottom: 4px;
  display: block;
}
.thinking-content {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  white-space: pre-wrap;
  font-style: italic;
  margin: 0;
}

/* ---- Text Delta ---- */
.text-delta { margin: 2px 0; }
.text-bubble {
  background: rgba(255,255,255,.05) !important;
  line-height: 1.7;
}

/* ---- Plan Card ---- */
.plan-card {
  margin: 8px 0;
  background: rgba(91,140,255,.06);
  border: 1px solid rgba(91,140,255,.15);
  border-radius: 12px;
  padding: 12px 16px;
}
.plan-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #93C5FD;
}
.plan-steps { display: flex; flex-direction: column; gap: 6px; }
.plan-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(0,0,0,.2);
  font-size: 12px;
  transition: all .3s;
}
.plan-step-icon {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}
.plan-step.pending .plan-step-icon {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.3);
}
.plan-step.running .plan-step-icon {
  background: rgba(91,140,255,.2);
  color: #5B8CFF;
  animation: bcPulse 1.5s infinite;
}
.plan-step.complete .plan-step-icon {
  background: rgba(52,211,153,.2);
  color: #34D399;
}
.plan-step.error .plan-step-icon {
  background: rgba(248,113,113,.2);
  color: #F87171;
}
.plan-step-name { flex: 1; color: rgba(255,255,255,.7); }
.plan-step-agent {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.4);
}
.plan-step-skill {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(139,92,246,.15);
  color: #A78BFA;
}

/* ---- Delegate Card ---- */
.delegate-card {
  margin: 8px 0;
  background: rgba(108,92,231,.06);
  border: 1px solid rgba(108,92,231,.15);
  border-radius: 12px;
  padding: 12px 16px;
  transition: all .3s;
}
.delegate-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.delegate-agent {
  font-weight: 600;
  font-size: 13px;
  color: #A78BFA;
  display: flex;
  align-items: center;
  gap: 6px;
}
.delegate-status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 8px;
}
.delegate-status.running {
  color: #FBBF24;
  background: rgba(251,191,36,.12);
  animation: bcPulse 1s infinite;
}
.delegate-status.complete {
  color: #34D399;
  background: rgba(52,211,153,.12);
}
.delegate-task {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  margin-bottom: 4px;
}
.delegate-output {
  margin-top: 8px;
  padding: 8px 10px;
  background: rgba(0,0,0,.2);
  border-radius: 6px;
  font-size: 12px;
  color: rgba(255,255,255,.6);
  max-height: 100px;
  overflow-y: auto;
}

/* ---- Skill Card ---- */
.skill-card {
  margin: 8px 0;
  background: rgba(16,185,129,.06);
  border: 1px solid rgba(16,185,129,.15);
  border-radius: 12px;
  padding: 12px 16px;
}
.skill-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.skill-name {
  font-weight: 600;
  font-size: 13px;
  color: #34D399;
  display: flex;
  align-items: center;
  gap: 6px;
}
.skill-status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 8px;
}
.skill-status.running {
  color: #FBBF24;
  background: rgba(251,191,36,.12);
  animation: bcPulse 1s infinite;
}
.skill-status.complete {
  color: #34D399;
  background: rgba(52,211,153,.12);
}
.skill-status.error {
  color: #F87171;
  background: rgba(248,113,113,.1);
}
.skill-desc {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  margin-bottom: 4px;
}
.skill-output {
  padding: 8px 10px;
  background: rgba(0,0,0,.2);
  border-radius: 6px;
  font-size: 12px;
  color: rgba(255,255,255,.6);
  max-height: 80px;
  overflow-y: auto;
}

/* ---- Artifact Card ---- */
.artifact-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
  padding: 10px 14px;
  background: rgba(59,130,246,.08);
  border: 1px solid rgba(59,130,246,.2);
  border-radius: 10px;
  transition: all .2s;
}
.artifact-card:hover {
  background: rgba(59,130,246,.14);
  border-color: rgba(59,130,246,.35);
}
.artifact-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(59,130,246,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.artifact-info { flex: 1; min-width: 0; }
.artifact-name {
  font-size: 13px;
  font-weight: 600;
  color: #93C5FD;
}
.artifact-type {
  font-size: 11px;
  color: rgba(255,255,255,.4);
}
.artifact-download {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: rgba(59,130,246,.2);
  color: #60A5FA;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
  flex-shrink: 0;
}
.artifact-download:hover {
  background: rgba(59,130,246,.35);
  color: #93C5FD;
}

/* ---- Confirm Modal ---- */
.confirm-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
}
.confirm-modal-overlay.open { display: flex; }
.confirm-modal {
  background: #1a1d2e;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 24px 28px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.confirm-modal h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #fff;
}
.confirm-modal p {
  margin: 0 0 16px;
  font-size: 14px;
  color: rgba(255,255,255,.6);
  line-height: 1.6;
}
.confirm-options {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.confirm-options .btn { flex: 1; }
.confirm-timer-bar {
  height: 3px;
  background: rgba(255,255,255,.06);
  border-radius: 2px;
  overflow: hidden;
}
.confirm-timer-fill {
  height: 100%;
  background: linear-gradient(90deg, #5B8CFF, #A78BFA);
  border-radius: 2px;
  transition: width .3s linear;
}

/* ---- Upload Button ---- */
.exp-upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  cursor: pointer;
  color: rgba(255,255,255,.3);
  transition: all .2s;
  flex-shrink: 0;
}
.exp-upload-btn:hover { color: rgba(255,255,255,.7); background: rgba(255,255,255,.06); }
.exp-upload-btn input { display: none; }
.file-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 0;
}
.file-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(91,140,255,.1);
  border: 1px solid rgba(91,140,255,.2);
  border-radius: 16px;
  font-size: 11px;
  color: #93C5FD;
}
.file-tag-remove {
  cursor: pointer;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1;
  transition: all .2s;
}
.file-tag-remove:hover { background: rgba(248,113,113,.3); color: #F87171; }

/* ============================================================
   Phase 3 — History Panel, Mobile, Animations
   ============================================================ */

/* ---- Sidebar Tabs ---- */
.exp-sidebar-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-light, rgba(0,0,0,.06));
}
.exp-sidebar-tab {
  flex: 1;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-tertiary, #999);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all .2s;
}
.exp-sidebar-tab.active {
  color: var(--brand-1, #2468F2);
  border-bottom-color: var(--brand-1, #2468F2);
}
.exp-sidebar-panel { display: none; }
.exp-sidebar-panel.active { display: block; }

/* ---- History List ---- */
.exp-history-list { max-height: 480px; overflow-y: auto; }
.exp-history-empty {
  padding: 32px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary, #999);
}
.exp-history-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-light, rgba(0,0,0,.04));
  transition: background .15s;
}
.exp-history-item:hover { background: rgba(36,104,242,.03); }
.exp-history-item:last-child { border-bottom: none; }
.exp-history-status {
  width: 8px; height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  flex-shrink: 0;
}
.exp-history-status.completed { background: #22C55E; }
.exp-history-status.error { background: #EF4444; }
.exp-history-status.running {
  background: #F59E0B;
  animation: bcPulse 1.5s infinite;
}
.exp-history-info { flex: 1; min-width: 0; }
.exp-history-agent {
  font-size: 12px; font-weight: 600;
  color: var(--text-primary, #1a1a1a);
}
.exp-history-prompt {
  font-size: 11px;
  color: var(--text-tertiary, #999);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 2px;
}
.exp-history-time {
  font-size: 10px;
  color: var(--text-tertiary, #999);
  margin-top: 2px;
}
.exp-history-load-more { padding: 10px 16px; text-align: center; }

/* ---- History Skeleton ---- */
.exp-history-skeleton {
  display: flex; gap: 10px; padding: 12px 16px;
}
.skeleton-line {
  flex: 1; height: 12px; border-radius: 6px;
  background: linear-gradient(90deg, rgba(0,0,0,.04) 25%, rgba(0,0,0,.08) 50%, rgba(0,0,0,.04) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
}
@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---- Run Detail Overlay ---- */
.run-detail-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center; justify-content: center;
}
.run-detail-overlay.open { display: flex; }
.run-detail-container {
  background: #fff;
  border-radius: 16px;
  max-width: 640px; width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.2);
}
.run-detail-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light, rgba(0,0,0,.06));
}
.run-detail-header h3 { margin: 0; font-size: 16px; }
.run-detail-close {
  background: none; border: none;
  font-size: 24px; cursor: pointer;
  color: var(--text-tertiary, #999); padding: 0; line-height: 1;
}
.run-detail-body { padding: 20px 24px; }
.run-detail-meta {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px;
  font-size: 12px; color: var(--text-tertiary, #999);
}
.run-detail-meta span {
  padding: 2px 10px; border-radius: 12px;
  background: rgba(36,104,242,.06);
  color: var(--text-secondary, #666);
}
.run-detail-steps { margin-bottom: 16px; }
.run-detail-steps h4, .run-detail-artifacts h4 {
  font-size: 13px; margin: 0 0 10px; color: var(--text-secondary, #666);
}

/* ---- Replay Steps ---- */
.replay-step {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0; font-size: 13px;
  opacity: 0; transform: translateX(-8px);
  animation: stepSlideIn .3s ease forwards;
}
.replay-step:nth-child(1) { animation-delay: 0s; }
.replay-step:nth-child(2) { animation-delay: .1s; }
.replay-step:nth-child(3) { animation-delay: .2s; }
.replay-step:nth-child(4) { animation-delay: .3s; }
.replay-step:nth-child(5) { animation-delay: .4s; }
@keyframes stepSlideIn {
  to { opacity: 1; transform: translateX(0); }
}
.replay-step-icon {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; flex-shrink: 0;
}
.replay-step-icon.complete { background: rgba(34,197,94,.15); color: #22C55E; }
.replay-step-icon.error { background: rgba(239,68,68,.15); color: #EF4444; }
.replay-step-icon.running { background: rgba(245,158,11,.15); color: #F59E0B; }
.replay-step-icon.pending { background: rgba(0,0,0,.05); color: #999; }
.replay-step-name { flex: 1; color: var(--text-primary, #1a1a1a); }
.replay-step-output {
  font-size: 12px; color: var(--text-tertiary, #999);
  max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---- Enhanced Animations ---- */
.exp-msg {
  animation: msgFadeIn .25s ease both;
}
@keyframes msgFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.tool-card, .skill-card, .delegate-card, .plan-card, .artifact-card, .thinking-block {
  animation: cardSlideUp .3s ease both;
}
@keyframes cardSlideUp {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.text-delta .text-bubble::after {
  content: "▊";
  animation: cursorBlink .8s step-end infinite;
  color: var(--brand-1, #2468F2);
}
@keyframes cursorBlink {
  50% { opacity: 0; }
}



