*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif;background:#11151a;color:#eef2f6}.admin-body{min-height:100vh}.topbar{height:68px;background:#171c22;border-bottom:1px solid #29313a;display:flex;align-items:center;justify-content:space-between;padding:0 24px;position:sticky;top:0;z-index:10}.brand{display:flex;gap:11px;align-items:center;color:#fff;text-decoration:none}.brand-mark{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#1976ff;font-weight:900;font-size:20px}.brand small,.brand span span{display:block;color:#8994a0;font-size:11px;margin-top:2px}.top-actions{display:flex;align-items:center;gap:10px}.admin-name{color:#b8c1cb;font-size:13px}.layout{display:flex;min-height:calc(100vh - 68px);align-items:flex-start}.sidebar{width:220px;background:#151a20;border-right:1px solid #29313a;padding:18px 12px;position:sticky;top:68px;height:calc(100vh - 68px);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin}.sidebar a{display:flex;gap:12px;align-items:center;color:#aab4bf;text-decoration:none;padding:12px 13px;border-radius:12px;margin-bottom:5px}.sidebar a.active,.sidebar a:hover{background:#222a33;color:#fff}.side-note{margin:30px 5px;padding:13px;border:1px solid #303944;border-radius:13px;color:#7f8b97;font-size:11px;line-height:1.5}.side-note b{color:#aeb9c5}.content{width:100%;max-width:1500px;padding:28px;margin:auto}.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:22px}.page-head h1{font-size:28px;margin:4px 0}.page-head p{margin:0;color:#87919d}.eyebrow{font-size:11px;letter-spacing:1.5px;color:#1976ff;font-weight:800}.primary,.ghost,.small-btn,.danger-btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border:0;cursor:pointer;border-radius:10px;padding:10px 14px;font-weight:700}.primary{background:#1976ff;color:#fff}.ghost{background:#222a33;color:#d7dee5}.small-btn{background:#27313b;color:#dbe3eb;padding:7px 10px;font-size:12px}.danger-btn{background:#5c252b;color:#ffb5bd;margin-top:8px}.wide{width:100%}.alert{padding:12px 15px;border-radius:12px;margin-bottom:18px}.alert.success{background:#163827;color:#8de5ad}.alert.danger{background:#3b2025;color:#ffadb8}.stats{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-bottom:18px}.stat,.panel{background:#171d23;border:1px solid #29313a;border-radius:16px}.stat{padding:17px}.stat span{display:block;color:#8994a0;font-size:12px}.stat b{display:block;font-size:25px;margin-top:6px}.grid2{display:grid;grid-template-columns:1.35fr 1fr;gap:18px;margin-bottom:18px}.panel{padding:18px;margin-bottom:18px}.panel-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:14px}.panel-head h2{font-size:16px;margin:0}.panel-head span{color:#7f8995;font-size:11px}.bars{height:190px;display:flex;align-items:flex-end;gap:4px;overflow:hidden}.bar-col{flex:1;min-width:12px;display:flex;flex-direction:column;align-items:center;gap:5px}.bar{width:100%;max-width:22px;background:#1976ff;border-radius:5px 5px 2px 2px;opacity:.85}.bar-col small{font-size:8px;color:#77818c}.mini-list>div{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid #252d35;color:#aab4bf;font-size:12px}.mini-list b{color:#fff}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:700px}th,td{text-align:left;padding:11px 9px;border-bottom:1px solid #272f38;font-size:12px;vertical-align:middle}th{color:#7f8995;font-size:10px;text-transform:uppercase;letter-spacing:.6px}td small{display:block;color:#77818d;margin-top:3px}.positive{color:#72dfa0}.negative{color:#ff8994}.rules{margin:0;padding-left:20px;color:#a8b1ba;line-height:2}.rules b{color:#fff}.search{display:flex;gap:8px;margin-bottom:18px}.search input{flex:1}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:13px}.form-grid label,.inline-form label{display:flex;flex-direction:column;gap:6px;color:#8994a0;font-size:11px}.form-grid input,.form-grid select,.inline-form input,.inline-form select,.search input,.login-card input{width:100%;background:#10151a;border:1px solid #303943;border-radius:10px;color:#eef2f6;padding:11px;outline:none}.form-grid input:focus,.inline-form input:focus,.search input:focus,.login-card input:focus{border-color:#1976ff}.form-actions{display:flex;align-items:end}.thumb-sm{width:78px;height:45px;object-fit:cover;border-radius:8px}.truncate{max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pill{display:inline-block;background:#27313b;color:#bdc8d3;border-radius:999px;padding:4px 8px;font-size:10px}.pill.ok{background:#173b2a;color:#8ce5ab}.detail-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.detail-grid div{background:#11161b;border-radius:10px;padding:12px}.detail-grid span{display:block;color:#707b86;font-size:10px}.detail-grid b{display:block;margin-top:5px;overflow-wrap:anywhere;font-size:12px}.inline-form{display:grid;gap:8px;background:#10151a;border:1px solid #303943;padding:12px;margin:10px 0;border-radius:10px;min-width:250px}.check{flex-direction:row!important;align-items:center!important}.login-shell{min-height:100vh;display:grid;place-items:center;padding:20px}.login-card{width:min(430px,100%);background:#171d23;border:1px solid #29313a;border-radius:20px;padding:28px;box-shadow:0 25px 80px #0008}.login-card h1{margin:6px 0}.login-card p{color:#8d98a3;line-height:1.6}.login-card label{display:block;color:#929ca7;font-size:12px;margin:14px 0}.login-card input{margin-top:7px}.login-note{font-size:11px;color:#68737f;margin-top:15px;line-height:1.5}.login-note b{color:#9aa5b1}.brand{font-size:14px}.login-shell .brand{position:absolute;top:28px;left:28px}.login-shell .brand span:last-child{display:block}.login-shell .brand b{display:block}.login-shell .brand span span{font-size:10px}.login-shell .brand-mark{width:34px;height:34px}.login-card .eyebrow{margin-bottom:2px}@media(max-width:1000px){.stats{grid-template-columns:repeat(2,1fr)}.grid2{grid-template-columns:1fr}.detail-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){.topbar{padding:0 14px}.sidebar{width:58px;padding:12px 7px}.sidebar a{justify-content:center}.sidebar a span,.side-note{display:none}.content{padding:18px 12px}.page-head{display:block}.page-head .primary,.page-head .ghost{margin-top:12px}.stats{grid-template-columns:1fr 1fr}.form-grid{grid-template-columns:1fr}.detail-grid{grid-template-columns:1fr}.admin-name{display:none}.topbar{height:60px}.layout{min-height:calc(100vh - 60px)}.sidebar{top:60px;height:calc(100vh - 60px)}.login-shell .brand{left:18px;top:18px}}

