:root {
  --bg: #060913;
  --bg-soft: #111a33;
  --text: #edf2ff;
  --muted: #b4c0e6;
  --card: rgba(12, 20, 40, 0.8);
  --border: rgba(168, 188, 255, 0.22);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at 0% 0%, rgba(78, 208, 255, 0.2), transparent 28%),
    radial-gradient(circle at 100% 0%, rgba(147, 89, 255, 0.22), transparent 33%),
    radial-gradient(circle at 50% 120%, rgba(88, 122, 255, 0.26), transparent 42%),
    linear-gradient(170deg, #091127 0%, #060913 58%, #05070f 100%);
  color: var(--text);
  min-height: 100vh;
}

.background-glow { position: fixed; width: 320px; height: 320px; border-radius: 50%; filter: blur(110px); pointer-events: none; z-index: -1; }
.glow-left { background: rgba(78, 208, 255, 0.24); left: -120px; top: 18%; }
.glow-right { background: rgba(166, 106, 255, 0.25); right: -130px; top: -60px; }

.topbar, .layout, .footer-inner, .main-shell { width: min(1120px, 92vw); margin: 0 auto; }
.topbar { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 2rem 0 1rem; }
.topbar-actions { display: flex; gap: .6rem; }
.brand { display: flex; align-items: center; gap: 0.9rem; }
.logo-mark { width: 56px; height: 56px; border-radius: 16px; box-shadow: 0 14px 34px rgba(95, 138, 255, 0.45); }
.logo-mark svg { display: block; width: 100%; height: 100%; }
h1, h2, h3, p { margin: 0; }
.brand p { color: var(--muted); margin-top: 0.15rem; }


.main-shell { padding-bottom: 2.4rem; }

.login-view {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
  padding: 1.5rem;
}

.login-view h2 {
  margin-top: .5rem;
  line-height: 1.3;
}

#appView { width: 100%; }
.layout { display: grid; grid-template-columns: 360px 1fr; gap: 1.15rem; padding-bottom: 2.4rem; align-items: start; }

.panel-actions {
  margin-top: .7rem;
  display: flex;
  gap: .55rem;
}

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

