:root {
  --emerald-900: #064e3b;
  --emerald-700: #047857;
  --emerald-500: #10b981;
  --emerald-200: #a7f3d0;
  --sand-50: #fffbeb;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-500: #64748b;
  --white: #ffffff;
  --bg-gradient: linear-gradient(135deg, #ecfdf5, #fefce8);
  --font-sans: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-gradient);
  color: var(--slate-900);
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-wrapper {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

.site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-icon {
  font-size: 1.8rem;
}

.brand-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
}

.brand-subtitle {
  display: block;
  font-size: 0.75rem;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.primary-nav {
  display: flex;
  gap: 1.4rem;
  font-size: 0.95rem;
  color: var(--slate-700);
}

.primary-nav a:hover {
  color: var(--emerald-700);
}

.header-actions {
  display: flex;
  gap: 0.75rem;
}

.logout-form {
  margin: 0;
}

.logout-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(16, 185, 129, 0.15);
}

.btn-primary {
  background: var(--emerald-700);
  color: var(--white);
}

.btn-outline {
  border: 1px solid rgba(14, 116, 144, 0.2);
  color: var(--emerald-700);
  background: transparent;
}

main {
  flex: 1;
}

.hero {
  padding: 6rem 0 4rem;
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.promise-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.6rem;
  color: var(--slate-600);
}

.promise-list li {
  display: flex;
  gap: 0.75rem;
  align-items: start;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1rem;
  background: rgba(248, 250, 252, 0.7);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  font-size: 0.95rem;
  line-height: 1.5;
}

.promise-icon {
  flex: 0 0 2rem;
  height: 2rem;
  border-radius: 0.7rem;
  background: rgba(14, 165, 233, 0.12);
  color: var(--emerald-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-top: 0.1rem;
}

.flow-grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.flow-card {
  padding: 1.8rem;
  background: var(--white);
  border-radius: 1.4rem;
  box-shadow: 0 18px 40px rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.12);
  display: grid;
  gap: 0.8rem;
}

.flow-card h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--slate-900);
}

.flow-card p {
  margin: 0;
  color: var(--slate-600);
  line-height: 1.6;
}

.flow-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--slate-600);
  display: grid;
  gap: 0.4rem;
  line-height: 1.55;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald-700);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  margin: 1rem 0;
  color: var(--slate-900);
}

.hero-copy {
  font-size: 1.1rem;
  color: var(--slate-700);
  line-height: 1.6;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 2.5rem;
  gap: 1.5rem;
}

.stat-card {
  background: var(--white);
  border-radius: 1.4rem;
  padding: 1.5rem;
  box-shadow: 0 15px 40px rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.1);
}

.stat-card span {
  display: block;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--emerald-700);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 1.2rem;
}

.section-subtitle {
  margin-bottom: 2.5rem;
  color: var(--slate-600);
  font-size: 1rem;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 12px 32px rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.1);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.section-block {
  padding: 3.5rem 0;
}

.feature-section {
  padding: 3.5rem 0;
}

.section-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
  display: grid;
  gap: 0.75rem;
}

.section-intro .pill {
  margin-inline: auto;
}

.section-intro .section-title {
  margin: 0;
}

.section-intro .section-subtitle {
  margin: 0;
  max-width: 640px;
  margin-inline: auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.2rem;
}

.feature-card {
  display: grid;
  gap: 1rem;
  align-content: start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: 2.4rem;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 118, 110, 0.12);
}

.feature-card p {
  color: var(--slate-600);
  margin: 0;
}

.feature-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  background: rgba(16, 185, 129, 0.14);
  font-size: 1.6rem;
}

.traceability-section {
  padding: 3.5rem 0;
  background: rgba(255, 255, 255, 0.7);
  margin-top: 1.5rem;
}

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

.traceability-media img {
  width: 100%;
  border-radius: 1.6rem;
  box-shadow: 0 18px 44px rgba(15, 118, 110, 0.14);
  border: 1px solid rgba(15, 118, 110, 0.12);
  object-fit: cover;
}

.traceability-steps {
  list-style: none;
  padding: 0;
  margin: 2rem 0 2.5rem;
  display: grid;
  gap: 1rem;
}

.traceability-steps li {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(16, 185, 129, 0.08);
  padding: 0.85rem 1.2rem;
  border-radius: 1rem;
  color: var(--slate-700);
  font-weight: 500;
}

.traceability-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: var(--emerald-700);
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 6px 12px rgba(15, 118, 110, 0.2);
}

@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.demo-actions {
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.dashboard-hero-actions {
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-demo {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  gap: 0.65rem;
  padding: 0.65rem 1.6rem;
}

.btn-demo:hover {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.22);
}

.btn-demo--solid {
  color: var(--white);
  background: var(--emerald-700);
  border-color: var(--emerald-700);
}

.btn-demo--solid:hover {
  background: var(--emerald-600);
  box-shadow: 0 16px 32px rgba(5, 150, 105, 0.28);
}

.btn-demo--solid .demo-icon {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

.btn-demo span {
  display: inline-flex;
  align-items: center;
}

.demo-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--slate-900);
}

