@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* { scrollbar-width: thin; scrollbar-color: var(--border-strong, #35353d) var(--bg-raised, #16161a); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-raised, #16161a); }
::-webkit-scrollbar-thumb { background: var(--border-strong, #35353d); border-radius: 999px; border: 2px solid var(--bg-raised, #16161a); }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong, #35353d); }
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500&display=swap');

:root {
  --accent: #f5ea51;
  --accent-dim: #d8ce3f;
  --accent-ink: #1a1704;
  --bg: #0c0c0e;
  --bg-raised: #131316;
  --bg-card: #17171b;
  --bg-hover: #1a1a1f;
  --border: #26262c;
  --border-strong: #35353d;
  --text: #ededf0;
  --text-dim: #9a9aa4;
  --text-faint: #6a6a74;
  --red: #f2555a;
  --red-dim: #3a1a1c;
  --green: #4ade80;
  --green-dim: #123322;
  --radius: 10px;
  --radius-lg: 16px;
  --max-width: 1180px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

button, input, select, textarea { font-family: var(--font); }

html {
  overflow-x: hidden;
  overflow-y: visible;
}
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: visible;
}
.site-footer { margin-top: auto; }

img { max-width: 100%; }

a { color: inherit; text-decoration: none; }
.link-accent { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; transition: color 0.15s ease; }
.link-accent:hover { color: var(--accent-dim); }

.masked-link { color: var(--text); text-decoration: none; transition: color 0.18s ease; }
.masked-link:hover { color: var(--accent); }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; margin: 0 0 0.5em; }
p { margin: 0 0 1em; color: var(--text-dim); }
code, .mono { font-family: var(--mono); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  padding: 11px 20px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-dim); }

.btn-secondary { background: var(--bg-card); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--bg-hover); }

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

.btn-danger { background: var(--red-dim); color: var(--red); border-color: #4a2224; }
.btn-danger:hover { background: #4a2224; }

.unlink-btn:hover { background: var(--bg-raised); }

.btn-block { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 13px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-hover);
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.badge-accent { background: rgba(245, 234, 81, 0.12); color: var(--accent); border-color: rgba(245, 234, 81, 0.3); }

.plus-lock-emoji { width: 18px; height: 18px; display: block; opacity: 0.9; transition: opacity 0.15s ease, transform 0.15s ease; }
.rogoid-tooltip { display: inline-flex; }
.rogoid-tooltip:hover .plus-lock-emoji { opacity: 1; transform: scale(1.1); }

.api-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  align-items: center;
}

#api .api-showcase { align-items: start; }

.api-steps { display: flex; flex-direction: column; gap: 4px; }
.api-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.api-step:last-of-type { border-bottom: none; }
.api-step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--mono);
}
.api-step-body h3 { font-size: 15px; margin: 1px 0 5px; }
.api-step-body p { font-size: 13.5px; margin: 0; }
.api-steps-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

.code-window {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px -22px rgba(0, 0, 0, 0.75);
}
.code-window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
}
.code-window-file {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.code-window-body {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--text-dim);
  background: var(--bg-card);
  transition: height 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.code-window-body .c-dim { color: var(--text-faint); }
.code-window-body .c-key { color: var(--text); }
.code-window-body .c-str { color: var(--accent); }
.code-window-body .c-accent { color: var(--accent); }

@media (max-width: 980px) {
  .api-showcase { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

.settings-section-title {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-faint);
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.settings-section-note {
  margin-top: -8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-faint);
}

.label-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: 5px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.rogoid-tooltip:hover .label-hint { color: var(--accent); border-color: var(--accent); }

.rogoid-tooltip-bubble {
  position: fixed;
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  white-space: normal;
  max-width: 240px;
  width: max-content;
  padding: 7px 11px;
  border-radius: 7px;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
  transform: translateY(4px);
  z-index: 1000;
}
.rogoid-tooltip-bubble.rogoid-tooltip-bubble-below { transform: translateY(-4px); }
.rogoid-tooltip-bubble.rogoid-tooltip-bubble-visible {
  opacity: 1;
  transform: translateY(0);
}
.rogoid-tooltip-bubble-icon { width: 13px; height: 13px; vertical-align: -2px; margin-right: 5px; }
.badge-red { 
  background: var(--bg-hover);
  color: var(--text-dim);
  border: 1px solid var(--border);
 }
 
.badge-green { 
  background: var(--bg-hover);
  color: var(--text-dim);
  border: 1px solid var(--border);
 }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.verify-card { padding: 36px 40px; }
@media (max-width: 480px) {
  .verify-card { padding: 26px 22px; }
}

.topnav {
  border-bottom: 1px solid var(--border);
  background: rgba(12, 12, 14, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 18px;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: (#ffffff);
  color: (#ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
}
.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 40px;
  margin-right: auto;
}
.nav-links a { color: var(--text-dim); font-weight: 500; font-size: 14px; position: relative; transition: color 0.18s ease; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
  padding: 14px 20px 20px;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 10px 0;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.mobile-menu a:last-child { border-bottom: none; }

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.16s ease, border-color 0.16s ease;
}
.user-chip:hover { color: var(--accent); border-color: var(--accent); }
.user-chip img { width: 26px; height: 26px; border-radius: 50%; }

.hero {
  padding: 90px 0 70px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(32px, 6vw, 58px);
  max-width: 820px;
  line-height: 1.08;
}
.hero .lede {
  font-size: 18px;
  max-width: 560px;
  color: var(--text-dim);
}
.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: 48px;
  align-items: center;
}
.hero-grid .hero-copy h1 { max-width: 560px; }
.hero-grid .hero-copy .lede { max-width: 500px; }

.hero-preview { position: relative; perspective: 1600px; }
.hero-preview-window {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 34px 80px -24px rgba(0, 0, 0, 0.8);
  width: calc(100% + 220px);
  transform: rotateY(-10deg) rotateX(3deg);
  transform-origin: left center;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-preview-window:hover { transform: rotateY(-3deg) rotateX(0deg); }

.hero-preview-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 13px;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
}
.hero-preview-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); flex-shrink: 0; }
.hero-preview-url {
  margin-left: 10px;
  padding: 3px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text-faint);
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-preview-window img { display: block; width: 100%; height: auto; }

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-grid .hero-copy h1,
  .hero-grid .hero-copy .lede { max-width: 720px; }
  .hero-preview { perspective: none; }
  .hero-preview-window { width: 100%; transform: none; }
  .hero-preview-window:hover { transform: none; }
}


