/* Evolved legacy /client page extras. Shared Tailwind lives at /styles.css. */

.client-hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(56, 189, 248, 0.12), transparent 55%),
    linear-gradient(to bottom, rgba(30, 41, 59, 0.35), transparent 70%);
}

/* Balanced gap: CTAs and snapshot cards stay separated without a large empty band.
   Keep explicit CSS — some Tailwind spacing utilities may be missing from /styles.css. */
.client-hero {
  padding-bottom: 0.5rem;
}

.client-hero > .max-w-7xl {
  padding-bottom: 2rem;
}

.client-hero .client-hero-ctas {
  margin-bottom: 0.75rem;
}

.client-snapshot-section {
  padding-top: 1.25rem;
  margin-top: 0;
}

.client-snapshot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .client-snapshot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.client-snapshot-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.client-snapshot-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0.75rem;
}

.client-robot-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
}

.client-robot-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.25;
  border-radius: 0.375rem;
  padding: 0.25rem 0.5rem;
  white-space: nowrap;
}

.client-mode-btn {
  flex: 1 1 0%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  color: #94a3b8;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.client-mode-btn:hover {
  color: #e2e8f0;
  background-color: #1e293b;
}

.client-mode-btn--active {
  background-color: #0284c7;
  color: #fff;
  box-shadow: 0 1px 2px rgba(2, 132, 199, 0.35);
}

.client-mode-btn--active:hover {
  background-color: #0369a1;
  color: #fff;
}

.client-operator-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.client-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.35rem 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(51, 65, 85, 0.7);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.55), rgba(15, 23, 42, 0.72));
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.client-link-row__title {
  grid-column: 1;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.25;
}

.client-link-row__hint {
  grid-column: 1;
  font-size: 0.75rem;
  line-height: 1.35;
  color: #94a3b8;
}

.client-link-row__chevron {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: #64748b;
  font-size: 1.1rem;
  line-height: 1;
}

.client-link-row:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.92));
}

.client-link-row:hover .client-link-row__chevron {
  color: #7dd3fc;
}

.client-link-row--primary {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.08);
}

.client-stat-loading {
  display: inline-block;
  width: 1.75rem;
  height: 1.1rem;
  border-radius: 0.35rem;
  background: linear-gradient(90deg, #334155 0%, #475569 50%, #334155 100%);
  background-size: 200% 100%;
  animation: client-stat-pulse 1.1s ease-in-out infinite;
  vertical-align: middle;
}

@keyframes client-stat-pulse {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.client-robot-card {
  contain: layout style paint;
}

.client-robot-card.is-selected {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.2);
}

.client-below-fold {
  content-visibility: auto;
  contain-intrinsic-size: auto 120px;
}

/* Guide drawer: own stacking + transforms (avoid Tailwind translate fight + nav z-50). */
.client-guide-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(2, 6, 23, 0.6);
}

.client-guide-backdrop[hidden] {
  display: none !important;
}

.client-guide-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 70;
  height: 100%;
  width: min(28rem, 100%);
  max-width: 100%;
  background: #0f172a;
  border-left: 1px solid #334155;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.35);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.2s ease-out;
  pointer-events: none;
}

.client-guide-drawer.is-open {
  transform: translateX(0);
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .client-mode-btn,
  .client-link-row,
  .client-guide-drawer,
  .client-stat-loading {
    transition: none;
    animation: none;
  }
}
