:root {
  color-scheme: light;
  --bg: #fffafc;
  --surface: rgba(255,255,255,.86);
  --surface-solid: #ffffff;
  --surface-soft: #fff1f7;
  --surface-muted: #f8f3f6;
  --text: #191217;
  --text-soft: #746a70;
  --text-faint: #9a8f95;
  --border: rgba(57, 31, 47, .11);
  --border-strong: rgba(236, 72, 153, .24);
  --pink: #ec4899;
  --pink-strong: #db2777;
  --pink-soft: #fce7f3;
  --success: #16a34a;
  --danger: #dc2626;
  --shadow-sm: 0 10px 35px rgba(83, 30, 58, .08);
  --shadow-lg: 0 28px 90px rgba(92, 34, 65, .15);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --page: 1180px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #100b0f;
  --surface: rgba(27, 19, 25, .88);
  --surface-solid: #1b1319;
  --surface-soft: #28121f;
  --surface-muted: #21181e;
  --text: #fff7fb;
  --text-soft: #c5b7c0;
  --text-faint: #8f818a;
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(244, 114, 182, .27);
  --pink: #f472b6;
  --pink-strong: #ec4899;
  --pink-soft: rgba(236, 72, 153, .13);
  --shadow-sm: 0 14px 40px rgba(0, 0, 0, .24);
  --shadow-lg: 0 30px 100px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--pink-soft); color: var(--pink-strong); }

.ambient {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .18;
  pointer-events: none;
  z-index: -1;
}
.ambient-one { background: #f472b6; top: -180px; right: -120px; }
.ambient-two { background: #f9a8d4; bottom: 10%; left: -220px; opacity: .1; }

.page-width { width: min(var(--page), calc(100% - 40px)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--page), calc(100% - 40px));
  margin: 18px auto 0;
  padding: 12px 14px 12px 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-solid) 82%, transparent);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.03em; }
.brand img { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.text-link { padding: 8px 10px; color: var(--text-soft); font-size: 14px; font-weight: 650; }
.text-link:hover { color: var(--text); }
.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: var(--surface-solid);
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: .2s ease;
}
.icon-button:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.icon-button svg { width: 18px; height: 18px; }

.button {
  min-height: 46px;
  border-radius: 13px;
  padding: 0 18px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 750;
  font-size: 14px;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { opacity: .5; cursor: not-allowed; }
.button svg { width: 18px; height: 18px; }
.button.compact { min-height: 40px; padding-inline: 14px; font-size: 13px; }
.button-primary { background: linear-gradient(135deg, var(--pink), var(--pink-strong)); color: white; box-shadow: 0 12px 24px rgba(236, 72, 153, .22); }
.button-primary:hover:not(:disabled) { box-shadow: 0 16px 32px rgba(236, 72, 153, .3); }
.button-secondary { background: var(--surface-solid); color: var(--text); border-color: var(--border); }
.button-secondary:hover:not(:disabled) { border-color: var(--border-strong); }
.button-ghost { background: transparent; color: var(--pink-strong); border-color: var(--border-strong); }
.button-white { background: white; color: #4c1732; }
.full-width { width: 100%; }

.hero {
  min-height: 760px;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 70px;
  padding-block: 100px 80px;
}
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--pink-strong); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .13em; }
.eyebrow span { width: 24px; height: 2px; border-radius: 999px; background: currentColor; }
.eyebrow.light { color: #ffe3f2; }
.hero h1, .section-heading h2, .cta-section h2 { margin: 18px 0 20px; font-size: clamp(48px, 6vw, 78px); line-height: .98; letter-spacing: -.065em; }
.hero h1 em { color: var(--pink); font-style: normal; }
.hero-copy > p { max-width: 620px; margin: 0; color: var(--text-soft); font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; color: var(--text-soft); font-size: 13px; font-weight: 650; }
.proof-item { display: inline-flex; align-items: center; gap: 7px; }
.proof-item svg { width: 16px; height: 16px; color: var(--pink); }
.hero-visual { position: relative; }
.glass-card { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); backdrop-filter: blur(20px); }
.preview-window { border-radius: 24px; overflow: hidden; transform: rotate(1.5deg); }
.preview-topbar { height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid var(--border); color: var(--text-soft); font-size: 12px; }
.preview-topbar svg { width: 18px; }
.window-dots { display: flex; gap: 6px; }
.window-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.discord-message { display: flex; gap: 12px; padding: 28px 22px 34px; background: color-mix(in srgb, var(--surface-solid) 70%, transparent); }
.discord-message > img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.message-content { min-width: 0; flex: 1; }
.message-author { font-size: 14px; font-weight: 800; }
.message-author small { color: var(--text-faint); font-weight: 500; }
.bot-tag { margin: 0 4px; padding: 2px 4px; border-radius: 4px; background: var(--pink); color: white; font-size: 9px; }
.discord-embed { border-left: 4px solid var(--pink); border-radius: 4px 10px 10px 4px; background: var(--surface-muted); margin-top: 8px; padding: 16px; }
.embed-title { font-weight: 850; }
.discord-embed p { margin: 4px 0 14px; color: var(--text-soft); font-size: 13px; }
.embed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.embed-grid div { display: grid; }
.embed-grid strong { font-size: 12px; }
.embed-grid span { color: var(--text-soft); font-size: 11px; }
.embed-footer { margin-top: 18px; color: var(--text-faint); font-size: 10px; }
.discord-buttons { display: flex; gap: 8px; margin-top: 10px; }
.discord-buttons span { min-height: 34px; padding: 0 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-muted); display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 750; }
.discord-buttons svg { width: 14px; }
.floating-pill { position: absolute; display: flex; align-items: center; gap: 8px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-solid); box-shadow: var(--shadow-sm); font-size: 12px; font-weight: 800; }
.floating-pill svg { width: 16px; color: var(--pink); }
.pill-role { right: -18px; top: 45px; }
.pill-secure { left: -28px; bottom: 45px; }