.demo-icon-farmer {
  background: rgba(254, 240, 138, 0.45);
}

.demo-icon-buyer {
  background: rgba(191, 219, 254, 0.45);
}

.demo-icon-support {
  background: rgba(196, 181, 253, 0.45);
}

.demo-icon-tender {
  background: rgba(253, 221, 155, 0.45);
}

.demo-icon-team {
  background: rgba(187, 247, 208, 0.45);
}

.demo-icon-console {
  background: rgba(165, 243, 252, 0.45);
}

.demo-icon-escalation {
  background: rgba(254, 202, 202, 0.5);
}

.demo-icon-trust {
  background: rgba(134, 239, 172, 0.5);
}

.demo-icon-coins {
  background: rgba(253, 230, 138, 0.5);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(6, 78, 59, 0.08);
  color: var(--emerald-700);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.flow-card ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.flow-card li {
  display: flex;
  gap: 0.7rem;
  color: var(--slate-600);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.price-tag {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--emerald-700);
}

.site-footer {
  background: rgba(6, 78, 59, 0.92);
  color: var(--white);
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}

.footer-grid h4 {
  margin-bottom: 1rem;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-note {
  text-align: center;
  margin-top: 2.5rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
}

.dashboard-hero {
  background: linear-gradient(135deg, rgba(6, 95, 70, 0.92), rgba(16, 185, 129, 0.8)),
    url("https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=1400&q=80")
      center/cover;
  color: var(--white);
  border-radius: 2rem;
  padding: 3.5rem;
  margin-bottom: 2.8rem;
  position: relative;
  overflow: hidden;
}

.dashboard-hero::after {
  content: "";
  position: absolute;
  inset: -60px 40% auto -40px;
  height: 320px;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(80px);
  transform: rotate(25deg);
}

.dashboard-hero > * {
  position: relative;
  z-index: 2;
}

.dashboard-grid {
  display: grid;
  gap: 2rem;
}

.dashboard-section {
  background: var(--white);
  border-radius: 1.6rem;
  padding: 2rem;
  box-shadow: 0 12px 32px rgba(15, 118, 110, 0.08);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.metrics-card {
  background: rgba(236, 253, 245, 0.6);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 1.2rem;
  padding: 1.4rem;
}

.table-list {
  display: grid;
  gap: 1.2rem;
}

.table-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.form-wrapper {
  background: var(--white);
  border-radius: 1.6rem;
  padding: 2.5rem;
  box-shadow: 0 12px 34px rgba(15, 118, 110, 0.1);
}

.form-grid {
  display: grid;
  gap: 1.5rem;
}

.form-control {
  width: 100%;
  border-radius: 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: var(--white);
}

.form-control:focus {
  border-color: var(--emerald-500);
  outline: none;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.form-checkbox {
  width: auto;
  height: 1.1rem;
  width: 1.1rem;
}

.form-error {
  margin-top: 0.4rem;
  color: #b91c1c;
  font-size: 0.85rem;
}

.form-error--global {
  padding: 1rem;
  border: 1px solid rgba(248, 113, 113, 0.5);
  background: rgba(254, 226, 226, 0.7);
  border-radius: 0.9rem;
  color: #7f1d1d;
}

.flash-container {
  width: min(960px, 90%);
  margin: 0.8rem auto 0;
  display: grid;
  gap: 0.6rem;
}

.flash {
  padding: 0.85rem 1.2rem;
  border-radius: 0.9rem;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.08);
}

.flash-success {
  background: rgba(236, 253, 245, 0.9);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--emerald-700);
}

.flash-error,
.flash-warning {
  background: rgba(254, 226, 226, 0.95);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #b91c1c;
}

.flash-info {
  background: rgba(219, 234, 254, 0.95);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #1d4ed8;
}

.account-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.account-card {
  position: relative;
  display: block;
  cursor: pointer;
}

.account-card input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.account-card-body {
  display: grid;
  gap: 0.65rem;
  align-content: start;
  padding: 1.4rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(15, 118, 110, 0.18);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 26px rgba(15, 118, 110, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  min-height: 100%;
}

.account-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  background: rgba(16, 185, 129, 0.12);
  font-size: 1.6rem;
}

.account-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--slate-900);
}

.account-card-copy {
  color: var(--slate-600);
  font-size: 0.95rem;
  line-height: 1.5;
}

.account-card input:focus + .account-card-body {
  outline: 3px solid rgba(16, 185, 129, 0.35);
  outline-offset: 3px;
}

.account-card input:checked + .account-card-body {
  border-color: var(--emerald-500);
  box-shadow: 0 18px 38px rgba(15, 118, 110, 0.18);
  transform: translateY(-4px);
}

.account-section[hidden] {
  display: none !important;
}

.form-grid fieldset {
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 1.2rem;
  padding: 1.6rem;
}

.form-grid legend {
  padding: 0 0.6rem;
  font-weight: 700;
  color: var(--emerald-700);
}

.form-grid label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-500);
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  border-radius: 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border-color: var(--emerald-500);
  outline: none;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 620px);
  justify-content: center;
  padding: 4rem 0;
}

