/* ==========================================================================
   Insight Cards V2 - Bold, colorful design
   Used by TimeSavedInsight and BurnRateInsight components
   ========================================================================== */

.insight-card-v2 {
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0.25rem 1.5rem 0.25rem 0.5rem;
  border-radius: 16px;
  overflow: hidden;
  box-sizing: border-box;
}

/* Theme: Time Saved - Green gradient */
.insight-card-v2--time-saved {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 50%, #a7f3d0 100%);
}

.insight-card-v2--time-saved .insight-bg-shape--1 {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
}

.insight-card-v2--time-saved .insight-bg-shape--2 {
  background: radial-gradient(circle, rgba(52, 211, 153, 0.12) 0%, transparent 70%);
}

/* Theme: Burn Rate - Purple gradient */
.insight-card-v2--burn-rate {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #ddd6fe 100%);
}

.insight-card-v2--burn-rate .insight-bg-shape--1 {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
}

.insight-card-v2--burn-rate .insight-bg-shape--2 {
  background: radial-gradient(circle, rgba(167, 139, 250, 0.1) 0%, transparent 70%);
}

/* Theme: Burn Rate Warning - Amber gradient */
.insight-card-v2--burn-rate-warning {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fde68a 100%);
}

.insight-card-v2--burn-rate-warning .insight-bg-shape--1 {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
}

/* Theme: Burn Rate Critical - Red gradient */
.insight-card-v2--burn-rate-critical {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 50%, #fecaca 100%);
}

.insight-card-v2--burn-rate-critical .insight-bg-shape--1 {
  background: radial-gradient(circle, rgba(239, 68, 68, 0.15) 0%, transparent 70%);
}

/* Decorative background shapes */
.insight-bg-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.insight-bg-shape--1 {
  width: 200px;
  height: 200px;
  top: -60px;
  left: -40px;
}

.insight-bg-shape--2 {
  width: 150px;
  height: 150px;
  bottom: -50px;
  right: 20%;
}

/* Gauge wrapper */
.insight-gauge-wrapper {
  position: relative;
  flex-shrink: 0;
  z-index: 1;
}

.insight-gauge {
  position: relative;
}

.insight-gauge-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.insight-gauge-number {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #0f172a;
}

.insight-gauge-unit {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #475569;
  margin-top: 2px;
}

/* Center content */
.insight-center-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  min-width: 0;
  z-index: 1;
}

.insight-main-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.insight-main-period {
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
}

/* Status badges */
.insight-status-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.3125rem 0.75rem;
  border-radius: 9999px;
}

.insight-status--normal {
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.insight-status--warning {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #78350f;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.insight-status--critical {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Metric cards - colorful stat cards */
.insight-metric-cards {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
  z-index: 1;
}

.insight-metric-card {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  min-width: 100px;
}

.insight-metric-card--green {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.9) 0%, rgba(5, 150, 105, 0.95) 100%);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.insight-metric-card--green .insight-metric-card-icon,
.insight-metric-card--green .insight-metric-card-value,
.insight-metric-card--green .insight-metric-card-label {
  color: white;
}

.insight-metric-card--slate {
  background: linear-gradient(135deg, rgba(71, 85, 105, 0.9) 0%, rgba(51, 65, 85, 0.95) 100%);
  box-shadow: 0 4px 12px rgba(71, 85, 105, 0.2);
}

.insight-metric-card--slate .insight-metric-card-icon,
.insight-metric-card--slate .insight-metric-card-value,
.insight-metric-card--slate .insight-metric-card-label {
  color: white;
}

.insight-metric-card--purple {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.9) 0%, rgba(124, 58, 237, 0.95) 100%);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

.insight-metric-card--purple .insight-metric-card-icon,
.insight-metric-card--purple .insight-metric-card-value,
.insight-metric-card--purple .insight-metric-card-label {
  color: white;
}

.insight-metric-card--blue {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(37, 99, 235, 0.95) 100%);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.insight-metric-card--blue .insight-metric-card-icon,
.insight-metric-card--blue .insight-metric-card-value,
.insight-metric-card--blue .insight-metric-card-label {
  color: white;
}

.insight-metric-card-icon {
  flex-shrink: 0;
  opacity: 0.9;
}

/* ==========================================================================
   Insight Card: Agent Setup (flexible panels)
   ========================================================================== */

.insight-card-v2.insight-card-v2--agent-setup {
  display: flex;
  align-items: stretch;
  height: 100%;
  min-height: 0;
  padding: 0;
  overflow: visible;
}

/* ==========================================================================
   Always-On Hero Panel - Beautiful, satisfying design
   ========================================================================== */

.always-on-hero {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  height: 100%;
  padding: 0.75rem 1.5rem;
  position: relative;
  box-sizing: border-box;
}

/* Left visual element - animated rings like a gauge */
.always-on-hero__visual {
  position: relative;
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.always-on-hero__ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
}

