/* Belevate Club Ticketi — paleta kao belevator.co: gotovo crna s ljubičastim tonom, lila akcent, zeleni "Active" status. */
:root {
  --bg: #0c0910;
  --bg-nav: rgba(14, 10, 19, .82);
  --card: #16101d;
  --card-top: #1b1424;
  --tile: #100b15;
  --field: #110c16;
  --hover: #1f1729;
  --border: #281f31;
  --border-2: #382b45;
  --text: #f4eff9;
  --text-2: #d6cce1;
  --muted: #9a8eaa;
  --faint: #6f6380;
  --accent: #dba8fa;
  --accent-2: #c98bf5;
  --accent-ink: #1b0e25;
  --accent-soft: rgba(219, 168, 250, .1);
  --accent-line: rgba(219, 168, 250, .32);
  --ring: rgba(219, 168, 250, .3);
  --green: #4ade80;
  --yellow: #fbbf24;
  --red: #f87171;
  --radius: 16px;
  --radius-sm: 10px;
  --font: Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --display: Outfit, Inter, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", Consolas, ui-monospace, monospace;
  --dc-bg: #313338;
  --dc-embed: #2b2d31;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 85% -120px, rgba(201, 139, 245, .1), transparent 70%),
    radial-gradient(700px 380px at -10% 0, rgba(140, 80, 200, .06), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 14px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.2; font-family: var(--display); letter-spacing: -.01em; }
h2 { font-size: 17px; font-weight: 600; }
h3 { font-size: 14.5px; font-weight: 600; margin-top: 4px; }
code { font-family: var(--mono); background: var(--tile); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; font-size: 12.5px; color: var(--text-2); }
.mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.text-red { color: var(--red); }
.text-yellow { color: var(--yellow); }
.spacer { flex: 1; }
.ico { width: 17px; height: 17px; flex: none; }
::selection { background: rgba(219, 168, 250, .35); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2c2236; border-radius: 10px; border: 2px solid var(--bg); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ---------- Gornja navigacija ---------- */
.topnav { position: sticky; top: 0; z-index: 20; background: var(--bg-nav); backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--border); }
.topnav-row { display: flex; align-items: center; gap: 14px; height: 64px; }
.brand-link:hover { text-decoration: none; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.brand-text small { color: var(--accent); font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin-top: 2px; }
.logo { width: 36px; height: 36px; border-radius: 10px; flex: none; box-shadow: 0 0 0 1px rgba(219, 168, 250, .22), 0 0 18px rgba(219, 168, 250, .22); }
.nav-sep { color: var(--border-2); font-size: 22px; font-weight: 300; margin: 0 2px; }
.guild-switch { position: relative; display: flex; flex-direction: row; align-items: center; gap: 9px; padding: 5px 10px 5px 6px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255, 255, 255, .02); cursor: pointer; transition: border-color .15s, background .15s; }
.guild-switch:hover { border-color: var(--border-2); background: var(--hover); }
.guild-switch img, .gicon.sm { width: 26px; height: 26px; border-radius: 8px; }
.guild-switch select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: var(--text); font: 600 13.5px var(--font); padding: 0 18px 0 0; margin-right: -18px; cursor: pointer; max-width: 260px; box-shadow: none; position: relative; z-index: 1; }
.guild-switch select:focus { box-shadow: none; }
.guild-switch select option { background: var(--card); }
.guild-switch .ico { width: 15px; height: 15px; color: var(--muted); }
.bot-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; border: 1px solid rgba(248, 113, 113, .4); background: rgba(248, 113, 113, .08); color: #fca5a5; }
.bot-pill.on { border-color: rgba(74, 222, 128, .45); background: rgba(74, 222, 128, .08); color: var(--green); }
.bot-pill:hover { text-decoration: none; filter: brightness(1.15); }
.bot-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(255, 255, 255, .06); }
.bot-pill.on i { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .45); } 50% { box-shadow: 0 0 0 5px rgba(74, 222, 128, 0); } }
.nav-user { color: var(--muted); font-size: 13px; }
.nav-logout { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-weight: 600; font-size: 13px; padding: 7px 10px; border-radius: 8px; }
.nav-logout:hover { background: var(--hover); text-decoration: none; }