.section { padding: 64px 0; border-top: 1px solid var(--border); }
.section-head { max-width: 620px; margin-bottom: 40px; }
.eyebrow { color: var(--accent); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.section-head h2 { font-size: clamp(24px, 4vw, 34px); margin-top: 10px; }

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.22s ease, background 0.22s ease;
}
.feature-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(245, 234, 81, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 19px; height: 19px; }
.feature-card h3 { font-size: 16px; margin-bottom: 6px; }
.feature-card p { font-size: 14px; margin: 0; }

.feature-explorer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  gap: 44px;
  align-items: start;
}
.feature-list { display: flex; flex-direction: column; }
.feature-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  padding: 22px 6px;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.feature-list .feature-row:last-child { border-bottom: 1px solid var(--border); }
.feature-row-index {
  flex-shrink: 0;
  width: 26px;
  padding-top: 2px;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-faint);
  transition: color 0.18s ease;
}
.feature-row-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.feature-row-title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text-dim);
  transition: color 0.18s ease;
}
.feature-row-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-faint);
  height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transition: height 0.3s ease, opacity 0.22s ease, margin-top 0.3s ease;
}
.feature-row:hover .feature-row-title { color: var(--text); }
.feature-row.active .feature-row-index,
.feature-row.active .feature-row-title { color: var(--accent); }
.feature-row.active .feature-row-desc { height: var(--desc-max-height, 44px); opacity: 1; margin-top: 8px; }

.feature-visual {
  position: sticky;
  top: 110px;
  min-height: 220px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 28px;
  overflow: hidden;
}
@keyframes featurePreviewIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.feature-preview-entering { animation: featurePreviewIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.feature-preview-caption {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-faint);
  margin-bottom: 18px;
}
.feature-preview-msg { display: flex; gap: 14px; padding: 7px 0; }
.discord-container-yellow { --c: #f5ea51; }

.feature-preview-chart { display: flex; flex-direction: column; gap: 6px; }
.feature-preview-chart svg { width: 100%; height: auto; display: block; }
.feature-preview-chart .chart-legend { margin-top: 6px; gap: 14px; }
.feature-preview-chart .chart-legend-item { font-size: 12px; }

.feature-preview-alt-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature-preview-alt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg-raised);
}
.feature-preview-alt-header .cell-user img { width: 30px; height: 30px; }
.feature-preview-alt-header .cell-user { min-width: 0; }
.feature-preview-alt-header .badge { flex-shrink: 0; white-space: nowrap; }
.feature-preview-alt-name { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feature-preview-alt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  font-size: 13.5px;
}
.feature-preview-alt-row .cell-user img { width: 24px; height: 24px; }

.feature-preview-nick-change {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
}
.feature-preview-nick-old { color: var(--text-faint); text-decoration: line-through; }
.feature-preview-nick-arrow { width: 15px; height: 15px; color: var(--text-faint); flex-shrink: 0; }
.feature-preview-nick-new { color: #4ade80; }

.feature-preview-privacy-row {
  position: relative;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--border-strong);
}
.feature-preview-privacy-row-accent { border-left-color: var(--accent); }
.feature-preview-privacy-row + .feature-preview-privacy-row { margin-top: 18px; }
.feature-preview-privacy-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.feature-preview-privacy-sub { font-size: 12.5px; color: var(--text-faint); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .feature-explorer { grid-template-columns: 1fr; gap: 8px; }
  .feature-visual { display: none; }
}

.plus-feature-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--border);
}
.plus-feature-row:last-child { border-bottom: none; }
.plus-feature-row .feature-icon { margin-bottom: 0; flex-shrink: 0; }
.plus-feature-row h3 { font-size: 15px; margin-bottom: 4px; }
.plus-feature-row p { font-size: 13.5px; margin: 0; }

.cta-banner {
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  padding: 48px 32px;
  text-align: center;
}
.cta-banner h2 { margin-bottom: 10px; }

.band-yellow {
  background: var(--accent);
  padding: 80px 0;
}
.band-yellow p { margin-top: 10px; margin-bottom: 0; }

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--text-faint);
  font-size: 13px;
  background: var(--bg);
  position: relative;
}
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px 24px; }
.footer-brand { flex: 1 1 220px; min-width: 200px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; min-width: 120px; }
.footer-col-title { color: var(--text-dim); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 3px; }
.footer-col a { color: var(--text-faint); transition: color 0.16s ease; }
.footer-col a:hover { color: var(--text); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--text); }

.legal-page { padding-top: 56px; padding-bottom: 90px; max-width: 760px; margin: 0 auto; }
.legal-page h1 { margin-bottom: 6px; }
.legal-page .updated { color: var(--text-faint); font-size: 13px; margin-bottom: 40px; }
.legal-page h2 { font-size: 19px; margin-top: 36px; }
.legal-page ul { color: var(--text-dim); padding-left: 20px; }
.legal-page li { margin-bottom: 8px; }

.auth-callback-page {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  padding: 20px;
}
.spinner {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 3px solid var(--border-strong);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.app-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}
.sidebar {
  width: 250px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: var(--bg-raised);
  padding: 20px 14px;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}
.sidebar-section { margin-bottom: 22px; }
.sidebar-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); padding: 0 10px; margin-bottom: 8px; }
.sidebar-link {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--text-dim);
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 2px;
  transform: translateX(0);
  transition: color 0.16s ease, transform 0.16s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--bg-hover);
  opacity: 0;
  transition: opacity 0.16s ease;
  pointer-events: none;
  z-index: -1;
}
.sidebar-link:hover:not(.active)::before { opacity: 1; }
.sidebar-link:hover:not(.active) { color: var(--text); }
.sidebar-link.active { color: var(--accent); }
.sidebar-link-locked, .sidebar-link.sidebar-link-locked:hover { cursor: not-allowed; color: var(--text-faint); background: none; user-select: none; }
.sidebar-link.sidebar-link-locked:hover::before { opacity: 0; }

