/* ═══════════════════════════════════════════
   OpenClaw Directory – Full CSS
   Dark theme, orange accent, a little lobster
   ═══════════════════════════════════════════ */

/* ── Reset & Variables ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0a;
  --bg-card: #141414;
  --bg-card-hover: #1a1a1a;
  --bg-elevated: #1e1e1e;
  --border: #262626;
  --border-light: #333;
  --text: #e5e5e5;
  --text-muted: #a3a3a3;
  --text-dim: #737373;
  --accent: #f97316;
  --accent-hover: #fb923c;
  --accent-dim: rgba(249, 115, 22, 0.15);
  --green: #22c55e;
  --red: #ef4444;
  --blue: #3b82f6;
  --accent-deep: #ea580c;
  --accent-line: rgba(249, 115, 22, 0.35);
  --radius: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 12px 32px -16px rgba(0,0,0,0.7);
  --ease: cubic-bezier(.2,.7,.2,1);
  --surface: var(--bg-card);
  --surface-hover: var(--bg-elevated);
  --primary: var(--accent);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --container: 1200px;
  --header-h: 64px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
}
h1, h2, h3 { letter-spacing: -0.02em; text-wrap: balance; }
::selection { background: rgba(249,115,22,0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.625rem 1.25rem; border-radius: var(--radius); font-weight: 500;
  cursor: pointer; border: 1px solid transparent;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s, filter .2s;
  font-size: 0.875rem; line-height: 1.4; white-space: nowrap; min-height: 40px;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8125rem; min-height: 36px; }
.btn-primary {
  background: linear-gradient(180deg, #fb8a3c, var(--accent) 60%, var(--accent-deep)); color: #fff; border-color: var(--accent);
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 6px 16px -8px rgba(249,115,22,0.8); font-weight: 600;
}
.btn-primary:hover { background: linear-gradient(180deg, #fd9a55, var(--accent-hover) 60%, var(--accent)); border-color: var(--accent-hover); color: #fff; }
.btn-secondary { background: var(--bg-elevated); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--border-light); color: var(--text); }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: transparent; }
.btn-ghost:hover { background: var(--bg-elevated); color: var(--text); }
.btn-danger { background: var(--red); color: #fff; }
.btn-google {
  background: #fff; color: #333; border-color: #ddd; width: 100%;
  padding: 0.75rem 1.25rem; font-size: 0.9375rem; font-weight: 500;
}
.btn-google:hover { background: #f5f5f5; color: #333; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,0.78); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border); height: var(--header-h);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(249,115,22,0.45) 50%, transparent);
  opacity: 0.6;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 0.6rem; font-size: 1.125rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; min-height: 40px; }
.logo:hover { color: var(--text); }
.logo-icon { font-size: 1.5rem; }
.logo-mark {
  display: inline-grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 9px; color: #fff;
  background: linear-gradient(135deg, #fb923c, #f97316 45%, #dc2626);
  box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 6px 16px -6px rgba(249,115,22,0.75);
  transition: transform .35s var(--ease);
}
.logo:hover .logo-mark { transform: rotate(-12deg) scale(1.05); }
.logo-accent { color: var(--accent); }
.main-nav { display: flex; gap: 0.25rem; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0.45rem 0.8rem; border-radius: var(--radius); color: var(--text-muted);
  font-size: 0.875rem; font-weight: 500; transition: color .2s, background-color .2s;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-link.active { color: var(--text); }
.nav-link.active::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; width: 18px; height: 2px; margin-left: -9px;
  border-radius: 2px; background: var(--accent); box-shadow: 0 0 10px rgba(249,115,22,0.8);
}
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.header-actions .btn-sm { min-height: 40px; }
.user-menu { position: relative; }
.user-avatar-btn { background: none; border: none; cursor: pointer; padding: 4px; border-radius: 50%; }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.user-avatar-placeholder {
  width: 32px; height: 32px; border-radius: 50%; background: var(--accent);
  display: flex; align-items: center; justify-content: center; color: #fff;
  font-weight: 600; font-size: 0.875rem;
}
.user-dropdown {
  display: none; position: absolute; right: 0; top: calc(100% + 0.5rem);
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  min-width: 200px; box-shadow: var(--shadow-lg); z-index: 200;
}
.user-dropdown.open { display: block; }
.dropdown-header { padding: 0.75rem 1rem; }
.dropdown-name { display: block; font-weight: 600; font-size: 0.875rem; }
.dropdown-email { display: block; font-size: 0.75rem; color: var(--text-dim); }
.dropdown-divider { height: 1px; background: var(--border); }
.dropdown-item {
  display: block; padding: 0.5rem 1rem; color: var(--text-muted);
  font-size: 0.875rem; transition: all 0.15s;
}
.dropdown-item:hover { background: var(--bg-elevated); color: var(--text); }
.mobile-menu-btn {
  display: none; background: none; border: 1px solid transparent; cursor: pointer; border-radius: var(--radius);
  flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 40px; height: 40px; padding: 0;
}
.mobile-menu-btn:hover { background: var(--bg-elevated); }
.mobile-menu-btn span { display: block; width: 20px; height: 2px; background: var(--text-muted); border-radius: 2px; }
.mobile-menu { display: none; padding: 0.5rem 1.5rem 1rem; border-bottom: 1px solid var(--border); background: rgba(10,10,10,0.97); }
.mobile-menu.open { display: block; }
.mobile-nav-link { display: flex; align-items: center; min-height: 44px; padding: 0.25rem 0; color: var(--text-muted); font-size: 1rem; font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-nav-link:hover { color: var(--text); }

@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: flex; }
}

/* ── Modal ── */
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  z-index: 500; align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  max-width: 400px; width: 100%; padding: 2rem; position: relative;
}
.modal-close {
  position: absolute; top: 0.75rem; right: 0.75rem; background: none; border: none;
  color: var(--text-dim); font-size: 1.5rem; cursor: pointer; line-height: 1;
}
.modal-body { text-align: center; }
.modal-icon { font-size: 3rem; display: block; margin-bottom: 1rem; }
.modal-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.modal-subtitle { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1.5rem; }

/* ── Page Header ── */
.page-header { padding: 3rem 0 2rem; }
.page-title { font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 750; margin-bottom: 0.5rem; letter-spacing: -0.03em; line-height: 1.15; }
.page-subtitle { font-size: 1rem; color: var(--text-muted); max-width: 600px; }

/* ── Section ── */
.section { padding: 3rem 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 0.5rem; }
.section-title { display: flex; align-items: center; gap: 0.6rem; font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; }
.section-title::before {
  content: ""; width: 4px; height: 1.05em; border-radius: 4px; flex-shrink: 0;
  background: linear-gradient(180deg, var(--accent-hover), var(--accent-deep));
}
.section-title.text-center { justify-content: center; }
.section-link {
  display: inline-flex; align-items: center; gap: 0.35rem; min-height: 40px; padding: 0 0.25rem;
  color: var(--text-muted); font-size: 0.875rem; font-weight: 500; transition: color .2s;
}
.section-link span { transition: transform .2s var(--ease); }
.section-link:hover { color: var(--accent); }
.section-link:hover span { transform: translateX(3px); }

