/* =========================================================
   KlikBersama — Panel admin (pink • hitam • putih)
   ========================================================= */
:root {
  --bg: #07070b; --bg-2: #0d0c13; --panel: #111018; --panel-2: #17151f;
  --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .14); --line-pink: rgba(255, 45, 138, .45);
  --pink: #ff2d8a; --pink-2: #ff7ac3; --pink-deep: #c4005c;
  --text: #f3f1f7; --muted: #9d99ae; --green: #2ee59d; --red: #ff4d5e; --amber: #ffb547;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Unbounded', 'Plus Jakarta Sans', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.mono, code, pre { font-family: ui-monospace, 'SF Mono', Consolas, monospace; }
code { background: rgba(255, 45, 138, .12); color: var(--pink-2); padding: .1em .4em; border-radius: 6px; font-size: .9em; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.text-red { color: var(--red); }
.nowrap { white-space: nowrap; }
.grow { flex: 1 1 220px; }
.ml-auto { margin-left: auto; }
.inline-link { color: var(--pink-2); font-weight: 600; }
.inline-link:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--pink-2); outline-offset: 2px; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 18px;
  border-radius: 12px; border: 1px solid transparent; font: 700 .92rem var(--font); cursor: pointer; color: #fff;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .2s, border-color .2s; white-space: nowrap;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: .84rem; border-radius: 10px; }