.always-on-hero__ring--outer {
  inset: 0;
  border-color: rgba(14, 165, 233, 0.15);
  animation: ring-pulse 3s ease-in-out infinite;
}

.always-on-hero__ring--middle {
  inset: 10px;
  border-color: rgba(14, 165, 233, 0.25);
  animation: ring-pulse 3s ease-in-out infinite 0.5s;
}

.always-on-hero__ring--inner {
  inset: 20px;
  border-color: rgba(14, 165, 233, 0.4);
  animation: ring-pulse 3s ease-in-out infinite 1s;
}

@keyframes ring-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

.always-on-hero__icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(145deg, #0ea5e9 0%, #0284c7 100%);
  display: grid;
  place-items: center;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.4);
  z-index: 1;
}

.always-on-hero__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.always-on-hero__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.always-on-hero__body {
  margin: 0;
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.45;
}

.always-on-hero__contact {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.375rem;
  font-size: 0.8125rem;
}

.always-on-hero__contact-label {
  color: #64748b;
  font-weight: 500;
}

.always-on-hero__contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #6366f1;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.always-on-hero__contact-link:hover {
  color: #4f46e5;
  text-decoration: underline;
}

.always-on-hero__contact-link svg {
  flex-shrink: 0;
  opacity: 0.75;
}

.always-on-hero__contact-link:hover svg {
  opacity: 1;
}

.always-on-hero__contact-sep {
  color: #cbd5e1;
  margin: 0 0.125rem;
}

@media (max-width: 768px) {
  .always-on-hero__contact-link span {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 540px) {
  .always-on-hero__contact {
    flex-wrap: wrap;
  }

  .always-on-hero__contact-label {
    width: 100%;
  }
}

.always-on-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

.always-on-hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a7f3d0;
  box-shadow: 0 0 8px rgba(167, 243, 208, 0.9);
  animation: always-on-pulse 1.5s ease-in-out infinite;
}

@keyframes always-on-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.85);
  }
}

@media (max-width: 640px) {
  .always-on-hero {
    padding: 0.625rem 1rem;
    gap: 0.875rem;
  }

  .always-on-hero__visual {
    width: 60px;
    height: 60px;
  }

  .always-on-hero__ring--middle {
    inset: 7px;
  }

  .always-on-hero__ring--inner {
    inset: 14px;
  }

  .always-on-hero__icon {
    width: 32px;
    height: 32px;
  }

  .always-on-hero__icon svg {
    width: 18px;
    height: 18px;
  }

  .always-on-hero__title {
    font-size: 0.875rem;
  }

  .always-on-hero__body {
    font-size: 0.75rem;
    line-height: 1.35;
  }

  .always-on-hero__badge {
    padding: 0.4rem 0.75rem;
    font-size: 0.625rem;
  }
}

@media (max-width: 420px) {
  .always-on-hero {
    padding: 0.5rem 0.75rem;
    gap: 0.625rem;
  }

  .always-on-hero__visual {
    width: 48px;
    height: 48px;
  }

  .always-on-hero__ring--middle {
    inset: 5px;
  }

  .always-on-hero__ring--inner {
    inset: 10px;
  }

  .always-on-hero__icon {
    width: 28px;
    height: 28px;
  }

  .always-on-hero__icon svg {
    width: 16px;
    height: 16px;
  }

  .always-on-hero__title {
    font-size: 0.8125rem;
  }

  .always-on-hero__body {
    font-size: 0.6875rem;
  }

  .always-on-hero__badge {
    padding: 0.3rem 0.625rem;
    font-size: 0.5625rem;
  }
}

/* ==========================================================================
   SMS Hero Panel
   ========================================================================== */

.sms-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 0 1rem;
  position: relative;
  box-sizing: border-box;
}

.sms-hero__visual {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sms-hero__bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.08);
}

.sms-hero__bubble--1 {
  width: 100%;
  height: 100%;
  animation: sms-bubble 3s ease-in-out infinite;
}

.sms-hero__bubble--2 {
  width: 72%;
  height: 72%;
  background: rgba(34, 197, 94, 0.12);
  animation: sms-bubble 3s ease-in-out infinite 0.5s;
}

.sms-hero__bubble--active {
  background: rgba(34, 197, 94, 0.15);
}

.sms-hero__bubble--active.sms-hero__bubble--2 {
  background: rgba(34, 197, 94, 0.2);
}

@keyframes sms-bubble {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.06);
    opacity: 0.9;
  }
}

.sms-hero__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(145deg, #22c55e 0%, #16a34a 100%);
  display: grid;
  place-items: center;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
  z-index: 1;
}

.sms-hero__icon svg {
  width: 16px;
  height: 16px;
}

.sms-hero__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sms-hero__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
}

.sms-hero__body {
  margin: 0;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.4;
}

.sms-hero__body--error {
  color: #dc2626;
}

