/* The Discord link page and the page Discord sends people back to (api/routes_discord.py), in the Verlapz look:
   the same colours, card and faint V strokes as verlapz.ai. Only same-origin styles are allowed here (PAGE_CSP). */
:root {
  color-scheme: dark;
  --bg: #0b0c0f; --card: #131418; --card-2: #181a20; --line: #25272d; --text: #edeef0; --muted: #9c9fa8;
  --brand: #635bff; --brand-2: #7c6cff; --cyan: #38d6e8; --discord: #5865f2; --error: #f2777a; --ok: #3ecf8e;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; padding: 28px 16px 40px; color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(99, 91, 255, .22), transparent 60%),
    radial-gradient(700px 420px at 100% 0%, rgba(56, 214, 232, .12), transparent 60%),
    var(--bg);
  overflow-x: hidden;
}
.strokes {
  position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 25%, transparent 90%);
  mask-image: linear-gradient(to bottom, #000 25%, transparent 90%);
}
.stroke-a { stroke: #7c6cff; opacity: .07; }
.stroke-b { stroke: #38d6e8; opacity: .05; }
main { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; }
a { color: #9791ff; }

.brand { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--text); text-decoration: none;
  font-weight: 700; font-size: 18px; letter-spacing: -.2px; }
.brand b { color: var(--muted); font-weight: 600; }
.mark { width: 30px; height: 30px; }

.card {
  position: relative; padding: 30px 28px 26px; border: 1px solid var(--line); border-radius: 24px;
  background: linear-gradient(180deg, rgba(99, 91, 255, .10), transparent 120px), var(--card);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: 24px; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(124, 108, 255, .7), rgba(56, 214, 232, .35) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

.pair { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 2px 0 20px; }
.bubble { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; }
.bubble svg { width: 36px; height: 36px; }
.bubble-v { background: #0f1015; border: 1px solid var(--line); }
.bubble-d { background: var(--discord); box-shadow: 0 10px 30px rgba(88, 101, 242, .45); }
.link-dots { display: flex; gap: 6px; }
.link-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .35; animation: hop 1.4s infinite; }
.link-dots i:nth-child(2) { animation-delay: .2s; }
.link-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes hop { 0%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

h1 { margin: 0 0 8px; text-align: center; font-size: clamp(26px, 6vw, 32px); line-height: 1.15; letter-spacing: -.6px; }
.lead { margin: 0 auto 18px; max-width: 420px; text-align: center; color: #c9cbd1; }

.roles { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 22px; }
.role { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 10px; border-radius: 999px;
  background: #0f1015; border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.role::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.role-free { color: #aab3c0; }
.role-basic { color: #9791ff; }
.role-plus { color: #8a83ff; }
.role-pro { color: var(--cyan); }

.steps { list-style: none; display: grid; gap: 10px; margin: 0 0 22px; padding: 14px; border-radius: 16px;
  background: #0f1015; border: 1px solid var(--line); }
.steps li { display: flex; align-items: center; gap: 12px; margin: 0; color: #d6d8dd; font-size: 15px; }
.steps span { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-2), var(--cyan)); color: #0b0c0f; font-weight: 800; font-size: 13px; }

form { display: flex; flex-direction: column; gap: 12px; margin: 0; }
label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 14px; }
input[type=email], input[type=password] {
  padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; background: #0c0d11; color: var(--text);
  font: inherit; transition: border-color .15s, box-shadow .15s;
}
input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(99, 91, 255, .25); }
button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 16px; border: 0;
  border-radius: 14px; font: inherit; font-weight: 700; cursor: pointer; transition: transform .08s, filter .15s; }
button:active { transform: translateY(1px); }
button:disabled { opacity: .55; cursor: progress; }
#link { margin-top: 4px; background: var(--discord); color: #fff; box-shadow: 0 10px 28px rgba(88, 101, 242, .35); }
#link:hover { filter: brightness(1.08); }
#link svg { width: 22px; height: 22px; }
#unlink { background: transparent; border: 1px solid var(--line); color: var(--muted); font-weight: 600; }
#unlink:hover { color: var(--text); border-color: #3a3d46; }
.error { min-height: 1.2em; margin: 0; color: var(--error); text-align: center; }
.fine { margin: 16px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; text-align: center; }

.done, .result { text-align: center; }
.big-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 4px auto 16px; border-radius: 50%;
  font-size: 34px; font-weight: 800; color: #0b0c0f; background: linear-gradient(135deg, var(--ok), var(--cyan));
  box-shadow: 0 12px 36px rgba(62, 207, 142, .35); }
.big-icon.warn { background: linear-gradient(135deg, #ffb35c, #f2777a); box-shadow: 0 12px 36px rgba(242, 119, 122, .3); }
.result p, .done p { color: #d6d8dd; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 14px; font-weight: 700;
  text-decoration: none; }
.btn-discord { background: var(--discord); color: #fff; box-shadow: 0 10px 28px rgba(88, 101, 242, .35); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }

footer { display: flex; justify-content: center; gap: 18px; margin-top: 22px; font-size: 13px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

@media (max-width: 420px) {
  .card { padding: 24px 18px 20px; border-radius: 20px; }
  .bubble { width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) { .link-dots i { animation: none; } }