.sidebar-link-indicator {
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(245, 234, 81, 0.1);
  border-radius: 8px;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), width 0.28s cubic-bezier(0.4, 0, 0.2, 1), height 0.24s ease;
}
.sidebar-link-indicator[hidden] { display: none; }
.sidebar-server {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.sidebar-server img { width: 32px; height: 32px; border-radius: 8px; }
.sidebar-server-name { font-size: 13.5px; font-weight: 600; }
.sidebar-server-sub { font-size: 11.5px; color: var(--text-faint); }

.sidebar-search-wrap { position: relative; }
.sidebar-search-wrap.open #sidebarSearch,
.sidebar-search-wrap.open input {
  border-color: var(--border-strong);
  background: var(--bg-hover);
  border-radius: 8px 8px 0 0;
}
.sidebar-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 40;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-top-width: 0;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 16px 34px -12px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  max-height: 320px;
  overflow-y: auto;
}
.sidebar-search-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  cursor: pointer;
}
.sidebar-search-result:last-child { border-bottom: none; }
.sidebar-search-result:hover, .sidebar-search-result.active { background: var(--bg-hover); }
.sidebar-search-result-locked { color: var(--text-faint); cursor: default; }
.sidebar-search-result-locked:hover { background: none; }
.sidebar-search-result-lock-icon { width: 15px; height: 15px; flex-shrink: 0; opacity: 0.85; }
.sidebar-search-group {
  padding: 8px 12px 4px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  background: var(--bg-raised);
}

.main-content {
  flex: 1;
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 32px;
  transition: opacity 0.12s ease;
}
.main-content-inner.rogoid-page-fade { opacity: 0; transform: translateY(6px); }

.rogoid-nav-loading .main-content-inner { pointer-events: none; }
.main-content-inner { transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.4, 0, 0.2, 1); }
.main-content-inner { max-width: none; }

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.page-head h1 { font-size: 34px; margin: 0; }
.page-head p { margin: 16px 0 0; }

.mobile-topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
  position: sticky;
  top: 0;
  z-index: 40;
}

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.stat-card .label { font-size: 12.5px; color: var(--text-faint); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.stat-card .value { font-size: 28px; font-weight: 800; margin-top: 6px; }
.stat-card .sub { font-size: 12.5px; color: var(--text-faint); margin-top: 4px; }
.stat-card-locked { opacity: 0.4; filter: grayscale(0.3); cursor: not-allowed; user-select: none; }
.stat-card.rogoid-tooltip { display: block; }

.server-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.server-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.server-card-head { display: flex; align-items: center; gap: 12px; }
.server-card-head img {
  width: 44px; height: 44px; border-radius: 12px; background: var(--bg-hover); object-fit: cover;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.server-card.uninstalled img { filter: grayscale(1); opacity: 0.55; }
.server-card-name { font-weight: 700; font-size: 15px; }
.server-card-head img.plus-badge {
  width: 18px; height: 18px; margin-left: 6px;
  background: none; border-radius: 0; object-fit: contain;
  vertical-align: middle;
}
.server-card-status { font-size: 12.5px; color: var(--text-faint); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }

.activity-list {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
}
.activity-row {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr 1fr 1fr 1.3fr;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  min-width: 720px;
  transition: background 0.14s ease;
}
.activity-row:last-child { border-bottom: none; }
.activity-row:not(.activity-head):hover { background: var(--bg-hover); }
.activity-row[hidden] { display: none; }
.activity-row.row-suspended { border: 1px dashed var(--red); border-radius: 0; }
.activity-head {
  color: var(--text-faint);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bg-raised);
}
.activity-status-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.server-toggle-list {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.server-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  transition: background 0.14s ease;
}
.server-toggle-row:last-child { border-bottom: none; }
.server-toggle-row:hover { background: var(--bg-hover); }
.server-toggle-row form { display: flex; align-items: center; }

table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; vertical-align: middle; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 13.5px; white-space: nowrap; }
th { color: var(--text-faint); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; background: var(--bg-raised); }
tr:last-child td { border-bottom: none; }
tbody tr { transition: background 0.14s ease; }
tbody tr:hover { background: var(--bg-hover); }
.cell-user { display: flex; align-items: center; gap: 10px; }
.cell-user img { width: 28px; height: 28px; border-radius: 50%; }
.cell-user > div { line-height: 1.3; }

.form-grid { display: grid; gap: 20px; max-width: 560px; }
.color-field { display: flex; align-items: center; gap: 10px; }
.color-field input[type=text] { font-family: var(--mono); text-transform: uppercase; }

.swatch-picker { position: relative; flex-shrink: 0; }
.swatch-trigger {
  width: 42px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  cursor: pointer;
}
.swatch-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  transform-origin: top left;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: min(220px, calc(100vw - 48px));
}
.swatch-picker.open .swatch-popover {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.swatch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.swatch-option {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  padding: 0;
  transition: border-color 0.14s ease;
}
.swatch-option.selected { outline: 2px solid var(--text); outline-offset: 1px; }
.swatch-custom { background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); }

.swatch-custom-panel {
  margin-top: 10px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.22s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.18s ease, margin-top 0.22s ease;
}
.swatch-custom-panel.open { max-height: 200px; opacity: 1; }
.hs-field { position: relative; width: 200px; height: 120px; border-radius: 7px; overflow: hidden; cursor: crosshair; }
.hs-canvas { display: block; width: 100%; height: 100%; }
.hs-cursor {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hue-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 200px;
  height: 10px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(to right, red, yellow, lime, cyan, blue, magenta, red);
  cursor: pointer;
}
.hue-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--bg-card);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}
.hue-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--bg-card);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plus-card { max-width: 640px; margin: 0 auto; }
.plus-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.plus-card-name { font-size: 19px; margin: 0; }
.plus-price { font-size: 22px; font-weight: 700; }
.plus-price span { font-size: 13px; font-weight: 500; color: var(--text-faint); margin-left: 4px; }