.sms-hero__form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.sms-hero__input {
  flex: 1;
  min-width: 120px;
  max-width: 160px;
  height: 30px;
  padding: 0 0.625rem;
  border-radius: 6px;
  border: 1px solid rgba(34, 197, 94, 0.3);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.8125rem;
  color: #0f172a;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sms-hero__input:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.sms-hero__input::placeholder {
  color: #94a3b8;
}

.sms-hero__button {
  height: 30px;
  padding: 0 0.75rem;
  border: none;
  border-radius: 6px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.25);
}

.sms-hero__button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.sms-hero__button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.sms-hero__button--secondary {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  box-shadow: none;
  border: 1.5px solid rgba(34, 197, 94, 0.25);
}

.sms-hero__button--secondary:hover:not(:disabled) {
  background: rgba(34, 197, 94, 0.18);
  box-shadow: none;
}

.sms-hero__verified {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  font-size: 0.8125rem;
  font-weight: 600;
}

.sms-hero__number {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.875rem;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.1);
  color: #15803d;
  font-size: 1rem;
  font-weight: 700;
  font-feature-settings: 'tnum';
  letter-spacing: 0.02em;
}

.sms-hero__links {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  width: 100%;
  margin-top: 0.5rem;
}

.sms-hero__link {
  padding: 0;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s;
}

.sms-hero__link:hover:not(:disabled) {
  color: #0f172a;
}

.sms-hero__link:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sms-hero__link-sep {
  color: #cbd5e1;
  font-size: 0.75rem;
}

@media (max-width: 640px) {
  .sms-hero {
    padding: 0 0.75rem;
    gap: 0.625rem;
  }

  .sms-hero__visual {
    width: 50px;
    height: 50px;
  }

  .sms-hero__icon {
    width: 32px;
    height: 32px;
  }

  .sms-hero__icon svg {
    width: 16px;
    height: 16px;
  }

  .sms-hero__title {
    font-size: 0.875rem;
  }

  .sms-hero__body {
    font-size: 0.75rem;
  }

  .sms-hero__input {
    min-width: 100px;
    height: 32px;
    font-size: 0.8125rem;
  }

  .sms-hero__button {
    height: 32px;
    font-size: 0.75rem;
  }
}

@media (max-width: 420px) {
  .sms-hero {
    padding: 0 0.5rem;
    gap: 0.5rem;
  }

  .sms-hero__visual {
    width: 42px;
    height: 42px;
  }

  .sms-hero__icon {
    width: 28px;
    height: 28px;
  }

  .sms-hero__title {
    font-size: 0.8125rem;
  }

  .sms-hero__body {
    font-size: 0.6875rem;
  }

  .sms-hero__form {
    margin-top: 0.375rem;
  }

  .sms-hero__input {
    min-width: 80px;
    height: 28px;
    font-size: 0.75rem;
  }

  .sms-hero__button {
    height: 28px;
    padding: 0 0.625rem;
    font-size: 0.6875rem;
  }
}

/* ==========================================================================
   Collab Grid - Two compact panels side by side
   ========================================================================== */

.collab-grid {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  height: 100%;
  padding: 0 1.25rem 0.625rem;
  box-sizing: border-box;
  align-items: stretch;
}

.collab-row {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 0.25rem 0.75rem;
  flex: 1;
  min-width: 0;
  padding: 0.625rem 0.875rem;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 0.625rem;
  border: 1px solid rgba(226, 232, 240, 0.7);
}

.collab-row__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  border-radius: 0.625rem;
  grid-row: 1 / -1;
  align-self: stretch;
}

.collab-row__icon svg {
  width: 20px;
  height: 20px;
}

.collab-row__icon--purple {
  background: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
}

