﻿/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #30a5da;
  --primary-light: #e9f6fc;
  --primary-hover: #278fbd;
  --secondary: #302e2e;
  --secondary-hover: #252323;
  --bg: #ffffff;
  --bg-gray: #f8f8f8;
  --bg-dark: #302e2e;
  --text: #1a1a1a;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --green: #22c55e;
  --red: #ef4444;
  --blue: #3b82f6;
  --yellow: #fbbf24;
  --sidebar-width: 50px;
  --topbar-height: 0px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  font-size: 14px;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  cursor: pointer;
  font-family: var(--font);
  font-size: 14px;
  border: none;
  outline: none;
}

input,
select,
textarea {
  font-family: var(--font);
  font-size: 14px;
  outline: none;
}

img {
  max-width: 100%;
}

.hidden {
  display: none !important;
}

/* ========== AUTH PAGES ========== */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 20px;
}

.auth-logo {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
}

.auth-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.auth-icon {
  width: 180px;
  height: 56px;
  background: var(--bg-gray);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.auth-brand-logo img {
  width: 150px;
  height: 32px;
  object-fit: contain;
}

.auth-page h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 6px;
}

.auth-page .auth-subtitle {
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 14px;
}

.auth-form {
  width: 100%;
  max-width: 420px;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group label .required {
  color: var(--red);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper .input-icon {
  position: absolute;
  left: 12px;
  color: var(--text-light);
  font-size: 16px;
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  padding: 10px 12px 10px 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.2s;
}

.input-wrapper input:focus {
  border-color: var(--primary);
}

.input-wrapper .input-toggle {
  position: absolute;
  right: 12px;
  color: var(--text-light);
  cursor: pointer;
  font-size: 16px;
  background: none;
  border: none;
}

.forgot-link {
  display: block;
  text-align: right;
  font-size: 13px;
  color: var(--primary);
  margin-top: 4px;
  margin-bottom: 4px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
}

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

.btn-primary {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
  color: var(--text-light);
  font-size: 13px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider span {
  padding: 0 16px;
}

.btn-google {
  width: 100%;
  padding: 10px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  transition: background 0.2s;
}

.btn-google:hover {
  background: var(--bg-gray);
}

.btn-google img {
  width: 20px;
  height: 20px;
}

.auth-footer {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}

.auth-copyright {
  position: absolute;
  bottom: 24px;
  font-size: 13px;
  color: var(--text-light);
}

/* ========== APP LAYOUT ========== */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
}

.sidebar-logo {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.sidebar-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.sidebar-nav-item {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--text-secondary);
  transition: all 0.2s;
  cursor: pointer;
  font-size: 18px;
  background: none;
  border: none;
}

.sidebar-nav-item:hover {
  background: var(--bg-gray);
  color: var(--text);
}

.sidebar-nav-item.active {
  background: var(--primary-light);
  color: var(--primary);
}

.sidebar-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}

.sidebar-badge {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  flex-direction: column;
}

.sidebar-badge small {
  font-size: 8px;
  font-weight: 400;
  opacity: 0.8;
}

.sidebar-avatar {
  width: 30px;
  height: 30px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
}

/* Main content */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  background: white;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-title {
  font-size: 18px;
  font-weight: 600;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-brand-logo {
  width: 112px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.topbar-back {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--text);
  transition: background 0.2s;
}

.topbar-back:hover {
  background: var(--bg-gray);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-notification {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 18px;
  background: none;
  border: none;
  border-radius: 50%;
}

.topbar-notification:hover {
  background: var(--bg-gray);
}

.notification-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid white;
}

.credits-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.credits-badge .credits-icon {
  width: 18px;
  height: 18px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.btn-subscribe {
  padding: 6px 16px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
}

.btn-subscribe:hover {
  background: var(--primary-hover);
}

/* Page Content */
.page-content {
  padding: 24px;
  flex: 1;
}

/* Banner */
.top-banner {
  background: var(--primary);
  color: #ffffff;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
}

.top-banner a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 600;
}

.top-banner .banner-close {
  position: absolute;
  right: 24px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #ffffff;
}

/* ========== DASHBOARD ========== */
.dashboard-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
}

.assistant-panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.assistant-panel h2 {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.assistant-panel h2 .panel-icon {
  font-size: 18px;
}

/* Create assistant card */
.create-assistant-card {
  border: 2px dashed var(--primary);
  border-radius: var(--radius-lg);
  padding: 36px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s;
}

.create-assistant-card:hover {
  background: var(--primary-light);
}

.create-plus {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 24px;
  margin-bottom: 12px;
}

.create-assistant-card h3 {
  font-size: 16px;
  font-weight: 500;
}

/* Assistant info card */
.assistant-info-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  position: relative;
}

.assistant-info-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.assistant-avatar {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.assistant-meta {
  flex: 1;
}

.assistant-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.assistant-user {
  font-weight: 600;
  font-size: 14px;
  color: var(--primary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.active {
  background: var(--green);
}

.status-dot.inactive {
  background: var(--red);
}

.status-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.assistant-title {
  font-size: 20px;
  font-weight: 700;
  margin-top: 2px;
}

.assistant-date {
  font-size: 12px;
  color: var(--text-light);
}

.assistant-more-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
}

.assistant-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
}

.assistant-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.assistant-detail-row .label {
  color: var(--text-secondary);
}

.assistant-detail-row .value {
  font-weight: 500;
}

.badge-free {
  color: var(--primary);
  font-weight: 600;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge-free::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.btn-customize-assistant {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  color: var(--text);
  font-weight: 500;
  font-size: 13px;
  transition: all 0.2s;
}

.btn-customize-assistant:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.how-to-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}

/* Recent visitors */
.section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 20px 0 12px;
}

.empty-visitors {
  text-align: center;
  padding: 20px;
}

.empty-visitors img,
.empty-visitors .empty-illustration {
  width: 140px;
  margin: 0 auto 8px;
}

.empty-illustration {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 48px;
}

.empty-visitors p {
  color: var(--text-light);
  font-size: 13px;
}

/* Right panel - Charts */
.dashboard-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.chart-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.chart-header h3 {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-header .time-range {
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.chart-empty {
  text-align: center;
  padding: 40px 20px;
}

.chart-empty .chart-illustration {
  width: 160px;
  height: 120px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  color: var(--text-light);
  opacity: 0.5;
}

.chart-empty p {
  color: var(--text-light);
  font-size: 13px;
}

/* Context menu */
.context-menu {
  position: absolute;
  top: 40px;
  right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 6px 0;
  min-width: 180px;
  z-index: 200;
}

.context-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
}

.context-menu-item:hover {
  background: var(--bg-gray);
}

.context-menu-item .menu-icon {
  font-size: 15px;
  width: 20px;
  text-align: center;
}

.context-menu-item.danger {
  color: var(--red);
}

.context-menu-item .warning-badge {
  background: var(--red);
  color: white;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 10px;
  margin-left: auto;
}

/* Add to website button */
.btn-add-website {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
}

.btn-add-website:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Scraping badge */
.scraping-badge {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.scraping-bar {
  width: 60px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.scraping-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s;
}

/* ========== VISITORS PAGE ========== */
.visitors-page .search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  max-width: 320px;
}

.search-input-wrapper .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 16px;
}

.search-input-wrapper input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
}

