:root{
  --bg:#070A12;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.04);
  --border: rgba(255,255,255,.12);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.65);
  --a:#7C5CFF;
  --b:#2EE59D;
  --r:18px;
  --max: 980px;
  --font: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  --shadow: 0 18px 50px rgba(0,0,0,.40);

  --good-bg:#ecfdf5;
  --good-t:#065f46;
  --good-b:#a7f3d0;

  --warn-bg:#fffbeb;
  --warn-t:#92400e;
  --warn-b:#fde68a;

  --bad-bg:#fef2f2;
  --bad-t:#991b1b;
  --bad-b:#fecaca;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background: linear-gradient(180deg, #050710, var(--bg));
  overflow-x:hidden;
  position:relative;
  isolation:isolate;
}

body::before,
body::after{
  content:"";
  position:fixed;
  inset:-20%;
  z-index:-1;
  pointer-events:none;
  transform:translateZ(0);
}

body::before{
  background:
    radial-gradient(700px 520px at 18% 18%, rgba(124,92,255,.22), transparent 62%),
    radial-gradient(650px 520px at 84% 22%, rgba(46,229,157,.16), transparent 62%),
    radial-gradient(780px 560px at 30% 86%, rgba(124,92,255,.12), transparent 65%);
  filter: blur(26px);
  opacity:.95;
}

body::after{
  background:
    radial-gradient(900px 620px at 70% 70%, rgba(46,229,157,.10), transparent 68%);
  filter: blur(34px);
  opacity:.75;
}

a{ color:inherit; text-decoration:none; }

/* ================= HEADER ================= */

header{
  position:sticky;
  top:0;
  z-index:10;
  background: rgba(7,10,18,.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.top{
  width:min(var(--max), calc(100% - 40px));
  margin:0 auto;
  padding:14px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:150px;
}

.logo{
  width:34px;
  height:34px;
  border-radius:14px;
  background: linear-gradient(135deg, rgba(124,92,255,.95), rgba(46,229,157,.9));
  border:1px solid rgba(255,255,255,.14);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}

.brand strong{ letter-spacing:.2px; }

nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.link{
  padding:9px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  font-size:14px;
  color: rgba(255,255,255,.85);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.link:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.22);
}

.link.active{
  border-color: rgba(124,92,255,.55);
  background: linear-gradient(135deg, rgba(124,92,255,.22), rgba(46,229,157,.12));
}

/* ================= WRAP ================= */

.wrap{
  width:min(var(--max), calc(100% - 40px));
  margin:18px auto 0;
  padding:28px;
  position:relative;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.10);
  border-radius: calc(var(--r) + 6px);
  box-shadow: 0 30px 90px rgba(0,0,0,.45);
}

.wrap::before{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius:inherit;
  pointer-events:none;
  background:
    radial-gradient(600px 220px at 12% 10%, rgba(124,92,255,.14), transparent 60%),
    radial-gradient(600px 220px at 88% 0%, rgba(46,229,157,.10), transparent 60%);
  opacity:.9;
  filter: blur(2px);
}

.wrap > *{ position:relative; }

/* ================= HERO ================= */

.hero{
  padding:26px;
  border-radius:var(--r);
  border:1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
}

.hero::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(520px 180px at 10% 10%, rgba(124,92,255,.22), transparent 60%),
    radial-gradient(520px 180px at 90% 0%, rgba(46,229,157,.14), transparent 60%);
  pointer-events:none;
}

.hero > *{ position:relative; }

h1{
  margin:0 0 10px;
  font-size: clamp(30px, 4.2vw, 44px);
  line-height:1.1;
  letter-spacing:-0.6px;
}

.lead{
  margin:0;
  max-width:70ch;
  color:var(--muted);
  line-height:1.7;
  font-size:16px;
}

/* ================= SECTIONS ================= */

.section{
  margin-top:14px;
  padding:20px;
  border-radius:var(--r);
  border:1px solid rgba(255,255,255,.10);
  background: var(--panel2);
}

.section h2{
  margin:0 0 8px;
  font-size:18px;
  letter-spacing:.2px;
}

.section p{
  margin:0;
  color:var(--muted);
  line-height:1.7;
  font-size:14px;
  max-width:78ch;
}

/* ================= FORM ================= */

.form{ margin-top:18px; }

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}

.field{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:12px;
}

.label{
  font-size:13px;
  color: rgba(255,255,255,.86);
  letter-spacing:.2px;
}