.collab-row__icon--green {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.collab-row__icon--blue {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.collab-row__icon--cyan {
  background: rgba(14, 165, 233, 0.15);
  color: #0ea5e9;
}

.collab-row__main {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.collab-row__title {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.25;
}

.collab-row__desc {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.35;
  margin-top: 0.125rem;
}

.collab-row__link {
  display: block;
  font-size: 0.6875rem;
  color: #6366f1;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 0.0625rem;
}

.collab-row__link:hover {
  text-decoration: underline;
}

.collab-row__form {
  margin-top: 0.25rem;
}

.collab-row__input-wrap {
  display: inline-flex;
  align-items: center;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.25rem;
  font-size: 0.75rem;
}

.collab-row__input-wrap:focus-within {
  border-color: #a5b4fc;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.collab-row__input-prefix {
  padding: 0.3125rem 0.125rem 0.3125rem 0.5rem;
  color: #64748b;
  background: #f8fafc;
  font-size: 0.6875rem;
}

.collab-row__input {
  width: 80px;
  padding: 0.3125rem 0.5rem 0.3125rem 0.125rem;
  border: none;
  background: transparent;
  font-size: 0.75rem;
  color: #1e293b;
  outline: none;
}

.collab-row__input::placeholder {
  color: #94a3b8;
}

.collab-row__error {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.625rem;
  color: #dc2626;
}

.collab-row__actions {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  grid-column: 2;
  grid-row: 2;
}

.collab-row__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  padding: 0.4375rem 0.75rem;
  border-radius: 0.4375rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.collab-row__btn--primary {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
}

.collab-row__btn--primary:hover:not(:disabled):not([aria-disabled='true']) {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.collab-row__btn--green {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.collab-row__btn--green:hover:not(:disabled):not([aria-disabled='true']) {
  background: linear-gradient(135deg, #059669, #047857);
}

.collab-row__btn--secondary {
  background: #f1f5f9;
  color: #475569;
}

.collab-row__btn--secondary:hover:not(:disabled):not([aria-disabled='true']) {
  background: #e2e8f0;
}

.collab-row__btn--success {
  background: #ecfdf5;
  color: #059669;
}

.collab-row__btn--ghost {
  background: transparent;
  color: #64748b;
  padding: 0.375rem 0.5rem;
}

.collab-row__btn--ghost:hover:not(:disabled):not([aria-disabled='true']) {
  background: rgba(0, 0, 0, 0.05);
}

.collab-row__btn--cyan {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: white;
  text-decoration: none;
}

.collab-row__btn--cyan:hover {
  background: linear-gradient(135deg, #0284c7, #0369a1);
}

.collab-row__status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.collab-row__status--active {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.collab-row__status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #10b981;
  animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.collab-row__btn:disabled,
.collab-row__btn[aria-disabled='true'] {
  opacity: 0.5;
  cursor: not-allowed;
}

.collab-row__spinner {
  animation: collab-spin 0.8s linear infinite;
}

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

@media (max-width: 700px) {
  .collab-grid {
    flex-direction: column;
    gap: 0.375rem;
    padding: 0 0.75rem 0.375rem;
  }

  .collab-row {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: 1fr;
    padding: 0.5rem 0.625rem;
    gap: 0.5rem;
  }

  .collab-row__icon {
    grid-row: 1;
    width: 2rem;
    border-radius: 0.375rem;
  }

  .collab-row__icon svg {
    width: 16px;
    height: 16px;
  }

  .collab-row__main {
    grid-row: 1;
    display: flex;
    align-items: center;
  }

  .collab-row__desc {
    display: none;
  }

  .collab-row__actions {
    grid-column: 3;
    grid-row: 1;
  }

  .collab-row__title {
    font-size: 0.8125rem;
  }

  .collab-row__btn {
    padding: 0.375rem 0.5rem;
    font-size: 0.6875rem;
  }
}

@media (max-width: 480px) {
  .collab-grid {
    padding: 0 0.5rem 0.25rem;
    gap: 0.25rem;
  }

  .collab-row {
    padding: 0.375rem 0.5rem;
    gap: 0.375rem;
  }

  .collab-row__icon {
    width: 1.75rem;
    border-radius: 0.3125rem;
  }

  .collab-row__icon svg {
    width: 14px;
    height: 14px;
  }

  .collab-row__title {
    font-size: 0.75rem;
  }

  .collab-row__btn {
    padding: 0.3125rem 0.5rem;
    font-size: 0.6875rem;
  }
}

/* ==========================================================================
   Share Hero Panel (Legacy) - Public sharing template styling
   ========================================================================== */

.share-hero {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  min-height: 80px;
  padding: 1rem 1.5rem;
  position: relative;
  box-sizing: border-box;
}

.share-hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
}

.share-hero-grid .share-hero {
  height: 100%;
}

/* Live state - subtle green tint */
.share-hero--live {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.03) 0%, transparent 100%);
}


.share-hero__visual {
  position: relative;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-hero__ring {
  position: absolute;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.08);
}

.share-hero__ring--1 {
  width: 100%;
  height: 100%;
  animation: share-ring 3s ease-in-out infinite;
}

.share-hero__ring--2 {
  width: 72%;
  height: 72%;
  background: rgba(139, 92, 246, 0.12);
  animation: share-ring 3s ease-in-out infinite 0.5s;
}

.share-hero__ring--active {
  background: rgba(34, 197, 94, 0.15);
}

.share-hero__ring--active.share-hero__ring--2 {
  background: rgba(34, 197, 94, 0.22);
}

@keyframes share-ring {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

.share-hero__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(145deg, #8b5cf6 0%, #7c3aed 100%);
  display: grid;
  place-items: center;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
  z-index: 1;
  transition: all 0.3s ease;
}

.share-hero__icon--live {
  background: linear-gradient(145deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}

.share-hero__icon--collab {
  background: linear-gradient(145deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}

.share-hero__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.share-hero__header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.share-hero__title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.share-hero__badge {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.35);
  animation: badge-glow 2s ease-in-out infinite;
}

@keyframes badge-glow {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.35);
  }
  50% {
    box-shadow: 0 2px 16px rgba(34, 197, 94, 0.5);
  }
}

.share-hero__body {
  margin: 0;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.45;
}

.share-hero__body--error {
  color: #dc2626;
  font-weight: 500;
}

/* Form container */
.share-hero__form {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.625rem;
}

.share-hero__form--input {
  flex-direction: column;
  gap: 0.625rem;
}

/* Input wrapper and group */
.share-hero__input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  width: 100%;
  max-width: 320px;
}

.share-hero__input-group {
  display: flex;
  align-items: center;
  height: 44px;
  border-radius: 12px;
  border: 2px solid rgba(139, 92, 246, 0.25);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 243, 255, 0.95) 100%);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.08);
}

.share-hero__input-group:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.12);
}

