/* Utility — cb-page dışında da kullanılır (i18n span'ları) */
.cb-hidden {
  display: none !important;
}

/* Chatbot sayfaları — site CSS'inden izole (.cb-page) */
.cb-page {
  --cb-primary: #1f12fd;
  --cb-primary-dark: #1509d8;
  --cb-blue: #2563c7;
  --cb-bg: #f4f8ff;
  --cb-border: #e2e8f0;
  --cb-text: #1e293b;
  --cb-muted: #64748b;
  --cb-radius: 16px;
  --cb-shadow: 0 8px 32px rgba(31, 18, 253, 0.08);
  color: var(--cb-text);
  line-height: 1.6;
}

.cb-page *,
.cb-page *::before,
.cb-page *::after {
  box-sizing: border-box;
}

.cb-page h1,
.cb-page h2,
.cb-page h3,
.cb-page p {
  margin-top: 0;
}

/* ── Hero ── */
.cb-page .cb-hero {
  background: linear-gradient(135deg, #140a9e 0%, var(--cb-primary) 45%, var(--cb-blue) 100%);
  color: #fff;
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}

.cb-page .cb-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.cb-page .cb-hero .container {
  position: relative;
  z-index: 1;
}

.cb-page .cb-hero-inner {
  max-width: 720px;
}

.cb-page .cb-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: #fff;
}

.cb-page .cb-hero p {
  font-size: 1.05rem;
  opacity: 0.92;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.92);
  max-width: 600px;
}

.cb-page .cb-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  margin-bottom: 1rem;
}

/* ── Sections ── */
.cb-page .cb-section {
  padding: 56px 0;
}

.cb-page .cb-section-alt {
  background: var(--cb-bg);
}

.cb-page .cb-section-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--cb-text);
}

.cb-page .cb-section-desc {
  text-align: center;
  color: var(--cb-muted);
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Cards ── */
.cb-page .cb-card {
  background: #fff;
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius);
  padding: 28px;
  box-shadow: var(--cb-shadow);
}

.cb-page .cb-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--cb-text);
}

.cb-page .cb-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.cb-page .cb-feature-card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.cb-page .cb-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(31, 18, 253, 0.12);
}

.cb-page .cb-feature-icon {
  width: 52px;
  height: 52px;
  background: rgba(31, 18, 253, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.cb-page .cb-feature-card p {
  color: var(--cb-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.cb-page .text-muted {
  color: var(--cb-muted) !important;
}

/* ── Auth area ── */
.cb-page .cb-auth-wrap {
  max-width: 460px;
  margin: 0 auto;
}

.cb-page .cb-auth-card {
  padding: 32px;
}

.cb-page .cb-auth-card > h3 {
  text-align: center;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

.cb-page .cb-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  padding: 4px;
  background: var(--cb-bg);
  border-radius: 999px;
}

.cb-page .cb-tab {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--cb-muted);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s;
  line-height: 1.2;
}

.cb-page .cb-tab.active,
.cb-page .cb-tab:hover {
  background: #fff;
  color: var(--cb-primary);
  box-shadow: 0 2px 8px rgba(31, 18, 253, 0.12);
}

.cb-page .cb-form-group {
  margin-bottom: 18px;
}

.cb-page .cb-form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--cb-text);
  font-size: 0.875rem;
}

.cb-page .cb-form-group input,
.cb-page .cb-form-group textarea,
.cb-page .cb-form-group select {
  display: block;
  width: 100%;
  border: 1px solid var(--cb-border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.95rem;
  color: var(--cb-text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  height: auto;
  line-height: 1.4;
}

.cb-page .cb-form-group input:focus,
.cb-page .cb-form-group textarea:focus,
.cb-page .cb-form-group select:focus {
  outline: none;
  border-color: var(--cb-primary);
  box-shadow: 0 0 0 3px rgba(31, 18, 253, 0.12);
}

.cb-page .cb-form-actions {
  margin-top: 8px;
}

.cb-page .cb-btn {
  display: inline-block;
  background: var(--cb-primary);
  color: #fff !important;
  border: none;
  border-radius: 35px;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
  line-height: 1.4;
  text-align: center;
}

.cb-page .cb-btn:hover {
  background: var(--cb-primary-dark);
  color: #fff !important;
  transform: translateY(-1px);
}

.cb-page .cb-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.cb-page .cb-btn-block {
  display: block;
  width: 100%;
}

.cb-page .cb-btn-outline {
  background: transparent;
  color: var(--cb-primary) !important;
  border: 2px solid var(--cb-primary);
}

.cb-page .cb-btn-outline:hover {
  background: var(--cb-primary);
  color: #fff !important;
}

.cb-page .cb-btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

/* ── Alerts ── */
.cb-page .cb-alert {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cb-page .cb-alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.cb-page .cb-alert-success {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.cb-page .cb-alert-info {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

/* ── User bar & status ── */
.cb-page .cb-user-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--cb-border);
  border-radius: 12px;
  box-shadow: var(--cb-shadow);
}

.cb-page .cb-user-bar strong {
  color: var(--cb-text);
  font-weight: 600;
}

.cb-page .cb-user-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cb-page .cb-status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.cb-page .cb-plan-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(31, 18, 253, 0.1);
  color: var(--cb-primary);
}

/* ── Plans ── */
.cb-page .cb-section-plans {
  background: linear-gradient(180deg, #f8faff 0%, #eef2ff 50%, #f4f8ff 100%);
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}

.cb-page .cb-section-plans::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(31, 18, 253, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(37, 99, 199, 0.08) 0%, transparent 45%);
  pointer-events: none;
}

.cb-page .cb-plans-header {
  position: relative;
  text-align: center;
  margin-bottom: 3rem;
}

.cb-page .cb-plans-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cb-primary);
  background: rgba(31, 18, 253, 0.1);
  margin-bottom: 1rem;
}

.cb-page .cb-plans-footnote {
  position: relative;
  text-align: center;
  color: var(--cb-muted);
  font-size: 0.875rem;
  margin: 2.5rem auto 0;
  max-width: 520px;
}

.cb-page .cb-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
  position: relative;
  align-items: stretch;
}