.admin-chart-wrap{height:300px;position:relative;width:100%}
.panel-head select{background:#11161b;color:#fff;border:1px solid #333b43;border-radius:10px;padding:8px 10px}
.stat small{display:block;margin-top:4px;color:#8d959c}
.pill.pending{background:rgba(245,197,66,.12);color:#f5c542}
.pill.danger{background:rgba(255,80,80,.12);color:#ff6b6b}
.pill.ok{background:rgba(47,201,112,.12);color:#39d98a}
.inline-form input[pattern]{letter-spacing:4px;font-weight:800}

.admin-chart-wrap canvas{touch-action:manipulation;cursor:crosshair}.admin-chart-wrap{padding:6px 2px}.panel-head select{min-width:140px}


/* Premium CRUD / Theme control refresh */
:root{--adm-radius:20px}
main,.content,.admin-main{min-width:0}
.page-head{margin-bottom:18px!important}.page-head h1{letter-spacing:-.03em}.page-head p{max-width:760px;line-height:1.6;color:#8e99a8}
.panel{border-radius:var(--adm-radius)!important;padding:0!important;overflow:hidden;background:linear-gradient(180deg,#171c24,#11161d)!important;border:1px solid rgba(255,255,255,.08)!important;box-shadow:0 18px 60px rgba(0,0,0,.22)!important;margin-bottom:18px!important}
.panel-head{padding:18px 20px!important;background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.015));border-bottom:1px solid rgba(255,255,255,.07);display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-head h2{margin:0;font-size:17px}.panel-head span{font-size:11px;color:#7f8b9c}
.panel>.form-grid,.panel>form.form-grid{padding:20px!important}.form-grid{gap:14px!important}.form-grid label{display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:800;color:#9ca8b7}.form-grid input,.form-grid textarea,.form-grid select,.inline-form input,.inline-form textarea,.inline-form select{background:#0c1117!important;border:1px solid rgba(255,255,255,.09)!important;color:#edf2f7!important;border-radius:13px!important;outline:none}.form-grid input:focus,.form-grid textarea:focus,.form-grid select:focus,.inline-form input:focus,.inline-form textarea:focus,.inline-form select:focus{border-color:#f5c542!important;box-shadow:0 0 0 3px rgba(245,197,66,.08)}
.form-actions{display:flex;align-items:center;gap:10px;grid-column:1/-1}.primary,.small-btn,.danger-btn,.ghost{border-radius:12px!important}.table-wrap{padding:0 14px 14px!important;overflow:auto}.table-wrap table{border-collapse:separate!important;border-spacing:0 8px!important}.table-wrap tbody tr{background:#10151c!important}.table-wrap td,.table-wrap th{border:0!important;padding:12px 11px!important}.table-wrap tbody td:first-child{border-radius:12px 0 0 12px}.table-wrap tbody td:last-child{border-radius:0 12px 12px 0}.table-wrap tbody tr:hover{background:#161d26!important}.table-wrap td small{display:block;margin-top:4px;color:#788596}.table-wrap details{position:relative}.table-wrap details summary{cursor:pointer;list-style:none}.table-wrap details summary::-webkit-details-marker{display:none}.inline-form{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px!important;padding:14px!important;margin-top:10px!important;background:#0b1016!important;border:1px solid rgba(255,255,255,.07)!important;border-radius:16px!important}.inline-form .check,.inline-form button{grid-column:1/-1}.danger-btn{background:rgba(255,69,92,.11)!important;border:1px solid rgba(255,69,92,.24)!important;color:#ff7184!important;padding:9px 12px}.check{display:flex!important;flex-direction:row!important;align-items:center;gap:8px!important}.check input{min-height:auto!important;width:17px;height:17px}
/* Theme chooser */

@media(max-width:600px){.inline-form{grid-template-columns:1fr}.panel-head{padding:15px!important}.panel>.form-grid{padding:15px!important}}

/* ===== Kyar Coin Admin premium dashboard refresh ===== */
body{background:radial-gradient(circle at 85% -10%,rgba(245,197,66,.07),transparent 28%),#0d1116!important;color:#eef2f6}.topbar{background:rgba(13,17,22,.88)!important;backdrop-filter:blur(18px);border-bottom:1px solid rgba(255,255,255,.07)!important}.brand-mark{background:linear-gradient(145deg,#f5c542,#c79218)!important;color:#17191c!important;box-shadow:0 8px 24px rgba(245,197,66,.18)}.sidebar{background:rgba(16,21,27,.92)!important;border-right:1px solid rgba(255,255,255,.07)!important}.sidebar a{font-weight:800}.sidebar a.active{background:linear-gradient(135deg,rgba(245,197,66,.16),rgba(245,197,66,.05))!important;color:#f5c542!important;box-shadow:inset 3px 0 #f5c542}.content{max-width:1540px}.eyebrow{color:#f5c542!important}.primary{background:linear-gradient(135deg,#f5c542,#d3a629)!important;color:#17191c!important;box-shadow:0 10px 22px rgba(245,197,66,.12)}.stat{background:linear-gradient(145deg,#171e26,#10151b)!important;border-color:rgba(255,255,255,.07)!important;box-shadow:0 14px 35px rgba(0,0,0,.18)}.stat b{color:#fff}.panel-head h2 i{color:#f5c542;margin-right:7px}.admin-head-badge{display:inline-flex;align-items:center;gap:7px;padding:9px 12px;border-radius:999px;background:rgba(46,213,115,.09);border:1px solid rgba(46,213,115,.16);color:#6de09d;font-size:11px;font-weight:900}.admin-task-number{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:9px;margin-right:7px;background:#20272f;color:#f5c542;font-weight:900}.admin-reward-pill{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;border-radius:999px;background:rgba(245,197,66,.11);color:#f5c542;font-weight:900}.daily-task-admin-panel .form-actions{margin-top:3px}
@media(max-width:700px){.admin-head-badge{margin-top:12px}}

/* v21 compact desktop/laptop polish */
html{scrollbar-width:thin;scrollbar-color:rgba(245,197,66,.42) transparent}
*{scrollbar-width:thin}
*::-webkit-scrollbar{width:5px;height:5px}
*::-webkit-scrollbar-track{background:transparent}
*::-webkit-scrollbar-thumb{background:rgba(245,197,66,.38);border-radius:999px}
@media (min-width:1100px){
  .topbar{height:58px;padding:0 18px}
  .layout{min-height:calc(100vh - 58px)}
  .sidebar{width:190px;top:58px;height:calc(100vh - 58px);padding:12px 9px}
  .sidebar a{gap:9px;padding:9px 10px;margin-bottom:3px;font-size:12px}
  .side-note{margin:18px 3px;padding:10px;font-size:10px}
  .content{max-width:1220px;padding:18px 20px}
  .page-head{margin-bottom:12px!important}
  .page-head h1{font-size:25px}
  .page-head p{font-size:11px}
  .stats{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-bottom:12px}
  .stat{padding:11px;border-radius:14px}
  .stat span{font-size:10px}
  .stat b{font-size:19px;margin-top:4px}
  .stat small{font-size:9px}
  .grid2{gap:10px;margin-bottom:10px}
  .panel{margin-bottom:10px!important;border-radius:15px!important}
  .panel-head{padding:12px 14px!important;margin-bottom:0}
  .panel-head h2{font-size:14px}
  .panel-head span{font-size:9px}
  .panel-head select{min-width:112px;padding:6px 8px;font-size:10px}
  .admin-chart-wrap{height:220px;padding:4px}
  .table-wrap{padding:0 10px 10px!important}
  .table-wrap td,.table-wrap th{padding:8px 8px!important;font-size:10px}
}
@media (min-width:1100px) and (max-width:1350px){
  .content{max-width:1120px;padding:16px}
  .stats{grid-template-columns:repeat(5,minmax(0,1fr))}
  .admin-chart-wrap{height:205px}
}


/* System health */
.health-panel{overflow:visible!important}
.health-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;padding:16px 20px 12px}
.health-item{position:relative;min-width:0;background:#10151a;border:1px solid rgba(255,255,255,.07);border-radius:14px;padding:13px 12px 12px}
.health-item span{display:block;color:#8d98a4;font-size:10px;text-transform:uppercase;letter-spacing:.5px}
.health-item b{display:block;font-size:20px;line-height:1.2;margin-top:5px;padding-right:12px}
.health-item small{display:block;color:#707b87;font-size:10px;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.health-dot{position:absolute;right:11px;top:13px;width:8px;height:8px;border-radius:50%;background:#39d98a;box-shadow:0 0 0 4px rgba(57,217,138,.08)}
.health-dot.warn{background:#f5c542;box-shadow:0 0 0 4px rgba(245,197,66,.08)}
.health-dot.danger{background:#ff626c;box-shadow:0 0 0 4px rgba(255,98,108,.08)}
.health-dot.unknown{background:#7b8794;box-shadow:none}
.health-note{padding:0 20px 16px;color:#687480;font-size:10px;line-height:1.5}
@media(max-width:1200px){.health-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.health-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px}.health-note{padding:0 12px 14px}}

/* Admin email broadcast */
.email-recipient-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:14px 20px;border-bottom:1px solid rgba(255,255,255,.07)}
.email-recipient-tools input{flex:1;min-width:220px}
.recipient-count{font-size:11px;color:#8d98a4;font-weight:800}
.recipient-list{max-height:430px;overflow:auto;padding:10px 20px 20px}
.recipient-row{display:grid;grid-template-columns:24px 1fr auto;gap:10px;align-items:center;padding:11px 10px;border-radius:12px}
.recipient-row:hover{background:#171d24}
.recipient-row small{display:block;color:#73808d;margin-top:3px}
.recipient-row input{width:17px;height:17px}
.email-preview{background:#0b1016;border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:18px;line-height:1.7}
.email-preview img{max-width:100%;max-height:280px;object-fit:cover;border-radius:12px;display:block;margin:0 auto 16px}
@media(max-width:700px){.recipient-list{padding:8px 12px 14px}.email-recipient-tools{padding:12px}.recipient-row{grid-template-columns:24px 1fr}.recipient-row .recipient-status{display:none}}

.chat-upload-progress{margin-top:10px;padding:10px 12px;background:#10151a;border:1px solid #303943;border-radius:10px}.chat-upload-progress-bar{height:7px;background:#29313a;border-radius:999px;overflow:hidden}.chat-upload-progress-bar span{display:block;width:0;height:100%;background:#f5c542;border-radius:999px;transition:width .15s ease}.chat-upload-progress small{display:block;margin-top:7px;color:#8f9aa6;font-size:11px}
