/* Wunpawng Edin — admin panel, LIGHT theme (extends main design system) */
:root {
  --bg: #faf8f4; --bg-soft: #f1ece1; --card: #ffffff; --card-2: #f6f1e6;
  --border: #e7dfd0; --pink: #c2255c; --green: #0d6e3f; --green-soft: #e9f4ec;
  --yellow: #b97b06; --gold: #f2b705; --blue: #1971c2; --red: #d6336c;
  --text: #20242f; --text-soft: #4c5168; --text-dim: #8b90a5;
  --radius: 16px; --font: "Noto Sans", "Noto Sans Myanmar", system-ui,
    -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 2px 10px rgba(120,100,70,.06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text);
  min-height: 100vh; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px 90px; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 100; background: rgba(250,248,244,.94);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(120,100,70,.06); }
.topbar-in { max-width: 1080px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 17px; }
.brand small { display: block; font-size: 10px; color: var(--text-dim);
  letter-spacing: 1.5px; font-weight: 700; }
.tabs { display: flex; gap: 6px; margin-left: 12px; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; border-radius: 12px; font-weight: 700; font-size: 14px;
  color: var(--text-soft); }
.tabs a.on, .tabs a:hover { background: rgba(0,0,0,.05); color: var(--text); }
.tabs a .bdg { background: var(--pink); color: #fff; font-size: 11px;
  border-radius: 10px; padding: 1px 7px; margin-left: 6px; font-weight: 800; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-dim); }
.linklike { background: none; border: 0; color: var(--text-soft); font-size: 13px;
  text-decoration: underline; }

h1.page { font-size: 26px; margin: 26px 0 4px; }
p.lead { color: var(--text-dim); margin-bottom: 20px; font-size: 15px; }

/* stat cards */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; margin: 18px 0 26px; }
.stat { background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 16px; box-shadow: var(--shadow); }
.stat .n { font-size: 30px; font-weight: 800; }
.stat .l { color: var(--text-dim); font-size: 13px; margin-top: 2px; }
.stat.hot { border-color: var(--pink); }
.stat.hot .n { color: var(--pink); }

/* queue cards */
.qcard { background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; margin-bottom: 12px;
  display: flex; gap: 14px; align-items: flex-start; box-shadow: var(--shadow); }
.qthumb { width: 132px; height: 76px; border-radius: 10px; object-fit: cover;
  background: var(--card-2); flex-shrink: 0; display: flex; align-items: center;
  justify-content: center; font-size: 30px; }
.qbody { flex: 1; min-width: 0; }
.qtitle { font-weight: 800; font-size: 16px; }
.qmeta { color: var(--text-dim); font-size: 13px; margin-top: 3px; }
.qtype { display: inline-block; font-size: 11px; font-weight: 800;
  border-radius: 8px; padding: 2px 8px; margin-right: 6px; }
