/* Khung chung các trang con (dùng kèm style.css). Mỗi trang thêm CSS riêng của mình trong file riêng. */
body[data-page] { background: var(--black); }
.sp-header { position: sticky; top: 0; z-index: 50; background: rgba(11,11,11,.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.sp-header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.sp-logo img { height: 42px; width: auto; filter: brightness(0) invert(1); }
.sp-nav { display: flex; gap: 22px; }
.sp-nav a { text-decoration: none; color: #ddd; font-weight: 500; font-size: .95rem; padding: 4px 0; border-bottom: 2px solid transparent; }
.sp-nav a:hover { color: #fff; }
.sp-nav a.is-on { color: var(--orange-2); border-color: var(--orange); }
.sp-actions { display: flex; align-items: center; gap: 10px; }
.sp-account { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.sp-account.is-member { background: transparent; border: 2px solid var(--orange); box-shadow: none; }
.sp-main { padding: 40px 0 80px; min-height: 60vh; }
.sp-title { font-size: clamp(1.7rem, 4vw, 2.6rem); text-transform: uppercase; margin-bottom: .3em; }
.sp-sub { color: var(--muted); margin-bottom: 28px; }
.sp-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.sp-empty { text-align: center; color: var(--muted); padding: 48px 16px; }
.sp-loading { text-align: center; color: var(--muted); padding: 40px 0; }
.sp-badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(255,106,19,.15); color: var(--orange-2); }
.sp-badge--staff { background: var(--orange); color: #fff; }
.sp-input, .sp-select, .sp-textarea { width: 100%; min-width: 0; font: 400 .98rem var(--font-body); padding: 11px 13px; border-radius: 10px; border: 1.5px solid var(--line); background: #111; color: var(--text); }
.sp-input:focus, .sp-select:focus, .sp-textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,106,19,.18); }
.sp-label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: #ddd; }
.sp-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #1f1f1f; color: #fff; border: 1px solid var(--orange); padding: 12px 18px; border-radius: 12px; z-index: 200; box-shadow: var(--shadow); transition: opacity .4s; max-width: calc(100% - 32px); }
.sp-toast--err { border-color: #e5484d; }
.sp-toast.is-out { opacity: 0; }
.sp-footer { margin-top: 0; padding: 24px 0; }
.sp-footer a { display: inline; color: var(--muted); }
@media (max-width: 920px) {
  .sp-nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(11,11,11,.98); border-bottom: 1px solid var(--line); padding: 6px 16px 14px; display: none; }
  .sp-nav.is-open { display: flex; }
  .sp-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .sp-nav a.is-on { border-color: var(--line); }
  #sp-burger { display: flex; }
}
@media (max-width: 480px) {
  .sp-logo img { height: 34px; }
  .sp-account { max-width: 110px; padding: .5em .9em; }
  .sp-main { padding-top: 28px; }
}
.sp-footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; padding-bottom: 14px; }
.sp-footer__links a { display: inline; color: #cfc9c0; text-decoration: none; font-size: .9rem; }
.sp-footer__links a:hover { color: var(--orange); }