.login-grid {
  display: grid;
  gap: 2rem;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.form-demo-credentials {
  font-size: 0.85rem;
  background: rgba(236, 253, 245, 0.6);
  padding: 0.8rem;
  border-radius: 0.8rem;
  display: grid;
  gap: 0.3rem;
}

.wallet-amount {
  font-weight: 700;
}

.wallet-amount--credit {
  color: var(--emerald-700);
}

.wallet-amount--debit {
  color: #b91c1c;
}

.chat-layout {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
}

.chat-wrapper {
  background: var(--white);
  border-radius: 1.6rem;
  box-shadow: 0 12px 32px rgba(15, 118, 110, 0.08);
  padding: 2rem;
  display: grid;
  gap: 2rem;
}

.chat-messages {
  max-height: 420px;
  overflow-y: auto;
  display: grid;
  gap: 1.4rem;
  padding-right: 0.5rem;
}

.chat-message {
  border-radius: 1rem;
  padding: 1rem 1.2rem;
  background: rgba(236, 253, 245, 0.6);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.chat-message--self {
  margin-left: auto;
  background: rgba(191, 219, 254, 0.5);
  border-color: rgba(59, 130, 246, 0.25);
}

.chat-message-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--slate-500);
  margin-bottom: 0.6rem;
}

.chat-compose {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  padding-top: 1.4rem;
}

.support-ticket-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(148, 163, 184, 0.2);
  color: var(--slate-700);
}

.support-ticket-status--open {
  background: rgba(250, 204, 21, 0.2);
  color: #92400e;
}

.support-ticket-status--in_review {
  background: rgba(219, 234, 254, 0.8);
  color: #1d4ed8;
}

.support-ticket-status--resolved {
  background: rgba(187, 247, 208, 0.6);
  color: #166534;
}

.support-ticket-status--closed {
  background: rgba(148, 163, 184, 0.4);
  color: #334155;
}

#assistant-widget {
  position: fixed;
  bottom: 1.6rem;
  right: 1.6rem;
  z-index: 120;
}

.assistant-bubble {
  width: 3.8rem;
  height: 3.8rem;
  border-radius: 50%;
  border: none;
  display: grid;
  place-items: center;
  background: #0faa4b;
  color: var(--white);
  font-size: 1.6rem;
  box-shadow: 0 18px 40px rgba(15, 170, 75, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.assistant-bubble:hover,
.assistant-bubble:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(15, 170, 75, 0.4);
  outline: none;
}

#assistant-panel {
  position: absolute;
  bottom: 4.4rem;
  right: 0;
  width: min(360px, calc(100vw - 2rem));
  background: #f7f7f7;
  border-radius: 1.2rem 1.2rem 1.2rem 0;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  max-height: min(75vh, 540px);
}

.assistant-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #009944;
  color: var(--white);
  padding: 1rem 1.1rem;
}

.assistant-panel__nav {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}

.assistant-panel__nav:hover,
.assistant-panel__nav:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  outline: none;
}

.assistant-panel__nav--menu {
  font-size: 1.1rem;
  font-weight: 700;
}

.assistant-panel__identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.assistant-panel__identity h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.assistant-panel__identity p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.8;
}

.assistant-panel__avatar {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: #0faf5b;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.assistant-panel__close {
  background: rgba(255, 255, 255, 0.18);
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}

.assistant-panel__close:hover,
.assistant-panel__close:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  outline: none;
}

.assistant-panel__messages {
  flex: 1;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  overflow-y: auto;
}

.assistant-message {
  max-width: 85%;
  padding: 0.8rem 1rem;
  border-radius: 1.1rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.assistant-message--assistant {
  background: #ffffff;
  color: #1f2937;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-bottom-right-radius: 0.4rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.assistant-message--user {
  background: #0faa4b;
  color: var(--white);
  margin-left: auto;
  border-bottom-left-radius: 0.4rem;
  box-shadow: 0 12px 26px rgba(15, 170, 75, 0.3);
}

.assistant-panel__footer {
  background: #ffffff;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  padding: 0.9rem 1.1rem;
  display: grid;
  gap: 0.75rem;
}

#assistant-form {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
}

#assistant-form textarea {
  flex: 1;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  resize: none;
  min-height: 2.8rem;
  max-height: 6rem;
  line-height: 1.4;
}

#assistant-form textarea:focus {
  outline: none;
  border-color: #0faa4b;
  box-shadow: 0 0 0 2px rgba(15, 170, 75, 0.15);
}

.assistant-panel__actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.assistant-panel__send {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: none;
  background: #0faa4b;
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 24px rgba(15, 170, 75, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.assistant-panel__send:hover,
.assistant-panel__send:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 170, 75, 0.34);
  outline: none;
}

.assistant-panel__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: #4b5563;
  justify-content: center;
  padding-top: 0.1rem;
}

@media (max-width: 640px) {
  #assistant-widget {
    bottom: 1rem;
    right: 1rem;
  }

  #assistant-panel {
    width: min(100vw - 1.6rem, 360px);
  }
}

@media (max-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .primary-nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .header-actions {
    order: 2;
  }
}

@media (max-width: 720px) {
  .dashboard-hero {
    padding: 2.5rem;
  }

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