.share-hero__input-group:focus-within {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12), 0 4px 16px rgba(139, 92, 246, 0.15);
  background: #ffffff;
}

.share-hero__input-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 100%;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0.06) 100%);
  color: #7c3aed;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.share-hero__input-group:focus-within .share-hero__input-icon {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18) 0%, rgba(139, 92, 246, 0.1) 100%);
  color: #6d28d9;
}

.share-hero__input-domain {
  padding: 0 0.125rem 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.share-hero__input-group:focus-within .share-hero__input-domain {
  color: #475569;
}

.share-hero__input {
  flex: 1;
  height: 100%;
  padding: 0 0.875rem 0 0;
  border: none;
  background: transparent;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #7c3aed;
  letter-spacing: -0.01em;
  min-width: 0;
}

.share-hero__input:focus {
  outline: none;
}

.share-hero__input::placeholder {
  color: #c4b5fd;
  font-weight: 400;
}

.share-hero__input-hint {
  font-size: 0.6875rem;
  color: #94a3b8;
  padding-left: 0.5rem;
}

.share-hero__form-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Live URL display */
.share-hero__live-url {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 0.25rem;
}

.share-hero__url-display {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(34, 197, 94, 0.04) 100%);
  border: 1.5px solid rgba(34, 197, 94, 0.2);
  max-width: 280px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.share-hero__live-url--copied .share-hero__url-display {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.22) 0%, rgba(34, 197, 94, 0.12) 100%);
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15), 0 4px 20px rgba(34, 197, 94, 0.25);
  animation: url-copied-flash 0.6s ease-out;
}

@keyframes url-copied-flash {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(34, 197, 94, 0.04) 100%);
  }
  30% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.2), 0 4px 30px rgba(34, 197, 94, 0.4);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3) 0%, rgba(34, 197, 94, 0.15) 100%);
  }
  100% {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15), 0 4px 20px rgba(34, 197, 94, 0.25);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.22) 0%, rgba(34, 197, 94, 0.12) 100%);
  }
}

.share-hero__url-icon {
  color: #16a34a;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.share-hero__live-url--copied .share-hero__url-icon {
  color: #15803d;
  transform: scale(1.3);
  animation: icon-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes icon-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.5);
  }
  70% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1.3);
  }
}

.share-hero__url-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: #15803d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.3s;
}

.share-hero__live-url--copied .share-hero__url-text {
  color: #14532d;
  font-weight: 700;
}

/* Copy button with satisfying animation */
.share-hero__copy-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  height: 36px;
  padding: 0 0.875rem;
  border: 1.5px solid rgba(34, 197, 94, 0.3);
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.08);
  color: #15803d;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  overflow: hidden;
}

.share-hero__copy-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(34, 197, 94, 0.4) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.share-hero__copy-btn:hover:not(.share-hero__copy-btn--copied) {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.share-hero__copy-btn--copied:hover {
  background: #15803d;
  border-color: #15803d;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.5);
}

.share-hero__copy-btn:active {
  transform: scale(0.95);
}

.share-hero__copy-btn--copied {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.4);
  animation: copy-success-bounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.share-hero__copy-btn--copied::before {
  display: none;
}

.share-hero__copy-btn--copied svg {
  animation: copy-checkmark 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  color: #ffffff;
}

.share-hero__copy-btn--copied span {
  font-weight: 700;
  color: #ffffff;
}

@keyframes copy-success-bounce {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.1);
  }
  60% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes copy-checkmark {
  0% {
    transform: scale(0);
  }
  60% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* Cancel link button */
.share-hero__cancel {
  padding: 0.5rem 0.75rem;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s;
  border-radius: 8px;
}

.share-hero__cancel:hover:not(:disabled) {
  color: #64748b;
  background: rgba(0, 0, 0, 0.04);
}

.share-hero__cancel:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Action area */
.share-hero__action {
  flex-shrink: 0;
}

/* Buttons */
.share-hero__button {
  height: 38px;
  padding: 0 1.125rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
  white-space: nowrap;
}

.share-hero__button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

.share-hero__button:active:not(:disabled) {
  transform: scale(0.98);
}

.share-hero__button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.share-hero__button--primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: #ffffff;
}

