body.adm { background: #f3f5fa; font-size: 15px; }
[x-cloak] { display: none !important; }
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--navy-900); color: #fff; padding: 22px 16px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; }
.side .brand { color: #fff; font-size: 26px; padding: 4px 10px 2px; }
.side .brand b { background: linear-gradient(90deg, #cce256, #34a77b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.side .sub { padding: 0 10px 18px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .6; font-weight: 700; }
.side button.nv, .side a.nv { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 0; border-radius: 12px; background: transparent; color: rgba(255, 255, 255, .78); font-weight: 700; font-size: 14.5px; text-align: left; cursor: pointer; text-decoration: none; transition: background .15s, color .15s; }
.side .nv:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.side .nv.on { background: var(--grad); color: #fff; }
.side .nv svg { width: 19px; height: 19px; flex: none; }
.side .sp { flex: 1; }
.main { padding: clamp(18px, 3vw, 36px); min-width: 0; max-width: 1280px; width: 100%; }
.topbar { display: none; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.page-h h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.02em; color: var(--navy-900); }
.page-h p { color: var(--muted); font-weight: 600; margin-top: 2px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.card h2 { font-size: 16px; font-weight: 800; color: var(--navy-900); margin-bottom: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.stat > span { display: block; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stat b { display: block; margin-top: 6px; font-family: var(--display); font-size: 32px; letter-spacing: -.02em; color: var(--navy); line-height: 1.1; }
.stat small { color: var(--muted); font-weight: 600; font-size: 13px; }
.stat.hot b { color: var(--red); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-top: 14px; }
.bar { display: grid; grid-template-columns: 110px 1fr 40px; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; margin: 8px 0; }
.bar i { display: block; height: 12px; border-radius: 8px; background: var(--grad); min-width: 4px; transition: width .5s; }
.bar em { font-style: normal; text-align: right; color: var(--muted); }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 110px; }
.spark i { flex: 1; min-width: 6px; background: var(--grad); border-radius: 5px 5px 0 0; opacity: .9; }
.tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.tools .input, .tools .select { width: auto; min-width: 150px; padding: 9px 12px; font-size: 14px; }
.tools .input.grow { flex: 1; min-width: 220px; }
.tbl-wrap { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 800; padding: 12px 14px; background: #f8f9fd; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; }
table.t td { padding: 12px 14px; border-bottom: 1px solid #eef0f6; vertical-align: top; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: #f6f9ff; }
table.t td small { display: block; color: var(--muted); font-weight: 600; }
table.t td b { font-weight: 800; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.badge.pending { background: #fdf3c8; color: #7a6100; }
.badge.verified { background: #dcf4e9; color: #14664a; }
.badge.rejected { background: #fde3e6; color: #9a1623; }
.badge.cat { background: var(--sky); color: var(--navy); }
.chk { width: 22px; height: 22px; accent-color: var(--green-600); cursor: pointer; }
.empty { padding: 40px; text-align: center; color: var(--muted); font-weight: 700; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-green { background: var(--green-600); color: #fff; }
.btn-green:hover { background: #17664a; }
.btn-danger { background: transparent; border-color: var(--red); color: var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* drawer + modal */
.scrim { position: fixed; inset: 0; background: rgba(14, 26, 61, .55); z-index: 80; display: flex; justify-content: flex-end; }
.scrim.center { justify-content: center; align-items: center; padding: 16px; }
.drawer { width: min(560px, 100%); background: #fff; height: 100%; overflow: auto; padding: 26px; animation: slide .25s ease; }
.modal { width: min(680px, 100%); max-height: 94vh; overflow: auto; background: #fff; border-radius: 24px; padding: 26px; animation: rise .22s ease; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }
.dh { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.dh h2 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.x { border: 0; background: #eef1f8; width: 36px; height: 36px; border-radius: 50%; font-size: 20px; cursor: pointer; line-height: 1; flex: none; }
.fg { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fg .full { grid-column: 1 / -1; }
.fg .input, .fg .select, .fg .textarea { padding: 10px 12px; font-size: 14.5px; }
.proof { margin: 6px 0 18px; padding: 14px; border: 1.5px dashed var(--line); border-radius: 16px; background: #fafbfe; }
.proof img { max-height: 340px; width: 100%; object-fit: contain; border-radius: 10px; background: #fff; margin-top: 10px; }
.act { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.errbox { margin-top: 12px; padding: 10px 14px; background: #fde3e6; color: var(--red-600); border-radius: 12px; font-weight: 700; font-size: 14px; }
.foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

/* cards grid */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; gap: 14px; align-items: center; }
.pcard .av { width: 56px; height: 72px; font-size: 18px; flex: none; }
.av { border-radius: 6px !important; background-color: #fff; border: 1px solid #d8deee; }
.av img { object-position: center top; background: #fff; }
.pcard .m { min-width: 0; flex: 1; }
.pcard b { display: block; font-weight: 800; line-height: 1.3; }
.pcard small { display: block; color: var(--muted); font-weight: 600; font-size: 13px; line-height: 1.35; }
.chips { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.chip { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--sky); color: var(--navy); }
.chip.g { background: #dcf4e9; color: #14664a; } .chip.l { background: var(--lime); color: var(--navy-900); }
.mv { display: flex; flex-direction: column; gap: 2px; }
.mv button { border: 1px solid var(--line); background: #fff; border-radius: 6px; width: 26px; height: 22px; cursor: pointer; font-size: 11px; line-height: 1; }
.mv button:hover { background: var(--sky); }
.plist { display: grid; gap: 8px; }
.pitem { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: grid; grid-template-columns: auto 120px 1fr auto; gap: 14px; align-items: center; }
.pitem.brk { background: #f8f9fd; }
.pitem .tm { font-weight: 800; color: var(--navy); font-size: 14px; line-height: 1.3; }
.pitem .tm small { display: block; color: var(--muted); font-weight: 600; }
.pitem .tt b { display: block; font-weight: 800; line-height: 1.35; }
.pitem .tt small { color: var(--muted); font-weight: 600; }
.lrow { display: grid; grid-template-columns: 1fr 130px auto; gap: 8px; margin-bottom: 8px; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; cursor: pointer; }
.switch input { width: 20px; height: 20px; accent-color: var(--navy); }
.set-sec { margin-bottom: 14px; }
.partner { display: grid; grid-template-columns: 1fr 1fr 80px auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.partner img { height: 40px; width: auto; max-width: 90px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; padding: 2px; background: #fff; }
.gate { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--paper); }
.gate .card { width: min(440px, 100%); text-align: center; padding: 38px; border-radius: 26px; }
.gate h1 { font-size: 26px; font-weight: 800; margin: 14px 0 6px; color: var(--navy-900); }
.gate p { color: var(--muted); font-weight: 600; margin-bottom: 22px; }
.ci-big { display: grid; gap: 10px; }
.ci { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; }
.ci.done { background: #eefaf4; border-color: #bfe6d3; }
.ci .m { flex: 1; min-width: 0; }
.ci b { font-size: 17px; font-weight: 800; } .ci small { display: block; color: var(--muted); font-weight: 600; }
.prog-bar { height: 12px; background: #e3e7f2; border-radius: 8px; overflow: hidden; margin: 8px 0 18px; }
.prog-bar i { display: block; height: 100%; background: var(--grad); transition: width .4s; }
.toast { z-index: 120; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; width: 270px; z-index: 90; transform: translateX(-100%); transition: transform .25s; }
  .side.open { transform: none; }
  .topbar { display: flex; align-items: center; justify-content: space-between; background: var(--navy-900); color: #fff; padding: 10px 14px; position: sticky; top: 0; z-index: 60; }
  .topbar .brand { color: #fff; font-size: 22px; }
  .topbar button { background: none; border: 0; color: #fff; padding: 6px; cursor: pointer; }
  .fg { grid-template-columns: 1fr; }
  .pitem { grid-template-columns: auto 1fr; } .pitem .tm { grid-column: 2; } .pitem .tt { grid-column: 1 / -1; } .pitem .row-actions { grid-column: 1 / -1; }
  .lrow { grid-template-columns: 1fr 110px auto; }
  .partner { grid-template-columns: 1fr 1fr; }
}