.visitors-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.filter-select {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-secondary);
  background: white;
}

.sort-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}

.visitors-table {
  width: 100%;
  border-collapse: collapse;
}

.visitors-table thead th {
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.visitors-table thead th:first-child {
  width: 40px;
}

.visitors-empty {
  text-align: center;
  padding: 80px 20px;
}

.visitors-empty .empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.visitors-empty h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.visitors-empty p {
  color: var(--text-light);
  font-size: 13px;
}

/* ========== SETTINGS ========== */
.settings-page .settings-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.settings-tab {
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-weight: 500;
  transition: all 0.2s;
}

.settings-tab.active {
  color: var(--text);
  border-bottom-color: var(--text);
}

.settings-tab:hover {
  color: var(--text);
}

.settings-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
}

.settings-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.settings-menu-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.settings-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  background: none;
  border: none;
  text-align: left;
  width: 100%;
}

.settings-menu-item:hover {
  background: var(--bg-gray);
}

.settings-menu-item.active {
  background: var(--primary-light);
  color: var(--primary);
}

.settings-menu-item .chevron {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-light);
}

.settings-content {
  max-width: 600px;
}

/* Profile settings */
.google-auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text);
  margin-bottom: 24px;
}

.profile-avatar-section {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  font-weight: 600;
}

