:root {
  --orange: #f47a1f;
  --orange-dark: #c95608;
  --ink: #171717;
  --muted: #6b7280;
  --surface: #ffffff;
  --page: #f5f6f7;
  --line: #e5e7eb;
  --danger: #b42318;
  --success: #067647;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--page);
  color: var(--ink);
}
a { color: var(--orange-dark); }
button, input, select, textarea { font: inherit; }
.topbar {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 4vw;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}
.brand { color: var(--ink); text-decoration: none; display: flex; align-items: center; font-weight: 900; }
.brand-logo { display: block; width: 126px; height: 58px; object-fit: contain; }
.environment { color: var(--muted); font-size: .9rem; }
.topnav { display: flex; align-items: center; gap: 22px; }
.topnav a, .link-button { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .92rem; }
.topnav form { margin: 0; }
.link-button { border: 0; padding: 0; background: none; cursor: pointer; }
.page-shell { width: min(1240px, 92vw); margin: 0 auto; padding: 44px 0 72px; }
.hero { min-height: 520px; padding: clamp(34px, 7vw, 88px); display: flex; align-items: end; border-radius: 34px; color: white; background: radial-gradient(circle at 82% 16%, #ffc172 0, #ff8b27 17%, transparent 18%), radial-gradient(circle at 88% 22%, rgba(0,0,0,.92) 0, rgba(0,0,0,.92) 23%, transparent 24%), linear-gradient(135deg, #131313 12%, #252525 58%, #f47a1f 59%, #ff9b3d 100%); box-shadow: 0 28px 60px rgba(17,17,17,.16); }
.hero-copy { max-width: 900px; }
.hero-logo { display: block; width: clamp(170px, 24vw, 260px); max-height: 230px; object-fit: contain; margin-bottom: 18px; padding: 8px; border-radius: 22px; background: rgba(255,255,255,.96); }
.hero h1 { max-width: 850px; margin: 14px 0; font-size: clamp(2.7rem, 6vw, 6rem); line-height: .92; letter-spacing: -.055em; }
.hero p { max-width: 700px; color: #f3f4f6; font-size: 1.12rem; line-height: 1.65; margin-bottom: 28px; }
.eyebrow { text-transform: uppercase; letter-spacing: .17em; font-size: .76rem; font-weight: 900; color: var(--orange); }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-heading.compact { align-items: center; }
.page-heading h1 { font-size: clamp(2.2rem, 4vw, 4.5rem); letter-spacing: -.045em; line-height: 1; margin: 8px 0; }
.page-heading p { color: var(--muted); margin: 0; }
.button { display: inline-flex; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 13px; align-items: center; justify-content: center; background: white; color: var(--ink); text-decoration: none; font-weight: 800; cursor: pointer; }
.button-primary { color: white; background: var(--orange); border-color: var(--orange); }
.button-primary:hover { background: var(--orange-dark); }
.button-danger { color: white; background: var(--danger); border-color: var(--danger); }
.button-light { color: var(--ink); background: white; border-color: white; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.stat-card, .panel, .table-card, .auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 8px 28px rgba(17,24,39,.045); }
.stat-card { padding: 24px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; }
.stat-card span { color: var(--muted); font-weight: 700; }
.stat-card strong { font-size: 2.5rem; letter-spacing: -.05em; }
.filter-bar { display: grid; grid-template-columns: minmax(260px, 1fr) 220px auto auto; gap: 12px; margin-bottom: 18px; }
input, select, textarea { width: 100%; border: 1px solid #d1d5db; border-radius: 13px; padding: 12px 14px; background: white; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(244,122,31,.16); border-color: var(--orange); }
.table-card { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 17px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: #fafafa; }
td strong, td small { display: block; }
td small { color: var(--muted); margin-top: 4px; }
tr:last-child td { border-bottom: 0; }
.empty-cell { text-align: center; color: var(--muted); padding: 48px; }
.status { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; font-size: .78rem; font-weight: 900; background: #eef2f6; }
.status-active { color: var(--success); background: #ecfdf3; }
.status-suspended, .status-deleted { color: var(--danger); background: #fef3f2; }
.pagination { display: flex; gap: 7px; margin-top: 18px; flex-wrap: wrap; }
.pagination a { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; display: grid; place-items: center; background: white; text-decoration: none; color: var(--ink); }
.pagination a.active { color: white; background: var(--orange); border-color: var(--orange); }
.back-link { display: inline-block; margin-bottom: 24px; text-decoration: none; font-weight: 800; }
.notice { background: #ecfdf3; color: var(--success); border: 1px solid #abefc6; border-radius: 14px; padding: 14px 16px; margin-bottom: 20px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.panel { padding: 26px; }
.panel h2 { margin: 0 0 20px; }
dl { display: grid; grid-template-columns: 130px 1fr; gap: 13px 18px; margin: 0; }
dt { color: var(--muted); font-weight: 700; }
dd { margin: 0; overflow-wrap: anywhere; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mini-stats div { background: var(--page); border-radius: 15px; padding: 18px; }
.mini-stats strong, .mini-stats span { display: block; }
.mini-stats strong { font-size: 1.45rem; }
.mini-stats span { color: var(--muted); margin-top: 5px; }
.danger-panel { border-color: #fecdca; }
.form-stack { display: grid; gap: 10px; }
.form-stack label { font-weight: 800; margin-top: 4px; }
.form-stack.narrow { max-width: 620px; }
.validation { color: var(--danger); font-size: .86rem; }
.check-row { display: flex; align-items: center; gap: 10px; }
.check-row input { width: auto; }
.auth-shell { min-height: calc(100vh - 170px); display: grid; place-items: center; }
.auth-card { width: min(480px, 100%); padding: clamp(28px, 5vw, 48px); }
.auth-logo { display: block; width: min(250px, 80%); max-height: 220px; object-fit: contain; margin: -16px auto 20px; }
.auth-card h1 { font-size: 3rem; letter-spacing: -.05em; margin: 10px 0; }
.auth-card > p { color: var(--muted); margin-bottom: 26px; }
.empty-state { text-align: center; padding: 80px 20px; }
@media (max-width: 820px) {
  .topbar { align-items: flex-start; padding-top: 14px; padding-bottom: 14px; }
  .topnav { gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
  .filter-bar { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .hero { min-height: 440px; }
}

.site-footer { width: min(1240px, 92vw); margin: 0 auto 30px; padding: 20px 0; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: .86rem; }
.site-footer img { width: 54px; height: 54px; object-fit: contain; }
@media (max-width: 520px) { .brand-logo { width: 92px; height: 50px; } .environment { display: none; } .site-footer { flex-direction: column; } }
