/* Studio WEB – neon fialovo-čierny štýl */
:root {
  --bg: #0a0a10;
  --card: #12101a;
  --card2: #161224;
  --border: #3b2a5a;
  --accent: #a855f7;
  --neon: #c084fc;
  --entry: #1a1426;
  --muted: #888;
  --faint: #555;
  --green: #22c55e;
  --red: #f87171;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: #fff;
  font-family: "Segoe UI", system-ui, sans-serif;
  min-height: 100vh;
}
a { color: var(--neon); text-decoration: none; }

/* ── Landing / login ── */
.login-wrap { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.login-left {
  padding: 56px 48px;
  display: flex; flex-direction: column;
  background:
    radial-gradient(1200px 500px at 20% -10%, rgba(168,85,247,.18), transparent 60%),
    var(--bg);
}
.logo { font-size: 26px; font-weight: 800; letter-spacing: .5px; }
.logo .mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, #a855f7, #6d28d9);
  box-shadow: 0 0 22px rgba(168,85,247,.6);
  margin-right: 10px; vertical-align: middle; font-size: 20px;
}
.promo {
  margin-top: 30px; padding: 12px 16px; border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(168,85,247,.16), rgba(109,40,217,.05));
  color: var(--neon); font-size: 14px; font-weight: 600;
  display: inline-block; width: fit-content;
}
.features { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.feature {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--border);
}
.feature .ico { margin-right: 10px; font-size: 18px; }
.feature .nm { font-weight: 600; }
.tag {
  font-family: Consolas, monospace; font-size: 11px; color: var(--muted);
  background: var(--entry); padding: 3px 8px; border-radius: 999px;
  border: 1px solid var(--border);
}
.cloud { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-size: 12px; color: var(--neon); padding: 6px 12px; border-radius: 999px;
  background: rgba(168,85,247,.12); border: 1px solid var(--border);
}
.login-foot { margin-top: auto; color: var(--faint); font-size: 12px; }

