/* ===== Tokens ===== */
:root {
  --bg: #08080c;
  --bg-elevated: #131318;
  --bg-elevated-2: #1a1a21;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f0f1f5;
  --text-muted: #9a9ba8;
  --text-faint: #6b6c78;
  --accent: #f5f6fa;
  --accent-dim: rgba(245, 246, 250, 0.10);
  --accent-text-on: #0b0b0f;
  /* A cool moonlight-through-fog pair for glows and gradient text -- kept
     close to the existing white/silver accent (not a new saturated brand
     hue) so the smoother, more vivid look stays "our" palette instead of
     borrowing another bot's blue. */
  --glow-cool: #c7d2ff;
  --glow-soft: rgba(245, 246, 250, 0.5);
  --glow-cool-soft: rgba(140, 158, 255, 0.4);
  --radius: 14px;
  --radius-sm: 9px;
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

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

/* A void with white specks: two tiled star layers (far = smaller/dimmer/
   slower, near = bigger/brighter/faster) that drift on scroll instead of
   animating every frame -- cheap, since it's just a background-position
   nudge on actual scroll events, not a constant loop. See base.html's
   scroll handler for the drift itself; these just paint the tiles. Sized
   past the viewport on every edge so the drift range never reveals an
   edge. .bg-scrim on top keeps a constant dark haze over all of it. */
.star-layer {
  position: fixed;
  inset: -200px;
  z-index: -3;
  pointer-events: none;
  background-repeat: repeat;
  filter: blur(0.6px);
  transition: filter 0.4s ease;
}
/* While actively scrolling (base.html toggles this, debounced off ~180ms
   after the last scroll event) each individual speck stretches into a
   vertical streak in place -- a directional (Y-only) blur from the inline
   SVG filter below, not a transform on the layer itself, so the tile's
   scale and dot spacing never move, only each point smears. */
.star-layer.warping { filter: blur(0.6px) url(#star-streak-far); }
.star-near.warping { filter: blur(0.6px) url(#star-streak-near); }
.bg-scrim {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(5, 5, 9, 0.4);
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.star-far {
  background-image: url('/static/img/stars_far.png');
  background-size: 600px 600px;
  opacity: 0.65;
}
.star-near {
  background-image: url('/static/img/stars_near.png');
  background-size: 700px 700px;
  opacity: 0.8;
}
.bg-field {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 20% 15%, rgba(245, 246, 250, 0.05), transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(245, 246, 250, 0.035), transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(245, 246, 250, 0.03), transparent 60%);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* purely structural now -- no background/blur/border of its own. That
     used to paint a full-viewport-width blurred strip behind the pill
     (visible as a ghost gradient band above it); the pill below carries
     100% of the visual chrome instead, in both its big and shrunk sizes. */
}
.header-inner {
  /* an explicit resolvable length (not max-width + auto width), so the
     transition below has a real number to tween from at both ends */
  width: min(1100px, 100% - 56px);
  margin: 16px auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 32px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(19, 19, 24, 0.78);
  backdrop-filter: blur(14px);
  /* a shadow sized for this small pill, not the page-section --shadow-soft
     token (60px blur) -- that read as an oversized hazy cloud around a
     compact bar instead of a crisp contained lift. */
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  /* width (not max-width) so this can actually tween between two real
     pixel values -- --pill-width is measured by JS from the shrunk
     content's natural size, since "fit-content" is a keyword the browser
     can't animate toward and would otherwise just snap instantly. */
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1), padding 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    margin 0.4s cubic-bezier(0.22, 1, 0.36, 1), gap 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Past the hero, the big pill shrinks into a smaller floating one (JS
   toggles this class once the page has scrolled a bit) -- same nav items,
   just condensed, so nothing about wayfinding changes, only scale. */
.site-header.scrolled .header-inner {
  width: var(--pill-width, 640px);
  margin: 10px auto;
  padding: 8px 14px 8px 8px;
  gap: 22px;
}
.site-header.scrolled .main-nav { gap: 20px; }
.site-header.scrolled .brand { margin-right: 0; }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-right: auto;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}
.footer-brand .brand-mark { width: 26px; height: 26px; }
.main-nav {
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
}
.main-nav a { transition: color 0.15s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.header-right { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  width: min(1100px, 100% - 56px);
  margin: 8px auto 0;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(19, 19, 24, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}
.mobile-nav a {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--text-muted);
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}
.mobile-nav a:hover, .mobile-nav a.active { background: var(--bg-elevated); color: var(--text); }
.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 6px 10px 6px 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.user-avatar { width: 22px; height: 22px; border-radius: 50%; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: #eceef2;
  /* dark matte metal, not bright chrome -- the body stays close to the
     page's own dark tone, with the rim light on top for the crisp bezel
     edge, plus a soft silver band worked into the gradient itself (not
     just the rim) so the face reads as brushed dark steel rather than
     flat charcoal paint. */
  background: linear-gradient(180deg,
    #1a1a1c 0%,
    #232326 18%,
    #0a0a0b 42%,
    #101012 58%,
    #000000 100%);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5),
    0 10px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary:hover {
  background: linear-gradient(180deg,
    #222225 0%,
    #2c2c30 18%,
    #121214 42%,
    #18181a 58%,
    #000000 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5),
    0 14px 30px rgba(0, 0, 0, 0.45);
}
.btn-primary:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.6),
    inset 0 -1px 0 rgba(255, 255, 255, 0.15),
    0 4px 10px rgba(0, 0, 0, 0.35);
}
.discord-icon { width: 19px; height: 19px; flex-shrink: 0; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--accent-dim); }
.btn-ghost { background: var(--bg-elevated); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-elevated-2); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ===== Login error banner ===== */
.error-banner {
  max-width: 780px;
  margin: 24px auto 0;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  text-align: center;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(240, 90, 90, 0.35);
  background: rgba(240, 90, 90, 0.08);
  color: var(--text);
  font-size: 0.92rem;
}
.error-banner-retry {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

/* ===== Hero ===== */
.hero { padding: 110px 28px 90px; text-align: center; position: relative; overflow: hidden; }
/* A big soft glow behind the hero copy -- the rest of the page keeps
   .bg-field's much fainter ambient radials, this is the one moment that
   gets the vivid, smooth treatment, same idea as a landing page's hero
   spotlight but built from the existing white/silver accent plus a cool
   glow tint instead of introducing a new saturated brand hue. */
.hero-glow {
  position: absolute;
  /* centered on the headline, not the eyebrow line above it -- the eyebrow
     sat right in the glow's brightest point before this shift and read as
     washed out against it */
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 160vw);
  height: 560px;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 52%, var(--glow-soft), transparent 40%),
    radial-gradient(circle at 50% 68%, var(--glow-cool-soft), transparent 52%);
  filter: blur(70px);
}
.hero-inner { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; }
/* The hero's one emphasized word: a smooth gradient fill instead of the
   scribble-underline treatment section titles use elsewhere -- a bigger,
   glowier moment for the single most prominent headline on the page. */
.hero-highlight {
  background: linear-gradient(90deg, #ffffff 0%, var(--glow-cool) 55%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(140, 158, 255, 0.45)) drop-shadow(0 0 34px rgba(245, 246, 250, 0.25));
}
.hero-eyebrow {
  position: relative;
  z-index: 1;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 18px;
  /* a dark halo, not a brighter color -- keeps this a quiet label even
     sitting on top of the hero glow, which reaches further up than its own
     box thanks to the blur */
  text-shadow: 0 1px 16px rgba(8, 8, 12, 0.9), 0 1px 3px rgba(8, 8, 12, 0.9);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  white-space: nowrap;
}
.hero-sub {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 36px;
  text-wrap: balance;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 18px 34px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-value { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 0.78rem; color: var(--text-faint); }
.stat-divider { width: 1px; height: 30px; background: var(--border-strong); }

/* ===== Spotlight (the three things Crest does that most companion bots
   don't -- deliberately in place of a "works with X/Y/Z" integrations row,
   since that's not where Crest's own strength is) ===== */
.spotlight { padding: 40px 28px 20px; }
.spotlight-inner { max-width: 1080px; margin: 0 auto; text-align: center; }
.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
  margin-top: 36px;
  padding-bottom: 8px;
}
.spotlight-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.spotlight-card:hover {
  border-color: var(--accent);
  background: var(--bg-elevated-2);
  transform: translateY(-4px);
}
.spotlight-card h3 { font-family: var(--font-display); font-size: 1.05rem; margin: 0 0 8px; }
.spotlight-card p { font-size: 0.92rem; color: var(--text-muted); margin: 0; }
@media (max-width: 860px) {
  .spotlight-grid { grid-template-columns: 1fr; }
}

/* ===== Features ===== */
.features { padding: 40px 28px 100px; }
.features-inner { max-width: 1080px; margin: 0 auto; text-align: center; }
/* A dotted wave riding behind the section badge -- the smooth transition
   moment between sections, tinted with the same cool glow as the hero
   instead of a hard border-top rule. Faded at both ends via mask so it
   reads as drifting past the section's edges, not a ruler-cut line.
   .section-divider centers the badge over the wave via flex + the wave's
   own top:50%/translateY(-50%) -- both anchored to the same row's true
   center, rather than the two being independently margin-nudged into rough
   alignment (which is what visibly overlapped/collided before). */
.section-divider {
  position: relative;
  height: 44px;
  max-width: 760px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wave-divider {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 30px;
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20160%2030'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0,15%20Q20,2%2040,15%20T80,15%20T120,15%20T160,15'%20fill='none'%20stroke='%23c7d2ff'%20stroke-width='2'%20stroke-dasharray='0.5%207'%20stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
  background-size: 160px 30px;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 14%, black 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 14%, black 86%, transparent);
}
.section-badge {
  width: 44px;
  height: 44px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.section-badge .dash-icon { width: 18px; height: 18px; }
.section-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  margin: 0 0 12px;
}
.accent-underline {
  position: relative;
  color: var(--accent);
  text-decoration: none;
  /* a soft luminous halo behind the word instead of flat text */
  text-shadow: 0 0 16px rgba(245, 246, 250, 0.6), 0 0 40px rgba(245, 246, 250, 0.3);
  padding-bottom: 0.16em;
  /* a hand-drawn-feeling scribble instead of a ruler-straight line -- an
     SVG path with irregular amplitude/spacing (not a uniform sine wave),
     stretched to the word's own width via background-size percentage. */
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20300%2024'%20preserveAspectRatio='none'%3E%3Cpath%20d='M3,14%20C18,4%2028,20%2042,10%20C58,-1%2072,12%2090,18%20C104,22%20118,6%20136,9%20C156,13%20168,2%20188,11%20C204,18%20214,7%20232,10%20C252,14%20264,3%20282,12%20C290,16%20294,10%20298,13'%20fill='none'%20stroke='%23F5F6FA'%20stroke-width='3.5'%20stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 0.5em;
}
.section-sub { color: var(--text-muted); font-size: 0.98rem; margin: 0 0 48px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 20px;
  text-align: left;
  padding-bottom: 36px;
  /* one shadow grounding the whole mosaic, rather than each card floating
     with no sense of a surface beneath it */
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.5));
}
/* Asymmetric bento mosaic instead of a flat uniform grid -- the two
   "headline" cards (moderation, customization) run wide, everything else
   sits as a single cell, zig-zagging row to row. */
.feature-card:nth-child(1) { grid-column: span 2; }
.feature-card:nth-child(5) { grid-column: span 2; }
.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.feature-card:hover {
  border-color: var(--accent);
  background: var(--bg-elevated-2);
  transform: translateY(-4px) scale(1.03);
  z-index: 1;
  position: relative;
}
.feature-card:hover h3 { color: var(--accent); }
/* A custom line icon in a soft badge, not a platform emoji glyph -- emoji
   render as a different shape/color per OS (Windows/Mac/Android/Discord all
   draw their own), which read as a jarring, un-designed note against
   everything else on this page. */
.feature-icon-badge {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  color: var(--accent);
  margin-bottom: 16px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.feature-icon-badge .dash-icon { width: 22px; height: 22px; }
.feature-card:hover .feature-icon-badge {
  background: rgba(140, 158, 255, 0.14);
  border-color: var(--border-strong);
}
.feature-card h3 { font-family: var(--font-display); font-size: 1.05rem; margin: 0 0 8px; transition: color 0.2s ease; }
.feature-card p { font-size: 0.92rem; color: var(--text-muted); margin: 0; }

@media (max-width: 860px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card:nth-child(1), .feature-card:nth-child(5) { grid-column: span 1; }
}

/* ===== CTA ===== */
.cta {
  padding: 90px 28px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.cta h2 { font-family: var(--font-display); font-size: 1.8rem; margin: 0 0 12px; }
.cta p { color: var(--text-muted); margin: 0 0 32px; }

/* ===== Support ===== */
.support {
  padding: 90px 28px 110px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.support-inner { max-width: 520px; margin: 0 auto; }
.support .section-sub { margin-bottom: 32px; }

/* ===== Commands page ===== */
.commands-page { max-width: 1080px; margin: 0 auto; padding: 60px 28px 100px; }
.commands-header { display: flex; align-items: center; gap: 18px; margin-bottom: 32px; }
.page-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--accent);
}
.page-icon .dash-icon { width: 22px; height: 22px; }
.commands-header h1 { font-family: var(--font-display); font-size: 1.7rem; margin: 0 0 4px; }
.page-sub { color: var(--text-muted); margin: 0; font-size: 0.92rem; }

.commands-toolbar { margin-bottom: 20px; }
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}
.search-box input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  width: 100%;
}
.search-box input::placeholder { color: var(--text-faint); }
.search-icon { display: flex; color: var(--text-faint); flex-shrink: 0; }
.search-icon .dash-icon { width: 16px; height: 16px; }

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pill .dash-icon { width: 14px; height: 14px; flex-shrink: 0; }
.pill:hover { border-color: var(--border-strong); color: var(--text); }
.pill.active { background: var(--accent); color: var(--accent-text-on); border-color: var(--accent); }
.pill-count { opacity: 0.6; font-variant-numeric: tabular-nums; }
.pill.active .pill-count { opacity: 0.55; }

.command-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.command-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  transition: border-color 0.15s ease;
}
.command-card:hover { border-color: var(--border-strong); }
.command-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.command-card h3 { font-family: var(--font-display); font-size: 1rem; margin: 0; }
.command-category-tag { display: flex; opacity: 0.7; flex-shrink: 0; }
.command-category-tag .dash-icon { width: 15px; height: 15px; }
.command-desc { font-size: 0.87rem; color: var(--text-muted); margin: 0 0 14px; min-height: 2.6em; }
.command-meta { display: flex; gap: 8px; font-size: 0.78rem; padding-top: 8px; border-top: 1px solid var(--border); }
.command-meta + .command-meta { border-top: none; padding-top: 4px; }
.meta-label { color: var(--text-faint); flex-shrink: 0; }
.meta-value { color: var(--text-muted); font-family: "SF Mono", "Consolas", monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.no-results { text-align: center; color: var(--text-faint); padding: 60px 0; }

/* ===== Footer ===== */
/* Deliberately flat here -- dark gray/black/white only, no starfield
   texture -- so the footer reads as solid ground under the page rather
   than more of the same atmosphere. */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(10, 10, 12, 0.6);
  padding: 56px 28px 28px;
}
.footer-inner { max-width: 1160px; margin: 0 auto; }
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 40px;
  flex-wrap: wrap;
}
.footer-about { max-width: 340px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; flex-wrap: wrap; margin-bottom: 14px; }
.footer-tagline { color: var(--text-muted); font-size: 0.9rem; margin: 0; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px 4px 8px;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #3ba55c; box-shadow: 0 0 6px rgba(59, 165, 92, 0.7); }
.footer-links { display: flex; gap: 64px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { font-size: 0.82rem; font-weight: 600; color: var(--text); margin: 0 0 4px; }
.footer-col a { font-size: 0.88rem; color: var(--text-muted); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.footer-copy { color: var(--text-faint); font-size: 0.82rem; margin: 0; }
.footer-social { color: var(--text-faint); display: flex; transition: color 0.15s ease; }
.footer-social:hover { color: var(--text); }
.footer-social svg { width: 20px; height: 20px; }

@media (max-width: 560px) {
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-links { gap: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ===== Legal pages ===== */
.legal-page { max-width: 720px; margin: 0 auto; padding: 70px 28px 110px; }
.legal-inner h1 { font-family: var(--font-display); font-size: 2rem; margin: 0 0 8px; }
.legal-updated { color: var(--text-faint); font-size: 0.85rem; margin: 0 0 40px; }
.legal-inner h2 { font-family: var(--font-display); font-size: 1.15rem; margin: 36px 0 12px; }
.legal-inner p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; margin: 0 0 14px; }

/* ===== Status ===== */
.status-page { max-width: 640px; margin: 0 auto; padding: 70px 28px 110px; }
.status-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 32px;
}
.status-banner-up { background: rgba(59, 165, 92, 0.12); border: 1px solid rgba(59, 165, 92, 0.3); color: #3ba55c; }
.status-banner-down { background: rgba(237, 66, 69, 0.12); border: 1px solid rgba(237, 66, 69, 0.3); color: #ed4245; }
.status-dot-lg { width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.status-list { display: flex; flex-direction: column; gap: 12px; }
.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}
.status-name { font-weight: 600; font-size: 0.95rem; }
.status-desc { color: var(--text-faint); font-size: 0.82rem; margin: 4px 0 0; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 600; flex-shrink: 0; }
.status-badge-up { color: #3ba55c; }
.status-badge-down { color: #ed4245; }
.status-badge .status-dot { background: currentColor; box-shadow: 0 0 6px currentColor; }
.status-footnote { color: var(--text-faint); font-size: 0.8rem; margin: 24px 0 0; text-align: center; }

/* ===== Error pages ===== */
.error-page { display: flex; align-items: center; justify-content: center; min-height: 60vh; text-align: center; padding: 60px 28px; }
.error-code { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--accent); letter-spacing: 0.08em; margin: 0 0 12px; }
.error-inner h1 { font-family: var(--font-display); font-size: 1.8rem; margin: 0 0 12px; }
.error-message { color: var(--text-muted); margin: 0 0 32px; max-width: 420px; }

/* ===== Docs ===== */
.docs-page { max-width: 1080px; margin: 0 auto; padding: 60px 28px 120px; display: flex; gap: 48px; align-items: flex-start; }
.docs-sidebar { width: 220px; flex-shrink: 0; position: sticky; top: 100px; }
.docs-nav { display: flex; flex-direction: column; gap: 2px; }
.docs-nav a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: background 0.15s ease, color 0.15s ease;
}
.docs-nav a:hover { background: var(--bg-elevated); color: var(--text); }
.docs-nav a.active { color: var(--accent); font-weight: 600; }
.docs-content { flex: 1; min-width: 0; max-width: 680px; }
.docs-content h1 { font-family: var(--font-display); font-size: 1.9rem; margin: 0 0 8px; }
.docs-lead { color: var(--text-muted); font-size: 1rem; margin: 0 0 48px; }
.docs-section { margin-bottom: 44px; scroll-margin-top: 100px; }
.docs-section h2 { font-family: var(--font-display); font-size: 1.25rem; margin: 0 0 14px; }
.docs-section p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.75; margin: 0 0 14px; }
.docs-section code {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.85em;
  color: var(--accent);
}
.docs-section a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-dim); }

@media (max-width: 780px) {
  .docs-page { flex-direction: column; }
  .docs-sidebar { width: 100%; position: static; }
  .docs-nav { flex-direction: row; flex-wrap: wrap; }
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .command-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav.open { display: flex; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .command-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 16px; padding: 18px; }
  .stat-divider { display: none; }
  /* the one-line hero headline is sized for desktop/tablet; on a phone
     that's too tight for the phrase at any legible size, so let it wrap
     instead of clipping or forcing an overflow scroll */
  .hero-title { white-space: normal; font-size: 1.6rem; }
  /* brand + user chip + logout/login + hamburger all competing for one
     row on a phone -- the username text is the one piece that's both
     non-essential (the avatar + "Dashboard" link already identify you)
     and unbounded in length, so it's the first thing to go. */
  .user-chip span { display: none; }
  .header-inner { gap: 14px; }
  .header-right { gap: 8px; }
}

/* ===== Dashboard: server picker ===== */
.dash-picker { max-width: 1080px; margin: 0 auto; padding: 60px 28px 100px; }
.dash-picker h1 { font-family: var(--font-display); font-size: 1.8rem; margin: 0 0 6px; }
.dash-subheading { font-family: var(--font-display); font-size: 1.2rem; margin: 44px 0 20px; }
.dash-empty { color: var(--text-muted); padding: 40px 0; }
.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.server-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 18px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.server-card:hover { border-color: var(--accent-dim); background: var(--bg-elevated-2); transform: translateY(-3px); }
.server-card-invite { opacity: 0.75; }
.server-card-invite:hover { opacity: 1; }
.server-icon { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.server-icon-fallback {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-elevated-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-muted);
}
.server-name { font-weight: 600; font-size: 0.95rem; }
.server-name-row { display: flex; align-items: center; gap: 8px; }
.role-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  flex-shrink: 0;
}
.role-badge-admin { color: var(--text-muted); background: var(--bg-elevated-2); border-color: var(--border); }
.role-badge-owner { color: #f0b232; background: rgba(240, 178, 50, 0.12); border-color: rgba(240, 178, 50, 0.35); }
.server-manage { font-size: 0.8rem; color: var(--text-faint); }

/* ===== Dashboard: settings =====
   This page runs without the site's normal header (base.html hides it via
   hide_header) -- the sidebar is the entire chrome, top to bottom, the way
   an admin panel reads rather than a marketing-site subpage. */
.dash { max-width: 1160px; margin: 0 auto; padding: 32px 28px 60px; display: flex; gap: 40px; align-items: flex-start; }
.dash-sidebar {
  width: 232px;
  flex-shrink: 0;
  position: sticky;
  top: 24px;
  height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
}
.dash-back { display: block; font-size: 0.85rem; color: var(--text-faint); margin-bottom: 20px; transition: color 0.15s ease; flex-shrink: 0; }
.dash-back:hover { color: var(--text); }
.dash-server { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.95rem; margin-bottom: 24px; flex-shrink: 0; }
.dash-server .server-icon, .dash-server .server-icon-fallback { width: 32px; height: 32px; font-size: 0.9rem; }
.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  /* the sidebar can outgrow the viewport once every group is expanded --
     without its own scroll it would just push the page's own scrollbar
     into a second, confusingly-independent one alongside this sticky rail */
  scrollbar-width: thin;
}
.dash-sidebar-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.dash-sidebar-footer .user-chip { flex: 1; min-width: 0; }
.dash-sidebar-footer .user-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: background 0.15s ease, color 0.15s ease;
}
.dash-nav a:hover { background: var(--bg-elevated); color: var(--text); }
.dash-nav a.active { background: var(--bg-elevated); color: var(--accent); font-weight: 600; }
.dash-nav-icon { display: flex; align-items: center; justify-content: center; width: 18px; flex-shrink: 0; }
.dash-icon { width: 16px; height: 16px; flex-shrink: 0; }