.share-hero__button--collab {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.share-hero__button--collab:hover:not(:disabled) {
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4);
}

.share-hero__button--large {
  height: 42px;
  padding: 0 1.375rem;
  font-size: 0.875rem;
  border-radius: 12px;
  gap: 0.5rem;
}

.share-hero__button--loading {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
  pointer-events: none;
  animation: share-button-pulse 2s ease-in-out infinite;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.share-hero__button--loading::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  animation: share-shimmer 1.2s ease-in-out infinite;
}

@keyframes share-button-pulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 6px 28px rgba(139, 92, 246, 0.55);
    transform: scale(1.02);
  }
}

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

.share-hero__spinner {
  animation: share-spin 0.7s linear infinite;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
}

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

/* CTA button (View Live / Open) */
.share-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 42px;
  padding: 0 1.375rem;
  border-radius: 999px;
  text-decoration: none;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.share-hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
}

.share-hero__cta:active {
  transform: scale(0.98);
}

.share-hero__cta--live {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}

.share-hero__cta--live:hover {
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45);
}

@media (max-width: 960px) {
  .share-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ========== RESPONSIVE: Tablet (max-width: 640px) ========== */
@media (max-width: 640px) {
  .share-hero {
    padding: 1rem;
    gap: 1rem;
  }

  .share-hero__visual {
    width: 56px;
    height: 56px;
  }

  .share-hero__icon {
    width: 36px;
    height: 36px;
  }

  .share-hero__icon svg {
    width: 18px;
    height: 18px;
  }

  .share-hero__title {
    font-size: 0.9375rem;
  }

  .share-hero__body {
    font-size: 0.75rem;
  }

  .share-hero__input-wrapper {
    max-width: 100%;
  }

  .share-hero__input-group {
    height: 40px;
  }

  .share-hero__input-icon {
    width: 36px;
  }

  .share-hero__input-icon svg {
    width: 13px;
    height: 13px;
  }

  .share-hero__input-domain {
    font-size: 0.8125rem;
  }

  .share-hero__input {
    font-size: 0.875rem;
  }

  .share-hero__input-hint {
    font-size: 0.625rem;
  }

  .share-hero__live-url {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .share-hero__url-display {
    max-width: 100%;
    padding: 0.4375rem 0.75rem;
  }

  .share-hero__url-text {
    font-size: 0.8125rem;
  }

  .share-hero__copy-btn {
    height: 34px;
    font-size: 0.75rem;
  }

  .share-hero__button {
    height: 36px;
    font-size: 0.8125rem;
    padding: 0 1rem;
  }

  .share-hero__button--large {
    height: 38px;
    padding: 0 1.125rem;
  }

  .share-hero__cta {
    height: 38px;
    padding: 0 1.125rem;
    font-size: 0.8125rem;
  }
}

/* ========== RESPONSIVE: Mobile (max-width: 480px) ========== */
@media (max-width: 480px) {
  .share-hero {
    padding: 0.875rem;
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .share-hero__visual {
    width: 48px;
    height: 48px;
  }

  .share-hero__icon {
    width: 32px;
    height: 32px;
  }

  .share-hero__icon svg {
    width: 16px;
    height: 16px;
  }

  .share-hero__content {
    flex: 1 1 calc(100% - 60px);
    min-width: 0;
  }

  .share-hero__title {
    font-size: 0.875rem;
  }

  .share-hero__badge {
    font-size: 0.5625rem;
    padding: 0.1875rem 0.5rem;
  }

  .share-hero__body {
    font-size: 0.6875rem;
    line-height: 1.4;
  }

  .share-hero__form {
    margin-top: 0.5rem;
    width: 100%;
  }

  .share-hero__form--input {
    gap: 0.5rem;
  }

  .share-hero__input-group {
    height: 38px;
  }

  .share-hero__input-icon {
    width: 32px;
  }

  .share-hero__input-domain {
    font-size: 0.75rem;
  }

  .share-hero__input {
    font-size: 0.8125rem;
  }

  .share-hero__input-hint {
    display: none;
  }

  .share-hero__form-actions {
    width: 100%;
    justify-content: space-between;
  }

  .share-hero__live-url {
    width: 100%;
  }

  .share-hero__url-display {
    flex: 1;
    min-width: 0;
  }

  .share-hero__copy-btn {
    height: 32px;
    padding: 0 0.75rem;
    font-size: 0.6875rem;
  }

  .share-hero__button {
    height: 34px;
    padding: 0 0.875rem;
    font-size: 0.75rem;
    flex: 1;
    justify-content: center;
  }

  .share-hero__button--large {
    height: 36px;
    padding: 0 1rem;
    font-size: 0.8125rem;
  }

  .share-hero__cancel {
    font-size: 0.75rem;
    padding: 0.375rem 0.625rem;
  }

  .share-hero__action {
    width: 100%;
    margin-top: 0.25rem;
  }

  .share-hero__cta {
    width: 100%;
    justify-content: center;
    height: 40px;
    font-size: 0.8125rem;
  }
}

/* ==========================================================================
   Org Hero Panel - Organization transfer styling
   ========================================================================== */

.org-hero {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  min-height: 70px;
  padding: 0.625rem 1.5rem;
  position: relative;
  box-sizing: border-box;
}

.org-hero__visual {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.org-hero__ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(14, 165, 233, 0.2);
}

.org-hero__ring--outer {
  width: 100%;
  height: 100%;
  animation: org-pulse 3s ease-in-out infinite;
}

.org-hero__ring--inner {
  width: 75%;
  height: 75%;
  border-color: rgba(14, 165, 233, 0.3);
  animation: org-pulse 3s ease-in-out infinite 0.5s;
}

@keyframes org-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.8;
  }
}

.org-hero__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, #0ea5e9 0%, #0284c7 100%);
  display: grid;
  place-items: center;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
  z-index: 1;
}

