/* v9 (DESIGN_V9.md): bottom navigation, tasks mode, rename, admin screen */

/* ------------------------------------------------------------------ bottom panel: actions row + nav row */
#bar { flex-direction: column; gap: 6px; padding: 6px 6px 4px; bottom: calc(var(--sab) + 8px); }
#bar .bar-row { display: flex; gap: 6px; min-width: 0; }
#bar .nav-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; border-top: 1px solid var(--line); padding-top: 4px; }
#bar .nav-btn {
  height: 56px; flex-direction: column; gap: 3px; padding: 0 2px; border-radius: 14px;
  color: var(--text-2); font-size: 11.5px; font-weight: 700; letter-spacing: .01em; background: transparent;
}
#bar .nav-btn .ic { width: 25px; height: 25px; color: var(--text); stroke-width: 1.75; transition: color .2s, transform .2s var(--ease-out); }
#bar .nav-btn > span:not([data-ic]) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#bar .nav-btn:active { background: var(--panel-raise); }
#bar .nav-btn.on { color: var(--amber); background: var(--amber-soft); }
#bar .nav-btn.on .ic { color: var(--amber); transform: translateY(-1px); }
#bar .nav-btn.on::after { content: ''; position: absolute; top: 3px; left: 50%; width: 18px; height: 3px; margin-left: -9px; border-radius: 9px; background: var(--amber); }
.nav-dot { position: absolute; top: 7px; right: calc(50% - 18px); width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 2px rgba(17, 23, 19, .9); }
@media (max-width: 360px) {
  #bar .nav-btn { font-size: 10.5px; }
  #bar .nav-btn .ic { width: 23px; height: 23px; }
}
@media (max-height: 640px) {
  #bar .nav-btn { height: 52px; }
  #bar .bar-row button { height: 44px; }
}

/* HUD: only the admin shield remains among the round buttons */
.hud-ic.adm-ic { color: var(--amber); border-color: rgba(226, 166, 91, .4); }

/* tasks mode of the shop sheet: no packs */
.shop-sheet.mode-tasks .sec-packs, .shop-sheet.mode-tasks .packs, .shop-sheet.mode-tasks .crypto-slot { display: none; }

/* own panda card: passport + rename links */
.id-links { display: flex; flex-wrap: wrap; gap: 0 14px; }

/* rename dialog */
.rename h2 { margin-right: 40px; }
.rename .namefield input { flex: 1; }

