:root {
  --bg-1: #0e1320;  /* page bg */
  --bg-2: #152039;  /* card bg */
  --text: #e9eef7;  /* headings/body */
  --muted: #c0c7d6; /* paragraph text */
  --accent: #d4b44c;/* gold */
  --link: #8fd3ff;  /* soft blue link */
  --maxw: 900px;
  --radius: 18px;
  --shadow: 0 20px 45px rgba(0, 0, 0, .35);
}

html, body { height: 100% }
body {
  margin: 0;
  font-family: ui-sans-serif, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg-1);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.field a { 
  color: var(--link);
  text-decoration: none;
}
.field a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 64px auto 96px; padding: 0 20px; }

header.site { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
/* NOTE: original theme sets .brand color to --bg-1 (almost invisible on dark bg).
   We'll override it in the page tweaks below. */
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .3px; color: var(--bg-1); }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, #bbff2f, #78a61b); }
.back-link { font-size: .95rem }

.card { background: var(--bg-2); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(20px, 3.5vw, 36px); }
h1 { margin: 0 0 8px; font-size: clamp(1.6rem, 3.6vw, 2.2rem); text-align: center; }
.sub { text-align: center; color: var(--muted); margin: 0 0 24px; font-size: .98rem; }

.section { display: grid; gap: 18px; }
h2 { margin: 12px 0 0; font-size: clamp(1.05rem, 2.2vw, 1.25rem); border-left: 4px solid var(--accent); padding-left: 10px; }

.form-grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.form-grid.full { grid-template-columns: 1fr; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: grid; gap: 8px; }
.label { color: var(--muted); font-size: .92rem; }
.input, .select, .textarea {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 12px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--link); box-shadow: 0 0 0 3px rgba(143,211,255,.18); }

.hint { color: var(--muted); font-size: .85rem; }

.row-split { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .row-split { grid-template-columns: 1fr; } }

.switch {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  padding: 10px 12px; border-radius: 999px;
}
.switch input { display: none; }
.pill { width: 36px; height: 20px; border-radius: 999px; background: #3a4663; position: relative; transition: background .2s ease; }
.knob { width: 16px; height: 16px; border-radius: 50%; background: #e9eef7; position: absolute; top: 2px; left: 2px; transition: transform .2s ease; }
.switch input:checked + .pill { background: #0ea5e9; }
.switch input:checked + .pill .knob { transform: translateX(16px); }

.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: flex-end; margin-top: 8px; }

.btn { appearance: none; border: 1px solid rgba(255,255,255,.18); color: var(--text); background: linear-gradient(90deg, #1a2a44, #0f1c2e, #1a2a44); padding: 10px 14px; border-radius: 12px; cursor: pointer; font-weight: 600; }
.btn:hover { filter: brightness(1.05); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn.primary { border-color: #e0c56a; box-shadow: inset 0 0 0 1px rgba(212,180,76,.25); }
.btn.danger { border-color: rgba(255,120,120,.4); background: linear-gradient(90deg, #452527, #341b1d); }

.divider { height: 1px; background: rgba(255,255,255,.08); margin: 14px 0 8px; }
.meta-line { color: var(--muted); font-size: .9rem; display: flex; gap: 10px; align-items: center; }

.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: var(--muted); border-radius: 999px; padding: 6px 10px; font-size: .85rem; }

.toast { position: fixed; right: 18px; bottom: 18px; background: #18233f; color: var(--text); border: 1px solid rgba(255,255,255,.12); padding: 12px 14px; border-radius: 12px; box-shadow: var(--shadow); opacity: 0; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

.danger-box { background: rgba(255,80,80,.06); border: 1px solid rgba(255,80,80,.25); padding: 14px; border-radius: 12px; }
.good-box {
  background: rgba(120, 255, 180, 0.06);  
  border: 1px solid rgba(120, 255, 180, 0.25);
  padding: 14px;
  border-radius: 12px;
}


.inline-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(180, 255, 180, .08);
  border: 1px solid rgba(120, 220, 120, .35);
  padding: 4px 8px;
  border-radius: 999px;
  font-size: .82rem;
  color: #b6f3c1
}

.bot-list { display: grid; gap: 12px; margin-top: 6px }
.bot-card {
  display: grid;
  gap: 8px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  padding: 12px
}
.bot-head { display: flex; align-items: center; justify-content: space-between; gap: 10px }

.badge {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: .78rem;
  border: 1px solid rgba(255, 255, 255, .18);
  color: var(--muted)
}
.badge.paid { border-color: #e0c56a; color: #e0c56a }

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

details.params summary { cursor: pointer; color: var(--link) }

.sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px }
@media (max-width:720px) { .sub-grid { grid-template-columns: 1fr } }

.bot-title {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 8px;
  row-gap: 8px;
  line-height: 1.25;
}
@media (max-width: 640px) {
  .bot-title { row-gap: 10px; }
  .bot-title .badge { padding-block: 4px; }
}

/* =========================
   PAGE TWEAKS — scoped
   ========================= */
.about-page header.site .brand { color: var(--text); }      /* fix contrast */
.about-page header.site .back-link { color: var(--link); text-decoration: none; }
.about-page header.site .back-link:hover { text-decoration: underline; }

/* subline under H1 */
.about-page article[aria-labelledby="why-title"] .sub {
  max-width: 720px;
  margin-inline: auto;
}

/* intra-section spacing */
.about-page article[aria-labelledby="why-title"] .section + .section { margin-top: 10px; }

/* nicer hover on cards */
.about-page .bot-card {
  transition: border-color .2s ease, background .2s ease, transform .15s ease;
}
.about-page .bot-card:hover {
  border-color: rgba(212,180,76,.28);
  background: rgba(255,255,255,.06);
  transform: translateY(-1px);
}

/* details polish + hide default markers */
.about-page details.params {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 10px 12px;
}
.about-page details.params + details.params { margin-top: 10px; }
.about-page details.params summary { list-style: none; font-weight: 600; }
.about-page details.params summary::-webkit-details-marker { display: none; }
.about-page details.params summary::marker { content: ""; }
.about-page details.params[open] { box-shadow: inset 0 0 0 1px rgba(143,211,255,.12); }

/* CTA row */
.about-page .actions { justify-content: center; }
.about-page .actions .btn { min-width: 180px; text-align: center; }
@media (min-width: 720px) { .about-page .actions { justify-content: flex-end; } }

/* meta-line chips */
.about-page .meta-line { gap: 8px; flex-wrap: wrap; }
.about-page .meta-line .tag { border-color: rgba(255,255,255,.16); }

/* mobile comfort */
@media (max-width: 420px) {
  .about-page h1 { line-height: 1.15; }
  .about-page .sub { font-size: .96rem; }
}

/* focus styles */
.about-page .bot-card:focus-within,
.about-page details.params:focus-within {
  outline: 2px solid rgba(143,211,255,.35);
  outline-offset: 2px;
  border-color: rgba(143,211,255,.35);
}