/* Админка DatoVPN — дополнение к style.css и cabinet.css */
.adm-badge { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; font-size: 38px; margin: 0 auto 16px;
  background: #121212; border: 1.5px solid rgba(255,196,31,.5); box-shadow: 0 0 50px -12px rgba(255,184,0,.4); }
.adm-tabs { display: flex; gap: 4px; margin-left: 8px; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid #222; }
.adm-tabs button { padding: 7px 14px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--dim); }
.adm-tabs button:hover { color: var(--text); }
.adm-tabs button.on { background: var(--grad); color: var(--on-gold); }
@media (max-width: 760px) {
  .header .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; row-gap: 10px; }
  .adm-tabs { order: 3; width: 100%; margin-left: 0; }
  .adm-tabs button { flex: 1; }
}

#app > .wrap > section { padding: 0; }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 900px) { .kpis { grid-template-columns: 1fr 1fr; } }
.kpi { padding: 18px; }
.kpi span { display: block; color: var(--dim); font-size: 13px; }
.kpi b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.kpi small { color: var(--muted); font-size: 12px; }
.kpi.accent b { color: var(--gold); }

/* chart: one series, brand gold, bars anchored to the baseline */
.chart { position: relative; height: 220px; }
.chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart .grid line { stroke: #222; stroke-width: 1; }
.chart .grid text, .chart .xlab { fill: var(--muted); font-size: 11px; font-family: inherit; }
.chart .bar { fill: var(--gold); }
.chart .hit { fill: transparent; cursor: default; }
.chart .hit:hover + .bar, .chart .bar.hl { fill: #FFD452; }
.chart-empty { color: var(--muted); font-size: 14px; display: grid; place-items: center; height: 100%; border: 1px dashed #2A2A2A; border-radius: 12px; }
.tip { position: fixed; z-index: 120; pointer-events: none; background: #1A1A1A; border: 1px solid #333; border-radius: 10px; padding: 8px 10px; font-size: 13px;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.8); white-space: nowrap; }
.tip b { display: block; font-size: 15px; }
.tip span { color: var(--dim); }

/* tables */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.filters .input { height: 42px; width: auto; min-width: 180px; }
.filters select.input { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%);
  background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px; background-size: 5px 5px; background-repeat: no-repeat; }
.search { position: relative; flex: 1; min-width: 200px; }
.search svg { position: absolute; left: 12px; top: 12px; width: 18px; height: 18px; color: var(--muted); }
.search .input { width: 100%; padding-left: 38px; }
.table-wrap { overflow-x: auto; padding: 4px 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; padding: 10px 14px; border-bottom: 1px solid #1E1E1E; white-space: nowrap; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid #1A1A1A; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr.click { cursor: pointer; }
.tbl tbody tr.click:hover td { background: rgba(255,255,255,.025); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .muted { color: var(--muted); font-size: 12px; }
.tbl .btn { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.tbl-empty { padding: 28px; text-align: center; color: var(--muted); }
.pager { display: flex; justify-content: space-between; margin-top: 12px; }
.pager .btn[disabled] { opacity: .35; pointer-events: none; }

/* status pills: color + text label, never color alone */
.pill-st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 7px; white-space: nowrap;
  background: rgba(255,255,255,.05); color: var(--dim); }
.pill-st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-st.paid, .pill-st.active { color: var(--green); background: rgba(61,220,132,.1); }
.pill-st.pending { color: var(--gold); background: rgba(255,196,31,.1); }
.pill-st.underpaid, .pill-st.failed, .pill-st.blocked { color: var(--danger); background: rgba(240,112,112,.1); }

/* compact list on dashboard */
.mini-list { display: grid; gap: 2px; }
.mini-list div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid #1A1A1A; font-size: 14px; align-items: center; }
.mini-list div:last-child { border-bottom: 0; }
.mini-list .who-l { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-list .who-l small { display: block; color: var(--muted); font-size: 12px; }

/* user card */
.user-card { max-width: 560px; text-align: left; max-height: calc(100vh - 32px); overflow: auto; gap: 0; }
.user-card h2 { font-size: 22px; letter-spacing: -.02em; }
.uc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.uc-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 16px 0 8px; }
.uc-actions .input { height: 40px; }
.uc-orders { list-style: none; display: grid; gap: 6px; margin-top: 8px; }
.uc-orders li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 9px 12px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid #222; }
.uc-sec { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 18px; }
.x-btn { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--dim); border: 1px solid #262626; flex: none; }
.x-btn:hover { color: var(--text); }
