@charset "UTF-8";
/* ============================================================
   admin.css — ئارقا سۇپا · ناخشا CMS · ئۇچاربۈرە تورى
   ============================================================ */
@font-face {
  font-family: 'UKIJ Tuz Tom';
  src: url('../fonts/UKIJTuzTom.ttf') format('truetype');
  font-weight: normal; font-style: normal; font-display: swap;
}
:root {
  --font: 'UKIJ Tuz Tom', 'Microsoft Uyghur', 'Alkatip', Tahoma, sans-serif;
  --bg: #f2f6ff; --surface: #fff; --surface-2: #f5f8ff;
  --text: #14213d; --dim: #6b7b9b; --border: #e0e8f8;
  --accent: #2f6fed; --accent-2: #1742b8; --accent-soft: #e7efff;
  --danger: #e23b34; --ok: #12a36a; --gold: #e0a02c;
  --shadow: 0 10px 30px rgba(24,52,112,.10);
  --side-w: 238px;
}
html[data-night="1"] {
  --bg: #0a0f1e; --surface: #131b30; --surface-2: #1a2440;
  --text: #eaf1ff; --dim: #8ea2c6; --border: #26355a; --accent-soft: #1e2d50;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.75; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
svg { display: block; }
h1, h2, h3, b { font-family: var(--font); }

/* ---------------- كىرىش بېتى ---------------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(135deg, #1742b8, #2f6fed 55%, #e23b34); }
.login-card { width: min(400px, 100%); background: var(--surface); border-radius: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.28); padding: 30px; }
.login-brand { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 20px; text-align: center; }
.login-brand img { width: 56px; height: 56px; border-radius: 16px; }
.login-brand b { font-size: 20px; }
.login-brand small { color: var(--dim); font-size: 12px; }
.login-card h1 { font-size: 17px; margin: 0 0 16px; text-align: center; }
.login-foot { text-align: center; font-size: 11.5px; color: var(--dim); margin-top: 18px; }

/* ---------------- ئورۇنلاشتۇرۇش ---------------- */
.adm-shell { display: flex; min-height: 100vh; }
.adm-side {
  width: var(--side-w); flex: none; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: #101c3c; color: #e9efff; padding: 18px 12px 24px;
  background-image: linear-gradient(160deg, #17336f, #0d1732 60%, #131c3a);
}
.adm-logo { display: flex; align-items: center; gap: 10px; padding: 6px 8px 18px; border-bottom: 1px solid rgba(255,255,255,.10); margin-bottom: 14px; }
.adm-logo img { width: 38px; height: 38px; border-radius: 11px; }
.adm-logo b { font-size: 16px; line-height: 1.3; }
.adm-logo small { display: block; font-size: 10.5px; color: #8ea6d8; font-weight: 400; }
.adm-nav { display: flex; flex-direction: column; gap: 3px; }
.adm-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; color: #b9c9ec; transition: background .2s, color .2s; }
.adm-nav a i { width: 20px; display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.adm-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.adm-nav a.is-on { background: linear-gradient(90deg, #2f6fed, #1b3fa8); color: #fff; box-shadow: 0 4px 14px rgba(47,111,237,.35); }
.adm-side-foot { margin-top: 20px; padding: 14px 8px 0; border-top: 1px solid rgba(255,255,255,.10); font-size: 11px; color: #8ea6d8; line-height: 1.9; }
.adm-main { flex: 1; min-width: 0; }
.adm-top { display: flex; align-items: center; gap: 12px; padding: 12px 22px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 30; }
.adm-top h1 { margin: 0; font-size: 19px; }
.adm-top .adm-crumb { color: var(--dim); font-size: 12px; }
.adm-top-right { margin-inline-start: auto; display: flex; align-items: center; gap: 9px; }
.adm-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 12px; }
.adm-content { padding: 22px; max-width: 1400px; }

/* ---------------- ئورتاق بۆلەكلەر ---------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 15px; box-shadow: var(--shadow); padding: 18px; margin-bottom: 18px; }
.card h2 { margin: 0 0 14px; font-size: 16px; }
.card h2 small { color: var(--dim); font-size: 12px; font-weight: 400; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.stat-card { display: flex; flex-direction: column; gap: 3px; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.stat-card b { font-size: 25px; color: var(--accent); }
.stat-card span { font-size: 12px; color: var(--dim); }
.stat-card i { font-style: normal; font-size: 11px; color: var(--dim); }
.muted { color: var(--dim); font-size: 12.5px; }
.empty { padding: 30px; text-align: center; color: var(--dim); }

/* ---------------- فورما ---------------- */
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 13px; }
.field > label { font-size: 12.5px; color: var(--dim); }
.field .hint { font-size: 11px; color: var(--dim); }
input, select, textarea { border: 1px solid var(--border); background: var(--surface-2); color: var(--text); border-radius: 9px; padding: 8px 11px; outline: none; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
input[type=checkbox], input[type=radio] { width: auto; }
textarea { resize: vertical; }
.check-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; font-size: 13px; }
.check-row input { width: 16px; height: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 17px; border: 1px solid transparent; border-radius: 10px; font-size: 13px; font-weight: 700; cursor: pointer; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-ghost { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-ok { background: var(--ok); color: #fff; }
.btn-sm { padding: 5px 11px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* ---------------- جەدۋەل ---------------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: start; padding: 10px; background: var(--surface-2); color: var(--dim); font-size: 12px; font-weight: 600; white-space: nowrap; }
.tbl td { padding: 9px 10px; border-top: 1px solid var(--border); vertical-align: middle; }
.tbl tr:hover td { background: var(--surface-2); }
.tbl img.thumb { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; }
.tbl .t-title { font-weight: 700; }
.tbl .t-sub { font-size: 11px; color: var(--dim); }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 10.5px; background: var(--surface-2); border: 1px solid var(--border); color: var(--dim); }
.badge.vip { background: #fff2d6; color: #9a6a10; border-color: #f0d59a; }
.badge.on { background: #e2f6ec; color: #107a4e; border-color: #b9e8d1; }
.badge.off { background: #f5f5f7; color: #888; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar input[type=search] { max-width: 230px; }
.toolbar select { max-width: 170px; }
.bulk-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 11px; background: var(--accent-soft); border: 1px solid var(--border); margin-bottom: 12px; font-size: 12.5px; }
.pager { display: flex; gap: 5px; justify-content: center; margin: 18px 0; flex-wrap: wrap; }
.pager a { padding: 6px 11px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); font-size: 12.5px; }
.pager a.is-on { background: var(--accent); color: #fff; border-color: var(--accent); }
.flash { padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 13px; background: #e2f6ec; color: #107a4e; border: 1px solid #b9e8d1; }
.flash.err { background: #ffeceb; color: #b3312a; border-color: #f6c3c0; }

/* ---------------- ئۇسلۇب كارتىلىرى ---------------- */
.theme-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.theme-card { border: 2px solid var(--border); border-radius: 15px; padding: 14px; background: var(--surface); }
.theme-card.is-on { border-color: var(--accent); }
.theme-preview { height: 150px; border-radius: 10px; margin-bottom: 10px; overflow: hidden; position: relative; }
.tp-pc { background: linear-gradient(160deg, #f2f6ff, #2f6fed); }
.tp-wap { background: linear-gradient(160deg, #e23b34, #7b1f2b 45%, #2f6fed); }
.theme-preview::before { content: ''; position: absolute; inset: 16px; border-radius: 8px; background: rgba(255,255,255,.82); }
.theme-preview::after { content: ''; position: absolute; inset: 28px auto 28px 28px; width: 90px; border-radius: 6px; background: rgba(20,30,60,.25); }
.theme-card h3 { margin: 0 0 4px; font-size: 15px; }
.theme-card p { margin: 0 0 10px; font-size: 12px; color: var(--dim); }

@media (max-width: 900px) {
  .adm-shell { flex-direction: column; }
  .adm-side { width: 100%; height: auto; position: relative; padding: 10px; }
  .adm-nav { flex-direction: row; flex-wrap: wrap; }
  .adm-nav a { padding: 7px 9px; font-size: 12px; }
  .adm-side-foot { display: none; }
  .form-row, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .theme-cards { grid-template-columns: 1fr; }
}

/* ---------------- ۋاڭيۈن مۇزىكىسىدىن ناخشا ئىزدەش ---------------- */
.ne-card {
  border: 1px solid #cfe0ff;
  background: linear-gradient(180deg, #f5f9ff, #ffffff 70%);
  box-shadow: 0 8px 26px rgba(47, 111, 237, .10);
}
.ne-card h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.ne-badge {
  font-size: 10.5px; font-weight: 700; letter-spacing: .3px; padding: 3px 10px;
  border-radius: 999px; background: linear-gradient(135deg, #2f6fed, #1742b8); color: #fff; direction: ltr;
}
.ne-tip { margin: 0 0 12px; font-size: 12.5px; color: var(--dim); }
.ne-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.ne-bar input { flex: 1 1 260px; min-width: 0; }
.ne-bar .btn { flex: 0 0 auto; }
.ne-warn {
  margin: 12px 0 0; padding: 9px 12px; border-radius: 10px;
  background: #fff7e8; border: 1px solid #f5dfae; color: #8a6320; font-size: 12px; line-height: 1.7;
}
.ne-msg {
  margin-top: 12px; padding: 9px 13px; border-radius: 10px; font-size: 12.5px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--dim);
}
.ne-msg.ok { background: #e7f8ef; border-color: #b8e7cf; color: #107a4e; }
.ne-msg.err { background: #ffedeb; border-color: #f5c5c0; color: #b3312a; }
.ne-msg a { color: var(--accent); font-weight: 700; text-decoration: underline; }
.ne-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; }
.ne-item {
  display: flex; align-items: center; gap: 11px; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
}
.ne-item:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgba(47, 111, 237, .12); }
.ne-item > img { width: 50px; height: 50px; flex: none; border-radius: 9px; object-fit: cover; background: var(--surface-2); }
.ne-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.5; }
.ne-info b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ne-info small { font-size: 11.5px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ne-vip { flex: none; font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: #fff0d6; color: #a5710f; direction: ltr; }
.ne-btns { display: flex; gap: 6px; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.ne-btns .btn { padding: 6px 11px; font-size: 12px; }
html[data-night="1"] .ne-card { border-color: #2b4374; background: linear-gradient(180deg, #16233f, #131b30 70%); }
html[data-night="1"] .ne-warn { background: #3a2c14; border-color: #6b5220; color: #f0d59a; }
html[data-night="1"] .ne-msg.ok { background: #143a2a; border-color: #1f6b4a; color: #9ce0bd; }
html[data-night="1"] .ne-msg.err { background: #3d1c1a; border-color: #7a3730; color: #f3b3ac; }
@media (max-width: 700px) {
  .ne-item { flex-wrap: wrap; }
  .ne-btns { width: 100%; justify-content: flex-start; }
}

/* ============================================================
   ئەزا ناخشىلىرىنى تەستىقلاش + ئاكتىپ ئەزالار · v1.3
   ============================================================ */
.rev-info {
  margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; font-size: 12.5px; line-height: 1.8;
  background: var(--accent-soft); border: 1px solid var(--border); color: var(--text);
}
.rev-info b { color: var(--accent); }
.rev-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.rev-tabs a {
  padding: 6px 14px; border-radius: 999px; font-size: 12.5px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--dim);
}
.rev-tabs a:hover { border-color: var(--accent); color: var(--accent); }
.rev-tabs a.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.rev-user { display: flex; align-items: center; gap: 8px; }
.rev-user img { width: 32px; height: 32px; flex: none; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.rev-form { display: inline-flex; align-items: center; gap: 5px; margin: 2px 0; }
.rev-note { width: 110px; padding: 4px 8px; font-size: 11.5px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); color: var(--text); }
.badge.wait { background: #fff4d9; color: #96690d; border-color: #f0d59a; }
.act-summary { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-bottom: 16px; }
.act-summary > div { padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); text-align: center; }
.act-summary b { display: block; font-size: 21px; color: var(--accent); }
.act-summary span { font-size: 11.5px; color: var(--dim); }
.act-rank { display: inline-grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); font-size: 12px; font-weight: 700; }
.act-rank.is-top { background: var(--accent); border-color: var(--accent); color: #fff; }
.act-score { min-width: 90px; }
.act-score b { font-size: 12.5px; }
.act-bar { display: block; height: 5px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; margin-top: 3px; }
.act-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
@media (max-width: 700px) {
  .act-summary { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .rev-note { width: 90px; }
}

/* ---- ئىنكاس تەھرىرلەش ---- */
.c-edit-box { margin-top: 7px; font-size: 13px; }
.c-edit-box summary { cursor: pointer; color: #2f6fed; user-select: none; list-style-position: inside; }
.c-edit-box summary:hover { text-decoration: underline; }
.c-edit-box[open] summary { margin-bottom: 6px; }