.hint{
  font-size:12px;
  color: rgba(255,255,255,.55);
}

.input,
.textarea{
  width:100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(7,10,18,.34);
  color: var(--text);
  padding: 12px 12px;
  outline: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
}

.textarea{ resize: vertical; min-height: 140px; }

.input:focus,
.textarea:focus{
  border-color: rgba(124,92,255,.55);
  box-shadow: 0 0 0 3px rgba(124,92,255,.16), 0 18px 50px rgba(0,0,0,.35);
}

.rating{
  margin-top:12px;
  padding:14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(7,10,18,.24);
}

.stars{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
}

.star{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  cursor:pointer;
  user-select:none;
}

.star input{ accent-color: var(--a); }
.star span{ letter-spacing:1px; font-size:14px; color: rgba(255,255,255,.82); }
.star em{ font-style: normal; color: rgba(255,255,255,.55); font-size: 12px; }

.check{
  margin-top:14px;
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}

.check input{ margin-top:3px; accent-color: var(--b); }
.check span{ color: rgba(255,255,255,.70); font-size: 13px; line-height: 1.5; }

.actions{
  margin-top: 14px;
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
}

/* ================= BUTTONS ================= */

.btn{
  padding:10px 12px;
  border-radius:14px;
  border: 1px solid rgba(46,229,157,.45);
  background: linear-gradient(135deg, rgba(46,229,157,.16), rgba(124,92,255,.10));
  font-weight:700;
  display:inline-flex;
  align-items:center;
  gap:10px;
}

.btn.ghost{
  margin-top: 14px;
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
}

.btn:hover{
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.spark{
  width:10px;
  height:10px;
  border-radius:999px;
  background: var(--b);
  box-shadow: 0 0 0 3px rgba(46,229,157,.14);
}

.muted{ color: var(--muted); font-size: 13px; }
.tiny{ font-size: 12px; }

/* ================= REVIEWS LIST ================= */

.summary{
  margin-top:16px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.score-main{
  display:flex;
  align-items:baseline;
  gap:12px;
}

.score-main b{
  font-size: 34px;
  letter-spacing: -0.4px;
}

.starsline{
  color: rgba(255,255,255,.75);
  letter-spacing: 2px;
  font-size: 14px;
}

.chips{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.chip{
  padding: 9px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.75);
  font-size: 13px;
}

.chip.active{
  border-color: rgba(124,92,255,.55);
  background: linear-gradient(135deg, rgba(124,92,255,.18), rgba(46,229,157,.10));
  color: rgba(255,255,255,.88);
}

.list{
  margin-top: 14px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.review{
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(7,10,18,.26);
}

.review-top{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  flex-wrap:wrap;
}

.who{
  display:flex;
  gap:10px;
  align-items:center;
}

.avatar{
  width:36px;
  height:36px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background: linear-gradient(135deg, rgba(124,92,255,.22), rgba(46,229,157,.14));
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.88);
  font-weight:800;
}

.meta{
  display:flex;
  gap:10px;
  align-items:center;
}

.starsmini{
  letter-spacing: 1px;
  color: rgba(255,255,255,.75);
  font-size: 13px;
}

.title{
  margin: 12px 0 6px;
  font-size: 16px;
  letter-spacing: .1px;
}

.text{
  margin:0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
  max-width: 80ch;
}

.review-foot{
  margin-top: 12px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.tag{
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.70);
}

/* ================= BADGES ================= */

.badge{
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.78);
}

.badge.good{
  background: rgba(46,229,157,.12);
  border-color: rgba(46,229,157,.30);
  color: rgba(46,229,157,.95);
}

.badge.warn{
  background: rgba(255,204,92,.10);
  border-color: rgba(255,204,92,.25);
  color: rgba(255,204,92,.95);
}

.badge.bad{
  background: rgba(255,92,122,.10);
  border-color: rgba(255,92,122,.25);
  color: rgba(255,92,122,.95);
}

/* ================= FOOTER ================= */

footer{
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.55);
  font-size: 13px;
  text-align:center;
}

/* ================= MOBILE ================= */

@media (max-width: 740px){
  .grid{ grid-template-columns: 1fr; }
}

@media (max-width: 520px){
  .wrap{
    width: calc(100% - 28px);
    padding: 18px;
  }
  .top{ width: calc(100% - 28px); }
  .hero{ padding: 20px; }
  .section{ padding: 18px; }
}
