*{box-sizing:border-box}
body{margin:0;min-height:100vh;display:flex;justify-content:center;align-items:flex-start;padding:20px 14px;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:linear-gradient(160deg,#4f46e5,#06b6d4);color:#1e293b}
.card{width:100%;max-width:420px;background:#fff;border-radius:24px;padding:24px;box-shadow:0 20px 50px rgba(0,0,0,.25)}
h1{margin:0;font-size:1.6rem}
.sub{margin:4px 0 20px;color:#64748b}
.field{display:block;margin-bottom:18px}
.field>span{display:block;font-size:.85rem;font-weight:600;color:#475569;margin-bottom:8px}
.input{display:flex;align-items:center;gap:8px;background:#f1f5f9;border-radius:12px;padding:0 14px;border:2px solid transparent}
.input:focus-within{border-color:#4f46e5;background:#fff}
.input b{color:#64748b}
.input input{flex:1;min-width:0;border:0;background:transparent;font-size:1.4rem;padding:12px 0;outline:none;font-family:inherit;color:inherit}
.tips{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.tips button{border:0;border-radius:12px;padding:14px 0;font-size:1.05rem;font-weight:700;background:#eef2ff;color:#4f46e5;cursor:pointer;transition:.15s}
.tips button.active{background:#4f46e5;color:#fff;transform:scale(1.03)}
.custom{grid-column:span 1}
.custom input{font-size:1rem;width:100%}
.stepper{display:flex;align-items:center;justify-content:space-between;background:#f1f5f9;border-radius:12px;padding:6px}
.stepper button{width:48px;height:48px;border:0;border-radius:10px;background:#4f46e5;color:#fff;font-size:1.6rem;cursor:pointer}
.stepper output{font-size:1.6rem;font-weight:700}
.result{background:#0f172a;color:#fff;border-radius:18px;padding:20px;margin-top:6px}
.label{font-size:.8rem;text-transform:uppercase;letter-spacing:.08em;color:#94a3b8}
.big{font-size:2.8rem;font-weight:800;color:#5eead4;margin:2px 0 12px;word-break:break-all}
.rows div{display:flex;justify-content:space-between;padding:6px 0;border-top:1px solid #1e293b;color:#cbd5e1}
.rows b{color:#fff}
.reset{width:100%;margin-top:14px;padding:13px;border:0;border-radius:12px;background:#e2e8f0;font-weight:700;cursor:pointer;color:#334155}
