:root {
  --bg: #0c0c0f;
  --card: #15151b;
  --card-2: #1c1c24;
  --line: #262631;
  --text: #ececf2;
  --muted: #9a9aa8;
  --accent: #e0b64a;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

#app {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 { margin: 0 0 10px; font-size: clamp(28px, 5vw, 40px); line-height: 1.15; }
h2 { margin: 0 0 14px; font-size: 20px; }

.lead { margin: 0 0 24px; color: var(--muted); white-space: pre-line; }
.muted { color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #14140f;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.06); text-decoration: none; }
.btn.secondary { background: var(--card-2); color: var(--text); border: 1px solid var(--line); }
.btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.chip {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
}

.qr { margin-top: 26px; }
.qr svg { width: 168px; height: 168px; border-radius: 10px; background: #fff; padding: 8px; }

.links { margin-top: 28px; display: flex; gap: 18px; flex-wrap: wrap; }

/* profile hub */
.hub { display: grid; gap: 12px; }
.hub a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
}
.hub a:hover { border-color: var(--accent); text-decoration: none; }

/* alert catalogue */
.items { display: grid; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.items li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.items .price { color: var(--muted); font-size: 14px; white-space: nowrap; }

/* forms */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; color: var(--muted); }
input, textarea, select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card-2);
  color: var(--text);
  font: inherit;
}
textarea { resize: vertical; min-height: 76px; }

dialog {
  width: min(460px, calc(100vw - 32px));
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
}
dialog::backdrop { background: #0009; }
dialog h2 { margin-bottom: 16px; }
dialog menu { display: flex; gap: 8px; justify-content: flex-end; margin: 18px 0 0; padding: 0; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  padding: 12px 18px;
  background: #fff;
  color: #111;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: 0 10px 30px #0008;
}

/* landing */
.soon {
  min-height: 74vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 4px;
}
.soon h1 { font-size: clamp(44px, 12vw, 96px); letter-spacing: -.03em; margin: 0; }
.soon .lead { color: var(--muted); margin: 6px 0 0; }

/* admin */
.bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.bar .spacer { flex: 1; }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs button {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.tabs button[aria-pressed="true"] { background: var(--card-2); color: var(--text); border-color: var(--accent); }

.req {
  padding: 14px 16px;
  margin-bottom: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.req .meta { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.req .msg { white-space: pre-line; margin-bottom: 12px; }
.req .actions { display: flex; gap: 8px; }
.req .actions .btn { min-height: 36px; padding: 0 14px; font-size: 14px; }

/* widget (OBS browser source) */
body.is-widget { background: transparent; }
body.is-widget #app { max-width: none; padding: 0; }
.w-stage {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.w-card {
  min-width: 340px;
  max-width: 70vw;
  padding: 22px 26px;
  background: #101014e6;
  border: 1px solid #ffffff26;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 20px 60px #000a;
}
.w-card .who { color: var(--accent); font-weight: 600; }
.w-card .amt { font-size: 30px; font-weight: 700; margin: 4px 0 10px; }
.w-card .txt { white-space: pre-line; }
.w-media { max-width: 60vw; max-height: 50vh; }
.w-card svg { width: 240px; height: 240px; background: #fff; padding: 10px; border-radius: 10px; display: block; margin: 8px auto 0; }
.w-unlock {
  position: fixed;
  left: 12px;
  bottom: 12px;
  pointer-events: auto;
  padding: 8px 12px;
  border: 1px solid #ffffff33;
  border-radius: 8px;
  background: #000a;
  color: #fff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

@media (max-width: 520px) {
  #app { padding: 30px 16px 56px; }
  .items li { flex-direction: column; align-items: flex-start; }
}
