*,
*:before,
*:after {
  box-sizing: border-box;
}

html {
  background: #080808;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #ededed;
  background: #080808;
  font-size: 13px;
  line-height: 1.5;
}

h1,h2,h3,h4 {
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0;
}
h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; font-weight: 600; }
h3 { font-size: 1.05rem; }

a { color: inherit; text-decoration: none; }
code, pre, .mono { font-family: "Geist Mono", ui-monospace, monospace; }

::selection { background: #ffa632; color: #080808; }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 99px; }

.dash-bg { display: flex; min-height: 100vh; flex-direction: column; background: #080808; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 1rem;
  height: 3rem; padding: 0 1rem;
  border-bottom: 1px solid #222;
  background: #080808;
}
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; }
.brand .mark { width: 7px; height: 18px; background: #ffa632; display: inline-block; }

.tab-nav {
  position: sticky; top: 3rem; z-index: 30;
  display: flex; align-items: center; overflow-x: auto;
  border-bottom: 1px solid #222; background: #080808;
  padding: 0 1rem;
}
.tab-item {
  position: relative; display: flex; align-items: center; gap: .375rem;
  padding: .625rem .75rem; cursor: pointer; user-select: none;
  color: #666; transition: color .15s ease; font-size: 13px; white-space: nowrap;
}
.tab-item:hover { color: #a1a1a1; }
.tab-item.active { color: #ededed; }
.tab-item.active:after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: #ffa632;
}

.card {
  border-radius: .5rem; border: 1px solid #222; background: #0f0f0f;
}
.card-sm {
  border-radius: .375rem; border: 1px solid #222; background: #141414;
}
.stat-card { display: flex; align-items: flex-start; gap: .75rem; padding: 1rem; border-radius: .5rem; border: 1px solid #222; background: #0f0f0f; }

.tbl { width: 100%; font-size: 13px; border-collapse: collapse; }
.tbl-head { font-family: "Geist Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #666; }
.tbl-head th { border-bottom: 1px solid #222; padding: .75rem 1rem; text-align: left; font-weight: 400; white-space: nowrap; }
.tbl-row td { border-bottom: 1px solid #222; padding: .875rem 1rem; color: #a1a1a1; }
.tbl-row:last-child td { border-bottom: 0; }
.tbl-row:hover td { background: #141414; }
.tbl-row td:first-child { color: #ededed; }

.btn-primary, .btn-secondary, .btn-danger {
  display: inline-flex; align-items: center; gap: .5rem;
  border-radius: .375rem; padding: .375rem .75rem;
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all .15s ease; border: 1px solid transparent; line-height: 1.5;
}
.btn-primary {
  background: #ffa632; color: #080808;
  box-shadow: 0 0 0 1px rgba(255,166,50,.18), 0 10px 30px rgba(255,166,50,.08);
}
.btn-primary:hover { background: #ffb24f; }
.btn-secondary { border-color: #222; background: #1a1a1a; color: #a1a1a1; }
.btn-secondary:hover { background: #222; color: #ededed; }
.btn-danger { border-color: rgba(239,68,68,.2); background: rgba(239,68,68,.1); color: #f87171; }
.btn-danger:hover { background: rgba(239,68,68,.2); }
.btn-primary:active, .btn-secondary:active, .btn-danger:active { transform: scale(.98); }
.btn-sm { padding: .25rem .5rem; font-size: 12px; }

.inp {
  width: 100%; border-radius: .375rem; border: 1px solid #222; background: #141414;
  padding: .5rem .75rem; font-size: 13px; color: #ededed; outline: none;
  transition: all .15s ease;
}
.inp:focus { border-color: rgba(255,166,50,.5); background: #1a1a1a; box-shadow: 0 0 0 3px rgba(255,166,50,.08); }
.inp-label { display: block; margin-bottom: .375rem; font-size: 12px; color: #a1a1a1; }

.badge {
  display: inline-flex; align-items: center; gap: .25rem;
  border-radius: .25rem; padding: .125rem .5rem;
  font-family: "Geist Mono", monospace; font-size: 11px; border: 1px solid;
  white-space: nowrap;
}
.badge-green  { border-color: rgba(34,197,94,.2); background: rgba(34,197,94,.1); color: #4ade80; }
.badge-red    { border-color: rgba(239,68,68,.2); background: rgba(239,68,68,.1); color: #f87171; }
.badge-yellow { border-color: rgba(234,179,8,.2);  background: rgba(234,179,8,.1);  color: #facc15; }
.badge-blue   { border-color: rgba(59,130,246,.2); background: rgba(59,130,246,.1); color: #60a5fa; }
.badge-gray   { border-color: #222; background: #222; color: #666; }
.dot { width: 6px; height: 6px; border-radius: 99px; background: currentColor; }

.code-block {
  max-height: 16rem; overflow: auto; white-space: pre-wrap; word-break: break-all;
  border-radius: .5rem; border: 1px solid #222; background: #080808;
  padding: 1rem; font-family: "Geist Mono", monospace; font-size: 12px; color: #a1a1a1;
}

.modal-overlay {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.6); padding: 1rem;
  animation: fadeIn .2s ease both;
}
.modal-box { margin: auto; width: 100%; max-width: 32rem; }
.modal-box {
  border-radius: .75rem; border: 1px solid #222; background: #0f0f0f;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
  animation: slideUp .25s cubic-bezier(.16,1,.3,1) both;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #222; padding: 1rem 1.25rem; }
.modal-head span { font-size: 15px; font-weight: 600; }
.modal-body { padding: 1.25rem; }
.modal-foot { display: flex; justify-content: flex-end; gap: .5rem; border-top: 1px solid #222; padding: 1rem 1.25rem; }

.toast {
  position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 999;
  display: flex; align-items: center; gap: .75rem;
  border-radius: .5rem; border: 1px solid; padding: .75rem 1rem; font-size: 13px;
  background: #141414; color: #ededed;
  animation: slideUp .25s cubic-bezier(.16,1,.3,1) both;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
}
.toast.success { border-color: rgba(34,197,94,.3); }
.toast.error   { border-color: rgba(239,68,68,.3); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

main { flex: 1; padding: 1.5rem; max-width: 960px; margin: 0 auto; width: 100%; }
.wide { max-width: 1200px; }

.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 768px) { .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; } }
@media (max-width: 1200px) { .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }

.mono { font-family: "Geist Mono", monospace; }
.muted { color: #666; }
.secondary { color: #a1a1a1; }
.accent { color: #ffa632; }
.green { color: #4ade80; }
.red { color: #f87171; }
.maxw { max-width: 960px; margin: 0 auto; }
.mb0 { margin-bottom: 0; } .mb1 { margin-bottom: .25rem; } .mb2 { margin-bottom: .5rem; }
.mb3 { margin-bottom: .75rem; } .mb4 { margin-bottom: 1rem; } .mb5 { margin-bottom: 1.25rem; }
.mb6 { margin-bottom: 1.5rem; } .mb8 { margin-bottom: 2rem; }
.mt1 { margin-top: .25rem; } .mt2 { margin-top: .5rem; } .mt4 { margin-top: 1rem; } .mt8 { margin-top: 2rem; }
.flex { display: flex; } .items-center { align-items: center; } .between { justify-content: space-between; }
.gap1 { gap: .25rem; } .gap2 { gap: .5rem; } .gap3 { gap: .75rem; } .gap4 { gap: 1rem; }
.wrap { flex-wrap: wrap; }
.break-all { word-break: break-all; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.center { text-align: center; }
.hr { height: 1px; background: #222; border: 0; margin: 2rem 0; }

/* landing */
.beams { position: fixed; inset: 0; z-index: -1; background:
  radial-gradient(60% 40% at 20% 0%, rgba(255,166,50,.08), transparent 60%),
  radial-gradient(50% 35% at 80% 10%, rgba(255,166,50,.05), transparent 60%),
  linear-gradient(#050505,#050505); }
.hero { padding: 5rem 1rem 3rem; text-align: center; }
.hero h1 { font-size: 2.6rem; line-height: 1.1; letter-spacing: -0.02em; }
.hero p  { color: #a1a1a1; max-width: 560px; margin: 1rem auto 0; font-size: 14px; }
.cta-row { display: flex; justify-content: center; gap: .75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.phone { display: inline-flex; align-items: center; gap: .375rem; font-size: 12px; border: 1px solid #222; background: #0f0f0f; color: #666; border-radius: 99px; padding: .25rem .75rem; }
.step { border: 1px solid #222; border-radius: .5rem; background: #0f0f0f; padding: 1.25rem; }
.step .num { font-family: "Geist Mono", monospace; color: #ffa632; font-size: 12px; }
.step h3 { margin: .5rem 0; }
.step p { color: #a1a1a1; margin: 0; }
.pricing { border: 1px solid #ffa63233; border-radius: .75rem; background: #0f0f0f; padding: 1.5rem; max-width: 420px; margin: 0 auto; }
.pricing .price { font-size: 2.2rem; font-weight: 700; letter-spacing: -0.02em; }
.pricing ul { list-style: none; margin: 1rem 0 0; padding: 0; color: #a1a1a1; }
.pricing li { padding: .4rem 0; border-top: 1px solid #222; display: flex; gap: .5rem; align-items: center; }
.pricing li:first-child { border-top: 0; }
.pricing li:before { content: "✓"; color: #ffa632; font-family: "Geist Mono", monospace; }
.notice { border: 1px solid rgba(255,166,50,.2); background: rgba(255,166,50,.05); color: #ffbd66; border-radius: .375rem; padding: .5rem .75rem; font-size: 12px; }
.footer { border-top: 1px solid #222; padding: 1.5rem 1rem; text-align: center; color: #666; font-size: 12px; }

.table-wrap { overflow-x: auto; }
.stat-num { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.stat-lbl { color: #666; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; font-family: "Geist Mono", monospace; margin-top: .25rem; }
.bigip { font-family: "Geist Mono", monospace; font-size: 20px; letter-spacing: -0.01em; color: #ffbd66; }
/* Keep forms and summaries readable on small screens. */
.topbar { justify-content: space-between; }
button, .btn-primary, .btn-secondary, .btn-danger { white-space: nowrap; flex-shrink: 0; }
form .flex > .inp { flex: 1; min-width: 0; }
.stat-card { flex-direction: column; align-items: flex-start; gap: .35rem; }
.bigip { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .topbar { flex-wrap: wrap; gap: .75rem; }
  main > .between { flex-wrap: wrap; gap: 1rem; }
  .hero { padding: 3rem 0 2rem; }
  .hero h1 { font-size: 2.3rem; }
  .wide { padding: 1rem; }
}
