/* Giao dien chung KhoLive - theo mockup man chot + bo nhan dien (File-du-an/brand). Uu tien dien thoai. */
:root {
  --bg: #f3f5f9;
  --card: #ffffff;
  --text: #0F172A;       /* navy thuong hieu */
  --muted: #6b7280;
  --line: #e5e7eb;
  --primary: #2563FF;    /* xanh thuong hieu */
  --primary-soft: #e8efff;
  --purple: #7c3aed;
  --green: #16a34a;
  --green-soft: #dcfce7;
  --red: #FF3B30;        /* do Live */
  --red-soft: #fee2e2;
  --blue-soft: #dbeafe;
  --yellow: #fde047;
  --hl: #fff7d6;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 14px rgba(0, 0, 0, .05);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font: 15px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}
button { font: inherit; cursor: pointer; border: 0; }
input, select { font: inherit; color: inherit; }
.hidden { display: none !important; }

.btn { border-radius: 10px; padding: 10px 16px; font-weight: 600; background: var(--primary); color: #fff; }
.btn:active { transform: scale(.97); }
.btn.ghost { background: var(--card); color: var(--text); border: 1px solid var(--line); }
.btn.soft { background: var(--primary-soft); color: var(--primary); }
.btn.purple { background: var(--purple); }
.btn.danger { background: var(--red-soft); color: var(--red); }
.btn[disabled] { opacity: .5; pointer-events: none; }

.chip { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.chip.none { background: var(--blue-soft); color: #2563eb; }
.chip.full { background: var(--green-soft); color: var(--green); }
.chip.partial { background: var(--red-soft); color: var(--red); }
.chip.money { background: var(--yellow); color: #1f2937; }
.chip.vip { background: var(--red); color: #fff; font-size: 10px; padding: 1px 6px; }

.toast {
  position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 14px); transform: translateX(-50%);
  background: #1f2937; color: #fff; border-radius: 14px; padding: 10px 16px; z-index: 60;
  display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow); max-width: 92vw;
}
.toast .ok { width: 22px; height: 22px; border-radius: 50%; background: #22c55e; display: grid; place-items: center; font-size: 13px; }
.toast.err .ok { background: var(--red); }

/* Dang nhap */
.login { min-height: 100%; display: grid; place-items: center; padding: 16px; }
.login form { width: min(380px, 100%); background: var(--card); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.login h1 { margin: 0 0 4px; font-size: 24px; display: flex; align-items: center; gap: 10px; }
.login h1 img { width: 40px; height: 40px; border-radius: 10px; }
.login h1 em { font-style: normal; color: var(--primary); }
.login p { margin: 0 0 18px; color: var(--muted); }
.login label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 4px; }
.login input { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.login .btn { width: 100%; margin-top: 18px; padding: 13px; }
.login .err { color: var(--red); margin-top: 10px; min-height: 20px; }