.org-hero__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.org-hero__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.org-hero__body {
  margin: 0;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.4;
}

.org-hero__body--error {
  color: #dc2626;
}

.org-hero__controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.org-hero__select {
  min-width: 150px;
  max-width: 200px;
  height: 36px;
  padding: 0 0.75rem;
  border-radius: 10px;
  border: 1.5px solid rgba(14, 165, 233, 0.25);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.8125rem;
  color: #0f172a;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  padding-right: 2rem;
}

.org-hero__select:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.org-hero__button {
  height: 36px;
  padding: 0 1rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.25);
}

.org-hero__button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
}

.org-hero__button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .org-hero {
    padding: 0.625rem 1rem;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .org-hero__visual {
    width: 52px;
    height: 52px;
  }

  .org-hero__icon {
    width: 36px;
    height: 36px;
  }

  .org-hero__icon svg {
    width: 18px;
    height: 18px;
  }

  .org-hero__title {
    font-size: 0.9375rem;
  }

  .org-hero__controls {
    width: 100%;
    margin-left: calc(52px + 1rem);
  }

  .org-hero__select {
    flex: 1;
    min-width: 0;
  }
}

/* ==========================================================================
   Upsell Hero Panel - Mini Pricing Page Design
   ========================================================================== */

.upsell-hero {
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
  width: 100%;
  padding: 1.125rem 1.5rem;
  position: relative;
  box-sizing: border-box;
}

/* Left section: Pricing card */
.upsell-hero__pricing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.125rem;
  border-radius: 14px;
  flex-shrink: 0;
  min-width: 130px;
}

.upsell-hero--indigo .upsell-hero__pricing {
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.08) 0%, rgba(79, 70, 229, 0.12) 100%);
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.upsell-hero--violet .upsell-hero__pricing {
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.08) 0%, rgba(124, 58, 237, 0.12) 100%);
  border: 1px solid rgba(139, 92, 246, 0.15);
}

.upsell-hero__plan-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
}

.upsell-hero--indigo .upsell-hero__plan-badge {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
}

.upsell-hero--violet .upsell-hero__plan-badge {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: #ffffff;
}

.upsell-hero__price {
  display: flex;
  align-items: baseline;
  gap: 0.125rem;
}

.upsell-hero__price-amount {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.upsell-hero--indigo .upsell-hero__price-amount {
  color: #4338ca;
}

.upsell-hero--violet .upsell-hero__price-amount {
  color: #6d28d9;
}

.upsell-hero__price-period {
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
}

/* CTA Button */
.upsell-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  width: 100%;
  height: 36px;
  padding: 0 1rem;
  border-radius: 10px;
  text-decoration: none;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.2s, box-shadow 0.2s;
}

.upsell-hero--indigo .upsell-hero__cta {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  box-shadow: 0 3px 10px rgba(99, 102, 241, 0.35);
}

.upsell-hero--violet .upsell-hero__cta {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  box-shadow: 0 3px 10px rgba(139, 92, 246, 0.35);
}

.upsell-hero__cta:hover {
  transform: translateY(-1px);
}

.upsell-hero--indigo .upsell-hero__cta:hover {
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.45);
}

.upsell-hero--violet .upsell-hero__cta:hover {
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.45);
}

.upsell-hero__cta:active {
  transform: translateY(0);
}

/* Right section: Content + Benefits */
.upsell-hero__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

.upsell-hero__header {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.upsell-hero__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.upsell-hero__subtitle {
  margin: 0;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.4;
}

.upsell-hero__benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 1.25rem;
}

.upsell-hero__benefit {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #334155;
  line-height: 1.3;
  white-space: nowrap;
}