.login-right {
  display: flex; align-items: center; justify-content: center; padding: 40px;
  background: radial-gradient(800px 400px at 80% 0%, rgba(168,85,247,.12), transparent 55%), var(--bg);
}
.login-card {
  width: 100%; max-width: 380px; padding: 32px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: 0 0 40px rgba(168,85,247,.15);
}
.login-card h1 { font-size: 22px; margin-bottom: 4px; }
.login-card .sub { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.field input {
  width: 100%; padding: 11px 12px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--entry); color: #fff;
  font-size: 14px; outline: none;
}
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(168,85,247,.18); }
.btn {
  display: inline-block; padding: 11px 18px; border-radius: 8px;
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  font-size: 14px; font-weight: 600; font-family: inherit;
  box-shadow: 0 0 16px rgba(168,85,247,.45);
  transition: background .15s, transform .1s;
}
.btn:hover { background: #b967ff; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--entry); box-shadow: none; border: 1px solid var(--border); }
.btn.ghost:hover { background: #241a33; }
.btn.block { display: block; width: 100%; text-align: center; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.green { background: var(--green); box-shadow: 0 0 14px rgba(34,197,94,.4); }
.btn.green:hover { background: #2ce07a; }
.btn.red { background: var(--red); box-shadow: 0 0 14px rgba(248,113,113,.4); }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.mini { padding: 4px 10px; font-size: 12px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; margin: 16px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.flash {
  background: rgba(248,113,113,.12); border: 1px solid var(--red);
  color: #fecaca; padding: 10px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 14px;
}

/* ── Dashboard ── */
.navbar {
  display: flex; align-items: center; gap: 18px;
  padding: 12px 24px; border-bottom: 1px solid var(--border);
  background: rgba(10,10,16,.8); position: sticky; top: 0; z-index: 10;
}
.navbar .logo { font-size: 18px; }
.navbar .logo .mark { width: 30px; height: 30px; font-size: 15px; border-radius: 8px; }
.nav-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.nav-tab {
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  color: var(--muted); font-size: 13px; font-weight: 600;
  border: 1px solid transparent;
}
.nav-tab:hover { color: var(--neon); }
.nav-tab.active {
  background: var(--accent); color: #fff;
  box-shadow: 0 0 14px rgba(168,85,247,.5);
}
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.user-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); display: inline-block; margin-right: 6px; box-shadow: 0 0 8px var(--green); }

.container { max-width: 1100px; margin: 0 auto; padding: 22px 24px 60px; }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px; margin-bottom: 18px;
}
.card h2 { font-size: 17px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.card h2 .hl { color: var(--neon); }
.hint { color: var(--faint); font-size: 12px; margin-bottom: 12px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 800px) { .grid3, .grid4 { grid-template-columns: 1fr 1fr; } }
.field select, .field input[type="number"], .field input[type="date"] {
  width: 100%; padding: 9px 10px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--entry); color: #fff; font-size: 13px;
}
.drop {
  border: 2px dashed var(--border); border-radius: 12px;
  padding: 26px; text-align: center; color: var(--muted); cursor: pointer;
  background: rgba(168,85,247,.04); margin-bottom: 12px; transition: border-color .15s, background .15s;
}
.drop:hover, .drop.over { border-color: var(--accent); background: rgba(168,85,247,.1); }
.drop .big { font-size: 16px; margin-bottom: 4px; }
.drop .small { font-size: 12px; color: var(--faint); }

/* progress */
.progress { height: 12px; border-radius: 999px; background: var(--entry); overflow: hidden; margin: 10px 0; border: 1px solid var(--border); }
.progress .bar {
  height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, #7c3aed, #c084fc);
  box-shadow: 0 0 12px rgba(168,85,247,.7);
  transition: width .4s;
}
.log {
  background: #08080d; border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; font-family: Consolas, monospace; font-size: 12px;
  color: var(--neon); height: 150px; overflow-y: auto; white-space: pre-wrap;
}
.log:empty::after { content: "log…"; color: var(--faint); }

/* filter mini-cards */
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 900px) { .fgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .fgrid { grid-template-columns: 1fr; } }
.fcard { background: var(--card2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.fcard .fhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.fcard .fhead b { font-size: 13px; }
.fcard .minmax { display: flex; gap: 6px; margin-top: 6px; }
.fcard input[type="number"] {
  width: 100%; padding: 4px 6px; border-radius: 6px; border: 1px solid var(--border);
  background: var(--entry); color: #fff; font-size: 12px;
}
.switch { position: relative; width: 34px; height: 18px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .sl {
  position: absolute; inset: 0; border-radius: 999px; background: var(--entry);
  border: 1px solid var(--border); transition: .15s; cursor: pointer;
}
.switch .sl::before {
  content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%;
  left: 2px; top: 2px; background: var(--muted); transition: .15s;
}
.switch input:checked + .sl { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .sl::before { left: 18px; background: #fff; }

/* list rows */
.rowline {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--card2); border: 1px solid var(--border); border-radius: 8px;
  padding: 9px 12px; margin-bottom: 6px; font-size: 13px;
}
.rowline .slug { color: var(--neon); font-family: Consolas, monospace; }
.rowline .src { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

table.sched { width: 100%; border-collapse: collapse; font-size: 12px; }
table.sched th, table.sched td { border: 1px solid var(--border); padding: 6px 8px; text-align: left; }
table.sched th { background: var(--card2); color: var(--neon); }

.credit {
  position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%);
  background: var(--card); border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 18px; font-size: 12px; color: var(--muted);
  box-shadow: 0 4px 20px rgba(0,0,0,.5); display: flex; gap: 8px; align-items: center;
}
.credit .bug { color: var(--neon); }
.qr-grid { display: flex; gap: 16px; flex-wrap: wrap; }
.qr-card { text-align: center; background: var(--card2); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.qr-card img { border-radius: 6px; background: #fff; width: 130px; height: 130px; }
.qr-card .dname { margin-top: 8px; font-size: 13px; }
.hidden { display: none; }
.error-banner { color: var(--red); font-size: 13px; margin: 8px 0; }

