/* Connexia — shared site styles */

:root {
  /* App palette (lib/ui/theme/app_colors.dart) */
  --bg: #0b0c10; /* background */
  --bg2: #12141a; /* surface */
  --panel: #12141a; /* surface */
  --panel2: #151821; /* card */
  --panel3: #1a1e29; /* cardHover */
  --elevated: #1d212c; /* elevated */
  --border: #242833; /* border */
  --border2: #333947; /* borderStrong */
  --text: #eceef2; /* textPrimary */
  --muted: #a6acb8; /* textSecondary */
  --faint: #6c7280; /* textFaint */
  --accent: #3ddc97; /* accent (muted teal) */
  --accent-strong: #69e4b0; /* accentHover */
  --accent-soft: rgba(61,220,151,.18);
  --accent-border: rgba(61,220,151,.34);
  --green: #3ddc97;
  --amber: #f5b841;
  --red: #f0645c;
  --info: #5b9df7;
  --term-bg: #0d0e12;
  --term-chrome: #14161d;
  --radius: 8px;
  --font: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --mono: ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;
  --nav-h: 60px;
  --maxw: 1120px;
  /* Aliases for the dashboard shell rules (Flutter naming) */
  --surface: var(--bg2);
  --surfaceAlt: var(--elevated);
  --card: var(--panel2);
  --textPrimary: var(--text);
  --textSecondary: var(--muted);
  --borderStrong: var(--border2);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent-soft);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

button {
  font-family: inherit;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.muted {
  color: var(--muted);
}

code,
kbd {
  font-family: var(--mono);
  font-size: .9em;
}

code {
  background: var(--panel2);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 6px;
}

h1,
h2,
h3,
h4 {
  line-height: 1.25;
  letter-spacing: -.02em;
  font-weight: 700;
}

.section {
  padding: 72px 0;
}

.section-head {
  max-width: 680px;
  margin-bottom: 40px;
}

.section-head .eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.section-head h2 {
  font-size: 32px;
  margin: 10px 0 12px;
}

.section-head p {
  color: var(--muted);
  font-size: 16px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s,border-color .15s,color .15s,transform .05s;
}

.btn:active {
  transform: translateY(1px);
}

.btn.primary {
  background: var(--accent);
  color: #0b0d12;
}

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

.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border2);
}

.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn.outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn.outline:hover {
  background: var(--accent-soft);
}

.btn.lg {
  padding: 12px 24px;
  font-size: 15px;
}

.btn.block {
  width: 100%;
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background .2s ease,border-color .2s ease,backdrop-filter .2s ease;
}

.nav.scrolled {
  background: rgba(11,12,16,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .2px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #151821;
  border: 1px solid var(--line);
  color: var(--accent);
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
}

.nav-links a {
  padding: 7px 13px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color .15s,background .15s;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--panel2);
}

.nav-links a.active {
  color: var(--text);
  background: var(--panel2);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border2);
  border-radius: 7px;
  color: var(--text);
  padding: 7px;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  padding: calc(var(--nav-h) + 64px) 0 56px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 480px at 78% -10%,rgba(61,220,151,.13),transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  align-items: center;
  position: relative;
}

.hero .lead {
  color: var(--muted);
  font-size: 17px;
  margin: 18px 0 26px;
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.platform-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.pbadge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 5px 11px;
  border-radius: 99px;
}

.pbadge svg {
  width: 13px;
  height: 13px;
}

.hero-stats {
  display: flex;
  gap: 26px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.hero-stats .num {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.hero-stats .lbl {
  font-size: 12px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ---------- App window mockups ---------- */

.appwin {
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: 10px;
  box-shadow: 0 24px 70px -22px rgba(0,0,0,.75);
  overflow: hidden;
}

.appwin-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}

.appwin-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
}

.appwin-brand .mark {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: #151821;
  border: 1px solid var(--line);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
}

.appwin-title {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--faint);
  font-family: var(--mono);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.appwin-title .ok {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.appwin-body {
  display: flex;
  min-height: 0;
}

/* Sidebar — mirrors Sidebar/_NavButton (height 38, radius 8); slightly scaled for the web column */

.sidebar {
  width: 200px;
  flex: none;
  background: var(--panel);
  border-right: 1px solid var(--border);
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.sidebar .si {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
  border: 1px solid transparent;
  flex: none;
}

.sidebar .si svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--muted);
}

.sidebar .si.on {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--text);
  font-weight: 600;
}

.sidebar .si.on svg {
  color: var(--accent);
}

.sidebar .div {
  height: 1px;
  background: var(--border);
  margin: 6px 4px;
}

.sidebar .sg {
  font-size: 10px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 10px 9px 4px;
}

.appwin-main {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

/* Toolbar */

.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
  color: var(--faint);
}

.search svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--faint);
}

.hbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #06251a;
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  flex: none;
}

