/* ZyraBots — minimal black UI (FAST)
   "Krass" look comes from spacing/typography/contrast + subtle hover.
   No blur/backdrop-filter. No animated background.
*/

:root{
  --bg:#0a0a0a;
  --panel:#101010;
  --panel2:#141414;
  --border:#232323;
  --border2:#2f2f2f;
  --text:#f2f2f2;
  --muted:#a3a3a3;
  --muted2:#7a7a7a;
  --ok:#46e58a;
  --warn:#ffc56a;
  --bad:#ff5f7a;

  --r:18px;
  --r2:14px;
  --max:1100px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:var(--sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a{ color:inherit; text-decoration:none; }

.container{
  width:100%;
  max-width: var(--max);
  margin:0 auto;
  padding: 22px 16px 70px;
}

.mono{ font-family: var(--mono); }
.muted{ color: var(--muted); }
.muted2{ color: var(--muted2); }

/* Topbar */
.topbar{
  position: sticky;
  top:0;
  z-index: 50;
  background: rgba(10,10,10,.92);
  border-bottom: 1px solid var(--border);
}
.topbar__inner{
  max-width: var(--max);
  margin:0 auto;
  padding: 14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
}
.brand__mark{
  width:12px;
  height:12px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,.06);
}
.brand__name{
  font-weight: 800;
  letter-spacing: .2px;
  font-size: 15px;
}

.topbar__actions{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }

.pill{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
}
.dot{ width:8px; height:8px; border-radius: 999px; background: var(--muted2); }
.dot--ok{ background: var(--ok); }
.dot--warn{ background: var(--warn); }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  cursor:pointer;
  user-select:none;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.btn:hover{
  transform: translateY(-1px);
  border-color: var(--border2);
  background: var(--panel2);
}
.btn:active{ transform: translateY(0px); }
.btn--primary{
  border-color: var(--border2);
}
.btn--danger{
  border-color: rgba(255,95,122,.35);
}
.btn--danger:hover{ border-color: rgba(255,95,122,.55); }

/* Headings */
.h1{ font-size: 36px; letter-spacing: -0.6px; margin: 0 0 10px; }
.h2{ font-size: 20px; margin: 0; }

.dashHead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
  margin: 18px 0 12px;
}
.dashHead__right{ display:flex; gap: 10px; align-items:center; }
.footerRow{
  display:flex;
  justify-content:flex-end;
  margin-top: 10px;
}

/* Panels / cards */
.card{
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--r);
}
.card__pad{ padding: 18px; }

/* Dashboard bot tiles (3 slots) */
.grid3,
.tiles3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.tile{
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--panel);
  padding: 18px;
  min-height: 120px;
  display:flex;
  flex-direction: column;
  justify-content: space-between;
  cursor:pointer;
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}
.tile:hover{
  transform: translateY(-2px);
  border-color: var(--border2);
  background: var(--panel2);
}
.tile__top{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.tile__title{ font-weight: 800; letter-spacing: .2px; }
.tile__sub{ color: var(--muted); font-size: 13px; margin-top: 8px; }

.tile--empty{
  border-style: dashed;
  background: #0d0d0d;
}
.tile__plus{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  font-size: 22px;
}
.tile__right{
  color: var(--muted2);
  font-size: 14px;
}

.tile__empty{
  display:flex;
  flex-direction: column;
  gap: 10px;
  align-items:flex-start;
}
.plus{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  font-size: 20px;
  background: #0d0d0d;
}

.small{
  font-size: 12px;
  color: var(--muted2);
}

.row{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.spread{ justify-content:space-between; }

/* Inputs */
.label{ display:block; font-size: 12px; color: var(--muted); margin: 10px 0 6px; }
.input{
  width:100%;
  border: 1px solid var(--border);
  background: #0d0d0d;
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  outline:none;
}
.input:focus{ border-color: var(--border2); }


.switch{
  display:inline-flex;
  position: relative;
  width: 46px;
  height: 26px;
}
.switch input{
  opacity:0;
  width:46px;
  height:26px;
  margin:0;
  position:absolute;
  inset:0;
  cursor:pointer;
}
.switch__track{
  width:46px;
  height:26px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#0d0d0d;
  display:block;
  position:relative;
  transition:border-color .14s ease, background .14s ease;
}
.switch__track::after{
  content:"";
  position:absolute;
  top:3px;
  left:3px;
  width:20px;
  height:20px;
  border-radius:999px;
  background:#fff;
  transition:transform .14s ease;
}
.switch input:checked + .switch__track{
  border-color: var(--border2);
  background:#111;
}
.switch input:checked + .switch__track::after{
  transform: translateX(20px);
}

/* Bot settings layout */
.layout{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.kicker{ color: var(--muted2); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }

/* Preview box */
.preview{
  border: 1px solid var(--border);
  background: #0d0d0d;
  border-radius: var(--r);
  padding: 14px;
}
.preview__title{ font-weight: 800; margin-bottom: 6px; }
.preview__desc{ color: var(--muted); white-space: pre-wrap; font-size: 13px; }

/* Modal */
.modal.hidden{ display:none; }
.modal{
  position: fixed;
  inset: 0;
  z-index: 90;
}
.modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
}
.modal__card{
  position: relative;
  width: min(520px, calc(100% - 28px));
  margin: 10vh auto;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--r);
}
.modal__head{
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}
.modal__title{ font-weight: 800; }
.modal__body{ padding: 14px 16px; }
.modal__foot{ padding: 14px 16px; border-top: 1px solid var(--border); display:flex; justify-content:flex-end; gap:10px; }
.iconBtn{
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0d0d0d;
  color: var(--text);
  cursor:pointer;
}
.iconBtn:hover{ border-color: var(--border2); }

/* Loader */
.loader.hidden{ display:none; }
.loader{
  position: fixed;
  inset:0;
  z-index: 100;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,.6);
}
.loader__card{
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--r);
  padding: 16px 18px;
  display:flex;
  gap: 12px;
  align-items:center;
}
.loader__spinner{
  width: 18px; height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.25);
  border-top-color: rgba(255,255,255,.85);
  animation: spin .8s linear infinite;
}
@keyframes spin{ to { transform: rotate(360deg); } }
.loader__title{ font-weight: 800; font-size: 13px; color: var(--text); line-height: 1.1; }
.loader__sub{ font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Toasts */
.toasts{
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 110;
  display:flex;
  flex-direction: column;
  gap: 10px;
  pointer-events:none;
}
.toast{
  pointer-events:auto;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 14px;
  padding: 10px 12px;
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 240px;
  max-width: 360px;
  transition: opacity .14s ease, transform .14s ease;
}
.toast--out{ opacity: 0; transform: translateY(4px); }
.toast__dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ok);
  margin-top: 4px;
}
.toast--bad .toast__dot{ background: var(--bad); }
.toast--warn .toast__dot{ background: var(--warn); }
.toast__msg{ font-size: 12px; color: var(--muted); line-height: 1.3; }
.toast__x{
  margin-left:auto;
  width: 26px; height: 26px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0d0d0d;
  color: var(--text);
  cursor:pointer;
}
.toast__x:hover{ border-color: var(--border2); }
