/* =========================================================
   HostPanel – wspólne style
   ========================================================= */
:root {
  --bg: #07090d;
  --bg-soft: #0c0f15;
  --surface: #11151d;
  --surface-2: #161b25;
  --line: #1e2531;
  --line-2: #2a3342;
  --text: #eef1f6;
  --text-2: #a5adbb;
  --text-3: #6b7484;
  --brand: #22c55e;
  --brand-2: #16a34a;
  --brand-soft: rgba(34, 197, 94, .12);
  --brand-ink: #03140a;
  --blue: #3b82f6;
  --amber: #f59e0b;
  --red: #ef4444;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: rgba(34, 197, 94, .35); }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.mono { font-family: var(--font-mono); }

/* ---------- ikony ---------- */
[data-lucide], .lucide { width: 18px; height: 18px; stroke-width: 1.9; flex-shrink: 0; }
.ico-lg { width: 22px; height: 22px; }

/* ---------- przyciski ---------- */
.btn {
  --h: 40px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 16px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--surface-2);
  font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap;
  transition: background .18s var(--ease), border-color .18s var(--ease), transform .12s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { background: #1c2230; border-color: #364153; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 20px -8px rgba(34, 197, 94, .7); }
.btn-primary:hover { background: #2fd36b; border-color: #2fd36b; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: transparent; }
.btn-outline { background: transparent; }
.btn-lg { --h: 48px; padding: 0 22px; font-size: 15px; border-radius: 10px; }
.btn-sm { --h: 32px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn .spinner { display: none; }
.btn.loading .spinner { display: inline-block; }
.btn.loading .btn-label { opacity: .7; }
.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- elementy ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(17, 21, 29, .7);
  font-size: 13px; color: var(--text-2);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 6px; font-size: 12px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text-2); }
.tag.green { color: #4ade80; background: rgba(34, 197, 94, .1); border-color: rgba(34, 197, 94, .25); }
.tag.amber { color: #fbbf24; background: rgba(245, 158, 11, .1); border-color: rgba(245, 158, 11, .25); }
.tag.blue { color: #93c5fd; background: rgba(59, 130, 246, .1); border-color: rgba(59, 130, 246, .25); }
.tag.red { color: #fca5a5; background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .25); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card-pad { padding: 22px; }

/* formularze */
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field > label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > [data-lucide], .input-wrap > .lucide { position: absolute; left: 13px; color: var(--text-3); pointer-events: none; transition: color .15s; }
.input-wrap:focus-within > [data-lucide], .input-wrap:focus-within > .lucide { color: var(--brand); }
.input, select.input {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--bg-soft); color: var(--text); font: inherit;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.input-wrap > .input { padding-left: 40px; }
.input-wrap > .input.has-action { padding-right: 44px; }
.input::placeholder { color: var(--text-3); }
.input:hover { border-color: #364153; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); background: var(--bg); }
.input-action { position: absolute; right: 6px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: none; color: var(--text-3); border-radius: 8px; cursor: pointer; }
.input-action:hover { color: var(--text); background: var(--surface-2); }
.hint { font-size: 12.5px; color: var(--text-3); }

.notice { display: none; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; border: 1px solid; }
.notice.show { display: flex; animation: pop .25s var(--ease); }
.notice.error { background: rgba(239, 68, 68, .08); border-color: rgba(239, 68, 68, .3); color: #fecaca; }
.notice.ok { background: rgba(34, 197, 94, .08); border-color: rgba(34, 197, 94, .3); color: #bbf7d0; }
.notice.info { display: flex; background: rgba(59, 130, 246, .07); border-color: rgba(59, 130, 246, .28); color: #c7dcff; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.shake { animation: shake .4s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* animacja pojawiania przy przewijaniu */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* logo */
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 18px; letter-spacing: -.03em; }
.logo-mark { width: 30px; height: 30px; }
.logo b { color: var(--brand); font-weight: inherit; }
