/* ============================================================
   TicketBot Dashboard — Layout & Page-specific Styles
   ============================================================ */

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 20px;
}

.navbar-brand { flex-shrink: 0; }
.brand-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
}
.brand-icon { font-size: 20px; }

.navbar-guild {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}
.navbar-guild:hover {
  background: var(--surface-2);
}
.navbar-guild::after {
  content: "▼";
  font-size: 10px;
  color: var(--text-faint);
  margin-left: 4px;
}

.guild-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: -1px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 260px;
  max-height: 480px;
  overflow-y: auto;
  z-index: 200;
}
.guild-dropdown.show {
  display: block;
}

.guild-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border);
}
.guild-dropdown-item:last-child {
  border-bottom: none;
}
.guild-dropdown-item:hover {
  background: var(--surface-2);
  text-decoration: none;
}
.guild-dropdown-item.active {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
}
.guild-item-info {
  flex: 1;
  min-width: 0;
}
.guild-item-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.guild-item-status {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.guild-item-status.installed {
  color: var(--success);
  font-weight: 600;
}

/* ── Empty State Card (Install flow) ───────────────────────── */
.empty-state-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  max-width: 600px;
  margin: 40px auto;
  box-shadow: var(--shadow-md);
}
.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 24px;
}
.empty-state-card h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--text);
}
.empty-state-card p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 32px;
  line-height: 1.6;
}
.empty-state-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.guild-icon-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.guild-icon-placeholder {
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}
.guild-name-nav { font-weight: 600; font-size: 13px; }

.navbar-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
}
.nav-link {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav-link:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-link.active { background: var(--accent-light); color: var(--accent); }

.navbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.theme-toggle {
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  padding: 4px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: var(--text-muted);
  transition: transform .2s;
  -webkit-appearance: none;
  appearance: none;
}
.theme-toggle:hover { transform: scale(1.2); background: none; }
.theme-toggle:focus { outline: none; box-shadow: none; }

.user-menu { position: relative; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; }

/* Small avatars in tables */
.avatar-sm {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar-initials {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.avatar-initials-md {
  width: 32px;
  height: 32px;
  font-size: 14px;
}
.user-name { font-size: 13px; font-weight: 500; }
.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 160px;
  overflow: hidden;
  z-index: 200;
}
.user-menu:hover .user-dropdown { display: block; }
.dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}
.dropdown-item:hover { background: var(--surface-2); text-decoration: none; }
.dropdown-item-danger { color: var(--danger); }
.dropdown-item-danger:hover { background: var(--danger-light); }

/* ── Main Content ──────────────────────────────────────────── */
.main-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px;
}
.main-content.no-nav { padding-top: 0; }

/* ── Page Header ───────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.page-header-inner { display: flex; align-items: center; gap: 14px; }
.page-guild-icon { width: 48px; height: 48px; border-radius: 50%; }
.page-subtitle { color: var(--text-muted); font-size: 13px; margin-top: 2px; }
.header-actions { display: flex; gap: 8px; align-items: center; }

/* ── Stats Grid ────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: border-color .15s;
}
.stat-card:hover { border-color: var(--accent); }
.stat-label { font-size: 12px; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.stat-value { font-size: 2rem; font-weight: 700; color: var(--text); line-height: 1; }

/* ── Guild Grid ────────────────────────────────────────────── */
.guild-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.guild-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s, transform .1s;
}
.guild-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}
.guild-card-icon { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; }
.guild-card-info { flex: 1; min-width: 0; }
.guild-card-name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guild-card-role { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.guild-card-arrow { color: var(--text-faint); font-size: 18px; }

/* ── Quick Links ───────────────────────────────────────────── */
.quick-links { margin-bottom: 28px; }
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.quick-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 12px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, background .15s;
}
.quick-link-card:hover { border-color: var(--accent); background: var(--accent-light); text-decoration: none; }
.quick-link-icon { font-size: 1.75rem; }
.quick-link-label { font-size: 13px; font-weight: 500; text-align: center; }