/* ── Hero ── */
.hero { padding: 4rem 0 3rem; text-align: center; }
.hero-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; line-height: 1.15; letter-spacing: -0.035em; }
.hero-title .highlight {
  color: var(--accent);
  background: linear-gradient(100deg, #fdba74, var(--accent) 45%, #ef4444); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle { font-size: 1.125rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 2rem; }
.hero-search {
  max-width: 560px; margin: 0 auto; position: relative;
}
.hero-search input {
  width: 100%; padding: 0.875rem 1.25rem; padding-right: 3rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  color: var(--text); font-size: 1rem; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.hero-search input::placeholder { color: var(--text-dim); }
.hero-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(249,115,22,0.15); }
.hero-search .search-icon {
  position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--text-dim); font-size: 1.125rem;
}

/* ── Hero Stats ── */
.hero-stats { display: flex; justify-content: center; gap: 2rem; margin-top: 2rem; }
.hero-stat { text-align: center; color: var(--text-muted); font-size: 0.875rem; }
.hero-stat-value { display: block; font-size: 1.5rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

@media (max-width: 768px) {
  .hero-title { font-size: 1.75rem; }
  .hero { padding: 2.5rem 0 2rem; }
  .hero-stats { gap: 1.25rem; }
  .hero-stat-value { font-size: 1.25rem; }
}

/* ── Cards ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.card-grid-2 { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); }

.card {
  position: relative; isolation: isolate;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0) 40%), var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.25rem; display: flex; flex-direction: column; color: var(--text);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s, background-color .25s;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 0% 0%, rgba(249,115,22,0.10), transparent 55%);
  transition: opacity .25s;
}
.card:hover { border-color: rgba(249,115,22,0.35); background-color: var(--bg-card-hover); color: var(--text); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.card:hover::before { opacity: 1; }
a.card:hover .card-title { color: #fff; }
.card-featured { border-color: rgba(249,115,22,0.55); background: linear-gradient(160deg, rgba(249,115,22,0.16), rgba(249,115,22,0.03) 60%), var(--bg-card); }
.card-header { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.75rem; }
.card-icon { font-size: 1.5rem; flex-shrink: 0; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.card-img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--surface-hover); box-shadow: 0 0 0 1px rgba(255,255,255,0.06); }
.card-icon { border-radius: 10px; background: var(--bg-elevated); }
.card-title { font-size: 1rem; font-weight: 600; color: var(--text); line-height: 1.4; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent); }
.card-desc { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 0.75rem; flex-grow: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-top: auto; }
.card-tag {
  display: inline-flex; align-items: center; padding: 0.2rem 0.55rem; border-radius: 999px;
  background: var(--bg-elevated); color: var(--text-muted); font-size: 0.6875rem;
  border: 1px solid var(--border); font-weight: 500;
}
.card-stat { font-size: 0.75rem; color: var(--text-dim); display: flex; align-items: center; gap: 0.25rem; }

/* ── Tags bar ── */
.tags-bar { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.tag-btn {
  display: inline-flex; align-items: center; gap: 0.3rem; min-height: 40px;
  padding: 0.35rem 0.9rem; border-radius: 999px; font-size: 0.8125rem; font-weight: 500;
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted);
  cursor: pointer; transition: border-color .2s, color .2s, background-color .2s, transform .2s var(--ease); white-space: nowrap;
}
.tag-btn:hover { border-color: rgba(249,115,22,0.45); color: var(--text); background: rgba(249,115,22,0.06); transform: translateY(-1px); }
.tag-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.badge-featured {
  display: inline-flex; align-items: center; padding: 0.15rem 0.4rem; border-radius: 4px;
  background: var(--accent-dim); color: var(--accent); font-size: 0.6875rem; font-weight: 600;
}

/* ── Detail Page ── */
.detail-page { padding: 2rem 0 4rem; }
.detail-content { max-width: 800px; }
.detail-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; }
.detail-meta { display: flex; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; align-items: center; }
.detail-author { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--text-muted); }
.detail-author a { color: var(--primary); }
.detail-author-img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--surface-hover); }
.detail-body { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.5rem; }
.detail-body pre {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem; overflow-x: auto; font-size: 0.8125rem; line-height: 1.6;
}
.detail-body code { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 0.8125rem; }
.detail-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.detail-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.share-menu { position: relative; }
.share-menu > summary { list-style: none; }
.share-menu > summary::-webkit-details-marker { display: none; }
.share-btn {
  min-height: 40px; background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.4rem 0.9rem; color: var(--text-muted);
  cursor: pointer; font-size: 0.8125rem; font-weight: 500; line-height: 1.4;
  transition: all 0.2s; display: inline-flex; align-items: center; gap: 0.45rem;
  white-space: nowrap;
}
.share-btn:hover, .share-menu[open] .share-btn { border-color: var(--border-light); color: var(--text); }
.share-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.share-popover {
  position: absolute; z-index: 80; top: calc(100% + 0.5rem); right: 0; width: 190px;
  padding: 0.375rem; background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.share-option {
  width: 100%; min-height: 40px; display: flex; align-items: center; gap: 0.625rem; padding: 0.55rem 0.625rem;
  border: 0; border-radius: 6px; background: transparent; color: var(--text-muted);
  cursor: pointer; text-align: left; font: inherit; font-size: 0.8125rem; line-height: 1.35;
}
.share-option > span:first-child {
  width: 1.125rem; color: var(--text-dim); font-size: 0.75rem; font-weight: 700;
  text-align: center;
}
.share-option:hover, .share-option:focus-visible { background: var(--bg-elevated); color: var(--text); outline: none; }
.share-option.copied { color: var(--green); }

@media (max-width: 520px) {
  .share-popover { right: auto; left: 0; }
}

.copy-btn {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.5rem 1rem; color: var(--text-muted); cursor: pointer; font-size: 0.8125rem;
  transition: all 0.2s; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 40px;
}
.copy-btn:hover { border-color: var(--border-light); color: var(--text); }
.copy-btn.copied { border-color: var(--green); color: var(--green); }

.vote-btn {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.5rem 1rem; color: var(--text-muted); cursor: pointer; font-size: 0.8125rem;
  transition: all 0.2s; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 40px;
}
.vote-btn:hover { border-color: var(--accent); color: var(--accent); }
.vote-btn.voted { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

/* ── Forms ── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.375rem; color: var(--text); }
.form-hint { font-size: 0.75rem; color: var(--text-dim); margin-top: 0.25rem; }
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 0.625rem 0.875rem; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-size: 0.875rem; outline: none;
  transition: border-color 0.2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--accent); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-select { cursor: pointer; }
.form-select option { background: var(--bg-card); }
.form-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; max-width: 640px; }

/* ── Dashboard ── */
.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.dash-stat {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; text-align: center;
}
.dash-stat-value { font-size: 1.75rem; font-weight: 700; }
.dash-stat-label { font-size: 0.75rem; color: var(--text-dim); margin-top: 0.25rem; }

/* ── Table ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 0.75rem; color: var(--text-dim); font-weight: 600; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); text-transform: uppercase; letter-spacing: 0.05em; }
td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.875rem; color: var(--text-muted); }
tr:hover td { background: var(--bg-card-hover); }

/* ── Status badges ── */
.status { display: inline-flex; align-items: center; padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.6875rem; font-weight: 600; }
.status-approved { background: rgba(34,197,94,0.15); color: var(--green); }
.status-pending { background: rgba(249,115,22,0.15); color: var(--accent); }
.status-rejected { background: rgba(239,68,68,0.15); color: var(--red); }
.status-active { background: rgba(34,197,94,0.15); color: var(--green); }
.status-expired { background: rgba(115,115,115,0.15); color: var(--text-dim); }

/* ── Pagination ── */
.pagination { display: flex; gap: 0.5rem; justify-content: center; margin-top: 2rem; }
.pagination a, .pagination span {
  padding: 0.4rem 0.75rem; border-radius: var(--radius); font-size: 0.875rem;
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted);
  transition: all 0.2s;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Empty State ── */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-dim); }
