/* =====================================================
   CHONRY - Component Library v2.0
   Modern Light SaaS Style
   ===================================================== */

/* ─── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.625rem 1.375rem;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  line-height: 1.5;
  border-radius: var(--radius-lg);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn-sm { padding: 0.4rem 1rem; font-size: var(--text-xs); }
.btn-lg { padding: 0.875rem 1.75rem; font-size: var(--text-base); }
.btn-xl { padding: 1rem 2rem; font-size: var(--text-lg); }

/* Primary: Blue gradient */
.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  background: var(--gradient-primary-hover);
  box-shadow: 0 6px 20px 0 rgb(67 97 238 / 0.45);
  color: white;
}

/* Accent: Orange CTA */
.btn-accent {
  background: var(--gradient-accent);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-accent);
}
.btn-accent:hover {
  background: var(--gradient-accent-hover);
  box-shadow: 0 6px 20px 0 rgb(249 115 22 / 0.45);
  color: white;
}

/* Secondary: White with border */
.btn-secondary {
  background: white;
  color: var(--color-primary);
  border-color: var(--color-primary-200);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background: var(--color-primary-50);
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-md);
}

/* Ghost: Text only */
.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--color-bg-subtle);
  color: var(--color-text);
}

/* Dark button for dark backgrounds */
.btn-white {
  background: white;
  color: var(--color-primary);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  background: var(--color-primary-50);
  color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* Outline white */
.btn-outline-white {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.4);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
  color: white;
}

.btn-icon { width: 16px; height: 16px; flex-shrink: 0; }
.btn-lg .btn-icon { width: 18px; height: 18px; }

/* ─── Badges ─────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.badge-primary {
  background: var(--color-primary-100);
  color: var(--color-primary);
}
.badge-accent {
  background: var(--color-accent-100);
  color: var(--color-accent-dark);
}
.badge-success {
  background: var(--color-success-bg);
  color: var(--color-success);
}
.badge-info {
  background: var(--color-info-bg);
  color: var(--color-info);
}
.badge-warning {
  background: var(--color-warning-bg);
  color: var(--color-warning);
}
.badge-error {
  background: var(--color-error-bg);
  color: var(--color-error);
}
.badge-muted {
  background: var(--color-bg-subtle);
  color: var(--color-text-secondary);
}

/* ─── Cards ──────────────────────────────────────── */
.card {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all var(--transition-base);
}
.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

/* ─── Product Cards ──────────────────────────────── */
.product-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-base);
  transform-origin: left;
}
.product-card:hover {
  border-color: var(--color-primary-200);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}
.product-card:hover::before { transform: scaleX(1); }

.product-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-xl);
  background: var(--color-primary-50);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-base);
}
.product-icon svg { width: 26px; height: 26px; color: var(--color-primary); }
.product-card:hover .product-icon {
  background: var(--color-primary);
}
.product-card:hover .product-icon svg { color: white; }

.product-icon.accent-icon { background: var(--color-accent-50); }
.product-icon.accent-icon svg { color: var(--color-accent); }
.product-card:hover .product-icon.accent-icon { background: var(--color-accent); }
.product-card:hover .product-icon.accent-icon svg { color: white; }

.product-icon.whatsapp-icon { background: rgba(37,211,102,0.1); }
.product-icon.whatsapp-icon svg { color: #25D366; }
.product-card:hover .product-icon.whatsapp-icon { background: #25D366; }

.product-icon.telegram-icon { background: rgba(42,171,238,0.1); }
.product-icon.telegram-icon svg { color: #2AABEE; }
.product-card:hover .product-icon.telegram-icon { background: #2AABEE; }

.product-icon.viber-icon { background: rgba(115,96,242,0.1); }
.product-icon.viber-icon svg { color: #7360F2; }
.product-card:hover .product-icon.viber-icon { background: #7360F2; }

.product-name {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-text);
  margin: 0;
}

.product-desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  flex-grow: 1;
  margin: 0;
}

.product-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.product-features li {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  padding-left: var(--space-5);
  position: relative;
}
.product-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-success);
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-primary);
  margin-top: auto;
  transition: gap var(--transition-fast);
}
.product-link:hover {
  gap: var(--space-2);
  color: var(--color-primary-dark);
}
.product-link svg { width: 16px; height: 16px; }

/* ─── Feature Cards ──────────────────────────────── */
.feature-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-xl);
  background: var(--color-primary-50);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-base);
}
.feature-icon svg { width: 28px; height: 28px; color: var(--color-primary); }
.feature-card:hover .feature-icon {
  background: var(--gradient-primary);
  transform: scale(1.05);
}
.feature-card:hover .feature-icon svg { color: white; }

