/* TV-DB white-label admin — styled to match the app (dark, rounded, spacious).
   Palette mirrors the app: Bg #0A0A0D, card #161619, chip #1B1B1F, text #F5F5F7 / #A8A8B0.
   The brand accent (buttons/links) is injected per-deployment by brand_style() in index.php. */
* { box-sizing: border-box; }
html, body {
  margin: 0; background: #0A0A0D; color: #F5F5F7;
  font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.wrap { min-height: 100vh; max-width: 940px; margin: 0 auto; padding: 0 22px 72px; }

header {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 22px 2px 20px; margin-bottom: 24px; border-bottom: 1px solid #1e1e24;
}
header b { font-size: 19px; font-weight: 800; letter-spacing: .2px; display: flex; align-items: center; }
nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
nav a { color: #A8A8B0; text-decoration: none; padding: 7px 12px; border-radius: 9px; font-size: 14px; font-weight: 600; }
nav a:hover { color: #F5F5F7; background: #16161b; }
nav a.on { color: #F5F5F7; background: #1B1B1F; }
.who { color: #6F7078; font-size: 13px; margin-left: 6px; }

h1 { font-size: 19px; font-weight: 800; margin: 0 0 18px; letter-spacing: .2px; }

.card {
  background: #161619; border: 1px solid #23232a; border-radius: 16px;
  padding: 24px; margin-bottom: 20px;
}
.card.narrow { max-width: 380px; margin: 72px auto; }

label { display: block; margin: 0 0 16px; font-size: 13px; color: #A8A8B0; font-weight: 600; }
input, select, textarea {
  display: block; width: 100%; margin-top: 7px; padding: 12px 14px;
  background: #0E0E11; border: 1px solid #2a2a32; border-radius: 12px;
  color: #F5F5F7; font-size: 14.5px; font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; }
input::placeholder, textarea::placeholder { color: #55565d; }

button {
  background: #E11414; color: #fff; border: 0; border-radius: 24px;
  padding: 12px 22px; font-size: 14.5px; font-weight: 800; cursor: pointer;
  letter-spacing: .2px; transition: filter .12s, transform .06s;
}
button:hover { filter: brightness(1.08); }
button:active { transform: translateY(1px); }
button.ok { background: #16a34a; }
button.danger { background: #b91c1c; }
button.small { padding: 7px 14px; font-size: 12.5px; border-radius: 16px; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.grid .wide { grid-column: 1 / -1; }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; }
.nowrap { white-space: nowrap; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid #1e1e24; }
th { color: #6F7078; font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; }
tbody tr:hover { background: #101014; }

code {
  background: #0E0E11; padding: 3px 8px; border-radius: 7px; font-size: 13px;
  color: #F5F5F7; font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}
.muted { color: #6F7078; }
a { color: #E11414; }

.flash { background: #10240f; border: 1px solid #1f6b2e; color: #86efac; padding: 13px 16px; border-radius: 12px; margin-bottom: 20px; }
.err   { background: #2a1010; border: 1px solid #7f1d1d; color: #fca5a5; padding: 13px 16px; border-radius: 12px; margin-bottom: 16px; }

.badge { display: inline-block; padding: 3px 11px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.badge.active { background: #10240f; color: #86efac; }
.badge.suspended { background: #2e2410; color: #fcd34d; }
.badge.revoked { background: #2a1010; color: #fca5a5; }