/* dangerous button */
.big-btn.danger { background: linear-gradient(180deg, #d9735c, #b9533e); color: #fff6f2; box-shadow: 0 6px 18px rgba(185, 83, 62, .3); }

/* ------------------------------------------------------------------ admin */
.admin-sheet { height: calc(100% - var(--sat) - 24px); }
.admin-sheet .adm { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.admin-sheet h2 { margin-right: 44px; }
.adm-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; margin: 6px 0 10px; border-radius: 14px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); flex: none; }
.adm-tab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 10px; font-size: 11.5px; font-weight: 700; color: var(--text-2); min-width: 0; }
.adm-tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-tab .ic { width: 19px; height: 19px; }
.adm-tab.on { background: var(--amber-soft); color: var(--amber); }
.adm-body { flex: 1 1 auto; min-height: 0; padding-bottom: 12px; }
.adm-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 12px; }
.adm-cards.three { grid-template-columns: repeat(3, 1fr); }
.adm-card { position: relative; padding: 10px 11px; border-radius: 14px; background: var(--panel-raise); border: 1px solid var(--line); min-width: 0; }
.adm-card .ac-ic { position: absolute; top: 9px; right: 9px; color: var(--amber); opacity: .8; }
.adm-card .ac-ic .ic { width: 16px; height: 16px; }
.adm-card b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.adm-card small { display: block; font-size: 11.5px; font-weight: 600; color: var(--text-2); line-height: 1.3; margin-top: 2px; }
.adm-card i { display: block; font-style: normal; font-size: 11px; font-weight: 700; color: var(--sage); margin-top: 3px; }
.adm-sub { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); margin: 6px 2px 8px; }
.adm-chart { padding: 10px; border-radius: 14px; background: var(--panel-raise); border: 1px solid var(--line); }
.adm-chart .adm-sub { margin-top: 0; }
.adm-seg { display: flex; gap: 4px; margin-bottom: 8px; flex-wrap: wrap; }
.adm-seg button { height: 28px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 700; color: var(--text-2); border: 1px solid var(--line); }
.adm-seg button.on { color: #1b140c; background: var(--amber); border-color: transparent; }
.adm-svg { display: block; width: 100%; height: auto; overflow: visible; }
.adm-svg text { fill: var(--text-3); font-size: 9px; font-weight: 600; font-family: inherit; }
.adm-svg text.max { fill: var(--text-2); }
.adm-svg line.grid { stroke: var(--line); stroke-dasharray: 3 4; }
.adm-svg rect { cursor: pointer; }
.adm-cap { margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.adm-searchbox { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line-strong); }
.adm-searchbox .ic { color: var(--text-3); width: 18px; height: 18px; }
.adm-search { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--text); font-size: 15px; outline: none; }
.adm-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.adm-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 13px; background: var(--panel-raise); border: 1px solid var(--line); }
button.adm-row:active { background: rgba(255, 255, 255, .08); }
.adm-row.off { opacity: .6; }
.adm-row.banned { border-color: rgba(212, 138, 108, .4); }
.ar-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ar-main b { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-main small { font-size: 11.5px; font-weight: 600; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-side { flex: none; display: flex; align-items: center; gap: 8px; }
.ar-side small { font-size: 11.5px; color: var(--text-2); font-weight: 600; }
.ar-jade, .ar-rank { display: inline-flex; align-items: center; gap: 3px; font-weight: 800; font-size: 13px; color: #bff0d3; }
.ar-rank { color: var(--amber); }
.ar-jade .ic, .ar-rank .ic { width: 14px; height: 14px; }
.adm-dm { color: var(--sage); display: inline-flex; }
.adm-dm .ic { width: 15px; height: 15px; }
.adm-badge { font-style: normal; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 99px; color: var(--sage); background: rgba(143, 179, 122, .14); }
.adm-badge.red { color: #f0a08b; background: rgba(212, 138, 108, .16); }
.adm-more { margin-top: 10px; }
.adm-ph { display: flex; align-items: center; gap: 12px; margin: 4px 44px 12px 0; }
.adm-ph h2 { margin: 0; font-size: 19px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-ph small { font-size: 12px; color: var(--text-3); font-weight: 600; }
.adm-ava { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--amber-soft); color: var(--amber); }
.adm-ava .ic { width: 24px; height: 24px; }
.adm-chips { display: flex; gap: 6px; margin-top: 4px; }
.adm-player .adm { overflow-y: auto; }
.admin-player > .adm { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; margin: 0 -18px; padding: 0 18px 8px; }
.adm-sec { margin-bottom: 12px; }
.adm-form { display: grid; gap: 8px; }
.adm-in { width: 100%; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(0, 0, 0, .25); color: var(--text); font-size: 15px; outline: none; }
.adm-in:focus { border-color: rgba(226, 166, 91, .7); }
select.adm-in { appearance: none; -webkit-appearance: none; }
.adm-form .cf-actions .big-btn { height: 46px; font-size: 15px; }
.adm-item { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 12px; background: var(--panel-raise); border: 1px solid var(--line); margin-bottom: 6px; }
.ai-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ai-main b { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-main small { font-size: 11.5px; color: var(--text-3); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-empty { font-size: 13px; color: var(--text-3); font-weight: 600; padding: 2px 4px 6px; }
.adm-danger { margin-top: 6px; }
.adm-provider { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 13px; background: rgba(0, 0, 0, .22); border: 1px dashed var(--line-strong); margin-bottom: 8px; }
.adm-provider .ac-ic { color: var(--text-3); }
.adm-provider.on .ac-ic { color: var(--sage); }
.adm-add { margin: 0 0 10px; height: 46px; font-size: 15px; }
.adm-icbtn { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); border: 1px solid var(--line); background: var(--panel-raise); flex: none; }
.adm-icbtn .ic { width: 16px; height: 16px; }
.adm-icbtn.red { color: #f0a08b; }
.switch.sm { width: 40px; height: 24px; }
.switch.sm i::after { width: 18px; height: 18px; }
.switch.sm input:checked + i::after { transform: translateX(16px); }
.adm-row.partner .ar-side { gap: 6px; }
.adm-field { display: grid; gap: 4px; margin-bottom: 8px; }
.adm-field span { font-size: 12px; font-weight: 700; color: var(--text-2); }
.adm-check { display: flex; align-items: center; gap: 8px; font-weight: 700; margin: 4px 0 6px; }
.adm-check input { width: 20px; height: 20px; accent-color: var(--amber); }
.admin-form .adm-body { margin: 0 -18px; padding: 0 18px 8px; }
.confirm-sheet .adm-confirm .lead { font-size: 15px; color: var(--text); margin: 10px 40px 8px 0; }
.chip-btn .ic { width: 15px; height: 15px; }