/* ── Section ───────────────────────────────────────────────── */
.section { margin-bottom: 28px; }
.section-title { font-size: 1rem; font-weight: 600; margin-bottom: 14px; }
.section-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }

/* ── Panels Grid ───────────────────────────────────────────── */
.panels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.panel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow .15s;
}
.panel-card:hover { box-shadow: var(--shadow-md); }
.panel-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--surface-2);
}
.panel-card-title { font-weight: 600; font-size: 14px; }
.panel-card-body { padding: 14px 16px; }
.panel-card-meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.panel-card-desc { font-size: 13px; color: var(--text-muted); }
.panel-card-actions { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); }

/* ── Panel Editor ──────────────────────────────────────────── */
.editor-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}
.sticky-card { position: sticky; top: calc(var(--nav-height) + 16px); }

.embed-preview {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.embed-preview-bar { height: 4px; background: var(--accent); }
.embed-preview-body { padding: 14px 16px; }
.embed-preview-title { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.embed-preview-desc { font-size: 13px; color: var(--text-muted); white-space: pre-wrap; }
.embed-preview-footer { font-size: 11px; color: var(--text-faint); margin-top: 10px; }
.embed-preview-buttons { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); }
.preview-btn {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: default;
}
.preview-btn-1 { background: var(--accent); color: #fff; }
.preview-btn-2 { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.preview-btn-3 { background: var(--success); color: #fff; }
.preview-btn-4 { background: var(--danger); color: #fff; }

.option-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.option-row:last-child { border-bottom: none; }
.option-emoji { font-size: 18px; width: 28px; text-align: center; }
.option-info { flex: 1; }
.option-label { font-weight: 500; font-size: 13px; }
.option-desc { font-size: 12px; color: var(--text-muted); }

/* ── Filter Bar ────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filter-group { display: flex; flex-direction: column; gap: 4px; }
.filter-group label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.filter-group select, .filter-group input { min-width: 140px; }
.search-group input { min-width: 220px; }

/* ── WebSocket Status ──────────────────────────────────────── */
.ws-status { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); }
.ws-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-faint);
  transition: background .3s;
}
.ws-dot.connected { background: var(--success); box-shadow: 0 0 6px var(--success); }
.ws-dot.disconnected { background: var(--danger); }

/* ── Analytics ─────────────────────────────────────────────── */
.charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.chart-card .card-body { padding: 16px; }

/* ── Forms Grid ────────────────────────────────────────────── */
.forms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.form-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.form-card-title { font-weight: 600; }
.form-card-body { padding: 14px 16px; }
.form-card-meta { margin-top: 8px; display: flex; gap: 6px; }
.form-card-actions { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; gap: 8px; }

/* ── Fields Builder ────────────────────────────────────────── */
.fields-builder { margin-top: 20px; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.fields-builder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.fields-list { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.fields-empty { color: var(--text-muted); font-size: 13px; text-align: center; padding: 12px 0; }
.field-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}
.field-row-inputs { display: flex; align-items: center; gap: 8px; flex: 1; flex-wrap: wrap; }
.field-label-input { flex: 1; min-width: 120px; }

/* ── Config ────────────────────────────────────────────────── */
.config-layout { max-width: 720px; }
.flag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.flag-row:last-child { border-bottom: none; }
.flag-info { flex: 1; }
.flag-label { font-weight: 500; font-size: 14px; }
.flag-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.config-save-row { margin-top: 20px; display: flex; justify-content: flex-end; }

/* ── Transcript ────────────────────────────────────────────── */
.transcript-frame-wrapper {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: calc(100vh - 200px);
  min-height: 500px;
}
.transcript-iframe { width: 100%; height: 100%; border: none; }

/* ── Auth Page ─────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--bg);
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.auth-logo { font-size: 3rem; margin-bottom: 1rem; }
.auth-title { font-size: 1.5rem; margin-bottom: .5rem; }
.auth-subtitle { color: var(--text-muted); margin-bottom: 2rem; font-size: 14px; }
.auth-note { font-size: 12px; color: var(--text-faint); margin-top: 1.5rem; line-height: 1.6; }
.auth-note strong { color: var(--text-muted); }

/* ── Landing Page ──────────────────────────────────────────── */
.landing { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0 60px;
}
.hero-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 16px;
}
.hero-title { font-size: 3rem; font-weight: 800; line-height: 1.15; margin-bottom: 16px; }
.hero-subtitle { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 32px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.dashboard-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.preview-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.preview-dot { width: 10px; height: 10px; border-radius: 50%; }
.preview-dot.red    { background: #ed4245; }
.preview-dot.yellow { background: #faa61a; }
.preview-dot.green  { background: #3ba55d; }
.preview-title { font-size: 12px; color: var(--text-muted); margin-left: 6px; }
.preview-content { display: flex; gap: 0; }
.preview-stat {
  flex: 1;
  padding: 24px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.preview-stat:last-child { border-right: none; }
.preview-stat-num { font-size: 1.75rem; font-weight: 700; color: var(--accent); }
.preview-stat-label { font-size: 11px; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: .5px; }

.features { padding: 60px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 2rem; margin-bottom: 8px; }
.section-header p { color: var(--text-muted); font-size: 1rem; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color .15s, transform .15s;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 13px; line-height: 1.6; }

.feature-card-link {
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.feature-card-link:hover { text-decoration: none; }
.feature-card-cta {
  margin-top: auto;
  padding-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .2s, transform .2s;
}
.feature-card-link:hover .feature-card-cta {
  opacity: 1;
  transform: translateX(0);
}
.feature-card-link:hover { border-color: var(--accent); }

/* Mini tags inside feature cards */
.feature-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 4px;
}
.fct {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── Automation Section ────────────────────────────────────── */
.automation-section {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}
.automation-header {
  text-align: center;
  margin-bottom: 48px;
}
.automation-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-light), rgba(59,165,93,.15));
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  margin-bottom: 16px;
}
.automation-header h2 { font-size: 2rem; margin-bottom: 10px; }
.automation-header p  { color: var(--text-muted); font-size: 1rem; max-width: 540px; margin: 0 auto; }

.automation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.automation-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.automation-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--success));
  opacity: 0;
  transition: opacity .2s;
}
.automation-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.automation-card:hover::before { opacity: 1; }
.automation-icon { font-size: 2rem; margin-bottom: 12px; }
.automation-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.automation-card p  { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
.automation-card code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 11px;
  color: var(--accent);
}
.automation-tag {
  display: inline-flex;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .4px;
}

.cta {
  text-align: center;
  padding: 60px 0 80px;
  border-top: 1px solid var(--border);
}
.cta h2 { font-size: 2rem; margin-bottom: 12px; }
.cta p { color: var(--text-muted); margin-bottom: 28px; }

/* ── Error Page ────────────────────────────────────────────── */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.error-card {
  text-align: center;
  max-width: 480px;
}
.error-code { font-size: 6rem; font-weight: 800; color: var(--accent); line-height: 1; }
.error-message { font-size: 1.5rem; font-weight: 600; margin: 12px 0 8px; }
.error-sub { color: var(--text-muted); margin-bottom: 28px; }
.error-actions { display: flex; gap: 12px; justify-content: center; }

/* ── Pagination ────────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 20px; }
.page-btn {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  transition: background .15s;
}
.page-btn:hover { background: var(--surface-2); }
.page-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Bot Status Bar ────────────────────────────────────────── */
.bot-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}
.bot-status-inner { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 40px 0; }
  .hero-visual { display: none; }
  .editor-layout { grid-template-columns: 1fr; }
  .charts-row { grid-template-columns: 1fr; }
  .navbar-links { display: none; }
}

@media (max-width: 600px) {
  .main-content { padding: 20px 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .hero-title { font-size: 2rem; }
}