.hero-grid {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

.hero-card {
  border: 1px solid rgba(168, 188, 255, 0.2);
  border-radius: 14px;
  padding: .85rem;
  background: rgba(255, 255, 255, 0.04);
}

.hero-card h3 {
  font-size: .95rem;
  margin-bottom: .35rem;
}

.hero-card p {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.45;
}

.how-it-works {
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  padding-top: .9rem;
}

.how-it-works h3 {
  font-size: .95rem;
  margin-bottom: .45rem;
}

.how-it-works ol {
  margin: 0;
  padding-left: 1.1rem;
  color: #d7e2ff;
  display: grid;
  gap: .35rem;
  font-size: .9rem;
}
.card { border: 1px solid var(--border); background: var(--card); backdrop-filter: blur(14px); border-radius: 18px; padding: 1.3rem; box-shadow: 0 16px 48px rgba(2, 8, 24, 0.48); }
.card-soft { border: 1px solid var(--border); border-radius: 14px; padding: .9rem; background: rgba(255,255,255,.03); }
.intro-panel { background: linear-gradient(180deg, rgba(95, 135, 255, 0.18), rgba(71, 203, 255, 0.06) 55%, transparent), var(--card); border-color: rgba(144, 172, 255, 0.35); box-shadow: 0 18px 54px rgba(32, 57, 126, 0.32); }
.intro-points { margin-top: 1rem; display: grid; gap: 0.5rem; color: #d8e2ff; font-size: 0.92rem; }
.panel { align-self: start; position: sticky; top: 1rem; }
.stack { display: flex; flex-direction: column; gap: 0.65rem; margin-top: 0.9rem; }
.sep { border: 0; border-top: 1px solid var(--border); margin: 1rem 0; }


.auth-box {
  border: 1px solid rgba(124, 151, 255, 0.25);
  border-radius: 14px;
  padding: 1rem;
  background: linear-gradient(160deg, rgba(88,101,242,.2), rgba(88,101,242,.06));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

.auth-eyebrow {
  color: #c4d1ff;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .35rem;
}

.auth-box h3 {
  margin-top: .2rem;
  margin-bottom: .45rem;
  font-size: 1.05rem;
  line-height: 1.35;
}

.auth-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .8rem;
}

.auth-benefits span {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: .3rem .58rem;
  background: rgba(255,255,255,.07);
  font-size: .78rem;
}

input:disabled {
  opacity: .55;
  cursor: not-allowed;
}

label { font-size: 0.94rem; color: var(--muted); }
input, select, button { font: inherit; }
input, select {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)), var(--bg-soft);
  color: var(--text);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, select:focus { outline: none; border-color: rgba(116, 154, 255, 0.85); box-shadow: 0 0 0 3px rgba(96, 138, 255, 0.18); }

.btn { border: 0; padding: 0.72rem 1rem; border-radius: 11px; cursor: pointer; font-weight: 600; transition: transform 0.15s ease, box-shadow 0.2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, #4f83ff, #6c8eff); box-shadow: 0 8px 24px rgba(76, 124, 255, 0.33); }
.btn-secondary { color: var(--text); background: rgba(255, 255, 255, 0.12); }
.btn-discord { color: #fff; background: linear-gradient(135deg, #5865F2, #7289ff); box-shadow: 0 12px 28px rgba(88,101,242,.34); margin-top: .9rem; width: 100%; }
.btn-report { margin-top: .55rem; padding: .42rem .7rem; background: rgba(239,84,102,.18); color: #ffd9df; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.muted { color: var(--muted); margin-top: 0.45rem; }
.feedback { margin-top: 0.4rem; min-height: 1.2rem; font-size: 0.92rem; }
.warning { color: #ffd285; }

.profile { display: flex; flex-direction: column; gap: 1rem; }
.profile-header { display: flex; justify-content: space-between; align-items: center; }
.tag { color: var(--muted); font-size: 0.85rem; }
.owner-badge { margin-top: .4rem; color: #a9c1ff; font-size: .9rem; }
.trust-pill { padding: 0.45rem 0.7rem; border-radius: 999px; font-size: 0.86rem; font-weight: 600; background: rgba(255, 255, 255, 0.13); }

.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 0.75rem; }
.stat { padding: 0.95rem; border-radius: 12px; border: 1px solid var(--border); }
.stat p { font-size: 2rem; font-weight: 700; margin-top: 0.45rem; }
.stat.legit { background: rgba(46, 206, 139, 0.11); }
.stat.sold { background: rgba(246, 186, 77, 0.13); }
.stat.scam { background: rgba(239, 84, 102, 0.13); }

.owner-panel { border: 1px solid rgba(130,162,255,.3); border-radius: 14px; padding: 1rem; background: linear-gradient(170deg, rgba(90,128,255,.12), rgba(90,128,255,.05)); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.owner-actions { margin-top: .6rem; }

.review-form { border: 1px solid rgba(130, 162, 255, 0.2); border-radius: 14px; padding: 1rem; background: linear-gradient(180deg, rgba(76,124,255,0.08), rgba(76,124,255,0.03)); }
.rating-grid { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 0.7rem; }
.rating-card { position: relative; border: 1px solid var(--border); border-radius: 14px; padding: 0.85rem; background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)); cursor: pointer; transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease; display: flex; flex-direction: column; gap: .3rem; }
.rating-card input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.rating-card .title { font-weight: 700; color: #fff; }
.rating-card small { color: var(--muted); font-size: .8rem; }
.rating-card:hover { transform: translateY(-2px); border-color: rgba(138,165,255,.65); }
.rating-card:has(input:checked) { border-color: rgba(125, 164, 255, 0.95); box-shadow: 0 0 0 3px rgba(92, 142, 255, 0.2); }
.rating-legit:has(input:checked) { background: rgba(46, 206, 139, 0.16); }
.rating-sold:has(input:checked) { background: rgba(246, 186, 77, 0.16); }
.rating-scam:has(input:checked) { background: rgba(239, 84, 102, 0.16); }

.reviews { list-style: none; padding: 0; margin: 0.75rem 0 0; display: grid; gap: 0.62rem; }
.review { border: 1px solid var(--border); border-radius: 12px; padding: 0.72rem; background: rgba(255, 255, 255, 0.04); }
.review-head { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.88rem; margin-bottom: 0.35rem; }
.review-author { color: #9fb2ff; display: inline-block; margin-top: 0.45rem; }

.empty-state { border-style: dashed; }
.hidden { display: none; }
code { background: rgba(255, 255, 255, 0.08); padding: 0.15rem 0.4rem; border-radius: 6px; }

.footer { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 1.1rem 0 1.6rem; background: rgba(6, 10, 21, 0.38); }
.footer-inner { display: flex; justify-content: space-between; gap: 0.9rem; align-items: center; color: var(--muted); font-size: 0.9rem; }
.footer nav { display: flex; gap: 1rem; }
.footer a { color: #d8e2ff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .panel { position: static; }
  .stats-grid, .rating-grid, .hero-grid { grid-template-columns: 1fr; }
  .topbar, .footer-inner, .topbar-actions { flex-direction: column; align-items: flex-start; }
}