.profile-upload-info h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.profile-upload-info p {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 4px;
}

.profile-upload-info a {
  font-size: 13px;
  color: var(--primary);
}

.settings-field {
  margin-bottom: 20px;
}

.settings-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.settings-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
}

.settings-field input:focus {
  border-color: var(--primary);
}

.settings-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.btn-secondary {
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}

.btn-secondary:hover {
  border-color: var(--text-light);
}

.btn-apply {
  padding: 8px 20px;
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-light);
  font-size: 13px;
  font-weight: 500;
}

/* Privacy settings */
.delete-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.delete-section p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.btn-danger {
  padding: 8px 20px;
  background: var(--red);
  color: white;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
}

.btn-danger:hover {
  background: #dc2626;
}

/* Billing settings */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.pricing-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
}

.pricing-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.pricing-badge::before {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: var(--primary);
}

.pricing-badge.free::before {
  background: var(--primary);
}

.pricing-badge.basic::before {
  background: var(--primary);
}

.pricing-badge.growth::before {
  background: var(--primary);
}

.pricing-card .pricing-icon {
  font-size: 20px;
  margin-bottom: 4px;
}

.pricing-price {
  margin-bottom: 8px;
}

.pricing-price .amount {
  font-size: 32px;
  font-weight: 700;
}

.pricing-price .period {
  font-size: 14px;
  color: var(--text-secondary);
}

.pricing-description {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.4;
}

.btn-plan {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
}

.btn-plan.current {
  background: white;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: default;
}

.btn-plan.upgrade {
  background: var(--primary);
  color: white;
  border: none;
}

.btn-plan.upgrade:hover {
  background: var(--primary-hover);
}

.pricing-features h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--text);
  margin-bottom: 8px;
}

.pricing-feature .feature-icon {
  color: var(--primary);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

.enterprise-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-gray);
}

.enterprise-card .enterprise-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.enterprise-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
}

.enterprise-card h4 {
  font-size: 18px;
  font-weight: 700;
}

.enterprise-card p {
  font-size: 13px;
  color: var(--text-secondary);
}

.btn-contact {
  padding: 8px 20px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
}

/* Version footer */
.settings-footer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-light);
}

.settings-footer a {
  color: var(--primary);
}

/* ========== ASSISTANT CREATION ========== */
.wizard-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 13px;
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-light);
}

.wizard-step.completed .step-number {
  background: var(--green);
  color: white;
}

.wizard-step.active .step-number {
  background: var(--blue);
  color: white;
}

.step-number {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  background: var(--border);
  color: var(--text-secondary);
}

.wizard-step.completed .step-label,
.wizard-step.active .step-label {
  color: var(--text);
  font-weight: 500;
}

.step-separator {
  color: var(--text-light);
  font-size: 16px;
}

/* Step 1 - Knowledge */
.knowledge-notice {
  background: var(--primary);
  color: white;
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 13px;
}

.knowledge-notice .notice-icon {
  margin-right: 8px;
}

.knowledge-notice ul {
  margin: 6px 0 6px 20px;
}

.knowledge-notice a {
  color: white;
  text-decoration: underline;
}

.knowledge-section {
  margin-bottom: 24px;
}

.knowledge-section h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.knowledge-section .subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.knowledge-section input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
}