.logo-strip { padding: 22px 28px; border-block: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--text-faint); font-size: 13px; }
.logo-strip div { display: flex; flex-wrap: wrap; gap: 34px; color: var(--text-soft); letter-spacing: -.02em; }
.section { padding-block: 120px; }
.section-heading { max-width: 720px; margin-bottom: 44px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading h2, .cta-section h2 { font-size: clamp(38px, 5vw, 58px); }
.section-heading p { color: var(--text-soft); font-size: 17px; margin: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature-card { position: relative; overflow: hidden; min-height: 300px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-solid); box-shadow: var(--shadow-sm); }
.feature-card::after { content: ""; position: absolute; width: 180px; height: 180px; right: -90px; bottom: -100px; border-radius: 50%; background: var(--pink-soft); filter: blur(10px); }
.feature-large { grid-row: span 2; min-height: 618px; }
.feature-wide { grid-column: span 2; display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; }
.feature-icon { width: 50px; height: 50px; border-radius: 15px; background: var(--pink-soft); color: var(--pink-strong); display: grid; place-items: center; }
.feature-icon svg { width: 22px; }
.feature-card h3 { position: relative; z-index: 1; margin: 22px 0 8px; font-size: 22px; letter-spacing: -.03em; }
.feature-card p { position: relative; z-index: 1; margin: 0; color: var(--text-soft); }
.mini-form { position: absolute; left: 28px; right: 28px; bottom: 28px; z-index: 1; padding: 20px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface-muted); display: grid; gap: 9px; transform: rotate(-1deg); }
.mini-form label { display: flex; justify-content: space-between; font-size: 11px; font-weight: 800; }
.mini-form label span { color: var(--pink-strong); }
.mini-form div { padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-solid); color: var(--text-soft); font-size: 12px; }
.config-preview { display: grid; gap: 10px; position: relative; z-index: 1; }
.config-preview span { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-muted); font-size: 13px; font-weight: 750; }
.config-preview svg { width: 17px; color: var(--pink); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.steps article { position: relative; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-solid); }
.steps article > span { position: absolute; top: 18px; right: 20px; color: var(--text-faint); font-size: 12px; font-weight: 800; }
.steps svg { width: 24px; color: var(--pink); }
.steps h3 { margin: 32px 0 8px; font-size: 18px; }
.steps p { margin: 0; color: var(--text-soft); font-size: 14px; }
.cta-section { margin-bottom: 110px; padding: 54px; border-radius: 30px; background: radial-gradient(circle at top right, #f9a8d4, transparent 30%), linear-gradient(135deg, #be185d, #ec4899); color: white; display: flex; align-items: center; justify-content: space-between; gap: 30px; box-shadow: 0 30px 80px rgba(190, 24, 93, .28); }
.cta-section h2 { margin-bottom: 12px; }
.cta-section p { margin: 0; color: #ffe4f1; }
.site-footer { border-top: 1px solid var(--border); background: var(--surface-solid); }
.site-footer > div { min-height: 160px; display: grid; grid-template-columns: 1fr 2fr auto; align-items: center; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand img { width: 38px; height: 38px; border-radius: 12px; object-fit: cover; }
.footer-brand div { display: grid; }
.footer-brand span, .footer-copy { color: var(--text-soft); font-size: 12px; }
.footer-copy { text-align: center; }
.footer-copy p { margin: 4px 0; }
.site-footer a { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 750; }
.site-footer a svg { width: 15px; }

.dashboard-shell { min-height: 100vh; background: var(--bg); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 258px; z-index: 50; padding: 22px 16px 18px; border-right: 1px solid var(--border); background: var(--surface-solid); display: flex; flex-direction: column; }
.sidebar-brand { padding: 4px 8px 24px; }
.sidebar-label { padding: 16px 10px 8px; color: var(--text-faint); font-size: 10px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.sidebar-nav { display: grid; gap: 5px; }
.sidebar-nav button, .sidebar-nav a, .sidebar-theme { min-height: 42px; padding: 0 11px; border: 0; border-radius: 11px; background: transparent; color: var(--text-soft); display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; cursor: pointer; text-align: left; }
.sidebar-nav button:hover, .sidebar-nav a:hover, .sidebar-theme:hover, .sidebar-nav button.active { background: var(--surface-soft); color: var(--pink-strong); }
.sidebar-nav svg, .sidebar-theme svg { width: 18px; height: 18px; }
.sidebar-nav small { margin-left: auto; color: var(--text-faint); font-size: 9px; text-transform: uppercase; }
.sidebar-nav a svg:last-child { margin-left: auto; width: 14px; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 10px; }
.sidebar-theme { width: 100%; }
.user-card { padding: 10px; border: 1px solid var(--border); border-radius: 14px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 9px; }
.user-card img, .avatar-skeleton { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-muted); object-fit: cover; }
.user-card div { min-width: 0; display: grid; }
.user-card strong, .user-card span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-card strong { font-size: 12px; }
.user-card span { color: var(--text-faint); font-size: 10px; }
.user-card button { width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--text-faint); }
.user-card button:hover { background: var(--surface-soft); color: var(--pink-strong); }
.user-card button svg { width: 15px; }
.dashboard-main { margin-left: 258px; min-height: 100vh; }
.dashboard-topbar { min-height: 88px; padding: 18px 34px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface-solid) 82%, transparent); backdrop-filter: blur(16px); display: flex; align-items: center; gap: 18px; position: sticky; top: 0; z-index: 30; }
.dashboard-kicker { color: var(--text-faint); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.dashboard-topbar h1 { margin: 1px 0 0; font-size: 23px; letter-spacing: -.04em; }
.dashboard-top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.status-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid rgba(34,197,94,.18); border-radius: 999px; background: rgba(34,197,94,.08); color: var(--success); font-size: 11px; font-weight: 800; }
.status-chip svg { width: 14px; }
.mobile-sidebar-toggle { display: none; }
.dashboard-content { width: min(980px, calc(100% - 48px)); margin: 0 auto; padding: 46px 0 90px; }
.dashboard-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.dashboard-intro h2 { margin: 0 0 6px; font-size: 28px; letter-spacing: -.04em; }
.dashboard-intro p { margin: 0; color: var(--text-soft); }
.progress-badge { min-width: 112px; padding: 13px 15px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-solid); display: grid; text-align: right; }
.progress-badge span { color: var(--pink-strong); font-size: 19px; font-weight: 900; }
.progress-badge small { color: var(--text-faint); font-size: 10px; }
.setup-card { margin-top: 16px; padding: 24px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface-solid); box-shadow: var(--shadow-sm); }
.setup-card-heading { display: grid; grid-template-columns: 38px 1fr auto; gap: 13px; align-items: center; margin-bottom: 20px; }
.setup-card-heading > svg { color: var(--text-faint); width: 21px; }
.step-number { width: 38px; height: 38px; border-radius: 12px; background: var(--pink-soft); color: var(--pink-strong); display: grid; place-items: center; font-size: 13px; font-weight: 900; }
.setup-card h3 { margin: 0; font-size: 17px; }
.setup-card-heading p { margin: 1px 0 0; color: var(--text-soft); font-size: 12px; }
.server-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.server-card { min-height: 76px; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-muted); display: flex; align-items: center; gap: 11px; cursor: pointer; text-align: left; transition: .2s ease; }
.server-card:hover, .server-card.active { border-color: var(--border-strong); background: var(--surface-soft); transform: translateY(-1px); }
.server-card img, .server-fallback { width: 42px; height: 42px; border-radius: 13px; object-fit: cover; background: linear-gradient(135deg, var(--pink), var(--pink-strong)); color: white; display: grid; place-items: center; font-weight: 850; }
.server-card div { min-width: 0; display: grid; }
.server-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.server-card span { color: var(--text-faint); font-size: 10px; }
.server-card > svg { margin-left: auto; width: 17px; color: var(--pink); opacity: 0; }
.server-card.active > svg { opacity: 1; }
.loading-card { min-height: 76px; padding: 14px; border: 1px solid var(--border); border-radius: 14px; display: grid; gap: 8px; }
.loading-card span { height: 13px; border-radius: 999px; background: linear-gradient(90deg, var(--surface-muted), var(--surface-soft), var(--surface-muted)); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
.loading-card span:last-child { width: 55%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty-state { padding: 34px; text-align: center; color: var(--text-soft); }
.empty-state svg { width: 28px; color: var(--text-faint); }
.empty-state h4 { margin: 10px 0 4px; color: var(--text); }
.empty-state p { margin: 0; font-size: 13px; }
.authorization-state { min-height: 88px; padding: 15px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface-muted); display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; }
.auth-illustration { width: 44px; height: 44px; border-radius: 13px; background: var(--surface-solid); display: grid; place-items: center; color: var(--pink); }
.auth-illustration svg { width: 21px; }
.authorization-state h4 { margin: 0; font-size: 13px; }
.authorization-state p { margin: 2px 0 0; color: var(--text-soft); font-size: 11px; }
fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
fieldset:disabled { opacity: .58; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-group { display: grid; gap: 8px; }
.field-group > span, .question-heading span { font-size: 12px; font-weight: 800; }
.field-group b, .question-heading b { margin-left: 5px; color: var(--pink-strong); font-size: 9px; text-transform: uppercase; }
.field-group small, .question-heading small { color: var(--text-faint); font-size: 10px; }
.select-wrap { min-height: 45px; padding: 0 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-muted); display: grid; grid-template-columns: 18px 1fr 15px; gap: 8px; align-items: center; }
.select-wrap:focus-within { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft); }
.select-wrap svg { width: 16px; color: var(--text-faint); }
.select-wrap select { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); appearance: none; font-size: 12px; }
.question-editor { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.question-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.question-heading > div { display: grid; }
#question-list { display: grid; gap: 9px; margin-top: 12px; }
.question-row { display: grid; grid-template-columns: 1fr 36px; gap: 8px; }
.question-row input { min-height: 43px; padding: 0 12px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-muted); color: var(--text); outline: 0; }
.question-row input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft); }
.question-row button { border: 1px solid var(--border); border-radius: 10px; background: var(--surface-muted); display: grid; place-items: center; cursor: pointer; color: var(--text-faint); }
.question-row button:hover { color: var(--danger); border-color: rgba(220,38,38,.22); }
.question-row svg { width: 16px; }
.form-actions { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.form-actions > div:last-child { display: flex; gap: 9px; }
.save-status { display: flex; align-items: center; gap: 8px; color: var(--text-soft); font-size: 11px; }
.save-status svg { width: 15px; }

.membership-dialog { width: min(440px, calc(100% - 30px)); padding: 0; border: 1px solid var(--border); border-radius: 24px; background: var(--surface-solid); color: var(--text); box-shadow: var(--shadow-lg); }
.membership-dialog::backdrop { background: rgba(21, 11, 17, .62); backdrop-filter: blur(8px); }
.membership-dialog form { position: relative; padding: 34px; text-align: center; }
.dialog-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 10px; background: var(--surface-muted); display: grid; place-items: center; cursor: pointer; }
.dialog-close svg { width: 17px; }
.dialog-icon { width: 60px; height: 60px; margin: 0 auto 20px; border-radius: 18px; background: var(--pink-soft); color: var(--pink-strong); display: grid; place-items: center; }
.dialog-icon svg { width: 26px; }
.membership-dialog h2 { margin: 12px 0 8px; font-size: 28px; letter-spacing: -.045em; }
.membership-dialog p { margin: 0; color: var(--text-soft); font-size: 14px; }
.invite-input { margin: 22px 0 12px; min-height: 48px; padding: 0 7px 0 12px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-muted); display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: center; }
.invite-input svg { width: 16px; color: var(--text-faint); }
.invite-input input { min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 12px; }
.invite-input a { padding: 8px 11px; border-radius: 9px; background: var(--pink-soft); color: var(--pink-strong); font-size: 11px; font-weight: 850; }
.membership-dialog small { display: block; margin-top: 11px; color: var(--text-faint); font-size: 10px; }
.toast-container { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: grid; gap: 9px; }
.toast { min-width: 280px; max-width: 380px; padding: 13px 15px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-solid); box-shadow: var(--shadow-lg); display: flex; align-items: flex-start; gap: 10px; animation: toast-in .25s ease; }
.toast svg { width: 17px; margin-top: 2px; color: var(--pink); }
.toast strong { display: block; font-size: 12px; }
.toast span { display: block; color: var(--text-soft); font-size: 11px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--pink) 45%, transparent); outline-offset: 2px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 82px; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-inline: auto; }
  .hero-actions, .hero-proof { justify-content: center; }
  .hero-visual { max-width: 620px; margin-inline: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .sidebar { transform: translateX(-100%); transition: .25s ease; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: translateX(0); }
  .dashboard-main { margin-left: 0; }
  .mobile-sidebar-toggle { width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-solid); display: grid; place-items: center; }
  .mobile-sidebar-toggle svg { width: 18px; }
}

