:root {
  --text: #6b6375;
  --text-h: #08060d;
  --bg: #fff;
  --border: #e5e4e7;
  --code-bg: #f4f3ec;
  --accent: #aa3bff;
  --accent-bg: rgba(170, 59, 255, 0.1);
  --accent-border: rgba(170, 59, 255, 0.5);
  --social-bg: rgba(244, 243, 236, 0.5);
  --shadow:
    rgba(0, 0, 0, 0.1) 0 10px 15px -3px, rgba(0, 0, 0, 0.05) 0 4px 6px -2px;

  --sans: system-ui, 'Segoe UI', Roboto, sans-serif;
  --heading: system-ui, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, Consolas, monospace;

  font: 18px/145% var(--sans);
  letter-spacing: 0.18px;
  color-scheme: light dark;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  @media (max-width: 1024px) {
    font-size: 16px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #9ca3af;
    --text-h: #f3f4f6;
    --bg: #16171d;
    --border: #2e303a;
    --code-bg: #1f2028;
    --accent: #c084fc;
    --accent-bg: rgba(192, 132, 252, 0.15);
    --accent-border: rgba(192, 132, 252, 0.5);
    --social-bg: rgba(47, 48, 58, 0.5);
    --shadow:
      rgba(0, 0, 0, 0.4) 0 10px 15px -3px, rgba(0, 0, 0, 0.25) 0 4px 6px -2px;
  }

  #social .button-icon {
    filter: invert(1) brightness(2);
  }
}

#root {
  width: 1126px;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  border-inline: 1px solid var(--border);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

body {
  margin: 0;
}

h1,
h2 {
  font-family: var(--heading);
  font-weight: 500;
  color: var(--text-h);
}

h1 {
  font-size: 56px;
  letter-spacing: -1.68px;
  margin: 32px 0;
  @media (max-width: 1024px) {
    font-size: 36px;
    margin: 20px 0;
  }
}
h2 {
  font-size: 24px;
  line-height: 118%;
  letter-spacing: -0.24px;
  margin: 0 0 8px;
  @media (max-width: 1024px) {
    font-size: 20px;
  }
}
p {
  margin: 0;
}

code,
.counter {
  font-family: var(--mono);
  display: inline-flex;
  border-radius: 4px;
  color: var(--text-h);
}

code {
  font-size: 15px;
  line-height: 135%;
  padding: 4px 8px;
  background: var(--code-bg);
}
/* Landing Page Styles */
.landing-page {
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #ffffff;
  color: #1a202c;
}

/* Navigation */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

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

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

.brand-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a202c;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  color: #4a5568;
}

.nav-link:hover {
  color: #6366f1;
  background: rgba(99, 102, 241, 0.05);
}

.nav-link.primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.nav-link.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Hero Section */
.hero-section {
  padding: 8rem 2rem 4rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: #1a202c;
  margin: 0;
}

.hero-highlight {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #4a5568;
  margin: 0;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.cta-button {
  padding: 0.875rem 1.5rem;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cta-button.primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
}

.cta-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.cta-button.secondary {
  background: white;
  color: #6366f1;
  border: 2px solid #6366f1;
}

.cta-button.secondary:hover {
  background: #6366f1;
  color: white;
  transform: translateY(-2px);
}

/* Hero Banner */
.hero-banner {
  position: relative;
}

.banner-image {
  position: relative;
  height: 400px;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(99, 102, 241, 0.1) 100%);
}

.banner-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 2rem;
}

.banner-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.banner-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.9;
  font-weight: 500;
}

/* Features Section */
.features-section {
  padding: 6rem 2rem;
  background: white;
}

.features-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.feature-card {
  background: #f8fafc;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: rgba(99, 102, 241, 0.1);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 0.5rem 0;
}

.feature-card p {
  color: #4a5568;
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}

/* Footer */
.landing-footer {
  background: #1a202c;
  color: white;
  padding: 3rem 2rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.footer-brand .brand-icon {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.25rem;
}

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

.footer-links a {
  color: #a0aec0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #6366f1;
}

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: #718096;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-section {
    padding: 6rem 2rem 2rem;
  }

  .banner-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
}

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

  .hero-section {
    padding: 5rem 1rem 2rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-button {
    width: 100%;
    max-width: 300px;
  }

  .banner-image {
    height: 300px;
  }

  .banner-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .banner-image {
    height: 250px;
  }

  .banner-icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
  }

  .feature-card {
    padding: 1.5rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .feature-card,
  .cta-button,
  .nav-link.primary {
    transition: none;
  }

  .feature-card:hover,
  .cta-button:hover,
  .nav-link.primary:hover {
    transform: none;
  }
}

/* Focus styles */
.nav-link:focus-visible,
.cta-button:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6366f1;
}

.metric-data {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
}

.metric-label {
  font-size: 0.8rem;
  color: #64748b;
}

.preview-chart {
  display: flex;
  align-items: end;
  gap: 4px;
  height: 60px;
  margin-top: 16px;
  padding: 12px 0;
}

.chart-bar {
  flex: 1;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 2px 2px 0 0;
  min-height: 10%;
  transition: height 0.3s ease;
}

.features-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #64748b;
  max-width: 600px;
  margin: 16px auto 0;
  line-height: 1.6;
}

.feature-highlight {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.9rem;
  color: #059669;
  font-weight: 600;
}

.feature-highlight i {
  font-size: 0.8rem;
}

.testimonials-section {
  margin: 100px 0;
  text-align: center;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.testimonial-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.testimonial-content {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #374151;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.author-info {
  text-align: left;
}

.author-name {
  font-weight: 700;
  color: #111827;
  margin-bottom: 2px;
}

.author-title {
  font-size: 0.9rem;
  color: #64748b;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: #6366f1;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.25s ease;
  text-decoration: none;
}

.social-links a:hover {
  background: #6366f1;
  color: white;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .landing-header {
    flex-direction: column;
    gap: 20px;
  }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 1024px) {
  .hero-section {
    flex-direction: column;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .hero-right {
    display: none; /* Chatbot is now floating */
  }
}
.chat-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  font-size: 25px;
  cursor: pointer;
  z-index: 99999;
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.35);
}

.chat-box {
  position: fixed;
  right: 22px;
  bottom: 95px;
  width: 360px;
  height: 520px;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 99999;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
  border: 1px solid #e5e7eb;
}

