:root {
  --bg1: #081225;
  --bg2: #0f1d3a;
  --panel: #ffffff;
  --panel-soft: #f8fbff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #dbe4f0;
  --primary: #2563eb;
  --primary-2: #1d4ed8;
  --primary-soft: #e8f0ff;
  --shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
  --radius: 28px;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: Inter, Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 34%, #eef4ff 34%, #f8fbff 100%);
  color: var(--text);
}
body { min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { max-width: 1160px; margin: 0 auto; padding: 18px 16px 48px; }
.mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  color: white;
  padding: 10px 4px 18px;
}
.eyebrow { margin: 0; color: #93c5fd; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.mobile-header h1 { margin: 6px 0; font-size: clamp(28px, 4vw, 40px); }
.sub { margin: 0; color: rgba(255,255,255,.82); }
.card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.8);
}
.compact-card { margin-bottom: 14px; }
.token-card {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 16px;
  align-items: center;
}
.token-copy h2 { margin: 0 0 8px; font-size: 24px; }
.token-copy p { margin: 0; color: var(--muted); line-height: 1.5; }
.token-box {
  background: linear-gradient(180deg, #eff6ff 0%, #f8fbff 100%);
  border: 1px solid #dbeafe;
  border-radius: 22px;
  padding: 16px;
}
.token-box label { display: block; margin-bottom: 8px; font-size: 13px; color: #1d4ed8; font-weight: 700; }
.token-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.stats-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.mini-stat {
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(255,255,255,0.82);
  border-radius: 24px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.mini-stat-label { color: var(--muted); font-size: 13px; }
.mini-stat-value { margin-top: 8px; font-size: 20px; font-weight: 800; }
.launcher { margin-bottom: 16px; }
.section-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 14px; }
.section-head h2, .section-head h3 { margin: 0; }
.section-head-home p { margin: 6px 0 0; color: var(--muted); }
.launcher-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.launcher-btn {
  min-height: 108px;
  border-radius: 26px;
  border: 1px solid #dbeafe;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  color: #0f172a;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.08);
}
.launcher-btn.is-active {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-2) 100%);
  color: white;
  border-color: transparent;
}
.launcher-icon { font-size: 28px; line-height: 1; }
.launcher-label { font-size: 15px; }
.screen { display: none; gap: 18px; }
.screen.is-active { display: grid; }
.screen-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.screen-kicker { margin: 0 0 4px; color: #2563eb; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.screen-head h3 { margin: 0; font-size: 28px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.align-start { align-items: start; }
.filter-grid, .form-grid { display: grid; gap: 12px; }
.filter-grid { grid-template-columns: 1.5fr 1fr auto auto; margin-bottom: 12px; }
.filter-grid.two-inputs { grid-template-columns: 1fr 1fr; }
.filter-grid.compact { grid-template-columns: 1fr; }
.filter-grid.customer-filter { grid-template-columns: 1fr auto; }
.form-grid { grid-template-columns: 1fr 1fr; margin-bottom: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label span, .hint, .result-meta { color: var(--muted); font-size: 13px; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 15px;
  background: white;
  color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(37,99,235,.18); border-color: rgba(37,99,235,.35); }
button {
  border: 0;
  border-radius: 18px;
  padding: 14px 16px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-2) 100%);
  color: white;
  font-weight: 800;
}
.ghost-btn {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.2);
  color: white;
  backdrop-filter: blur(8px);
}
.ghost-btn.small { padding: 10px 12px; border-radius: 14px; background: #eef4ff; color: #1d4ed8; border-color: #dbeafe; }
.ghost-btn.small.dark { background: #0f172a; color: white; border-color: transparent; }
.check-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fbff;
  min-height: 54px;
}
.check-pill input { width: auto; margin: 0; }
.stack-list { display: grid; gap: 12px; }
.list-card { border: 1px solid #edf2f7; border-radius: 20px; padding: 14px 15px; background: #fff; }
.list-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.list-title { font-weight: 800; font-size: 16px; }
.badge { background: var(--primary-soft); color: #1d4ed8; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 700; }
.meta { color: var(--muted); font-size: 13px; line-height: 1.55; }
.price-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.price-chip { background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 999px; padding: 7px 10px; font-size: 12px; }
.empty-state { border: 1px dashed #cbd5e1; border-radius: 18px; padding: 22px; text-align: center; color: var(--muted); background: #f8fafc; }
.placeholder-card h3 { margin-top: 0; }
.placeholder-card p { margin-bottom: 0; color: var(--muted); line-height: 1.6; }
.success { color: #10b981; }
.error { color: #ef4444; }

@media (max-width: 980px) {
  .token-card, .two-col, .stats-strip, .filter-grid, .form-grid, .launcher-grid {
    grid-template-columns: 1fr 1fr;
  }
  .token-row { grid-template-columns: 1fr; }
  .mobile-header { flex-direction: column; }
}

@media (max-width: 760px) {
  .app-shell { padding: 14px 12px 32px; }
  .token-card, .two-col, .stats-strip, .filter-grid, .form-grid, .launcher-grid {
    grid-template-columns: 1fr;
  }
  .filter-grid.customer-filter, .filter-grid.two-inputs { grid-template-columns: 1fr; }
  .screen-head h3 { font-size: 24px; }
  .launcher-btn { min-height: 92px; border-radius: 22px; }
}
