:root {
  --bg: #070b0d;
  --bg2: #0a1013;
  --surface: #0e1519;
  --surface2: #131c21;
  --surface3: #1a252b;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.13);
  --text: #e8f0ee;
  --muted: #7c8a89;
  --muted2: #9fb0ad;
  --green: #22c55e;
  --green2: #4ade80;
  --green-dim: rgba(34,197,94,0.12);
  --red: #f43f5e;
  --red-dim: rgba(244,63,94,0.12);
  --yellow: #fbbf24;
  --blue: #38bdf8;
  --shadow: 0 10px 40px rgba(0,0,0,0.5);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 14px; line-height: 1.55;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(34,197,94,0.10), transparent 60%),
    radial-gradient(700px 500px at 0% 0%, rgba(56,189,248,0.06), transparent 55%),
    var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green2); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }
input, button { font-family: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px 80px; }

/* Top bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; max-width: 1120px; margin: 0 auto;
  position: -webkit-sticky;
  position: sticky; top: 0; z-index: 40;
  background: linear-gradient(180deg, rgba(7,11,13,0.92), rgba(7,11,13,0.6));
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand .logo {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--green), #15803d);
  display: grid; place-items: center; font-size: 20px;
  box-shadow: 0 4px 16px rgba(34,197,94,0.35);
}
.brand h1 { font-size: 16px; font-weight: 700; letter-spacing: -0.2px; }
.brand .sub { font-size: 11px; color: var(--muted); font-weight: 500; }

/* Hero */
.hero { text-align: center; padding: 46px 0 26px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600;
  color: var(--green2); background: var(--green-dim); border: 1px solid rgba(34,197,94,0.25);
  padding: 5px 13px; border-radius: 999px; margin-bottom: 18px;
}
.hero h2 { font-size: 40px; font-weight: 800; letter-spacing: -1.2px; line-height: 1.08; }
.hero h2 .accent { background: linear-gradient(120deg, var(--green2), var(--blue)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { color: var(--muted2); max-width: 560px; margin: 14px auto 0; font-size: 15px; }

/* Grid + cards */
.grid { display: grid; grid-gap: 18px; gap: 18px; }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .cols-2, .cols-3 { grid-template-columns: 1fr; } }
.card {
  background: linear-gradient(180deg, var(--surface2), var(--surface));
  border: 1px solid var(--border); border-radius: 18px; padding: 22px;
  box-shadow: var(--shadow);
}
.card.hero-card { border-color: rgba(34,197,94,0.2); box-shadow: 0 12px 50px rgba(34,197,94,0.08), var(--shadow); }
.card-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-title h3 { font-size: 15px; font-weight: 700; letter-spacing: -0.2px; }
.card-title .hint { font-size: 12px; color: var(--muted); }

/* Stats */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); grid-gap: 12px; gap: 12px; }
.stat { background: var(--surface3); border: 1px solid var(--border); border-radius: 13px; padding: 13px 15px; }
.stat .k { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.stat .v { font-size: 20px; font-weight: 750; margin-top: 4px; letter-spacing: -0.3px; }
.stat .v.green { color: var(--green2); }
.stat .v.red { color: var(--red); }
.stat .v small { font-size: 12px; color: var(--muted); font-weight: 500; }

/* Inputs */
.field { margin-bottom: 18px; }
.field label { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted2); font-weight: 600; margin-bottom: 8px; }
.field label .bal { color: var(--muted); font-weight: 500; }
.amount-input { display: flex; align-items: center; gap: 10px; background: var(--bg2); border: 1px solid var(--border2); border-radius: 13px; padding: 12px 14px; transition: border-color .15s; }
.amount-input:focus-within { border-color: rgba(34,197,94,0.5); }
.amount-input input { flex: 1 1; background: none; border: none; outline: none; color: var(--text); font-size: 22px; font-weight: 700; width: 100%; }
.amount-input .token { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px; color: var(--muted2); white-space: nowrap; }
.tok-badge { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.tok-badge.pepe { background: linear-gradient(135deg,#22c55e,#15803d); color: #04140a; }
.tok-badge.usdc { background: linear-gradient(135deg,#2775ca,#1e5fa8); color: #fff; }

input[type=range] { -webkit-appearance: none; width: 100%; height: 6px; border-radius: 999px; background: var(--surface3); outline: none; margin: 6px 0 2px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--green); cursor: pointer; border: 3px solid #06110a; box-shadow: 0 0 0 1px var(--green); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--green); cursor: pointer; border: 3px solid #06110a; }
.range-ticks { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 4px; }
.range-ticks button { background: none; color: var(--muted); font-size: 11px; padding: 2px 4px; border-radius: 6px; }
.range-ticks button:hover { color: var(--green2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 14px; border-radius: 12px; padding: 13px 18px; transition: transform .08s, filter .15s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-green { background: linear-gradient(135deg, var(--green), #16a34a); color: #04140a; box-shadow: 0 6px 20px rgba(34,197,94,0.3); width: 100%; font-size: 16px; padding: 16px; }
.btn-green:hover { filter: brightness(1.06); }
.btn-green:disabled { opacity: 0.45; cursor: not-allowed; filter: grayscale(0.3); }
.btn-ghost { background: var(--surface3); color: var(--text); border: 1px solid var(--border2); }
.btn-ghost:hover { border-color: var(--green2); color: var(--green2); }
.btn-red { background: var(--red-dim); color: var(--red); border: 1px solid rgba(244,63,94,0.3); width: 100%; }
.btn-red:hover { background: rgba(244,63,94,0.2); }

/* Projections */
.proj { display: grid; grid-template-columns: repeat(4,1fr); grid-gap: 10px; gap: 10px; margin-top: 4px; }
@media (max-width: 620px){ .proj { grid-template-columns: repeat(2,1fr); } }
.proj .cell { background: var(--surface3); border: 1px solid var(--border); border-radius: 12px; padding: 12px; text-align: center; }
.proj .cell .lbl { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.proj .cell .amt { font-size: 17px; font-weight: 750; color: var(--green2); margin-top: 3px; }

.note { font-size: 12.5px; color: var(--muted2); background: var(--bg2); border: 1px solid var(--border); border-left: 3px solid var(--yellow); border-radius: 9px; padding: 11px 13px; margin-top: 14px; }
.note.risk { border-left-color: var(--red); }
.divider { height: 1px; background: var(--border); margin: 18px 0; }

/* Floor pill */
.floor-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.floor-pill.above { background: var(--green-dim); color: var(--green2); border: 1px solid rgba(34,197,94,0.3); }
.floor-pill.below { background: var(--red-dim); color: var(--red); border: 1px solid rgba(244,63,94,0.3); }
.floor-pill.at { background: var(--surface3); color: var(--muted2); border: 1px solid var(--border2); }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.g { background: var(--green); box-shadow: 0 0 8px var(--green); }
.dot.r { background: var(--red); box-shadow: 0 0 8px var(--red); }
.dot.y { background: var(--yellow); box-shadow: 0 0 8px var(--yellow); }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(3,6,8,0.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal { width: 100%; max-width: 460px; background: linear-gradient(180deg, var(--surface2), var(--surface)); border: 1px solid var(--border2); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.modal h3 { font-size: 18px; font-weight: 750; }
.modal .close { position: absolute; }
.steps { margin: 20px 0; }
.step { display: flex; gap: 13px; align-items: flex-start; padding: 12px 0; }
.step .idx { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex-shrink: 0; background: var(--surface3); color: var(--muted); border: 1px solid var(--border2); }
.step.active .idx { background: var(--green-dim); color: var(--green2); border-color: var(--green2); }
.step.done .idx { background: var(--green); color: #04140a; border-color: var(--green); }
.step .body { flex: 1 1; }
.step .body .t { font-weight: 650; font-size: 14px; }
.step .body .d { font-size: 12px; color: var(--muted); margin-top: 2px; }
.step .spin { width: 16px; height: 16px; border: 2px solid var(--border2); border-top-color: var(--green); border-radius: 50%; animation: spin 0.7s linear infinite; margin-top: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
.success-check { width: 64px; height: 64px; border-radius: 50%; background: var(--green-dim); border: 2px solid var(--green); display: grid; place-items: center; font-size: 32px; margin: 8px auto 16px; }

.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.center { text-align: center; }
.row { display: flex; align-items: center; justify-content: space-between; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mb8 { margin-bottom: 8px; }
.banner { background: var(--green-dim); border: 1px solid rgba(34,197,94,0.25); color: var(--muted2); border-radius: 12px; padding: 12px 15px; font-size: 12.5px; display: flex; gap: 10px; align-items: center; }
.banner.warn { background: rgba(251,191,36,0.08); border-color: rgba(251,191,36,0.25); }
.skl { background: linear-gradient(90deg, var(--surface3) 25%, var(--surface2) 50%, var(--surface3) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; color: transparent; }
@keyframes shimmer { to { background-position: -200% 0; } }