.upsell-hero__benefit svg {
  flex-shrink: 0;
}

.upsell-hero--indigo .upsell-hero__benefit svg {
  color: #6366f1;
}

.upsell-hero--violet .upsell-hero__benefit svg {
  color: #8b5cf6;
}

@media (max-width: 640px) {
  .upsell-hero {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  .upsell-hero__pricing {
    flex-direction: row;
    width: 100%;
    padding: 0.75rem 1rem;
    gap: 1rem;
    justify-content: space-between;
  }

  .upsell-hero__price {
    order: -1;
  }

  .upsell-hero__cta {
    width: auto;
    min-width: 120px;
  }

  .upsell-hero__title {
    font-size: 0.9375rem;
  }

  .upsell-hero__benefit {
    font-size: 0.75rem;
  }
}

@media (max-width: 420px) {
  .upsell-hero__pricing {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .upsell-hero__price {
    order: 0;
  }

  .upsell-hero__cta {
    width: 100%;
  }
}

.agent-setup-panel {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  min-width: 0;
}

.agent-setup-panel__icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(14, 165, 233, 0.12);
  color: #0284c7;
}

.agent-setup-panel__icon--accent {
  background: rgba(79, 70, 229, 0.12);
  color: #4338ca;
}

.agent-setup-panel--violet .agent-setup-panel__icon--accent {
  background: rgba(139, 92, 246, 0.16);
  color: #6d28d9;
}

.agent-setup-panel__content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}

.agent-setup-panel__title {
  font-size: 0.95rem;
  font-weight: 500;
  color: #0f172a;
}

.agent-setup-panel__subtitle {
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.2;
}

.agent-setup-panel__subtitle--clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.agent-setup-panel__status {
  font-size: 0.78rem;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.agent-setup-panel__status--error {
  color: #b91c1c;
}

.agent-setup-panel__badge {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  color: #0369a1;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.agent-setup-panel__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex-wrap: nowrap;
}

.agent-setup-panel__row--meta {
  gap: 0.75rem;
}

.agent-setup-panel__input,
.agent-setup-panel__select {
  flex: 1;
  min-width: 0;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(30, 64, 175, 0.22);
  background: rgba(255, 255, 255, 0.9);
  padding: 0 0.6rem;
  font-size: 0.78rem;
  color: #0f172a;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.agent-setup-panel__input:focus,
.agent-setup-panel__select:focus {
  outline: none;
  border-color: rgba(14, 165, 233, 0.5);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.agent-setup-panel__button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 32px;
  padding: 0 0.8rem;
  border-radius: 10px;
  border: none;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.agent-setup-panel__button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.agent-setup-panel__button--primary {
  color: #ffffff;
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
}

.agent-setup-panel__button--ghost {
  background: rgba(14, 165, 233, 0.12);
  color: #0f172a;
  border: 1px solid rgba(14, 165, 233, 0.25);
}

.agent-setup-panel__link {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
}

.agent-setup-panel__link:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.agent-setup-panel__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.agent-setup-panel__meta {
  font-size: 0.72rem;
  color: #475569;
}

.agent-setup-panel__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 34px;
  padding: 0 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
  background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
}

.agent-setup-panel__cta--indigo {
  background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
}

.agent-setup-panel__cta--violet {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

@media (max-width: 640px) {
  .insight-card-v2--agent-setup {
    padding: 0 1rem 0.5rem;
  }

  .agent-setup-panel {
    gap: 0.75rem;
  }

  .agent-setup-panel__cta {
    height: 32px;
    padding: 0 0.7rem;
  }
}

.insight-metric-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.insight-metric-card-value {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.insight-metric-card-label {
  font-size: 0.6875rem;
  font-weight: 500;
  opacity: 0.85;
}

/* Dismiss button v2 */
.insight-dismiss-v2 {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  color: #64748b;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 150ms ease, background 150ms ease, color 150ms ease;
  z-index: 2;
}

.insight-card-v2:hover .insight-dismiss-v2 {
  opacity: 1;
}

.insight-dismiss-v2:hover {
  background: rgba(255, 255, 255, 0.8);
  color: #374151;
}

.insight-dismiss-v2 svg {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   Responsive adjustments
   ========================================================================== */

@media (max-width: 640px) {
  .insight-card-v2 {
    gap: 1rem;
    padding: 0.875rem 1rem;
  }

  .insight-metric-cards {
    flex-direction: column;
    gap: 0.5rem;
  }

  .insight-metric-card {
    padding: 0.5rem 0.75rem;
    min-width: auto;
  }

  .insight-metric-card-value {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .insight-gauge-wrapper {
    transform: scale(0.85);
    margin: -8px;
  }

  .insight-gauge-number {
    font-size: 1.5rem;
  }

  .insight-main-title {
    font-size: 1rem;
  }

  .insight-metric-card-value {
    font-size: 0.9375rem;
  }
}