.mainnav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.mainnav::-webkit-scrollbar { display: none; }
.mainnav a { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 11px 13px 13px; color: var(--muted); font-weight: 500; font-size: 13.5px; white-space: nowrap; border-radius: 8px 8px 0 0; transition: color .15s; }
.mainnav a:hover { color: var(--text); text-decoration: none; }
.mainnav a.active { color: var(--text); }
.mainnav a.active::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.mainnav a.active .ico { color: var(--accent); }

.page { padding-top: 34px; padding-bottom: 56px; }
.page-head { margin-bottom: 24px; }
.page-head h1 { font-size: 30px; font-weight: 700; }
.page-head p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin: -10px 0 16px; }
.back:hover { color: var(--text); text-decoration: none; }
.foot { color: var(--faint); font-size: 12px; padding-bottom: 28px; }

/* ---------- Kartice i raspored ---------- */
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.sidebar-layout { grid-template-columns: 320px minmax(0, 1fr); align-items: start; }
.grid > .span-2 { grid-column: 1 / -1; }
.card {
  background: linear-gradient(180deg, var(--card-top), var(--card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 18px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 12px 32px -18px rgba(0, 0, 0, .7);
}
.card.hero {
  background:
    radial-gradient(620px 260px at 88% -40%, rgba(201, 139, 245, .22), transparent 70%),
    linear-gradient(135deg, #22172d 0%, #1a1222 60%, #171019 100%);
  border-color: var(--accent-line);
}
.grid > .card { margin-bottom: 0; }
.grid + .card, .card + .grid, form + .card, .grid + .grid { margin-top: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card > h2 { margin-bottom: 16px; }
.card p:first-child { margin-top: 0; }
.eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack > h2 { margin-bottom: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
form.inline { display: inline-flex; gap: 6px; margin: 0; }
.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty h2 { color: var(--text); margin-bottom: 8px; }
.danger-zone { border-color: rgba(248, 113, 113, .25); }

/* Pločice (kao "VALID UNTIL / Lifetime") */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tile { background: var(--tile); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.tile span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tile b { display: block; margin-top: 6px; font-family: var(--display); font-size: 18px; font-weight: 600; overflow-wrap: anywhere; line-height: 1.3; }
.tile small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

/* Hero (Pregled) */
.hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.hero-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 10px 0 22px; }
.hero-title h2 { font-family: var(--mono); font-size: 26px; font-weight: 700; letter-spacing: .04em; }

/* Koraci (kao "1 Install / 2 Activate") */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.step { display: flex; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--tile); color: var(--text); transition: border-color .15s, transform .15s; }
a.step:hover { border-color: var(--accent-line); text-decoration: none; transform: translateY(-1px); }
.step-num { width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center; background: #33224a; color: var(--accent); font: 700 13px var(--display); }
.step.done .step-num { background: rgba(74, 222, 128, .14); color: var(--green); }
.step b { display: block; font-family: var(--display); font-weight: 600; font-size: 14.5px; }
.step small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.step.done b { color: var(--text-2); }

/* ---------- Forme ---------- */
label { display: flex; flex-direction: column; gap: 7px; font-weight: 500; font-size: 13px; color: var(--text-2); }
input, select, textarea {
  width: 100%; background: var(--field); border: 1px solid var(--border-2); color: var(--text);
  border-radius: var(--radius-sm); padding: 10px 12px; font: inherit; font-weight: 400; transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
textarea { resize: vertical; min-height: 70px; }
input:hover, select:hover, textarea:hover { border-color: #46365a; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
select { cursor: pointer; }
input[type=color] { padding: 4px; height: 42px; cursor: pointer; }
input[type=checkbox], input[type=radio] { width: 17px; height: 17px; accent-color: var(--accent); flex: none; margin: 0; cursor: pointer; }
input[type=date], input[type=time], input[type=datetime-local] { color-scheme: dark; }
.row input, .row select { width: auto; flex: 1; min-width: 170px; }
.hint { color: var(--muted); font-weight: 400; font-size: 12px; }
.switch-row { flex-direction: row; align-items: center; gap: 10px; font-weight: 400; cursor: pointer; align-self: end; padding: 10px 0; color: var(--text-2); }
details { border-top: 1px solid var(--border); padding-top: 14px; }
details > summary { cursor: pointer; font-weight: 600; color: var(--text-2); margin-bottom: 12px; list-style: none; }
details > summary::before { content: '▸'; display: inline-block; margin-right: 8px; color: var(--accent); transition: transform .15s; }
details[open] > summary::before { transform: rotate(90deg); }
details form { margin-bottom: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 15px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-2); background: #1d1626; color: var(--text); font: 600 13.5px var(--font);
  cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s, transform .1s;
}
.btn:hover { background: #251c30; border-color: #4a3a5c; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: linear-gradient(180deg, #e8c2fd, #cf94f7); border-color: transparent; color: var(--accent-ink); box-shadow: 0 8px 22px -8px rgba(219, 168, 250, .65), 0 0 0 1px rgba(255, 255, 255, .15) inset; }
.btn.primary:hover { background: linear-gradient(180deg, #efd2fe, #d9a5fa); box-shadow: 0 10px 26px -8px rgba(219, 168, 250, .8), 0 0 0 1px rgba(255, 255, 255, .2) inset; }
.btn.danger { background: var(--red); border-color: var(--red); color: #2a0b0b; }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--hover); }
.btn.danger.ghost { color: #fca5a5; border-color: rgba(248, 113, 113, .35); background: transparent; }
.btn.danger.ghost:hover { background: rgba(248, 113, 113, .1); }
.btn.small { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }
.btn.block { width: 100%; }
.sticky-actions {
  position: sticky; bottom: 14px; z-index: 5; display: flex; gap: 10px; align-items: center; margin-top: 18px;
  padding: 12px 14px; border: 1px solid var(--border-2); border-radius: 14px; background: rgba(22, 16, 29, .88); backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .8);
}

.toggle { width: 42px; height: 24px; border-radius: 999px; border: 0; background: #33293d; position: relative; cursor: pointer; padding: 0; transition: background .15s; }
.toggle i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .18s; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.toggle.on { background: var(--green); }
.toggle.on i { left: 21px; }

.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; font-family: var(--mono); font-size: 12px; color: var(--muted); }

.mode-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.mode-picker label { flex-direction: row; align-items: center; gap: 9px; padding: 10px 15px; border: 1px solid var(--border-2); border-radius: 12px; cursor: pointer; font-weight: 500; background: var(--tile); transition: border-color .15s, background .15s; }
.mode-picker label:hover { border-color: #4a3a5c; }
.mode-picker label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--text); box-shadow: 0 0 0 3px rgba(219, 168, 250, .08); }

.role-picker { display: flex; flex-wrap: wrap; gap: 6px; max-height: 230px; overflow: auto; padding: 2px; }
.role-picker label { flex-direction: row; align-items: center; gap: 7px; padding: 6px 11px; border: 1px solid var(--border-2); border-radius: 999px; font-weight: 500; cursor: pointer; font-size: 12.5px; background: var(--tile); }
.role-picker label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.role-picker input { width: 14px; height: 14px; }
.role-picker i, .role i { width: 10px; height: 10px; border-radius: 50%; background: #99aab5; display: inline-block; flex: none; }
.role { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; margin: 2px 4px 2px 0; border-radius: 999px; background: var(--tile); border: 1px solid var(--border); font-size: 12px; }

.type-checks { display: flex; flex-direction: column; gap: 8px; }
.type-checks label { flex-direction: row; align-items: center; gap: 10px; font-weight: 400; cursor: pointer; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--tile); }
.type-checks label:has(input:checked) { border-color: var(--accent-line); }

.option-box { border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: 12px; padding: 16px 18px; }

/* ---------- Oznake i poruke ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--tile); border: 1px solid var(--border-2); color: var(--text-2); white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.badge.green { background: rgba(74, 222, 128, .08); border-color: rgba(74, 222, 128, .45); color: var(--green); }
.badge.red { background: rgba(248, 113, 113, .08); border-color: rgba(248, 113, 113, .4); color: #fca5a5; }
.badge.yellow { background: rgba(251, 191, 36, .08); border-color: rgba(251, 191, 36, .4); color: #fcd34d; }
.badge.blue { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.badge.gray { color: var(--muted); }
.badge.gray::before { opacity: .5; }

.flash { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; border: 1px solid var(--border-2); background: var(--card); animation: slideIn .25s ease-out; }
.flash.success { border-color: rgba(74, 222, 128, .4); background: rgba(74, 222, 128, .07); }
.flash.error { border-color: rgba(248, 113, 113, .45); background: rgba(248, 113, 113, .08); }
.flash.warning { border-color: rgba(251, 191, 36, .4); background: rgba(251, 191, 36, .07); }
.flash.info { border-color: var(--accent-line); background: var(--accent-soft); }
.flash-status { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Tablice ---------- */
.table-wrap { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.table td { padding: 13px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: rgba(255, 255, 255, .018); }
.table tr:last-child td { border-bottom: 0; }
.table.compact td { padding: 10px 6px; }
.table tr.dim td { opacity: .5; }
.kv { display: grid; }
.kv > div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.kv > div:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.kv b { font-weight: 500; word-break: break-word; }

.tabs { display: flex; gap: 4px; padding: 4px; margin: 0 0 16px; border-radius: 12px; background: var(--tile); border: 1px solid var(--border); overflow-x: auto; width: fit-content; max-width: 100%; }
.tabs a { padding: 7px 13px; color: var(--muted); border-radius: 8px; font-weight: 600; font-size: 13px; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { color: var(--accent-ink); background: var(--accent); }
.tabs a span { border-radius: 999px; padding: 0 7px; font-size: 11.5px; margin-left: 5px; background: rgba(255, 255, 255, .07); }
.tabs a.active span { background: rgba(27, 14, 37, .15); }
.filters { margin-bottom: 14px; }
.filters select { max-width: 240px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 16px; }

.guild-head { display: flex; align-items: center; gap: 12px; }
.guild-head img, .gicon { width: 40px; height: 40px; border-radius: 12px; flex: none; }
.gicon { display: grid; place-items: center; background: #2a1d38; color: var(--accent); font: 700 15px var(--display); }

ol.steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
ol.steps li::marker { color: var(--accent); font-weight: 700; }

/* ---------- Discord pregled ---------- */
.dc-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 6px; font-weight: 500; font-size: 13.5px; color: #fff; background: #4e5058; white-space: nowrap; }
.dc-btn.s1 { background: #5865f2; }
.dc-btn.s3 { background: #248046; }
.dc-btn.s4 { background: #da373c; }
.dc-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dc-preview { background: var(--dc-bg); border-radius: 12px; padding: 16px; color: #dbdee1; font-size: 14.5px; border: 1px solid rgba(255, 255, 255, .05); }
.dc-msg { display: flex; gap: 14px; }
.dc-msg .av { width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover; }
.dc-name { color: var(--accent); font-weight: 600; }
.dc-app { background: #5865f2; color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 4px; margin-left: 5px; font-weight: 700; vertical-align: 1px; }
.dc-time { color: #949ba4; font-size: 12px; margin-left: 6px; }
.dc-embed { --c: #d49cfc; background: var(--dc-embed); border-left: 4px solid var(--c); border-radius: 4px; padding: 10px 14px 12px; margin-top: 6px; max-width: 520px; }
.dc-embed.mini { max-width: none; margin: 0; }
.dc-title { color: #fff; font-weight: 700; margin-bottom: 4px; }
.dc-desc { word-wrap: break-word; }
.dc-field { margin-top: 8px; }
.dc-field b { color: #fff; font-size: 13px; }
.dc-footer { color: #949ba4; font-size: 12px; margin-top: 8px; }
.dc-img { max-width: 100%; border-radius: 4px; margin-top: 10px; display: block; }
.mention { background: rgba(88, 101, 242, .3); color: #c9cdfb; border-radius: 3px; padding: 0 2px; }

.panel-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.panel-item { background: var(--tile); border: 1px solid var(--border); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 12px; transition: border-color .15s; }
.panel-item:hover { border-color: var(--border-2); }
.panel-item .dc-embed { background: #1c1622; }
.panel-meta { border-top: 1px solid var(--border); padding-top: 12px; }

/* ---------- Termini ---------- */
.slots td { padding: 8px 6px; }
.slots input[type=time] { min-width: 112px; }
.slots .slot-max { width: 100px; }
.slot-day-cell { display: flex; gap: 6px; flex-wrap: wrap; }
.slot-day-cell select { min-width: 160px; flex: 1; }
.slot-day-cell input[type=date] { width: auto; }
.upcoming { display: grid; gap: 4px; background: var(--tile); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.upcoming > b { margin-bottom: 4px; }
.upcoming > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.upcoming > div.live span:first-child { color: var(--accent); font-weight: 600; }
.upcoming > div.live span:first-child::before { content: '● '; color: var(--green); }

/* ---------- Analitika ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 6px; }
.kpis > div { background: var(--tile); border: 1px solid var(--border); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 3px; }
.kpis span { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kpis b { font-family: var(--display); font-size: 30px; font-weight: 600; line-height: 1.15; margin-top: 4px; }
.kpis small { color: var(--muted); font-size: 12px; }
.analytics-layout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.count-pill { display: inline-block; min-width: 42px; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--text); font-weight: 650; text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { font-size: 12px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--border-2); color: var(--muted); white-space: nowrap; }
.slot-fills { display: grid; gap: 14px; }
.slot-fill-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 7px; }
.slot-fill-top .num { display: inline-flex; align-items: center; gap: 8px; }
.meter-track { height: 8px; border-radius: 999px; background: rgba(219, 168, 250, .14); overflow: hidden; }
.meter-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #c98bf5, #e8c2fd); }

/* ---------- Transkript ---------- */
.tr-list { background: var(--dc-bg); border-radius: 12px; padding: 8px 0; max-height: 75vh; overflow: auto; }
.tr-msg { display: flex; gap: 14px; padding: 7px 16px; }
.tr-msg:hover { background: #2e3035; }
.tr-msg .av { width: 40px; height: 40px; border-radius: 50%; background: #1e1f22; flex: none; }
.tr-body { min-width: 0; flex: 1; color: #dbdee1; }
.tr-head { display: flex; gap: 8px; align-items: baseline; }
.tr-head b { color: #fff; }
.botb { background: #5865f2; color: #fff; font-size: 10px; padding: 1px 4px; border-radius: 3px; font-weight: 700; }
.tr-img { max-width: 360px; max-height: 280px; border-radius: 6px; margin-top: 6px; display: block; }
.tr-file { display: inline-block; margin-top: 6px; }
.tr-body pre { background: #1e1f22; padding: 8px; border-radius: 4px; white-space: pre-wrap; }

/* ---------- Prijava / instalacija ---------- */
body.auth { display: grid; place-items: center; padding: 16px; background: radial-gradient(800px 520px at 50% -10%, rgba(201, 139, 245, .2), transparent 70%), var(--bg); }
.auth-card { width: 100%; max-width: 400px; background: linear-gradient(180deg, #1d1527, var(--card)); border: 1px solid var(--accent-line); border-radius: 20px; padding: 32px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), 0 0 60px -20px rgba(201, 139, 245, .25); }
.auth-card h1 { font-size: 22px; margin: 14px 0 16px; }
.auth-card .flash { margin: 0 0 12px; }
.brand.big { flex-direction: column; text-align: center; gap: 14px; }
.brand.big .brand-text { align-items: center; }
.brand.big .brand-text b { font-size: 22px; }
.brand.big .logo { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 0 0 1px rgba(219, 168, 250, .3), 0 0 44px rgba(219, 168, 250, .35); }

/* ---------- Mobitel ---------- */
@media (max-width: 1000px) {
  .grid.two, .grid.three, .grid.sidebar-layout, .analytics-layout { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-user { display: none; }
}
@media (max-width: 700px) {
  .container { padding: 0 16px; }
  .topnav-row { height: 58px; gap: 10px; }
  .brand-text, .nav-sep, .nav-logout span { display: none; }
  .guild-switch select { max-width: 42vw; }
  .bot-pill span { display: none; }
  .bot-pill { padding: 8px; }
  .page { padding-top: 24px; }
  .page-head h1 { font-size: 24px; }
  .card { padding: 18px 16px; }
  .kv > div { grid-template-columns: 1fr; gap: 2px; }
  .copy-row { flex-wrap: wrap; }
  .hero-title h2 { font-size: 20px; }
}