.btn-lg { min-height: 52px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-pink { background: linear-gradient(180deg, #ff4f9f, var(--pink) 60%, #e8127a); box-shadow: 0 4px 0 var(--pink-deep), 0 10px 24px rgba(255, 45, 138, .35), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-pink:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 5px 0 var(--pink-deep), 0 14px 30px rgba(255, 45, 138, .45), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-pink:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--pink-deep), 0 4px 10px rgba(255, 45, 138, .3); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--line-pink); background: rgba(255, 45, 138, .08); }
.btn-danger { background: rgba(255, 77, 94, .12); border-color: rgba(255, 77, 94, .5); color: var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; }
.mini { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--text); font: 600 .78rem var(--font); cursor: pointer; }
.mini:hover { border-color: var(--pink); color: #fff; }
.mini-red { color: var(--red); border-color: rgba(255, 77, 94, .35); }
.mini-red:hover { background: var(--red); border-color: var(--red); }
.copy { height: 26px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font: 600 .75rem var(--font); cursor: pointer; }
.copy:hover { color: #fff; border-color: var(--pink); }
.copy.ok { color: var(--green); border-color: var(--green); }

/* ---------- Pill / badge ---------- */
.pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .06em; font-style: normal; white-space: nowrap; }
.pill-green { background: rgba(46, 229, 157, .14); color: var(--green); }
.pill-red { background: rgba(255, 77, 94, .16); color: var(--red); }
.pill-gray { background: rgba(255, 255, 255, .08); color: var(--muted); }
.pill-pink { background: var(--pink); color: #fff; box-shadow: 0 0 12px rgba(255, 45, 138, .6); margin-right: 4px; }

/* ---------- Layout ---------- */
.side {
  position: fixed; inset: 0 auto 0 0; width: 250px; display: flex; flex-direction: column; padding: 20px 14px; z-index: 40;
  background: linear-gradient(180deg, #0f0d15, #08070c); border-right: 1px solid var(--line);
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 22px; font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.side-brand b { color: var(--pink); font-weight: 700; }
.side-brand svg { filter: drop-shadow(0 6px 14px rgba(255, 45, 138, .45)); }
.side-nav { display: grid; gap: 4px; }
.side-nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--muted); font-weight: 600; transition: background .2s, color .2s, transform .2s; }
.side-nav a:hover { color: #fff; background: rgba(255, 255, 255, .04); transform: translateX(2px); }
.side-nav a.on { color: #fff; background: linear-gradient(90deg, rgba(255, 45, 138, .22), rgba(255, 45, 138, .04)); box-shadow: inset 3px 0 0 var(--pink); }
.side-nav a.on svg { color: var(--pink); }
.side-nav em { margin-left: auto; }
.side-foot { margin-top: auto; display: grid; gap: 10px; }
.side-view { color: var(--muted); font-size: .86rem; padding: 0 8px; }
.side-view:hover { color: var(--pink-2); }
.main { margin-left: 250px; min-height: 100vh; }
.top {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; height: 68px; padding: 0 28px;
  background: rgba(7, 7, 11, .96); border-bottom: 1px solid var(--line);
}
.top h1 { font-family: var(--display); font-size: 1.1rem; font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: #fff; font-size: 1.1rem; cursor: pointer; }
.content { padding: 26px 28px 60px; max-width: 1280px; display: grid; gap: 22px; }
.side-scrim { display: none; }

/* ---------- Panel ---------- */
.panel { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.panel h2 { font-size: 1rem; font-weight: 800; margin-bottom: 14px; }
.panel h3 { font-size: .92rem; font-weight: 700; margin: 20px 0 8px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.panel-head h2 { margin: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.align-start { align-items: start; }
.grid-form { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.side-panels { display: grid; gap: 22px; }

/* ---------- Alert ---------- */
.alert { padding: 14px 16px; border-radius: 14px; border: 1px solid; font-size: .92rem; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.alert-ok { background: rgba(46, 229, 157, .08); border-color: rgba(46, 229, 157, .35); color: #b9f7dd; }
.alert-err { background: rgba(255, 77, 94, .08); border-color: rgba(255, 77, 94, .4); color: #ffc2c8; }
.alert-warn { background: rgba(255, 181, 71, .08); border-color: rgba(255, 181, 71, .4); color: #ffe0b0; }
.alert-info { background: rgba(255, 45, 138, .06); border-color: var(--line-pink); color: #ffd3e8; }

/* ---------- Statistik (kartu 3D) ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; perspective: 900px; }
.stat {
  --rx: 0deg; --ry: 0deg; position: relative; overflow: hidden; padding: 20px; border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(160deg, #1a1622, #0f0e15); transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .4s var(--ease), border-color .3s;
  display: grid; gap: 4px;
}
.stat.tilting { transition: transform .08s linear; }
.stat::after { content: ''; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 45, 138, .35), transparent 70%); }
.stat:hover { border-color: var(--line-pink); }
.stat span { color: var(--muted); font-size: .84rem; font-weight: 600; }
.stat b { font-family: var(--display); font-size: 1.9rem; font-weight: 700; line-height: 1.15; }
.stat small { color: var(--muted); font-size: .8rem; }
.stat small a { color: var(--pink-2); }
.stat-red b { color: var(--red); }

/* ---------- Chart ---------- */
.chart svg { width: 100%; height: 140px; display: block; }
[hidden] { display: none !important; }
.chart rect { fill: var(--pink); opacity: .85; transition: opacity .2s; }
.chart rect:hover { opacity: 1; fill: var(--pink-2); }
.chart-x { display: flex; justify-content: space-between; color: var(--muted); font-size: .75rem; margin-top: 6px; }
.short-card .chart svg { height: 90px; }

.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rank li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .02); }
.rank li:hover { background: rgba(255, 45, 138, .06); }
.rank a { flex: 1; min-width: 0; display: flex; gap: 10px; align-items: baseline; overflow: hidden; }
.rank a span { color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank em { font-style: normal; font-weight: 800; color: var(--pink-2); }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { display: grid; grid-template-columns: 14px 1fr auto; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.timeline li:last-child { border-bottom: 0; }
.timeline i { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); transform: translateY(-1px); }
.timeline time { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.ev-switch i { background: var(--pink); box-shadow: 0 0 10px var(--pink); }
.ev-blocked i, .ev-exhausted i { background: var(--red); box-shadow: 0 0 10px var(--red); }
.ev-domain i, .ev-create i { background: var(--green); }
.ev-type { font-style: normal; font-weight: 700; color: var(--pink-2); margin-right: 4px; }

/* ---------- Toolbar & tabs ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.toolbar input[type=search] { flex: 1 1 280px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: .86rem; }
.tabs a:hover { color: #fff; border-color: var(--line-2); }
.tabs a.on { color: #fff; background: var(--pink); border-color: var(--pink); }
.tabs-sticky { position: sticky; top: 76px; z-index: 5; padding: 8px; background: rgba(7, 7, 11, .96); border-radius: 999px; border: 1px solid var(--line); width: fit-content; max-width: 100%; }

/* ---------- Form ---------- */
input[type=text], input[type=search], input[type=url], input[type=password], input[type=number], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: #0a090f; color: var(--text); font: 500 .95rem var(--font); transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; line-height: 1.6; }
textarea.mono { font-family: ui-monospace, Consolas, monospace; font-size: .88rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255, 45, 138, .15); }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-weight: 700; font-size: .86rem; }
.field small, .form small { color: var(--muted); font-size: .8rem; }
.field-sm { width: 150px; flex: none; }
.req { color: var(--pink); font-style: normal; }
.row-gap { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.input-prefix { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: #0a090f; }
.input-prefix:focus-within { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255, 45, 138, .15); }
.input-prefix em { display: flex; align-items: center; padding: 0 4px 0 14px; color: var(--muted); font-style: normal; font-size: .9rem; white-space: nowrap; }
.input-prefix input { border: 0; box-shadow: none !important; padding-left: 2px; min-width: 0; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: .9rem; min-height: 44px; }
.switch input { position: absolute; opacity: 0; }
.switch i { position: relative; width: 44px; height: 24px; border-radius: 999px; background: rgba(255, 255, 255, .14); transition: background .2s; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.switch input:checked + i { background: var(--pink); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 2px solid var(--pink-2); outline-offset: 2px; }
.radio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.radio-card { cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card span { display: grid; gap: 2px; height: 100%; padding: 14px; border-radius: 14px; border: 1px solid var(--line-2); transition: border-color .2s, background .2s; }
.radio-card small { color: var(--muted); font-size: .8rem; }
.radio-card input:checked + span { border-color: var(--pink); background: rgba(255, 45, 138, .1); box-shadow: 0 0 0 1px var(--pink) inset; }
.radio-card input:focus-visible + span { outline: 2px solid var(--pink-2); }
.mode-box { border: 1px dashed var(--line-2); border-radius: 14px; padding: 14px; margin: 0; display: grid; gap: 8px; }
.adv summary { cursor: pointer; color: var(--pink-2); font-weight: 600; font-size: .9rem; }
.adv[open] { display: grid; gap: 14px; }
.test-box { margin-top: 20px; padding-top: 6px; border-top: 1px solid var(--line); }
.test-out { padding: 14px; border-radius: 12px; background: #0a090f; border: 1px solid var(--line); display: grid; gap: 8px; }
.test-out pre { margin: 0; white-space: pre-wrap; word-break: break-all; font-size: .82rem; color: var(--muted); }
.codebox { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #0a090f; border: 1px solid var(--line); overflow: hidden; }
.codebox code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; background: none; padding: 0; color: #ffd3e8; font-size: .82rem; }
.sub-form { margin-top: 18px; padding-top: 4px; border-top: 1px solid var(--line); }
.sub-form h3 { margin-top: 14px; }

/* ---------- Daftar link ---------- */
.link-list { display: grid; gap: 12px; }
.link-row { display: flex; gap: 18px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel-2), var(--panel)); transition: border-color .2s, transform .2s; }
.link-row:hover { border-color: var(--line-pink); transform: translateY(-1px); }
.link-row.is-off { opacity: .55; }
.link-row.is-exhausted { border-color: rgba(255, 77, 94, .45); }
.lr-main { flex: 1; min-width: 0; display: grid; gap: 6px; }
.lr-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.lr-slug { font-family: var(--display); font-weight: 700; font-size: 1rem; color: #fff; }
.lr-slug:hover { color: var(--pink-2); }
.lr-title { color: var(--muted); font-size: .88rem; }
.lr-target { font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d9d5e3; }
.dots { display: flex; gap: 5px; flex-wrap: wrap; }
.dots i { width: 10px; height: 10px; border-radius: 3px; background: var(--muted); opacity: .6; }
.dots .dot-ok { background: var(--green); opacity: .8; }
.dots .dot-blocked { background: var(--red); opacity: .9; }
.dots .dot-cur { outline: 2px solid var(--pink); outline-offset: 2px; opacity: 1; }
.lr-side { display: flex; align-items: center; gap: 18px; }
.lr-clicks { text-align: right; }
.lr-clicks b { display: block; font-family: var(--display); font-size: 1.2rem; }
.lr-clicks span { color: var(--muted); font-size: .75rem; }
.lr-actions { display: flex; gap: 8px; }
.pager { display: flex; gap: 6px; flex-wrap: wrap; }
.pager a { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); }
.pager a.on { background: var(--pink); border-color: var(--pink); color: #fff; }
.empty { text-align: center; display: grid; justify-items: center; gap: 12px; padding: 50px 20px; }

/* ---------- Form link ---------- */
.short-card { display: grid; gap: 10px; border-color: var(--line-pink); background: radial-gradient(circle at 100% 0, rgba(255, 45, 138, .2), transparent 50%), linear-gradient(180deg, var(--panel-2), var(--panel)); }
.short-url { font-size: 1.05rem; color: #fff; word-break: break-all; }
.short-meta { color: var(--muted); font-size: .88rem; }
.short-meta b { color: #fff; font-family: var(--display); }
.target-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.target-list li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 10px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: #0c0b11; }
.target-list li.cur { border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink) inset, 0 10px 30px rgba(255, 45, 138, .15); }
.target-list li.st-blocked .tl-url { text-decoration: line-through; text-decoration-color: var(--red); color: var(--muted); }
.tl-pos { grid-row: span 2; font-family: var(--display); font-size: .78rem; color: var(--muted); padding-top: 2px; }
.tl-url { font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-st { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.tl-act { grid-column: 2; display: flex; gap: 6px; }
.tips ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: #d9d5e3; }
.tips p { margin-top: 14px; }
.danger-zone { border-color: rgba(255, 77, 94, .3); }
.danger-zone p { margin-bottom: 12px; }

/* ---------- Tabel ---------- */
.table-wrap { overflow-x: auto; padding: 0; }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th { text-align: left; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.st-blocked { background: rgba(255, 77, 94, .04); }
.ellipsis { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.crud-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.crud-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: #0c0b11; }
.crud-list li.is-off { opacity: .5; }
.crud-list li > div:first-child { min-width: 0; }
.stars-sm { color: var(--pink); font-size: .8rem; }

/* ---------- Login ---------- */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 16px; overflow: hidden; }
.login-bg { position: fixed; inset: 0; z-index: 0; background: radial-gradient(circle at 30% 20%, rgba(255, 45, 138, .25), transparent 45%), radial-gradient(circle at 80% 90%, rgba(255, 122, 195, .15), transparent 45%), var(--bg); }
.login-bg .tesseract { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .75; }
.login-floor { position: absolute; left: -50%; right: -50%; bottom: -10%; height: 55%; background-image: linear-gradient(rgba(255, 45, 138, .3) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 45, 138, .3) 1px, transparent 1px); background-size: 56px 56px; transform: perspective(400px) rotateX(72deg); transform-origin: 50% 100%; -webkit-mask-image: linear-gradient(to top, #000, transparent 80%); mask-image: linear-gradient(to top, #000, transparent 80%); }
@keyframes floor { to { background-position: 0 56px, 0 0; } }
.login-wrap { position: relative; z-index: 1; width: min(420px, 100%); perspective: 1200px; }
.login-card {
  display: grid; gap: 16px; padding: 36px 30px; border-radius: 26px; text-align: left;
  background: linear-gradient(160deg, rgba(28, 22, 36, .96), rgba(10, 9, 15, .97)); border: 1px solid var(--line-pink);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .6), 0 0 60px rgba(255, 45, 138, .18), inset 0 1px 0 rgba(255, 255, 255, .08);
  animation: card-in 1s var(--ease) both;
}
@keyframes card-in { from { opacity: 0; transform: rotateX(25deg) translateY(40px) translateZ(-120px); } }
.login-logo { display: grid; place-items: center; animation: logo-spin 6s ease-in-out 3; transform-style: preserve-3d; }
.login-logo svg { filter: drop-shadow(0 12px 28px rgba(255, 45, 138, .55)); }
@keyframes logo-spin { 0%, 70% { transform: rotateY(0); } 85%, 100% { transform: rotateY(360deg); } }
.login-card h1 { text-align: center; font-family: var(--display); font-size: 1.5rem; font-weight: 700; }
.login-card h1 b { color: var(--pink); font-weight: 700; }
.login-sub { text-align: center; color: var(--muted); font-size: .9rem; margin-top: -10px; }

/* ---------- Responsif ---------- */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-form { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .side { transform: translateX(-100%); transition: transform .3s var(--ease); }
  .side-open .side { transform: none; }
  .side-open .side-scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(0, 0, 0, .6); }
  .main { margin-left: 0; }
  .menu-btn { display: block; }
  .top { padding: 0 16px; }
  .content { padding: 18px 16px 50px; }
  .grid-2 { grid-template-columns: 1fr; }
  .radio-cards { grid-template-columns: 1fr; }
  .link-row { flex-direction: column; gap: 12px; }
  .lr-side { justify-content: space-between; }
  .lr-clicks { text-align: left; }
  .tabs-sticky { top: 72px; border-radius: 16px; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat b { font-size: 1.4rem; }
  .top .btn-sm { padding: 0 10px; }
  .field-sm { width: calc(50% - 5px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ================= v2: panel rapi, logout, statistik ================= */
.side { overflow-y: auto; }
.side-foot { min-width: 0; padding-top: 14px; }
.side-foot form, .side-foot .btn { width: 100%; min-width: 0; }
.user-card { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.user-av { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: linear-gradient(145deg, var(--pink), var(--pink-deep)); }
.user-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: .88rem; }
.user-name small { display: block; color: var(--muted); font-weight: 500; font-size: .72rem; }
.top-logout { margin: 0; }
@media (max-width: 520px) { .hide-sm { display: none; } }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.filters .field { width: auto; flex: 1 1 150px; }
.filters select, .filters input { min-height: 40px; padding: 8px 12px; font-size: .88rem; }
.mini-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font-size: .86rem; }
.bars li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars li b { font-variant-numeric: tabular-nums; }
.bars li i { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.bars li i::before { content: ''; display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--pink), var(--pink-2)); }
.bars.bars-bot li i::before { background: linear-gradient(90deg, #8b8799, #c9c5d6); }
.big-num { font-family: var(--display); font-size: 1.7rem; font-weight: 700; }
.table .ua { max-width: 260px; font-size: .74rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table td .sub { display: block; color: var(--muted); font-size: .76rem; }
.tag-bot { color: #c9c5d6; background: rgba(255, 255, 255, .08); }
.row-fail td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.row-ok td:first-child { box-shadow: inset 3px 0 0 var(--green); }
.ts-box { padding: 14px; border-radius: 12px; border: 1px dashed var(--line-2); display: grid; gap: 10px; }
.steps-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: #d9d5e3; font-size: .9rem; }
