body { background: var(--bg); font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--text-primary); }
.container { max-width: 920px; margin: 120px auto 28px; padding: 20px; }
.app-header { display:flex; align-items:center; justify-content:center; gap:16px; margin: 0; position: fixed; top: 0; left: 0; right: 0; z-index: 80; background: var(--bg); }
.brand-mark { width: 140px; height:44px; border-radius:12px; display:grid; place-items:center; background:#0b1220; color:#fff; font-weight:800; box-shadow: 0 6px 16px rgba(2,6,23,.4); }
.brand { display:flex; align-items:center; gap:12px; margin: 0 auto; }
.card { background: var(--card-bg); border:1px solid var(--card-border); border-radius: 14px; padding: 22px; box-shadow: 0 8px 30px rgba(10,20,40,.06); }
.field { display:flex; flex-direction:column; gap:8px; }
.form-row { margin-bottom: 14px; }
.field input[type="text"], .field input[type="file"], .field select { height:46px; padding:10px 14px; border:1px solid var(--card-border); border-radius:12px; background:#fff; appearance: none; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #111827; box-shadow: 0 0 0 3px rgba(17,24,39,.08); }


.input-group {
  display: flex;
  align-items: flex-start;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: #fff;
  height: 46px; 
}

.input-group-prefix {
  padding: 2px 14px 0 14px;
  color: var(--text-secondary);
  font-weight: bold;
  height: 100%; 
  display: flex;
  align-items: center;
  background: #f0f2f5;
  border-right: 1px solid var(--card-border);
  border-radius: 12px 0 0 12px; 
  font-size: 18px;
  box-sizing: border-box; 
}

.input-group input[type="text"] {
  border: none; 
  flex-grow: 1;
  padding: 10px 14px;
  height: 100%; 
  border-radius: 0 12px 12px 0; 
  background: transparent;
  box-sizing: border-box; 
}

.input-group input[type="text"]:focus {
  box-shadow: none;
  border-color: transparent;
}


.fee-slider-container { position: relative; }
.fee-heatmap { 
  position: relative; 
  height: 8px; 
  background: linear-gradient(to right, #10b981 0%, #22c55e 20%, #84cc16 40%, #facc15 60%, #f97316 80%, #ef4444 100%);
  border-radius: 4px; 
  margin-bottom: 8px;
  opacity: 0.3;
}
.existing-fees { position: relative; height: 100%; }
.fee-dot { 
  position: absolute; 
  width: 10px; 
  height: 10px; 
  background: #0b1220; 
  border: 2px solid #fff;
  border-radius: 50%; 
  top: -1px;
  transform: translateX(-50%);
  cursor: help;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.fee-dot:hover { transform: translateX(-50%) scale(1.3); box-shadow: 0 3px 6px rgba(0,0,0,0.3); }

#fee-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  outline: none;
  appearance: none;
}
#fee-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0b1220;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(11,18,32,.2);
}
#fee-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0b1220;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(11,18,32,.2);
}

.slider-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
#fee-display { font-weight: 700; color: #0b1220; }
.field textarea { min-height:120px; padding:12px 14px; border:1px solid var(--card-border); border-radius:12px; }
label span { font-size:14px; color:var(--text-primary); margin-bottom:6px; display:block; }
.inline-label { display: inline-flex; align-items: baseline; gap: 4px; }
button { height:46px; padding:0 18px; border-radius:12px; border: 0; background:#0b1220; color:#fff; font-weight:800; cursor:pointer; box-shadow: 0 6px 12px rgba(11,18,32,.12); }

.methods-grid { display:flex; gap:10px; flex-wrap:wrap; }
.methods-grid label { display:flex; align-items:center; gap:8px; background:#f8fafc; padding:8px 10px; border-radius:10px; border:1px solid var(--card-border); }
.form-actions { display: flex; justify-content: center; margin-top: 24px; }

.score-box { padding: 12px; border-radius: 10px; background: #fff; border: 1px solid var(--card-border); margin-bottom:12px; }

.score-box.low #g1 stop:first-child,
.score-badge.low #g1 stop:first-child { stop-color: #f97316; }
.score-box.low #g1 stop:last-child,
.score-badge.low #g1 stop:last-child { stop-color: #ea580c; }
.score-box.mid #g1 stop:first-child,
.score-badge.mid #g1 stop:first-child { stop-color: #f59e0b; }
.score-box.mid #g1 stop:last-child,
.score-badge.mid #g1 stop:last-child { stop-color: #d97706; }
.score-box.high #g1 stop:first-child,
.score-badge.high #g1 stop:first-child { stop-color: #06b6d4; }
.score-box.high #g1 stop:last-child,
.score-badge.high #g1 stop:last-child { stop-color: #16a34a; }

.score-badge { display:flex; align-items:center; gap:12px; }

.circular-score { position: relative; width: 84px; height: 84px; display:inline-block; }
.circular-score svg { display: block; }
.circular-score .score-center { position: absolute; inset: 0; display:flex; flex-direction:column; align-items:center; justify-content:center; font-weight:800; color:var(--text-primary); }
.circular-score .score-center #score-number { font-size:20px; line-height:1; color:var(--text-primary); transform: translateY(-2px); }
.circular-score .score-center .score-level { display: none; }

.score-label { font-size:18px; color:var(--text-primary); font-weight:700; margin:0; order:-1; }
.circle-track { stroke: var(--card-border); stroke-width:10; }
.circle-progress { stroke-dasharray: 326.9; stroke-dashoffset: 326.9; transition: stroke-dashoffset 480ms cubic-bezier(.2,.9,.2,1), stroke 360ms ease; stroke-width:10; stroke-linecap:round; }

.header-score {
  display:flex;
  align-items:center;
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  padding: 8px 0;
  box-shadow: 0 6px 18px rgba(2,6,23,0.06);
  border-bottom: 1px solid rgba(15,23,42,0.04);
  width: 100%;
  justify-content: center;
}

.header-score {
  position: sticky;
  top: 0;
  z-index: 60;
}

.back-arrow { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); display: block; z-index: 90; }
.back-arrow img { width: 30px; height: 30px; transform: rotate(90deg); filter: invert(30%); }


@media (max-width:760px) {
  .container { padding: 16px; }
  .brand-mark { width: 110px; }
  .methods-grid { flex-direction:column; }
  .app-header { flex-wrap: wrap; }
  .header-score { margin-top: 12px; width: 100%; justify-content: center; }
}