@media (max-width: 720px) {
  .page-width, .site-header { width: min(100% - 24px, var(--page)); }
  .site-header { margin-top: 10px; }
  .desktop-only { display: none; }
  .header-actions .button span { display: none; }
  .hero { padding-block: 72px 60px; gap: 50px; }
  .hero h1 { font-size: 50px; }
  .logo-strip { align-items: flex-start; flex-direction: column; }
  .logo-strip div { gap: 18px; }
  .section { padding-block: 80px; }
  .feature-grid, .feature-wide { grid-template-columns: 1fr; }
  .feature-wide { grid-column: auto; }
  .feature-large { min-height: 560px; }
  .steps { grid-template-columns: 1fr; }
  .cta-section { margin-bottom: 70px; padding: 34px; align-items: flex-start; flex-direction: column; }
  .site-footer > div { padding-block: 34px; grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; }
  .dashboard-topbar { padding-inline: 18px; }
  .status-chip { display: none; }
  .dashboard-content { width: min(100% - 24px, 980px); padding-top: 28px; }
  .dashboard-intro { align-items: flex-start; }
  .progress-badge { display: none; }
  .setup-card { padding: 18px; }
  .server-grid, .form-grid { grid-template-columns: 1fr; }
  .authorization-state { grid-template-columns: 42px 1fr; }
  .authorization-state .button { grid-column: span 2; width: 100%; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .form-actions > div:last-child { flex-direction: column-reverse; }
  .form-actions .button { width: 100%; }
  .membership-dialog form { padding: 30px 22px 24px; }
}

/* Dashboard overview and management sections */
.dashboard-content-wide { width: min(1320px, calc(100% - 48px)); }
.overview-intro strong { color: var(--text); }
.compact-filter { min-width: 160px; display: grid; gap: 6px; }
.compact-filter span { color: var(--text-faint); font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.compact-filter select, .chart-heading select { min-height: 40px; padding: 0 34px 0 12px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-solid); color: var(--text); font-size: 12px; font-weight: 700; }
.dashboard-block { margin-top: 20px; }
.block-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.block-heading h3 { margin: 0; font-size: 17px; }
.block-heading p { margin: 3px 0 0; color: var(--text-soft); font-size: 12px; }
.block-heading > svg { width: 21px; color: var(--text-faint); }
.active-server-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.active-server-card { min-width: 0; padding: 13px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface-muted); display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 11px; }
.active-server-card.selected { border-color: var(--border-strong); background: var(--surface-soft); }
.active-server-card img, .active-server-card .server-fallback { width: 42px; height: 42px; }
.active-server-card > div { min-width: 0; display: grid; }
.active-server-card strong, .active-server-card span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.active-server-card strong { font-size: 12px; }
.active-server-card span { color: var(--text-faint); font-size: 10px; }
.active-server-card .button { min-height: 36px; padding-inline: 11px; }
.compact-empty { padding: 20px; }

.metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.metric-card { position: relative; min-height: 150px; padding: 18px; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--surface-solid); box-shadow: var(--shadow-sm); display: grid; align-content: start; gap: 4px; cursor: pointer; text-align: left; transition: .2s ease; }
.metric-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.metric-card > span { max-width: 78%; color: var(--text-soft); font-size: 11px; font-weight: 750; }
.metric-card > strong { margin-top: 5px; font-size: 32px; line-height: 1; letter-spacing: -.05em; }
.metric-card > small { margin-top: 9px; color: var(--text-faint); font-size: 9px; }
.metric-card > small.trend-up { color: var(--success); }
.metric-card > small.trend-down { color: var(--danger); }
.metric-card > svg { position: absolute; right: 15px; top: 15px; width: 20px; color: var(--pink); }

.chart-grid { display: grid; grid-template-columns: minmax(320px, .72fr) minmax(0, 1.28fr); gap: 16px; margin-top: 4px; }
.chart-card { min-width: 0; }
.chart-heading { align-items: center; }
.chart-card canvas { width: 100%; display: block; }
.donut-layout { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(130px, .72fr); align-items: center; gap: 10px; }
.chart-legend { display: grid; gap: 12px; }
.chart-legend div { padding-bottom: 10px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 11px; }
.chart-legend div:last-child { border-bottom: 0; }
.chart-legend span { display: inline-flex; align-items: center; gap: 8px; color: var(--text-soft); }
.chart-legend b { width: 9px; height: 9px; border-radius: 50%; }
.chart-legend strong { font-size: 13px; }
.series-key { display: flex; justify-content: center; gap: 18px; margin-top: 8px; color: var(--text-soft); font-size: 10px; }
.series-key span { display: inline-flex; align-items: center; gap: 6px; }
.series-key b { width: 10px; height: 10px; border-radius: 3px; background: var(--pink); }
.series-key .series-interviewed { background: var(--text-faint); }

