/* ============================================================
   GetLauncher — сайт
   Тёмная тема, зелёный акцент, крупная типографика
   ============================================================ */

:root {
  --bg: #070a0e;
  --bg-2: #0b1016;
  --panel: #10161d;
  --panel-2: #141c25;
  --panel-3: #19222c;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #eef3f7;
  --muted: #9aa7b5;
  --dim: #6d7a88;
  --accent: #57d364;
  --accent-2: #9be15d;
  --accent-soft: rgba(87, 211, 100, 0.12);
  --accent-line: rgba(87, 211, 100, 0.32);
  --danger: #ff7a7a;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  --font: "Segoe UI", "Inter", "SF Pro Text", system-ui, -apple-system, Arial, sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", Consolas, "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 78% -10%, rgba(87, 211, 100, 0.13), transparent 60%),
    radial-gradient(800px 520px at 8% 8%, rgba(64, 160, 255, 0.07), transparent 60%),
    linear-gradient(180deg, #070a0e 0%, #080c11 48%, #070a0e 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 78%);
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(87, 211, 100, 0.32);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: #08110a;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip:focus {
  top: 16px;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* ------------------------------------------------------------ шапка */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.scrolled {
  background: rgba(8, 11, 15, 0.82);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex: 0 0 auto;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 0 4px rgba(87, 211, 100, 0.06);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text span {
  color: var(--accent);
}

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

.nav a {
  padding: 9px 13px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav .nav-download {
  margin-left: 8px;
  padding: 9px 16px;
  color: #08110a;
  background: var(--accent);
  box-shadow: 0 8px 24px rgba(87, 211, 100, 0.18);
}

.nav .nav-download:hover {
  background: var(--accent-2);
  color: #08110a;
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-btn span {
  position: relative;
}

.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-btn span::before {
  top: -6px;
}

.menu-btn span::after {
  top: 6px;
}

.menu-btn[aria-expanded="true"] span {
  background: transparent;
}

.menu-btn[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ------------------------------------------------------------ герой */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 56px;
  align-items: center;
  padding: 74px 0 58px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.8); }
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 5.2vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.grad {
  background: linear-gradient(96deg, var(--accent) 0%, var(--accent-2) 52%, #7de2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #071008;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow: 0 14px 34px rgba(87, 211, 100, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 18px 42px rgba(87, 211, 100, 0.3);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-meta {
  padding: 3px 7px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.16);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

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

.hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stats b {
  font-size: 22px;
  letter-spacing: -0.03em;
}

.hero-stats span {
  color: var(--dim);
  font-size: 12.5px;
}

/* ------------------------------------------------------------ макет окна */

.hero-visual {
  position: relative;
  perspective: 1400px;
}

.window {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: linear-gradient(180deg, #121922, #0b1016);
  box-shadow: var(--shadow), 0 0 90px rgba(87, 211, 100, 0.08);
  overflow: hidden;
  transform: rotateY(-7deg) rotateX(3deg) translateZ(0);
  transition: transform 0.4s ease;
}

.hero-visual:hover .window {
  transform: rotateY(-3deg) rotateX(1deg);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.window-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2c3642;
}

.window-bar span:nth-child(1) { background: #ff6b6b; }
.window-bar span:nth-child(2) { background: #ffd166; }
.window-bar span:nth-child(3) { background: #57d364; }

.window-bar em {
  margin-left: 8px;
  color: var(--dim);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}

.window-body {
  display: grid;
  grid-template-columns: 112px 1fr;
  min-height: 318px;
}

.window-side {
  padding: 13px 10px;
  border-right: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.16);
}

.ws-logo {
  width: 34px;
  height: 34px;
  margin: 0 0 14px 4px;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.ws-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  color: var(--dim);
  font-size: 10.5px;
  font-weight: 600;
}

.ws-item i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.55;
}

.ws-item.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.ws-item.active i {
  opacity: 1;
  box-shadow: 0 0 8px var(--accent);
}

.window-main {
  padding: 15px 16px;
  min-width: 0;
}

.wm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.wm-head b {
  display: block;
  font-size: 13px;
  letter-spacing: -0.01em;
}

.wm-head span:not(.wm-pill) {
  display: block;
  color: var(--dim);
  font-size: 10px;
}

.wm-pill {
  padding: 3px 8px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wm-hero {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.028);
}

.wm-art {
  position: relative;
  height: 92px;
  border-radius: 9px;
  background:
    linear-gradient(145deg, rgba(87, 211, 100, 0.4), rgba(18, 30, 22, 0.9)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.06) 0 8px, transparent 8px 16px);
  overflow: hidden;
}

.wm-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 70%, rgba(155, 225, 93, 0.55), transparent 45%),
    linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.55));
}

.wm-play {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}

.wm-play b {
  font-size: 12.5px;
}

.wm-play span {
  color: var(--dim);
  font-size: 10px;
}

.wm-play button {
  margin-top: 7px;
  padding: 6px 18px;
  border: 0;
  border-radius: 7px;
  background: var(--accent);
  color: #08110a;
  font-size: 10.5px;
  font-weight: 800;
  cursor: default;
}

.wm-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 10px;
}

.wm-cards div {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.022);
}

