
:root {
  --bg: #090f1d;
  --panel: rgba(14,21,38,.92);
  --line: rgba(255,255,255,.08);
  --text: #edf2ff;
  --muted: #98abcf;
  --accent: #89a3ff;
  --accent-2: #58f0c8;
  --shadow: 0 28px 80px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--text);
  font: 15px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 0%, rgba(137,163,255,.18), transparent 34%),
    radial-gradient(circle at 88% 0%, rgba(88,240,200,.16), transparent 28%),
    linear-gradient(180deg,#08101f 0%,#0b1222 100%);
}
button, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell { max-width: 1540px; margin: 0 auto; padding: 24px 20px 36px; }
.panel { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(17,26,46,.96), rgba(11,17,32,.96)); border-radius: 28px; box-shadow: var(--shadow); }
.hero { display: grid; grid-template-columns: 1.2fr auto; gap: 18px; padding: 22px; }
.brand-row { display: flex; gap: 16px; align-items: center; }
.brand-mark { width: 72px; height: 72px; border-radius: 22px; background: linear-gradient(135deg,#91a7ff,#58f0c8); display: grid; place-items: center; box-shadow: 0 18px 50px rgba(75,140,255,.28); }
.brand-mark svg { width: 46px; height: 46px; }
.eyebrow { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 5px; }
.hero h1 { margin: 0 0 8px; font-size: 2rem; line-height: 1.05; }
.hero p { margin: 0; color: var(--muted); max-width: 760px; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; align-self: start; justify-content: flex-end; }
.pill, .status-pill { padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--muted); white-space: nowrap; }
.status-pill.accent { color: #dfe7ff; background: linear-gradient(135deg, rgba(137,163,255,.18), rgba(88,240,200,.12)); }
.main-grid { display: grid; grid-template-columns: 340px minmax(0,1.1fr) 390px; gap: 18px; margin-top: 22px; align-items: start; }
.controls-panel, .table-panel, .results-panel { padding: 18px; }
.section-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.section-header.tight { margin-bottom: 10px; }
.section-header h2, .section-header h3, .mini-head h3 { margin: 0; font-size: 1.05rem; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 12px; }
.field > span { color: #dbe5ff; font-weight: 600; }
.field input, .field select {
  width: 100%; padding: 11px 12px; border-radius: 16px; border: 1px solid var(--line);
  background: rgba(255,255,255,.05); color: var(--text); outline: none;
}
.field input[type=range] { padding: 0; height: 18px; }
.field-grid { display: grid; gap: 10px; }
.field-grid.two { grid-template-columns: 1fr 1fr; }
.field-grid.three { grid-template-columns: repeat(3,1fr); }
.hint { margin: 0 0 12px; color: var(--muted); font-size: .92rem; }
button { padding: 11px 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text); }
button.primary { background: linear-gradient(135deg,#91a7ff,#58f0c8); color: #081121; border: 0; font-weight: 700; }
button.full { width: 100%; }
button.mini { padding: 8px 12px; border-radius: 12px; font-size: .92rem; }
button.danger { background: rgba(255,94,94,.12); color: #ffb9b9; }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; }
.button-row.compact button { flex: 1; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.03); }
table { width: 100%; border-collapse: collapse; min-width: 780px; }
th, td { padding: 10px 10px; border-bottom: 1px solid rgba(255,255,255,.06); text-align: left; }
th { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
td input, td select { width: 100%; padding: 9px 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04); color: var(--text); }
.preview-surface { margin-top: 16px; padding: 16px; border-radius: 22px; background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)); border: 1px solid var(--line); }
.mini-head { margin-bottom: 10px; }
.mini-head p { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }
.banner-preview { display: grid; gap: 10px; }
.reward-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.05); }
.reward-card strong { display: block; font-size: .98rem; }
.reward-card span { display: block; color: var(--muted); font-size: .9rem; }
.reward-card em { font-style: normal; color: #fff4d9; font-weight: 700; }
.rarity-dot { width: 14px; height: 14px; border-radius: 999px; box-shadow: 0 0 0 5px rgba(255,255,255,.04); }
.table-preview { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; }
.table-chip { padding: 10px 12px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.06); display: flex; gap: 8px; align-items: center; }
.table-chip span { font-weight: 600; }
.table-chip small { color: var(--muted); }
.metric-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-bottom: 12px; }
.metric-grid.small { grid-template-columns: repeat(4,1fr); }
.metric { padding: 14px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.05); }
.metric span { display: block; color: var(--muted); font-size: .88rem; margin-bottom: 6px; }
.metric strong { font-size: 1.12rem; }
.chart-block { margin-top: 14px; padding: 14px; border-radius: 22px; background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)); border: 1px solid var(--line); }
.chart-block canvas { width: 100%; height: auto; display: block; margin-top: 12px; }
.top-rows { display: grid; gap: 8px; margin-top: 10px; }
.top-row { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.04); }
.pro-card { border-color: rgba(255,179,71,.25); }
.pro-card.locked { position: relative; opacity: .82; }
.pro-card.locked::after { content: 'Pro build unlocks this panel'; position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, rgba(8,12,24,.1), rgba(8,12,24,.52)); backdrop-filter: blur(3px); border-radius: 22px; color: #fff3d9; font-weight: 700; letter-spacing: .02em; }
.chase-summary { margin-top: 12px; }
@media (max-width: 1320px) { .main-grid { grid-template-columns: 1fr; } .hero { grid-template-columns: 1fr; } .hero-pills { justify-content: flex-start; } }
@media (max-width: 700px) {
  .field-grid.two, .field-grid.three, .metric-grid, .metric-grid.small { grid-template-columns: 1fr; }
  .app-shell { padding: 16px 12px 26px; }
  .controls-panel, .table-panel, .results-panel { padding: 14px; }
  .hero { padding: 18px; }
  .hero h1 { font-size: 1.6rem; }
}
