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

:root {
  color-scheme: dark;
  --c31-bg: #050506;
  --c31-cyan: #6ef7ff;
  --c31-white: #ffffff;
  --c31-pink: #ffc7fb;
  --c31-magenta: #ff8af4;
  --c31-text: #f8f8fa;
  --c31-muted: rgba(255, 255, 255, 0.62);
  --c31-faint: rgba(255, 255, 255, 0.39);
  --c31-line: rgba(255, 255, 255, 0.13);
  --c31-line-strong: rgba(255, 255, 255, 0.25);
  --c31-surface: rgba(255, 255, 255, 0.035);
  --c31-surface-2: rgba(255, 255, 255, 0.065);
  --c31-gradient: linear-gradient(112deg, var(--c31-cyan), var(--c31-white) 46%, var(--c31-pink) 68%, var(--c31-magenta));
  --c31-radius: 16px;
  --c31-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --c31-focus: 0 0 0 3px rgba(110, 247, 255, 0.24);
}

* { box-sizing: border-box; }

html { min-height: 100%; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--c31-bg);
  color: var(--c31-text);
  font-family: 'Manrope', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, #000, rgba(0, 0, 0, 0.38) 70%, transparent);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(60vw 50vw at 8% -12%, rgba(110, 247, 255, 0.09), transparent 72%),
    radial-gradient(56vw 46vw at 96% 100%, rgba(255, 138, 244, 0.08), transparent 72%);
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
img, svg { display: block; max-width: 100%; }

:focus-visible { outline: none; box-shadow: var(--c31-focus); }

.c31-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.c31-gradient-text {
  color: transparent;
  background: var(--c31-gradient);
  background-clip: text;
  -webkit-background-clip: text;
}

.c31-brand-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.c31-gm {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--c31-white);
  text-decoration: none;
  min-width: 0;
}

.c31-gm img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 8px;
}

.c31-gm span {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.3em;
  white-space: nowrap;
}

.c31-lockup {
  width: auto;
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--c31-white);
  font-family: 'Sora', system-ui, sans-serif;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.055em;
}

.c31-lockup__symbol { width: 26px; height: 38px; flex: none; object-fit: contain; }
.c31-lockup__word { font-size: 17px; }
.c31-lockup__number { font-size: 17px; color: var(--c31-pink); }
.c31-lockup--large { gap: 12px; }
.c31-lockup--large .c31-lockup__symbol { width: 48px; height: 70px; }
.c31-lockup--large .c31-lockup__word,
.c31-lockup--large .c31-lockup__number { font-size: 34px; }

.c31-btn {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--c31-line);
  border-radius: 10px;
  background: var(--c31-surface-2);
  color: var(--c31-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.035em;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, opacity 160ms ease;
}

.c31-btn:hover { border-color: var(--c31-line-strong); background: rgba(255, 255, 255, 0.09); }
.c31-btn:active { transform: translateY(1px) scale(0.99); }
.c31-btn:disabled { opacity: 0.42; cursor: not-allowed; transform: none; }

.c31-btn--primary {
  border: 0;
  color: #070709;
  background: var(--c31-gradient);
  box-shadow: 0 12px 32px -18px rgba(110, 247, 255, 0.9), 0 12px 32px -18px rgba(255, 138, 244, 0.9);
}

.c31-btn--primary:hover { background: var(--c31-gradient); filter: brightness(1.04); }
.c31-btn--outline { border-color: rgba(110, 247, 255, 0.62); background: transparent; }
.c31-btn--quiet { background: transparent; }
.c31-btn--small { min-height: 36px; padding: 0 12px; font-size: 11px; border-radius: 8px; }

.c31-icon {
  width: 20px;
  height: 20px;
  flex: none;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.c31-field { display: grid; gap: 7px; }
.c31-field label,
.c31-field-label {
  color: var(--c31-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.c31-input,
.c31-select,
.c31-textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--c31-line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--c31-text);
  padding: 10px 12px;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease;
}

.c31-textarea { min-height: 88px; resize: vertical; }
.c31-input:focus, .c31-select:focus, .c31-textarea:focus { border-color: rgba(110, 247, 255, 0.7); background: rgba(255, 255, 255, 0.05); }
.c31-input::placeholder, .c31-textarea::placeholder { color: var(--c31-faint); }
.c31-select { color-scheme: dark; }

.c31-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c31-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.c31-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 13%, transparent);
}

.c31-status--cyan { color: var(--c31-cyan); }
.c31-status--pink { color: var(--c31-pink); }
.c31-status--muted { color: var(--c31-faint); }

.c31-toast-region {
  position: fixed;
  z-index: 100;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  width: min(360px, calc(100vw - 36px));
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.c31-toast {
  padding: 13px 15px;
  border: 1px solid var(--c31-line-strong);
  border-radius: 10px;
  background: rgba(10, 10, 12, 0.95);
  color: var(--c31-text);
  box-shadow: var(--c31-shadow);
  font-size: 13px;
  line-height: 1.45;
  animation: c31-toast-in 200ms ease both;
}

.c31-toast[data-tone='error'] { border-color: rgba(255, 138, 244, 0.68); color: var(--c31-pink); }

.c31-dialog {
  width: min(520px, calc(100vw - 28px));
  max-height: min(820px, calc(100dvh - 28px));
  padding: 0;
  overflow: auto;
  border: 1px solid var(--c31-line-strong);
  border-radius: 16px;
  background: #09090b;
  color: var(--c31-text);
  box-shadow: var(--c31-shadow);
}

.c31-dialog::backdrop { background: rgba(0, 0, 0, 0.78); backdrop-filter: blur(5px); }
.c31-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 22px 0; }
.c31-dialog__head h2 { margin: 0; font-family: 'Sora', sans-serif; font-size: 20px; }
.c31-dialog__body { display: grid; gap: 16px; padding: 20px 22px 22px; }
.c31-dialog__close { border: 0; background: transparent; color: var(--c31-muted); cursor: pointer; padding: 4px; border-radius: 6px; }

.c31-empty {
  min-height: 260px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 34px 22px;
}

.c31-empty__inner { max-width: 390px; }
.c31-empty img { width: 64px; margin: 0 auto 18px; opacity: 0.9; }
.c31-empty h2 { margin: 0; font-family: 'Sora', sans-serif; font-size: clamp(24px, 6vw, 38px); letter-spacing: -0.04em; }
.c31-empty p { margin: 12px 0 0; color: var(--c31-muted); line-height: 1.6; }

.c31-spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--c31-line);
  border-top-color: var(--c31-cyan);
  animation: c31-spin 700ms linear infinite;
}

@keyframes c31-spin { to { transform: rotate(360deg); } }
@keyframes c31-toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 600px) {
  .c31-gm span { font-size: 9px; letter-spacing: 0.2em; }
  .c31-gm img { width: 32px; height: 32px; }
  .c31-lockup { gap: 6px; }
  .c31-lockup__symbol { width: 22px; height: 32px; }
  .c31-lockup__word, .c31-lockup__number { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
