/* ---------- Админка поддержки ---------- */
.adm {
  position: fixed; inset: 0; z-index: 28; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
  background: rgba(10,12,24,.82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  opacity: 0; transform: translateY(14px); transition: opacity .22s, transform .26s cubic-bezier(.2,.9,.3,1);
}
.adm.is-open { opacity: 1; transform: none; }
.adm__body { max-width: 520px; margin: 0 auto; padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(40px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 12px; }
.adm__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.adm__top h1 { flex: 1; font-size: 20px; font-weight: 700; text-align: center; }
.adm__top h1:first-child { text-align: left; }
.adm__x { flex: none; width: 40px; height: 40px; border-radius: 14px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.adm__x svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.adm__search, .adm__note, .adm__modal select, .adm__modal textarea {
  width: 100%; border-radius: 16px; border: 1px solid rgba(255,255,255,.18); background: rgba(8,10,20,.35);
  color: #fff; font: 16px inherit; font-family: inherit; outline: none; padding: 0 16px;
}
.adm__search { height: 46px; }
.adm__search:focus, .adm__note:focus, .adm__modal select:focus, .adm__modal textarea:focus { border-color: rgba(247,37,133,.7); }
.adm__note, .adm__modal textarea { padding: 12px 16px; resize: vertical; min-height: 76px; line-height: 1.4; }
.adm__modal select { height: 46px; }
.adm__modal select option { color: #000; }

.adm__chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.adm__chips::-webkit-scrollbar { display: none; }
.adm__chip { flex: none; height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.08); color: rgba(255,255,255,.8); font: 600 13px inherit; font-family: inherit; cursor: pointer; }
.adm__chip.is-on { background: linear-gradient(180deg, rgba(247,37,133,.65), rgba(247,37,133,.35)); border-color: rgba(247,37,133,.6); color: #fff; }

.adm__list, .adm__gifts, .adm__flags { display: flex; flex-direction: column; gap: 8px; }
.adm__row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 22px; border: 0; color: #fff; font-family: inherit; text-align: left; cursor: pointer; transition: transform .15s; }
.adm__row:active { transform: scale(.98); }
.adm__row > *, .adm__card > *, .adm__stat > *, .adm__gift > *, .adm__flag > *, .adm__log > * { position: relative; }
.adm__ava { flex: none; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 700 18px 'Unbounded', system-ui, sans-serif; font-style: normal; background: linear-gradient(135deg, #f72585, #7b2cff); }
.adm__who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.adm__who b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm__who u { text-decoration: none; margin-left: 6px; padding: 2px 7px; border-radius: 8px; font-size: 10px; font-weight: 700; background: rgba(255,255,255,.16); }
.adm__who small { font-size: 12px; color: rgba(255,255,255,.6); }
.adm__chev { flex: none; display: flex; opacity: .5; }
.adm__chev svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.adm__badge { flex: none; font-style: normal; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 10px; }
.adm__badge.is-ok { background: rgba(74,222,128,.18); color: #4ade80; }
.adm__badge.is-warn { background: rgba(251,191,36,.18); color: #fbbf24; }
.adm__badge.is-bad { background: rgba(255,107,157,.2); color: #ff6b9d; }
.adm__empty { padding: 22px 0; text-align: center; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.5); }
.adm__link { align-self: center; margin-top: 6px; background: none; border: 0; color: rgba(255,255,255,.5); font: 600 12px inherit; font-family: inherit; text-decoration: underline; cursor: pointer; }

.adm__head { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 26px; }
.adm__head .adm__ava { width: 52px; height: 52px; font-size: 22px; }
.adm__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.adm__btn { flex: 1; min-width: 130px; height: 44px; padding: 0 14px; border-radius: 22px; cursor: pointer; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.1); box-shadow: inset 0 1px 1px rgba(255,255,255,.25); color: #fff; font: 700 13px inherit; font-family: inherit; transition: transform .15s; }
.adm__btn:active { transform: scale(.97); }
.adm__btn--ok { background: rgba(74,222,128,.22); border-color: rgba(74,222,128,.5); }
.adm__btn--bad { background: rgba(255,107,157,.2); border-color: rgba(255,107,157,.5); }

.adm__h { margin: 8px 2px 0; font: 700 16px 'Unbounded', system-ui, sans-serif; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.adm__h span { font: 600 12px inherit; font-family: inherit; color: rgba(255,255,255,.55); }
.adm__sec { display: block; }
.adm__sec .adm__h { margin-top: 8px; }
.adm__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.adm__stat { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 14px; border-radius: 22px; border: 0; color: #fff; font-family: inherit; text-align: left; cursor: pointer; transition: transform .15s; }
.adm__stat:active { transform: scale(.97); }
.adm__stat--wide { width: 100%; }
.adm__stat small { font-size: 11px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: rgba(255,255,255,.6); }
.adm__stat b { font: 700 22px 'Unbounded', system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.adm__stat em { font-style: normal; font-size: 11px; color: #f72585; font-weight: 700; }

.adm__gift { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 20px; }
.adm__gift i { flex: none; width: 44px; height: 44px; border-radius: 14px; font-style: normal; font-size: 26px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.12); }
.adm__gift span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.adm__gift b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm__gift small { font-size: 12px; color: rgba(255,255,255,.6); }
.adm__mini { flex: none; height: 34px; padding: 0 14px; border-radius: 17px; cursor: pointer; border: 1px solid rgba(255,107,157,.5); background: rgba(255,107,157,.18); color: #fff; font: 700 12px inherit; font-family: inherit; }

.adm__flag { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 20px; border: 0; color: #fff; font-family: inherit; text-align: left; cursor: pointer; }
.adm__flag span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.adm__flag b { font-size: 14px; }
.adm__flag small { font-size: 12px; color: rgba(255,255,255,.6); }
.adm__flag i { flex: none; position: relative; width: 46px; height: 28px; border-radius: 14px; background: rgba(255,255,255,.18); transition: background .2s; }
.adm__flag i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .22s cubic-bezier(.3,1.4,.5,1); }
.adm__flag.is-on i { background: #f72585; }
.adm__flag.is-on i::after { transform: translateX(18px); }

.adm__log { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 22px; max-height: 320px; overflow-y: auto; }
.adm__log div { display: flex; flex-direction: column; gap: 1px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.08); }
.adm__log div:last-child { border: 0; padding: 0; }
.adm__log time { font-size: 11px; color: rgba(255,255,255,.5); }
.adm__log span { font-size: 13px; line-height: 1.35; }

.adm__modal { z-index: 32; }
.adm__f { display: flex; flex-direction: column; gap: 5px; }
.adm__f > span { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.65); }
.adm__msub { margin: -4px 0 0; font-size: 13px; line-height: 1.4; color: rgba(255,255,255,.65); }

.adm__toast { position: fixed; left: 50%; bottom: calc(110px + env(safe-area-inset-bottom, 0px)); z-index: 40; transform: translate(-50%, 12px); opacity: 0; padding: 12px 18px; border-radius: 20px; font-size: 13px; font-weight: 600; max-width: calc(100% - 40px); text-align: center; transition: opacity .25s, transform .25s; pointer-events: none; }
.adm__toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.adm-ban { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(8,10,20,.92); }
.adm-ban .modal__card { transform: none; text-align: center; }
.adm-ban p { font-size: 14px; line-height: 1.4; color: rgba(255,255,255,.75); }

.adm__sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 14px; border-radius: 22px; }
.adm__sum > * { position: relative; display: flex; flex-direction: column; gap: 3px; }
.adm__sum small { font-size: 10px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; color: rgba(255,255,255,.55); }
.adm__sum b { font: 700 18px 'Unbounded', system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.adm__sum b.is-hot, .adm__hot { color: #fbbf24; font-style: normal; font-weight: 700; }
.adm__lbl { flex: none; align-self: center; font-size: 12px; color: rgba(255,255,255,.5); }
.adm__tag { margin-left: 6px; padding: 2px 7px; border-radius: 8px; font-size: 10px; font-weight: 700; text-decoration: none; background: rgba(74,222,128,.2); color: #4ade80; }
.adm__tag.is-bad { background: rgba(255,107,157,.2); color: #ff6b9d; }
.adm__who b u.adm__tag { margin-left: 6px; }
.adm__tags { flex-wrap: wrap; overflow: visible; }
.adm__txs { display: flex; flex-direction: column; gap: 8px; }
.adm__tx { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 10px; padding: 12px 14px; border-radius: 20px; }
.adm__tx > * { position: relative; }
.adm__txm { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.adm__txm b { font-size: 14px; }
.adm__txm small { font-size: 12px; color: rgba(255,255,255,.55); }
.adm__tx strong { font: 700 14px 'Unbounded', system-ui, sans-serif; white-space: nowrap; }
.adm__tx strong.is-in { color: #4ade80; }
.adm__txb { grid-column: 1 / -1; display: flex; gap: 8px; }
.adm__mini--ok { border-color: rgba(74,222,128,.5); background: rgba(74,222,128,.2); }
.adm__txb .adm__mini { flex: 1; }
.adm__linkbtn { background: none; border: 0; color: #f72585; font: 700 12px inherit; font-family: inherit; cursor: pointer; }