.qtype.video { background: rgba(25,113,194,.1); color: var(--blue); }
.qtype.track { background: var(--green-soft); color: var(--green); }
.qactions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.qlink { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; align-items: center; }
.qlinked { font-size: 13px; font-weight: 700; color: var(--green); }
.qlinked.none { color: var(--text-dim); font-weight: 400; }
.qlink-input { width: 130px; background: var(--bg-soft); border: 1px solid var(--border);
  color: var(--text); border-radius: 10px; padding: 7px 10px; font-size: 13px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn { border: 0; border-radius: 12px; font-weight: 800; font-size: 14px;
  padding: 10px 18px; }
.btn-ok { background: var(--green); color: #fff; }
.btn-no { background: transparent; border: 1.5px solid var(--red); color: var(--red); }
.btn-pri { background: var(--pink); color: #fff; }
.btn-dim { background: var(--card); color: var(--text); border: 1px solid var(--border); }
.reject-box { margin-top: 10px; display: none; }
.reject-box.open { display: flex; gap: 8px; }
.reject-box input { flex: 1; background: var(--bg-soft); border: 1px solid var(--border);
  color: var(--text); border-radius: 10px; padding: 9px 12px; font-size: 14px;
  font-family: inherit; }
.empty { text-align: center; color: var(--text-dim); padding: 60px 20px;
  background: var(--card); border-radius: var(--radius);
  border: 1px dashed var(--border); }

/* users */
.utable { width: 100%; border-collapse: collapse; background: var(--card);
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow); }
.utable th, .utable td { padding: 12px 14px; text-align: left; font-size: 14px;
  border-bottom: 1px solid var(--border); }
.utable th { color: var(--text-dim); font-size: 12px; text-transform: uppercase;
  letter-spacing: .6px; background: var(--card-2); }
.utable tr:last-child td { border-bottom: 0; }
.utable select { background: var(--bg-soft); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px;
  font-family: inherit; font-size: 13px; }
.pill { font-size: 11px; font-weight: 800; border-radius: 8px; padding: 2px 9px; }
.pill.admin { background: rgba(194,37,92,.1); color: var(--pink); }
.pill.creator { background: rgba(25,113,194,.1); color: var(--blue); }
.pill.viewer { background: rgba(0,0,0,.05); color: var(--text-soft); }
.pill.off { background: rgba(214,51,108,.1); color: var(--red); }
.you { font-size: 11px; color: var(--yellow); font-weight: 800; margin-left: 6px; }
.rowbtn { background: var(--card); border: 1px solid var(--border); color: var(--text-soft);
  border-radius: 8px; padding: 6px 12px; font-size: 13px; font-weight: 700; }
.rowbtn.danger { border-color: var(--red); color: var(--red); }

/* forms */
.form-card { background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; max-width: 560px;
  box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px;
  color: var(--text-soft); }
.field input, .field textarea { width: 100%; background: var(--bg-soft);
  border: 1px solid var(--border); color: var(--text); border-radius: 10px;
  padding: 12px; font-size: 15px; font-family: inherit; }
.field textarea { min-height: 70px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 46px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; padding: 8px;
  color: var(--text-dim); display: flex; align-items: center; }
.pw-toggle:hover { color: var(--text); }
.pw-toggle svg { width: 20px; height: 20px; display: block; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  background: var(--text); color: #fff;
  padding: 12px 22px; border-radius: 14px; font-weight: 700; font-size: 14px;
  display: none; z-index: 200; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.toast.show { display: block; }
.toast.err { background: var(--red); }

/* auth card */
.auth-wrap { min-height: 100vh; display: flex; align-items: center;
  justify-content: center; padding: 20px; }
.auth-card { width: 100%; max-width: 400px; background: var(--card);
  border: 1px solid var(--border); border-radius: 20px; padding: 30px 26px;
  box-shadow: 0 12px 40px rgba(120,100,70,.12); }
.auth-card h1 { font-size: 22px; margin-bottom: 4px; }
.auth-card p.sub { color: var(--text-dim); font-size: 14px; margin-bottom: 20px; }
.authtabs { display: flex; background: var(--bg-soft); border-radius: 12px;
  padding: 4px; margin-bottom: 20px; }
.authtabs button { flex: 1; background: none; border: 0; color: var(--text-dim);
  font-weight: 800; padding: 10px; border-radius: 9px; font-size: 14px; }
.authtabs button.on { background: var(--card); color: var(--text);
  box-shadow: var(--shadow); }
.auth-err { display: none; background: rgba(214,51,108,.08);
  border: 1px solid var(--red); color: var(--red); border-radius: 10px;
  padding: 10px 14px; font-size: 13.5px; margin-bottom: 14px; }
.auth-err.show { display: block; }

@media (max-width: 640px) {
  .qcard { flex-direction: column; }
  .qthumb { width: 100%; height: 150px; }
  .utable thead { display: none; }
  .utable, .utable tbody, .utable tr, .utable td { display: block; width: 100%; }
  .utable tr { border-bottom: 1px solid var(--border); padding: 8px 0; }
  .utable td { border: 0; padding: 5px 14px; }
  .utable td::before { content: attr(data-l); display: block; font-size: 11px;
    color: var(--text-dim); text-transform: uppercase; letter-spacing: .6px; }
  .topbar-in { gap: 6px; }
  .tabs { margin-left: 0; }
}
