.diagnostic-alerts .diagnostic-result {
  cursor: pointer;
  transition: background 0.2s ease;
}

.diagnostic-alerts .diagnostic-result:hover {
  background: rgba(250, 219, 141, 0.6);
}

.diagnostic-alert-detail {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  display: none;
}

.diagnostic-alert-detail.is-visible {
  display: block;
}
.chat-messages__row {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 0.5rem;
}

.chat-messages__row .bubble {
  width: 100%;
  max-width: 100%;
}

.bubble.agent.bubble--diagnostic,
.bubble.agent.bubble--diagnostic-summary {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.bubble.agent.bubble--diagnostic > .diagnostic-inline,
.bubble.agent.bubble--diagnostic-summary > .diagnostic-inline {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 18px;
  padding: 1.1rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.bubble.agent.bubble--diagnostic > .diagnostic-inline {
  border-radius: 18px;
}
.ticket-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ticket-panel__header {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.ticket-alert {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 14px;
  padding: 0.8rem 1rem;
  color: #065f46;
  font-weight: 600;
}

.conversation {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.conversation__bubble {
  border-radius: 20px;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(124, 58, 237, 0.15);
  background: rgba(255, 255, 255, 0.95);
}

.conversation__bubble header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.conversation__bubble--user {
  border-color: rgba(124, 58, 237, 0.4);
  background: rgba(124, 58, 237, 0.08);
}

.conversation__bubble--agent {
  border-color: rgba(15, 23, 42, 0.1);
}

.conversation__bubble--diagnostic {
  border-color: rgba(124, 58, 237, 0.35);
  background: rgba(236, 233, 255, 0.45);
}

.conversation-diagnostic-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.conversation-diagnostic-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(124, 58, 237, 0.25);
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
}

.conversation-diagnostic-row--warning {
  border-color: rgba(249, 115, 22, 0.35);
  background: rgba(249, 115, 22, 0.12);
}

.conversation-diagnostic-row--error {
  border-color: rgba(220, 38, 38, 0.35);
  background: rgba(220, 38, 38, 0.12);
}

.conversation-diagnostic-row--success {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.12);
}

.conversation-diagnostic-label {
  font-weight: 600;
  color: var(--dark-purple);
}

.conversation-diagnostic-status {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ticket-reply {
  margin-top: 1rem;
}

.ticket-reply form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.ticket-reply textarea {
  border-radius: 16px;
  border: 1px solid rgba(124, 58, 237, 0.25);
  padding: 1rem;
  font-family: inherit;
}

.ticket-reply__note {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.diagnostic-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.diagnostic-app {
  margin-top: 0;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
}

.diagnostic-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.diagnostic-code {
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.2rem;
  background: rgba(124, 58, 237, 0.08);
  border: 1px dashed var(--primary-purple);
  border-radius: 16px;
  padding: 0.75rem 1.25rem;
  min-width: 160px;
  text-align: center;
}

.diagnostic-options {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.diagnostic-option {
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1rem;
  background: rgba(249, 248, 255, 0.8);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.diagnostic-option label {
  display: flex;
  gap: 0.5rem;
  font-weight: 600;
  align-items: center;
}

.diagnostic-option small {
  color: var(--text-secondary);
  line-height: 1.4;
}

.diagnostic-results {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.diagnostic-result {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(124, 58, 237, 0.1);
}

.diagnostic-result:last-child {
  border-bottom: none;
}

.diagnostic-result strong {
  font-weight: 600;
}

.diagnostic-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  text-transform: capitalize;
}

.diagnostic-status.success {
  color: #15803d;
}

.diagnostic-status.warning {
  color: #d97706;
}

.diagnostic-status.error {
  color: #dc2626;
}

.diagnostic-status.unsupported {
  color: #dc2626;
}

.diagnostic-status.info {
  color: var(--text-secondary);
}

.diagnostic-runner .btn {
  min-width: 200px;
}

.chat-diagnostic {
  border: 1px dashed rgba(124, 58, 237, 0.25);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
}

.chat-diagnostic__prompt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.chat-diagnostic__actions {
  display: inline-flex;
  gap: 0.5rem;
}

.chat-diagnostic__actions .btn-sm {
  padding: 0.3rem 0.8rem;
  font-size: 0.85rem;
  border-radius: 999px;
}

.chat-diagnostic--active {
  padding: 0;
  border: none;
  background: transparent;
}

.chat-diagnostic--active .diagnostic-app {
  padding: 0;
}

.chat-messages__row {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 0.75rem;
}

.chat-messages__row .bubble {
  width: 100%;
  max-width: 100%;
}

.bubble.agent.bubble--diagnostic,
.bubble.agent.bubble--diagnostic-summary {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.diagnostic-card {
  width: 100%;
  position: relative;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 16px;
  padding: 0.85rem 0.9rem 1rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.diagnostic-card.diagnostic-inline {
  border-radius: 12px;
  padding: 0.35rem 0.65rem 0.75rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.diagnostic-card--summary {
  padding: 1.1rem 1.1rem 1.3rem;
}

.diagnostic-inline {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.diagnostic-inline-header {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.35rem;
}

.diagnostic-code-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.diagnostic-inline-header .diagnostic-code-group {
  flex: 1 1 auto;
  min-width: 0;
}

.diagnostic-code-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  color: var(--text-secondary);
}

.diagnostic-inline .diagnostic-code {
  font-size: 0.95rem;
  padding: 0.2rem 0.6rem;
  letter-spacing: 0.12rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
}

.diagnostic-card.diagnostic-inline .diagnostic-run-again {
  align-self: flex-start;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.22rem 0.95rem;
  min-height: 1.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, 0.25);
  background: linear-gradient(135deg, rgba(236, 233, 255, 0.96), rgba(208, 192, 255, 0.85));
  color: #4c1d95;
  letter-spacing: 0.04rem;
  box-shadow: 0 2px 6px rgba(76, 29, 149, 0.18);
  margin-bottom: 0.1rem;
}


.diagnostic-live {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.diagnostic-live-entry {
  display: flex;
  flex-direction: column;
  padding: 0.35rem 0.5rem;
  background: rgba(248, 248, 255, 0.9);
  border-radius: 12px;
  border: 1px solid rgba(124, 58, 237, 0.12);
}

.diagnostic-live-entry strong {
  font-size: 0.85rem;
}

.diagnostic-live-entry .diagnostic-status {
  font-size: 0.75rem;
  text-transform: capitalize;
}

.diagnostic-live-entry .diagnostic-result-detail {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.diagnostic-summary-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.diagnostic-status-inline {
  margin-top: 0.15rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.diagnostic-summary-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06rem;
  color: var(--text-secondary);
  margin: 0;
}

.diagnostic-summary-entry {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 12px;
  padding: 0.35rem 0.55rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
  cursor: pointer;
  font: inherit;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.diagnostic-summary-entry:hover {
  border-color: rgba(124, 58, 237, 0.35);
}

.diagnostic-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.diagnostic-summary-label {
  font-weight: 600;
  font-size: 0.92rem;
}

.diagnostic-summary-detail {
  display: none;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.diagnostic-summary-detail.is-visible {
  display: block;
}

.diagnostic-summary-entry .diagnostic-status {
  text-transform: capitalize;
}

.diagnostic-alerts {
  border-top: 1px dashed rgba(124, 58, 237, 0.2);
  padding-top: 0.5rem;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.diagnostic-alerts .diagnostic-result {
  padding: 0.35rem 0.4rem;
  font-size: 0.85rem;
  border-radius: 10px;
  background: rgba(254, 243, 199, 0.45);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.diagnostic-alerts .diagnostic-status {
  font-size: 0.78rem;
}

.diagnostic-result--inline {
  padding: 0.35rem 0.4rem;
  font-size: 0.85rem;
  border-radius: 10px;
  background: rgba(248, 248, 255, 0.8);
}

.diagnostic-summary {
  margin: 0.4rem 0 0;
  padding-left: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.ticket-feedback {
  border-top: 1px solid var(--border-light);
  padding-top: 0.75rem;
  margin-top: 1.25rem;
}

.ticket-feedback__form {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.35rem;
}

.ticket-feedback__scale {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.ticket-feedback__emoji-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease;
  background: #fff;
  min-width: 48px;
}

.ticket-feedback__emoji-button:hover,
.ticket-feedback__emoji-button:focus-visible {
  border-color: rgba(124, 58, 237, 0.6);
}

.ticket-feedback__emoji-button .emoji {
  font-size: 1.25rem;
}

.ticket-feedback__result {
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1rem;
  background: rgba(124, 58, 237, 0.03);
}

.ticket-diagnostics {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.ticket-diagnostics__issues,
.ticket-diagnostics__passes {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 16px;
  padding: 1.1rem 1.3rem;
}

.ticket-diagnostics__issues h3,
.ticket-diagnostics__passes h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  color: var(--dark-purple);
}

.ticket-diagnostics__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.ticket-diagnostics__card {
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  background: rgba(248, 248, 255, 0.9);
}

.ticket-diagnostics__card-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.ticket-diagnostics__card-value {
  font-weight: 600;
  color: var(--dark-purple);
}

.ticket-diagnostics__history {
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 14px;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.98);
}

.ticket-diagnostics__history summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--primary-purple);
  margin-bottom: 0.5rem;
}

.diagnostic-summary-card {
  background: #fff;
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 16px;
  padding: 1rem;
  margin-top: 0.75rem;
}

.diagnostic-summary-card__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.diagnostic-summary-card__entries {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.6rem;
}

.diagnostic-summary-pill {
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  background: rgba(248, 250, 252, 0.9);
}

.diagnostic-summary-pill--warning {
  border-color: rgba(249, 115, 22, 0.4);
}

.diagnostic-summary-pill--error {
  border-color: rgba(220, 38, 38, 0.4);
}

.diagnostic-summary-pill--success {
  border-color: rgba(16, 185, 129, 0.35);
}

.diagnostic-summary-pill__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
}

.diagnostic-summary-pill__detail {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.message-thread {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.message {
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1rem;
  background: #fff;
}

.message header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.message.user {
  border-left: 4px solid var(--primary-purple);
}

.message.agent {
  border-left: 4px solid var(--accent-purple);
}
:root {
  --primary-purple: #7c3aed;
  --secondary-purple: #a855f7;
  --accent-purple: #c084fc;
  --dark-purple: #4c1d95;
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a68;
  --text-light: #fdfcff;
  --bg-main: #f5f3f7;
  --bg-white: #fbfafc;
  --bg-section: #f0eef3;
  --card-border: rgba(124, 58, 237, 0.15);
  --border-light: rgba(124, 58, 237, 0.15);
  --shadow-soft: 0 15px 40px rgba(124, 58, 237, 0.12);
  --shadow-sm: 0 2px 10px rgba(124, 58, 237, 0.08);
  --shadow-md: 0 10px 30px rgba(124, 58, 237, 0.12);
  --shadow-lg: 0 20px 60px rgba(124, 58, 237, 0.15);
  --gradient: linear-gradient(135deg, #7c3aed, #a855f7, #c084fc);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-main);
}

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

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg-main);
  min-height: 100vh;
  line-height: 1.6;
  color: var(--text-primary);
  overflow-x: hidden;
}

body.scroll-locked {
  overflow: hidden;
}

.top-bar {
  background: var(--gradient);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  color: #fdfcff;
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.top-bar-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 4rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.main-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 252, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(124, 58, 237, 0.08);
}

.nav-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(45deg, #7c3aed, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  display: inline-block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.logo-tagline {
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-left: 1px solid var(--border-light);
  padding-left: 1.25rem;
  padding-top: 0.1rem;
  margin-left: 0.5rem;
  display: flex;
  align-items: center;
  font-weight: 500;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -30px;
  width: 0;
  height: 3px;
  background: linear-gradient(45deg, #7c3aed, #a855f7);
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: var(--primary-purple);
}

.nav-menu a:hover::after,
.nav-menu a.active::after,
.nav-menu a:focus-visible::after {
  width: 100%;
}

.nav-link-support {
  color: #7c3aed !important;
}

.nav-link-support:hover,
.nav-link-support:focus-visible {
  color: #7c3aed !important;
}

.mobile-menu-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-purple);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 90px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.12);
  backdrop-filter: blur(20px);
  z-index: 99;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 1.25rem 2rem;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(124, 58, 237, 0.15);
  font-weight: 500;
  transition: all 0.3s ease;
}

.mobile-nav a:hover {
  background: rgba(124, 58, 237, 0.05);
  color: var(--primary-purple);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.panel {
  background: var(--bg-white);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.panel--hero {
  margin-top: 3rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), var(--bg-main));
}

.panel--hero h1 {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.panel--hero p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 640px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 2.5rem;
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  max-width: 560px;
  color: var(--text-secondary);
}

.hero-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-panel h3 {
  margin: 0;
  font-size: 1.2rem;
}

.hero-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  color: var(--text-secondary);
}

.hero-panel li {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}

.hero-panel li::before {
  content: "•";
  color: var(--accent-blue);
  font-size: 1.4rem;
  line-height: 1;
}

.hero-note {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-note--ticket {
  margin-top: 0.5rem;
  font-style: italic;
  font-size: 0.78rem;
}

.hero-disclaimer {
  font-size: 0.9rem;
  background: rgba(124, 58, 237, 0.08);
  border: 1px dashed rgba(124, 58, 237, 0.25);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  color: var(--text-secondary);
}

.knowledge-callout {
  background: linear-gradient(120deg, rgba(124, 58, 237, 0.1), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 20px;
  padding: 1.25rem 1.5rem 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.knowledge-callout__badge {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary-purple);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  white-space: nowrap;
}

.knowledge-callout__copy {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1rem;
}

.hero-metrics {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-metrics li {
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  flex: 1 1 140px;
  min-width: 140px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.hero-metrics span {
  display: block;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary-purple);
}

.cta-group {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.2rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 15px 25px rgba(124, 58, 237, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
}

.btn-secondary {
  background: rgba(124, 58, 237, 0.08);
  color: var(--primary-purple);
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 30px rgba(124, 58, 237, 0.25);
}

.panel--grid {
  margin-top: 2rem;
}

.panel--grid h2 {
  font-family: "Poppins", sans-serif;
  margin-bottom: 1.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}

.card-grid--guides {
  gap: 1.9rem;
}

.card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.08);
}

.card--guide {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  min-height: 220px;
  padding: 1.75rem;
  border: 1px solid rgba(124, 58, 237, 0.1);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.07);
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1 1 auto;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card__body p {
  color: var(--text-secondary);
  margin: 0;
  flex: 1 1 auto;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-badge {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  color: var(--primary-purple);
  margin-bottom: 0.8rem;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.section-list {
  margin-top: 1rem;
  padding-left: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.6;
  list-style: disc;
}

ol.section-list {
  list-style: decimal;
}

.panel--two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}

.section-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.panel__cta {
  margin-top: 2rem;
  text-align: center;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, 0.3);
  background: rgba(124, 58, 237, 0.08);
  color: var(--primary-purple);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-link span {
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.card-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(124, 58, 237, 0.15);
}

.card-link:hover span {
  transform: translateX(2px);
}

.chat-shell {
  background: #f8f9ff;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.chat-messages {
  flex: 1 1 auto;
  min-height: 160px;
  overflow-y: auto;
  padding: 1.5rem;
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 18px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scrollbar-width: thin;
  scrollbar-color: #c084fc rgba(124, 58, 237, 0.12);
}

.chat-messages::-webkit-scrollbar {
  width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
  background: rgba(124, 58, 237, 0.08);
  border-radius: 999px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #c084fc, #a855f7);
  border-radius: 999px;
}

.bubble {
  padding: 1rem 1.3rem;
  border-radius: 18px;
  max-width: 80%;
  line-height: 1.4;
  font-size: 0.95rem;
}

.bubble.agent {
  background: rgba(124, 58, 237, 0.08);
  color: var(--dark-purple);
  align-self: flex-start;
}

.bubble.agent.bubble--diagnostic,
.bubble.agent.bubble--diagnostic-summary {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(124, 58, 237, 0.18);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  padding: 0;
}

.bubble.system {
  background: rgba(15, 23, 42, 0.06);
  color: var(--text-secondary);
  align-self: center;
  font-size: 0.85rem;
}

.bubble--rating {
  background: linear-gradient(135deg, rgba(135, 95, 255, 0.15), rgba(255, 255, 255, 0.6));
  max-width: 100%;
  width: 100%;
  border-radius: 26px;
  padding: 1.1rem 1.4rem;
}

.bubble.user {
  background: var(--gradient);
  color: #fff;
  align-self: flex-end;
}

.chat-form {
  display: flex;
  gap: 0.8rem;
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0));
}

.chat-form textarea {
  flex: 1;
  resize: none;
  border-radius: 18px;
  border: 1px solid rgba(124, 58, 237, 0.2);
  padding: 1rem;
  font-family: inherit;
  min-height: 70px;
}

.chat-form.is-disabled textarea,
.chat-form.is-disabled button {
  opacity: 0.6;
  pointer-events: none;
}

.panel--form label {
  display: block;
  margin-bottom: 1rem;
  font-weight: 600;
}

.panel--form input,
.panel--form textarea,
.panel--form select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(124, 58, 237, 0.25);
  padding: 0.85rem;
  font-family: inherit;
  margin-top: 0.35rem;
  background: #fff;
}

.form-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.form-feedback {
  margin-top: 0.5rem;
  font-weight: 600;
}

.form-feedback.error {
  color: #b42318;
}

.chat-rating {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 1rem;
  margin-bottom: 0.5rem;
  width: 100%;
}

.rating-buttons {
  display: flex;
  gap: 0.55rem;
  flex-wrap: nowrap;
  justify-content: space-between;
  padding-top: 0.8rem;
}

.rating-buttons button {
  width: 64px;
  height: 64px;
  padding: 0.3rem;
  border-radius: 20px;
  border: none;
  background: radial-gradient(circle, #ffffff 20%, #f0e5ff 100%);
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(80, 53, 120, 0.2);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.rating-buttons button .emoji {
  font-size: 1.55rem;
}

.rating-buttons button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(124, 58, 237, 0.25);
}

.knowledge-back {
  margin: 2rem 0 3rem;
  text-align: center;
}

.rating-buttons button.active {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  box-shadow: 0 14px 28px rgba(124, 58, 237, 0.35);
  transform: translateY(-4px);
}

.rating-feedback textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(124, 58, 237, 0.3);
  padding: 0.75rem;
  font-family: inherit;
  margin-top: 0.5rem;
}

.rating-status {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #475569;
}

.footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
  color: var(--text-light);
  padding: 4rem 0 2rem;
}

.footer-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem 4rem;
  margin-bottom: 2rem;
}

.footer-brand h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 600;
  background: linear-gradient(45deg, #7c3aed, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: "Poppins", sans-serif;
}

.footer-brand p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.footer-address {
  font-size: 0.95rem;
  opacity: 0.85;
  line-height: 1.8;
}

.footer-column h4 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #ddd6fe;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: var(--text-light);
  text-decoration: none;
  opacity: 0.85;
  transition: color 0.3s ease, opacity 0.3s ease;
  font-size: 0.95rem;
}

.footer-column a:hover {
  opacity: 1;
  color: #ddd6fe;
}

.footer-column:nth-child(2) {
  padding-left: 3rem;
}

.footer-bottom {
  border-top: 1px solid rgba(139, 92, 246, 0.3);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  opacity: 0.9;
  font-size: 0.95rem;
}

.footer-legal {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-legal a {
  color: var(--text-light);
  text-decoration: none;
  opacity: 0.85;
  transition: color 0.3s ease, opacity 0.3s ease;
  font-size: 0.95rem;
}

.footer-legal a:hover {
  opacity: 1;
  color: #ddd6fe;
}

@media (max-width: 1200px) {
  .nav-container {
    padding: 0 2rem;
  }

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

@media (max-width: 768px) {
  .top-bar {
    font-size: 0.75rem;
    padding: 0.375rem 0;
  }

  .nav-container {
    padding: 0 1.5rem;
    height: 70px;
  }

  .logo {
    font-size: 1.75rem;
  }

  .logo-tagline {
    display: none;
  }

  .nav-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .mobile-nav {
    top: 70px;
    max-height: calc(100vh - 70px);
  }

  .panel {
    padding: 2rem;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-panel {
    order: 1;
  }

  .hero-copy {
    order: 0;
  }

  .cta-group {
    flex-direction: column;
  }

  .chat-form {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-column:nth-child(2) {
    padding-left: 0;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