.plus-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.plus-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.plus-checklist li:last-child { border-bottom: none; }
.plus-checklist h3 { font-size: 15px; margin: 0 0 4px; }
.plus-checklist p { font-size: 13.5px; margin: 0; }

.plus-buy {
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 24px;
}
.plus-buy-method { max-width: 220px; margin-bottom: 18px; }
.plus-buy-footnote {
  border-top: 1px solid var(--border);
  margin-top: 16px;
  padding-top: 14px;
  font-size: 12.5px;
  color: var(--text-faint);
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 600; }
.field .hint { font-size: 12.5px; color: var(--text-faint); }
input[type=text], input[type=search], input[type=number], input[type=url], select, textarea {
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: var(--font);
  width: 100%;
  transition: border-color 0.18s ease, background 0.18s ease;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--border-strong); background: var(--bg-hover); }

.custom-select { position: relative; width: 100%; }
.custom-select-native {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}
.custom-select-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.16s ease, background 0.16s ease, border-radius 0.16s ease;
}
.custom-select-trigger:hover { background: var(--bg-hover); }
.custom-select.open .custom-select-trigger { border-color: var(--border-strong); background: var(--bg-hover); border-radius: 8px 8px 0 0; }
.custom-select-label-icon:empty { display: none; }
.custom-select-label-icon { display: flex; align-items: center; flex-shrink: 0; }
.custom-select-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.custom-select-chevron {
  display: flex;
  color: var(--text-faint);
  flex-shrink: 0;
  margin-left: auto;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.role-option-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.role-option-spacer { background: transparent; }
.role-option-icon { width: 16px; height: 16px; border-radius: 4px; flex-shrink: 0; object-fit: cover; }
.role-option-emoji { display: flex; align-items: center; justify-content: center; font-size: 12px; width: 16px; height: 16px; }
.custom-select-option { display: flex; align-items: center; gap: 8px; }
.custom-select-option[hidden] { display: none; }
.custom-select-chevron svg { width: 12px; height: 12px; }
.custom-select.open .custom-select-chevron { transform: rotate(180deg); color: var(--text); }

.custom-select-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-top-width: 0;
  border-radius: 0 0 8px 8px;
  padding: 0 4px;
  max-height: 0;
  overflow: hidden;
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transform-origin: top;
  transition: max-height 0.24s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.18s ease, padding 0.24s ease, border-width 0.2s ease, border-color 0.16s ease;
}
.custom-select.open .custom-select-menu {
  max-height: 260px;
  opacity: 1;
  padding: 4px;
  border-top-width: 1px;
  border-color: var(--border-strong);
  pointer-events: auto;
}
.custom-select-options {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) var(--bg-card);
}
.custom-select-menu:has(.custom-select-search) .custom-select-options {
  border-top: 1px solid var(--border);
  padding-top: 6px;
}
.custom-select-options::-webkit-scrollbar-thumb { background: var(--border-strong); border-color: var(--bg-card); }
.custom-select-options::-webkit-scrollbar-track { background: var(--bg-card); }
.custom-select-option {
  padding: 7px 9px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.custom-select-option:hover { background: var(--bg-hover); color: var(--text); }
.custom-select-option.selected { background: var(--bg-hover); color: var(--text); font-weight: 600; }

.custom-select-search {
  flex-shrink: 0;
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 6px;
  padding: 6px 9px;
  font-size: 12.5px;
  font-family: var(--font);
  margin: 0 0 4px;
}
.custom-select-search:focus { outline: none; border-color: var(--border-strong); background: var(--bg-hover); }
.custom-select-search::placeholder { color: var(--text-faint); }
.custom-select-empty { padding: 8px 9px; font-size: 12.5px; color: var(--text-faint); }

.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.divider-before-image-control { width: fit-content; }
.toggle-row:last-child { border-bottom: none; }
.toggle-row-label { font-weight: 600; font-size: 14px; }

.welcome-dm-customize {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.welcome-dm-customize.open { max-height: 3000px; }
.welcome-dm-customize-inner { padding: 16px 0 18px; border-top: 1px solid var(--border); margin-top: 14px; }
.image-upload-field { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.image-upload-preview { position: relative; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-strong); background: var(--bg-hover); flex-shrink: 0; }
.image-upload-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-upload-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: rgba(12, 12, 14, 0.75);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.image-upload-preview:hover .image-upload-remove { opacity: 1; }
.image-upload-remove:hover { background: var(--red); }
.image-upload-btn { cursor: pointer; }
.image-upload-status { font-size: 12.5px; color: var(--text-faint); }
.switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-track { position: absolute; inset: 0; box-sizing: border-box; background: var(--bg-hover); border: 1px solid var(--border-strong); border-radius: 999px; cursor: pointer; transition: background 0.15s; }
.switch-track::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 50%; transform: translateY(-50%); background: var(--text-faint); border-radius: 50%; transition: transform 0.15s, background 0.15s; }
.switch input:checked + .switch-track { background: rgba(245, 234, 81, 0.25); border-color: var(--accent); }
.switch input:checked + .switch-track::before { transform: translate(20px, -50%); background: var(--accent); }
.switch-disabled { opacity: 0.5; cursor: not-allowed; }
.switch-disabled .switch-track { cursor: not-allowed; }

.alt-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  margin-bottom: 12px;
  overflow: hidden;
}
.alt-card-header {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
  padding: 16px 20px;
  background: none;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  color: var(--text);
  transition: background 0.14s ease;
}
.alt-card.open .alt-card-header { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.alt-card-header:hover { background: var(--bg-hover) }
.alt-card-header:disabled { cursor: not-allowed; }
.alt-card-header:disabled:hover { background: none; }
.alt-card-title-locked { color: var(--text-faint); }
.alt-card-header > *:first-child { flex: 1; min-width: 0; }
.alt-card-header .cell-user { min-width: 0; }
.alt-card-header .cell-user > *:not(img) { min-width: 0; }

.alt-card-header-stacked { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 10px; }
.alt-card-header-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; width: 100%; }
.alt-card-header-row > *:first-child { flex: 1; min-width: 0; }
.alt-card-badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.alt-card-badges .badge { font-size: 10.5px; padding: 2px 7px; }
.alt-card-title {
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.alt-card-subtitle { font-size: 13px; color: var(--text-faint); margin-top: 6px; }
.alt-card-summary { display: flex; align-items: center; gap: 8px; margin-top: 2px; flex-wrap: wrap; justify-content: flex-end; }
.alt-card-chevron {
  display: flex;
  color: var(--text-faint);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.alt-card.open .alt-card-chevron { transform: rotate(180deg); color: var(--accent); }
.alt-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.alt-card.open .alt-card-body { max-height: 3000px; }
.alt-card-body.overflow-visible { overflow: visible; }
.alt-card.overflow-visible { overflow: visible; }
.alt-card-body-inner {
  padding: 4px 20px 20px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-faint);
}
.empty-state .icon { font-size: 32px; margin-bottom: 12px; }
.empty-state h3 { color: var(--text); font-size: 16px; }

.skeleton {
  background: linear-gradient(90deg, var(--bg-hover) 25%, var(--border) 37%, var(--bg-hover) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.chart-wrap { position: relative; height: 220px; }
.chart-legend { display: flex; gap: 18px; margin-top: 14px; flex-wrap: wrap; }
.chart-legend-item { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-dim); }
.chart-legend-dot { width: 9px; height: 9px; border-radius: 50%; }
.chart-legend-item-locked { color: var(--text-faint); cursor: not-allowed; }
.chart-legend-item-locked .chart-legend-dot { opacity: 0.4; }
.chart-tooltip-row-locked, .chart-tooltip-row-locked b { color: var(--text-faint); }
.chart-tooltip-row-locked .chart-tooltip-dot { opacity: 0.4; }

.alert {
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13.5px;
  margin-bottom: 20px;
  border: 1px solid;
}
.alert-success { background: var(--green-dim); border-color: #1c4a34; color: var(--green); }
.alert-error { background: var(--red-dim); border-color: #4a2224; color: var(--red); }
.alert-info { background: rgba(245, 234, 81, 0.08); border-color: rgba(245, 234, 81, 0.3); color: var(--accent); }

.tab-strip { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 24px; overflow-x: auto; }
.tab-strip a { padding: 10px 4px; margin-right: 20px; font-size: 14px; font-weight: 500; color: var(--text-faint); border-bottom: 2px solid transparent; white-space: nowrap; transition: color 0.16s ease, border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
.tab-strip a:hover { color: var(--text); }
.tab-strip a.active { color: var(--text); border-color: var(--accent); }

.avatar-lg { width: 64px; height: 64px; border-radius: 16px; }

.status-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  padding: 20px;
}
.status-page .code { font-family: var(--mono); color: var(--accent); font-size: 14px; }
.status-page-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.confirm-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  z-index: 300;
  transition: background 0.35s ease, backdrop-filter 0.35s ease, -webkit-backdrop-filter 0.35s ease;
}
.confirm-backdrop.confirm-in {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.confirm-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 100%);
  width: calc(100% - 40px);
  max-width: 420px;
  margin-bottom: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 30px 70px -16px rgba(0, 0, 0, 0.6);
  z-index: 301;
  opacity: 0;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}
.confirm-sheet.confirm-in { opacity: 1; transform: translate(-50%, 0); }
.confirm-message { color: var(--text); font-size: 15px; margin: 0 0 18px; }
.confirm-actions { display: flex; gap: 10px; justify-content: flex-end; }

.approval-preview-thumb { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; cursor: zoom-in; border: 1px solid var(--border-strong); transition: transform 0.15s ease, border-color 0.15s ease; }
.approval-preview-thumb:hover { transform: scale(1.08); border-color: var(--accent); }

.vpn-off-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
  max-height: 200px;
  opacity: 1;
  transition: opacity 0.25s ease, max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease, border-width 0.3s ease;
}
.vpn-off-alert[hidden] { display: none; }
.vpn-off-alert.vpn-off-alert-dismissing {
  opacity: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
  border-width: 0;
}

.verify-preview {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  aspect-ratio: 1920 / 604;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background-color: #0c0c0e;
  transition: background-color 0.35s ease;
}
.verify-preview-bg-layer {
  position: absolute;
  inset: 0;
  background-size: 140%;
  background-position: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.verify-preview-bg-layer.active { opacity: 1; }
.verify-preview-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.15); pointer-events: none; }
.verify-preview-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(340px, 32%);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.verify-preview-heading { font-size: 15px; font-weight: 700; margin-bottom: 8px; text-align: center; }
.verify-preview-text { font-size: 11.5px; line-height: 1.5; color: var(--text-dim); margin-bottom: 12px; text-align: center; }
.verify-preview-btn { width: 100%; font-size: 12.5px; padding: 9px 14px; cursor: default; }
.verify-preview-avatar {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 4px auto 12px;
  border: 2px solid var(--accent);
  object-fit: cover;
}
.verify-preview-note { font-size: 10.5px; line-height: 1.5; color: var(--text-faint); text-align: center; }
.verify-preview-note .link-accent { pointer-events: none; }