.cb-page .cb-plan-card {
  background: #fff;
  border: 1px solid var(--cb-border);
  border-radius: 20px;
  padding: 32px 28px 28px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}

.cb-page .cb-plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(31, 18, 253, 0.12);
}

.cb-page .cb-plan-featured {
  border: 2px solid var(--cb-primary);
  box-shadow: 0 12px 40px rgba(31, 18, 253, 0.18);
  transform: scale(1.04);
  z-index: 1;
}

.cb-page .cb-plan-featured:hover {
  transform: scale(1.04) translateY(-6px);
}

.cb-page .cb-plan-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--cb-primary), var(--cb-blue));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(31, 18, 253, 0.35);
}

.cb-page .cb-plan-header {
  text-align: center;
  margin-bottom: 1.25rem;
  padding-top: 8px;
}

.cb-page .cb-plan-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cb-text);
  margin: 0;
}

.cb-page .cb-plan-price-wrap {
  text-align: center;
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--cb-border);
}

.cb-page .cb-plan-currency {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cb-primary);
  vertical-align: top;
}

.cb-page .cb-plan-amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--cb-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.cb-page .cb-plan-period {
  font-size: 0.95rem;
  color: var(--cb-muted);
  font-weight: 500;
  margin-left: 2px;
}

.cb-page .cb-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 auto;
  flex: 1;
}

.cb-page .cb-plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  color: var(--cb-text);
  font-size: 0.925rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

.cb-page .cb-plan-features li:last-child {
  border-bottom: none;
}

.cb-page .cb-plan-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 18, 253, 0.1);
  color: var(--cb-primary);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
}

.cb-page .cb-plan-card .cb-subscribe-btn {
  margin-top: 1.5rem;
}

.cb-page .cb-plan-featured .cb-subscribe-btn.cb-btn-outline {
  background: var(--cb-primary);
  color: #fff !important;
  border-color: var(--cb-primary);
}

@media (max-width: 992px) {
  .cb-page .cb-plans {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .cb-page .cb-plan-featured {
    transform: none;
    order: -1;
  }

  .cb-page .cb-plan-featured:hover {
    transform: translateY(-6px);
  }
}

/* ── Panel (panel.ejs) ── */
.cb-page.cb-panel-page {
  background: var(--cb-bg);
}

.cb-page .cb-panel-hero {
  background: linear-gradient(135deg, #140a9e 0%, var(--cb-primary) 50%, #3b82f6 100%);
  color: #fff;
  padding: 40px 0 0;
  position: relative;
  overflow: hidden;
}

.cb-page .cb-panel-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 5% 90%, rgba(255, 255, 255, 0.08) 0%, transparent 35%);
  pointer-events: none;
}