.chat-header {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: white;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header small {
  display: block;
  font-size: 12px;
  opacity: 0.9;
  margin-top: 3px;
}

.chat-header-actions {
  display: flex;
  gap: 6px;
}

.chat-header button {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
}

.chat-form {
  padding: 20px;
}

.chat-form h3 {
  margin: 0 0 6px;
  color: #111827;
}

.chat-form p {
  margin: 0 0 18px;
  color: #6b7280;
  font-size: 14px;
}

.chat-form input,
.chat-form textarea {
  width: 100%;
  margin-bottom: 12px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  outline: none;
}

.chat-form textarea {
  height: 90px;
  resize: none;
}

.chat-form input:focus,
.chat-form textarea:focus {
  border-color: #2563eb;
}

.start-btn {
  width: 100%;
  border: none;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: white;
  padding: 13px;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
}

.chat-messages {
  flex: 1;
  padding: 14px;
  background: #f8fafc;
  overflow-y: auto;
}

.msg {
  padding: 10px 12px;
  margin-bottom: 10px;
  max-width: 80%;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
}

.msg.bot,
.msg.agent {
  background: #e5e7eb;
  color: #111827;
  margin-right: auto;
}

.msg.user {
  background: #2563eb;
  color: white;
  margin-left: auto;
}

.chat-input {
  display: flex;
  padding: 10px;
  gap: 8px;
  border-top: 1px solid #e5e7eb;
}

.chat-input input {
  flex: 1;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 10px;
  outline: none;
}

.chat-input button {
  background: #16a34a;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 0 15px;
  cursor: pointer;
}

@media (max-width: 480px) {
  .chat-box {
    width: calc(100% - 24px);
    right: 12px;
    bottom: 85px;
    height: 520px;
  }

  .chat-toggle {
    right: 16px;
    bottom: 16px;
  }
}* {
  box-sizing: border-box;
}

:root {
  --bg-1: #eef4ff;
  --bg-2: #e8edff;
  --card: #ffffff;
  --primary: #4f46e5;
  --primary-2: #5b6df8;
  --primary-soft: #eef2ff;
  --primary-border: #c7d2fe;
  --text-main: #182235;
  --text-soft: #64748b;
  --input-bg: #f8fafc;
  --input-border: #d9e2ec;
  --danger-bg: #fff1f2;
  --danger-border: #fecdd3;
  --danger-text: #be123c;
}

.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-container {
  width: 100%;
  max-width: 460px;
  background: var(--card);
  border: 1px solid rgba(79, 70, 229, 0.08);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  padding: 28px;
}

.login-header {
  margin-bottom: 22px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.logo i {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-2) 0%, var(--primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 22px;
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.18);
  flex-shrink: 0;
}

.logo-text {
  font-size: 24px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.login-title {
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.12;
  font-weight: 800;
  color: var(--text-main);
}

.login-subtitle {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-soft);
  font-weight: 500;
}

.login-form {
  margin-top: 6px;
}

.error-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger-text);
  font-size: 13px;
  font-weight: 600;
}

.form-group {
  width: 100%;
  margin-bottom: 16px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  text-align: left;
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 54px;
  border: 1.5px solid var(--input-border);
  border-radius: 14px;
  background: var(--input-bg);
  overflow: hidden;
  transition: all 0.22s ease;
}

.input-container:hover,
.input-container:focus-within {
  border-color: #6474f7;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(100, 116, 247, 0.08);
}

.input-icon {
  width: 50px;
  min-width: 50px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #7b8aa1;
  font-size: 15px;
}

.form-input {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  -webkit-text-fill-color: var(--text-main);
}

.form-input::placeholder {
  color: #94a3b8;
  opacity: 1;
  font-size: 14px;
  font-weight: 500;
}

.login-actions-row {
  margin-top: 4px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.text-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s ease;
}

.text-link:hover {
  text-decoration: underline;
}

.login-button {
  width: 100%;
  height: 56px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: 0 14px 28px rgba(79, 70, 229, 0.18);
}

.login-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.login-button:disabled {
  opacity: 0.82;
  cursor: not-allowed;
}

.button-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.login-footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #edf2f7;
  text-align: center;
}

.login-footer p {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
  font-weight: 500;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 520px) {
  .login-page {
    padding: 14px;
  }

  .login-container {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .logo i {
    width: 50px;
    height: 50px;
    font-size: 20px;
    border-radius: 14px;
  }

  .logo-text {
    font-size: 21px;
  }

  .login-title {
    font-size: 24px;
  }

  .login-subtitle,
  .login-footer p,
  .checkbox-label,
  .text-link {
    font-size: 13px;
  }

  .input-container {
    height: 50px;
    border-radius: 12px;
  }

  .input-icon {
    width: 46px;
    min-width: 46px;
    height: 50px;
  }

  .form-input {
    height: 50px;
    font-size: 14px;
  }

  .login-button {
    height: 52px;
    font-size: 14px;
  }

  .login-actions-row {
    flex-direction: column;
    align-items: flex-start;
  }
}* {
  box-sizing: border-box;
}

:root {
  --bg-1: #eef4ff;
  --bg-2: #e8edff;
  --card: #ffffff;
  --primary: #4f46e5;
  --primary-soft: #eef2ff;
  --primary-border: #c7d2fe;
  --text-main: #182235;
  --text-soft: #64748b;
  --input-bg: #f8fafc;
  --input-border: #d9e2ec;
  --danger-bg: #fff1f2;
  --danger-border: #fecdd3;
  --danger-text: #be123c;
}

.register-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.register-shell {
  width: 100%;
  max-width: 1080px;
}

.register-card {
  width: 100%;
  background: var(--card);
  border: 1px solid rgba(79, 70, 229, 0.08);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.register-main {
  padding: 28px;
}

.register-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: linear-gradient(135deg, #5b6df8 0%, #4957e8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 24px;
  box-shadow: 0 12px 28px rgba(73, 87, 232, 0.18);
  flex-shrink: 0;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.12;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.brand-subtitle {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-soft);
  font-weight: 500;
}

.top-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.error-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger-text);
  font-size: 13px;
  font-weight: 600;
}

.register-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 320px;
  gap: 22px;
  align-items: start;
}

.form-section {
  background: #ffffff;
  border: 1px solid #edf2f7;
  border-radius: 20px;
  padding: 22px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0 0 4px;
  font-size: 20px;
  line-height: 1.2;
  color: var(--text-main);
  font-weight: 800;
}

.section-heading p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-soft);
  font-weight: 500;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.full-width {
  grid-column: 1 / -1;
}

.form-group {
  width: 100%;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  text-align: left;
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 54px;
  border: 1.5px solid var(--input-border);
  border-radius: 14px;
  background: var(--input-bg);
  overflow: hidden;
  transition: all 0.22s ease;
}

.input-container:hover,
.input-container:focus-within {
  border-color: #6474f7;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(100, 116, 247, 0.08);
}

.input-icon-wrap {
  width: 50px;
  min-width: 50px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #e2e8f0;
  background: #f8fafc;
}

.input-icon {
  color: #7b8aa1;
  font-size: 15px;
}

.form-input {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  -webkit-text-fill-color: var(--text-main);
}

.form-input::placeholder {
  color: #94a3b8;
  opacity: 1;
  font-size: 14px;
  font-weight: 500;
}

select.form-input {
  appearance: none;
  cursor: pointer;
  padding-right: 42px;
}

select.form-input option {
  color: var(--text-main);
  background: #ffffff;
}

.select-container {
  position: relative;
}

.select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 13px;
  pointer-events: none;
}

.info-panel {
  background: linear-gradient(180deg, #f8faff 0%, #eef3ff 100%);
  border: 1px solid #dbe5ff;
  border-radius: 20px;
  padding: 20px;
}

.info-panel-head {
  margin-bottom: 16px;
}

.info-panel-head h3 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.2;
  color: var(--text-main);
  font-weight: 800;
}

.info-panel-head p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-soft);
  font-weight: 500;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #334155;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 600;
}