@media (max-width: 460px) {
  .verify-preview { min-height: 260px; }
  .verify-preview-card { max-width: min(540px, 60%); padding: 5px; }
  .verify-preview-heading { font-size: 13px; margin-bottom: 6px; }
  .verify-preview-text { font-size: 11px; margin-bottom: 10px; }
  .verify-preview-note { font-size: 9.5px; }
  .verify-preview-avatar { width: 40px; height: 40px; margin: 2px auto 10px; }
}

.image-lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
  cursor: zoom-out;
}
.image-lightbox-backdrop[hidden] { display: none; }
.image-lightbox-backdrop.image-lightbox-in {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.image-lightbox-img {
  max-width: min(90vw, 900px);
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  transform: scale(0.92);
  opacity: 0;
  cursor: default;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.image-lightbox-backdrop.image-lightbox-in .image-lightbox-img {
  transform: scale(1);
  opacity: 1;
}

.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  max-width: calc(100vw - 40px);
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 12px 16px;
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.5);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 360px;
}
.toast-in { opacity: 1; transform: translateX(0); }
.toast-out { opacity: 0; transform: translateX(16px); transition: opacity 0.18s ease, transform 0.18s ease; }
.toast-icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--text-faint);
}
.toast-loading .toast-icon { background: var(--accent); animation: toast-pulse 1s ease-in-out infinite; }
.toast-success .toast-icon { background: var(--green); }
.toast-error .toast-icon { background: var(--red); }
@keyframes toast-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.btn[disabled], .btn.btn-loading {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .server-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-add-discord { display: none; }
  .sidebar { display: none; }
  .sidebar.mobile-open {
    display: block;
    position: fixed;
    inset: 0 20% 0 0;
    z-index: 60;
    height: 100vh;
    box-shadow: 30px 0 60px rgba(0,0,0,0.5);
  }
  .main-content { padding: 20px 16px 60px; height: auto; overflow-y: visible; }
  .mobile-topbar { display: flex; margin: -20px -16px 20px; }
  .app-shell { display: block; height: auto; overflow: visible; }
  .sidebar-link-indicator { display: none !important; }
}

