:root{
  --bg: #0b0f14;
  --stroke: rgba(255,255,255,.08);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --muted2: rgba(255,255,255,.52);
  --accent: #7c3aed;
  --accent2:#22c55e;
  --danger:#ef4444;
  --shadow: 0 12px 40px rgba(0,0,0,.45);
  --radius2: 24px;
  --max: 1100px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

*{ box-sizing: border-box; }
body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(124,58,237,.35), transparent 60%),
    radial-gradient(900px 450px at 100% 10%, rgba(34,197,94,.18), transparent 55%),
    var(--bg);
}

.mw-wrap{ padding: 28px 14px 60px; }
.mw-shell{ max-width: var(--max); margin: 0 auto; }

.mw-header{ margin: 0 auto 18px; padding: 20px 18px 12px; }

.mw-badge{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:8px 12px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
}

.mw-title{ margin: 14px 0 8px; font-size: 34px; line-height: 1.1; }
.mw-subtitle{ margin: 0; color: var(--muted); max-width: 72ch; }

.mw-grid{ display:grid; grid-template-columns: 1fr 1.6fr; gap: 16px; }

.mw-card{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--stroke);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding: 18px;
}

.mw-card-title{ margin: 0 0 6px; font-size: 18px; }
.mw-card-hint{ margin: 0 0 14px; color: var(--muted); }

.mw-form{ display:flex; flex-direction:column; gap: 12px; }

.mw-field label{ display:block; font-size: 13px; color: var(--muted); margin: 0 0 6px; }

.mw-field input{
  width:100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.22);
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

.mw-field input:focus{
  border-color: rgba(124,58,237,.55);
  box-shadow: 0 0 0 3px rgba(124,58,237,.18);
}

.mw-error{
  display:block;
  min-height: 16px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--danger);
}

.mw-check{
  display:flex;
  gap:10px;
  align-items:flex-start;
  user-select:none;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.03);
}
.mw-check input{ margin-top: 4px; }

.mw-btn{
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  cursor:pointer;
  font-weight: 700;
}
.mw-btn-primary{
  background: linear-gradient(135deg, rgba(124,58,237,.95), rgba(124,58,237,.65));
  color: white;
  border-color: rgba(124,58,237,.55);
}
.mw-btn-secondary{
  background: linear-gradient(135deg, rgba(34,197,94,.92), rgba(34,197,94,.55));
  color: #06120b;
  border-color: rgba(34,197,94,.55);
}
.mw-btn:disabled{ opacity:.65; cursor:not-allowed; }

.mw-legal{ margin: 0; color: var(--muted2); font-size: 12px; line-height: 1.4; }
.mw-legal a{ color: rgba(255,255,255,.85); }

.mw-status{ margin-top: 6px; font-size: 13px; color: var(--muted); }

.mw-hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

.mw-info{ padding-bottom: 10px; border-bottom: 1px solid var(--stroke); margin-bottom: 14px; }

.mw-ranges{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.mw-pill{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.18);
}
.mw-pill span{ color: var(--muted); font-size: 13px; }
.mw-pill strong{ font-size: 13px; }

.mw-gate{
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,.18);
  background: rgba(0,0,0,.16);
}
.mw-lock{ display:flex; gap: 12px; align-items:center; }
.mw-lock-ic{
  width: 40px; height: 40px; border-radius: 14px;
  display:grid; place-items:center;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.04);
}
.mw-lock-title{ margin:0; font-size: 15px; }
.mw-lock-sub{ margin: 2px 0 0; color: var(--muted); font-size: 13px; }

.mw-calc-grid{
  display:grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items:end;
}

.mw-result{
  margin-top: 14px;
  border-top: 1px solid var(--stroke);
  padding-top: 14px;
}

.mw-result-top{ display:flex; gap: 14px; flex-wrap: wrap; }

.mw-score, .mw-class{
  flex: 1; min-width: 220px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.18);
}
.mw-score span, .mw-class span{ display:block; color: var(--muted); font-size: 12px; }
.mw-score strong, .mw-class strong{ display:block; margin-top: 6px; font-size: 24px; }

.mw-bar{ margin-top: 12px; }
.mw-bar-track{
  height: 14px; border-radius: 999px;
  border: 1px solid var(--stroke);
  background:
    linear-gradient(90deg,
      rgba(124,58,237,.35) 0%,
      rgba(124,58,237,.25) 40%,
      rgba(34,197,94,.25) 55%,
      rgba(239,68,68,.25) 100%
    );
  position: relative;
  overflow:hidden;
}
.mw-bar-marker{
  position:absolute; top:50%;
  transform: translate(-50%, -50%);
  width: 14px; height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.92);
  background: rgba(0,0,0,.25);
  box-shadow: 0 8px 18px rgba(0,0,0,.35);
}
.mw-bar-labels{
  display:flex; justify-content:space-between;
  color: var(--muted2);
  font-size: 12px;
  margin-top: 8px;
}

.mw-result-text{ margin: 12px 0 0; color: var(--muted); }

.mw-reco{
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(124,58,237,.10), rgba(0,0,0,.12));
}
.mw-reco-title{ margin: 0 0 10px; }

.mw-reco-message{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.20);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
}
.mw-reco-message h4{ margin: 0 0 6px; }
.mw-reco-message p{ margin: 0; color: var(--muted); line-height: 1.5; }

.mw-products{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }

.mw-product{
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.16);
  border-radius: 18px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.mw-product-img{
  height: 220px;
  border-bottom: 1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  display:grid;
  place-items:center;
  padding: 12px;
}
.mw-product-img img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
}
.mw-product-body{
  padding: 12px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.mw-product-title{ margin: 0; font-size: 15px; }
.mw-product-points{ margin:0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.mw-product-body a{
  margin-top:auto;
  text-decoration:none;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(124,58,237,.55);
  background: rgba(124,58,237,.18);
  color: rgba(255,255,255,.92);
  font-weight: 700;
}

.mw-note{ margin: 10px 0 0; color: var(--muted2); font-size: 12px; }

.hidden{ display:none !important; }

@media (max-width: 980px){
  .mw-grid{ grid-template-columns: 1fr; }
  .mw-calc-grid{ grid-template-columns: 1fr; }
  .mw-products{ grid-template-columns: 1fr; }
  .mw-title{ font-size: 28px; }
}