.empty-state-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state-title { font-size: 1.125rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.5rem; }

/* ── FAQ ── */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 0.5rem 0; }
.faq-question { font-weight: 600; font-size: 0.9375rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 48px; transition: color .2s; }
.faq-question:hover { color: #fff; }
.faq-question span:last-child {
  display: inline-grid; place-items: center; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--border-light); color: var(--accent); font-weight: 500; transition: transform .25s var(--ease), background-color .2s;
}
.faq-item.open .faq-question span:last-child { transform: rotate(45deg); background: var(--accent-dim); }
.faq-answer { font-size: 0.9rem; color: var(--text-muted); margin: 0.25rem 0 0.75rem; line-height: 1.7; display: none; max-width: 62ch; }
.faq-item.open .faq-answer { display: block; }

/* ── OpenClaw GitHub SEO Cluster ── */
.seo-cluster { overflow: hidden; }
.cluster-shell { max-width: 960px; }
.cluster-hero {
  position: relative; padding: 5rem 0 3.5rem;
  background: radial-gradient(circle at 18% 15%, rgba(249,115,22,0.17), transparent 35%),
              radial-gradient(circle at 86% 0%, rgba(59,130,246,0.1), transparent 28%);
  border-bottom: 1px solid var(--border);
}
.cluster-hero-compact { padding: 4rem 0 3rem; }
.cluster-hero h1 { max-width: 850px; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.08; letter-spacing: -0.04em; margin-bottom: 1.25rem; }
.cluster-kicker { color: var(--accent); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.75rem; }
.cluster-lead { max-width: 780px; color: var(--text-muted); font-size: 1.1rem; line-height: 1.75; }
.cluster-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.cluster-source-note { max-width: 780px; color: var(--text-dim); font-size: 0.78rem; margin-top: 1.1rem; }
.cluster-source-note strong { color: var(--text-muted); }
.cluster-nav { display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0.75rem; margin: 1.5rem 0 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.cluster-nav a { color: var(--text-muted); padding: 0.45rem 0.8rem; border-radius: 7px; font-size: 0.82rem; font-weight: 600; }
.cluster-nav a:hover { color: var(--text); background: var(--bg-elevated); }
.cluster-nav a.active { color: #fff; background: var(--accent); }
.cluster-section { padding: 3rem 0; border-bottom: 1px solid var(--border); }
.cluster-section:last-child { border-bottom: 0; }
.cluster-section > h2 { font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -0.025em; margin-bottom: 1rem; }
.cluster-copy { color: var(--text-muted); line-height: 1.8; margin-top: 1rem; }
.cluster-copy code, .cluster-answer code, .cluster-table code { color: #fed7aa; background: #21150d; border: 1px solid #3b2415; padding: 0.12rem 0.35rem; border-radius: 5px; font-size: 0.88em; }
.cluster-answer { background: linear-gradient(135deg, rgba(249,115,22,0.13), rgba(249,115,22,0.04)); border: 1px solid rgba(249,115,22,0.32); border-radius: var(--radius-lg); padding: 1.25rem 1.4rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 2rem; }
.cluster-answer strong { color: var(--text); }
.cluster-grid { display: grid; gap: 1rem; margin-top: 1.5rem; }
.cluster-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cluster-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.4rem; }
.cluster-card:hover { border-color: var(--border-light); }
.cluster-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.15rem; height: 2.15rem; border-radius: 8px; color: #fff; background: var(--accent); font-size: 0.85rem; font-weight: 800; margin-bottom: 1rem; }
.cluster-card h2, .cluster-card h3 { color: var(--text); font-size: 1rem; margin-bottom: 0.55rem; }
.cluster-card h2 a { color: var(--text); }
.cluster-card h2 a:hover { color: var(--accent); }
.cluster-card p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.7; }
.cluster-card-link { display: inline-block; margin-top: 1rem; font-size: 0.8rem; font-weight: 600; }
.cluster-step-list { display: grid; gap: 0; margin-top: 1.25rem; }
.cluster-step { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; padding: 1.35rem 0; border-bottom: 1px solid var(--border); }
.cluster-step:last-child { border-bottom: 0; }
.cluster-step > span { display: flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 999px; background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(249,115,22,0.25); font-weight: 700; }
.cluster-step strong { display: block; margin: 0.35rem 0; color: var(--text); }
.cluster-step p { color: var(--text-muted); font-size: 0.86rem; line-height: 1.7; }
.cluster-code { margin: 1.1rem 0 0; padding: 1rem 1.15rem; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #070707; color: #d4d4d4; line-height: 1.7; font-size: 0.82rem; }
.cluster-table-wrap { overflow-x: auto; margin-top: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.cluster-table { width: 100%; min-width: 640px; border-collapse: collapse; }
.cluster-table th, .cluster-table td { text-align: left; padding: 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.cluster-table th { color: var(--text); background: var(--bg-elevated); font-size: 0.77rem; text-transform: uppercase; letter-spacing: 0.04em; }
.cluster-table td { color: var(--text-muted); font-size: 0.84rem; line-height: 1.6; }
.cluster-table tbody tr:last-child td { border-bottom: 0; }
.cluster-note { margin-top: 1.25rem; padding: 1rem 1.15rem; border-left: 3px solid var(--blue); background: rgba(59,130,246,0.08); color: var(--text-muted); font-size: 0.86rem; line-height: 1.7; }

/* ── OpenClaw deploy promos and comparison ── */
.deploy-promo-section { padding: 1.5rem 0; }
.deploy-promo {
  position: relative; overflow: hidden;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.25rem;
  padding: 1.35rem 1.5rem; border: 1px solid rgba(249,115,22,0.35); border-radius: var(--radius-xl);
  background:
    radial-gradient(60% 140% at 0% 0%, rgba(249,115,22,0.22), transparent 60%),
    linear-gradient(110deg, rgba(249,115,22,0.10), rgba(20,20,20,0.96) 60%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 20px 40px -28px rgba(249,115,22,0.6);
}
.deploy-promo::after {
  content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%; pointer-events: none;
  border: 1px dashed rgba(249,115,22,0.18);
}
.deploy-promo-icon {
  display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; color: #fff;
  background: linear-gradient(135deg, #fb923c, #ea580c); box-shadow: 0 10px 24px -10px rgba(249,115,22,0.9);
}
.deploy-promo-copy { min-width: 0; flex: 1 1 280px; }
.deploy-promo > .btn { position: relative; z-index: 1; }
.deploy-promo h2 { margin-bottom: 0.25rem; font-size: clamp(1.15rem, 2.2vw, 1.45rem); line-height: 1.25; letter-spacing: -0.02em; }
.deploy-promo-accent { color: var(--accent); }
.deploy-promo p { color: var(--text-muted); font-size: 0.9rem; }
.deploy-promo p a { margin-left: 0.25rem; white-space: nowrap; }
.btn-deploy-lg { padding: 0.75rem 1.4rem; font-size: 0.95rem; font-weight: 600; box-shadow: 0 8px 24px -8px rgba(249,115,22,0.7); }
.btn-deploy-lg:hover { transform: translateY(-1px); }
.deploy-promo-disclosure { flex-basis: 100%; color: var(--text-dim); font-size: 0.75rem; line-height: 1.6; padding-top: 0.75rem; border-top: 1px solid rgba(255,255,255,0.06); }

/* Header 1-click deploy button */
.btn-deploy {
  position: relative; gap: 0.4rem; color: #fff; font-weight: 600; border: 0;
  background: linear-gradient(135deg, #fb923c, #f97316 55%, #ea580c);
  box-shadow: 0 0 0 1px rgba(249,115,22,0.5), 0 6px 18px -6px rgba(249,115,22,0.8);
}
.btn-deploy:hover { color: #fff; filter: brightness(1.08); transform: translateY(-1px); }
.btn-deploy-short { display: none; }
.deploy-page .cluster-section { scroll-margin-top: calc(var(--header-h) + 1rem); }
.deploy-action-card { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; margin-top: 1.5rem; padding: 1.5rem; border: 1px solid rgba(249,115,22,0.34); border-radius: var(--radius-lg); background: var(--accent-dim); }
.deploy-action-card h3 { margin-bottom: 0.45rem; font-size: 1.1rem; }
.deploy-action-card p { max-width: 510px; color: var(--text-muted); font-size: 0.86rem; line-height: 1.7; }
.deploy-action-links { display: flex; flex-direction: column; gap: 0.6rem; flex-shrink: 0; }
.deploy-price-note, .deploy-sources { margin-top: 1rem; color: var(--text-dim); font-size: 0.8rem; line-height: 1.7; }
.deploy-sources a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 520px) {
  .btn-deploy-full { display: none; }
  .btn-deploy-short { display: inline; }
  .header-signin, .header-dashboard { display: none; }
  .logo { font-size: 1rem; }
  .logo-icon { font-size: 1.25rem; }
  .btn-deploy-lg { width: 100%; }
}
@media (max-width: 700px) {
  .cluster-hero { padding: 3.25rem 0 2.5rem; }
  .cluster-grid-2 { grid-template-columns: 1fr; }
  .cluster-nav { flex-wrap: nowrap; overflow-x: auto; }
  .cluster-nav a { white-space: nowrap; }
  .cluster-step { grid-template-columns: 2rem 1fr; gap: 0.75rem; }
  .cluster-step > span { width: 2rem; height: 2rem; }
  .deploy-action-card { flex-direction: column; align-items: stretch; }
  .deploy-action-links { width: 100%; }
  .deploy-action-links .btn { white-space: normal; text-align: center; }
}

/* ── Footer ── */
.site-footer {
  position: relative; border-top: 1px solid var(--border); padding: 3.5rem 0 2rem; margin-top: 4rem;
  background: radial-gradient(60% 120% at 50% 0%, rgba(249,115,22,0.06), transparent 60%), #080808;
}
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249,115,22,0.55), transparent);
}
.footer-cta {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1rem; padding: 0.5rem 0.85rem; min-height: 40px;
  border: 1px solid var(--accent-line); border-radius: 999px; font-size: 0.8125rem; font-weight: 500; color: var(--accent-hover);
  background: rgba(249,115,22,0.06); transition: background-color .2s, color .2s;
}
.footer-cta:hover { background: rgba(249,115,22,0.14); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(6, 1fr); gap: 2rem; margin-bottom: 2rem; }
.footer-brand .logo { margin-bottom: 0.75rem; }
.footer-desc { font-size: 0.8125rem; color: var(--text-dim); line-height: 1.5; }
.footer-links h4 { font-size: 0.72rem; font-weight: 600; margin-bottom: 0.75rem; color: var(--text); text-transform: uppercase; letter-spacing: 0.08em; }
.footer-links a { display: block; font-size: 0.8125rem; color: var(--text-dim); padding: 0.25rem 0; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; }
.footer-bottom p { font-size: 0.75rem; color: var(--text-dim); }
@media (max-width: 768px) {
  .footer-bottom { justify-content: center; text-align: center; }
  .footer-links a { padding: 0.55rem 0; }
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
}

/* ── Utility ── */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

/* ── Shared personality bits ── */
.pulse-dot {
  position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--green); box-shadow: 0 0 0 0 rgba(34,197,94,0.6); animation: pulse-dot 2.4s ease-out infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.55); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}

/* ── Homepage hero ── */
.hero-home { position: relative; overflow: hidden; padding: 5.5rem 0 4rem; border-bottom: 1px solid var(--border); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; will-change: transform; }
.hero-glow-a { width: 520px; height: 380px; left: 50%; top: -180px; margin-left: -420px; background: rgba(249,115,22,0.45); animation: glow-drift 18s ease-in-out infinite alternate; }
.hero-glow-b { width: 420px; height: 320px; left: 50%; top: -120px; margin-left: 40px; background: rgba(239,68,68,0.28); animation: glow-drift 22s ease-in-out infinite alternate-reverse; }
@keyframes glow-drift {
  from { transform: translate3d(-30px, 0, 0) scale(1); }
  to { transform: translate3d(40px, 30px, 0) scale(1.12); }
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 44px 44px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 20%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 65% at 50% 20%, #000 30%, transparent 75%);
}
.hero-claw {
  position: absolute; width: 300px; height: 300px; right: max(2%, calc(50% - 640px)); bottom: -40px;
  color: rgba(249,115,22,0.16); transform: rotate(-8deg);
}
.hero-inner { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem; margin-bottom: 1.4rem; padding: 0.35rem 0.9rem 0.35rem 0.75rem;
  border: 1px solid var(--border-light); border-radius: 999px; background: rgba(20,20,20,0.7);
  color: var(--text-muted); font-size: 0.8rem; font-weight: 500;
}
.hero-home .hero-title { font-size: clamp(2.1rem, 6vw, 3.75rem); line-height: 1.05; letter-spacing: -0.045em; max-width: 860px; margin: 0 auto 1.25rem; }
.hero-home .hero-subtitle { max-width: 620px; font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.65; }
.hero-home .hero-search { max-width: 620px; }
.hero-home .hero-search form { position: relative; display: flex; align-items: center; }
.hero-home .hero-search input {
  min-height: 56px; padding: 0.95rem 7rem 0.95rem 3rem; border-radius: 16px; font-size: 1rem;
  background: rgba(20,20,20,0.85); border-color: var(--border-light);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 20px 40px -24px rgba(0,0,0,0.9);
}
.hero-home .hero-search .search-icon { left: 1.05rem; right: auto; color: var(--text-dim); }
.hero-search-btn {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%); min-height: 42px; padding: 0 1.1rem;
  border: 0; border-radius: 11px; cursor: pointer; color: #fff; font-weight: 600; font-size: 0.875rem;
  background: linear-gradient(180deg, #fb8a3c, var(--accent) 60%, var(--accent-deep));
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset; transition: filter .2s;
}
.hero-search-btn:hover { filter: brightness(1.08); }
.hero-quick { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.4rem; margin-top: 1rem; }
.hero-quick-label { color: var(--text-dim); font-size: 0.8rem; margin-right: 0.15rem; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 0.3rem; min-height: 40px; padding: 0.2rem 0.85rem; border-radius: 999px;
  font-size: 0.8rem; color: var(--text-muted); background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  transition: color .2s, border-color .2s, background-color .2s;
}
.hero-chip:hover { color: var(--text); border-color: rgba(249,115,22,0.45); background: rgba(249,115,22,0.07); }
.hero-home .hero-stats { gap: 0.75rem; margin-top: 2.5rem; flex-wrap: wrap; }
.hero-home .hero-stat {
  min-width: 132px; padding: 0.85rem 1.25rem; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01)); border: 1px solid var(--border);
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim);
}
.hero-home .hero-stat-value {
  font-size: 1.75rem; text-transform: none; letter-spacing: -0.03em; margin-bottom: 0.1rem;
  background: linear-gradient(180deg, #fff, #c7c7c7); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-assistant {
  display: inline-flex; align-items: center; gap: 0.65rem; max-width: 100%; margin-top: 1.75rem; padding: 0.45rem 0.9rem 0.45rem 0.5rem; min-height: 44px;
  border: 1px solid var(--accent-line); border-radius: 999px; background: rgba(249,115,22,0.08);
  color: var(--text); font-size: 0.875rem; text-align: left; transition: background-color .2s, border-color .2s, transform .2s var(--ease);
}
.hero-assistant:hover { color: #fff; background: rgba(249,115,22,0.15); border-color: rgba(249,115,22,0.6); transform: translateY(-1px); }
.hero-assistant strong { color: var(--accent-hover); font-weight: 600; }
.hero-assistant svg { flex-shrink: 0; color: var(--accent); transition: transform .2s var(--ease); }
.hero-assistant:hover svg { transform: translateX(3px); }
.hero-assistant-badge {
  flex-shrink: 0; padding: 0.15rem 0.55rem; border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
}

/* ── CTA band (home + /ai-assistant) ── */
.cta-band {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem 2rem;
  padding: 2.25rem 2.5rem; border-radius: var(--radius-xl); border: 1px solid rgba(249,115,22,0.3);
  background:
    radial-gradient(70% 160% at 100% 0%, rgba(249,115,22,0.22), transparent 60%),
    radial-gradient(50% 120% at 0% 100%, rgba(239,68,68,0.12), transparent 60%),
    var(--bg-card);
}
.cta-band-claw { position: absolute; right: 1.5rem; bottom: -1.5rem; width: 140px; height: 140px; color: rgba(249,115,22,0.12); pointer-events: none; }
.cta-band-copy { position: relative; flex: 1 1 320px; min-width: 0; }
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); font-weight: 750; letter-spacing: -0.03em; margin-bottom: 0.4rem; }
.cta-band p { color: var(--text-muted); max-width: 520px; }
.cta-band-actions { position: relative; display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* ── /ai-assistant landing ── */
.aa-hero { position: relative; overflow: hidden; padding: 4.5rem 0 4rem; border-bottom: 1px solid var(--border); }
.aa-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(40% 60% at 80% 30%, rgba(249,115,22,0.20), transparent 70%),
    radial-gradient(35% 50% at 10% 0%, rgba(239,68,68,0.10), transparent 70%);
}
.aa-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 75% 40%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 75% 40%, #000, transparent 75%);
}
.aa-hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 3rem; align-items: center; }
.aa-eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem; margin-bottom: 1.25rem; padding: 0.35rem 0.9rem 0.35rem 0.75rem;
  border: 1px solid var(--accent-line); border-radius: 999px; background: rgba(249,115,22,0.08);
  color: var(--accent-hover); font-size: 0.8rem; font-weight: 600;
}
.aa-title { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.045em; margin-bottom: 1.1rem; }
.aa-title-accent { display: block; background: linear-gradient(100deg, #fdba74, var(--accent) 45%, #ef4444); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--accent); }
.aa-lead { color: var(--text-muted); font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.65; max-width: 520px; }
.aa-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.aa-btn-ghost { padding: 0.75rem 1.3rem; font-size: 0.95rem; }
.aa-price-line { margin-top: 1rem; color: var(--text-muted); font-size: 0.9rem; }
.aa-price-line strong { color: var(--text); }
.aa-trust { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.aa-trust li { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--text-muted); font-size: 0.85rem; }
.aa-trust svg { color: var(--accent); }

/* Telegram-style phone mock */
.aa-phone {
  position: relative; width: 100%; max-width: 380px; justify-self: center; margin: 0;
  border-radius: 28px; padding: 10px; background: linear-gradient(160deg, #2a2a2a, #121212);
  border: 1px solid #333; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.03) inset, 0 30px 80px -40px rgba(249,115,22,0.55);
  transform: rotate(1.5deg);
}
.aa-phone-top {
  display: flex; align-items: center; gap: 0.65rem; padding: 0.7rem 0.85rem; border-radius: 20px 20px 0 0;
  background: #1c2733; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.aa-chat-avatar {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; flex-shrink: 0;
  background: linear-gradient(135deg, #fb923c, #f97316 45%, #dc2626);
}
.aa-chat-who { display: flex; flex-direction: column; line-height: 1.25; }
.aa-chat-who strong { font-size: 0.9rem; color: #fff; }
.aa-chat-who small { font-size: 0.72rem; color: #7fb3e6; }
.aa-chat {
  display: flex; flex-direction: column; gap: 0.5rem; padding: 0.9rem 0.75rem 1rem; border-radius: 0 0 20px 20px; min-height: 360px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.025) 0 2px, transparent 3px) 0 0 / 28px 28px,
    linear-gradient(180deg, #0e1621, #0b121b);
}
.aa-chat-day { align-self: center; padding: 0.1rem 0.6rem; border-radius: 999px; background: rgba(0,0,0,0.35); color: rgba(255,255,255,0.7); font-size: 0.7rem; font-weight: 500; }
.aa-msg {
  position: relative; max-width: 85%; padding: 0.5rem 0.7rem 0.4rem; border-radius: 14px; font-size: 0.84rem; line-height: 1.45; color: #e9eef3;
  opacity: 0; animation: msg-in .5s var(--ease) forwards;
}
.aa-msg p + p, .aa-msg p + ul { margin-top: 0.25rem; }
.aa-msg ul { padding-left: 0; }
.aa-msg li { position: relative; padding-left: 0.9rem; }
.aa-msg li::before { content: ""; position: absolute; left: 0.15rem; top: 0.6em; width: 4px; height: 4px; border-radius: 50%; background: #fb923c; }
.aa-msg time { display: block; text-align: right; font-size: 0.66rem; color: rgba(255,255,255,0.45); margin-top: 0.15rem; }
.aa-msg-bot { align-self: flex-start; background: #182533; border-bottom-left-radius: 4px; }
.aa-msg-me { align-self: flex-end; background: #2b5278; border-bottom-right-radius: 4px; }
.aa-msg-me time { color: rgba(170,210,255,0.75); }
.aa-msg:nth-of-type(1) { animation-delay: .15s; }
.aa-msg:nth-of-type(2) { animation-delay: .6s; }
.aa-msg:nth-of-type(3) { animation-delay: 1.05s; }
.aa-msg:nth-of-type(4) { animation-delay: 1.5s; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.aa-typing {
  align-self: flex-start; display: inline-flex; gap: 4px; padding: 0.6rem 0.75rem; border-radius: 14px; border-bottom-left-radius: 4px;
  background: #182533; opacity: 0; animation: msg-in .4s var(--ease) 2s forwards;
}
.aa-typing span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.55); animation: typing 1.2s ease-in-out infinite; }
.aa-typing span:nth-child(2) { animation-delay: .15s; }
.aa-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-3px); opacity: 1; } }

/* Sections */
.aa-section { padding: 4.5rem 0 0; }
.aa-section-head { text-align: center; margin-bottom: 2.25rem; }
.aa-kicker { color: var(--accent); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.5rem; }
.aa-h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); font-weight: 750; letter-spacing: -0.035em; line-height: 1.15; }

.aa-uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.aa-use {
  position: relative; padding: 1.4rem; border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0) 50%), var(--bg-card);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.aa-use:hover { transform: translateY(-3px); border-color: rgba(249,115,22,0.35); box-shadow: var(--shadow-card); }
.aa-use-icon {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; margin-bottom: 1rem;
  color: var(--accent-hover); background: rgba(249,115,22,0.10); border: 1px solid rgba(249,115,22,0.25);
}
.aa-use h3 { font-size: 1.02rem; font-weight: 650; margin-bottom: 0.3rem; }
.aa-use p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

.aa-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; counter-reset: none; position: relative; }
.aa-step {
  position: relative; padding: 1.25rem 1.4rem 1.5rem; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--bg-card);
}
.aa-step p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; }
.aa-step-num {
  display: inline-grid; place-items: center; width: 32px; height: 32px; margin: 1.1rem 0 0.6rem; border-radius: 50%;
  font-weight: 700; font-size: 0.9rem; color: #fff; background: linear-gradient(135deg, #fb923c, #ea580c);
  box-shadow: 0 0 0 4px rgba(249,115,22,0.15);
}
.aa-step-art {
  display: grid; place-items: center; height: 116px; border-radius: 12px; overflow: hidden;
  background:
    radial-gradient(circle at 50% 120%, rgba(249,115,22,0.18), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.02) 0 8px, transparent 8px 16px), #0f0f0f;
  border: 1px solid var(--border);
}
.aa-art-token {
  display: flex; flex-direction: column; gap: 0.3rem; padding: 0.6rem 0.8rem; border-radius: 10px; background: #182533; color: #e9eef3; font-size: 0.78rem;
  box-shadow: 0 10px 24px -12px rgba(0,0,0,0.9);
}
.aa-art-token span { color: #7fb3e6; font-weight: 600; }
.aa-art-token code { font-family: 'SF Mono', ui-monospace, Menlo, monospace; font-size: 0.75rem; padding: 0.2rem 0.4rem; border-radius: 6px; background: rgba(0,0,0,0.35); color: #fdba74; }
.aa-art-start {
  display: inline-flex; align-items: center; justify-content: center; min-width: 150px; padding: 0.6rem 1.5rem; border-radius: 10px;
  background: #2b5278; color: #fff; font-weight: 600; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase;
  box-shadow: 0 0 0 6px rgba(43,82,120,0.25), 0 10px 24px -12px rgba(0,0,0,0.9);
}
.aa-art-live {
  display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.55rem 0.9rem; border-radius: 999px;
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.35); color: #86efac; font-size: 0.82rem; font-weight: 600;
}

/* Pricing */
.aa-price-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 3rem; align-items: center;
  max-width: 920px; margin: 0 auto; padding: 2.5rem; border-radius: 24px;
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(249,115,22,0.18), transparent 60%),
    var(--bg-card);
  border: 1px solid transparent;
  box-shadow: 0 40px 80px -40px rgba(249,115,22,0.45);
}
.aa-price-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(251,146,60,0.9), rgba(249,115,22,0.15) 40%, rgba(255,255,255,0.08) 70%, rgba(239,68,68,0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.aa-price-badge {
  display: inline-flex; padding: 0.25rem 0.7rem; margin-bottom: 0.9rem; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.aa-price { display: flex; align-items: baseline; gap: 0.25rem; margin: 0.9rem 0 0.25rem; }
.aa-price-amount { font-size: clamp(2.75rem, 7vw, 3.5rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.aa-price-per { color: var(--text-muted); font-size: 1rem; }
.aa-price-sub { color: var(--text-muted); }
.aa-price-sub strong { color: var(--text); }
.aa-price-btn { margin-top: 1.25rem; }
.aa-price-hint { margin-top: 0.7rem; color: var(--text-dim); font-size: 0.78rem; line-height: 1.5; max-width: 340px; }
.aa-price-list { display: grid; gap: 0.8rem; }
.aa-price-list li { position: relative; padding-left: 2rem; color: var(--text-muted); font-size: 0.93rem; line-height: 1.5; }
.aa-price-list li::before {
  content: ""; position: absolute; left: 0; top: 0.05rem; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: rgba(249,115,22,0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fb923c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 0.75rem no-repeat;
}

/* FAQ (details/summary) */
.aa-faq { max-width: 760px; margin: 0 auto; display: grid; gap: 0.6rem; }
.aa-faq-item { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card); transition: border-color .2s; }
.aa-faq-item[open] { border-color: rgba(249,115,22,0.35); }
.aa-faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; padding: 0.9rem 1.15rem;
  cursor: pointer; list-style: none; font-weight: 600; font-size: 0.97rem; border-radius: inherit;
}
.aa-faq-item summary::-webkit-details-marker { display: none; }
.aa-faq-item summary:hover { color: #fff; }
.aa-faq-icon { position: relative; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border-light); transition: transform .25s var(--ease), background-color .2s; }
.aa-faq-icon::before, .aa-faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; margin: -1px 0 0 -5px; border-radius: 2px; background: var(--accent); }
.aa-faq-icon::after { transform: rotate(90deg); }
.aa-faq-item[open] .aa-faq-icon { transform: rotate(45deg); background: var(--accent-dim); }
.aa-faq-item p { padding: 0 1.15rem 1.1rem; color: var(--text-muted); line-height: 1.7; }
.aa-final { margin-bottom: 1rem; }

@media (max-width: 900px) {
  .aa-hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .aa-phone { transform: none; }
  .aa-uses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aa-steps { grid-template-columns: 1fr; }
  .aa-step { display: grid; grid-template-columns: 140px 1fr; grid-template-rows: auto 1fr; column-gap: 1.25rem; align-items: start; }
  .aa-step-art { grid-row: 1 / span 2; height: 100%; min-height: 110px; }
  .aa-step-num { margin-top: 0; }
  .aa-price-card { grid-template-columns: 1fr; padding: 2rem; }
}
@media (max-width: 768px) {
  .hero-home { padding: 3.5rem 0 3rem; }
  .hero-claw { width: 200px; height: 200px; right: -50px; bottom: -30px; }
  .hero-home .hero-stat { min-width: 0; flex: 1 1 0; padding: 0.75rem 0.35rem; font-size: 0.66rem; letter-spacing: 0.04em; }
  .hero-home .hero-stat-value { font-size: 1.4rem; }
  .btn-sm { min-height: 40px; }
  .cta-band { padding: 1.75rem 1.5rem; }
  .cta-band-actions { width: 100%; }
  .cta-band-actions .btn { flex: 1 1 160px; }
  .aa-hero { padding: 3rem 0 3rem; }
  .aa-section { padding-top: 3.5rem; }
}
@media (max-width: 560px) {
  .hero-home .hero-search input { padding-right: 1.25rem; }
  .hero-search-btn { display: none; }
  .hero-assistant { border-radius: 16px; font-size: 0.82rem; }
  .aa-uses { grid-template-columns: 1fr; }
  .aa-step { grid-template-columns: 1fr; }
  .aa-step-art { grid-row: auto; height: 100px; }
  .aa-step-num { margin-top: 1rem; }
  .aa-actions .btn { flex: 1 1 100%; }
  .aa-price-card { padding: 1.5rem; border-radius: 20px; }
  .aa-price-btn { width: 100%; }
  .deploy-promo { padding: 1.25rem; }
  .deploy-promo-icon { width: 40px; height: 40px; border-radius: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
  .aa-msg, .aa-typing { opacity: 1; }
  .card:hover, .aa-use:hover, .tag-btn:hover, .hero-assistant:hover { transform: none; }
}

/* ── Comments ── */
.comment-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.comment-avatar-placeholder { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.875rem; flex-shrink: 0; }
.comment-input { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 0.5rem; padding: 0.75rem 1rem; color: var(--text); font-size: 0.875rem; font-family: inherit; resize: vertical; min-height: 80px; transition: border-color 0.2s; }
.comment-input:focus { outline: none; border-color: var(--primary); }
.comment-item { display: flex; flex-direction: column; gap: 0.5rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.comment-item:last-child { border-bottom: none; }
.comment-header { display: flex; align-items: center; gap: 0.75rem; }
.comment-author { font-weight: 600; font-size: 0.875rem; color: var(--text); margin-right: 0.5rem; }
.comment-date { font-size: 0.75rem; color: var(--text-dim); }
.comment-body { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.comment-submitted-msg { margin-top: 0.75rem; padding: 0.75rem 1rem; background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3); border-radius: 0.5rem; color: #10b981; font-size: 0.8125rem; }

/* ── Profile ── */
.profile-header { display: flex; align-items: center; gap: 1.5rem; }
.profile-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.profile-avatar-placeholder { width: 80px; height: 80px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 700; flex-shrink: 0; }
.profile-name { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.25rem; }
.profile-bio { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.5rem; line-height: 1.5; }
.profile-meta { display: flex; gap: 1rem; color: var(--text-dim); font-size: 0.8125rem; flex-wrap: wrap; }

/* ── Inbox / Messages ── */
.badge-unread { background: var(--primary); color: #fff; font-size: 0.6875rem; font-weight: 700; padding: 0.125rem 0.4rem; border-radius: 999px; margin-left: 0.375rem; }
.inbox-item { display: flex; align-items: center; gap: 0.75rem; padding: 1rem; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.15s; border-radius: var(--radius); }
.inbox-item:hover { background: var(--surface-hover); }
.inbox-item.unread { background: var(--accent-dim); }
.inbox-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.inbox-avatar-placeholder { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.875rem; flex-shrink: 0; }
.inbox-info { flex: 1; min-width: 0; }
.inbox-name { font-weight: 600; font-size: 0.875rem; color: var(--text); }
.inbox-preview { font-size: 0.8125rem; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-time { font-size: 0.75rem; color: var(--text-dim); white-space: nowrap; }

.thread-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.thread-partner { font-weight: 600; font-size: 1rem; }
.thread-messages { max-height: 400px; overflow-y: auto; margin-bottom: 1rem; display: flex; flex-direction: column; gap: 0.75rem; padding: 1rem 0; }
.thread-msg { max-width: 80%; padding: 0.75rem 1rem; border-radius: 1rem; font-size: 0.875rem; line-height: 1.5; word-break: break-word; }
.thread-msg.sent { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 0.25rem; }
.thread-msg.received { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 0.25rem; }
.thread-msg-time { font-size: 0.6875rem; opacity: 0.6; margin-top: 0.25rem; }
.thread-compose { display: flex; flex-direction: column; border-top: 1px solid var(--border); padding-top: 1rem; }

@media (max-width: 600px) {
  .profile-header { flex-direction: column; text-align: center; }
  .profile-meta { justify-content: center; }
}

/* ── Managed AI bots (/dashboard/bots) ── */
.bot-wrap { max-width: 760px; margin: 0 auto; }
.bot-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; margin-bottom: 1rem; }
.bot-card h2, .bot-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.bot-card p { color: var(--text-muted); }
.bot-step { display: flex; gap: 1rem; align-items: flex-start; }
.bot-step-num { flex: 0 0 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--bg-elevated); color: var(--text-muted); border: 1px solid var(--border-light); }
.bot-step.is-done .bot-step-num { background: rgba(34,197,94,0.15); color: var(--green); border-color: var(--green); }
.bot-step.is-current .bot-step-num { background: var(--accent-dim); color: var(--accent); border-color: var(--accent); }
.bot-step.is-locked { opacity: 0.45; }
.bot-step-body { flex: 1; min-width: 0; }
.bot-step-body ol { list-style: decimal; padding-left: 1.25rem; color: var(--text-muted); margin: 0.5rem 0 0.75rem; }
.bot-step-body ol li { margin-bottom: 0.25rem; }
.bot-done-line { color: var(--green); font-weight: 600; }
.bot-row { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.bot-row .form-input { flex: 1 1 240px; min-width: 0; }
.bot-msg { margin-top: 0.5rem; font-size: 0.9rem; }
.bot-msg.is-error { color: var(--red); }
.bot-msg.is-ok { color: var(--green); }
.bot-msg.is-warn { color: var(--accent); }
.bot-badge { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--bg-elevated); color: var(--text-muted); border: 1px solid var(--border-light); }
.bot-badge::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
.bot-badge.s-running { color: var(--green); border-color: rgba(34,197,94,0.4); }
.bot-badge.s-offline, .bot-badge.s-error { color: var(--red); border-color: rgba(239,68,68,0.4); }
.bot-badge.s-setup { color: var(--accent); border-color: rgba(249,115,22,0.4); }
.bot-progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.4rem; margin: 0.75rem 0; }
.bot-progress span { font-size: 0.75rem; color: var(--text-dim); border-top: 3px solid var(--border-light); padding-top: 0.35rem; }
.bot-progress span.is-done { color: var(--green); border-color: var(--green); }
.bot-progress span.is-current { color: var(--accent); border-color: var(--accent); }
.bot-kv { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; font-size: 0.9rem; }
.bot-kv dt { color: var(--text-dim); }
.bot-events { font-size: 0.85rem; color: var(--text-muted); }
.bot-events li { padding: 0.35rem 0; border-bottom: 1px solid var(--border); display: flex; gap: 0.75rem; }
.bot-events time { color: var(--text-dim); flex: 0 0 auto; }
.bot-price { font-size: 2rem; font-weight: 700; }
.bot-price small { font-size: 0.9rem; color: var(--text-muted); font-weight: 400; }
.bot-uses { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.75rem; margin-top: 0.75rem; }
.bot-uses div { background: var(--bg-elevated); border-radius: var(--radius); padding: 0.75rem; font-size: 0.9rem; color: var(--text-muted); }
.bot-uses strong { display: block; color: var(--text); }
.bot-apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.6rem; margin-top: 0.75rem; }
.bot-app { display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; min-height: 44px; padding: 0.8rem; text-align: left; background: var(--bg-elevated); color: var(--text-muted); border: 1px solid var(--border-light); border-radius: var(--radius); cursor: pointer; font: inherit; transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease; }
.bot-app strong { color: var(--text); }
.bot-app small { font-size: 0.8rem; }
.bot-app .app-logo { flex: 0 0 auto; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35)); }
.bot-app:hover { border-color: var(--accent); transform: translateY(-1px); }
.bot-app.is-selected, .bot-app:has(input:checked) { border-color: var(--accent); background: var(--accent-dim); }
.bot-apps-radio .bot-app { position: relative; }
.bot-apps-radio .bot-app input { position: absolute; opacity: 0; pointer-events: none; }
.bot-apps-radio .bot-app:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
a.bot-app { text-decoration: none; }
.bot-apps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.aa-apps .bot-apps { gap: 1rem; }
@media (max-width: 860px) { .bot-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .bot-apps { grid-template-columns: 1fr; } }
.aa-apps .bot-app { padding: 1.25rem; }
.bot-app:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bot-qr { display: inline-block; background: #fff; padding: 12px; border-radius: var(--radius); margin-top: 0.75rem; }
.bot-qr svg { display: block; width: min(280px, 70vw); height: auto; }
.bot-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.75rem; margin-top: 0.75rem; }
.bot-tier { display: flex; flex-direction: column; gap: 0.25rem; background: var(--bg-elevated); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 0.75rem; font-size: 0.9rem; color: var(--text-muted); }
.bot-tier strong { color: var(--text); }
.bot-tier.is-current { border-color: var(--accent); }
.bot-tier-price { color: var(--text); font-weight: 600; }
.bot-tier-current { color: var(--accent); font-weight: 600; font-size: 0.85rem; }
.bot-tier .btn { align-self: flex-start; margin-top: 0.25rem; }
@media (max-width: 560px) {
  .bot-progress { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .bot-progress span { font-size: 0.65rem; }
  .bot-step { gap: 0.75rem; }
}


/* ── Dashboard overview (/dashboard) ── */
.dsh-hero { position: relative; padding: 3rem 0 2rem; background: radial-gradient(60% 120% at 15% 0%, rgba(249,115,22,0.14), transparent 60%); border-bottom: 1px solid var(--border); margin-bottom: 2rem; }
.dsh-eyebrow { color: var(--accent); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.4rem; }
.dsh-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; }
.dsh-sub { color: var(--text-muted); margin-top: 0.35rem; }
.dsh-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.dsh-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.35rem; display: flex; flex-direction: column; gap: 0.9rem; }
.dsh-card-wide { grid-column: 1 / -1; }
.dsh-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.dsh-card-head h2 { font-size: 1.1rem; font-weight: 700; }
.dsh-card-head p, .dsh-muted { color: var(--text-muted); font-size: 0.9rem; }
.dsh-bots { display: grid; gap: 0.6rem; }
.dsh-bot { display: flex; align-items: center; gap: 0.9rem; padding: 0.8rem 0.9rem; min-height: 56px; border: 1px solid var(--border-light); border-radius: var(--radius); background: var(--bg-elevated); color: var(--text); text-decoration: none; transition: border-color 0.15s ease, transform 0.15s ease; }
.dsh-bot:hover { border-color: var(--accent); transform: translateY(-1px); color: var(--text); }
.dsh-bot-logo { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #0f0f0f; flex: 0 0 auto; }
.dsh-bot-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.dsh-bot-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dsh-bot-main small { color: var(--text-dim); }
.dsh-empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; border: 1px dashed var(--border-light); border-radius: var(--radius); }
.dsh-empty p { color: var(--text-muted); max-width: 52ch; }
.dsh-kv { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; font-size: 0.95rem; }
.dsh-kv dt { color: var(--text-dim); }
.dsh-kv dd { font-weight: 600; }
.dsh-subs { display: grid; gap: 0.4rem; font-size: 0.88rem; }
.dsh-subs li { display: flex; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; padding: 0.5rem 0; border-top: 1px solid var(--border); color: var(--text-muted); }
.dsh-subs small { color: var(--text-dim); margin-left: 0.3rem; }
.dsh-billing-btn { align-self: flex-start; }
.dsh-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.dsh-stats div { background: var(--bg-elevated); border-radius: var(--radius); padding: 0.9rem; text-align: center; }
.dsh-stats span { display: block; font-size: 1.6rem; font-weight: 800; }
.dsh-stats small { color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; }
.dsh-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.dsh .btn-sm { min-height: 40px; }
@media (max-width: 760px) {
  .dsh-grid { grid-template-columns: 1fr; }
  .dsh-card-head { flex-direction: column; }
}

/* Small phones: keep the header from overlapping (logo mark stays, wordmark hides). */
@media (max-width: 400px) {
  .site-header .logo-text { display: none; }
}

/* Explainer video on /ai-assistant */
.aa-video { max-width: 960px; margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-light); box-shadow: 0 30px 80px -30px rgba(249, 115, 22, 0.45); background: #000; }
.aa-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }

/* The hidden attribute must win over component display rules (bot page sections toggled by script). */
[hidden] { display: none !important; }