@media (max-width: 700px) {
  .activity-row { gap: 48px; min-width: 940px; }
  .activity-row > :nth-child(3),
  .activity-row > :nth-child(4) {
    text-align: center;
    padding-left: 22px;
  }
  .activity-row > * { min-width: 0; }
  .activity-row .cell-user > *:not(img) { min-width: 0; }
  .activity-row .cell-user .mono { white-space: nowrap; }

  .table-wrap { border: none; overflow-x: visible; }
  .table-wrap table { min-width: 0; width: 100%; }
  .table-wrap table thead { display: none; }
  .table-wrap table, .table-wrap table tbody, .table-wrap table tr { display: block; width: 100%; }
  .table-wrap table tr {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    margin-bottom: 10px;
    padding: 4px 14px;
  }
  .table-wrap table tr:last-child { margin-bottom: 0; }
  .table-wrap table td {
    display: block;
    width: 100%;
    white-space: normal;
    word-break: break-word;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
  }
  .table-wrap table td:last-child { border-bottom: none; }
  .table-wrap table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-faint);
    margin-bottom: 4px;
  }
  .table-wrap table td.cell-user { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 10px; }
  .table-wrap table td.cell-user[data-label]::before { flex-basis: 100%; margin-bottom: 0; }
  .table-wrap .cell-user .mono, .table-wrap .cell-user .copy-id-wrap { white-space: nowrap; }
}

@media (max-width: 640px) {
  .hero { padding: 48px 0 40px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .server-grid { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .footer-grid { flex-direction: column; }
  .footer-brand { flex: none; min-width: 0; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .page-head .btn { width: 100%; }
  th, td { padding: 10px 12px; font-size: 12.5px; }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .stat-grid { grid-template-columns: 1fr; }
}

.cookie-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  max-width: 380px;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.cookie-banner-hide {
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  pointer-events: none;
}
.cookie-banner span { font-size: 13px; color: var(--text-dim); }
.cookie-banner a { color: var(--text); text-decoration: underline; }
.cookie-banner .btn { flex-shrink: 0; }

@media (max-width: 480px) {
  .cookie-banner { left: 16px; right: 16px; max-width: none; flex-direction: column; align-items: stretch; text-align: center; }
}

.docs-shell {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
  max-width: var(--max-width);
  min-width: 0;
  margin: 0 auto;
  padding: 40px 20px 90px;
  box-sizing: border-box;
}
.docs-sidebar {
  position: sticky;
  top: 84px;
  flex: 0 0 240px;
  width: 240px;
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  padding-right: 8px;
}
.docs-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text-faint);
  margin-bottom: 20px;
}
.docs-search input {
  flex: 1;
  min-width: 0;
  padding: 0;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 13.5px;
  font-family: var(--font);
  line-height: 1.4;
}
.docs-search input::placeholder { color: var(--text-faint); }
.docs-search kbd {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 6px;
  flex-shrink: 0;
}
.docs-nav-group { margin-bottom: 22px; }
.docs-nav-group-title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  padding: 0 10px 6px;
}
.docs-nav-link {
  display: block;
  padding: 6px 10px 6px 13px;
  border-left: 2px solid transparent;
  font-size: 13.5px;
  color: var(--text-dim);
  transition: color 0.14s ease, border-color 0.14s ease;
}
.docs-nav-link:hover { color: var(--text); }
.docs-nav-link.active { color: var(--accent); font-weight: 600; border-left-color: var(--accent); }
.docs-nav-empty { font-size: 13px; color: var(--text-faint); padding: 8px 10px; }

.docs-content { flex: 1; min-width: 0; max-width: 760px; }
.docs-content .updated { margin-bottom: 32px; }
.docs-content section { margin-bottom: 48px; scroll-margin-top: 90px; }
.docs-content section:last-child { margin-bottom: 0; }
.docs-endpoint-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  background: var(--green-dim);
  border-radius: 6px;
  padding: 3px 8px;
  margin-right: 8px;
  vertical-align: middle;
}

@media (max-width: 860px) {
  .docs-shell { flex-direction: column; }
  .docs-sidebar { position: static; width: 100%; max-height: none; }
  .docs-content { width: 100%; }
}

.cmd-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  margin: 40px 0 14px;
}
.cmd-group-title:first-child { margin-top: 0; }
.cmd-perm-hint {
  font-size: 11px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-faint);
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 9px;
}
.cmd-list {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cmd-row { padding: 18px 20px; border-bottom: 1px solid var(--border); }
.cmd-row:last-child { border-bottom: none; }
.cmd-row-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.cmd-name {
  font-family: var(--mono);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--accent);
}
.cmd-arg { color: var(--text-faint); font-weight: 400; }
.cmd-desc { margin: 0; font-size: 13.5px; color: var(--text-dim); }