.hbtn svg {
  width: 14px;
  height: 14px;
}

/* Host cards — mirrors the host tile grid on Hosts */

.hcards {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(130px,1fr));
  gap: 9px;
}

.hcard {
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.hcard.on {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.hcard .top {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.hcard .hdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}

.hcard .hdot.off {
  background: var(--faint);
}

.hcard .hname {
  font-weight: 600;
  font-size: 12.5px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hcard .huser {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hcard .hmeta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.hcard .grp {
  color: var(--muted);
  font-size: 10px;
  border: 1px solid var(--border2);
  border-radius: 4px;
  padding: 1px 6px;
  background: var(--bg2);
}

.hcard .hstat {
  margin-left: auto;
  font-size: 10px;
  color: var(--green);
}

.hcard .hstat.off {
  color: var(--faint);
}

/* Generic list rows */

.rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 12.5px;
}

.row.on {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.row .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}

.row .dot.online {
  background: var(--green);
}

.row .dot.off {
  background: var(--faint);
}

.row .ic {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--accent);
}

.row .nm {
  font-weight: 600;
  font-size: 12.5px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row .ip {
  margin-left: auto;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  white-space: nowrap;
}

.row .grp {
  color: var(--muted);
  font-size: 10px;
  border: 1px solid var(--border2);
  border-radius: 4px;
  padding: 1px 6px;
  background: var(--bg2);
}

.row .st {
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
}

/* Terminal — chrome #14161D, background #0D0E12 */

.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  background: var(--term-chrome);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  padding: 7px 8px 0;
}

.tab {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  background: var(--term-chrome);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 7px 7px 0 0;
  padding: 6px 12px;
}

.tab.on {
  color: var(--text);
  background: var(--term-bg);
  border-color: var(--border2);
}

.tab .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}

.tab .dot.gray {
  background: var(--faint);
}

.term {
  background: var(--term-bg);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  flex: 1;
  min-height: 200px;
  overflow: hidden;
}

.term .c {
  color: var(--accent);
}

.term .p {
  color: var(--green);
}

.term .d {
  color: var(--faint);
}

.term .w {
  color: var(--amber);
}

/* SFTP split — mirrors SftpScreen (left groups/hosts picker, right file browser) */

.split {
  display: flex;
  gap: 10px;
  flex: 1;
  min-height: 0;
}

.split-left {
  width: 150px;
  flex: none;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.split-left .sg {
  font-size: 10px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 6px 8px 3px;
}

.split-left .si {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  padding: 6px 8px;
  border-radius: 6px;
}

.split-left .si svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--muted);
}

.split-left .si.on {
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 600;
}

.split-left .si.on svg {
  color: var(--accent);
}

.split-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.pathbar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 7px 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
}

.pathbar svg {
  width: 14px;
  height: 14px;
  color: var(--faint);
}

.filelist {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px;
  flex: 1;
  min-height: 0;
}

.file {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  padding: 6px 9px;
  border-radius: 6px;
}

.file svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--faint);
}

.file:hover {
  background: var(--panel2);
}

.file .sz {
  margin-left: auto;
  color: var(--faint);
  font-size: 11px;
}

.file.folder {
  color: var(--text);
}

.file.folder svg {
  color: var(--amber);
}

.winlabel {
  font-size: 11px;
  color: var(--faint);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 2px;
}

/* ---------- Feature rows ---------- */

.feat-row {
  display: grid;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.feat-row:first-of-type {
  border-top: none;
}

.feat-copy h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.feat-copy p {
  color: var(--muted);
  margin-bottom: 14px;
}

.feat-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.feat-benefits li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}

.feat-benefits svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--green);
  margin-top: 3px;
}

.feat-use {
  margin-top: 14px;
  font-size: 13px;
  color: var(--faint);
  font-family: var(--mono);
}

.feat-vis .appwin {
  margin: 0;
}

/* ---------- Showcase tabs ---------- */

.showcase {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}

.showcase-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.showcase-tabs button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 7px;
  padding: 7px 15px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}

.showcase-tabs button:hover {
  color: var(--text);
}

.showcase-tabs button.on {
  background: var(--accent);
  color: #0b0d12;
  border-color: var(--accent);
}

.showcase-panel {
  display: none;
  animation: fadeIn .25s ease;
}

