/* ================= Кабінет ================= */
.ico { width: 16px; height: 16px; flex: none; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent2); margin-bottom: 4px; }
.cab { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.cab__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.cab__title { font-size: 34px; margin: 0 0 6px; line-height: 1.1; }
.cab__head p { margin: 0; }
.cab__avatar { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(226,180,90,.12); border: 1px solid rgba(226,180,90,.35); color: var(--accent2); flex: none; }
.cab__avatar .ico { width: 24px; height: 24px; }
.cab__nav { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px; margin-bottom: 22px; }
.cab__tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.cab__tabs a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 10px; border-radius: 9px; color: var(--muted); font-weight: 650; font-size: 14px; border: 1px solid transparent; }
.cab__tabs a .ico { color: var(--accent2); opacity: .85; }
.cab__tabs a:hover { color: #fff; background: var(--panel2); }
.cab__tabs a.is-on { color: #fff; background: rgba(226,180,90,.14); border-color: rgba(226,180,90,.45); }
.cab__actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 8px; flex-wrap: wrap; }
.btn .ico { width: 15px; height: 15px; }
.btn--logout { color: #fca5a5; }
.cab__cards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 16px; margin-bottom: 30px; align-items: stretch; }
.cab__card { display: flex; align-items: center; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; min-width: 0; }
.cab__card > div { display: flex; flex-direction: column; min-width: 0; }
.cab__card b { font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cab__card-btn { margin-left: auto; }
.cab__ic { width: 46px; height: 46px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--panel2); border: 1px solid var(--line); color: var(--accent2); }
.cab__ic .ico { width: 20px; height: 20px; }
.btn--accent { background: linear-gradient(135deg, #f3d58f, #d9a648); border: 0; color: #1d1504; font-weight: 800; box-shadow: 0 8px 24px rgba(226,180,90,.25); }
.btn--accent:hover { filter: brightness(1.08); color: #1d1504; background: linear-gradient(135deg, #f3d58f, #d9a648); }
.cab__add { align-self: center; padding: 15px 22px; font-size: 15px; border-radius: 10px; }
.cab__section { margin: 6px 0 14px; }
.cab__section--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.cab__h2 { font-size: 24px; margin: 0; }
.cab__table { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 26px; }
.ctr { display: grid; grid-template-columns: 56px minmax(0, 2.2fr) minmax(0, 1.3fr) 90px minmax(0, 1fr) 190px; gap: 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.ctr:last-child { border-bottom: 0; }
.ctr--head { background: linear-gradient(180deg, #2a2d33, #212328); color: var(--muted); font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; padding: 12px 16px; }
.ctr--pending { grid-template-columns: 56px minmax(0, 1fr) auto auto; }
.ctr--svc { grid-template-columns: 170px minmax(0, 2fr) 150px 110px 130px; }
.ctr--pay { grid-template-columns: 70px 150px minmax(0, 1fr) 150px 120px 110px; }
.ctr__name { display: flex; flex-direction: column; min-width: 0; }
.ctr__name a { color: var(--text); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctr__name a:hover { color: #fff; }
.ctr__name small { color: var(--muted); font-size: 12px; margin-top: 2px; }
.ctr__addr { display: flex; align-items: center; gap: 7px; min-width: 0; }
.ctr__pl { font-variant-numeric: tabular-nums; color: var(--muted); }
.ctr__pl b { color: var(--accent2); font-size: 15px; }
.ctr__map { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctr__ctl { display: flex; justify-content: flex-end; gap: 8px; }
.ctr .r, .ctr--head .r { text-align: right; justify-self: end; }
.ibtn { width: 38px; height: 38px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--panel2); border: 1px solid var(--line); color: var(--muted); cursor: pointer; padding: 0; }
.ibtn:hover { color: #fff; border-color: #41454d; }
.ibtn--accent { color: var(--accent2); }
.ibtn--danger:hover { color: #fca5a5; border-color: rgba(239,68,68,.5); background: rgba(239,68,68,.08); }
.cab__pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cab__pickcard { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; color: var(--text); min-width: 0; }
.cab__pickcard b { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cab__pickcard:hover { border-color: var(--accent); color: var(--text); }
.cab__narrow { max-width: 720px; }
.cab .card { background: var(--panel); }
.tag--warn { color: #fde68a; background: rgba(245,197,66,.1); border-color: rgba(245,197,66,.4); }
.tag--err { color: #fca5a5; background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.4); }
.inline { display: inline-flex; margin: 0; }
.usernav__admin { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); }

@media (max-width: 1000px) {
  .cab__tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cab__cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cab__add { grid-column: 1 / -1; justify-content: center; }
  .ctr { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .ctr--head { display: none; }
  .ctr__addr { grid-column: 2; }
  .ctr__pl { grid-column: 3; grid-row: 1; }
  .ctr__map { display: none; }
  .ctr__ctl { grid-column: 2 / -1; justify-content: flex-start; }
  .ctr--svc, .ctr--pay { grid-template-columns: minmax(0, 1fr) auto; }
  .ctr--svc > :nth-child(3), .ctr--pay > :nth-child(2), .ctr--pay > :nth-child(3) { display: none; }
  .cab__pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .cab { padding: 16px; border-radius: 12px; }
  .cab__title { font-size: 26px; }
  .cab__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cab__tabs a { justify-content: flex-start; }
  .cab__cards { grid-template-columns: minmax(0, 1fr); }
  .cab__pick { grid-template-columns: minmax(0, 1fr); }
  .usernav__admin span { display: none; }
}

/* ================= Адмінка ================= */
.adminbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 8px 12px; margin-bottom: 20px; }
.adminbar__title { font-weight: 800; color: var(--gold); }
.adminnav { display: flex; gap: 2px; flex-wrap: wrap; }
.adminnav a { padding: 7px 11px; border-radius: 7px; color: var(--muted); font-weight: 600; font-size: 14px; }
.adminnav a:hover { color: #fff; background: var(--panel2); }
.adminnav a.is-on { color: #fff; background: var(--panel2); box-shadow: inset 0 -2px 0 var(--gold); }
.adminbar__warn { margin-left: auto; color: #fde68a; font-size: 13px; font-weight: 700; background: rgba(245,197,66,.1); border: 1px solid rgba(245,197,66,.35); padding: 5px 10px; border-radius: 7px; }
.badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--off); color: #fff; font-size: 11px; font-weight: 800; text-align: center; line-height: 18px; }
.stats--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
a.stat { color: var(--text); }
a.stat:hover { border-color: #41454d; }
.stat--warn { border-color: rgba(245,197,66,.5); }
.stat--warn .stat__v { color: var(--gold); }
.money3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.money3 > div { display: flex; flex-direction: column; }
.money3 b { font-size: 20px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 70px; margin-bottom: 10px; }
.bars span { flex: 1; background: var(--line); border-radius: 2px 2px 0 0; min-height: 2px; }
.bars span.has { background: var(--accent); }
.svccount { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 14px; }
.svccount > div { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; align-items: center; }
.svccount b { font-size: 20px; }
.svccount span { font-size: 12px; color: var(--muted); }
.pstatus { font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 5px; background: var(--panel2); color: var(--muted); }
.pstatus--paid { color: var(--ok); background: rgba(52,211,153,.1); }
.pstatus--pending { color: #fde68a; background: rgba(245,197,66,.1); }
.pstatus--failed, .pstatus--expired { color: #fca5a5; background: rgba(239,68,68,.1); }
.afilter { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.afilter .chips { margin: 0 8px 0 0; }
.afilter .input { flex: 1 1 260px; }
.mb { margin-bottom: 8px; }
.mt { margin-top: 16px; }
.mt-xs { margin-top: 4px; }
.card--flush { padding: 0; overflow-x: auto; }
.card__foot { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.table--admin th, .table--admin td { padding: 9px 12px; vertical-align: middle; }
.table--admin tr:hover td { background: rgba(255,255,255,.015); }
.table--form .num { width: 90px; }
.row--ban td { background: rgba(239,68,68,.05); }
.row--pending td { background: rgba(245,197,66,.05); }
.row--off td { opacity: .5; }
.ahead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.ahead .h1 { margin: 4px 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ahead__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.statusline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 16px; }
.banform { gap: 6px; flex-wrap: wrap; }
.input--sm { padding: 6px 9px; font-size: 13.5px; }
.banform .input--sm { width: 260px; max-width: 100%; }
.btn--danger { background: #b91c1c; border-color: #b91c1c; color: #fff; }
.btn--danger:hover { background: #dc2626; border-color: #dc2626; }
.form--card { margin: 0 0 16px; padding: 16px; gap: 12px; }
.svcedit { display: grid; grid-template-columns: 100px minmax(0, 1fr) 80px; gap: 8px 10px; align-items: center; }
.svcedit span { color: var(--muted); font-size: 13.5px; }
.danger { border-color: rgba(239,68,68,.35); }
.stack-sm { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.setgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.setgrid .card { margin: 0; }
.setgrid__foot { grid-column: 1 / -1; }
.check--block { display: flex; align-items: flex-start; gap: 10px; color: var(--text); white-space: normal; padding: 6px 0; }
.check--block small { display: block; color: var(--muted); font-size: 12.5px; }
.check--block.is-warn span { color: #fde68a; }
@media (max-width: 1100px) { .stats--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .stats--6, .svccount { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .setgrid, .money3 { grid-template-columns: minmax(0, 1fr); }
  .adminbar__warn { margin-left: 0; }
}