.knowledge-disclaimer {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.upload-zone:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.upload-zone .upload-icon {
  font-size: 32px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.upload-zone p {
  font-size: 13px;
  color: var(--text-secondary);
}

.upload-zone p a {
  color: var(--primary);
}

.upload-zone .upload-hint {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
}

.divider-line {
  display: flex;
  align-items: center;
  margin: 20px 0;
  color: var(--text-light);
  font-size: 12px;
}

.divider-line::before,
.divider-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider-line span {
  padding: 0 12px;
}

/* Step 2 - Knowledge management */
.knowledge-management {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
}

.knowledge-menu .settings-menu-item .menu-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.knowledge-content h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.knowledge-content .knowledge-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.knowledge-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.knowledge-toolbar .search-input-wrapper {
  max-width: 300px;
}

.knowledge-toolbar .filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  margin-left: auto;
}

.btn-add-pages {
  padding: 8px 16px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
}

.btn-add-pages:hover {
  background: var(--primary-hover);
}

.metrics-bar {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.metric-item {
  flex: 1;
  padding: 10px 16px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  border-right: 1px solid var(--border);
}

.metric-item:last-child {
  border-right: none;
}

.metric-item.red {
  color: var(--red);
}

.metric-item.green {
  color: var(--green);
}

.metric-item.orange {
  color: var(--primary);
}

.knowledge-table {
  width: 100%;
  border-collapse: collapse;
}

.knowledge-table thead th {
  text-align: left;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.knowledge-table thead th:first-child {
  width: 40px;
}

/* Step 3 - Configure */
.configure-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
}

.configure-form {
  max-width: 540px;
}

.configure-form h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.configure-form .form-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.configure-form .form-group {
  margin-bottom: 18px;
}

.configure-form .form-group label {
  font-weight: 600;
}

.configure-form .form-group .char-count {
  float: right;
  font-size: 11px;
  color: var(--text-light);
  font-weight: 400;
}

.configure-form input,
.configure-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  resize: vertical;
}

.configure-form textarea {
  min-height: 80px;
}

.config-tabs {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.config-tab {
  padding: 8px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.config-tab.active {
  color: var(--text);
  border-bottom-color: var(--text);
}

/* Chat Preview Widget */
.chat-preview-wrapper {
  position: sticky;
  top: 80px;
}

.chat-preview {
  width: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-left: auto;
}

.chat-preview-bg {
  background: var(--primary);
  padding: 40px 20px 20px;
  min-height: 200px;
  position: relative;
}

.chat-preview-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 2px;
  margin-bottom: 16px;
}

.chat-preview-tab {
  flex: 1;
  padding: 6px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  cursor: pointer;
  background: none;
  border: none;
}

.chat-preview-tab.active {
  background: white;
  color: var(--text);
}

.chat-preview-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 13px;
  font-weight: 500;
}

.chat-preview-header .star {
  color: var(--primary);
  font-size: 16px;
}

.chat-preview-header .powered {
  margin-left: auto;
  font-size: 10px;
  opacity: 0.6;
}

.chat-preview-body {
  background: white;
  padding: 16px;
  min-height: 140px;
}

.chat-preview-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.chat-message {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.chat-message .msg-avatar {
  width: 28px;
  height: 28px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  flex-shrink: 0;
}

.chat-message .msg-bubble {
  background: var(--bg-gray);
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.5;
  max-width: 200px;
}

.chat-preview-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-light);
}

.chat-preview-input .send-btn {
  margin-left: auto;
  width: 24px;
  height: 24px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  border: none;
  cursor: pointer;
}

.chat-preview-close {
  position: absolute;
  bottom: -50px;
  right: 0;
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

/* ========== CUSTOMIZE ========== */
.customize-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
}

.customize-panel {
  max-width: 540px;
}

.customize-panel h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.customize-panel .customize-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.customize-tabs {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.customize-tab {
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.customize-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Theme tab */
.theme-notice {
  background: var(--primary-light);
  color: var(--primary);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.theme-option {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.theme-option.selected {
  border-color: var(--primary);
}

.theme-option .check-circle {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.theme-light {
  background: #f9f9f9;
}

.theme-dark {
  background: var(--bg-dark);
}

.theme-mock-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}

.theme-mock-line {
  height: 6px;
  border-radius: 3px;
  background: var(--border);
}

.theme-dark .theme-mock-line {
  background: var(--secondary);
}

.theme-mock-btn {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--primary);
  margin-top: 8px;
}

.theme-dark .theme-mock-btn {
  align-self: flex-end;
}

/* General tab */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.toggle-row label {
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.toggle-switch {
  position: relative;
  width: 40px;
  height: 22px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--border);
  border-radius: 22px;
  cursor: pointer;
  transition: 0.3s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  top: 2px;
  left: 2px;
  transition: 0.3s;
  box-shadow: var(--shadow);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(18px);
}

.font-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  background: white;
  appearance: auto;
}

.font-size-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  background: white;
}

/* Layout tab */
.layout-section {
  margin-bottom: 24px;
}

.layout-section h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.layout-section .section-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.logo-upload {
  width: 120px;
  height: 120px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  margin-bottom: 16px;
}

.logo-upload:hover {
  border-color: var(--primary);
}

.logo-upload .star-icon {
  font-size: 40px;
  color: var(--primary);
}

.logo-upload .remove-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border: none;
  cursor: pointer;
}