.cb-page .cb-panel-hero .container {
  position: relative;
  z-index: 1;
}

.cb-page .cb-panel-hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 28px;
}

.cb-page .cb-panel-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 8px;
}

.cb-page .cb-panel-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
}

.cb-page .cb-panel-hero-text p {
  margin: 0;
  opacity: 0.88;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.cb-page .cb-panel-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.cb-page .cb-panel-plan-pill {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.cb-page .cb-status-pill {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.cb-page .cb-status-pill.cb-status-ok {
  background: rgba(34, 197, 94, 0.25);
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #bbf7d0;
}

.cb-page .cb-status-pill.cb-status-warn {
  background: rgba(251, 191, 36, 0.2);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fef3c7;
}

.cb-page .cb-panel-hero .cb-btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff !important;
}

.cb-page .cb-panel-hero .cb-btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.cb-page .cb-panel-stats-section {
  position: relative;
  z-index: 2;
  margin-top: -28px;
  margin-bottom: 48px;
  padding-bottom: 8px;
}

.cb-page .cb-panel-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.cb-page .cb-stat-card {
  background: #fff;
  border-radius: var(--cb-radius);
  padding: 20px 22px;
  box-shadow: var(--cb-shadow);
  border: 1px solid var(--cb-border);
}

.cb-page .cb-stat-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.cb-page .cb-stat-led {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.25s, box-shadow 0.25s;
}

.cb-page .cb-stat-led-ok {
  background: #22c55e;
  box-shadow:
    0 0 0 3px rgba(34, 197, 94, 0.22),
    0 0 10px rgba(34, 197, 94, 0.55);
}

.cb-page .cb-stat-led-warn {
  background: #f59e0b;
  box-shadow:
    0 0 0 3px rgba(245, 158, 11, 0.22),
    0 0 10px rgba(245, 158, 11, 0.5);
  animation: cbLedPulse 2s ease-in-out infinite;
}

.cb-page .cb-stat-led-error {
  background: #ef4444;
  box-shadow:
    0 0 0 3px rgba(239, 68, 68, 0.2),
    0 0 8px rgba(239, 68, 68, 0.45);
}

@keyframes cbLedPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

.cb-page .cb-stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--cb-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

.cb-page .cb-stat-card strong {
  display: block;
  font-size: 1.1rem;
  color: var(--cb-text);
  padding-left: 21px;
}

.cb-page .cb-panel-body {
  padding-top: 16px;
  padding-bottom: 64px;
}

@media (min-width: 769px) and (max-width: 1100px) {
  .cb-page .cb-panel-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .cb-page .cb-panel-stats-section {
    margin-bottom: 40px;
  }
}

.cb-page .cb-panel-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

.cb-page .cb-panel-sidebar {
  background: #fff;
  border-radius: var(--cb-radius);
  border: 1px solid var(--cb-border);
  padding: 20px 14px;
  box-shadow: var(--cb-shadow);
  position: sticky;
  top: 24px;
}

.cb-page .cb-sidebar-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cb-muted);
  margin: 0 0 12px 10px;
}

.cb-page .cb-panel-card {
  background: #fff;
  border-radius: var(--cb-radius);
  border: 1px solid var(--cb-border);
  padding: 28px;
  box-shadow: var(--cb-shadow);
}

.cb-page .cb-card-head {
  margin-bottom: 24px;
}

.cb-page .cb-card-head h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.cb-page .cb-card-head p {
  color: var(--cb-muted);
  margin: 0;
  font-size: 0.95rem;
}

.cb-page .cb-subhead {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 10px;
}

.cb-page .cb-field-hint {
  font-size: 0.85rem;
  color: var(--cb-muted);
  margin: 8px 0 0;
}

.cb-page .cb-apikey-row {
  display: flex;
  gap: 8px;
}

.cb-page .cb-apikey-row input {
  flex: 1;
}

.cb-page .cb-input-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9rem;
}