.dash-nav-group { display: flex; flex-direction: column; gap: 2px; }
.dash-nav-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.dash-nav-group summary::-webkit-details-marker { display: none; }
.dash-nav-group summary::after {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--text-faint);
  border-bottom: 1.5px solid var(--text-faint);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}
.dash-nav-group[open] summary::after { transform: rotate(-135deg); }
.dash-nav-group summary:hover { color: var(--text); }
.dash-nav-group .dash-nav-link { padding-left: 20px; }

.dash-content { flex: 1; min-width: 0; max-width: 760px; }
.dash-content-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.dash-content-header h1 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.dash-content-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.dash-content-icon .dash-icon { width: 18px; height: 18px; color: var(--accent); }
.save-confirm { font-size: 0.85rem; color: #3ba55c; font-weight: 600; }

.dash-form { display: flex; flex-direction: column; gap: 30px; }
.btn-save {
  align-self: flex-start;
  background: var(--accent);
  color: var(--accent-text-on);
  padding: 12px 30px;
  font-size: 0.95rem;
}
.btn-save:hover { opacity: 0.9; }

/* ===== Dashboard: Overview ===== */
.overview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.overview-greeting { color: var(--text-muted); font-size: 0.92rem; margin: 0; }
.overview-greeting strong { color: var(--text); }
.range-tabs { display: flex; gap: 4px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.dash-range-tab {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-faint);
  padding: 6px 14px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.dash-range-tab:hover { color: var(--text); }
.dash-range-tab.active { background: var(--accent); color: var(--accent-text-on); }

.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; }
.stat-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.stat-label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-faint); }
.stat-icon { display: flex; color: var(--text-faint); }
.stat-icon .dash-icon { width: 15px; height: 15px; }
.stat-value { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; line-height: 1; margin-bottom: 6px; }
.stat-delta { display: inline-flex; align-items: center; gap: 4px; font-size: 0.8rem; font-weight: 600; color: var(--text-faint); }
.stat-delta .dash-icon { width: 12px; height: 12px; }
.stat-delta-up { color: #3ba55c; }
.stat-delta-down { color: #ed4245; }

.overview-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 14px;
}
.overview-card h3 { font-family: var(--font-display); font-size: 1rem; margin: 0 0 2px; }
.overview-card-header p { font-size: 0.82rem; color: var(--text-faint); margin: 0 0 12px; }
.activity-chart-svg { width: 100%; height: 140px; display: block; }
.no-data { color: var(--text-faint); font-size: 0.88rem; text-align: center; padding: 28px 0 8px; margin: 0; }

.top-channels-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 0.88rem; }
.top-channels-table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  padding: 0 10px 8px;
  border-bottom: 1px solid var(--border);
}
.top-channels-table td { padding: 9px 10px; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.top-channels-table tr:last-child td { border-bottom: none; }
.top-channels-table td:first-child { color: var(--text-faint); width: 24px; font-variant-numeric: tabular-nums; }
.top-channels-table td:last-child { text-align: right; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .stat-cards { grid-template-columns: 1fr; }
  .overview-toolbar { flex-direction: column; align-items: flex-start; }
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 0.9rem; font-weight: 600; }
.field-help { font-size: 0.8rem; color: var(--text-faint); margin: 0; }

.form-field input[type="text"],
.form-field input[type="number"],
.form-field textarea,
.form-field select {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color 0.15s ease;
  width: 100%;
}
/* Short single-line fields stay a comfortable reading width even though
   the content column is wide -- a lone "," stretched across 760px looks
   broken, not spacious. Textareas/selects/the multi-picker are exactly
   the elements that benefit from the full column, so they stay full-width. */
.form-field input[type="text"],
.form-field input[type="number"] {
  max-width: 420px;
}
.form-field input[type="text"]:focus,
.form-field input[type="number"]:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent-dim);
}
.form-field textarea { resize: vertical; font-family: "SF Mono", "Consolas", monospace; }
.form-field select option { background: var(--bg-elevated); }