.wm-cards span {
  display: block;
  color: var(--dim);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.wm-cards b {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wm-cards em {
  display: block;
  margin-top: 2px;
  color: var(--accent);
  font-size: 9.5px;
  font-style: normal;
}

.wm-progress {
  height: 6px;
  margin-top: 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.wm-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 14px rgba(87, 211, 100, 0.5);
}

.wm-foot {
  margin-top: 6px;
  color: var(--dim);
  font-size: 9.5px;
}

.float-badge {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(13, 18, 24, 0.92);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  font-size: 11.5px;
  font-weight: 700;
  animation: float 5.4s ease-in-out infinite;
}

.float-badge img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.float-badge--owner {
  top: -18px;
  right: 14px;
}

.float-badge--tester {
  bottom: 26px;
  left: -22px;
  animation-delay: -2.4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ------------------------------------------------------------ бегущая строка */

.ticker {
  display: flex;
  gap: 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
  user-select: none;
}

.ticker-track {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 34px;
  padding: 13px 17px;
  animation: ticker 34s linear infinite;
  white-space: nowrap;
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ticker-track span::after {
  content: "◆";
  color: var(--accent);
  font-size: 8px;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ------------------------------------------------------------ секции */

.section {
  padding: 88px 0 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 38px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-tag::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.section h2 {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

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

/* ------------------------------------------------------------ возможности */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature {
  position: relative;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(360px 180px at 100% 0%, rgba(87, 211, 100, 0.07), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.feature-icon svg {
  width: 21px;
  height: 21px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

/* ------------------------------------------------------------ друзья */

.friends-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 54px;
  align-items: center;
}

.friends-copy p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15.5px;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 13.5px;
}

.check-list li::before {
  content: "✓";
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
}

.chat-demo {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: linear-gradient(180deg, #10161d, #0b1016);
  box-shadow: var(--shadow);
}

.chat-top {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.chat-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(145deg, #2b3a2f, #16211a);
  color: var(--accent);
  font-weight: 800;
  font-size: 15px;
}

.chat-top b {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
}

.chat-top b img {
  width: 17px;
  height: 17px;
  object-fit: contain;
}

.chat-top span {
  display: block;
  color: var(--dim);
  font-size: 11px;
}

.chat-body {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 16px 2px 10px;
}

.msg {
  max-width: 78%;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 13px 13px 13px 4px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 12.5px;
}

.msg.mine {
  align-self: flex-end;
  border-color: var(--accent-line);
  border-radius: 13px 13px 4px 13px;
  background: rgba(87, 211, 100, 0.11);
}

.msg em {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.msg em img {
  width: 13px;
  height: 13px;
  object-fit: contain;
}

.msg time {
  display: block;
  margin-top: 5px;
  color: var(--dim);
  font-size: 9.5px;
  text-align: right;
}

.chat-input {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--dim);
  font-size: 11.5px;
}

.chat-input i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.roles-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px 6px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 11.5px;
  font-weight: 700;
}

.role-chip img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* ------------------------------------------------------------ установка */

.install-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 30px;
  border: 1px solid var(--accent-line);
  border-radius: 22px;
  background:
    radial-gradient(620px 280px at 8% 0%, rgba(87, 211, 100, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.install-card::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -110px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(87, 211, 100, 0.16), transparent 68%);
  pointer-events: none;
}

.install-icon {
  width: 74px;
  height: 74px;
  border: 1px solid var(--line-strong);
  border-radius: 19px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.install-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.install-copy h3 {
  margin: 0 0 6px;
  font-size: 23px;
  letter-spacing: -0.03em;
}

.install-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.install-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.install-meta span {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--dim);
  font-size: 10.5px;
  font-weight: 600;
}

.install-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 190px;
}

.install-actions .btn {
  min-height: 46px;
  font-size: 14px;
}

.install-actions small {
  color: var(--dim);
  font-size: 10.5px;
  text-align: center;
}

/* ------------------------------------------------------------ FAQ */

.faq-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 18px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 700;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 19px;
  font-weight: 400;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

/* ------------------------------------------------------------ подвал */

.site-footer {
  margin-top: 96px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.6fr));
  gap: 36px;
  padding: 46px 0 30px;
}

.footer-brand p {
  max-width: 340px;
  margin: 12px 0 0;
  color: var(--dim);
  font-size: 12.5px;
}

.footer-col b {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-col a {
  display: block;
  padding: 4px 0;
  color: var(--dim);
  font-size: 12.5px;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 0 26px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 11.5px;
}

/* ------------------------------------------------------------ страница установщика */

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 54px;
  align-items: center;
  padding: 58px 0 46px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--dim);
  font-size: 12px;
}

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

.breadcrumbs span {
  color: var(--line-strong);
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.download-card {
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(87, 211, 100, 0.13), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow);
}

.download-head {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}

.download-head img {
  width: 58px;
  height: 58px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  object-fit: cover;
}

.download-head b {
  display: block;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.download-head span {
  display: block;
  color: var(--dim);
  font-size: 11.5px;
}

.download-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.download-specs div {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.18);
}

.download-specs span {
  display: block;
  color: var(--dim);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.download-specs b {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
}

.download-card .btn {
  width: 100%;
}

.download-note {
  margin: 10px 0 0;
  color: var(--dim);
  font-size: 10.5px;
  text-align: center;
}

.hash {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 9.5px;
  overflow-wrap: anywhere;
}

.hash b {
  flex: 0 0 auto;
  color: var(--muted);
  font-family: var(--font);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.info-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.026);
}

.info-card b {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 24px 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border: 1px solid var(--accent-line);
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.step h3 {
  margin: 0 0 7px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.specs-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.022);
}

.specs-table th,
.specs-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.specs-table tr:last-child td {
  border-bottom: 0;
}

.specs-table th {
  width: 32%;
  color: var(--muted);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.025);
}

.specs-table td {
  color: var(--text);
}

.code-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.copy-btn {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}

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

.code-card pre {
  margin: 0;
  padding: 14px;
  overflow-x: auto;
  color: #cfe8d3;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
}

.note {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 209, 102, 0.25);
  border-radius: 13px;
  background: rgba(255, 209, 102, 0.07);
  color: #e8d8b0;
  font-size: 12.5px;
  line-height: 1.6;
}

.note b {
  color: #ffd166;
}

/* ------------------------------------------------------------ 404 */

.error-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 40px 20px;
  text-align: center;
}

.error-code {
  font-size: clamp(84px, 18vw, 170px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.06em;
  background: linear-gradient(180deg, var(--accent), rgba(87, 211, 100, 0.16));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-page h1 {
  margin: 18px 0 10px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.error-page p {
  max-width: 420px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* ------------------------------------------------------------ появление */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ адаптив */

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 46px;
    padding-top: 54px;
  }

  .hero-visual {
    max-width: 640px;
  }

  .window {
    transform: none;
  }

  .hero-visual:hover .window {
    transform: none;
  }

  .friends-section,
  .page-hero {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .features-grid,
  .info-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .install-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .install-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
  }

  .install-actions .btn {
    width: auto;
  }

  .install-actions small {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .container {
    width: calc(100% - 32px);
  }

  .header-inner {
    height: 66px;
  }

  .menu-btn {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 66px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(10, 14, 19, 0.97);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 11px 13px;
  }

  .nav .nav-download {
    margin: 4px 0 0;
    text-align: center;
  }

  .hero {
    padding-top: 42px;
  }

  .hero h1 {
    font-size: clamp(36px, 10vw, 50px);
  }

  .lead {
    font-size: 15.5px;
  }

  .hero-stats {
    gap: 22px;
  }

  .window-body {
    grid-template-columns: 86px 1fr;
    min-height: 280px;
  }

  .wm-cards {
    grid-template-columns: 1fr;
  }

  .float-badge--tester {
    left: -8px;
    bottom: 16px;
  }

  .float-badge--owner {
    right: 6px;
  }

  .features-grid,
  .faq-list,
  .info-grid,
  .steps,
  .download-specs {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 64px;
  }

  .install-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
  }

  .install-icon {
    width: 62px;
    height: 62px;
  }

  .install-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .install-actions .btn {
    width: 100%;
  }

  .install-actions small {
    text-align: center;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .page-hero {
    padding-top: 38px;
  }
}

@media (max-width: 420px) {
  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    flex-wrap: wrap;
    row-gap: 16px;
  }

  .msg {
    max-width: 88%;
  }
}

/* ============================================================
   Аккаунт и панель отчётов о сбоях
   ============================================================ */

[hidden] {
  display: none !important;
}

.auth-hero {
  align-items: start;
}

.auth-card {
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(87, 211, 100, 0.1), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  box-shadow: var(--shadow);
}

.auth-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
}

.auth-tab {
  flex: 1;
  padding: 9px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}

.auth-tab:hover {
  color: var(--text);
}

.auth-tab.active {
  color: #08110a;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.field input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.field input:focus {
  outline: none;
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px rgba(87, 211, 100, 0.14);
  background: rgba(0, 0, 0, 0.36);
}

.field input::placeholder {
  color: var(--dim);
}

.auth-submit {
  width: 100%;
  margin-top: 2px;
}

.auth-link {
  align-self: flex-start;
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.auth-link:hover {
  text-decoration: underline;
}

.form-msg {
  display: none;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.5;
}

.form-msg.error {
  display: block;
  border: 1px solid rgba(255, 122, 122, 0.3);
  background: rgba(255, 122, 122, 0.09);
  color: #ffb3b3;
}

.form-msg.ok {
  display: block;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-2);
}

.auth-note {
  margin: 16px 0 0;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.6;
}

.auth-note code {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.auth-note--block {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
}

.auth-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 4px;
  color: var(--muted);
  font-size: 13.5px;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.auth-message {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.auth-message b {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.auth-message p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.auth-message--warn {
  border-color: rgba(255, 209, 102, 0.28);
  background: rgba(255, 209, 102, 0.06);
}

.auth-message--error {
  border-color: rgba(255, 122, 122, 0.28);
  background: rgba(255, 122, 122, 0.06);
}

.claim-card {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--accent-line);
  border-radius: 14px;
  background:
    radial-gradient(300px 140px at 100% 0%, rgba(87, 211, 100, 0.12), transparent 70%),
    rgba(87, 211, 100, 0.05);
}

.claim-card b {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.claim-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.claim-card .btn {
  width: 100%;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  font-size: 22px;
  font-weight: 800;
}

.avatar--owner {
  background: linear-gradient(145deg, #2b4a30, #16211a);
  color: var(--accent);
}

.avatar--helper {
  background: linear-gradient(145deg, #26384a, #141d26);
  color: #7ec2ff;
}

.avatar--guest {
  background: linear-gradient(145deg, #2b323c, #151a20);
  color: var(--muted);
}

.profile-id {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.profile-id b {
  font-size: 17px;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.profile-id span {
  color: var(--dim);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.profile-head .role-badge {
  margin-left: auto;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.role-badge--owner {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.role-badge--helper {
  color: #7ec2ff;
  border-color: rgba(126, 194, 255, 0.32);
  background: rgba(126, 194, 255, 0.1);
}

.role-badge--guest {
  color: var(--dim);
  background: rgba(255, 255, 255, 0.04);
}

.profile-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.profile-meta div {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
}

.profile-meta span {
  display: block;
  color: var(--dim);
  font-size: 9.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.profile-meta b {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.profile-actions .btn {
  flex: 1 1 auto;
}

/* ------------------------------------------------------------ панель */

.staff-head {
  padding: 54px 0 0;
}

.staff-head h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.staff-head .lead {
  max-width: 720px;
}

.staff-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.staff-stats div {
  min-width: 150px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.staff-stats b {
  display: block;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.staff-stats span {
  color: var(--dim);
  font-size: 12px;
}

.staff-body {
  padding: 30px 0 0;
}

.staff-panel {
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background:
    radial-gradient(620px 280px at 100% 0%, rgba(87, 211, 100, 0.07), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  box-shadow: var(--shadow);
}

.staff-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.staff-toolbar-info b {
  display: block;
  font-size: 15px;
}

.staff-toolbar-info span {
  display: block;
  color: var(--dim);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.staff-refresh {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
}

.crash-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.026);
}

.crash-card + .crash-card {
  margin-top: 12px;
}

.crash-card--danger {
  border-color: rgba(255, 122, 122, 0.24);
  background:
    radial-gradient(400px 160px at 100% 0%, rgba(255, 122, 122, 0.07), transparent 70%),
    rgba(255, 255, 255, 0.026);
}

.crash-card--warn {
  border-color: rgba(255, 200, 97, 0.24);
  background:
    radial-gradient(400px 160px at 100% 0%, rgba(255, 200, 97, 0.07), transparent 70%),
    rgba(255, 255, 255, 0.026);
}

.crash-top {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.crash-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(87, 211, 100, 0.6);
}

.crash-dot.is-danger {
  background: var(--danger);
  box-shadow: 0 0 10px rgba(255, 122, 122, 0.6);
}

.crash-dot.is-warn {
  background: #ffc861;
  box-shadow: 0 0 10px rgba(255, 200, 97, 0.6);
}

.crash-title {
  min-width: 0;
}

.crash-title b {
  display: block;
  font-size: 14.5px;
  letter-spacing: -0.01em;
}

.crash-title span {
  display: block;
  color: var(--dim);
  font-size: 11.5px;
}

.crash-time {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--muted);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.crash-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 12px;
}

.crash-meta span {
  color: var(--muted);
  font-size: 11.5px;
}

.crash-meta em {
  margin-right: 3px;
  color: var(--dim);
  font-size: 9.5px;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.chip--danger {
  border: 1px solid rgba(255, 122, 122, 0.3);
  background: rgba(255, 122, 122, 0.1);
  color: #ffb3b3;
  text-transform: uppercase;
}

.chip--warn {
  border: 1px solid rgba(255, 200, 97, 0.3);
  background: rgba(255, 200, 97, 0.1);
  color: #ffd99a;
  text-transform: uppercase;
}

.crash-detail {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 122, 122, 0.2);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
}

.crash-close {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 200, 97, 0.2);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
}

.crash-close--danger {
  border-color: rgba(255, 122, 122, 0.2);
}

.crash-close-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.crash-close-code {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.crash-timing {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.16);
}

.crash-timing span {
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.crash-timing em {
  margin-right: 4px;
  color: var(--dim);
  font-size: 9.5px;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.crash-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.crash-at {
  color: var(--dim);
  font-size: 10.5px;
}

.crash-message {
  margin: 0 0 8px;
  color: #ffc7c7;
  font-size: 12.5px;
  overflow-wrap: anywhere;
}

.crash-stack {
  max-height: 180px;
  margin: 0;
  overflow: auto;
  color: #d7e3db;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.crash-prev {
  margin-top: 12px;
  color: var(--dim);
  font-size: 11.5px;
}

.crash-prev em {
  margin-right: 4px;
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.crash-more {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.crash-more summary {
  padding: 10px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.crash-more summary::-webkit-details-marker {
  display: none;
}

.crash-more summary::before {
  content: "▸ ";
  color: var(--accent);
}

.crash-more[open] summary::before {
  content: "▾ ";
}

.crash-more pre {
  max-height: 220px;
  margin: 8px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.3);
  color: #cfe8d3;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.55;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.crash-foot {
  margin-top: 10px;
  color: var(--dim);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.crash-foot code {
  color: var(--muted);
  font-family: var(--mono);
}

.team-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.team-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.026);
}

.team-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  font-size: 16px;
  font-weight: 800;
}

.team-avatar--owner {
  background: linear-gradient(145deg, #2b4a30, #16211a);
  color: var(--accent);
}

.team-avatar--helper {
  background: linear-gradient(145deg, #26384a, #141d26);
  color: #7ec2ff;
}

.team-avatar--guest {
  background: linear-gradient(145deg, #2b323c, #151a20);
  color: var(--muted);
}

.team-id {
  min-width: 0;
}

.team-id b {
  display: block;
  font-size: 13.5px;
  overflow-wrap: anywhere;
}

.team-id span {
  display: block;
  color: var(--dim);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.team-row .role-badge {
  margin-left: auto;
}

.team-actions {
  flex: 0 0 auto;
}

.team-btn {
  min-height: 38px;
  padding: 0 14px;
  font-size: 12px;
}

.team-self {
  color: var(--dim);
  font-size: 11.5px;
}

@media (max-width: 760px) {
  .profile-meta {
    grid-template-columns: 1fr;
  }

  .crash-top {
    flex-wrap: wrap;
  }

  .crash-time {
    width: 100%;
    margin-left: 0;
    padding-left: 21px;
  }

  .team-row {
    flex-wrap: wrap;
  }

  .team-actions {
    width: 100%;
  }

  .team-btn {
    width: 100%;
  }

  .profile-actions .btn {
    flex: 1 1 100%;
  }

  .staff-head {
    padding-top: 38px;
  }

  .staff-panel {
    padding: 16px;
  }

  .staff-toolbar {
    flex-wrap: wrap;
  }

  .staff-refresh {
    width: 100%;
  }
}