.copy-id-wrap { display: inline-flex; align-items: center; gap: 4px; }
.copy-id-btn {
  background: none;
  border: none;
  padding: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
}
.copy-id-btn:hover { color: var(--text); background: var(--bg-hover); }

.chart-hover-line {
  position: absolute;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}
.chart-tooltip {
  position: absolute;
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  min-width: 130px;
  z-index: 5;
}
.chart-tooltip-date { color: var(--text-faint); font-size: 11px; margin-bottom: 5px; font-weight: 600; }
.chart-tooltip-today { color: var(--accent); }
.chart-tooltip-row { display: flex; align-items: center; gap: 6px; color: var(--text-dim); line-height: 1.6; }
.chart-tooltip-row b { color: var(--text); font-weight: 700; }
.chart-tooltip-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

.range-switch { position: relative; display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; }
.range-switch-thumb {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  background: var(--accent);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), width 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
  pointer-events: none;
}
.range-switch a,
.range-switch button {
  position: relative;
  z-index: 1;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  background: none;
  border: none;
  font-family: var(--font);
  cursor: pointer;
  transition: color 0.15s ease;
}
.range-switch a:hover,
.range-switch button:hover { color: var(--text); }
.range-switch a.active:hover,
.range-switch button.active:hover { color: var(--accent-ink); }
.range-switch a.active,
.range-switch button.active { color: var(--accent-ink); }
.range-switch a + a,
.range-switch button + button { border-left: 1px solid var(--border-strong); }
.range-switch a.active,
.range-switch button.active,
.range-switch a.active + a,
.range-switch button.active + button { border-left-color: transparent; }

.api-showcase.live-log-showcase { align-items: start; }
.live-log-copy .eyebrow { display: block; margin-bottom: 10px; }
.live-log-copy h2 { font-size: clamp(24px, 4vw, 34px); margin: 0 0 14px; }
.live-log-copy p { font-size: 15px; max-width: 460px; }
.live-log-copy p:last-child { margin-bottom: 0; }