.feature-title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-text);
  margin: 0;
}
.feature-desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* ─── Solution Cards ─────────────────────────────── */
.solution-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.solution-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}
.solution-card:hover {
  border-color: var(--color-primary-200);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}
.solution-card:hover::after { transform: scaleX(1); }

.solution-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-xl);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-primary);
}
.solution-icon svg { width: 30px; height: 30px; color: white; }

.solution-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-text);
  margin: 0;
}
.solution-desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin: 0;
}
.solution-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.solution-features li {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  padding-left: var(--space-5);
  position: relative;
}
.solution-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: var(--font-bold);
}

.solution-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-primary);
  margin-top: auto;
  transition: gap var(--transition-fast);
}
.solution-link:hover { gap: var(--space-2); color: var(--color-primary-dark); }
.solution-link svg { width: 16px; height: 16px; }

/* ─── Section Header ──────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-16);
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-primary);
  background: var(--color-primary-50);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
  letter-spacing: 0.02em;
}
.section-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: pulse-dot 2s ease infinite;
}
.section-title {
  margin-bottom: var(--space-4);
}
.section-description {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 560px;
  margin: 0 auto;
}

/* ─── Page Hero ──────────────────────────────────── */
.page-hero {
  padding: calc(var(--header-height) + var(--announcement-height, 0px) + var(--space-16)) 0 var(--space-16);
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
}
.page-hero-content {
  position: relative;
  z-index: 1;
}
.page-hero .section-title {
  font-size: clamp(2rem, 5vw, var(--text-5xl));
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.page-hero .section-description {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  max-width: 600px;
}

/* ─── Forms ──────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: var(--space-2); }
.form-label {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text);
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.625rem 1rem;
  font-size: var(--text-base);
  color: var(--color-text);
  background: white;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  outline: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgb(67 97 238 / 0.12);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--color-text-muted); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: var(--text-xs); color: var(--color-text-muted); }
.form-error { font-size: var(--text-xs); color: var(--color-error); }

/* ─── Code Blocks ────────────────────────────────── */
.code-block {
  background: #0f172a;
  border-radius: var(--radius-xl);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.7;
}
.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-5);
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.code-dots { display: flex; gap: 6px; }
.code-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.code-dots span:nth-child(1) { background: #ff5f57; }
.code-dots span:nth-child(2) { background: #febc2e; }
.code-dots span:nth-child(3) { background: #28c840; }
.code-lang {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  font-family: var(--font-sans);
}
.code-body {
  padding: var(--space-6);
  overflow-x: auto;
  color: #e2e8f0;
}
.code-body .kw { color: #c084fc; }
.code-body .str { color: #86efac; }
.code-body .num { color: #fb923c; }
.code-body .cmt { color: #64748b; font-style: italic; }
.code-body .fn { color: #60a5fa; }

/* Inline code */
code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--color-primary-50);
  color: var(--color-primary-dark);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

/* ─── Tabs ───────────────────────────────────────── */
.tab-nav {
  display: flex;
  gap: var(--space-1);
  border-bottom: 2px solid var(--color-border);
  margin-bottom: var(--space-8);
  overflow-x: auto;
}
.tab-btn {
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition-fast);
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
}
.tab-btn:hover { color: var(--color-text); }
.tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: var(--font-semibold);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ─── News Cards ─────────────────────────────────── */
.news-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  border-color: var(--color-primary-200);
}
.news-thumb {
  height: 200px;
  background: var(--gradient-primary);
  overflow: hidden;
  position: relative;
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.news-card:hover .news-thumb img { transform: scale(1.05); }
.news-body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); flex-grow: 1; }
.news-meta { display: flex; align-items: center; gap: var(--space-4); font-size: var(--text-xs); color: var(--color-text-muted); }
.news-category { color: var(--color-primary); font-weight: var(--font-semibold); }
.news-title {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-text);
  line-height: var(--leading-snug);
  transition: color var(--transition-fast);
}
.news-card:hover .news-title { color: var(--color-primary); }
.news-excerpt { font-size: var(--text-sm); color: var(--color-text-secondary); line-height: var(--leading-relaxed); flex-grow: 1; }
.news-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-primary);
  margin-top: auto;
}
.news-link:hover { gap: var(--space-2); }

/* ─── Stat Cards ─────────────────────────────────── */
.stat-card {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.stat-number {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: var(--font-extrabold);
  color: white;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-suffix {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--color-accent-light);
  font-weight: var(--font-extrabold);
}
.stat-number-group { display: flex; align-items: baseline; gap: 2px; }
.stat-label { font-size: var(--text-sm); color: rgba(255,255,255,0.65); }

/* Light background stat variant (solution pages) */
.stats-grid-light .stat-number { color: var(--color-text); }
.stats-grid-light .stat-suffix { color: var(--color-accent); font-weight: var(--font-extrabold); }
.stats-grid-light .stat-label { color: var(--color-text-secondary); }
.stats-grid-light .stat-card { border-right: 1px solid var(--color-border); }
.stats-grid-light .stat-card:last-child { border-right: none; }

/* ─── Detail Chat Mockup ─────────────────────────── */
.detail-chat-mockup {
  background: linear-gradient(135deg, #f0f9ff 0%, #eef2ff 50%, #faf5ff 100%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  box-shadow: var(--shadow-card);
}
.detail-chat-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}
.detail-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
}
.detail-chat-name { font-size: var(--text-sm); font-weight: var(--font-semibold); color: var(--color-text); }
.detail-chat-status { font-size: var(--text-xs); color: var(--color-success); }
.detail-chat-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.detail-chat-bubble {
  padding: 10px 14px;
  border-radius: var(--radius-xl);
  font-size: var(--text-sm);
  line-height: 1.5;
  max-width: 85%;
}
.detail-chat-bubble.sent {
  background: var(--gradient-primary);
  color: white;
  border-bottom-right-radius: 6px;
  align-self: flex-end;
}
.detail-chat-bubble.received {
  background: white;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  border-bottom-left-radius: 6px;
  align-self: flex-start;
}
.detail-chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-1);
}
.detail-chat-quick-reply {
  padding: 6px 12px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: var(--text-xs);
  color: var(--color-primary);
  font-weight: var(--font-medium);
}
.detail-chat-lead {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-2);
}
.detail-chat-lead-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #fb923c);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  font-weight: var(--font-bold);
}
.detail-chat-lead-info { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.detail-chat-lead-name { font-size: var(--text-sm); font-weight: var(--font-semibold); color: var(--color-text); }
.detail-chat-lead-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.detail-chat-lead-tag {
  padding: 2px 8px;
  border-radius: var(--radius-md);
  font-size: 10px;
  font-weight: var(--font-medium);
}
.detail-chat-lead-tag.green { background: #ecfdf5; color: #059669; }
.detail-chat-lead-tag.amber { background: #fffbeb; color: #d97706; }
.detail-chat-lead-tag.red { background: #fef2f2; color: #dc2626; }

/* ─── Detail CRM Mockup (Image #4 style) ─────────── */
.detail-crm-mockup {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f2744 50%, #1a2f6e 100%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.1);
  padding: var(--space-5);
  display: flex;
  gap: var(--space-4);
  box-shadow: var(--shadow-card);
  min-height: 320px;
}
.detail-crm-chat {
  flex: 1.4;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.detail-crm-ai-bubble {
  background: white;
  border-radius: var(--radius-xl);
  padding: 14px 18px;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text);
  border-bottom-left-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.detail-crm-ai-header {
  font-size: var(--text-xs);
  color: var(--color-primary);
  font-weight: var(--font-semibold);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.detail-crm-ai-header::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  display: inline-block;
}
.detail-crm-mention {
  color: var(--color-primary);
  font-weight: var(--font-semibold);
  background: #eef2ff;
  padding: 1px 6px;
  border-radius: var(--radius-md);
  font-size: 11px;
}
.detail-crm-context {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--color-border);
}
.detail-crm-context-title {
  font-size: 11px;
  font-weight: var(--font-semibold);
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}
.detail-crm-context ul {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}
.detail-crm-context li::marker { color: var(--color-primary); }
.detail-crm-response {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-xl);
  padding: 12px 16px;
  font-size: var(--text-sm);
  color: white;
  border-bottom-right-radius: 6px;
  align-self: flex-end;
  max-width: 80%;
  backdrop-filter: blur(4px);
}
.detail-crm-sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.detail-crm-team-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.detail-crm-team-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: var(--font-bold);
  flex-shrink: 0;
}
.detail-crm-team-avatar.blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.detail-crm-team-avatar.purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.detail-crm-team-avatar.teal { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.detail-crm-team-avatar.rose { background: linear-gradient(135deg, #f43f5e, #e11d48); }
.detail-crm-team-avatar.amber { background: linear-gradient(135deg, #f59e0b, #d97706); }
.detail-crm-team-avatar.emerald { background: linear-gradient(135deg, #10b981, #059669); }
.detail-crm-team-info { display: flex; flex-direction: column; gap: 2px; }
.detail-crm-team-name { font-size: var(--text-sm); font-weight: var(--font-semibold); color: var(--color-text); }
.detail-crm-team-role { font-size: 11px; color: var(--color-text-secondary); }
.detail-crm-connector {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-2);
}
.detail-crm-connector-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.2);
  border: 1px dashed rgba(255,255,255,0.3);
  border-top: none;
  border-left: none;
  border-right: none;
}
.detail-crm-connector-label {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}

/* ─── Back to Top ────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: all var(--transition-base);
  z-index: 50;
  box-shadow: var(--shadow-lg);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover {
  background: var(--gradient-primary-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}
.back-to-top svg { width: 20px; height: 20px; }

/* ─── Cookie Banner ──────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--color-border);
  box-shadow: var(--shadow-2xl);
  padding: var(--space-5) var(--space-6);
  z-index: 999;
  transform: translateY(100%);
  transition: transform var(--transition-slow);
}
.cookie-banner:not(.hidden) { transform: translateY(0); }
.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.cookie-banner p { font-size: var(--text-sm); color: var(--color-text-secondary); flex: 1; min-width: 200px; }
.cookie-actions { display: flex; gap: var(--space-3); }

/* ─── Announcement Bar ───────────────────────────── */
.announcement-bar {
  background: var(--gradient-primary);
  color: white;
  text-align: center;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
}
.announcement-bar a {
  color: white;
  font-weight: var(--font-semibold);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.announcement-bar a:hover { opacity: 0.85; }

/* ─── Language Switcher Dropdown ───────────────────── */
.lang-switcher-wrap {
  position: relative;
  display: none;  /* TODO: i18n切换暂时禁用 */
}
.lang-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  background: transparent;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-sans);
}
.lang-switcher-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-50);
}
.lang-switcher-btn .globe-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.lang-switcher-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-base);
  z-index: 200;
}
.lang-switcher-wrap.open .lang-switcher-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 8px 12px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: var(--font-sans);
}
.lang-option:hover {
  background: var(--color-bg-alt);
}
.lang-option.active {
  color: var(--color-primary);
  background: var(--color-primary-50);
}
.lang-option .globe-mini {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-text-muted);
  opacity: 0;
}
.lang-option.active .globe-mini {
  opacity: 1;
  color: var(--color-primary);
}
.lang-code {
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  color: var(--color-text-muted);
  width: 28px;
  text-align: center;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}
.lang-option.active .lang-code {
  color: var(--color-primary);
}
.lang-name {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text);
}
.lang-option.active .lang-name {
  color: var(--color-primary);
  font-weight: var(--font-semibold);
}
.nav-actions .lang-switcher-wrap { margin-right: var(--space-2); }

/* Mobile: hide lang switcher dropdown in overlay */
.nav-menu.mobile-open .lang-switcher-dropdown { display: none; }

/* ─── WhatsApp Floating Contact Button ─────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #25D366;
  color: white;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
}
.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
  background: #1ebe5a;
}
.whatsapp-float svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    padding: 10px 16px;
  }
}
