/* Relayea.com — matches Relay app design system */
:root {
  --bg: #07071f;
  --panel: #0e0e32;
  --raised: #16164a;
  --border: #2a2a62;
  --text: #f3f1ff;
  --muted: #9a96c4;
  --cyan: #00d2ff;
  --violet: #8a2be2;
  --magenta: #e639ff;
  --brand-grad: linear-gradient(125deg, var(--cyan) 0%, #4b6bff 42%, var(--violet) 68%, var(--magenta) 100%);
  --profit: #2bd67b;
  --loss: #ff5c6c;
  --warning: #ff8a3d;
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --shadow: 0 10px 36px rgba(2, 2, 20, 0.55);
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--magenta); }

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(780px 420px at 6% -12%, rgba(0, 210, 255, 0.16), transparent 58%),
    radial-gradient(640px 380px at 100% -4%, rgba(230, 57, 255, 0.14), transparent 55%),
    radial-gradient(520px 360px at 50% 110%, rgba(138, 43, 226, 0.1), transparent 60%),
    var(--bg);
}

.shell { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 7, 31, 0.88);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 0.7rem; color: inherit; }
.brand img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; }
.brand strong { display: block; font-size: 1.05rem; }
.brand em { display: block; font-style: normal; color: var(--muted); font-size: 0.78rem; }
.nav { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; }
.nav a { color: var(--muted); padding: 0.45rem 0.7rem; border-radius: 8px; }
.nav a:hover, .nav a.active { color: var(--text); background: rgba(255,255,255,0.04); }

.main { width: min(1100px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 4rem; flex: 1; }

.hero {
  display: grid;
  gap: 1.25rem;
  padding: 3.5rem 0 2.5rem;
  max-width: 720px;
}
.hero .mark {
  width: 56px; height: 56px; border-radius: 14px; object-fit: cover;
  box-shadow: var(--shadow);
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { margin: 0; color: var(--muted); font-size: 1.08rem; max-width: 36rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }

.btn {
  appearance: none; border: 0; cursor: pointer;
  border-radius: 10px; padding: 0.75rem 1.15rem;
  font-weight: 600; font-family: inherit; font-size: 0.95rem;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; color: var(--text);
}
.btn.primary {
  background: var(--brand-grad);
  color: #07071f;
  box-shadow: 0 0 18px rgba(0, 210, 255, 0.35), 0 0 36px rgba(230, 57, 255, 0.22);
}
.btn.ghost { background: #243041; color: var(--text); border: 1px solid var(--border); }
.btn.danger { background: rgba(255, 92, 108, 0.18); color: #ffb0b8; border: 1px solid rgba(255,92,108,0.35); }
.btn.block { width: 100%; }

.section { margin-top: 2.5rem; }
.section h2 { margin: 0 0 0.5rem; font-size: 1.35rem; }
.section .lead { margin: 0 0 1.25rem; color: var(--muted); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 800px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.auth-wrap { width: min(440px, 100%); margin: 2rem auto; }
.auth-wrap h1 { margin: 0 0 0.35rem; font-size: 1.7rem; }
.auth-wrap .sub { color: var(--muted); margin: 0 0 1.25rem; }

label.field { display: block; margin: 0.75rem 0; }
label.field span { display: block; color: var(--muted); font-size: 0.8rem; margin-bottom: 0.35rem; }
input, select, textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0f1419;
  color: var(--text);
  font: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(0, 210, 255, 0.35);
  border-color: var(--cyan);
}

.msg { margin-top: 0.85rem; padding: 0.7rem 0.85rem; border-radius: 8px; background: #0f1419; color: var(--muted); font-size: 0.9rem; }
.msg.ok { color: var(--profit); }
.msg.bad { color: #ffb0b8; }

.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th, .table td { text-align: left; padding: 0.65rem 0.5rem; border-bottom: 1px solid var(--border); }
.table th { color: var(--muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.pill {
  display: inline-block; padding: 0.15rem 0.5rem; border-radius: 999px;
  font-size: 0.75rem; background: #243041; color: var(--muted);
}
.pill.ok { background: #143528; color: var(--profit); }
.pill.admin { background: rgba(138,43,226,0.25); color: #d4b6ff; }

.foot {
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem;
  color: var(--muted);
  font-size: 0.82rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
}
@media (max-width: 800px) { .dash-grid { grid-template-columns: 1fr; } }