/* Custom checkbox picker, replacing the native <select multiple> --
   browsers hard-code that element's selected-row color to the OS accent
   (a jarring platform blue no CSS can override) and its rows/scrollbar
   never matched the rest of the page's dark theme. This is plain
   checkboxes underneath, so it keeps working with zero JS and posts the
   exact same repeated-name form fields the backend already expects. */
.multi-picker {
  display: flex;
  flex-direction: column;
  max-height: 340px;
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px;
}
.multi-picker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: background 0.12s ease;
}
.multi-picker-row:hover { background: var(--bg-elevated-2); color: var(--text); }
.multi-picker-row input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.multi-picker-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  border: 1.5px solid var(--border-strong);
  border-radius: 5px;
  color: transparent;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.multi-picker-box .dash-icon { width: 11px; height: 11px; }
.multi-picker-row input:checked + .multi-picker-box {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text-on);
}
.multi-picker-row input:focus-visible + .multi-picker-box { outline: 2px solid var(--accent-dim); outline-offset: 2px; }
.multi-picker-kind { display: flex; color: var(--text-faint); flex-shrink: 0; }
.multi-picker-kind .dash-icon { width: 13px; height: 13px; }
.multi-picker-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.color-field { display: flex; align-items: center; gap: 12px; }
.color-field input[type="color"] {
  width: 44px; height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: none;
  padding: 2px;
  cursor: pointer;
}
.color-value { font-family: monospace; font-size: 0.85rem; color: var(--text-muted); }

.toggle-switch { display: inline-flex; cursor: pointer; width: fit-content; }
.toggle-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-track {
  width: 42px; height: 24px;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  position: relative;
  transition: background 0.2s ease;
}
.toggle-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--text-faint);
  transition: transform 0.2s ease, background 0.2s ease;
}
.toggle-switch input:checked + .toggle-track { background: rgba(88, 101, 242, 0.35); border-color: #5865F2; }
.toggle-switch input:checked + .toggle-track .toggle-thumb { transform: translateX(18px); background: #5865F2; }

@media (max-width: 780px) {
  .dash { flex-direction: column; }
  .dash-sidebar {
    width: 100%;
    position: static;
    /* the desktop layout pins the sidebar to a fixed viewport-height
       column so its footer stays put while .dash-nav scrolls internally;
       stacked above the content on mobile, that same fixed height just
       clips everything below it, since the page (not the sidebar) is
       what should scroll here. */
    height: auto;
  }
  .dash-nav { overflow-y: visible; }
  /* row+wrap read fine for the old flat pill list, but with collapsible
     groups now mixed in (headers + indented children of varying widths)
     a wrapped row turns into an unreadable jumble -- a plain column,
     same as desktop, is the one layout that stays scannable at any width. */
}