.table-heading { align-items: center; }
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; min-width: 780px; border-collapse: collapse; font-size: 11px; }
.data-table th { padding: 11px 12px; border-bottom: 1px solid var(--border); color: var(--text-faint); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 13px 12px; border-bottom: 1px solid var(--border); color: var(--text-soft); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--surface-muted); }
.data-table td strong { display: block; color: var(--text); font-size: 11px; }
.data-table td small { display: block; color: var(--text-faint); font-size: 9px; }
.details-cell { min-width: 240px; max-width: 420px; white-space: normal; }
.member-name { color: var(--text); font-weight: 700; }
.status-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; font-size: 9px; font-weight: 850; }
.status-pending { background: var(--pink-soft); color: var(--pink-strong); }
.status-approved { background: rgba(34, 197, 94, .11); color: var(--success); }
.status-declined { background: rgba(220, 38, 38, .1); color: var(--danger); }
.event-label { display: inline-flex; padding: 5px 8px; border-radius: 7px; background: var(--surface-muted); color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }
.action-menu { position: relative; }
.action-menu summary { width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-solid); display: grid; place-items: center; cursor: pointer; list-style: none; }
.action-menu summary::-webkit-details-marker { display: none; }
.action-menu summary svg { width: 15px; }
.action-menu > div { position: absolute; z-index: 12; right: 0; top: 36px; min-width: 150px; padding: 6px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-solid); box-shadow: var(--shadow-lg); }
.action-menu a, .action-menu > div > span { min-height: 34px; padding: 0 9px; border-radius: 7px; display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.action-menu a:hover { background: var(--surface-soft); color: var(--pink-strong); }
.action-menu a svg { width: 14px; }
.form-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .active-server-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart-grid { grid-template-columns: 1fr; }
}

@media (max-width: 840px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .active-server-grid, .form-grid-three, .form-grid-four { grid-template-columns: 1fr; }
  .donut-layout { grid-template-columns: 1fr; }
  .chart-legend { grid-template-columns: repeat(3, 1fr); }
  .chart-legend div { border-bottom: 0; padding: 10px; border: 1px solid var(--border); border-radius: 10px; }
}

@media (max-width: 560px) {
  .overview-intro { flex-direction: column; }
  .compact-filter { width: 100%; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 126px; }
  .active-server-card { grid-template-columns: 42px 1fr; }
  .active-server-card .button { grid-column: span 2; width: 100%; }
  .chart-legend { grid-template-columns: 1fr; }
  .dashboard-content-wide { width: min(100% - 24px, 1320px); }
}