.cb-page .cb-apikey-status {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.cb-page .cb-apikey-status.cb-apikey-ok {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.cb-page .cb-apikey-status.cb-apikey-warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.cb-page .cb-panel-layout,
.cb-page .cb-panel-shell {
  min-height: 400px;
}

.cb-page .cb-panel-nav .cb-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--cb-muted);
  cursor: pointer;
  margin-bottom: 4px;
  font-size: 0.92rem;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.cb-page .cb-nav-icon {
  font-size: 1rem;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.cb-page .cb-nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-left: auto;
  flex-shrink: 0;
}

.cb-page .cb-nav-dot-ok {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}

.cb-page .cb-nav-dot-warn {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}

.cb-page .cb-panel-nav .cb-nav-item.active,
.cb-page .cb-panel-nav .cb-nav-item:hover {
  background: rgba(31, 18, 253, 0.08);
  color: var(--cb-primary);
  font-weight: 600;
}

.cb-page .cb-panel-section {
  display: none;
}

.cb-page .cb-panel-section.active {
  display: block;
  animation: cbFadeIn 0.25s ease;
}

@keyframes cbFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.cb-page .cb-usage-item {
  margin-bottom: 20px;
}

.cb-page .cb-usage-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.cb-page .cb-usage-bar {
  background: #e2e8f0;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.cb-page .cb-usage-bar-fill {
  background: linear-gradient(90deg, var(--cb-primary), var(--cb-blue));
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s;
}

.cb-page .cb-token-stat {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--cb-bg);
  border-radius: 10px;
  font-size: 0.95rem;
}

.cb-page .cb-embed-box {
  background: #1e293b;
  color: #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 12px;
}

.cb-page .cb-loading {
  text-align: center;
  padding: 40px;
  color: var(--cb-muted);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .cb-page .cb-hero {
    padding: 48px 0 40px;
  }

  .cb-page .cb-auth-card {
    padding: 24px 20px;
  }

  .cb-page .cb-panel-layout,
  .cb-page .cb-panel-shell {
    grid-template-columns: 1fr;
  }

  .cb-page .cb-panel-sidebar {
    position: static;
  }

  .cb-page .cb-panel-stats-section {
    margin-top: 0;
    margin-bottom: 32px;
    padding-top: 20px;
    padding-bottom: 4px;
  }

  .cb-page .cb-panel-stats {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cb-page .cb-panel-body {
    padding-top: 4px;
  }

  .cb-page .cb-panel-hero-inner {
    flex-direction: column;
  }

  .cb-page .cb-panel-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .cb-page .cb-panel-nav .cb-nav-item {
    flex: 1 1 auto;
    text-align: center;
  }

  .cb-page .cb-status-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Panel test sohbeti ── */
.cb-page .cb-chat {
  display: flex;
  flex-direction: column;
  height: 480px;
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius);
  overflow: hidden;
  background: #fff;
}

.cb-page .cb-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--cb-bg);
}

.cb-page .cb-chat-empty {
  margin: auto;
  color: var(--cb-muted);
  font-size: 0.9rem;
  text-align: center;
}

.cb-page .cb-chat-msg {
  display: flex;
  max-width: 80%;
}

.cb-page .cb-chat-msg-user {
  align-self: flex-end;
  justify-content: flex-end;
}

.cb-page .cb-chat-msg-bot {
  align-self: flex-start;
}

.cb-page .cb-chat-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.cb-page .cb-chat-msg-user .cb-chat-bubble {
  background: var(--cb-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.cb-page .cb-chat-msg-bot .cb-chat-bubble {
  background: #fff;
  color: var(--cb-text);
  border: 1px solid var(--cb-border);
  border-bottom-left-radius: 4px;
}

.cb-page .cb-chat-msg-error .cb-chat-bubble {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.cb-page .cb-chat-bubble.cb-chat-pending {
  color: var(--cb-muted);
  font-style: italic;
}

.cb-page .cb-chat-form {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--cb-border);
  background: #fff;
}

.cb-page .cb-chat-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--cb-border);
  border-radius: 10px;
  font-size: 0.92rem;
  outline: none;
}

.cb-page .cb-chat-input:focus {
  border-color: var(--cb-primary);
  box-shadow: 0 0 0 3px rgba(31, 18, 253, 0.12);
}

.cb-page .cb-chat-input:disabled {
  background: #f1f5f9;
}

.cb-page .cb-chat-form .cb-btn {
  flex-shrink: 0;
}