.info-dot {
  width: 7px;
  height: 7px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.register-actions {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #edf2f7;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.register-button {
  width: 100%;
  max-width: 360px;
  height: 56px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f46e5 0%, #5b6df8 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: 0 14px 28px rgba(79, 70, 229, 0.18);
}

.register-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.register-button:disabled {
  opacity: 0.82;
  cursor: not-allowed;
}

.button-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.register-footer {
  margin-top: 14px;
  text-align: center;
}

.register-footer p {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
  font-weight: 500;
}

.text-link {
  color: var(--primary);
  font-weight: 800;
  text-decoration: underline;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .register-body {
    grid-template-columns: 1fr;
  }

  .info-panel {
    order: 2;
  }

  .form-section {
    order: 1;
  }
}

@media (max-width: 768px) {
  .register-page {
    padding: 14px;
  }

  .register-main {
    padding: 18px;
  }

  .register-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-title {
    font-size: 24px;
  }

  .top-badge {
    padding: 8px 12px;
    font-size: 12px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-section,
  .info-panel {
    padding: 16px;
    border-radius: 16px;
  }

  .input-container {
    height: 50px;
    border-radius: 12px;
  }

  .input-icon-wrap {
    width: 46px;
    min-width: 46px;
    height: 50px;
  }

  .form-input {
    font-size: 14px;
    height: 50px;
  }

  .register-button {
    height: 52px;
    font-size: 14px;
  }

  .register-footer p,
  .info-item,
  .section-heading p,
  .info-panel-head p {
    font-size: 13px;
  }
}.dashboard-page {
  min-height: 100vh;
  background: #f8fafc;
  color: #0f172a;
  font-family: 'Inter', system-ui, sans-serif;
}

.dashboard-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 40px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  padding: 28px 32px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
  position: sticky;
  top: 18px;
  z-index: 10;
}

.dashboard-heading {
  margin: 0;
  font-size: clamp(1.6rem, 2vw, 2.2rem);
  line-height: 1.05;
  color: #111827;
}

.dashboard-subtitle {
  margin: 12px 0 0;
  color: #475569;
  font-size: 0.98rem;
  max-width: 600px;
}

.logout-btn {
  border: none;
  border-radius: 999px;
  padding: 12px 26px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 18px 40px rgba(99, 102, 241, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.logout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(99, 102, 241, 0.25);
}

.dashboard-welcome {
  margin-top: 32px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  padding: 36px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 18px;
}

.welcome-card-header {
  display: flex;
  align-items: center;
  gap: 18px;
}

.welcome-emoji {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(135deg, #c7d2fe 0%, #e0e7ff 100%);
  font-size: 2.4rem;
}

.welcome-title {
  margin: 0;
  font-size: clamp(1.8rem, 2vw, 2.4rem);
  color: #111827;
}

.welcome-copy {
  margin: 0;
  color: #475569;
  font-size: 1rem;
  line-height: 1.8;
}

.user-label {
  color: #4338ca;
  font-weight: 700;
  text-transform: capitalize;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.stat-card {
  background: #ffffff;
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 16px 40px rgba(99, 102, 241, 0.08);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stat-card__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(99, 102, 241, 0.12);
  color: #4338ca;
  font-size: 1.35rem;
}

.stat-card__title {
  margin: 0;
  color: #475569;
  font-size: 0.95rem;
  font-weight: 700;
}

.stat-card__value {
  margin: 0;
  color: #111827;
  font-size: 2rem;
  font-weight: 700;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.stat-pill.superuser {
  background: #fee2e2;
  color: #b91c1c;
}

.stat-pill.admin {
  background: #dcfce7;
  color: #15803d;
}

.stat-pill.onboarding_user,
.stat-pill.onboarding-user {
  background: #fef3c7;
  color: #92400e;
}

.stat-pill.customer {
  background: #dbeafe;
  color: #1d4ed8;
}

.quick-actions {
  margin-top: 34px;
}

.actions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.section-title {
  margin: 0;
  color: #111827;
  font-size: 1.05rem;
  font-weight: 700;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.action-button {
  width: 100%;
  padding: 18px 20px;
  border: none;
  border-radius: 20px;
  background: #eef2ff;
  color: #1e293b;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  box-shadow: 0 16px 32px rgba(99, 102, 241, 0.08);
  transition: transform 0.25s ease, background 0.25s ease;
}

.action-button:hover {
  transform: translateY(-2px);
  background: #e0e7ff;
}

.action-button.primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
}

.action-button.success {
  background: linear-gradient(135deg, #22c55e 0%, #14b8a6 100%);
  color: #ffffff;
}

.action-button.accent {
  background: linear-gradient(135deg, #f97316 0%, #f59e0b 100%);
  color: #ffffff;
}

.action-button.neutral {
  background: #f8fafc;
  color: #1f2937;
}

.dashboard-empty {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at top, rgba(99, 102, 241, 0.16), transparent 35%),
    linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
  padding: 24px;
}

.empty-card {
  max-width: 520px;
  width: 100%;
  background: #ffffff;
  border-radius: 28px;
  padding: 42px 32px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.08);
  text-align: center;
}

.empty-card h2 {
  margin: 0 0 20px;
  color: #111827;
  font-size: 1.55rem;
}

.empty-card p {
  color: #475569;
  line-height: 1.8;
}

@media (max-width: 900px) {
  .dashboard-header {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-container {
    padding: 24px 20px 32px;
  }
}

@media (max-width: 720px) {
  .dashboard-header {
    padding: 20px 18px;
  }

  .dashboard-welcome {
    padding: 28px;
  }

  .stat-card {
    padding: 22px;
  }
}
.onboarding-overview,
.onboarding-management {
  margin-top: 28px;
}

.onboarding-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  align-items: start;
}

.onboarding-list-card,
.onboarding-details-card {
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  padding: 22px;
}

.onboarding-list-header,
.onboarding-details-header,
.progress-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.onboarding-list-header h3,
.onboarding-details-header h3,
.setup-steps-card h4,
.progress-card h4 {
  margin: 0;
  color: #0f172a;
}

.onboarding-list-header span,
.onboarding-details-header p {
  color: #64748b;
  font-size: 14px;
  margin: 0;
}

.onboarding-user-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.onboarding-user-item {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: #f8fafc;
  border-radius: 18px;
  padding: 14px;
  text-align: left;
  transition: all 0.25s ease;
  cursor: pointer;
}

.onboarding-user-item:hover,
.onboarding-user-item.active {
  background: #eff6ff;
  border-color: #60a5fa;
  transform: translateY(-2px);
}

.onboarding-user-item__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.onboarding-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.onboarding-user-meta {
  flex: 1;
  min-width: 0;
}

.onboarding-user-meta h4 {
  margin: 0 0 4px;
  color: #0f172a;
  font-size: 15px;
}

.onboarding-user-meta p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.onboarding-user-item__bottom small {
  display: block;
  color: #64748b;
  margin-top: 6px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status-completed {
  background: #dcfce7;
  color: #166534;
}

.status-progress {
  background: #dbeafe;
  color: #1d4ed8;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.mini-progress,
.progress-track {
  width: 100%;
  height: 9px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}

.mini-progress-bar,
.progress-track__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.detail-box {
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  padding: 14px;
}

.detail-box span {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 6px;
}

.detail-box strong {
  color: #0f172a;
  font-size: 15px;
  line-height: 1.5;
}

.detail-box--full {
  grid-column: 1 / -1;
}

.progress-card,
.setup-steps-card {
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  padding: 18px;
  margin-top: 18px;
}

.setup-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.setup-step {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  padding: 13px 14px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #64748b;
  font-weight: 600;
}

.setup-step.done {
  background: #ecfdf5;
  border-color: #86efac;
  color: #166534;
}

@media (max-width: 992px) {
  .onboarding-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .details-grid,
  .setup-steps-grid {
    grid-template-columns: 1fr;
  }

  .onboarding-list-card,
  .onboarding-details-card {
    padding: 16px;
  }

  .onboarding-user-item__top {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}
.onboarding-overview,
.onboarding-management {
  margin-top: 28px;
}

.refresh-btn {
  border: none;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
}

.refresh-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.api-state-card {
  margin-top: 18px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  padding: 28px 20px;
  text-align: center;
  color: #475569;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.api-state-card i {
  font-size: 24px;
  margin-bottom: 10px;
  display: block;
}

.api-state-card--error {
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.2);
  background: #fff5f5;
}

.onboarding-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 18px;
}

.onboarding-list-card,
.onboarding-details-card {
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  padding: 22px;
}

.onboarding-list-header,
.onboarding-details-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.onboarding-list-header h3,
.onboarding-details-header h3,
.setup-steps-card h4 {
  margin: 0;
  color: #0f172a;
}

.onboarding-list-header span,
.onboarding-details-header p {
  color: #64748b;
  font-size: 14px;
  margin: 0;
}

.onboarding-user-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.onboarding-user-item {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: #f8fafc;
  border-radius: 18px;
  padding: 14px;
  text-align: left;
  transition: all 0.25s ease;
  cursor: pointer;
}

.onboarding-user-item:hover,
.onboarding-user-item.active {
  background: #eff6ff;
  border-color: #60a5fa;
  transform: translateY(-2px);
}

.onboarding-user-item__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.onboarding-user-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.onboarding-user-meta {
  flex: 1;
  min-width: 0;
}

.onboarding-user-meta h4 {
  margin: 0 0 4px;
  color: #0f172a;
  font-size: 15px;
}

.onboarding-user-meta p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.onboarding-user-item__bottom {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.onboarding-user-item__bottom small {
  color: #64748b;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status-completed {
  background: #dcfce7;
  color: #166534;
}

.status-progress {
  background: #dbeafe;
  color: #1d4ed8;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.detail-box {
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  padding: 14px;
}

.detail-box span {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 6px;
}

.detail-box strong {
  color: #0f172a;
  font-size: 15px;
  line-height: 1.5;
  word-break: break-word;
}

.detail-box--full {
  grid-column: 1 / -1;
}

.setup-steps-card {
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  padding: 18px;
  margin-top: 18px;
}

.setup-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.setup-step {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  padding: 13px 14px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #64748b;
  font-weight: 600;
}

.setup-step.done {
  background: #ecfdf5;
  border-color: #86efac;
  color: #166534;
}

@media (max-width: 992px) {
  .onboarding-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .details-grid,
  .setup-steps-grid {
    grid-template-columns: 1fr;
  }

  .onboarding-list-card,
  .onboarding-details-card {
    padding: 16px;
  }

  .onboarding-user-item__top {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}/* this gets exported as style.css and can be used for the default theming */
/* these are the necessary styles for React Flow, they get used by base.css and style.css */
.react-flow {
  direction: ltr;
}
.react-flow__container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}
.react-flow__pane {
  z-index: 1;
  cursor: -webkit-grab;
  cursor: grab;
}
.react-flow__pane.selection {
    cursor: pointer;
  }
.react-flow__pane.dragging {
    cursor: -webkit-grabbing;
    cursor: grabbing;
  }
.react-flow__viewport {
  transform-origin: 0 0;
  z-index: 2;
  pointer-events: none;
}
.react-flow__renderer {
  z-index: 4;
}
.react-flow__selection {
  z-index: 6;
}
.react-flow__nodesselection-rect:focus,
.react-flow__nodesselection-rect:focus-visible {
  outline: none;
}
.react-flow .react-flow__edges {
  pointer-events: none;
  overflow: visible;
}
.react-flow__edge-path,
.react-flow__connection-path {
  stroke: #b1b1b7;
  stroke-width: 1;
  fill: none;
}
.react-flow__edge {
  pointer-events: visibleStroke;
  cursor: pointer;
}
.react-flow__edge.animated path {
    stroke-dasharray: 5;
    -webkit-animation: dashdraw 0.5s linear infinite;
            animation: dashdraw 0.5s linear infinite;
  }
.react-flow__edge.animated path.react-flow__edge-interaction {
    stroke-dasharray: none;
    -webkit-animation: none;
            animation: none;
  }
.react-flow__edge.inactive {
    pointer-events: none;
  }
.react-flow__edge.selected,
  .react-flow__edge:focus,
  .react-flow__edge:focus-visible {
    outline: none;
  }
.react-flow__edge.selected .react-flow__edge-path,
  .react-flow__edge:focus .react-flow__edge-path,
  .react-flow__edge:focus-visible .react-flow__edge-path {
    stroke: #555;
  }
.react-flow__edge-textwrapper {
    pointer-events: all;
  }
.react-flow__edge-textbg {
    fill: white;
  }
.react-flow__edge .react-flow__edge-text {
    pointer-events: none;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
  }
.react-flow__connection {
  pointer-events: none;
}
.react-flow__connection .animated {
    stroke-dasharray: 5;
    -webkit-animation: dashdraw 0.5s linear infinite;
            animation: dashdraw 0.5s linear infinite;
  }
.react-flow__connectionline {
  z-index: 1001;
}
.react-flow__nodes {
  pointer-events: none;
  transform-origin: 0 0;
}
.react-flow__node {
  position: absolute;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  pointer-events: all;
  transform-origin: 0 0;
  box-sizing: border-box;
  cursor: -webkit-grab;
  cursor: grab;
}
.react-flow__node.dragging {
    cursor: -webkit-grabbing;
    cursor: grabbing;
  }
.react-flow__nodesselection {
  z-index: 3;
  transform-origin: left top;
  pointer-events: none;
}
.react-flow__nodesselection-rect {
    position: absolute;
    pointer-events: all;
    cursor: -webkit-grab;
    cursor: grab;
  }
.react-flow__handle {
  position: absolute;
  pointer-events: none;
  min-width: 5px;
  min-height: 5px;
  width: 6px;
  height: 6px;
  background: #1a192b;
  border: 1px solid white;
  border-radius: 100%;
}
.react-flow__handle.connectionindicator {
    pointer-events: all;
    cursor: crosshair;
  }
.react-flow__handle-bottom {
    top: auto;
    left: 50%;
    bottom: -4px;
    transform: translate(-50%, 0);
  }
.react-flow__handle-top {
    left: 50%;
    top: -4px;
    transform: translate(-50%, 0);
  }
.react-flow__handle-left {
    top: 50%;
    left: -4px;
    transform: translate(0, -50%);
  }
.react-flow__handle-right {
    right: -4px;
    top: 50%;
    transform: translate(0, -50%);
  }
.react-flow__edgeupdater {
  cursor: move;
  pointer-events: all;
}
.react-flow__panel {
  position: absolute;
  z-index: 5;
  margin: 15px;
}
.react-flow__panel.top {
    top: 0;
  }
.react-flow__panel.bottom {
    bottom: 0;
  }
.react-flow__panel.left {
    left: 0;
  }
.react-flow__panel.right {
    right: 0;
  }
.react-flow__panel.center {
    left: 50%;
    transform: translateX(-50%);
  }
.react-flow__attribution {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.5);
  padding: 2px 3px;
  margin: 0;
}
.react-flow__attribution a {
    text-decoration: none;
    color: #999;
  }
@-webkit-keyframes dashdraw {
  from {
    stroke-dashoffset: 10;
  }
}
@keyframes dashdraw {
  from {
    stroke-dashoffset: 10;
  }
}
.react-flow__edgelabel-renderer {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.react-flow__edge.updating .react-flow__edge-path {
      stroke: #777;
    }
.react-flow__edge-text {
    font-size: 10px;
  }
.react-flow__node.selectable:focus,
  .react-flow__node.selectable:focus-visible {
    outline: none;
  }
.react-flow__node-default,
.react-flow__node-input,
.react-flow__node-output,
.react-flow__node-group {
  padding: 10px;
  border-radius: 3px;
  width: 150px;
  font-size: 12px;
  color: #222;
  text-align: center;
  border-width: 1px;
  border-style: solid;
  border-color: #1a192b;
  background-color: white;
}
.react-flow__node-default.selectable:hover, .react-flow__node-input.selectable:hover, .react-flow__node-output.selectable:hover, .react-flow__node-group.selectable:hover {
      box-shadow: 0 1px 4px 1px rgba(0, 0, 0, 0.08);
    }
.react-flow__node-default.selectable.selected,
    .react-flow__node-default.selectable:focus,
    .react-flow__node-default.selectable:focus-visible,
    .react-flow__node-input.selectable.selected,
    .react-flow__node-input.selectable:focus,
    .react-flow__node-input.selectable:focus-visible,
    .react-flow__node-output.selectable.selected,
    .react-flow__node-output.selectable:focus,
    .react-flow__node-output.selectable:focus-visible,
    .react-flow__node-group.selectable.selected,
    .react-flow__node-group.selectable:focus,
    .react-flow__node-group.selectable:focus-visible {
      box-shadow: 0 0 0 0.5px #1a192b;
    }
.react-flow__node-group {
  background-color: rgba(240, 240, 240, 0.25);
}
.react-flow__nodesselection-rect,
.react-flow__selection {
  background: rgba(0, 89, 220, 0.08);
  border: 1px dotted rgba(0, 89, 220, 0.8);
}
.react-flow__nodesselection-rect:focus,
  .react-flow__nodesselection-rect:focus-visible,
  .react-flow__selection:focus,
  .react-flow__selection:focus-visible {
    outline: none;
  }
.react-flow__controls {
  box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.08);
}
.react-flow__controls-button {
    border: none;
    background: #fefefe;
    border-bottom: 1px solid #eee;
    box-sizing: content-box;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 16px;
    height: 16px;
    cursor: pointer;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
    padding: 5px;
  }
.react-flow__controls-button:hover {
      background: #f4f4f4;
    }
.react-flow__controls-button svg {
      width: 100%;
      max-width: 12px;
      max-height: 12px;
    }
.react-flow__controls-button:disabled {
      pointer-events: none;
    }
.react-flow__controls-button:disabled svg {
        fill-opacity: 0.4;
      }
.react-flow__minimap {
  background-color: #fff;
}
.react-flow__minimap svg {
  display: block;
}
.react-flow__resize-control {
  position: absolute;
}
.react-flow__resize-control.left,
.react-flow__resize-control.right {
  cursor: ew-resize;
}
.react-flow__resize-control.top,
.react-flow__resize-control.bottom {
  cursor: ns-resize;
}
.react-flow__resize-control.top.left,
.react-flow__resize-control.bottom.right {
  cursor: nwse-resize;
}
.react-flow__resize-control.bottom.left,
.react-flow__resize-control.top.right {
  cursor: nesw-resize;
}
/* handle styles */
.react-flow__resize-control.handle {
  width: 4px;
  height: 4px;
  border: 1px solid #fff;
  border-radius: 1px;
  background-color: #3367d9;
  transform: translate(-50%, -50%);
}
.react-flow__resize-control.handle.left {
  left: 0;
  top: 50%;
}
.react-flow__resize-control.handle.right {
  left: 100%;
  top: 50%;
}
.react-flow__resize-control.handle.top {
  left: 50%;
  top: 0;
}
.react-flow__resize-control.handle.bottom {
  left: 50%;
  top: 100%;
}
.react-flow__resize-control.handle.top.left {
  left: 0;
}
.react-flow__resize-control.handle.bottom.left {
  left: 0;
}
.react-flow__resize-control.handle.top.right {
  left: 100%;
}
.react-flow__resize-control.handle.bottom.right {
  left: 100%;
}
/* line styles */
.react-flow__resize-control.line {
  border-color: #3367d9;
  border-width: 0;
  border-style: solid;
}
.react-flow__resize-control.line.left,
.react-flow__resize-control.line.right {
  width: 1px;
  transform: translate(-50%, 0);
  top: 0;
  height: 100%;
}
.react-flow__resize-control.line.left {
  left: 0;
  border-left-width: 1px;
}
.react-flow__resize-control.line.right {
  left: 100%;
  border-right-width: 1px;
}
.react-flow__resize-control.line.top,
.react-flow__resize-control.line.bottom {
  height: 1px;
  transform: translate(0, -50%);
  left: 0;
  width: 100%;
}
.react-flow__resize-control.line.top {
  top: 0;
  border-top-width: 1px;
}
.react-flow__resize-control.line.bottom {
  border-bottom-width: 1px;
  top: 100%;
}
.dataflow-builder {
  min-height: 100vh;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
}

.dataflow-header {
  background: white;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

.header-content h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-content p {
  margin: 8px 0 0 0;
  color: #64748b;
  font-size: 1rem;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.btn-primary, .btn-secondary {
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
  background: white;
  color: #64748b;
  border: 2px solid rgba(15, 23, 42, 0.1);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #6366f1;
  color: #6366f1;
}

.dataflow-content {
  display: flex;
  flex: 1;
  height: calc(100vh - 100px);
}

.dataflow-sidebar {
  width: 300px;
  background: white;
  border-right: 1px solid rgba(15, 23, 42, 0.1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar-section {
  padding: 20px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.sidebar-section h3 {
  margin: 0 0 16px 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
}

.dataflow-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dataflow-item {
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.dataflow-item:hover {
  background: #f8fafc;
  border-color: #6366f1;
}

.dataflow-item.active {
  background: rgba(99, 102, 241, 0.1);
  border-color: #6366f1;
}

.dataflow-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}

.dataflow-item-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #64748b;
}

.status {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status.draft {
  background: #fef3c7;
  color: #d97706;
}

.status.active {
  background: #d1fae5;
  color: #059669;
}

.status.archived {
  background: #e5e7eb;
  color: #6b7280;
}

.node-palette {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.node-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  cursor: grab;
  transition: all 0.2s ease;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: white;
}

.node-item:hover {
  background: #f8fafc;
  border-color: #6366f1;
  transform: translateY(-1px);
}

.node-item:active {
  cursor: grabbing;
}

.dataflow-canvas {
  flex: 1;
  position: relative;
}

.canvas-info {
  background: white;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.canvas-info h4 {
  margin: 0 0 4px 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
}

.canvas-info p {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
}

/* React Flow Custom Nodes */
.dataflow-node {
  background: white;
  border-radius: 12px;
  padding: 16px;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
  border: 2px solid transparent;
}

.dataflow-node:hover {
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.15);
}

.node-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 600;
  color: #111827;
}

.node-content {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}

.node-content p {
  margin: 0;
}

/* Node Type Colors */
.input-node {
  border-color: #10b981;
}

.input-node .node-header {
  color: #10b981;
}

.output-node {
  border-color: #f59e0b;
}

.output-node .node-header {
  color: #f59e0b;
}

.process-node {
  border-color: #6366f1;
}

.process-node .node-header {
  color: #6366f1;
}

.decision-node {
  border-color: #ef4444;
}

.decision-node .node-header {
  color: #ef4444;
}

.ai-node {
  border-color: #8b5cf6;
}

.ai-node .node-header {
  color: #8b5cf6;
}

.database-node {
  border-color: #06b6d4;
}

.database-node .node-header {
  color: #06b6d4;
}

.api-node {
  border-color: #84cc16;
}

.api-node .node-header {
  color: #84cc16;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
}

.modal-header {
  padding: 24px 24px 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #64748b;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #f8fafc;
  color: #111827;
}

.modal-body {
  padding: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #111827;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #6366f1;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.modal-footer {
  padding: 0 24px 24px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* React Flow Overrides */
.react-flow__node {
  border-radius: 12px !important;
}

.react-flow__node.selected {
  box-shadow: 0 0 0 2px #6366f1 !important;
}

.react-flow__edge.selected {
  z-index: 10;
}

.react-flow__controls {
  bottom: 20px !important;
  left: 20px !important;
}

.react-flow__minimap {
  bottom: 20px !important;
  right: 20px !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .dataflow-sidebar {
    width: 250px;
  }

  .dataflow-header {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .dataflow-sidebar {
    width: 100%;
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    height: 300px;
    z-index: 100;
    border-right: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  }

  .dataflow-content {
    flex-direction: column;
    height: calc(100vh - 400px);
  }

  .dataflow-canvas {
    height: 500px;
  }

  .modal-content {
    width: 95%;
    margin: 20px;
  }
}
.toolbar-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
}.live-agent-page {
  min-height: 100vh;
  background: #f4f7fb;
  padding: 20px;
}

.live-agent-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  min-height: calc(100vh - 40px);
}

.chat-sidebar,
.chat-main {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid #eef2f7;
}

.sidebar-header h2 {
  margin: 0;
  font-size: 22px;
  color: #0f172a;
}

.sidebar-header p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 14px;
}

.chat-user-list {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-user-item {
  width: 100%;
  border: none;
  background: #f8fafc;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
}

.chat-user-item.active {
  background: #e0f2fe;
  border: 1px solid #38bdf8;
}

.chat-user-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #0ea5e9;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.chat-user-info {
  flex: 1;
}

.chat-user-info h4 {
  margin: 0;
  font-size: 15px;
  color: #0f172a;
}

.chat-user-info p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #64748b;
}

.chat-user-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.online-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.online-dot.online {
  background: #22c55e;
}

.online-dot.offline {
  background: #cbd5e1;
}

.unread-badge {
  background: #ef4444;
  color: white;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
}

.chat-main {
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 18px 20px;
  border-bottom: 1px solid #eef2f7;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h3 {
  margin: 0;
  color: #0f172a;
}

.chat-header p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 14px;
}

.whatsapp-open-btn {
  border: none;
  background: #22c55e;
  color: white;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

.chat-messages {
  flex: 1;
  padding: 20px;
  background: #f8fafc;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-bubble {
  max-width: 70%;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
}

.chat-bubble p {
  margin: 0 0 6px;
}

.chat-bubble span {
  font-size: 11px;
  opacity: 0.7;
}

.chat-bubble.customer {
  background: white;
  align-self: flex-start;
}

.chat-bubble.agent {
  background: #dcfce7;
  align-self: flex-end;
}

.chat-input-box {
  border-top: 1px solid #eef2f7;
  padding: 16px;
  display: flex;
  gap: 12px;
}

.chat-input-box input {
  flex: 1;
  height: 48px;
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
}

.chat-input-box button {
  border: none;
  background: #0ea5e9;
  color: white;
  padding: 0 20px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
}

.empty-chat {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #64748b;
  font-size: 16px;
}

@media (max-width: 991px) {
  .live-agent-layout {
    grid-template-columns: 1fr;
  }
}* {
  box-sizing: border-box;
}

.support-page {
  width: 100%;
  height: 100vh;
  display: grid;
  grid-template-columns: 410px 1fr;
  background:
    radial-gradient(circle at top left, rgba(99, 102, 241, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.16), transparent 34%),
    linear-gradient(135deg, #f8fafc, #eef2ff);
  overflow: hidden;
  color: #0f172a;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.support-sidebar {
  height: 100vh;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(22px);
  border-right: 1px solid rgba(148, 163, 184, 0.24);
  display: flex;
  flex-direction: column;
  box-shadow: 24px 0 70px rgba(15, 23, 42, 0.08);
  z-index: 2;
}

.support-brand {
  padding: 24px 22px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-icon {
  width: 54px;
  height: 54px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  background: linear-gradient(135deg, #4f46e5, #0284c7);
  box-shadow: 0 18px 38px rgba(79, 70, 229, 0.28);
}

.support-brand h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #0f172a;
}

.support-brand p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #64748b;
}

.support-stats {
  margin: 0 20px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr 48px;
  gap: 10px;
}

.support-stats div,
.refresh-btn {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 18px;
  min-height: 58px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.support-stats div {
  padding: 10px 12px;
}

.support-stats strong {
  display: block;
  font-size: 19px;
  font-weight: 900;
  color: #0f172a;
}

.support-stats span {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

.refresh-btn {
  border: 0;
  cursor: pointer;
  color: #4f46e5;
  font-size: 16px;
  transition: 0.2s ease;
}

.refresh-btn:hover {
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #0284c7);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(79, 70, 229, 0.25);
}

.support-search {
  margin: 0 20px 14px;
  height: 50px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 15px;
  transition: 0.2s ease;
}

.support-search:focus-within {
  background: #ffffff;
  border-color: #818cf8;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.support-search i {
  color: #94a3b8;
}

.support-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0f172a;
  font-size: 14px;
}

.support-filters {
  display: flex;
  gap: 8px;
  padding: 0 20px 16px;
}

.support-filters button {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  transition: 0.2s ease;
}

.support-filters button.active,
.support-filters button:hover {
  background: linear-gradient(135deg, #4f46e5, #0284c7);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.22);
}

.conversation-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 14px 20px;
}

.conversation-card {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 22px;
  padding: 13px;
  display: flex;
  gap: 13px;
  cursor: pointer;
  text-align: left;
  transition: 0.18s ease;
  margin-bottom: 8px;
}

.conversation-card:hover,
.conversation-card.active {
  background: #ffffff;
  border-color: #e0e7ff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.customer-avatar {
  min-width: 50px;
  width: 50px;
  height: 50px;
  border-radius: 18px;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.15);
}

.customer-avatar.messaging {
  background: linear-gradient(135deg, #6366f1, #0284c7);
}

.customer-avatar.web {
  background: linear-gradient(135deg, #0f172a, #475569);
}

.customer-avatar.large {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: 21px;
}

.conversation-info {
  min-width: 0;
  flex: 1;
}

.conversation-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.conversation-top strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
  max-width: 195px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.conversation-top small {
  color: #94a3b8;
  font-size: 11px;
  white-space: nowrap;
}

.conversation-info p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.conversation-meta {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.conversation-meta span {
  color: #64748b;
  font-size: 11px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.conversation-meta span i {
  margin-right: 5px;
}

.conversation-meta em {
  font-style: normal;
  font-size: 10px;
  font-weight: 900;
  border-radius: 999px;
  padding: 4px 9px;
  white-space: nowrap;
}

.conversation-meta em.messaging {
  color: #4f46e5;
  background: #eef2ff;
}

.conversation-meta em.web {
  color: #0891b2;
  background: #ecfeff;
}

.empty-state {
  min-height: 210px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #94a3b8;
  font-size: 14px;
  text-align: center;
}

.empty-state i {
  font-size: 24px;
}

.support-chat {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72)),
    radial-gradient(circle at 20% 18%, rgba(79, 70, 229, 0.08), transparent 26%),
    radial-gradient(circle at 80% 75%, rgba(14, 165, 233, 0.09), transparent 28%);
  position: relative;
}

.no-chat {
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  padding: 30px;
}

.no-chat-icon {
  width: 104px;
  height: 104px;
  border-radius: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 42px;
  background: linear-gradient(135deg, #4f46e5, #0284c7);
  box-shadow: 0 30px 70px rgba(79, 70, 229, 0.3);
  margin-bottom: 20px;
}

.no-chat h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #0f172a;
}

.no-chat p {
  margin: 9px 0 0;
  color: #64748b;
  font-size: 15px;
}

.chat-header {
  min-height: 90px;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04);
  z-index: 1;
}

.chat-user {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.chat-user h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.035em;
}

.chat-user p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 13px;
}

.chat-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.channel-badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  text-transform: capitalize;
}

.channel-badge {
  background: #eef2ff;
  color: #4f46e5;
}

.status-badge {
  background: #f1f5f9;
  color: #475569;
}

.status-badge i {
  font-size: 8px;
  color: #22c55e;
}

.messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 30px;
}

.chat-loader {
  text-align: center;
  color: #64748b;
  font-size: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
}

.message-row {
  display: flex;
  margin-bottom: 15px;
}

.message-row.left {
  justify-content: flex-start;
}

.message-row.right {
  justify-content: flex-end;
}

.message-bubble {
  max-width: min(650px, 72%);
  padding: 13px 15px 10px;
  border-radius: 22px;
  position: relative;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  animation: bubbleIn 0.18s ease;
}

@keyframes bubbleIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-bubble p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.message-bubble small {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  font-size: 10px;
  opacity: 0.72;
}

.message-bubble.user,
.message-bubble.bot {
  color: #0f172a;
  background: #ffffff;
  border-bottom-left-radius: 7px;
}

.message-bubble.agent {
  color: #ffffff;
  background: linear-gradient(135deg, #4f46e5, #0284c7);
  border-bottom-right-radius: 7px;
}

.reply-area {
  padding: 16px 26px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(226, 232, 240, 0.85);
}

.round-action {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border: 0;
  border-radius: 18px;
  background: #eef2ff;
  color: #4f46e5;
  cursor: pointer;
  font-size: 18px;
  transition: 0.2s ease;
}

.round-action:hover {
  color: #fff;
  background: #4f46e5;
  transform: translateY(-1px);
}

.reply-area input {
  flex: 1;
  height: 52px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #f8fafc;
  outline: 0;
  padding: 0 18px;
  font-size: 14px;
  color: #0f172a;
  transition: 0.2s ease;
}

.reply-area input:focus {
  background: #ffffff;
  border-color: #818cf8;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.send-button {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border: 0;
  border-radius: 19px;
  cursor: pointer;
  color: #ffffff;
  font-size: 17px;
  background: linear-gradient(135deg, #4f46e5, #0284c7);
  box-shadow: 0 18px 36px rgba(79, 70, 229, 0.28);
  transition: 0.2s ease;
}

.send-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.conversation-list::-webkit-scrollbar,
.messages-area::-webkit-scrollbar {
  width: 7px;
}

.conversation-list::-webkit-scrollbar-thumb,
.messages-area::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.conversation-list::-webkit-scrollbar-track,
.messages-area::-webkit-scrollbar-track {
  background: transparent;
}

@media (max-width: 1100px) {
  .support-page {
    grid-template-columns: 360px 1fr;
  }

  .conversation-top strong {
    max-width: 150px;
  }
}

@media (max-width: 850px) {
  .support-page {
    height: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: auto;
  }

  .support-sidebar {
    height: 46vh;
    min-height: 360px;
    border-right: 0;
    border-bottom: 1px solid #e2e8f0;
  }

  .support-chat {
    height: 54vh;
    min-height: 480px;
  }

  .support-brand {
    padding: 18px 16px 12px;
  }

  .support-stats {
    margin: 0 16px 12px;
  }

  .support-search {
    margin: 0 16px 12px;
  }

  .support-filters {
    padding: 0 16px 12px;
    overflow-x: auto;
  }

  .conversation-list {
    padding: 4px 10px 14px;
  }

  .chat-header {
    min-height: auto;
    padding: 14px 16px;
    align-items: flex-start;
    flex-direction: column;
  }

  .chat-actions {
    justify-content: flex-start;
  }

  .messages-area {
    padding: 16px;
  }

  .message-bubble {
    max-width: 88%;
  }

  .reply-area {
    padding: 12px;
  }
}

@media (max-width: 520px) {
  .support-stats {
    grid-template-columns: 1fr 1fr;
  }

  .refresh-btn {
    grid-column: span 2;
    width: 100%;
  }

  .support-brand h2 {
    font-size: 21px;
  }

  .brand-icon {
    width: 48px;
    height: 48px;
  }

  .customer-avatar {
    width: 46px;
    height: 46px;
    min-width: 46px;
  }

  .conversation-card {
    padding: 11px;
  }

  .conversation-top strong {
    max-width: 145px;
  }

  .reply-area input {
    min-width: 0;
  }
}/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f8f9fa;
}

.App {
  min-height: 100vh;
}

/* Button hover effects */
button {
  transition: all 0.3s ease;
  cursor: pointer;
}

button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

/* Form styles */
input, select {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Link styles */
a {
  color: #667eea;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #764ba2;
}

/* Responsive design */
@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .summary-cards {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* Loading animation */
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.loading {
  animation: pulse 1.5s infinite;
}

/* Card hover effects */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Gradient backgrounds */
.gradient-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-bg-secondary {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gradient-bg-success {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }

.bg-white { background-color: white; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }

.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
  display: flex;
  gap: 14px;
  align-items: center;
}

.brand-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-logo strong {
  display: block;
  font-size: 1.05rem;
}

.brand-logo span {
  font-size: 0.85rem;
  color: #94a3b8;
}

.agents-panel {
  display: grid;
  gap: 12px;
}

.agents-heading {
  font-size: 0.9rem;
  color: #94a3b8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agent-chip {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.9);
  color: #cbd5e1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.agent-chip.selected,
.agent-chip:hover {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.28);
  color: #ffffff;
}

.agent-chip strong {
  display: block;
  font-size: 0.95rem;
}

.agent-chip small {
  font-size: 0.8rem;
  color: #94a3b8;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.active {
  background: #22c55e;
}

.status-dot.idle {
  background: #f59e0b;
}

.status-dot.offline {
  background: #94a3b8;
}

.sidebar nav {
  display: grid;
  gap: 10px;
}

.sidebar button {
  width: 100%;
  border: none;
  border-radius: 18px;
  padding: 14px 18px;
  background: transparent;
  color: #cbd5e1;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.sidebar button:hover,
.sidebar button.active {
  background: rgba(59, 130, 246, 0.18);
  color: #ffffff;
}

.sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-footer small {
  color: #94a3b8;
}

.upgrade-button {
  border: none;
  border-radius: 14px;
  padding: 13px 16px;
  background: #2563eb;
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.main-panel {
  padding: 32px 34px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  margin-bottom: 28px;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
}

.header-icon:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.gradient-text {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  font-size: clamp(2rem, 2.4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.topbar h1 {
  margin: 0;
  font-size: clamp(2rem, 2.4vw, 2.5rem);
}

.topbar p {
  margin: 8px 0 0;
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1.5;
  max-width: 480px;
}

.top-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.primary-action {
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: white;
  padding: 14px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.primary-action svg {
  margin-right: 8px;
  vertical-align: middle;
}
  border-radius: 16px;
  background: #1d4ed8;
  color: white;
  padding: 12px 18px;
  cursor: pointer;
}

.profile-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 700;
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.summary-cards article,
.panel {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 24px;
  padding: 24px;
}

.summary-cards article span,
.panel-header span {
  color: #94a3b8;
  display: block;
  margin-bottom: 12px;
}

.summary-cards article strong,
.panel-header h2 {
  display: block;
}

.summary-cards article strong {
  font-size: 2rem;
  margin-bottom: 10px;
}

.summary-cards article small {
  color: #60a5fa;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.panel-header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.panel-header span {
  padding: 8px 12px;
  background: rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  color: #bfdbfe;
  font-size: 0.85rem;
}

.panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.panel ul li {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel ul li div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.panel ul li div strong {
  font-size: 0.9rem;
}

.panel ul li div p {
  margin: 0;
  font-size: 0.85rem;
  color: #94a3b8;
}

.panel ul li div small {
  font-size: 0.75rem;
  color: #64748b;
}

.agent-overview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.agent-overview div:first-child strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.agent-overview div:first-child p {
  margin: 0;
  color: #94a3b8;
}

.agent-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.agent-stats span {
  font-size: 0.85rem;
  color: #cbd5e1;
}

.agent-stats span:first-child {
  color: #60a5fa;
  font-weight: 600;
}

.sidebar button svg,
.summary-cards article span svg,
.panel-header h2 svg {
  margin-right: 8px;
  vertical-align: middle;
}

.top-actions button svg {
  margin-right: 6px;
  vertical-align: middle;
}

.settings-group {
  display: grid;
  gap: 16px;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.setting-item label {
  font-weight: 600;
  color: #cbd5e1;
  flex-shrink: 0;
}

.setting-item input,
.setting-item select {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.85);
  color: #e2e8f0;
}

.setting-item input[type="checkbox"] {
  width: auto;
  flex: none;
}

.danger-button {
  border: none;
  border-radius: 8px;
  background: #dc2626;
  color: white;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
  margin-top: 8px;
}

.danger-button:hover {
  background: #b91c1c;
}

.chart-placeholder {
  display: flex;
  align-items: end;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.chart-placeholder svg {
  width: 100%;
  height: 180px;
}

.chat-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.chat-window {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.12);
  overflow-y: auto;
}

.message {
  display: flex;
}

.message.meta {
  justify-content: flex-start;
}

.message.user {
  justify-content: flex-end;
}

.bubble {
  max-width: 78%;
  padding: 14px 18px;
  border-radius: 20px;
  line-height: 1.6;
  font-size: 0.96rem;
  white-space: pre-wrap;
}

.message.meta .bubble {
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.18);
}

.message.user .bubble {
  background: linear-gradient(135deg, #2563eb 0%, #7dd3fc 100%);
  color: #0f172a;
}

.chat-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.chat-actions input {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  padding: 14px 18px;
  background: rgba(15, 23, 42, 0.85);
  color: #e2e8f0;
}

.chat-actions button {
  border: none;
  border-radius: 16px;
  background: #2563eb;
  padding: 14px 20px;
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.dashboard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.dashboard-footer button {
  border: none;
  border-radius: 16px;
  background: rgba(59, 130, 246, 0.16);
  color: #cfe8ff;
  padding: 14px 20px;
  cursor: pointer;
}

.app-footer {
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.1);
  text-align: center;
}

.app-footer p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.9rem;
}

@media (max-width: 1120px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    padding: 24px;
  }

  .main-panel {
    padding: 24px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .sidebar {
    display: none;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .summary-cards {
    grid-template-columns: 1fr;
  }

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

  .dashboard-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

.meta-hero {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.header-stats div {
  padding: 18px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(96, 165, 250, 0.14);
  display: grid;
  gap: 6px;
}

.header-stats strong {
  font-size: 1.2rem;
}

.chat-footer {
  margin-top: 24px;
  padding: 18px 22px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.12);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: #e2e8f0;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.12);
  transition: background 0.2s ease;
}

.footer-links a:hover {
  background: rgba(37, 99, 235, 0.2);
}

.bottom-bar {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.bottom-bar span {
  color: #94a3b8;
}

.ghost-button {
  padding: 12px 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
  background: transparent;
  border-radius: 16px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ghost-button:hover {
  background: rgba(148, 163, 184, 0.12);
  transform: translateY(-1px);
}

@media (max-width: 880px) {
  .hero-banner {
    grid-template-columns: 1fr;
  }

  .header-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .chat-app {
    margin: 24px 16px;
    padding: 18px;
  }

  .chat-input-area {
    grid-template-columns: 1fr;
  }

  .chat-input-area button {
    width: 100%;
  }
}