.text-field-with-count {
  position: relative;
}

.text-field-with-count input {
  width: 100%;
  padding: 10px 60px 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
}

.text-field-with-count .count {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--text-light);
}

.position-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.position-option {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  text-align: center;
}

.position-option.selected {
  border-color: var(--primary);
}

.position-option .check-box {
  position: absolute;
  bottom: 8px;
  left: 8px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.position-option.selected .check-box {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.position-mock {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  margin-bottom: 8px;
}

.position-mock .mock-line {
  height: 5px;
  background: var(--border);
  border-radius: 3px;
}

.position-mock .mock-line:nth-child(2) {
  width: 80%;
}

.position-mock .mock-line:nth-child(3) {
  width: 60%;
}

.position-mock .mock-btn {
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 3px;
}

.position-mock.left .mock-btn {
  align-self: flex-start;
}

.position-mock.right .mock-btn {
  align-self: flex-end;
}

.position-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Chat tab */
.bubble-section {
  margin-bottom: 24px;
}

.bubble-section h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.bubble-grid {
  display: flex;
  gap: 12px;
}

.bubble-option {
  width: 100px;
  height: 60px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.bubble-option.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

.bubble-option:hover {
  border-color: var(--primary);
}

.avatar-section h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.avatar-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.avatar-option {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.avatar-option.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.avatar-option:hover {
  border-color: var(--primary);
}

.avatar-add {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 16px;
  cursor: pointer;
}

.avatar-upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 12px;
}

.avatar-upload-zone:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.avatar-upload-zone .upload-icon {
  font-size: 24px;
  color: var(--text-light);
  margin-bottom: 6px;
}

/* ========== WIZARD FOOTER ========== */
.wizard-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: white;
  position: sticky;
  bottom: 0;
}

.btn-back {
  padding: 8px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.btn-continue {
  padding: 8px 24px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
}

.btn-continue:hover {
  background: var(--primary-hover);
}

.btn-continue.disabled {
  background: var(--border);
  color: var(--text-light);
  cursor: not-allowed;
}

.reset-link {
  margin-right: auto;
  padding: 8px 16px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
}

/* ========== MODALS ========== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 600;
}

.modal-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-secondary);
}

.modal-close:hover {
  background: var(--bg-gray);
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

/* Add Source modal */
.source-notice {
  background: var(--primary);
  color: white;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 16px;
}

/* Add Document Source modal */
.doc-source-notice {
  background: var(--blue);
  color: white;
  padding: 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 13px;
}

.doc-source-notice ul {
  margin: 6px 0 0 16px;
}

.doc-source-notice a {
  color: white;
  text-decoration: underline;
}

/* Scraping modal */
.scraping-modal-content {
  text-align: center;
  padding: 20px;
}

.scraping-modal-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
}

.scraping-modal-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.scraping-modal-content p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.scraping-progress {
  margin-bottom: 16px;
}

.scraping-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}

.scraping-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.scraping-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.5s;
}

/* Notification panel */
.notification-panel {
  position: fixed;
  top: 48px;
  right: 80px;
  width: 340px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 500;
}

.notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.notification-header h3 {
  font-size: 15px;
  font-weight: 600;
}

.notification-header .mark-read {
  font-size: 12px;
  color: var(--text-light);
  cursor: pointer;
  background: none;
  border: none;
}

.notification-tabs {
  display: flex;
  gap: 12px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
}

.notification-tab {
  padding: 4px 0;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
}

.notification-tab.active {
  color: var(--text);
  border-bottom-color: var(--text);
}

.notification-empty {
  text-align: center;
  padding: 40px 20px;
}

.notification-empty .notif-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.notification-empty p {
  font-size: 13px;
  color: var(--text-light);
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-dark);
  color: white;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2000;
  animation: slideUp 0.3s ease;
  max-width: 320px;
}

.toast .toast-close {
  margin-left: auto;
  background: none;
  border: none;
  color: white;
  opacity: 0.6;
  cursor: pointer;
  font-size: 14px;
}

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

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

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

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

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

  .configure-layout,
  .customize-layout {
    grid-template-columns: 1fr;
  }

  .chat-preview-wrapper {
    display: none;
  }
}

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

  .knowledge-management {
    grid-template-columns: 1fr;
  }
}