.discord-preview {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px -22px rgba(0, 0, 0, 0.75);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.discord-preview.discord-preview-in { opacity: 1; transform: translateY(0); }

.discord-preview-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 18px;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
}
.discord-preview-hash { color: var(--text-faint); font-size: 19px; font-weight: 800; line-height: 1; }
.discord-preview-channel { font-weight: 700; font-size: 15px; color: var(--text); }
.discord-preview-topic-sep { width: 1px; height: 18px; background: var(--border-strong); margin: 0 2px; flex-shrink: 0; }
.discord-preview-topic {
  font-size: 12.5px;
  color: var(--text-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.discord-preview-messages { background: var(--bg); padding: 12px 0 16px; }

.dcp {
  background: #323339;
  border-radius: var(--radius);
  padding: 8px;
  max-width: 640px;
  font-family: "gg sans", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}
.dcp-msg-header { display: none; }
.dcp-card {
  position: relative;
  background: #36393f;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.24);
  padding: 16px;
  margin: 0;
  max-width: 100%;
}
.dcp-card-accent {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
  background: #f5ea51;
}
.dcp-card-body { display: flex; flex-direction: column; }

.dcp-content-block { display: flex; align-items: flex-start; gap: 16px; }
.dcp-text { flex: 1; min-width: 0; font-size: 14px; line-height: 1.375; color: #dcddde; white-space: pre-wrap; word-wrap: break-word; }
.dcp-text:empty::before { content: '\A0'; }
.dcp-text h1 { font-size: 22px; font-weight: 700; color: #fff; margin: 0 0 8px; line-height: 1.3; }
.dcp-text strong { color: #dcddde; font-weight: 700; }
.dcp-text code { background: #2e2f33; padding: 1px 4px; border-radius: 3px; font-family: Consolas, monospace; font-size: 13.5px; }
.dcp-text a { color: #00a8fc; text-decoration: none; }
.dcp-thumb { width: 80px; height: 80px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }

.dcp-divider { height: 1px; background: rgba(255, 255, 255, 0.08); margin: 12px 0; flex-shrink: 0; }
.dcp-image { width: 100%; border-radius: 8px; display: block; max-height: 260px; object-fit: cover; }

.dcp-buttons { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.dcp-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 14px; border-radius: 4px; border: none;
  font-size: 13px; font-weight: 500; line-height: 1; color: #fff; cursor: pointer;
  font-family: inherit; transition: background 0.12s ease;
}
.dcp-btn.dcp-style-secondary { background: #4f545c; color: #fff; }
.dcp-btn.dcp-style-secondary:hover { background: #6d6f78; }
.dcp-btn.dcp-style-primary { background: #5865f2; }
.dcp-btn.dcp-style-primary:hover { background: #4752c4; }
.dcp-btn.dcp-style-success { background: #248046; }
.dcp-btn.dcp-style-success:hover { background: #1a6334; }
.dcp-btn.dcp-style-danger { background: #da373c; }
.dcp-btn.dcp-style-danger:hover { background: #a12828; }
.dcp-btn.dcp-style-link { background: #4f545c; color: #fff; }
.dcp-btn.dcp-style-link:hover { background: #6d6f78; }
.dcp-btn-emoji { display: inline-flex; align-items: center; line-height: 1; }
.dcp-btn-emoji img { width: 16px; height: 16px; vertical-align: middle; }
.dcp-btn-link-icon { width: 13px; height: 13px; }

.discord-msg {
  display: flex;
  gap: 14px;
  padding: 7px 18px;
  transition: opacity 0.42s cubic-bezier(0.16, 1, 0.3, 1), transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  transform: translateY(10px);
  transition-delay: calc(var(--i, 0) * 260ms);
}
.discord-preview-loaded .discord-msg { opacity: 1; transform: translateY(0); }
.discord-msg-avatar { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; margin-top: 2px; object-fit: cover; }
.discord-msg-body { min-width: 0; flex: 1; }
.discord-msg-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.discord-msg-author { font-weight: 600; font-size: 14.5px; color: var(--text); }
.discord-msg-time { font-size: 11px; color: var(--text-faint); }

.discord-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #5865f2;
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 2px 5px 2px 4px;
  border-radius: 4px;
  line-height: 1;
}
.discord-app-badge svg { width: 9px; height: 9px; color: #fff; }

.discord-container {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px 10px 17px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 480px;
}
.discord-container::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: 8px 0 0 8px;
  background: var(--c, var(--border-strong));
}
.discord-container strong { color: var(--text); font-weight: 700; }
.discord-container-green { --c: #4caf82; }
.discord-container-red { --c: #e5484d; }

.discord-mention {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(88, 101, 242, 0.22);
  color: #c9cdfb;
  padding: 1px 2px;
  border-radius: 4px;
  font-weight: 500;
  line-height: 1.2;
  vertical-align: middle;
  transition: background 0.14s ease;
}
.discord-mention:hover { background: rgba(88, 101, 242, 0.38); }

@media (max-width: 640px) {
  .discord-msg { padding: 7px 12px; gap: 10px; }
  .discord-msg-avatar { width: 32px; height: 32px; }
  .discord-container { max-width: none; }
  .discord-preview-header { padding: 13px 14px; }
  .discord-preview-topic { display: none; }
  .discord-preview-topic-sep { display: none; }
}

.apply-rank-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) {
  .apply-rank-grid { grid-template-columns: 1fr; }
}

a.review-category-card,
a.review-category-card:hover {
  text-decoration: none;
  color: inherit;
}
a.review-category-card {
  display: block;
  transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
a.review-category-card:hover { border-color: var(--accent); background: var(--bg-hover); }
a.review-category-card:active { transform: scale(0.98); }

.apply-progress { margin-bottom: 24px; }
.apply-progress-track {
  height: 6px;
  border-radius: 999px;
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  overflow: hidden;
}
.apply-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.apply-progress-label { margin-top: 8px; font-size: 12.5px; color: var(--text-faint); }

.apply-step[hidden] { display: none; }

.apply-review-row { padding: 12px 0; border-bottom: 1px solid var(--border); }
.apply-review-row:last-child { border-bottom: none; }
.apply-review-question { font-size: 12.5px; font-weight: 600; color: var(--text-faint); margin-bottom: 4px; }
.apply-review-answer { font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }

.field input.field-error,
.field textarea.field-error {
  border-color: var(--red);
}

.apply-step {
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.apply-step-exit-left { transform: translateX(-28px); opacity: 0; }
.apply-step-exit-right { transform: translateX(28px); opacity: 0; }
.apply-step-enter-left { transform: translateX(-28px); opacity: 0; }
.apply-step-enter-right { transform: translateX(28px); opacity: 0; }

.apply-rank-card { display: flex; flex-direction: column; height: 100%; }
.apply-rank-section-title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  margin-bottom: 8px;
}
.apply-rank-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.apply-rank-list li { line-height: 1.45; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-weight: 700;
  font-size: 13px;
  transition: color 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}
.back-link:hover { color: var(--accent); }
.back-link-arrow { display: inline-flex; transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
.back-link:hover .back-link-arrow { transform: translateX(-4px); }

.discord-role-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid;
}
.testimonial-carousel { position: relative; overflow: hidden; }
.testimonial-track { display: flex; }
.testimonial-carousel[data-testimonial-carousel] .testimonial-track {
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.testimonial-track .testimonial-spotlight { flex: 0 0 100%; min-width: 0; }

.testimonial-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  width: 100%;
}
.testimonial-spotlight-text { max-width: 520px; }
.testimonial-spotlight-reverse .testimonial-spotlight-text { order: 2; justify-self: end; }
.testimonial-spotlight-reverse .testimonial-spotlight-image { order: 1; }
.testimonial-spotlight-noimage {
  grid-template-columns: 1fr;
  justify-items: start;
}
.testimonial-spotlight-noimage .testimonial-spotlight-text {
  max-width: 640px;
  order: initial;
  justify-self: start;
}
.testimonial-spotlight-quote {
  font-size: 21px;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0 0 28px;
}
.testimonial-spotlight-quote::before,
.testimonial-spotlight-quote::after {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  color: var(--accent);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.testimonial-spotlight-quote::before { content: '\201C'; margin-right: 2px; }
.testimonial-spotlight-quote::after { content: '\201D'; margin-left: 2px; }
.testimonial-spotlight-quote.tw-hide-open::before { opacity: 0; }
.testimonial-spotlight-quote.tw-hide-close::after { opacity: 0; }
.testimonial-highlight { color: var(--accent); font-weight: 700; }
.testimonial-spotlight-attribution {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.testimonial-attribution-hidden { opacity: 0; transform: translateY(10px); }
.testimonial-spotlight-avatar { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.testimonial-spotlight-name { font-weight: 700; font-size: 14.5px; color: var(--text); }
.testimonial-spotlight-rank { color: var(--text-faint); font-weight: 700; }
.testimonial-spotlight-server {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-faint);
  margin-top: 2px;
}
.testimonial-spotlight-server-icon { width: 16px; height: 16px; border-radius: 5px; object-fit: cover; flex-shrink: 0; }
.testimonial-spotlight-image {
  height: 380px;
  border-radius: 24px;
  background-size: cover;
  background-position: center;
  -webkit-mask-image: linear-gradient(to left, black 55%, transparent 100%);
  mask-image: linear-gradient(to left, black 55%, transparent 100%);
}
.testimonial-spotlight-reverse .testimonial-spotlight-image {
  -webkit-mask-image: linear-gradient(to right, black 55%, transparent 100%);
  mask-image: linear-gradient(to right, black 55%, transparent 100%);
}
@media (max-width: 860px) {
  .testimonial-spotlight { grid-template-columns: 1fr; gap: 24px; }
  .testimonial-spotlight-text { max-width: none; }
  .testimonial-spotlight-reverse .testimonial-spotlight-text { justify-self: stretch; }
  .testimonial-spotlight-noimage .testimonial-spotlight-text { justify-self: stretch; }
  .testimonial-spotlight-image { display: none; }
  .testimonial-spotlight-quote { font-size: 18px; }
}