.showcase-panel.on {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Comparison table ---------- */

.cmp-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cmp {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.cmp th,
.cmp td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.cmp thead th {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  border-bottom: 1px solid var(--border2);
}

.cmp td.feat {
  color: var(--muted);
}

.cmp td.connexia {
  color: var(--text);
  font-weight: 600;
}

.cmp .check {
  color: var(--green);
}

.cmp .cross {
  color: var(--faint);
}

.cmp tbody tr:hover {
  background: var(--panel2);
}

.cmp .col-conn {
  background: var(--accent-soft);
}

/* ---------- Download cards ---------- */

.dl-grid {
  display: grid;
  gap: 14px;
}

.dl-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dl-card .plat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
}

.dl-card .plat svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.dl-card .ver {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}

.dl-card .note {
  font-size: 12.5px;
  color: var(--muted);
}

.dl-card .btn {
  margin-top: 10px;
}

.btn.disabled {
  opacity: .4;
  pointer-events: none;
  cursor: default;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  margin-top: 40px;
  background: var(--bg2);
}

.footer-slim {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted);
  transition: color .15s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  font-size: 12.5px;
  color: var(--faint);
}

/* ---------- Auth split ---------- */

.auth-brand {
  display: none;
  flex-direction: column;
  justify-content: center;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  padding: 64px 56px;
}

.auth-brand .brand {
  font-size: 20px;
}

.auth-brand h1 {
  font-size: 30px;
  line-height: 36px;
  margin: 26px 0 14px;
  letter-spacing: -.02em;
}

.auth-brand p {
  color: var(--muted);
  max-width: 400px;
}

.auth-brand ul {
  list-style: none;
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.auth-brand li {
  display: flex;
  gap: 11px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text);
}

.auth-brand li svg {
  width: 17px;
  height: 17px;
  color: var(--green);
  flex: none;
  margin-top: 3px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 40px 24px;
}

.auth-form h2 {
  font-size: 24px;
  margin-bottom: 6px;
}

.auth-form .sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 7px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.field input {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border2);
  color: var(--text);
  border-radius: var(--radius);
  padding: 11px 13px;
  font-size: 14px;
  font-family: var(--mono);
  transition: border-color .15s,box-shadow .15s;
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.auth-msg {
  margin-top: 14px;
  font-size: 13px;
  display: none;
}

.auth-msg.err {
  color: var(--red);
  display: block;
}

.auth-msg.ok {
  color: var(--green);
  display: block;
}

.auth-alt {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--muted);
}

.auth-alt a {
  color: var(--accent);
}

.auth-alt a:hover {
  text-decoration: underline;
}

.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.auth-row a {
  font-size: 13px;
  color: var(--accent);
}

.auth-row a:hover {
  text-decoration: underline;
}

/* ---------- Docs ---------- */

.doc-wrap {
  max-width: 860px;
  margin: 0 auto;
}

.doc-wrap h2 {
  font-size: 24px;
  margin: 44px 0 12px;
}

.doc-wrap h2:first-child {
  margin-top: 0;
}

.doc-wrap p {
  color: var(--muted);
  margin-bottom: 12px;
}

.doc-wrap ul {
  margin: 0 0 14px 20px;
  color: var(--muted);
}

.doc-wrap li {
  margin-bottom: 6px;
}

.doc-wrap pre {
  background: #08090c;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 18px;
}

.doc-wrap pre code {
  background: none;
  border: none;
  padding: 0;
}

.doc-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin: 0 0 20px;
}

.doc-wrap th,
.doc-wrap td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.doc-wrap th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.toc {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 32px;
  font-size: 13.5px;
}

.toc a {
  display: block;
  color: var(--muted);
  padding: 4px 0;
}

.toc a:hover {
  color: var(--accent);
}

/* ---------- Shared badges and buttons ---------- */

.btn.danger {
  background: transparent;
  color: var(--red);
  border-color: rgba(240,100,92,.4);
}

.btn.danger:hover {
  background: rgba(240,100,92,.12);
}

.pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
}

.pill.ok {
  background: rgba(61,220,151,.15);
  color: var(--green);
}

.pill.no {
  background: rgba(240,100,92,.15);
  color: var(--red);
}

.pill.admin {
  background: rgba(61,220,151,.15);
  color: var(--green);
}

/* ---------- Responsive ---------- */

@media (max-width:960px) {
  .hero h1 {
    font-size: 36px;
  }
}

@media (max-width:560px) {
  .hero {
    padding-top: calc(var(--nav-h) + 40px);
  }
}

/* Desktop-only legacy header rules */

@media (min-width:960px) {
  .menu-btn {
    display: none !important;
  }

  .nav-links,
  .nav-actions {
    display: flex;
  }
}

/* ---------- Auth pages (login / register) ---------- */
/* One column on small screens; brand panel + form side by side from 1024px. */
.auth {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  min-height: 100vh;
}

.auth-row label {
  margin: 0;
}

.auth-note {
  font-size: 13px;
  margin-bottom: 8px;
}

@media (min-width: 640px) {
  .auth-form {
    padding-left: 48px;
    padding-right: 48px;
  }
}

@media (min-width: 1024px) {
  .auth {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-brand {
    display: flex;
  }

  .auth-form {
    max-width: 520px;
    margin-left: 0;
    margin-right: 0;
    padding-left: 56px;
    padding-right: 56px;
  }
}
